@marimo-team/islands 0.13.16-dev2 → 0.13.16-dev4
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/{ConnectedDataExplorerComponent-BizAnuDQ.js → ConnectedDataExplorerComponent-W-BOfG8M.js} +1495 -1496
- package/dist/{VegaLite-BvtjUHLS.js → VegaLite-C9hsmU75.js} +12483 -12485
- package/dist/{_baseUniq-C1K8a5jF.js → _baseUniq-JsDeIdvj.js} +13 -13
- package/dist/{any-language-editor-D3C2KiQW.js → any-language-editor-BzZqDQm_.js} +2 -2
- package/dist/{architectureDiagram-IEHRJDOE-DhrFWr1a.js → architectureDiagram-IEHRJDOE-DnNsdc8e.js} +1800 -1800
- package/dist/asn1-jKiBa2Ya.js +10 -10
- package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
- package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
- package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
- package/dist/blockDiagram-JOT3LUYC-C_KEbscf.js +2249 -0
- package/dist/{c4Diagram-VJAJSXHY-DKSU0_Zg.js → c4Diagram-VJAJSXHY-B7trZ6_H.js} +401 -400
- package/dist/{channel-DMiLp-mI.js → channel-CwUzkjN9.js} +1 -1
- package/dist/chunk-4BMEZGHF-C4_0qa8X.js +9 -0
- package/dist/chunk-A2AXSNBT-DApfdN4z.js +1373 -0
- package/dist/chunk-AEK57VVT-D_rUaIu3.js +1416 -0
- package/dist/{chunk-D6G4REZN-BZV3ukOi.js → chunk-D6G4REZN-BJurAONC.js} +2 -2
- package/dist/{chunk-RZ5BOZE2-B4rOVQD8.js → chunk-RZ5BOZE2-ChOs68Hz.js} +8 -8
- package/dist/chunk-XZIHB7SX-CGbScEEe.js +16 -0
- package/dist/{classDiagram-GIVACNV2-DLRT4_A4.js → classDiagram-GIVACNV2-CqVjeibK.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DLRT4_A4.js → classDiagram-v2-COTLJTTW-CqVjeibK.js} +2 -2
- package/dist/clojure-CCKyeQKf.js +2 -2
- package/dist/{clone-CPwu6xRn.js → clone-BPHB9gtw.js} +1 -1
- package/dist/css-bIlmDBTK.js +19 -19
- package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
- package/dist/dagre-OKDRZEBW-EJUR9APO.js +447 -0
- package/dist/{data-editor-CYvUeKhw.js → data-editor-CvujN_l-.js} +5785 -5795
- package/dist/{diagram-SSKATNLV-D8WhiY2q.js → diagram-SSKATNLV-Bs-Zy3OO.js} +13 -13
- package/dist/{diagram-VNBRO52H-Bil9sOsr.js → diagram-VNBRO52H-rhV7IJ0T.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-J-Jm-DD7.js → erDiagram-Q7BY3M3F-DwuCpdOL.js} +263 -262
- package/dist/flowDiagram-4HSFHLVR-CpbGvx3R.js +1623 -0
- package/dist/{ganttDiagram-APWFNJXF-C2G0-fOq.js → ganttDiagram-APWFNJXF-B9ih7Ggj.js} +45 -45
- package/dist/gitGraphDiagram-7IBYFJ6S-tTFS2NlF.js +712 -0
- package/dist/{graph-BFerxzEi.js → graph-DiSBbvS5.js} +9 -9
- package/dist/{index-DfpR00QG.js → index-BZo5-DOE.js} +99 -98
- package/dist/{index-j8M50mVa.js → index-CmU7bpCv.js} +4 -4
- package/dist/{index-DkuVwdVm.js → index-KrnLhU30.js} +9 -9
- package/dist/{index-BhtvwOag.js → index-TeAlNqJE.js} +28 -28
- package/dist/{infoDiagram-PH2N3AL5-AYtb1_Lz.js → infoDiagram-PH2N3AL5-COt3b362.js} +3 -3
- package/dist/javascript-WMWNx-Vj.js +47 -47
- package/dist/{journeyDiagram-U35MCT3I-Bdz9gIBI.js → journeyDiagram-U35MCT3I-Civ2cUVg.js} +18 -18
- package/dist/kanban-definition-NDS4AKOZ-QxhTc8lo.js +719 -0
- package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
- package/dist/{layout-Qs-BVu8V.js → layout-B0SQ1LdD.js} +27 -27
- package/dist/{linear-SIbCb7yI.js → linear-Bn_UtFyT.js} +2 -2
- package/dist/main-ClxYr2BI.js +169878 -0
- package/dist/main.js +1 -1
- package/dist/mermaid-M3c3q4Qd.js +14517 -0
- package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
- package/dist/{min-BTA1UVkn.js → min-C0Jzc_ko.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js} +359 -359
- package/dist/mllike-BSnXJBGA.js +7 -7
- package/dist/{pieDiagram-IB7DONF6-BbbxWeqU.js → pieDiagram-IB7DONF6-DIa7m5Au.js} +34 -34
- package/dist/pug-BqUR2bBq.js +35 -35
- package/dist/python-B5QdSKoL.js +18 -18
- package/dist/quadrantDiagram-7GDLP6J5-D1HtkiJK.js +1025 -0
- package/dist/{radar-MK3ICKWK-Z5R0bt0z.js → radar-MK3ICKWK-Dm3jRuoE.js} +2555 -2554
- package/dist/{react-plotly-DqDxe4Uh.js → react-plotly-CJ3A7ju0.js} +6595 -6597
- package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js} +251 -250
- package/dist/rpm-IznJm2Xc.js +9 -9
- package/dist/{sankeyDiagram-QLVOVGJD-DbUWg3a4.js → sankeyDiagram-QLVOVGJD-Bo4y0LBQ.js} +339 -338
- package/dist/{sequenceDiagram-X6HHIX6F-JltcBwLF.js → sequenceDiagram-X6HHIX6F-DMq4wla5.js} +822 -821
- package/dist/{slides-component-DVr5mf9p.js → slides-component-Cyh202Vq.js} +280 -280
- package/dist/sql-mMre1Bo3.js +9 -9
- package/dist/{stateDiagram-DGXRK772-qbXtyoS6.js → stateDiagram-DGXRK772-D_y0WAcv.js} +17 -17
- package/dist/{stateDiagram-v2-YXO3MK2T-Ba7q5pMK.js → stateDiagram-v2-YXO3MK2T-CHK5LNw7.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DHD8Fix8.js → time-YVQKuiUR.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-DH63_P4w.js} +261 -261
- package/dist/timer-BYwnU4DF.js +378 -378
- package/dist/ttcn-cfg-Bac_acMi.js +9 -9
- package/dist/{vega-component-D2NZFVvw.js → vega-component-CUFBFMjm.js} +82 -82
- package/dist/{xychartDiagram-VJFVF3MP-BZs9xPvU.js → xychartDiagram-VJFVF3MP-3NU7tduZ.js} +472 -471
- package/package.json +1 -1
- package/dist/blockDiagram-JOT3LUYC-COVagShg.js +0 -2248
- package/dist/chunk-4BMEZGHF-CeMSohVe.js +0 -9
- package/dist/chunk-A2AXSNBT-mQ3fXQfx.js +0 -1372
- package/dist/chunk-AEK57VVT-B7kw2yt6.js +0 -1415
- package/dist/chunk-XZIHB7SX-C3-5SkZh.js +0 -15
- package/dist/dagre-OKDRZEBW-yEQf6TwX.js +0 -447
- package/dist/flowDiagram-4HSFHLVR-Dhymtq1g.js +0 -1622
- package/dist/gitGraphDiagram-7IBYFJ6S-DCZAwPro.js +0 -712
- package/dist/kanban-definition-NDS4AKOZ-ByLpDX9Y.js +0 -719
- package/dist/main-Cx3zrED9.js +0 -156521
- package/dist/mermaid-DAi_EtLa.js +0 -11991
- package/dist/quadrantDiagram-7GDLP6J5-1UQgbW9Z.js +0 -1024
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as R, R as V, d as Et, aT as bt, K as Ke, j as he, M as xt } from "./main-
|
|
1
|
+
import { F as R, R as V, d as Et, aT as bt, K as Ke, j as he, M as xt } from "./main-ClxYr2BI.js";
|
|
2
2
|
function Ze(t) {
|
|
3
3
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
4
4
|
}
|
|
@@ -225,7 +225,7 @@ function Lt(t, e) {
|
|
|
225
225
|
for (; i.length > 0; ) {
|
|
226
226
|
const s = i.shift();
|
|
227
227
|
if (t === s)
|
|
228
|
-
return
|
|
228
|
+
return true;
|
|
229
229
|
i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
@@ -311,14 +311,14 @@ function Dt(t) {
|
|
|
311
311
|
userAgent: e
|
|
312
312
|
} = t === void 0 ? {} : t;
|
|
313
313
|
const i = rt(), s = k(), r = s.navigator.platform, n = e || s.navigator.userAgent, d = {
|
|
314
|
-
ios:
|
|
315
|
-
android:
|
|
314
|
+
ios: false,
|
|
315
|
+
android: false
|
|
316
316
|
}, o = s.screen.width, c = s.screen.height, f = n.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
317
317
|
let u = n.match(/(iPad).*OS\s([\d_]+)/);
|
|
318
318
|
const m = n.match(/(iPod)(.*OS\s([\d_]+))?/), v = !u && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), w = r === "Win32";
|
|
319
319
|
let a = r === "MacIntel";
|
|
320
320
|
const l = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
321
|
-
return !u && a && i.touch && l.indexOf(`${o}x${c}`) >= 0 && (u = n.match(/(Version)\/([\d.]+)/), u || (u = [0, 1, "13_0_0"]), a =
|
|
321
|
+
return !u && a && i.touch && l.indexOf(`${o}x${c}`) >= 0 && (u = n.match(/(Version)\/([\d.]+)/), u || (u = [0, 1, "13_0_0"]), a = false), f && !w && (d.os = "android", d.android = true), (u || v || m) && (d.os = "ios", d.ios = true), d;
|
|
322
322
|
}
|
|
323
323
|
function at(t) {
|
|
324
324
|
return t === void 0 && (t = {}), _e || (_e = Dt(t)), _e;
|
|
@@ -326,7 +326,7 @@ function at(t) {
|
|
|
326
326
|
let Ge;
|
|
327
327
|
function $t() {
|
|
328
328
|
const t = k(), e = at();
|
|
329
|
-
let i =
|
|
329
|
+
let i = false;
|
|
330
330
|
function s() {
|
|
331
331
|
const o = t.navigator.userAgent.toLowerCase();
|
|
332
332
|
return o.indexOf("safari") >= 0 && o.indexOf("chrome") < 0 && o.indexOf("android") < 0;
|
|
@@ -413,9 +413,9 @@ function Gt(t) {
|
|
|
413
413
|
d.requestAnimationFrame ? d.requestAnimationFrame(l) : d.setTimeout(l, 0);
|
|
414
414
|
});
|
|
415
415
|
w.observe(u, {
|
|
416
|
-
attributes: typeof m.attributes > "u" ?
|
|
417
|
-
childList: e.isElement || (typeof m.childList > "u" ?
|
|
418
|
-
characterData: typeof m.characterData > "u" ?
|
|
416
|
+
attributes: typeof m.attributes > "u" ? true : m.attributes,
|
|
417
|
+
childList: e.isElement || (typeof m.childList > "u" ? true : m).childList,
|
|
418
|
+
characterData: typeof m.characterData > "u" ? true : m.characterData
|
|
419
419
|
}), n.push(w);
|
|
420
420
|
}, c = () => {
|
|
421
421
|
if (e.params.observer) {
|
|
@@ -427,7 +427,7 @@ function Gt(t) {
|
|
|
427
427
|
o(e.hostEl, {
|
|
428
428
|
childList: e.params.observeSlideChildren
|
|
429
429
|
}), o(e.wrapperEl, {
|
|
430
|
-
attributes:
|
|
430
|
+
attributes: false
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
}, f = () => {
|
|
@@ -436,9 +436,9 @@ function Gt(t) {
|
|
|
436
436
|
}), n.splice(0, n.length);
|
|
437
437
|
};
|
|
438
438
|
i({
|
|
439
|
-
observer:
|
|
440
|
-
observeParents:
|
|
441
|
-
observeSlideChildren:
|
|
439
|
+
observer: false,
|
|
440
|
+
observeParents: false,
|
|
441
|
+
observeSlideChildren: false
|
|
442
442
|
}), s("init", c), s("destroy", f);
|
|
443
443
|
}
|
|
444
444
|
var Bt = {
|
|
@@ -582,7 +582,7 @@ function Xt() {
|
|
|
582
582
|
}
|
|
583
583
|
if (v.length === 0 && (v = [0]), h !== 0) {
|
|
584
584
|
const T = t.isHorizontal() && d ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
585
|
-
u.filter((P, O) => !i.cssMode || i.loop ?
|
|
585
|
+
u.filter((P, O) => !i.cssMode || i.loop ? true : O !== u.length - 1).forEach((P) => {
|
|
586
586
|
P.style[T] = `${h}px`;
|
|
587
587
|
});
|
|
588
588
|
}
|
|
@@ -627,7 +627,7 @@ function Xt() {
|
|
|
627
627
|
function Rt(t) {
|
|
628
628
|
const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
|
|
629
629
|
let r = 0, n;
|
|
630
|
-
typeof t == "number" ? e.setTransition(t) : t ===
|
|
630
|
+
typeof t == "number" ? e.setTransition(t) : t === true && e.setTransition(e.params.speed);
|
|
631
631
|
const d = (o) => s ? e.slides[e.getSlideIndexByData(o)] : e.slides[o];
|
|
632
632
|
if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
|
|
633
633
|
if (e.params.centeredSlides)
|
|
@@ -693,7 +693,7 @@ function kt(t) {
|
|
|
693
693
|
} = e;
|
|
694
694
|
const c = n, f = d;
|
|
695
695
|
if (s === 0)
|
|
696
|
-
r = 0, n =
|
|
696
|
+
r = 0, n = true, d = true;
|
|
697
697
|
else {
|
|
698
698
|
r = (t - e.minTranslate()) / s;
|
|
699
699
|
const u = Math.abs(t - e.minTranslate()) < 1, m = Math.abs(t - e.maxTranslate()) < 1;
|
|
@@ -837,11 +837,11 @@ function jt(t, e) {
|
|
|
837
837
|
!r && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((o) => {
|
|
838
838
|
!r && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (r = o);
|
|
839
839
|
});
|
|
840
|
-
let n =
|
|
840
|
+
let n = false, d;
|
|
841
841
|
if (r) {
|
|
842
842
|
for (let o = 0; o < i.slides.length; o += 1)
|
|
843
843
|
if (i.slides[o] === r) {
|
|
844
|
-
n =
|
|
844
|
+
n = true, d = o;
|
|
845
845
|
break;
|
|
846
846
|
}
|
|
847
847
|
}
|
|
@@ -900,13 +900,13 @@ function Qt() {
|
|
|
900
900
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
901
901
|
}
|
|
902
902
|
function Jt(t, e, i, s, r) {
|
|
903
|
-
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i =
|
|
903
|
+
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = true), s === void 0 && (s = true);
|
|
904
904
|
const n = this, {
|
|
905
905
|
params: d,
|
|
906
906
|
wrapperEl: o
|
|
907
907
|
} = n;
|
|
908
908
|
if (n.animating && d.preventInteractionOnTransition)
|
|
909
|
-
return
|
|
909
|
+
return false;
|
|
910
910
|
const c = n.minTranslate(), f = n.maxTranslate();
|
|
911
911
|
let u;
|
|
912
912
|
if (s && t > c ? u = c : s && t < f ? u = f : u = t, n.updateProgress(u), d.cssMode) {
|
|
@@ -919,17 +919,17 @@ function Jt(t, e, i, s, r) {
|
|
|
919
919
|
swiper: n,
|
|
920
920
|
targetPosition: -u,
|
|
921
921
|
side: m ? "left" : "top"
|
|
922
|
-
}),
|
|
922
|
+
}), true;
|
|
923
923
|
o.scrollTo({
|
|
924
924
|
[m ? "left" : "top"]: -u,
|
|
925
925
|
behavior: "smooth"
|
|
926
926
|
});
|
|
927
927
|
}
|
|
928
|
-
return
|
|
928
|
+
return true;
|
|
929
929
|
}
|
|
930
|
-
return e === 0 ? (n.setTransition(0), n.setTranslate(u), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionEnd"))) : (n.setTransition(e), n.setTranslate(u), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionStart")), n.animating || (n.animating =
|
|
931
|
-
!n || n.destroyed || v.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, n.animating =
|
|
932
|
-
}), n.wrapperEl.addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd))),
|
|
930
|
+
return e === 0 ? (n.setTransition(0), n.setTranslate(u), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionEnd"))) : (n.setTransition(e), n.setTranslate(u), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionStart")), n.animating || (n.animating = true, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd = function(v) {
|
|
931
|
+
!n || n.destroyed || v.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, n.animating = false, i && n.emit("transitionEnd"));
|
|
932
|
+
}), n.wrapperEl.addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd))), true;
|
|
933
933
|
}
|
|
934
934
|
var ei = {
|
|
935
935
|
getTranslate: Ut,
|
|
@@ -963,7 +963,7 @@ function ot(t) {
|
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
965
|
function ii(t, e) {
|
|
966
|
-
t === void 0 && (t =
|
|
966
|
+
t === void 0 && (t = true);
|
|
967
967
|
const i = this, {
|
|
968
968
|
params: s
|
|
969
969
|
} = i;
|
|
@@ -975,11 +975,11 @@ function ii(t, e) {
|
|
|
975
975
|
}));
|
|
976
976
|
}
|
|
977
977
|
function si(t, e) {
|
|
978
|
-
t === void 0 && (t =
|
|
978
|
+
t === void 0 && (t = true);
|
|
979
979
|
const i = this, {
|
|
980
980
|
params: s
|
|
981
981
|
} = i;
|
|
982
|
-
i.animating =
|
|
982
|
+
i.animating = false, !s.cssMode && (i.setTransition(0), ot({
|
|
983
983
|
swiper: i,
|
|
984
984
|
runCallbacks: t,
|
|
985
985
|
direction: e,
|
|
@@ -992,7 +992,7 @@ var ni = {
|
|
|
992
992
|
transitionEnd: si
|
|
993
993
|
};
|
|
994
994
|
function ri(t, e, i, s, r) {
|
|
995
|
-
t === void 0 && (t = 0), i === void 0 && (i =
|
|
995
|
+
t === void 0 && (t = 0), i === void 0 && (i = true), typeof t == "string" && (t = parseInt(t, 10));
|
|
996
996
|
const n = this;
|
|
997
997
|
let d = t;
|
|
998
998
|
d < 0 && (d = 0);
|
|
@@ -1007,7 +1007,7 @@ function ri(t, e, i, s, r) {
|
|
|
1007
1007
|
enabled: a
|
|
1008
1008
|
} = n;
|
|
1009
1009
|
if (!a && !s && !r || n.destroyed || n.animating && o.preventInteractionOnTransition)
|
|
1010
|
-
return
|
|
1010
|
+
return false;
|
|
1011
1011
|
typeof e > "u" && (e = n.params.speed);
|
|
1012
1012
|
const l = Math.min(n.params.slidesPerGroupSkip, d);
|
|
1013
1013
|
let S = l + Math.floor((d - l) / n.params.slidesPerGroup);
|
|
@@ -1019,20 +1019,20 @@ function ri(t, e, i, s, r) {
|
|
|
1019
1019
|
typeof f[I + 1] < "u" ? z >= y && z < T - (T - y) / 2 ? d = I : z >= y && z < T && (d = I + 1) : z >= y && (d = I);
|
|
1020
1020
|
}
|
|
1021
1021
|
if (n.initialized && d !== m && (!n.allowSlideNext && (v ? g > n.translate && g > n.minTranslate() : g < n.translate && g < n.minTranslate()) || !n.allowSlidePrev && g > n.translate && g > n.maxTranslate() && (m || 0) !== d))
|
|
1022
|
-
return
|
|
1022
|
+
return false;
|
|
1023
1023
|
d !== (u || 0) && i && n.emit("beforeSlideChangeStart"), n.updateProgress(g);
|
|
1024
1024
|
let p;
|
|
1025
1025
|
d > m ? p = "next" : d < m ? p = "prev" : p = "reset";
|
|
1026
1026
|
const h = n.virtual && n.params.virtual.enabled;
|
|
1027
1027
|
if (!(h && r) && (v && -g === n.translate || !v && g === n.translate))
|
|
1028
|
-
return n.updateActiveIndex(d), o.autoHeight && n.updateAutoHeight(), n.updateSlidesClasses(), o.effect !== "slide" && n.setTranslate(g), p !== "reset" && (n.transitionStart(i, p), n.transitionEnd(i, p)),
|
|
1028
|
+
return n.updateActiveIndex(d), o.autoHeight && n.updateAutoHeight(), n.updateSlidesClasses(), o.effect !== "slide" && n.setTranslate(g), p !== "reset" && (n.transitionStart(i, p), n.transitionEnd(i, p)), false;
|
|
1029
1029
|
if (o.cssMode) {
|
|
1030
1030
|
const I = n.isHorizontal(), z = v ? g : -g;
|
|
1031
1031
|
if (e === 0)
|
|
1032
|
-
h && (n.wrapperEl.style.scrollSnapType = "none", n._immediateVirtual =
|
|
1032
|
+
h && (n.wrapperEl.style.scrollSnapType = "none", n._immediateVirtual = true), h && !n._cssModeVirtualInitialSet && n.params.initialSlide > 0 ? (n._cssModeVirtualInitialSet = true, requestAnimationFrame(() => {
|
|
1033
1033
|
w[I ? "scrollLeft" : "scrollTop"] = z;
|
|
1034
1034
|
})) : w[I ? "scrollLeft" : "scrollTop"] = z, h && requestAnimationFrame(() => {
|
|
1035
|
-
n.wrapperEl.style.scrollSnapType = "", n._immediateVirtual =
|
|
1035
|
+
n.wrapperEl.style.scrollSnapType = "", n._immediateVirtual = false;
|
|
1036
1036
|
});
|
|
1037
1037
|
else {
|
|
1038
1038
|
if (!n.support.smoothScroll)
|
|
@@ -1040,21 +1040,21 @@ function ri(t, e, i, s, r) {
|
|
|
1040
1040
|
swiper: n,
|
|
1041
1041
|
targetPosition: z,
|
|
1042
1042
|
side: I ? "left" : "top"
|
|
1043
|
-
}),
|
|
1043
|
+
}), true;
|
|
1044
1044
|
w.scrollTo({
|
|
1045
1045
|
[I ? "left" : "top"]: z,
|
|
1046
1046
|
behavior: "smooth"
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
1049
|
-
return
|
|
1049
|
+
return true;
|
|
1050
1050
|
}
|
|
1051
1051
|
const L = lt().isSafari;
|
|
1052
|
-
return h && !r && L && n.isElement && n.virtual.update(
|
|
1052
|
+
return h && !r && L && n.isElement && n.virtual.update(false, false, d), n.setTransition(e), n.setTranslate(g), n.updateActiveIndex(d), n.updateSlidesClasses(), n.emit("beforeTransitionStart", e, s), n.transitionStart(i, p), e === 0 ? n.transitionEnd(i, p) : n.animating || (n.animating = true, n.onSlideToWrapperTransitionEnd || (n.onSlideToWrapperTransitionEnd = function(z) {
|
|
1053
1053
|
!n || n.destroyed || z.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.onSlideToWrapperTransitionEnd = null, delete n.onSlideToWrapperTransitionEnd, n.transitionEnd(i, p));
|
|
1054
|
-
}), n.wrapperEl.addEventListener("transitionend", n.onSlideToWrapperTransitionEnd)),
|
|
1054
|
+
}), n.wrapperEl.addEventListener("transitionend", n.onSlideToWrapperTransitionEnd)), true;
|
|
1055
1055
|
}
|
|
1056
1056
|
function ai(t, e, i, s) {
|
|
1057
|
-
t === void 0 && (t = 0), i === void 0 && (i =
|
|
1057
|
+
t === void 0 && (t = 0), i === void 0 && (i = true), typeof t == "string" && (t = parseInt(t, 10));
|
|
1058
1058
|
const r = this;
|
|
1059
1059
|
if (r.destroyed) return;
|
|
1060
1060
|
typeof e > "u" && (e = r.params.speed);
|
|
@@ -1076,11 +1076,11 @@ function ai(t, e, i, s) {
|
|
|
1076
1076
|
let u = r.params.slidesPerView;
|
|
1077
1077
|
u === "auto" ? u = r.slidesPerViewDynamic() : (u = Math.ceil(parseFloat(r.params.slidesPerView, 10)), f && u % 2 === 0 && (u = u + 1));
|
|
1078
1078
|
let m = c - o < u;
|
|
1079
|
-
if (f && (m = m || o < Math.ceil(u / 2)), s && f && r.params.slidesPerView !== "auto" && !n && (m =
|
|
1079
|
+
if (f && (m = m || o < Math.ceil(u / 2)), s && f && r.params.slidesPerView !== "auto" && !n && (m = false), m) {
|
|
1080
1080
|
const v = f ? o < r.activeIndex ? "prev" : "next" : o - r.activeIndex - 1 < r.params.slidesPerView ? "next" : "prev";
|
|
1081
1081
|
r.loopFix({
|
|
1082
1082
|
direction: v,
|
|
1083
|
-
slideTo:
|
|
1083
|
+
slideTo: true,
|
|
1084
1084
|
activeSlideIndex: v === "next" ? o + 1 : o - c + 1,
|
|
1085
1085
|
slideRealIndex: v === "next" ? r.realIndex : void 0
|
|
1086
1086
|
});
|
|
@@ -1096,7 +1096,7 @@ function ai(t, e, i, s) {
|
|
|
1096
1096
|
}), r;
|
|
1097
1097
|
}
|
|
1098
1098
|
function li(t, e, i) {
|
|
1099
|
-
e === void 0 && (e =
|
|
1099
|
+
e === void 0 && (e = true);
|
|
1100
1100
|
const s = this, {
|
|
1101
1101
|
enabled: r,
|
|
1102
1102
|
params: n,
|
|
@@ -1105,21 +1105,21 @@ function li(t, e, i) {
|
|
|
1105
1105
|
if (!r || s.destroyed) return s;
|
|
1106
1106
|
typeof t > "u" && (t = s.params.speed);
|
|
1107
1107
|
let o = n.slidesPerGroup;
|
|
1108
|
-
n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current",
|
|
1108
|
+
n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", true), 1));
|
|
1109
1109
|
const c = s.activeIndex < n.slidesPerGroupSkip ? 1 : o, f = s.virtual && n.virtual.enabled;
|
|
1110
1110
|
if (n.loop) {
|
|
1111
|
-
if (d && !f && n.loopPreventsSliding) return
|
|
1111
|
+
if (d && !f && n.loopPreventsSliding) return false;
|
|
1112
1112
|
if (s.loopFix({
|
|
1113
1113
|
direction: "next"
|
|
1114
1114
|
}), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && n.cssMode)
|
|
1115
1115
|
return requestAnimationFrame(() => {
|
|
1116
1116
|
s.slideTo(s.activeIndex + c, t, e, i);
|
|
1117
|
-
}),
|
|
1117
|
+
}), true;
|
|
1118
1118
|
}
|
|
1119
1119
|
return n.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + c, t, e, i);
|
|
1120
1120
|
}
|
|
1121
1121
|
function oi(t, e, i) {
|
|
1122
|
-
e === void 0 && (e =
|
|
1122
|
+
e === void 0 && (e = true);
|
|
1123
1123
|
const s = this, {
|
|
1124
1124
|
params: r,
|
|
1125
1125
|
snapGrid: n,
|
|
@@ -1132,7 +1132,7 @@ function oi(t, e, i) {
|
|
|
1132
1132
|
typeof t > "u" && (t = s.params.speed);
|
|
1133
1133
|
const u = s.virtual && r.virtual.enabled;
|
|
1134
1134
|
if (r.loop) {
|
|
1135
|
-
if (f && !u && r.loopPreventsSliding) return
|
|
1135
|
+
if (f && !u && r.loopPreventsSliding) return false;
|
|
1136
1136
|
s.loopFix({
|
|
1137
1137
|
direction: "prev"
|
|
1138
1138
|
}), s._clientLeft = s.wrapperEl.clientLeft;
|
|
@@ -1150,23 +1150,23 @@ function oi(t, e, i) {
|
|
|
1150
1150
|
}), typeof p < "u" && (S = l ? n[p] : n[p > 0 ? p - 1 : p]);
|
|
1151
1151
|
}
|
|
1152
1152
|
let g = 0;
|
|
1153
|
-
if (typeof S < "u" && (g = d.indexOf(S), g < 0 && (g = s.activeIndex - 1), r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (g = g - s.slidesPerViewDynamic("previous",
|
|
1153
|
+
if (typeof S < "u" && (g = d.indexOf(S), g < 0 && (g = s.activeIndex - 1), r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (g = g - s.slidesPerViewDynamic("previous", true) + 1, g = Math.max(g, 0))), r.rewind && s.isBeginning) {
|
|
1154
1154
|
const p = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
|
|
1155
1155
|
return s.slideTo(p, t, e, i);
|
|
1156
1156
|
} else if (r.loop && s.activeIndex === 0 && r.cssMode)
|
|
1157
1157
|
return requestAnimationFrame(() => {
|
|
1158
1158
|
s.slideTo(g, t, e, i);
|
|
1159
|
-
}),
|
|
1159
|
+
}), true;
|
|
1160
1160
|
return s.slideTo(g, t, e, i);
|
|
1161
1161
|
}
|
|
1162
1162
|
function di(t, e, i) {
|
|
1163
|
-
e === void 0 && (e =
|
|
1163
|
+
e === void 0 && (e = true);
|
|
1164
1164
|
const s = this;
|
|
1165
1165
|
if (!s.destroyed)
|
|
1166
1166
|
return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
|
|
1167
1167
|
}
|
|
1168
1168
|
function ci(t, e, i, s) {
|
|
1169
|
-
e === void 0 && (e =
|
|
1169
|
+
e === void 0 && (e = true), s === void 0 && (s = 0.5);
|
|
1170
1170
|
const r = this;
|
|
1171
1171
|
if (r.destroyed) return;
|
|
1172
1172
|
typeof t > "u" && (t = r.params.speed);
|
|
@@ -1250,7 +1250,7 @@ function pi(t, e) {
|
|
|
1250
1250
|
function mi(t) {
|
|
1251
1251
|
let {
|
|
1252
1252
|
slideRealIndex: e,
|
|
1253
|
-
slideTo: i =
|
|
1253
|
+
slideTo: i = true,
|
|
1254
1254
|
direction: s,
|
|
1255
1255
|
setTranslate: r,
|
|
1256
1256
|
activeSlideIndex: n,
|
|
@@ -1271,8 +1271,8 @@ function mi(t) {
|
|
|
1271
1271
|
centeredSlides: l,
|
|
1272
1272
|
initialSlide: S
|
|
1273
1273
|
} = a;
|
|
1274
|
-
if (f.allowSlidePrev =
|
|
1275
|
-
i && (!a.centeredSlides && f.snapIndex === 0 ? f.slideTo(f.virtual.slides.length, 0,
|
|
1274
|
+
if (f.allowSlidePrev = true, f.allowSlideNext = true, f.virtual && a.virtual.enabled) {
|
|
1275
|
+
i && (!a.centeredSlides && f.snapIndex === 0 ? f.slideTo(f.virtual.slides.length, 0, false, true) : a.centeredSlides && f.snapIndex < a.slidesPerView ? f.slideTo(f.virtual.slides.length + f.snapIndex, 0, false, true) : f.snapIndex === f.snapGrid.length - 1 && f.slideTo(f.virtual.slidesBefore, 0, false, true)), f.allowSlidePrev = m, f.allowSlideNext = v, f.emit("loopFix");
|
|
1276
1276
|
return;
|
|
1277
1277
|
}
|
|
1278
1278
|
let g = a.slidesPerView;
|
|
@@ -1308,30 +1308,30 @@ function mi(t) {
|
|
|
1308
1308
|
}) : L.push(Y);
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
|
-
if (f.__preventObserver__ =
|
|
1312
|
-
f.__preventObserver__ =
|
|
1311
|
+
if (f.__preventObserver__ = true, requestAnimationFrame(() => {
|
|
1312
|
+
f.__preventObserver__ = false;
|
|
1313
1313
|
}), f.params.effect === "cards" && u.length < g + h * 2 && (L.includes(n) && L.splice(L.indexOf(n), 1), b.includes(n) && b.splice(b.indexOf(n), 1)), P && b.forEach((A) => {
|
|
1314
|
-
u[A].swiperLoopMoveDOM =
|
|
1314
|
+
u[A].swiperLoopMoveDOM = true, w.prepend(u[A]), u[A].swiperLoopMoveDOM = false;
|
|
1315
1315
|
}), T && L.forEach((A) => {
|
|
1316
|
-
u[A].swiperLoopMoveDOM =
|
|
1316
|
+
u[A].swiperLoopMoveDOM = true, w.append(u[A]), u[A].swiperLoopMoveDOM = false;
|
|
1317
1317
|
}), f.recalcSlides(), a.slidesPerView === "auto" ? f.updateSlides() : E && (b.length > 0 && P || L.length > 0 && T) && f.slides.forEach((A, Y) => {
|
|
1318
1318
|
f.grid.updateSlide(Y, A, f.slides);
|
|
1319
1319
|
}), a.watchSlidesProgress && f.updateSlidesOffset(), i) {
|
|
1320
1320
|
if (b.length > 0 && P) {
|
|
1321
1321
|
if (typeof e > "u") {
|
|
1322
1322
|
const A = f.slidesGrid[y], X = f.slidesGrid[y + O] - A;
|
|
1323
|
-
c ? f.setTranslate(f.translate - X) : (f.slideTo(y + Math.ceil(O), 0,
|
|
1323
|
+
c ? f.setTranslate(f.translate - X) : (f.slideTo(y + Math.ceil(O), 0, false, true), r && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
|
|
1324
1324
|
} else if (r) {
|
|
1325
1325
|
const A = E ? b.length / a.grid.rows : b.length;
|
|
1326
|
-
f.slideTo(f.activeIndex + A, 0,
|
|
1326
|
+
f.slideTo(f.activeIndex + A, 0, false, true), f.touchEventsData.currentTranslate = f.translate;
|
|
1327
1327
|
}
|
|
1328
1328
|
} else if (L.length > 0 && T)
|
|
1329
1329
|
if (typeof e > "u") {
|
|
1330
1330
|
const A = f.slidesGrid[y], X = f.slidesGrid[y - D] - A;
|
|
1331
|
-
c ? f.setTranslate(f.translate - X) : (f.slideTo(y - D, 0,
|
|
1331
|
+
c ? f.setTranslate(f.translate - X) : (f.slideTo(y - D, 0, false, true), r && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
|
|
1332
1332
|
} else {
|
|
1333
1333
|
const A = E ? L.length / a.grid.rows : L.length;
|
|
1334
|
-
f.slideTo(f.activeIndex - A, 0,
|
|
1334
|
+
f.slideTo(f.activeIndex - A, 0, false, true);
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
if (f.allowSlidePrev = m, f.allowSlideNext = v, f.controller && f.controller.control && !o) {
|
|
@@ -1340,16 +1340,16 @@ function mi(t) {
|
|
|
1340
1340
|
direction: s,
|
|
1341
1341
|
setTranslate: r,
|
|
1342
1342
|
activeSlideIndex: n,
|
|
1343
|
-
byController:
|
|
1343
|
+
byController: true
|
|
1344
1344
|
};
|
|
1345
1345
|
Array.isArray(f.controller.control) ? f.controller.control.forEach((Y) => {
|
|
1346
1346
|
!Y.destroyed && Y.params.loop && Y.loopFix({
|
|
1347
1347
|
...A,
|
|
1348
|
-
slideTo: Y.params.slidesPerView === a.slidesPerView ? i :
|
|
1348
|
+
slideTo: Y.params.slidesPerView === a.slidesPerView ? i : false
|
|
1349
1349
|
});
|
|
1350
1350
|
}) : f.controller.control instanceof f.constructor && f.controller.control.params.loop && f.controller.control.loopFix({
|
|
1351
1351
|
...A,
|
|
1352
|
-
slideTo: f.controller.control.params.slidesPerView === a.slidesPerView ? i :
|
|
1352
|
+
slideTo: f.controller.control.params.slidesPerView === a.slidesPerView ? i : false
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
1355
|
f.emit("loopFix");
|
|
@@ -1380,14 +1380,14 @@ function vi(t) {
|
|
|
1380
1380
|
const e = this;
|
|
1381
1381
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
1382
1382
|
const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
1383
|
-
e.isElement && (e.__preventObserver__ =
|
|
1384
|
-
e.__preventObserver__ =
|
|
1383
|
+
e.isElement && (e.__preventObserver__ = true), i.style.cursor = "move", i.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
|
|
1384
|
+
e.__preventObserver__ = false;
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
1387
|
function wi() {
|
|
1388
1388
|
const t = this;
|
|
1389
|
-
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ =
|
|
1390
|
-
t.__preventObserver__ =
|
|
1389
|
+
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = true), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
|
|
1390
|
+
t.__preventObserver__ = false;
|
|
1391
1391
|
}));
|
|
1392
1392
|
}
|
|
1393
1393
|
var Si = {
|
|
@@ -1408,7 +1408,7 @@ function Je(t, e, i) {
|
|
|
1408
1408
|
const s = k(), {
|
|
1409
1409
|
params: r
|
|
1410
1410
|
} = t, n = r.edgeSwipeDetection, d = r.edgeSwipeThreshold;
|
|
1411
|
-
return n && (i <= d || i >= s.innerWidth - d) ? n === "prevent" ? (e.preventDefault(),
|
|
1411
|
+
return n && (i <= d || i >= s.innerWidth - d) ? n === "prevent" ? (e.preventDefault(), true) : false : true;
|
|
1412
1412
|
}
|
|
1413
1413
|
function bi(t) {
|
|
1414
1414
|
const e = this, i = Z();
|
|
@@ -1438,7 +1438,7 @@ function bi(t) {
|
|
|
1438
1438
|
f && s.target && s.target.shadowRoot && u && (c = u[0]);
|
|
1439
1439
|
const m = n.noSwipingSelector ? n.noSwipingSelector : `.${n.noSwipingClass}`, v = !!(s.target && s.target.shadowRoot);
|
|
1440
1440
|
if (n.noSwiping && (v ? Ei(m, c) : c.closest(m))) {
|
|
1441
|
-
e.allowClick =
|
|
1441
|
+
e.allowClick = true;
|
|
1442
1442
|
return;
|
|
1443
1443
|
}
|
|
1444
1444
|
if (n.swipeHandler && !c.closest(n.swipeHandler))
|
|
@@ -1448,14 +1448,14 @@ function bi(t) {
|
|
|
1448
1448
|
if (!Je(e, s, w))
|
|
1449
1449
|
return;
|
|
1450
1450
|
Object.assign(r, {
|
|
1451
|
-
isTouched:
|
|
1452
|
-
isMoved:
|
|
1453
|
-
allowTouchCallbacks:
|
|
1451
|
+
isTouched: true,
|
|
1452
|
+
isMoved: false,
|
|
1453
|
+
allowTouchCallbacks: true,
|
|
1454
1454
|
isScrolling: void 0,
|
|
1455
1455
|
startMoving: void 0
|
|
1456
|
-
}), d.startX = w, d.startY = a, r.touchStartTime = Ce(), e.allowClick =
|
|
1457
|
-
let l =
|
|
1458
|
-
c.matches(r.focusableElements) && (l =
|
|
1456
|
+
}), d.startX = w, d.startY = a, r.touchStartTime = Ce(), e.allowClick = true, e.updateSize(), e.swipeDirection = void 0, n.threshold > 0 && (r.allowThresholdMove = false);
|
|
1457
|
+
let l = true;
|
|
1458
|
+
c.matches(r.focusableElements) && (l = false, c.nodeName === "SELECT" && (r.isTouched = false)), i.activeElement && i.activeElement.matches(r.focusableElements) && i.activeElement !== c && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !c.matches(r.focusableElements)) && i.activeElement.blur();
|
|
1459
1459
|
const S = l && e.allowTouchMove && n.touchStartPreventDefault;
|
|
1460
1460
|
(n.touchStartForcePreventDefault || S) && !c.isContentEditable && s.preventDefault(), n.freeMode && n.freeMode.enabled && e.freeMode && e.animating && !n.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
|
|
1461
1461
|
}
|
|
@@ -1485,7 +1485,7 @@ function xi(t) {
|
|
|
1485
1485
|
return;
|
|
1486
1486
|
}
|
|
1487
1487
|
if (!i.allowTouchMove) {
|
|
1488
|
-
c.target.matches(s.focusableElements) || (i.allowClick =
|
|
1488
|
+
c.target.matches(s.focusableElements) || (i.allowClick = false), s.isTouched && (Object.assign(n, {
|
|
1489
1489
|
startX: u,
|
|
1490
1490
|
startY: m,
|
|
1491
1491
|
currentX: u,
|
|
@@ -1496,7 +1496,7 @@ function xi(t) {
|
|
|
1496
1496
|
if (r.touchReleaseOnEdges && !r.loop)
|
|
1497
1497
|
if (i.isVertical()) {
|
|
1498
1498
|
if (m < n.startY && i.translate <= i.maxTranslate() || m > n.startY && i.translate >= i.minTranslate()) {
|
|
1499
|
-
s.isTouched =
|
|
1499
|
+
s.isTouched = false, s.isMoved = false;
|
|
1500
1500
|
return;
|
|
1501
1501
|
}
|
|
1502
1502
|
} else {
|
|
@@ -1506,7 +1506,7 @@ function xi(t) {
|
|
|
1506
1506
|
return;
|
|
1507
1507
|
}
|
|
1508
1508
|
if (e.activeElement && e.activeElement.matches(s.focusableElements) && e.activeElement !== c.target && c.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && c.target === e.activeElement && c.target.matches(s.focusableElements)) {
|
|
1509
|
-
s.isMoved =
|
|
1509
|
+
s.isMoved = true, i.allowClick = false;
|
|
1510
1510
|
return;
|
|
1511
1511
|
}
|
|
1512
1512
|
s.allowTouchCallbacks && i.emit("touchMove", c), n.previousX = n.currentX, n.previousY = n.currentY, n.currentX = u, n.currentY = m;
|
|
@@ -1514,15 +1514,15 @@ function xi(t) {
|
|
|
1514
1514
|
if (i.params.threshold && Math.sqrt(v ** 2 + w ** 2) < i.params.threshold) return;
|
|
1515
1515
|
if (typeof s.isScrolling > "u") {
|
|
1516
1516
|
let b;
|
|
1517
|
-
i.isHorizontal() && n.currentY === n.startY || i.isVertical() && n.currentX === n.startX ? s.isScrolling =
|
|
1517
|
+
i.isHorizontal() && n.currentY === n.startY || i.isVertical() && n.currentX === n.startX ? s.isScrolling = false : v * v + w * w >= 25 && (b = Math.atan2(Math.abs(w), Math.abs(v)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? b > r.touchAngle : 90 - b > r.touchAngle);
|
|
1518
1518
|
}
|
|
1519
|
-
if (s.isScrolling && i.emit("touchMoveOpposite", c), typeof s.startMoving > "u" && (n.currentX !== n.startX || n.currentY !== n.startY) && (s.startMoving =
|
|
1520
|
-
s.isTouched =
|
|
1519
|
+
if (s.isScrolling && i.emit("touchMoveOpposite", c), typeof s.startMoving > "u" && (n.currentX !== n.startX || n.currentY !== n.startY) && (s.startMoving = true), s.isScrolling || c.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
|
|
1520
|
+
s.isTouched = false;
|
|
1521
1521
|
return;
|
|
1522
1522
|
}
|
|
1523
1523
|
if (!s.startMoving)
|
|
1524
1524
|
return;
|
|
1525
|
-
i.allowClick =
|
|
1525
|
+
i.allowClick = false, !r.cssMode && c.cancelable && c.preventDefault(), r.touchMoveStopPropagation && !r.nested && c.stopPropagation();
|
|
1526
1526
|
let a = i.isHorizontal() ? v : w, l = i.isHorizontal() ? n.currentX - n.previousX : n.currentY - n.previousY;
|
|
1527
1527
|
r.oneWayMovement && (a = Math.abs(a) * (d ? 1 : -1), l = Math.abs(l) * (d ? 1 : -1)), n.diff = a, a *= r.touchRatio, d && (a = -a, l = -l);
|
|
1528
1528
|
const S = i.touchesDirection;
|
|
@@ -1533,40 +1533,40 @@ function xi(t) {
|
|
|
1533
1533
|
direction: i.swipeDirection
|
|
1534
1534
|
}), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
|
|
1535
1535
|
const b = new window.CustomEvent("transitionend", {
|
|
1536
|
-
bubbles:
|
|
1537
|
-
cancelable:
|
|
1536
|
+
bubbles: true,
|
|
1537
|
+
cancelable: true,
|
|
1538
1538
|
detail: {
|
|
1539
|
-
bySwiperTouchMove:
|
|
1539
|
+
bySwiperTouchMove: true
|
|
1540
1540
|
}
|
|
1541
1541
|
});
|
|
1542
1542
|
i.wrapperEl.dispatchEvent(b);
|
|
1543
1543
|
}
|
|
1544
|
-
s.allowMomentumBounce =
|
|
1544
|
+
s.allowMomentumBounce = false, r.grabCursor && (i.allowSlideNext === true || i.allowSlidePrev === true) && i.setGrabCursor(true), i.emit("sliderFirstMove", c);
|
|
1545
1545
|
}
|
|
1546
|
-
if ((/* @__PURE__ */ new Date()).getTime(), r._loopSwapReset !==
|
|
1546
|
+
if ((/* @__PURE__ */ new Date()).getTime(), r._loopSwapReset !== false && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && g && p && Math.abs(a) >= 1) {
|
|
1547
1547
|
Object.assign(n, {
|
|
1548
1548
|
startX: u,
|
|
1549
1549
|
startY: m,
|
|
1550
1550
|
currentX: u,
|
|
1551
1551
|
currentY: m,
|
|
1552
1552
|
startTranslate: s.currentTranslate
|
|
1553
|
-
}), s.loopSwapReset =
|
|
1553
|
+
}), s.loopSwapReset = true, s.startTranslate = s.currentTranslate;
|
|
1554
1554
|
return;
|
|
1555
1555
|
}
|
|
1556
|
-
i.emit("sliderMove", c), s.isMoved =
|
|
1557
|
-
let h =
|
|
1556
|
+
i.emit("sliderMove", c), s.isMoved = true, s.currentTranslate = a + s.startTranslate;
|
|
1557
|
+
let h = true, E = r.resistanceRatio;
|
|
1558
1558
|
if (r.touchReleaseOnEdges && (E = 0), a > 0 ? (g && p && s.allowThresholdMove && s.currentTranslate > (r.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (r.slidesPerView !== "auto" && i.slides.length - r.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
|
|
1559
1559
|
direction: "prev",
|
|
1560
|
-
setTranslate:
|
|
1560
|
+
setTranslate: true,
|
|
1561
1561
|
activeSlideIndex: 0
|
|
1562
|
-
}), s.currentTranslate > i.minTranslate() && (h =
|
|
1562
|
+
}), s.currentTranslate > i.minTranslate() && (h = false, r.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + a) ** E))) : a < 0 && (g && p && s.allowThresholdMove && s.currentTranslate < (r.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (r.slidesPerView !== "auto" && i.slides.length - r.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
|
|
1563
1563
|
direction: "next",
|
|
1564
|
-
setTranslate:
|
|
1564
|
+
setTranslate: true,
|
|
1565
1565
|
activeSlideIndex: i.slides.length - (r.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(r.slidesPerView, 10)))
|
|
1566
|
-
}), s.currentTranslate < i.maxTranslate() && (h =
|
|
1566
|
+
}), s.currentTranslate < i.maxTranslate() && (h = false, r.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - a) ** E))), h && (c.preventedByNestedSwiper = true), !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), r.threshold > 0)
|
|
1567
1567
|
if (Math.abs(a) > r.threshold || s.allowThresholdMove) {
|
|
1568
1568
|
if (!s.allowThresholdMove) {
|
|
1569
|
-
s.allowThresholdMove =
|
|
1569
|
+
s.allowThresholdMove = true, n.startX = n.currentX, n.startY = n.currentY, s.currentTranslate = s.startTranslate, n.diff = i.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY;
|
|
1570
1570
|
return;
|
|
1571
1571
|
}
|
|
1572
1572
|
} else {
|
|
@@ -1597,23 +1597,23 @@ function yi(t) {
|
|
|
1597
1597
|
enabled: u
|
|
1598
1598
|
} = e;
|
|
1599
1599
|
if (!u || !d.simulateTouch && s.pointerType === "mouse") return;
|
|
1600
|
-
if (i.allowTouchCallbacks && e.emit("touchEnd", s), i.allowTouchCallbacks =
|
|
1601
|
-
i.isMoved && d.grabCursor && e.setGrabCursor(
|
|
1600
|
+
if (i.allowTouchCallbacks && e.emit("touchEnd", s), i.allowTouchCallbacks = false, !i.isTouched) {
|
|
1601
|
+
i.isMoved && d.grabCursor && e.setGrabCursor(false), i.isMoved = false, i.startMoving = false;
|
|
1602
1602
|
return;
|
|
1603
1603
|
}
|
|
1604
|
-
d.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext ===
|
|
1604
|
+
d.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === true || e.allowSlidePrev === true) && e.setGrabCursor(false);
|
|
1605
1605
|
const m = Ce(), v = m - i.touchStartTime;
|
|
1606
1606
|
if (e.allowClick) {
|
|
1607
1607
|
const b = s.path || s.composedPath && s.composedPath();
|
|
1608
1608
|
e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), v < 300 && m - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
|
|
1609
1609
|
}
|
|
1610
1610
|
if (i.lastClickTime = Ce(), Ve(() => {
|
|
1611
|
-
e.destroyed || (e.allowClick =
|
|
1611
|
+
e.destroyed || (e.allowClick = true);
|
|
1612
1612
|
}), !i.isTouched || !i.isMoved || !e.swipeDirection || o.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
|
|
1613
|
-
i.isTouched =
|
|
1613
|
+
i.isTouched = false, i.isMoved = false, i.startMoving = false;
|
|
1614
1614
|
return;
|
|
1615
1615
|
}
|
|
1616
|
-
i.isTouched =
|
|
1616
|
+
i.isTouched = false, i.isMoved = false, i.startMoving = false;
|
|
1617
1617
|
let w;
|
|
1618
1618
|
if (d.followFinger ? w = c ? e.translate : -e.translate : w = -i.currentTranslate, d.cssMode)
|
|
1619
1619
|
return;
|
|
@@ -1658,9 +1658,9 @@ function et() {
|
|
|
1658
1658
|
allowSlidePrev: r,
|
|
1659
1659
|
snapGrid: n
|
|
1660
1660
|
} = t, d = t.virtual && t.params.virtual.enabled;
|
|
1661
|
-
t.allowSlideNext =
|
|
1661
|
+
t.allowSlideNext = true, t.allowSlidePrev = true, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
|
|
1662
1662
|
const o = d && e.loop;
|
|
1663
|
-
(e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !o ? t.slideTo(t.slides.length - 1, 0,
|
|
1663
|
+
(e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !o ? t.slideTo(t.slides.length - 1, 0, false, true) : t.params.loop && !d ? t.slideToLoop(t.realIndex, 0, false, true) : t.slideTo(t.activeIndex, 0, false, true), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
|
|
1664
1664
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
1665
1665
|
}, 500)), t.allowSlidePrev = r, t.allowSlideNext = s, t.params.watchOverflow && n !== t.snapGrid && t.checkOverflow();
|
|
1666
1666
|
}
|
|
@@ -1678,7 +1678,7 @@ function Ci() {
|
|
|
1678
1678
|
t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
|
|
1679
1679
|
let r;
|
|
1680
1680
|
const n = t.maxTranslate() - t.minTranslate();
|
|
1681
|
-
n === 0 ? r = 0 : r = (t.translate - t.minTranslate()) / n, r !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate,
|
|
1681
|
+
n === 0 ? r = 0 : r = (t.translate - t.minTranslate()) / n, r !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, false);
|
|
1682
1682
|
}
|
|
1683
1683
|
function Mi(t) {
|
|
1684
1684
|
const e = this;
|
|
@@ -1686,7 +1686,7 @@ function Mi(t) {
|
|
|
1686
1686
|
}
|
|
1687
1687
|
function Pi() {
|
|
1688
1688
|
const t = this;
|
|
1689
|
-
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded =
|
|
1689
|
+
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = true, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1690
1690
|
}
|
|
1691
1691
|
const dt = (t, e) => {
|
|
1692
1692
|
const i = Z(), {
|
|
@@ -1696,34 +1696,34 @@ const dt = (t, e) => {
|
|
|
1696
1696
|
device: d
|
|
1697
1697
|
} = t, o = !!s.nested, c = e === "on" ? "addEventListener" : "removeEventListener", f = e;
|
|
1698
1698
|
!r || typeof r == "string" || (i[c]("touchstart", t.onDocumentTouchStart, {
|
|
1699
|
-
passive:
|
|
1699
|
+
passive: false,
|
|
1700
1700
|
capture: o
|
|
1701
1701
|
}), r[c]("touchstart", t.onTouchStart, {
|
|
1702
|
-
passive:
|
|
1702
|
+
passive: false
|
|
1703
1703
|
}), r[c]("pointerdown", t.onTouchStart, {
|
|
1704
|
-
passive:
|
|
1704
|
+
passive: false
|
|
1705
1705
|
}), i[c]("touchmove", t.onTouchMove, {
|
|
1706
|
-
passive:
|
|
1706
|
+
passive: false,
|
|
1707
1707
|
capture: o
|
|
1708
1708
|
}), i[c]("pointermove", t.onTouchMove, {
|
|
1709
|
-
passive:
|
|
1709
|
+
passive: false,
|
|
1710
1710
|
capture: o
|
|
1711
1711
|
}), i[c]("touchend", t.onTouchEnd, {
|
|
1712
|
-
passive:
|
|
1712
|
+
passive: true
|
|
1713
1713
|
}), i[c]("pointerup", t.onTouchEnd, {
|
|
1714
|
-
passive:
|
|
1714
|
+
passive: true
|
|
1715
1715
|
}), i[c]("pointercancel", t.onTouchEnd, {
|
|
1716
|
-
passive:
|
|
1716
|
+
passive: true
|
|
1717
1717
|
}), i[c]("touchcancel", t.onTouchEnd, {
|
|
1718
|
-
passive:
|
|
1718
|
+
passive: true
|
|
1719
1719
|
}), i[c]("pointerout", t.onTouchEnd, {
|
|
1720
|
-
passive:
|
|
1720
|
+
passive: true
|
|
1721
1721
|
}), i[c]("pointerleave", t.onTouchEnd, {
|
|
1722
|
-
passive:
|
|
1722
|
+
passive: true
|
|
1723
1723
|
}), i[c]("contextmenu", t.onTouchEnd, {
|
|
1724
|
-
passive:
|
|
1725
|
-
}), (s.preventClicks || s.preventClicksPropagation) && r[c]("click", t.onClick,
|
|
1726
|
-
capture:
|
|
1724
|
+
passive: true
|
|
1725
|
+
}), (s.preventClicks || s.preventClicksPropagation) && r[c]("click", t.onClick, true), s.cssMode && n[c]("scroll", t.onScroll), s.updateOnWindowResize ? t[f](d.ios || d.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", et, true) : t[f]("observerUpdate", et, true), r[c]("load", t.onLoad, {
|
|
1726
|
+
capture: true
|
|
1727
1727
|
}));
|
|
1728
1728
|
};
|
|
1729
1729
|
function Li() {
|
|
@@ -1767,7 +1767,7 @@ function Oi() {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
function Ai(t, e, i) {
|
|
1769
1769
|
if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
|
|
1770
|
-
let s =
|
|
1770
|
+
let s = false;
|
|
1771
1771
|
const r = k(), n = e === "window" ? r.innerHeight : i.clientHeight, d = Object.keys(t).map((o) => {
|
|
1772
1772
|
if (typeof o == "string" && o.indexOf("@") === 0) {
|
|
1773
1773
|
const c = parseFloat(o.substr(1));
|
|
@@ -1856,43 +1856,43 @@ function Yi() {
|
|
|
1856
1856
|
t.isLocked = t.size > n;
|
|
1857
1857
|
} else
|
|
1858
1858
|
t.isLocked = t.snapGrid.length === 1;
|
|
1859
|
-
i.allowSlideNext ===
|
|
1859
|
+
i.allowSlideNext === true && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === true && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = false), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
|
|
1860
1860
|
}
|
|
1861
1861
|
var Xi = {
|
|
1862
1862
|
checkOverflow: Yi
|
|
1863
1863
|
}, Fe = {
|
|
1864
|
-
init:
|
|
1864
|
+
init: true,
|
|
1865
1865
|
direction: "horizontal",
|
|
1866
|
-
oneWayMovement:
|
|
1866
|
+
oneWayMovement: false,
|
|
1867
1867
|
swiperElementNodeName: "SWIPER-CONTAINER",
|
|
1868
1868
|
touchEventsTarget: "wrapper",
|
|
1869
1869
|
initialSlide: 0,
|
|
1870
1870
|
speed: 300,
|
|
1871
|
-
cssMode:
|
|
1872
|
-
updateOnWindowResize:
|
|
1873
|
-
resizeObserver:
|
|
1874
|
-
nested:
|
|
1875
|
-
createElements:
|
|
1871
|
+
cssMode: false,
|
|
1872
|
+
updateOnWindowResize: true,
|
|
1873
|
+
resizeObserver: true,
|
|
1874
|
+
nested: false,
|
|
1875
|
+
createElements: false,
|
|
1876
1876
|
eventsPrefix: "swiper",
|
|
1877
|
-
enabled:
|
|
1877
|
+
enabled: true,
|
|
1878
1878
|
focusableElements: "input, select, option, textarea, button, video, label",
|
|
1879
1879
|
// Overrides
|
|
1880
1880
|
width: null,
|
|
1881
1881
|
height: null,
|
|
1882
1882
|
//
|
|
1883
|
-
preventInteractionOnTransition:
|
|
1883
|
+
preventInteractionOnTransition: false,
|
|
1884
1884
|
// ssr
|
|
1885
1885
|
userAgent: null,
|
|
1886
1886
|
url: null,
|
|
1887
1887
|
// To support iOS's swipe-to-go-back gesture (when being used in-app).
|
|
1888
|
-
edgeSwipeDetection:
|
|
1888
|
+
edgeSwipeDetection: false,
|
|
1889
1889
|
edgeSwipeThreshold: 20,
|
|
1890
1890
|
// Autoheight
|
|
1891
|
-
autoHeight:
|
|
1891
|
+
autoHeight: false,
|
|
1892
1892
|
// Set wrapper width
|
|
1893
|
-
setWrapperSize:
|
|
1893
|
+
setWrapperSize: false,
|
|
1894
1894
|
// Virtual Translate
|
|
1895
|
-
virtualTranslate:
|
|
1895
|
+
virtualTranslate: false,
|
|
1896
1896
|
// Effects
|
|
1897
1897
|
effect: "slide",
|
|
1898
1898
|
// 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
|
|
@@ -1904,64 +1904,64 @@ var Xi = {
|
|
|
1904
1904
|
slidesPerView: 1,
|
|
1905
1905
|
slidesPerGroup: 1,
|
|
1906
1906
|
slidesPerGroupSkip: 0,
|
|
1907
|
-
slidesPerGroupAuto:
|
|
1908
|
-
centeredSlides:
|
|
1909
|
-
centeredSlidesBounds:
|
|
1907
|
+
slidesPerGroupAuto: false,
|
|
1908
|
+
centeredSlides: false,
|
|
1909
|
+
centeredSlidesBounds: false,
|
|
1910
1910
|
slidesOffsetBefore: 0,
|
|
1911
1911
|
// in px
|
|
1912
1912
|
slidesOffsetAfter: 0,
|
|
1913
1913
|
// in px
|
|
1914
|
-
normalizeSlideIndex:
|
|
1915
|
-
centerInsufficientSlides:
|
|
1914
|
+
normalizeSlideIndex: true,
|
|
1915
|
+
centerInsufficientSlides: false,
|
|
1916
1916
|
// Disable swiper and hide navigation when container not overflow
|
|
1917
|
-
watchOverflow:
|
|
1917
|
+
watchOverflow: true,
|
|
1918
1918
|
// Round length
|
|
1919
|
-
roundLengths:
|
|
1919
|
+
roundLengths: false,
|
|
1920
1920
|
// Touches
|
|
1921
1921
|
touchRatio: 1,
|
|
1922
1922
|
touchAngle: 45,
|
|
1923
|
-
simulateTouch:
|
|
1924
|
-
shortSwipes:
|
|
1925
|
-
longSwipes:
|
|
1923
|
+
simulateTouch: true,
|
|
1924
|
+
shortSwipes: true,
|
|
1925
|
+
longSwipes: true,
|
|
1926
1926
|
longSwipesRatio: 0.5,
|
|
1927
1927
|
longSwipesMs: 300,
|
|
1928
|
-
followFinger:
|
|
1929
|
-
allowTouchMove:
|
|
1928
|
+
followFinger: true,
|
|
1929
|
+
allowTouchMove: true,
|
|
1930
1930
|
threshold: 5,
|
|
1931
|
-
touchMoveStopPropagation:
|
|
1932
|
-
touchStartPreventDefault:
|
|
1933
|
-
touchStartForcePreventDefault:
|
|
1934
|
-
touchReleaseOnEdges:
|
|
1931
|
+
touchMoveStopPropagation: false,
|
|
1932
|
+
touchStartPreventDefault: true,
|
|
1933
|
+
touchStartForcePreventDefault: false,
|
|
1934
|
+
touchReleaseOnEdges: false,
|
|
1935
1935
|
// Unique Navigation Elements
|
|
1936
|
-
uniqueNavElements:
|
|
1936
|
+
uniqueNavElements: true,
|
|
1937
1937
|
// Resistance
|
|
1938
|
-
resistance:
|
|
1938
|
+
resistance: true,
|
|
1939
1939
|
resistanceRatio: 0.85,
|
|
1940
1940
|
// Progress
|
|
1941
|
-
watchSlidesProgress:
|
|
1941
|
+
watchSlidesProgress: false,
|
|
1942
1942
|
// Cursor
|
|
1943
|
-
grabCursor:
|
|
1943
|
+
grabCursor: false,
|
|
1944
1944
|
// Clicks
|
|
1945
|
-
preventClicks:
|
|
1946
|
-
preventClicksPropagation:
|
|
1947
|
-
slideToClickedSlide:
|
|
1945
|
+
preventClicks: true,
|
|
1946
|
+
preventClicksPropagation: true,
|
|
1947
|
+
slideToClickedSlide: false,
|
|
1948
1948
|
// loop
|
|
1949
|
-
loop:
|
|
1950
|
-
loopAddBlankSlides:
|
|
1949
|
+
loop: false,
|
|
1950
|
+
loopAddBlankSlides: true,
|
|
1951
1951
|
loopAdditionalSlides: 0,
|
|
1952
|
-
loopPreventsSliding:
|
|
1952
|
+
loopPreventsSliding: true,
|
|
1953
1953
|
// rewind
|
|
1954
|
-
rewind:
|
|
1954
|
+
rewind: false,
|
|
1955
1955
|
// Swiping/no swiping
|
|
1956
|
-
allowSlidePrev:
|
|
1957
|
-
allowSlideNext:
|
|
1956
|
+
allowSlidePrev: true,
|
|
1957
|
+
allowSlideNext: true,
|
|
1958
1958
|
swipeHandler: null,
|
|
1959
1959
|
// '.swipe-handler',
|
|
1960
|
-
noSwiping:
|
|
1960
|
+
noSwiping: true,
|
|
1961
1961
|
noSwipingClass: "swiper-no-swiping",
|
|
1962
1962
|
noSwipingSelector: null,
|
|
1963
1963
|
// Passive Listeners
|
|
1964
|
-
passiveListeners:
|
|
1964
|
+
passiveListeners: true,
|
|
1965
1965
|
maxBackfaceHiddenSlides: 10,
|
|
1966
1966
|
// NS
|
|
1967
1967
|
containerModifierClass: "swiper-",
|
|
@@ -1977,9 +1977,9 @@ var Xi = {
|
|
|
1977
1977
|
lazyPreloaderClass: "swiper-lazy-preloader",
|
|
1978
1978
|
lazyPreloadPrevNext: 0,
|
|
1979
1979
|
// Callbacks
|
|
1980
|
-
runCallbacksOnInit:
|
|
1980
|
+
runCallbacksOnInit: true,
|
|
1981
1981
|
// Internals
|
|
1982
|
-
_emitClasses:
|
|
1982
|
+
_emitClasses: false
|
|
1983
1983
|
};
|
|
1984
1984
|
function Ri(t, e) {
|
|
1985
1985
|
return function(s) {
|
|
@@ -1989,14 +1989,14 @@ function Ri(t, e) {
|
|
|
1989
1989
|
j(e, s);
|
|
1990
1990
|
return;
|
|
1991
1991
|
}
|
|
1992
|
-
if (t[r] ===
|
|
1993
|
-
enabled:
|
|
1994
|
-
}), r === "navigation" && t[r] && t[r].enabled && !t[r].prevEl && !t[r].nextEl && (t[r].auto =
|
|
1992
|
+
if (t[r] === true && (t[r] = {
|
|
1993
|
+
enabled: true
|
|
1994
|
+
}), r === "navigation" && t[r] && t[r].enabled && !t[r].prevEl && !t[r].nextEl && (t[r].auto = true), ["pagination", "scrollbar"].indexOf(r) >= 0 && t[r] && t[r].enabled && !t[r].el && (t[r].auto = true), !(r in t && "enabled" in n)) {
|
|
1995
1995
|
j(e, s);
|
|
1996
1996
|
return;
|
|
1997
1997
|
}
|
|
1998
|
-
typeof t[r] == "object" && !("enabled" in t[r]) && (t[r].enabled =
|
|
1999
|
-
enabled:
|
|
1998
|
+
typeof t[r] == "object" && !("enabled" in t[r]) && (t[r].enabled = true), t[r] || (t[r] = {
|
|
1999
|
+
enabled: false
|
|
2000
2000
|
}), j(e, s);
|
|
2001
2001
|
};
|
|
2002
2002
|
}
|
|
@@ -2030,7 +2030,7 @@ let qe = class J {
|
|
|
2030
2030
|
}), u;
|
|
2031
2031
|
}
|
|
2032
2032
|
const o = this;
|
|
2033
|
-
o.__swiper__ =
|
|
2033
|
+
o.__swiper__ = true, o.support = rt(), o.device = at({
|
|
2034
2034
|
userAgent: i.userAgent
|
|
2035
2035
|
}), o.browser = lt(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], i.modules && Array.isArray(i.modules) && o.modules.push(...i.modules);
|
|
2036
2036
|
const c = {};
|
|
@@ -2069,14 +2069,14 @@ let qe = class J {
|
|
|
2069
2069
|
activeIndex: 0,
|
|
2070
2070
|
realIndex: 0,
|
|
2071
2071
|
//
|
|
2072
|
-
isBeginning:
|
|
2073
|
-
isEnd:
|
|
2072
|
+
isBeginning: true,
|
|
2073
|
+
isEnd: false,
|
|
2074
2074
|
// Props
|
|
2075
2075
|
translate: 0,
|
|
2076
2076
|
previousTranslate: 0,
|
|
2077
2077
|
progress: 0,
|
|
2078
2078
|
velocity: 0,
|
|
2079
|
-
animating:
|
|
2079
|
+
animating: false,
|
|
2080
2080
|
cssOverflowAdjustment() {
|
|
2081
2081
|
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
|
|
2082
2082
|
},
|
|
@@ -2106,7 +2106,7 @@ let qe = class J {
|
|
|
2106
2106
|
touchId: null
|
|
2107
2107
|
},
|
|
2108
2108
|
// Clicks
|
|
2109
|
-
allowClick:
|
|
2109
|
+
allowClick: true,
|
|
2110
2110
|
// Touches
|
|
2111
2111
|
allowTouchMove: o.params.allowTouchMove,
|
|
2112
2112
|
touches: {
|
|
@@ -2152,11 +2152,11 @@ let qe = class J {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
enable() {
|
|
2154
2154
|
const e = this;
|
|
2155
|
-
e.enabled || (e.enabled =
|
|
2155
|
+
e.enabled || (e.enabled = true, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
|
|
2156
2156
|
}
|
|
2157
2157
|
disable() {
|
|
2158
2158
|
const e = this;
|
|
2159
|
-
e.enabled && (e.enabled =
|
|
2159
|
+
e.enabled && (e.enabled = false, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
|
|
2160
2160
|
}
|
|
2161
2161
|
setProgress(e, i) {
|
|
2162
2162
|
const s = this;
|
|
@@ -2187,7 +2187,7 @@ let qe = class J {
|
|
|
2187
2187
|
}), e.emit("_slideClasses", i);
|
|
2188
2188
|
}
|
|
2189
2189
|
slidesPerViewDynamic(e, i) {
|
|
2190
|
-
e === void 0 && (e = "current"), i === void 0 && (i =
|
|
2190
|
+
e === void 0 && (e = "current"), i === void 0 && (i = false);
|
|
2191
2191
|
const s = this, {
|
|
2192
2192
|
params: r,
|
|
2193
2193
|
slides: n,
|
|
@@ -2201,9 +2201,9 @@ let qe = class J {
|
|
|
2201
2201
|
if (r.centeredSlides) {
|
|
2202
2202
|
let m = n[f] ? Math.ceil(n[f].swiperSlideSize) : 0, v;
|
|
2203
2203
|
for (let w = f + 1; w < n.length; w += 1)
|
|
2204
|
-
n[w] && !v && (m += Math.ceil(n[w].swiperSlideSize), u += 1, m > c && (v =
|
|
2204
|
+
n[w] && !v && (m += Math.ceil(n[w].swiperSlideSize), u += 1, m > c && (v = true));
|
|
2205
2205
|
for (let w = f - 1; w >= 0; w -= 1)
|
|
2206
|
-
n[w] && !v && (m += n[w].swiperSlideSize, u += 1, m > c && (v =
|
|
2206
|
+
n[w] && !v && (m += n[w].swiperSlideSize, u += 1, m > c && (v = true));
|
|
2207
2207
|
} else if (e === "current")
|
|
2208
2208
|
for (let m = f + 1; m < n.length; m += 1)
|
|
2209
2209
|
(i ? d[m] + o[m] - d[f] < c : d[m] - d[f] < c) && (u += 1);
|
|
@@ -2232,15 +2232,15 @@ let qe = class J {
|
|
|
2232
2232
|
else {
|
|
2233
2233
|
if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) {
|
|
2234
2234
|
const d = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides;
|
|
2235
|
-
n = e.slideTo(d.length - 1, 0,
|
|
2235
|
+
n = e.slideTo(d.length - 1, 0, false, true);
|
|
2236
2236
|
} else
|
|
2237
|
-
n = e.slideTo(e.activeIndex, 0,
|
|
2237
|
+
n = e.slideTo(e.activeIndex, 0, false, true);
|
|
2238
2238
|
n || r();
|
|
2239
2239
|
}
|
|
2240
2240
|
s.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
|
|
2241
2241
|
}
|
|
2242
2242
|
changeDirection(e, i) {
|
|
2243
|
-
i === void 0 && (i =
|
|
2243
|
+
i === void 0 && (i = true);
|
|
2244
2244
|
const s = this, r = s.params.direction;
|
|
2245
2245
|
return e || (e = r === "horizontal" ? "vertical" : "horizontal"), e === r || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${r}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((n) => {
|
|
2246
2246
|
e === "vertical" ? n.style.width = "" : n.style.height = "";
|
|
@@ -2252,11 +2252,11 @@ let qe = class J {
|
|
|
2252
2252
|
}
|
|
2253
2253
|
mount(e) {
|
|
2254
2254
|
const i = this;
|
|
2255
|
-
if (i.mounted) return
|
|
2255
|
+
if (i.mounted) return true;
|
|
2256
2256
|
let s = e || i.params.el;
|
|
2257
2257
|
if (typeof s == "string" && (s = document.querySelector(s)), !s)
|
|
2258
|
-
return
|
|
2259
|
-
s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement =
|
|
2258
|
+
return false;
|
|
2259
|
+
s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = true);
|
|
2260
2260
|
const r = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
|
|
2261
2261
|
let d = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(r()) : q(s, r())[0];
|
|
2262
2262
|
return !d && i.params.createElements && (d = fe("div", i.params.wrapperClass), s.append(d), q(s, `.${i.params.slideClass}`).forEach((o) => {
|
|
@@ -2266,37 +2266,37 @@ let qe = class J {
|
|
|
2266
2266
|
wrapperEl: d,
|
|
2267
2267
|
slidesEl: i.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : d,
|
|
2268
2268
|
hostEl: i.isElement ? s.parentNode.host : s,
|
|
2269
|
-
mounted:
|
|
2269
|
+
mounted: true,
|
|
2270
2270
|
// RTL
|
|
2271
2271
|
rtl: s.dir.toLowerCase() === "rtl" || ne(s, "direction") === "rtl",
|
|
2272
2272
|
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || ne(s, "direction") === "rtl"),
|
|
2273
2273
|
wrongRTL: ne(d, "display") === "-webkit-box"
|
|
2274
|
-
}),
|
|
2274
|
+
}), true;
|
|
2275
2275
|
}
|
|
2276
2276
|
init(e) {
|
|
2277
2277
|
const i = this;
|
|
2278
|
-
if (i.initialized || i.mount(e) ===
|
|
2279
|
-
i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit,
|
|
2278
|
+
if (i.initialized || i.mount(e) === false) return i;
|
|
2279
|
+
i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit, false, true) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, false, true), i.params.loop && i.loopCreate(void 0, true), i.attachEvents();
|
|
2280
2280
|
const r = [...i.el.querySelectorAll('[loading="lazy"]')];
|
|
2281
2281
|
return i.isElement && r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), r.forEach((n) => {
|
|
2282
2282
|
n.complete ? Te(i, n) : n.addEventListener("load", (d) => {
|
|
2283
2283
|
Te(i, d.target);
|
|
2284
2284
|
});
|
|
2285
|
-
}), Ne(i), i.initialized =
|
|
2285
|
+
}), Ne(i), i.initialized = true, Ne(i), i.emit("init"), i.emit("afterInit"), i;
|
|
2286
2286
|
}
|
|
2287
2287
|
destroy(e, i) {
|
|
2288
|
-
e === void 0 && (e =
|
|
2288
|
+
e === void 0 && (e = true), i === void 0 && (i = true);
|
|
2289
2289
|
const s = this, {
|
|
2290
2290
|
params: r,
|
|
2291
2291
|
el: n,
|
|
2292
2292
|
wrapperEl: d,
|
|
2293
2293
|
slides: o
|
|
2294
2294
|
} = s;
|
|
2295
|
-
return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized =
|
|
2295
|
+
return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = false, s.detachEvents(), r.loop && s.loopDestroy(), i && (s.removeClasses(), n && typeof n != "string" && n.removeAttribute("style"), d && d.removeAttribute("style"), o && o.length && o.forEach((c) => {
|
|
2296
2296
|
c.classList.remove(r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), c.removeAttribute("style"), c.removeAttribute("data-swiper-slide-index");
|
|
2297
2297
|
})), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((c) => {
|
|
2298
2298
|
s.off(c);
|
|
2299
|
-
}), e !==
|
|
2299
|
+
}), e !== false && (s.el && typeof s.el != "string" && (s.el.swiper = null), Ct(s)), s.destroyed = true), null;
|
|
2300
2300
|
}
|
|
2301
2301
|
static extendDefaults(e) {
|
|
2302
2302
|
j(Re, e);
|
|
@@ -2489,30 +2489,30 @@ function Wi(t) {
|
|
|
2489
2489
|
thumbs: l
|
|
2490
2490
|
} = e;
|
|
2491
2491
|
let S, g, p, h, E, b, L, I;
|
|
2492
|
-
r.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && u.thumbs && (!u.thumbs.swiper || u.thumbs.swiper.destroyed) && (S =
|
|
2492
|
+
r.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && u.thumbs && (!u.thumbs.swiper || u.thumbs.swiper.destroyed) && (S = true), r.includes("controller") && s.controller && s.controller.control && u.controller && !u.controller.control && (g = true), r.includes("pagination") && s.pagination && (s.pagination.el || c) && (u.pagination || u.pagination === false) && m && !m.el && (p = true), r.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (u.scrollbar || u.scrollbar === false) && w && !w.el && (h = true), r.includes("navigation") && s.navigation && (s.navigation.prevEl || d) && (s.navigation.nextEl || n) && (u.navigation || u.navigation === false) && v && !v.prevEl && !v.nextEl && (E = true);
|
|
2493
2493
|
const z = (y) => {
|
|
2494
2494
|
e[y] && (e[y].destroy(), y === "navigation" ? (e.isElement && (e[y].prevEl.remove(), e[y].nextEl.remove()), u[y].prevEl = void 0, u[y].nextEl = void 0, e[y].prevEl = void 0, e[y].nextEl = void 0) : (e.isElement && e[y].el.remove(), u[y].el = void 0, e[y].el = void 0));
|
|
2495
2495
|
};
|
|
2496
|
-
r.includes("loop") && e.isElement && (u.loop && !s.loop ? b =
|
|
2496
|
+
r.includes("loop") && e.isElement && (u.loop && !s.loop ? b = true : !u.loop && s.loop ? L = true : I = true), f.forEach((y) => {
|
|
2497
2497
|
if (ae(u[y]) && ae(s[y]))
|
|
2498
2498
|
Object.assign(u[y], s[y]), (y === "navigation" || y === "pagination" || y === "scrollbar") && "enabled" in s[y] && !s[y].enabled && z(y);
|
|
2499
2499
|
else {
|
|
2500
2500
|
const T = s[y];
|
|
2501
|
-
(T ===
|
|
2501
|
+
(T === true || T === false) && (y === "navigation" || y === "pagination" || y === "scrollbar") ? T === false && z(y) : u[y] = s[y];
|
|
2502
2502
|
}
|
|
2503
|
-
}), f.includes("controller") && !g && e.controller && e.controller.control && u.controller && u.controller.control && (e.controller.control = u.controller.control), r.includes("children") && i && a && u.virtual.enabled ? (a.slides = i, a.update(
|
|
2503
|
+
}), f.includes("controller") && !g && e.controller && e.controller.control && u.controller && u.controller.control && (e.controller.control = u.controller.control), r.includes("children") && i && a && u.virtual.enabled ? (a.slides = i, a.update(true)) : r.includes("virtual") && a && u.virtual.enabled && (i && (a.slides = i), a.update(true)), r.includes("children") && i && u.loop && (I = true), S && l.init() && l.update(true), g && (e.controller.control = u.controller.control), p && (e.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), e.el.appendChild(c)), c && (u.pagination.el = c), m.init(), m.render(), m.update()), h && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (u.scrollbar.el = o), w.init(), w.updateSize(), w.setTranslate()), E && (e.isElement && ((!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-next"), n.innerHTML = e.hostEl.constructor.nextButtonSvg, n.part.add("button-next"), e.el.appendChild(n)), (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-prev"), d.innerHTML = e.hostEl.constructor.prevButtonSvg, d.part.add("button-prev"), e.el.appendChild(d))), n && (u.navigation.nextEl = n), d && (u.navigation.prevEl = d), v.init(), v.update()), r.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), r.includes("direction") && e.changeDirection(s.direction, false), (b || I) && e.loopDestroy(), (L || I) && e.loopCreate(), e.update();
|
|
2504
2504
|
}
|
|
2505
2505
|
function ki(t, e) {
|
|
2506
|
-
t === void 0 && (t = {}), e === void 0 && (e =
|
|
2506
|
+
t === void 0 && (t = {}), e === void 0 && (e = true);
|
|
2507
2507
|
const i = {
|
|
2508
2508
|
on: {}
|
|
2509
2509
|
}, s = {}, r = {};
|
|
2510
|
-
ce(i, Fe), i._emitClasses =
|
|
2510
|
+
ce(i, Fe), i._emitClasses = true, i.init = false;
|
|
2511
2511
|
const n = {}, d = ct.map((c) => c.replace(/_/, "")), o = Object.assign({}, t);
|
|
2512
2512
|
return Object.keys(o).forEach((c) => {
|
|
2513
2513
|
typeof t[c] > "u" || (d.indexOf(c) >= 0 ? ae(t[c]) ? (i[c] = {}, r[c] = {}, ce(i[c], t[c]), ce(r[c], t[c])) : (i[c] = t[c], r[c] = t[c]) : c.search(/on[A-Z]/) === 0 && typeof t[c] == "function" ? e ? s[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : i.on[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : n[c] = t[c]);
|
|
2514
2514
|
}), ["navigation", "pagination", "scrollbar"].forEach((c) => {
|
|
2515
|
-
i[c] ===
|
|
2515
|
+
i[c] === true && (i[c] = {}), i[c] === false && delete i[c];
|
|
2516
2516
|
}), {
|
|
2517
2517
|
params: i,
|
|
2518
2518
|
passedParams: r,
|
|
@@ -2629,8 +2629,8 @@ const it = /* @__PURE__ */ R.createContext(null), Ui = /* @__PURE__ */ R.createC
|
|
|
2629
2629
|
children: n,
|
|
2630
2630
|
onSwiper: d,
|
|
2631
2631
|
...o
|
|
2632
|
-
} = t === void 0 ? {} : t, c =
|
|
2633
|
-
const [f, u] = R.useState("swiper"), [m, v] = R.useState(null), [w, a] = R.useState(
|
|
2632
|
+
} = t === void 0 ? {} : t, c = false;
|
|
2633
|
+
const [f, u] = R.useState("swiper"), [m, v] = R.useState(null), [w, a] = R.useState(false), l = R.useRef(false), S = R.useRef(null), g = R.useRef(null), p = R.useRef(null), h = R.useRef(null), E = R.useRef(null), b = R.useRef(null), L = R.useRef(null), I = R.useRef(null), {
|
|
2634
2634
|
params: z,
|
|
2635
2635
|
passedParams: y,
|
|
2636
2636
|
rest: T,
|
|
@@ -2647,17 +2647,17 @@ const it = /* @__PURE__ */ R.createContext(null), Ui = /* @__PURE__ */ R.createC
|
|
|
2647
2647
|
}
|
|
2648
2648
|
});
|
|
2649
2649
|
const _ = () => {
|
|
2650
|
-
Object.assign(z.on, P), c =
|
|
2650
|
+
Object.assign(z.on, P), c = true;
|
|
2651
2651
|
const G = {
|
|
2652
2652
|
...z
|
|
2653
2653
|
};
|
|
2654
2654
|
if (delete G.wrapperClass, g.current = new qe(G), g.current.virtual && g.current.params.virtual.enabled) {
|
|
2655
2655
|
g.current.virtual.slides = O;
|
|
2656
2656
|
const H = {
|
|
2657
|
-
cache:
|
|
2657
|
+
cache: false,
|
|
2658
2658
|
slides: O,
|
|
2659
2659
|
renderExternal: v,
|
|
2660
|
-
renderExternalUpdate:
|
|
2660
|
+
renderExternalUpdate: false
|
|
2661
2661
|
};
|
|
2662
2662
|
ce(g.current.params.virtual, H), ce(g.current.originalParams.virtual, H);
|
|
2663
2663
|
}
|
|
@@ -2675,7 +2675,7 @@ const it = /* @__PURE__ */ R.createContext(null), Ui = /* @__PURE__ */ R.createC
|
|
|
2675
2675
|
R.useEffect(() => () => {
|
|
2676
2676
|
g.current && g.current.off("_beforeBreakpoint", $);
|
|
2677
2677
|
}), R.useEffect(() => {
|
|
2678
|
-
!l.current && g.current && (g.current.emitSlidesClasses(), l.current =
|
|
2678
|
+
!l.current && g.current && (g.current.emitSlidesClasses(), l.current = true);
|
|
2679
2679
|
}), we(() => {
|
|
2680
2680
|
if (e && (e.current = S.current), !!S.current)
|
|
2681
2681
|
return g.current.destroyed && _(), Hi({
|
|
@@ -2686,7 +2686,7 @@ const it = /* @__PURE__ */ R.createContext(null), Ui = /* @__PURE__ */ R.createC
|
|
|
2686
2686
|
scrollbarEl: I.current,
|
|
2687
2687
|
swiper: g.current
|
|
2688
2688
|
}, z), d && !g.current.destroyed && d(g.current), () => {
|
|
2689
|
-
g.current && !g.current.destroyed && g.current.destroy(
|
|
2689
|
+
g.current && !g.current.destroyed && g.current.destroy(true, false);
|
|
2690
2690
|
};
|
|
2691
2691
|
}, []), we(() => {
|
|
2692
2692
|
A();
|
|
@@ -2746,7 +2746,7 @@ const wt = /* @__PURE__ */ R.forwardRef(function(t, e) {
|
|
|
2746
2746
|
swiperSlideIndex: f,
|
|
2747
2747
|
...u
|
|
2748
2748
|
} = t === void 0 ? {} : t;
|
|
2749
|
-
const m = R.useRef(null), [v, w] = R.useState("swiper-slide"), [a, l] = R.useState(
|
|
2749
|
+
const m = R.useRef(null), [v, w] = R.useState("swiper-slide"), [a, l] = R.useState(false);
|
|
2750
2750
|
function S(E, b, L) {
|
|
2751
2751
|
b === m.current && w(L);
|
|
2752
2752
|
}
|
|
@@ -2769,7 +2769,7 @@ const wt = /* @__PURE__ */ R.forwardRef(function(t, e) {
|
|
|
2769
2769
|
isPrev: v.indexOf("swiper-slide-prev") >= 0,
|
|
2770
2770
|
isNext: v.indexOf("swiper-slide-next") >= 0
|
|
2771
2771
|
}, p = () => typeof s == "function" ? s(g) : s, h = () => {
|
|
2772
|
-
l(
|
|
2772
|
+
l(true);
|
|
2773
2773
|
};
|
|
2774
2774
|
return /* @__PURE__ */ V.createElement(i, Le({
|
|
2775
2775
|
ref: m,
|
|
@@ -2799,12 +2799,12 @@ function Ki(t) {
|
|
|
2799
2799
|
} = t;
|
|
2800
2800
|
i({
|
|
2801
2801
|
virtual: {
|
|
2802
|
-
enabled:
|
|
2802
|
+
enabled: false,
|
|
2803
2803
|
slides: [],
|
|
2804
|
-
cache:
|
|
2804
|
+
cache: true,
|
|
2805
2805
|
renderSlide: null,
|
|
2806
2806
|
renderExternal: null,
|
|
2807
|
-
renderExternalUpdate:
|
|
2807
|
+
renderExternalUpdate: true,
|
|
2808
2808
|
addSlidesBefore: 0,
|
|
2809
2809
|
addSlidesAfter: 0
|
|
2810
2810
|
}
|
|
@@ -2930,7 +2930,7 @@ function Ki(t) {
|
|
|
2930
2930
|
a[l] && e.virtual.slides.push(a[l]);
|
|
2931
2931
|
else
|
|
2932
2932
|
e.virtual.slides.push(a);
|
|
2933
|
-
f(
|
|
2933
|
+
f(true);
|
|
2934
2934
|
}
|
|
2935
2935
|
function m(a) {
|
|
2936
2936
|
const l = e.activeIndex;
|
|
@@ -2948,7 +2948,7 @@ function Ki(t) {
|
|
|
2948
2948
|
L && b.setAttribute("data-swiper-slide-index", parseInt(L, 10) + g), h[parseInt(E, 10) + g] = b;
|
|
2949
2949
|
}), e.virtual.cache = h;
|
|
2950
2950
|
}
|
|
2951
|
-
f(
|
|
2951
|
+
f(true), e.slideTo(S, 0);
|
|
2952
2952
|
}
|
|
2953
2953
|
function v(a) {
|
|
2954
2954
|
if (typeof a > "u" || a === null) return;
|
|
@@ -2962,21 +2962,21 @@ function Ki(t) {
|
|
|
2962
2962
|
e.params.virtual.cache && (delete e.virtual.cache[a], Object.keys(e.virtual.cache).forEach((S) => {
|
|
2963
2963
|
S > a && (e.virtual.cache[S - 1] = e.virtual.cache[S], e.virtual.cache[S - 1].setAttribute("data-swiper-slide-index", S - 1), delete e.virtual.cache[S]);
|
|
2964
2964
|
})), e.virtual.slides.splice(a, 1), a < l && (l -= 1), l = Math.max(l, 0);
|
|
2965
|
-
f(
|
|
2965
|
+
f(true), e.slideTo(l, 0);
|
|
2966
2966
|
}
|
|
2967
2967
|
function w() {
|
|
2968
|
-
e.virtual.slides = [], e.params.virtual.cache && (e.virtual.cache = {}), f(
|
|
2968
|
+
e.virtual.slides = [], e.params.virtual.cache && (e.virtual.cache = {}), f(true), e.slideTo(0, 0);
|
|
2969
2969
|
}
|
|
2970
2970
|
s("beforeInit", () => {
|
|
2971
2971
|
if (!e.params.virtual.enabled) return;
|
|
2972
2972
|
let a;
|
|
2973
2973
|
if (typeof e.passedParams.virtual.slides > "u") {
|
|
2974
2974
|
const l = [...e.slidesEl.children].filter((S) => S.matches(`.${e.params.slideClass}, swiper-slide`));
|
|
2975
|
-
l && l.length && (e.virtual.slides = [...l], a =
|
|
2975
|
+
l && l.length && (e.virtual.slides = [...l], a = true, l.forEach((S, g) => {
|
|
2976
2976
|
S.setAttribute("data-swiper-slide-index", g), e.virtual.cache[g] = S, S.remove();
|
|
2977
2977
|
}));
|
|
2978
2978
|
}
|
|
2979
|
-
a || (e.virtual.slides = e.params.virtual.slides), e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress =
|
|
2979
|
+
a || (e.virtual.slides = e.params.virtual.slides), e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress = true, e.originalParams.watchSlidesProgress = true, f(false, true);
|
|
2980
2980
|
}), s("setTranslate", () => {
|
|
2981
2981
|
e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(n), n = setTimeout(() => {
|
|
2982
2982
|
f();
|
|
@@ -3000,12 +3000,12 @@ function Zi(t) {
|
|
|
3000
3000
|
} = t;
|
|
3001
3001
|
const n = Z(), d = k();
|
|
3002
3002
|
e.keyboard = {
|
|
3003
|
-
enabled:
|
|
3003
|
+
enabled: false
|
|
3004
3004
|
}, i({
|
|
3005
3005
|
keyboard: {
|
|
3006
|
-
enabled:
|
|
3007
|
-
onlyInViewport:
|
|
3008
|
-
pageUpDown:
|
|
3006
|
+
enabled: false,
|
|
3007
|
+
onlyInViewport: true,
|
|
3008
|
+
pageUpDown: true
|
|
3009
3009
|
}
|
|
3010
3010
|
});
|
|
3011
3011
|
function o(u) {
|
|
@@ -3017,10 +3017,10 @@ function Zi(t) {
|
|
|
3017
3017
|
v.originalEvent && (v = v.originalEvent);
|
|
3018
3018
|
const w = v.keyCode || v.charCode, a = e.params.keyboard.pageUpDown, l = a && w === 33, S = a && w === 34, g = w === 37, p = w === 39, h = w === 38, E = w === 40;
|
|
3019
3019
|
if (!e.allowSlideNext && (e.isHorizontal() && p || e.isVertical() && E || S) || !e.allowSlidePrev && (e.isHorizontal() && g || e.isVertical() && h || l))
|
|
3020
|
-
return
|
|
3020
|
+
return false;
|
|
3021
3021
|
if (!(v.shiftKey || v.altKey || v.ctrlKey || v.metaKey) && !(n.activeElement && n.activeElement.nodeName && (n.activeElement.nodeName.toLowerCase() === "input" || n.activeElement.nodeName.toLowerCase() === "textarea"))) {
|
|
3022
3022
|
if (e.params.keyboard.onlyInViewport && (l || S || g || p || h || E)) {
|
|
3023
|
-
let b =
|
|
3023
|
+
let b = false;
|
|
3024
3024
|
if (re(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && re(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
3025
3025
|
return;
|
|
3026
3026
|
const L = e.el, I = L.clientWidth, z = L.clientHeight, y = d.innerWidth, T = d.innerHeight, P = ke(L);
|
|
@@ -3030,19 +3030,19 @@ function Zi(t) {
|
|
|
3030
3030
|
const $ = O[D];
|
|
3031
3031
|
if ($[0] >= 0 && $[0] <= y && $[1] >= 0 && $[1] <= T) {
|
|
3032
3032
|
if ($[0] === 0 && $[1] === 0) continue;
|
|
3033
|
-
b =
|
|
3033
|
+
b = true;
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
3036
3036
|
if (!b) return;
|
|
3037
3037
|
}
|
|
3038
|
-
e.isHorizontal() ? ((l || S || g || p) && (v.preventDefault ? v.preventDefault() : v.returnValue =
|
|
3038
|
+
e.isHorizontal() ? ((l || S || g || p) && (v.preventDefault ? v.preventDefault() : v.returnValue = false), ((S || p) && !m || (l || g) && m) && e.slideNext(), ((l || g) && !m || (S || p) && m) && e.slidePrev()) : ((l || S || h || E) && (v.preventDefault ? v.preventDefault() : v.returnValue = false), (S || E) && e.slideNext(), (l || h) && e.slidePrev()), r("keyPress", w);
|
|
3039
3039
|
}
|
|
3040
3040
|
}
|
|
3041
3041
|
function c() {
|
|
3042
|
-
e.keyboard.enabled || (n.addEventListener("keydown", o), e.keyboard.enabled =
|
|
3042
|
+
e.keyboard.enabled || (n.addEventListener("keydown", o), e.keyboard.enabled = true);
|
|
3043
3043
|
}
|
|
3044
3044
|
function f() {
|
|
3045
|
-
e.keyboard.enabled && (n.removeEventListener("keydown", o), e.keyboard.enabled =
|
|
3045
|
+
e.keyboard.enabled && (n.removeEventListener("keydown", o), e.keyboard.enabled = false);
|
|
3046
3046
|
}
|
|
3047
3047
|
s("init", () => {
|
|
3048
3048
|
e.params.keyboard.enabled && c();
|
|
@@ -3055,7 +3055,7 @@ function Zi(t) {
|
|
|
3055
3055
|
}
|
|
3056
3056
|
function St(t, e, i, s) {
|
|
3057
3057
|
return t.params.createElements && Object.keys(s).forEach((r) => {
|
|
3058
|
-
if (!i[r] && i.auto ===
|
|
3058
|
+
if (!i[r] && i.auto === true) {
|
|
3059
3059
|
let n = q(t.el, `.${s[r]}`)[0];
|
|
3060
3060
|
n || (n = fe("div", s[r]), n.className = s[r], t.el.append(n)), i[r] = n, e[r] = n;
|
|
3061
3061
|
}
|
|
@@ -3072,7 +3072,7 @@ function Qi(t) {
|
|
|
3072
3072
|
navigation: {
|
|
3073
3073
|
nextEl: null,
|
|
3074
3074
|
prevEl: null,
|
|
3075
|
-
hideOnClick:
|
|
3075
|
+
hideOnClick: false,
|
|
3076
3076
|
disabledClass: "swiper-button-disabled",
|
|
3077
3077
|
hiddenClass: "swiper-button-hidden",
|
|
3078
3078
|
lockClass: "swiper-button-lock",
|
|
@@ -3098,7 +3098,7 @@ function Qi(t) {
|
|
|
3098
3098
|
prevEl: l
|
|
3099
3099
|
} = e.navigation;
|
|
3100
3100
|
if (e.params.loop) {
|
|
3101
|
-
d(l,
|
|
3101
|
+
d(l, false), d(a, false);
|
|
3102
3102
|
return;
|
|
3103
3103
|
}
|
|
3104
3104
|
d(l, e.isBeginning && !e.params.rewind), d(a, e.isEnd && !e.params.rewind);
|
|
@@ -3137,7 +3137,7 @@ function Qi(t) {
|
|
|
3137
3137
|
a.forEach((g) => S(g, "next")), l.forEach((g) => S(g, "prev"));
|
|
3138
3138
|
}
|
|
3139
3139
|
s("init", () => {
|
|
3140
|
-
e.params.navigation.enabled ===
|
|
3140
|
+
e.params.navigation.enabled === false ? w() : (u(), o());
|
|
3141
3141
|
}), s("toEdge fromEdge lock unlock", () => {
|
|
3142
3142
|
o();
|
|
3143
3143
|
}), s("destroy", () => {
|
|
@@ -3167,7 +3167,7 @@ function Qi(t) {
|
|
|
3167
3167
|
if (e.params.navigation.hideOnClick && !h) {
|
|
3168
3168
|
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === p || e.pagination.el.contains(p))) return;
|
|
3169
3169
|
let E;
|
|
3170
|
-
S.length ? E = S[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (E = g[0].classList.contains(e.params.navigation.hiddenClass)), r(E ===
|
|
3170
|
+
S.length ? E = S[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (E = g[0].classList.contains(e.params.navigation.hiddenClass)), r(E === true ? "navigationShow" : "navigationHide"), [...S, ...g].filter((b) => !!b).forEach((b) => b.classList.toggle(e.params.navigation.hiddenClass));
|
|
3171
3171
|
}
|
|
3172
3172
|
});
|
|
3173
3173
|
const v = () => {
|
|
@@ -3198,16 +3198,16 @@ function Ji(t) {
|
|
|
3198
3198
|
pagination: {
|
|
3199
3199
|
el: null,
|
|
3200
3200
|
bulletElement: "span",
|
|
3201
|
-
clickable:
|
|
3202
|
-
hideOnClick:
|
|
3201
|
+
clickable: false,
|
|
3202
|
+
hideOnClick: false,
|
|
3203
3203
|
renderBullet: null,
|
|
3204
3204
|
renderProgressbar: null,
|
|
3205
3205
|
renderFraction: null,
|
|
3206
3206
|
renderCustom: null,
|
|
3207
|
-
progressbarOpposite:
|
|
3207
|
+
progressbarOpposite: false,
|
|
3208
3208
|
type: "bullets",
|
|
3209
3209
|
// 'bullets' or 'progressbar' or 'fraction' or 'custom'
|
|
3210
|
-
dynamicBullets:
|
|
3210
|
+
dynamicBullets: false,
|
|
3211
3211
|
dynamicMainBullets: 1,
|
|
3212
3212
|
formatFractionCurrent: (p) => p,
|
|
3213
3213
|
formatFractionTotal: (p) => p,
|
|
@@ -3361,7 +3361,7 @@ function Ji(t) {
|
|
|
3361
3361
|
E.classList.remove(p.horizontalClass, p.verticalClass), E.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
|
|
3362
3362
|
});
|
|
3363
3363
|
}), s("init", () => {
|
|
3364
|
-
e.params.pagination.enabled ===
|
|
3364
|
+
e.params.pagination.enabled === false ? g() : (a(), w(), v());
|
|
3365
3365
|
}), s("activeIndexChange", () => {
|
|
3366
3366
|
typeof e.snapIndex > "u" && v();
|
|
3367
3367
|
}), s("snapIndexChange", () => {
|
|
@@ -3382,7 +3382,7 @@ function Ji(t) {
|
|
|
3382
3382
|
if (e.params.pagination.el && e.params.pagination.hideOnClick && b && b.length > 0 && !E.classList.contains(e.params.pagination.bulletClass)) {
|
|
3383
3383
|
if (e.navigation && (e.navigation.nextEl && E === e.navigation.nextEl || e.navigation.prevEl && E === e.navigation.prevEl)) return;
|
|
3384
3384
|
const L = b[0].classList.contains(e.params.pagination.hiddenClass);
|
|
3385
|
-
r(L ===
|
|
3385
|
+
r(L === true ? "paginationShow" : "paginationHide"), b.forEach((I) => I.classList.toggle(e.params.pagination.hiddenClass));
|
|
3386
3386
|
}
|
|
3387
3387
|
});
|
|
3388
3388
|
const S = () => {
|
|
@@ -3417,19 +3417,19 @@ function es(t) {
|
|
|
3417
3417
|
const n = k();
|
|
3418
3418
|
i({
|
|
3419
3419
|
zoom: {
|
|
3420
|
-
enabled:
|
|
3421
|
-
limitToOriginalSize:
|
|
3420
|
+
enabled: false,
|
|
3421
|
+
limitToOriginalSize: false,
|
|
3422
3422
|
maxRatio: 3,
|
|
3423
3423
|
minRatio: 1,
|
|
3424
|
-
panOnMouseMove:
|
|
3425
|
-
toggle:
|
|
3424
|
+
panOnMouseMove: false,
|
|
3425
|
+
toggle: true,
|
|
3426
3426
|
containerClass: "swiper-zoom-container",
|
|
3427
3427
|
zoomedSlideClass: "swiper-slide-zoomed"
|
|
3428
3428
|
}
|
|
3429
3429
|
}), e.zoom = {
|
|
3430
|
-
enabled:
|
|
3430
|
+
enabled: false
|
|
3431
3431
|
};
|
|
3432
|
-
let d = 1, o =
|
|
3432
|
+
let d = 1, o = false, c = false, f = {
|
|
3433
3433
|
x: 0,
|
|
3434
3434
|
y: 0
|
|
3435
3435
|
};
|
|
@@ -3514,8 +3514,8 @@ function es(t) {
|
|
|
3514
3514
|
function z(C) {
|
|
3515
3515
|
if (C.pointerType === "mouse" && w.splice(0, w.length), !L(C)) return;
|
|
3516
3516
|
const x = e.params.zoom;
|
|
3517
|
-
if (m =
|
|
3518
|
-
if (m =
|
|
3517
|
+
if (m = false, v = false, w.push(C), !(w.length < 2)) {
|
|
3518
|
+
if (m = true, a.scaleStart = p(), !a.slideEl) {
|
|
3519
3519
|
a.slideEl = C.target.closest(`.${e.params.slideClass}, swiper-slide`), a.slideEl || (a.slideEl = e.slides[e.activeIndex]);
|
|
3520
3520
|
let M = a.slideEl.querySelector(`.${x.containerClass}`);
|
|
3521
3521
|
if (M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = re(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0, !a.imageWrapEl) {
|
|
@@ -3528,32 +3528,32 @@ function es(t) {
|
|
|
3528
3528
|
const [M, B] = E();
|
|
3529
3529
|
a.originX = M, a.originY = B, a.imageEl.style.transitionDuration = "0ms";
|
|
3530
3530
|
}
|
|
3531
|
-
o =
|
|
3531
|
+
o = true;
|
|
3532
3532
|
}
|
|
3533
3533
|
}
|
|
3534
3534
|
function y(C) {
|
|
3535
3535
|
if (!L(C)) return;
|
|
3536
3536
|
const x = e.params.zoom, M = e.zoom, B = w.findIndex((N) => N.pointerId === C.pointerId);
|
|
3537
|
-
B >= 0 && (w[B] = C), !(w.length < 2) && (v =
|
|
3537
|
+
B >= 0 && (w[B] = C), !(w.length < 2) && (v = true, a.scaleMove = p(), a.imageEl && (M.scale = a.scaleMove / a.scaleStart * d, M.scale > a.maxRatio && (M.scale = a.maxRatio - 1 + (M.scale - a.maxRatio + 1) ** 0.5), M.scale < x.minRatio && (M.scale = x.minRatio + 1 - (x.minRatio - M.scale + 1) ** 0.5), a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`));
|
|
3538
3538
|
}
|
|
3539
3539
|
function T(C) {
|
|
3540
3540
|
if (!L(C) || C.pointerType === "mouse" && C.type === "pointerout") return;
|
|
3541
3541
|
const x = e.params.zoom, M = e.zoom, B = w.findIndex((N) => N.pointerId === C.pointerId);
|
|
3542
|
-
B >= 0 && w.splice(B, 1), !(!m || !v) && (m =
|
|
3542
|
+
B >= 0 && w.splice(B, 1), !(!m || !v) && (m = false, v = false, a.imageEl && (M.scale = Math.max(Math.min(M.scale, a.maxRatio), x.minRatio), a.imageEl.style.transitionDuration = `${e.params.speed}ms`, a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`, d = M.scale, o = false, M.scale > 1 && a.slideEl ? a.slideEl.classList.add(`${x.zoomedSlideClass}`) : M.scale <= 1 && a.slideEl && a.slideEl.classList.remove(`${x.zoomedSlideClass}`), M.scale === 1 && (a.originX = 0, a.originY = 0, a.slideEl = void 0)));
|
|
3543
3543
|
}
|
|
3544
3544
|
let P;
|
|
3545
3545
|
function O() {
|
|
3546
|
-
e.touchEventsData.preventTouchMoveFromPointerMove =
|
|
3546
|
+
e.touchEventsData.preventTouchMoveFromPointerMove = false;
|
|
3547
3547
|
}
|
|
3548
3548
|
function D() {
|
|
3549
|
-
clearTimeout(P), e.touchEventsData.preventTouchMoveFromPointerMove =
|
|
3549
|
+
clearTimeout(P), e.touchEventsData.preventTouchMoveFromPointerMove = true, P = setTimeout(() => {
|
|
3550
3550
|
e.destroyed || O();
|
|
3551
3551
|
});
|
|
3552
3552
|
}
|
|
3553
3553
|
function $(C) {
|
|
3554
3554
|
const x = e.device;
|
|
3555
3555
|
if (!a.imageEl || l.isTouched) return;
|
|
3556
|
-
x.android && C.cancelable && C.preventDefault(), l.isTouched =
|
|
3556
|
+
x.android && C.cancelable && C.preventDefault(), l.isTouched = true;
|
|
3557
3557
|
const M = w.length > 0 ? w[0] : C;
|
|
3558
3558
|
l.touchesStart.x = M.pageX, l.touchesStart.y = M.pageY;
|
|
3559
3559
|
}
|
|
@@ -3574,17 +3574,17 @@ function es(t) {
|
|
|
3574
3574
|
}
|
|
3575
3575
|
l.isMoved || (l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, l.startX = We(a.imageWrapEl, "x") || 0, l.startY = We(a.imageWrapEl, "y") || 0, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight, a.imageWrapEl.style.transitionDuration = "0ms");
|
|
3576
3576
|
const N = l.width * B.scale, te = l.height * B.scale;
|
|
3577
|
-
if (l.minX = Math.min(a.slideWidth / 2 - N / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - te / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = w.length > 0 ? w[0].pageX : C.pageX, l.touchesCurrent.y = w.length > 0 ? w[0].pageY : C.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick =
|
|
3577
|
+
if (l.minX = Math.min(a.slideWidth / 2 - N / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - te / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = w.length > 0 ? w[0].pageX : C.pageX, l.touchesCurrent.y = w.length > 0 ? w[0].pageY : C.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = false), !l.isMoved && !o) {
|
|
3578
3578
|
if (e.isHorizontal() && (Math.floor(l.minX) === Math.floor(l.startX) && l.touchesCurrent.x < l.touchesStart.x || Math.floor(l.maxX) === Math.floor(l.startX) && l.touchesCurrent.x > l.touchesStart.x)) {
|
|
3579
|
-
l.isTouched =
|
|
3579
|
+
l.isTouched = false, O();
|
|
3580
3580
|
return;
|
|
3581
3581
|
}
|
|
3582
3582
|
if (!e.isHorizontal() && (Math.floor(l.minY) === Math.floor(l.startY) && l.touchesCurrent.y < l.touchesStart.y || Math.floor(l.maxY) === Math.floor(l.startY) && l.touchesCurrent.y > l.touchesStart.y)) {
|
|
3583
|
-
l.isTouched =
|
|
3583
|
+
l.isTouched = false, O();
|
|
3584
3584
|
return;
|
|
3585
3585
|
}
|
|
3586
3586
|
}
|
|
3587
|
-
C.cancelable && C.preventDefault(), C.stopPropagation(), D(), l.isMoved =
|
|
3587
|
+
C.cancelable && C.preventDefault(), C.stopPropagation(), D(), l.isMoved = true;
|
|
3588
3588
|
const Q = (B.scale - d) / (a.maxRatio - e.params.zoom.minRatio), {
|
|
3589
3589
|
originX: se,
|
|
3590
3590
|
originY: F
|
|
@@ -3595,10 +3595,10 @@ function es(t) {
|
|
|
3595
3595
|
const C = e.zoom;
|
|
3596
3596
|
if (w.length = 0, !a.imageEl) return;
|
|
3597
3597
|
if (!l.isTouched || !l.isMoved) {
|
|
3598
|
-
l.isTouched =
|
|
3598
|
+
l.isTouched = false, l.isMoved = false;
|
|
3599
3599
|
return;
|
|
3600
3600
|
}
|
|
3601
|
-
l.isTouched =
|
|
3601
|
+
l.isTouched = false, l.isMoved = false;
|
|
3602
3602
|
let x = 300, M = 300;
|
|
3603
3603
|
const B = S.x * x, N = l.currentX + B, te = S.y * M, ie = l.currentY + te;
|
|
3604
3604
|
S.x !== 0 && (x = Math.abs((N - l.currentX) / S.x)), S.y !== 0 && (M = Math.abs((ie - l.currentY) / S.y));
|
|
@@ -3615,7 +3615,7 @@ function es(t) {
|
|
|
3615
3615
|
if (d <= 1 || !a.imageWrapEl || !L(C) || !I(C)) return;
|
|
3616
3616
|
const x = n.getComputedStyle(a.imageWrapEl).transform, M = new n.DOMMatrix(x);
|
|
3617
3617
|
if (!c) {
|
|
3618
|
-
c =
|
|
3618
|
+
c = true, f.x = C.clientX, f.y = C.clientY, l.startX = M.e, l.startY = M.f, l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight;
|
|
3619
3619
|
return;
|
|
3620
3620
|
}
|
|
3621
3621
|
const B = (C.clientX - f.x) * u, N = (C.clientY - f.y) * u, te = l.width * d, ie = l.height * d, Q = a.slideWidth, se = a.slideHeight, F = Math.min(Q / 2 - te / 2, 0), U = -F, pe = Math.min(se / 2 - ie / 2, 0), Ee = -pe, le = Math.max(Math.min(l.startX + B, U), F), oe = Math.max(Math.min(l.startY + N, Ee), pe);
|
|
@@ -3647,7 +3647,7 @@ function es(t) {
|
|
|
3647
3647
|
!a.imageEl || !a.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), C.scale = 1, d = 1, l.currentX = void 0, l.currentY = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = "translate3d(0,0,0)", a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = "translate3d(0,0,0) scale(1)", a.slideEl.classList.remove(`${x.zoomedSlideClass}`), a.slideEl = void 0, a.originX = 0, a.originY = 0, e.params.zoom.panOnMouseMove && (f = {
|
|
3648
3648
|
x: 0,
|
|
3649
3649
|
y: 0
|
|
3650
|
-
}, c && (c =
|
|
3650
|
+
}, c && (c = false, l.startX = 0, l.startY = 0)));
|
|
3651
3651
|
}
|
|
3652
3652
|
function K(C) {
|
|
3653
3653
|
const x = e.zoom;
|
|
@@ -3655,12 +3655,12 @@ function es(t) {
|
|
|
3655
3655
|
}
|
|
3656
3656
|
function ee() {
|
|
3657
3657
|
const C = e.params.passiveListeners ? {
|
|
3658
|
-
passive:
|
|
3659
|
-
capture:
|
|
3660
|
-
} :
|
|
3661
|
-
passive:
|
|
3662
|
-
capture:
|
|
3663
|
-
} :
|
|
3658
|
+
passive: true,
|
|
3659
|
+
capture: false
|
|
3660
|
+
} : false, x = e.params.passiveListeners ? {
|
|
3661
|
+
passive: false,
|
|
3662
|
+
capture: true
|
|
3663
|
+
} : true;
|
|
3664
3664
|
return {
|
|
3665
3665
|
passiveListener: C,
|
|
3666
3666
|
activeListenerWithCapture: x
|
|
@@ -3669,7 +3669,7 @@ function es(t) {
|
|
|
3669
3669
|
function ue() {
|
|
3670
3670
|
const C = e.zoom;
|
|
3671
3671
|
if (C.enabled) return;
|
|
3672
|
-
C.enabled =
|
|
3672
|
+
C.enabled = true;
|
|
3673
3673
|
const {
|
|
3674
3674
|
passiveListener: x,
|
|
3675
3675
|
activeListenerWithCapture: M
|
|
@@ -3681,7 +3681,7 @@ function es(t) {
|
|
|
3681
3681
|
function Se() {
|
|
3682
3682
|
const C = e.zoom;
|
|
3683
3683
|
if (!C.enabled) return;
|
|
3684
|
-
C.enabled =
|
|
3684
|
+
C.enabled = false;
|
|
3685
3685
|
const {
|
|
3686
3686
|
passiveListener: x,
|
|
3687
3687
|
activeListenerWithCapture: M
|
|
@@ -3718,11 +3718,11 @@ const rs = (t) => {
|
|
|
3718
3718
|
children: s,
|
|
3719
3719
|
height: r,
|
|
3720
3720
|
forceKeyboardNavigation: n
|
|
3721
|
-
} = t, d = n === void 0 ?
|
|
3721
|
+
} = t, d = n === void 0 ? false : n, o = V.useRef(null), [c, f] = V.useState(false);
|
|
3722
3722
|
let u;
|
|
3723
3723
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = () => {
|
|
3724
|
-
var
|
|
3725
|
-
document.fullscreenElement ? (
|
|
3724
|
+
var _a, _b;
|
|
3725
|
+
document.fullscreenElement ? (_a = o.current) == null ? void 0 : _a.swiper.keyboard.enable() : (_b = o.current) == null ? void 0 : _b.swiper.keyboard.disable(), f(!!document.fullscreenElement);
|
|
3726
3726
|
}, e[0] = u) : u = e[0], bt(document, "fullscreenchange", u);
|
|
3727
3727
|
let m;
|
|
3728
3728
|
e[1] !== c ? (m = [c], e[1] = c, e[2] = m) : m = e[2], R.useEffect(is, m);
|
|
@@ -3744,7 +3744,7 @@ const rs = (t) => {
|
|
|
3744
3744
|
}, e[9] = g, e[10] = p) : p = e[10];
|
|
3745
3745
|
let h;
|
|
3746
3746
|
e[11] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
3747
|
-
clickable:
|
|
3747
|
+
clickable: true
|
|
3748
3748
|
}, e[11] = h) : h = e[11];
|
|
3749
3749
|
let E;
|
|
3750
3750
|
if (e[12] !== s || e[13] !== c) {
|
|
@@ -3757,13 +3757,13 @@ const rs = (t) => {
|
|
|
3757
3757
|
if (!o.current)
|
|
3758
3758
|
return;
|
|
3759
3759
|
const y = o.current;
|
|
3760
|
-
document.fullscreenElement ? (await document.exitFullscreen(), f(
|
|
3760
|
+
document.fullscreenElement ? (await document.exitFullscreen(), f(false)) : (await y.requestFullscreen(), f(true));
|
|
3761
3761
|
}, e[17] = b) : b = e[17];
|
|
3762
3762
|
const L = c ? "Exit Fullscreen" : "Fullscreen";
|
|
3763
3763
|
let I;
|
|
3764
3764
|
e[18] !== L ? (I = /* @__PURE__ */ he.jsx(xt, { variant: "link", size: "sm", "data-testid": "marimo-plugin-slides-fullscreen", onClick: b, className: "absolute bottom-0 right-0 z-10 mx-1 mb-0", children: L }), e[18] = L, e[19] = I) : I = e[19];
|
|
3765
3765
|
let z;
|
|
3766
|
-
return e[20] !== p || e[21] !== E || e[22] !== I || e[23] !== v || e[24] !== a ? (z = /* @__PURE__ */ he.jsxs(vt, { ref: o, className: v, spaceBetween: 50, style: a, slidesPerView: 1, modules: l, zoom: S, simulateTouch:
|
|
3766
|
+
return e[20] !== p || e[21] !== E || e[22] !== I || e[23] !== v || e[24] !== a ? (z = /* @__PURE__ */ he.jsxs(vt, { ref: o, className: v, spaceBetween: 50, style: a, slidesPerView: 1, modules: l, zoom: S, simulateTouch: false, keyboard: p, navigation: true, pagination: h, virtual: true, speed: 1, children: [
|
|
3767
3767
|
E,
|
|
3768
3768
|
I
|
|
3769
3769
|
] }), e[20] = p, e[21] = E, e[22] = I, e[23] = v, e[24] = a, e[25] = z) : z = e[25], z;
|