@leshi/silicon 0.0.2 → 0.0.4
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/components/ActivitySwitcher.d.ts +4 -1
- package/dist/components/PreCashier/index.d.ts +3 -0
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.esm.js +2668 -16
- package/dist/utils/common.d.ts +17 -0
- package/dist/utils/index.cjs.js +2 -2
- package/dist/utils/index.esm.js +29 -10
- package/package.json +11 -10
|
@@ -1,24 +1,2676 @@
|
|
|
1
1
|
import { jsonp as e } from "../utils/index.esm.js";
|
|
2
|
-
import { Fragment as t,
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, h as l, nextTick as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, onBeforeUpdate as m, onMounted as h, onUpdated as g, openBlock as _, provide as v, ref as y, renderList as b, shallowRef as x, toDisplayString as S, unref as C, watch as w, withCtx as T } from "vue";
|
|
3
|
+
import E from "axios";
|
|
3
4
|
//#region src/components/ActivitySwitcher.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
-
let n = e.__vccOpts || e;
|
|
6
|
-
for (let [e, r] of t) n[e] = r;
|
|
7
|
-
return n;
|
|
8
|
-
})(/* @__PURE__ */ i({
|
|
5
|
+
var D = ["onClick"], O = /*@__PURE__*/ c({
|
|
9
6
|
__name: "ActivitySwitcher",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
props: { title: {} },
|
|
8
|
+
setup(n) {
|
|
9
|
+
let r = n, i = y([]), o = y("transparent"), s = y(""), c = async () => {
|
|
10
|
+
let t = (await e("https://static-api.letv.com/blockNew/get?id=2005992")).data.blockContent.filter((e) => e.playPlatform[420024]);
|
|
11
|
+
i.value = t;
|
|
12
|
+
let n = t.find((e) => e.title === r.title);
|
|
13
|
+
n && (o.value = n.shorDesc.split(";")[0], s.value = n.shorDesc.split(";")[1]);
|
|
14
|
+
}, l = (e) => {
|
|
15
15
|
window.location.href = e;
|
|
16
16
|
};
|
|
17
|
-
return
|
|
17
|
+
return h(c), (e, n) => (_(), a("div", {
|
|
18
|
+
class: "activitySwitcher",
|
|
19
|
+
style: f({
|
|
20
|
+
backgroundColor: o.value,
|
|
21
|
+
color: s.value
|
|
22
|
+
})
|
|
23
|
+
}, [(_(!0), a(t, null, b(i.value, (e) => (_(), a("div", {
|
|
24
|
+
class: d(e.title === r.title ? "active" : ""),
|
|
18
25
|
key: e.id,
|
|
19
|
-
onClick: (t) =>
|
|
20
|
-
},
|
|
26
|
+
onClick: (t) => l(e.url)
|
|
27
|
+
}, S(e.title), 11, D))), 128))], 4));
|
|
28
|
+
}
|
|
29
|
+
}), k = (e, t) => {
|
|
30
|
+
let n = e.__vccOpts || e;
|
|
31
|
+
for (let [e, r] of t) n[e] = r;
|
|
32
|
+
return n;
|
|
33
|
+
}, A = /*#__PURE__*/ k(O, [["__scopeId", "data-v-dbd89127"]]);
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region node_modules/swiper/shared/utils.mjs
|
|
36
|
+
function j(e = "") {
|
|
37
|
+
return e.trim().split(" ").filter((e) => !!e.trim());
|
|
38
|
+
}
|
|
39
|
+
function M(e) {
|
|
40
|
+
Object.keys(e).forEach((t) => {
|
|
41
|
+
try {
|
|
42
|
+
e[t] = null;
|
|
43
|
+
} catch {}
|
|
44
|
+
try {
|
|
45
|
+
delete e[t];
|
|
46
|
+
} catch {}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function N(e, t = 0) {
|
|
50
|
+
return setTimeout(e, t);
|
|
51
|
+
}
|
|
52
|
+
function P() {
|
|
53
|
+
return Date.now();
|
|
54
|
+
}
|
|
55
|
+
function F(e) {
|
|
56
|
+
return window.getComputedStyle(e, null);
|
|
57
|
+
}
|
|
58
|
+
function ee(e, t = "x") {
|
|
59
|
+
let n = F(e), r = n.transform || n.webkitTransform;
|
|
60
|
+
if (!r || r === "none") return 0;
|
|
61
|
+
let i = new DOMMatrixReadOnly(r);
|
|
62
|
+
return t === "x" ? i.m41 : i.m42;
|
|
63
|
+
}
|
|
64
|
+
function I(e) {
|
|
65
|
+
return typeof e == "object" && !!e && e.constructor === Object && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
66
|
+
}
|
|
67
|
+
function te(e) {
|
|
68
|
+
return typeof HTMLElement < "u" && e instanceof HTMLElement || !!e && typeof e == "object" && (e.nodeType === 1 || e.nodeType === 11);
|
|
69
|
+
}
|
|
70
|
+
function L(e, ...t) {
|
|
71
|
+
let n = Object(e);
|
|
72
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
73
|
+
let r = t[e];
|
|
74
|
+
if (r == null || te(r)) continue;
|
|
75
|
+
let i = r, a = Object.keys(Object(i)).filter((e) => e !== "__proto__" && e !== "constructor" && e !== "prototype");
|
|
76
|
+
for (let e of a) {
|
|
77
|
+
let t = Object.getOwnPropertyDescriptor(i, e);
|
|
78
|
+
if (!t || !t.enumerable) continue;
|
|
79
|
+
let r = i[e];
|
|
80
|
+
I(n[e]) && I(r) ? r.__swiper__ ? n[e] = r : L(n[e], r) : !I(n[e]) && I(r) ? (n[e] = {}, r.__swiper__ ? n[e] = r : L(n[e], r)) : n[e] = r;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return n;
|
|
84
|
+
}
|
|
85
|
+
function R(e, t, n) {
|
|
86
|
+
e.style.setProperty(t, n);
|
|
87
|
+
}
|
|
88
|
+
function z(e, t = "") {
|
|
89
|
+
let n = [...e.children];
|
|
90
|
+
return e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((e) => e.matches(t)) : n;
|
|
91
|
+
}
|
|
92
|
+
function ne(e, t) {
|
|
93
|
+
let n = [t];
|
|
94
|
+
for (; n.length > 0;) {
|
|
95
|
+
let t = n.shift();
|
|
96
|
+
if (e === t) return !0;
|
|
97
|
+
n.push(...t.children, ...t.shadowRoot ? t.shadowRoot.children : [], ...t.assignedElements ? t.assignedElements() : []);
|
|
98
|
+
}
|
|
99
|
+
return !1;
|
|
100
|
+
}
|
|
101
|
+
function re(e, t) {
|
|
102
|
+
let n = t.contains(e);
|
|
103
|
+
return !n && t instanceof HTMLSlotElement && (n = [...t.assignedElements()].includes(e), n ||= ne(e, t)), n;
|
|
104
|
+
}
|
|
105
|
+
function B(e) {
|
|
106
|
+
try {
|
|
107
|
+
console.warn(e);
|
|
108
|
+
} catch {}
|
|
109
|
+
}
|
|
110
|
+
function V(e, t = []) {
|
|
111
|
+
let n = document.createElement(e);
|
|
112
|
+
return n.classList.add(...Array.isArray(t) ? t : j(t)), n;
|
|
113
|
+
}
|
|
114
|
+
function ie(e, t) {
|
|
115
|
+
let n = [], r = e.previousElementSibling;
|
|
116
|
+
for (; r;) (!t || r.matches(t)) && n.push(r), r = r.previousElementSibling;
|
|
117
|
+
return n;
|
|
118
|
+
}
|
|
119
|
+
function ae(e, t) {
|
|
120
|
+
let n = [], r = e.nextElementSibling;
|
|
121
|
+
for (; r;) (!t || r.matches(t)) && n.push(r), r = r.nextElementSibling;
|
|
122
|
+
return n;
|
|
123
|
+
}
|
|
124
|
+
function H(e, t) {
|
|
125
|
+
return window.getComputedStyle(e, null).getPropertyValue(t);
|
|
126
|
+
}
|
|
127
|
+
function oe(e) {
|
|
128
|
+
if (!(!e || !e.parentNode)) return [...e.parentNode.children].indexOf(e);
|
|
129
|
+
}
|
|
130
|
+
function se(e, t) {
|
|
131
|
+
let n = [], r = e.parentElement;
|
|
132
|
+
for (; r;) (!t || r.matches(t)) && n.push(r), r = r.parentElement;
|
|
133
|
+
return n;
|
|
134
|
+
}
|
|
135
|
+
function U(e, t, n) {
|
|
136
|
+
{
|
|
137
|
+
let n = window.getComputedStyle(e, null);
|
|
138
|
+
return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(n.getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(n.getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function ce(e, t = "") {
|
|
142
|
+
let n = globalThis.trustedTypes;
|
|
143
|
+
n === void 0 ? e.innerHTML = t : e.innerHTML = n.createPolicy("html", { createHTML: (e) => e }).createHTML(t);
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region node_modules/swiper/shared/update-swiper.mjs
|
|
147
|
+
var le = /* @__PURE__ */ "eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.swiperElementNodeName.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints.breakpointsBase._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._snapToSlideEdge._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopAdditionalSlides.loopAddBlankSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideFullyVisibleClass.slideNextClass.slidePrevClass.slideBlankClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control".split(".");
|
|
148
|
+
function W(e) {
|
|
149
|
+
if (typeof e != "object" || !e) return !1;
|
|
150
|
+
let t = e;
|
|
151
|
+
return !!t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
|
152
|
+
}
|
|
153
|
+
function G(e, t) {
|
|
154
|
+
let n = [
|
|
155
|
+
"__proto__",
|
|
156
|
+
"constructor",
|
|
157
|
+
"prototype"
|
|
158
|
+
], r = e, i = t;
|
|
159
|
+
return Object.keys(i).filter((e) => n.indexOf(e) < 0).forEach((e) => {
|
|
160
|
+
let t = i[e], n = r[e];
|
|
161
|
+
n === void 0 ? r[e] = t : W(t) && W(n) && Object.keys(t).length > 0 ? t.__swiper__ ? r[e] = t : G(n, t) : r[e] = t;
|
|
162
|
+
}), e;
|
|
163
|
+
}
|
|
164
|
+
function ue(e = {}) {
|
|
165
|
+
let t = e.navigation;
|
|
166
|
+
return t ? t === !0 || t.nextEl === void 0 && t.prevEl === void 0 : !1;
|
|
167
|
+
}
|
|
168
|
+
function de(e = {}) {
|
|
169
|
+
let t = e.pagination;
|
|
170
|
+
return t ? t === !0 || t.el === void 0 : !1;
|
|
171
|
+
}
|
|
172
|
+
function fe(e = {}) {
|
|
173
|
+
let t = e.scrollbar;
|
|
174
|
+
return t ? t === !0 || t.el === void 0 : !1;
|
|
175
|
+
}
|
|
176
|
+
function pe(e = "") {
|
|
177
|
+
let t = e.split(" ").map((e) => e.trim()).filter((e) => !!e), n = [];
|
|
178
|
+
return t.forEach((e) => {
|
|
179
|
+
n.indexOf(e) < 0 && n.push(e);
|
|
180
|
+
}), n.join(" ");
|
|
181
|
+
}
|
|
182
|
+
function me(e = "") {
|
|
183
|
+
return e ? e.includes("swiper-wrapper") ? e : `swiper-wrapper ${e}` : "swiper-wrapper";
|
|
184
|
+
}
|
|
185
|
+
function he(e) {
|
|
186
|
+
let { nextEl: t, prevEl: n, scrollbarEl: r, paginationEl: i } = e, { swiper: a, slides: o, passedParams: s, changedParams: c } = e, l = c.filter((e) => e !== "children" && e !== "direction" && e !== "wrapperClass"), { params: u, pagination: d, navigation: f, scrollbar: p, virtual: m, thumbs: h } = a, g = s, _ = u, v, y, b, x, S, C, w, T, E = g.thumbs, D = _.thumbs;
|
|
187
|
+
c.includes("thumbs") && W(E) && E.swiper && !E.swiper.destroyed && W(D) && (!D.swiper || D.swiper.destroyed) && (v = !0);
|
|
188
|
+
let O = g.controller, k = _.controller;
|
|
189
|
+
c.includes("controller") && W(O) && O.control && W(k) && !k.control && (y = !0);
|
|
190
|
+
let A = g.pagination;
|
|
191
|
+
c.includes("pagination") && W(A) && (A.el || i) && (_.pagination || _.pagination === !1) && d && !d.el && (b = !0);
|
|
192
|
+
let j = g.scrollbar;
|
|
193
|
+
c.includes("scrollbar") && W(j) && (j.el || r) && (_.scrollbar || _.scrollbar === !1) && p && !p.el && (x = !0);
|
|
194
|
+
let M = g.navigation;
|
|
195
|
+
c.includes("navigation") && W(M) && (M.prevEl || n) && (M.nextEl || t) && (_.navigation || _.navigation === !1) && f && !f.prevEl && !f.nextEl && (S = !0);
|
|
196
|
+
let N = (e) => {
|
|
197
|
+
let t = a[e];
|
|
198
|
+
if (!t) return;
|
|
199
|
+
t.destroy();
|
|
200
|
+
let n = _[e], r = W(n) ? n : void 0;
|
|
201
|
+
e === "navigation" ? (a.isElement && (t.prevEl?.remove(), t.nextEl?.remove()), r && (r.prevEl = void 0, r.nextEl = void 0), t.prevEl = void 0, t.nextEl = void 0) : (a.isElement && t.el?.remove(), r && (r.el = void 0), t.el = void 0);
|
|
202
|
+
};
|
|
203
|
+
if (c.includes("loop") && a.isElement && (u.loop && !s.loop ? C = !0 : !u.loop && s.loop ? w = !0 : T = !0), l.forEach((e) => {
|
|
204
|
+
let t = _[e], n = g[e];
|
|
205
|
+
W(t) && W(n) ? (Object.assign(t, n), (e === "navigation" || e === "pagination" || e === "scrollbar") && "enabled" in n && !n.enabled && N(e)) : (n === !0 || n === !1) && (e === "navigation" || e === "pagination" || e === "scrollbar") ? n === !1 && N(e) : _[e] = n;
|
|
206
|
+
}), l.includes("controller") && !y && a.controller && a.controller.control && W(k) && k.control && (a.controller.control = k.control), c.includes("children") && o && m && u.virtual?.enabled ? (m.slides = o, m.update(!0)) : c.includes("virtual") && m && u.virtual?.enabled && (o && (m.slides = o), m.update(!0)), c.includes("children") && o && u.loop && (T = !0), v && h && h.init() && h.update(!0), y && a.controller && W(k) && (a.controller.control = k.control), b && d) {
|
|
207
|
+
if (a.isElement && (!i || typeof i == "string")) {
|
|
208
|
+
let e = document.createElement("div");
|
|
209
|
+
e.classList.add("swiper-pagination"), e.part.add("pagination"), a.el.appendChild(e), i = e;
|
|
210
|
+
}
|
|
211
|
+
let e = _.pagination;
|
|
212
|
+
i && W(e) && (e.el = i), d.init(), d.render(), d.update();
|
|
213
|
+
}
|
|
214
|
+
if (x && p) {
|
|
215
|
+
if (a.isElement && (!r || typeof r == "string")) {
|
|
216
|
+
let e = document.createElement("div");
|
|
217
|
+
e.classList.add("swiper-scrollbar"), e.part.add("scrollbar"), a.el.appendChild(e), r = e;
|
|
218
|
+
}
|
|
219
|
+
let e = _.scrollbar;
|
|
220
|
+
r && W(e) && (e.el = r), p.init(), p.updateSize(), p.setTranslate();
|
|
221
|
+
}
|
|
222
|
+
if (S && f) {
|
|
223
|
+
if (a.isElement) {
|
|
224
|
+
if (!t || typeof t == "string") {
|
|
225
|
+
let e = document.createElement("div");
|
|
226
|
+
e.classList.add("swiper-button-next"), ce(e, f.arrowSvg), e.part.add("button-next"), a.el.appendChild(e), t = e;
|
|
227
|
+
}
|
|
228
|
+
if (!n || typeof n == "string") {
|
|
229
|
+
let e = document.createElement("div");
|
|
230
|
+
e.classList.add("swiper-button-prev"), ce(e, f.arrowSvg), e.part.add("button-prev"), a.el.appendChild(e), n = e;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
let e = _.navigation;
|
|
234
|
+
t && W(e) && (e.nextEl = t), n && W(e) && (e.prevEl = n), f.init(), f.update();
|
|
235
|
+
}
|
|
236
|
+
c.includes("allowSlideNext") && (a.allowSlideNext = g.allowSlideNext), c.includes("allowSlidePrev") && (a.allowSlidePrev = g.allowSlidePrev), c.includes("direction") && a.changeDirection(g.direction, !1), (C || T) && a.loopDestroy(), (w || T) && a.loopCreate(), a.update();
|
|
237
|
+
}
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region node_modules/swiper/shared/swiper-core.mjs
|
|
240
|
+
var ge;
|
|
241
|
+
function _e() {
|
|
242
|
+
return typeof window > "u" ? { touch: !1 } : { touch: "ontouchstart" in window || navigator.maxTouchPoints > 0 };
|
|
243
|
+
}
|
|
244
|
+
function ve() {
|
|
245
|
+
return ge ||= _e(), ge;
|
|
246
|
+
}
|
|
247
|
+
var ye;
|
|
248
|
+
function be({ userAgent: e } = {}) {
|
|
249
|
+
if (typeof window > "u") return {
|
|
250
|
+
ios: !1,
|
|
251
|
+
android: !1
|
|
252
|
+
};
|
|
253
|
+
let t = ve(), n = navigator.platform, r = e || navigator.userAgent, i = {
|
|
254
|
+
ios: !1,
|
|
255
|
+
android: !1
|
|
256
|
+
}, a = /(Android);?[\s/]+([\d.]+)?/.test(r), o = /(iPhone\sOS|iOS|iPod)/.test(r), s = /iPad/.test(r), c = n === "MacIntel" && t.touch && navigator.maxTouchPoints > 1, l = s || c;
|
|
257
|
+
return a && n !== "Win32" && (i.os = "android", i.android = !0), (l || o) && (i.os = "ios", i.ios = !0), i;
|
|
258
|
+
}
|
|
259
|
+
function xe(e = {}) {
|
|
260
|
+
return ye ||= be(e), ye;
|
|
261
|
+
}
|
|
262
|
+
var Se;
|
|
263
|
+
function Ce() {
|
|
264
|
+
if (typeof window > "u") return {
|
|
265
|
+
isSafari: !1,
|
|
266
|
+
isWebView: !1,
|
|
267
|
+
need3dFix: !1
|
|
268
|
+
};
|
|
269
|
+
let e = xe(), t = navigator.userAgent, n = t.toLowerCase(), r = n.includes("safari") && !n.includes("chrome") && !n.includes("android"), i = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);
|
|
270
|
+
return {
|
|
271
|
+
isSafari: r,
|
|
272
|
+
isWebView: i,
|
|
273
|
+
need3dFix: r || i && e.ios
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
function we() {
|
|
277
|
+
return Se ||= Ce(), Se;
|
|
278
|
+
}
|
|
279
|
+
var K = (e, t) => {
|
|
280
|
+
if (!e || e.destroyed || !e.params) return;
|
|
281
|
+
let n = t.closest(e.isElement ? "swiper-slide" : `.${e.params.slideClass}`);
|
|
282
|
+
if (n) {
|
|
283
|
+
let t = n.querySelector(`.${e.params.lazyPreloaderClass}`);
|
|
284
|
+
!t && e.isElement && (n.shadowRoot ? t = n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
|
|
285
|
+
if (n.shadowRoot) {
|
|
286
|
+
let t = n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);
|
|
287
|
+
t && !t.lazyPreloaderManaged && t.remove();
|
|
288
|
+
}
|
|
289
|
+
})), t && !t.lazyPreloaderManaged && t.remove();
|
|
290
|
+
}
|
|
291
|
+
}, q = (e, t) => {
|
|
292
|
+
if (!e.slides[t]) return;
|
|
293
|
+
let n = e.slides[t].querySelector("[loading=\"lazy\"]");
|
|
294
|
+
n && n.removeAttribute("loading");
|
|
295
|
+
}, J = (e) => {
|
|
296
|
+
if (!e || e.destroyed || !e.params) return;
|
|
297
|
+
let t = e.params.lazyPreloadPrevNext, n = e.slides.length;
|
|
298
|
+
if (!n || !t || t < 0) return;
|
|
299
|
+
t = Math.min(t, n);
|
|
300
|
+
let r = e.params.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(e.params.slidesPerView), i = e.activeIndex;
|
|
301
|
+
if (e.params.grid && (e.params.grid.rows ?? 1) > 1) {
|
|
302
|
+
let n = i, a = [n - t];
|
|
303
|
+
a.push(...Array.from({ length: t }).map((e, t) => n + r + t)), e.slides.forEach((t, n) => {
|
|
304
|
+
t.column !== void 0 && a.includes(t.column) && q(e, n);
|
|
305
|
+
});
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
let a = i + r - 1;
|
|
309
|
+
if (e.params.rewind || e.params.loop) for (let r = i - t; r <= a + t; r += 1) {
|
|
310
|
+
let t = (r % n + n) % n;
|
|
311
|
+
(t < i || t > a) && q(e, t);
|
|
312
|
+
}
|
|
313
|
+
else for (let r = Math.max(i - t, 0); r <= Math.min(a + t, n - 1); r += 1) r !== i && (r > a || r < i) && q(e, r);
|
|
314
|
+
};
|
|
315
|
+
function Te(e, t = "window", n) {
|
|
316
|
+
if (!e || t === "container" && !n) return;
|
|
317
|
+
let r = !1, i = t === "window" ? window.innerHeight : n.clientHeight, a = Object.keys(e).map((e) => {
|
|
318
|
+
if (typeof e == "string" && e.indexOf("@") === 0) {
|
|
319
|
+
let t = parseFloat(e.substr(1));
|
|
320
|
+
return {
|
|
321
|
+
value: i * t,
|
|
322
|
+
point: e
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
return {
|
|
326
|
+
value: e,
|
|
327
|
+
point: e
|
|
328
|
+
};
|
|
329
|
+
});
|
|
330
|
+
a.sort((e, t) => parseInt(String(e.value), 10) - parseInt(String(t.value), 10));
|
|
331
|
+
for (let e = 0; e < a.length; e += 1) {
|
|
332
|
+
let { point: i, value: o } = a[e];
|
|
333
|
+
t === "window" ? window.matchMedia(`(min-width: ${o}px)`).matches && (r = i) : o <= n.clientWidth && (r = i);
|
|
334
|
+
}
|
|
335
|
+
return r || "max";
|
|
336
|
+
}
|
|
337
|
+
var Ee = (e, t) => !!(e.grid && t.grid && t.grid.rows > 1);
|
|
338
|
+
function De() {
|
|
339
|
+
let e = this, { realIndex: t, initialized: n, params: r, el: i } = e, a = r.breakpoints;
|
|
340
|
+
if (!a || a && Object.keys(a).length === 0) return;
|
|
341
|
+
let o = r.breakpointsBase === "window" || !r.breakpointsBase ? r.breakpointsBase : "container", s = ["window", "container"].includes(r.breakpointsBase) || !r.breakpointsBase ? e.el : document.querySelector(r.breakpointsBase), c = e.getBreakpoint(a, o, s);
|
|
342
|
+
if (!c || e.currentBreakpoint === c) return;
|
|
343
|
+
let l = a, u = (c in l ? l[c] : void 0) || e.originalParams, d = Ee(e, r), f = Ee(e, u), p = e.params.grabCursor, m = u.grabCursor, h = r.enabled;
|
|
344
|
+
d && !f ? (i.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), e.emitContainerClasses()) : !d && f && (i.classList.add(`${r.containerModifierClass}grid`), (u.grid.fill && u.grid.fill === "column" || !u.grid.fill && r.grid.fill === "column") && i.classList.add(`${r.containerModifierClass}grid-column`), e.emitContainerClasses()), p && !m ? e.unsetGrabCursor() : !p && m && e.setGrabCursor();
|
|
345
|
+
let g = (e, t) => e[t];
|
|
346
|
+
[
|
|
347
|
+
"navigation",
|
|
348
|
+
"pagination",
|
|
349
|
+
"scrollbar"
|
|
350
|
+
].forEach((t) => {
|
|
351
|
+
let n = g(u, t);
|
|
352
|
+
if (n === void 0) return;
|
|
353
|
+
let i = g(r, t), a = typeof i == "object" && !!i && i.enabled, o = typeof n == "object" && !!n && n.enabled, s = e[t];
|
|
354
|
+
a && !o && s?.disable?.(), !a && o && s?.enable?.();
|
|
355
|
+
});
|
|
356
|
+
let _ = u.direction && u.direction !== r.direction, v = r.loop && (u.slidesPerView !== r.slidesPerView || _), y = r.loop;
|
|
357
|
+
_ && n && e.changeDirection(), L(e.params, u);
|
|
358
|
+
let b = e.params.enabled, x = e.params.loop;
|
|
359
|
+
Object.assign(e, {
|
|
360
|
+
allowTouchMove: e.params.allowTouchMove,
|
|
361
|
+
allowSlideNext: e.params.allowSlideNext,
|
|
362
|
+
allowSlidePrev: e.params.allowSlidePrev
|
|
363
|
+
}), h && !b ? e.disable() : !h && b && e.enable(), e.currentBreakpoint = c, e.emit("_beforeBreakpoint", u), n && (v ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !y && x ? (e.loopCreate(t), e.updateSlides()) : y && !x && e.loopDestroy()), e.emit("breakpoint", u);
|
|
364
|
+
}
|
|
365
|
+
var Oe = {
|
|
366
|
+
setBreakpoint: De,
|
|
367
|
+
getBreakpoint: Te
|
|
368
|
+
};
|
|
369
|
+
function ke() {
|
|
370
|
+
let e = this, { isLocked: t, params: n } = e, { slidesOffsetBefore: r } = n;
|
|
371
|
+
if (r) {
|
|
372
|
+
let t = e.slides.length - 1, n = e.slidesGrid[t] + e.slidesSizesGrid[t] + r * 2;
|
|
373
|
+
e.isLocked = e.size > n;
|
|
374
|
+
} else e.isLocked = e.snapGrid.length === 1;
|
|
375
|
+
n.allowSlideNext === !0 && (e.allowSlideNext = !e.isLocked), n.allowSlidePrev === !0 && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock");
|
|
376
|
+
}
|
|
377
|
+
var Ae = { checkOverflow: ke };
|
|
378
|
+
function je(e, t) {
|
|
379
|
+
let n = [];
|
|
380
|
+
return e.forEach((e) => {
|
|
381
|
+
typeof e == "object" ? Object.keys(e).forEach((r) => {
|
|
382
|
+
e[r] && n.push(t + r);
|
|
383
|
+
}) : typeof e == "string" && n.push(t + e);
|
|
384
|
+
}), n;
|
|
385
|
+
}
|
|
386
|
+
function Me() {
|
|
387
|
+
let e = this, { classNames: t, params: n, rtl: r, el: i, device: a } = e, o = je([
|
|
388
|
+
"initialized",
|
|
389
|
+
n.direction,
|
|
390
|
+
{ "free-mode": e.params.freeMode && n.freeMode.enabled },
|
|
391
|
+
{ autoheight: n.autoHeight },
|
|
392
|
+
{ rtl: r },
|
|
393
|
+
{ grid: n.grid && n.grid.rows > 1 },
|
|
394
|
+
{ "grid-column": n.grid && n.grid.rows > 1 && n.grid.fill === "column" },
|
|
395
|
+
{ android: a.android },
|
|
396
|
+
{ ios: a.ios },
|
|
397
|
+
{ "css-mode": n.cssMode },
|
|
398
|
+
{ centered: n.cssMode && n.centeredSlides },
|
|
399
|
+
{ "watch-progress": n.watchSlidesProgress }
|
|
400
|
+
], n.containerModifierClass);
|
|
401
|
+
t.push(...o), i.classList.add(...t), e.emitContainerClasses();
|
|
402
|
+
}
|
|
403
|
+
function Ne() {
|
|
404
|
+
let e = this, { el: t, classNames: n } = e;
|
|
405
|
+
!t || typeof t == "string" || (t.classList.remove(...n), e.emitContainerClasses());
|
|
406
|
+
}
|
|
407
|
+
var Pe = {
|
|
408
|
+
addClasses: Me,
|
|
409
|
+
removeClasses: Ne
|
|
410
|
+
}, Y = {
|
|
411
|
+
init: !0,
|
|
412
|
+
direction: "horizontal",
|
|
413
|
+
oneWayMovement: !1,
|
|
414
|
+
swiperElementNodeName: "SWIPER-CONTAINER",
|
|
415
|
+
touchEventsTarget: "wrapper",
|
|
416
|
+
initialSlide: 0,
|
|
417
|
+
speed: 300,
|
|
418
|
+
cssMode: !1,
|
|
419
|
+
updateOnWindowResize: !0,
|
|
420
|
+
resizeObserver: !0,
|
|
421
|
+
nested: !1,
|
|
422
|
+
createElements: !1,
|
|
423
|
+
eventsPrefix: "swiper",
|
|
424
|
+
enabled: !0,
|
|
425
|
+
focusableElements: "input, select, option, textarea, button, video, label",
|
|
426
|
+
width: null,
|
|
427
|
+
height: null,
|
|
428
|
+
preventInteractionOnTransition: !1,
|
|
429
|
+
userAgent: null,
|
|
430
|
+
url: null,
|
|
431
|
+
edgeSwipeDetection: !1,
|
|
432
|
+
edgeSwipeThreshold: 20,
|
|
433
|
+
autoHeight: !1,
|
|
434
|
+
setWrapperSize: !1,
|
|
435
|
+
virtualTranslate: !1,
|
|
436
|
+
effect: "slide",
|
|
437
|
+
breakpoints: void 0,
|
|
438
|
+
breakpointsBase: "window",
|
|
439
|
+
spaceBetween: 0,
|
|
440
|
+
slidesPerView: 1,
|
|
441
|
+
slidesPerGroup: 1,
|
|
442
|
+
slidesPerGroupSkip: 0,
|
|
443
|
+
slidesPerGroupAuto: !1,
|
|
444
|
+
centeredSlides: !1,
|
|
445
|
+
centeredSlidesBounds: !1,
|
|
446
|
+
slidesOffsetBefore: 0,
|
|
447
|
+
slidesOffsetAfter: 0,
|
|
448
|
+
normalizeSlideIndex: !0,
|
|
449
|
+
centerInsufficientSlides: !1,
|
|
450
|
+
snapToSlideEdge: !1,
|
|
451
|
+
watchOverflow: !0,
|
|
452
|
+
roundLengths: !1,
|
|
453
|
+
touchRatio: 1,
|
|
454
|
+
touchAngle: 45,
|
|
455
|
+
simulateTouch: !0,
|
|
456
|
+
shortSwipes: !0,
|
|
457
|
+
longSwipes: !0,
|
|
458
|
+
longSwipesRatio: .5,
|
|
459
|
+
longSwipesMs: 300,
|
|
460
|
+
followFinger: !0,
|
|
461
|
+
allowTouchMove: !0,
|
|
462
|
+
threshold: 5,
|
|
463
|
+
touchMoveStopPropagation: !1,
|
|
464
|
+
touchStartPreventDefault: !0,
|
|
465
|
+
touchStartForcePreventDefault: !1,
|
|
466
|
+
touchReleaseOnEdges: !1,
|
|
467
|
+
uniqueNavElements: !0,
|
|
468
|
+
resistance: !0,
|
|
469
|
+
resistanceRatio: .85,
|
|
470
|
+
watchSlidesProgress: !1,
|
|
471
|
+
grabCursor: !1,
|
|
472
|
+
preventClicks: !0,
|
|
473
|
+
preventClicksPropagation: !0,
|
|
474
|
+
slideToClickedSlide: !1,
|
|
475
|
+
loop: !1,
|
|
476
|
+
loopAddBlankSlides: !0,
|
|
477
|
+
loopAdditionalSlides: 0,
|
|
478
|
+
loopPreventsSliding: !0,
|
|
479
|
+
rewind: !1,
|
|
480
|
+
allowSlidePrev: !0,
|
|
481
|
+
allowSlideNext: !0,
|
|
482
|
+
swipeHandler: null,
|
|
483
|
+
noSwiping: !0,
|
|
484
|
+
noSwipingClass: "swiper-no-swiping",
|
|
485
|
+
noSwipingSelector: null,
|
|
486
|
+
passiveListeners: !0,
|
|
487
|
+
maxBackfaceHiddenSlides: 10,
|
|
488
|
+
containerModifierClass: "swiper-",
|
|
489
|
+
slideClass: "swiper-slide",
|
|
490
|
+
slideBlankClass: "swiper-slide-blank",
|
|
491
|
+
slideActiveClass: "swiper-slide-active",
|
|
492
|
+
slideVisibleClass: "swiper-slide-visible",
|
|
493
|
+
slideFullyVisibleClass: "swiper-slide-fully-visible",
|
|
494
|
+
slideNextClass: "swiper-slide-next",
|
|
495
|
+
slidePrevClass: "swiper-slide-prev",
|
|
496
|
+
wrapperClass: "swiper-wrapper",
|
|
497
|
+
lazyPreloaderClass: "swiper-lazy-preloader",
|
|
498
|
+
lazyPreloadPrevNext: 0,
|
|
499
|
+
runCallbacksOnInit: !0,
|
|
500
|
+
_emitClasses: !1
|
|
501
|
+
}, Fe = {
|
|
502
|
+
on(e, t, n) {
|
|
503
|
+
let r = this;
|
|
504
|
+
if (!r.eventsListeners || r.destroyed || typeof t != "function") return r;
|
|
505
|
+
let i = n ? "unshift" : "push";
|
|
506
|
+
return e.split(" ").forEach((e) => {
|
|
507
|
+
r.eventsListeners[e] || (r.eventsListeners[e] = []), r.eventsListeners[e][i](t);
|
|
508
|
+
}), r;
|
|
509
|
+
},
|
|
510
|
+
once(e, t, n) {
|
|
511
|
+
let r = this;
|
|
512
|
+
if (!r.eventsListeners || r.destroyed || typeof t != "function") return r;
|
|
513
|
+
let i = function(...n) {
|
|
514
|
+
r.off(e, i), i.__emitterProxy && delete i.__emitterProxy, t.apply(r, n);
|
|
515
|
+
};
|
|
516
|
+
return i.__emitterProxy = t, r.on(e, i, n);
|
|
517
|
+
},
|
|
518
|
+
onAny(e, t) {
|
|
519
|
+
let n = this;
|
|
520
|
+
if (!n.eventsListeners || n.destroyed || typeof e != "function") return n;
|
|
521
|
+
let r = t ? "unshift" : "push";
|
|
522
|
+
return n.eventsAnyListeners.indexOf(e) < 0 && n.eventsAnyListeners[r](e), n;
|
|
523
|
+
},
|
|
524
|
+
offAny(e) {
|
|
525
|
+
let t = this;
|
|
526
|
+
if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners) return t;
|
|
527
|
+
let n = t.eventsAnyListeners.indexOf(e);
|
|
528
|
+
return n >= 0 && t.eventsAnyListeners.splice(n, 1), t;
|
|
529
|
+
},
|
|
530
|
+
off(e, t) {
|
|
531
|
+
let n = this;
|
|
532
|
+
return !n.eventsListeners || n.destroyed || !n.eventsListeners || e.split(" ").forEach((e) => {
|
|
533
|
+
t === void 0 ? n.eventsListeners[e] = [] : n.eventsListeners[e] && n.eventsListeners[e].forEach((r, i) => {
|
|
534
|
+
(r === t || r.__emitterProxy && r.__emitterProxy === t) && n.eventsListeners[e].splice(i, 1);
|
|
535
|
+
});
|
|
536
|
+
}), n;
|
|
537
|
+
},
|
|
538
|
+
emit(...e) {
|
|
539
|
+
let t = this;
|
|
540
|
+
if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
|
|
541
|
+
let n, r, i;
|
|
542
|
+
if (typeof e[0] == "string" || Array.isArray(e[0])) n = e[0], r = e.slice(1, e.length), i = t;
|
|
543
|
+
else {
|
|
544
|
+
let a = e[0];
|
|
545
|
+
n = a.events, r = a.data ?? [], i = a.context || t;
|
|
546
|
+
}
|
|
547
|
+
return r.unshift(i), (Array.isArray(n) ? n : n.split(" ")).forEach((e) => {
|
|
548
|
+
t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((t) => {
|
|
549
|
+
t.apply(i, [e, ...r]);
|
|
550
|
+
}), t.eventsListeners && t.eventsListeners[e] && t.eventsListeners[e].forEach((e) => {
|
|
551
|
+
e.apply(i, r);
|
|
552
|
+
});
|
|
553
|
+
}), t;
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
function Ie(e) {
|
|
557
|
+
let t = this;
|
|
558
|
+
t.destroyed || t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation())));
|
|
559
|
+
}
|
|
560
|
+
function Le() {
|
|
561
|
+
let e = this;
|
|
562
|
+
e.destroyed || e.documentTouchHandlerProceeded || (e.documentTouchHandlerProceeded = !0, e.params.touchReleaseOnEdges && (e.el.style.touchAction = "auto"));
|
|
563
|
+
}
|
|
564
|
+
function Re(e) {
|
|
565
|
+
let t = this;
|
|
566
|
+
t.destroyed || (K(t, e.target), !(t.params.cssMode || t.params.slidesPerView !== "auto" && !t.params.autoHeight) && t.update());
|
|
567
|
+
}
|
|
568
|
+
function ze() {
|
|
569
|
+
let e = this, { params: t, el: n } = e;
|
|
570
|
+
if (n && n.offsetWidth === 0) return;
|
|
571
|
+
t.breakpoints && e.setBreakpoint();
|
|
572
|
+
let { allowSlideNext: r, allowSlidePrev: i, snapGrid: a } = e, o = e.virtual && e.params.virtual?.enabled;
|
|
573
|
+
e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses();
|
|
574
|
+
let s = o && t.loop;
|
|
575
|
+
if ((t.slidesPerView === "auto" || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides && !s) {
|
|
576
|
+
let t = o ? e.virtual.slides.length : e.slides.length;
|
|
577
|
+
e.slideTo(t - 1, 0, !1, !0);
|
|
578
|
+
} else e.params.loop && !o ? e.slideToLoop(e.realIndex, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0);
|
|
579
|
+
if (e.autoplay && e.autoplay.running && e.autoplay.paused) {
|
|
580
|
+
let t = e.autoplay;
|
|
581
|
+
clearTimeout(t.resizeTimeout), t.resizeTimeout = setTimeout(() => {
|
|
582
|
+
e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume();
|
|
583
|
+
}, 500);
|
|
584
|
+
}
|
|
585
|
+
e.allowSlidePrev = i, e.allowSlideNext = r, e.params.watchOverflow && a !== e.snapGrid && e.checkOverflow();
|
|
586
|
+
}
|
|
587
|
+
function Be() {
|
|
588
|
+
let e = this;
|
|
589
|
+
if (e.destroyed) return;
|
|
590
|
+
let { wrapperEl: t, rtlTranslate: n, enabled: r } = e;
|
|
591
|
+
if (!r) return;
|
|
592
|
+
e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, e.translate === 0 && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
593
|
+
let i, a = e.maxTranslate() - e.minTranslate();
|
|
594
|
+
i = a === 0 ? 0 : (e.translate - e.minTranslate()) / a, i !== e.progress && e.updateProgress(n ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1);
|
|
595
|
+
}
|
|
596
|
+
function Ve(e) {
|
|
597
|
+
let t = this;
|
|
598
|
+
if (t.destroyed) return;
|
|
599
|
+
let n = t.touchEventsData, r = e.originalEvent ?? e;
|
|
600
|
+
if (r.type === "touchend" || r.type === "touchcancel") {
|
|
601
|
+
let e = [...r.changedTouches].find((e) => e.identifier === n.touchId);
|
|
602
|
+
if (!e || e.identifier !== n.touchId) return;
|
|
603
|
+
} else if (n.touchId !== null || r.pointerId !== n.pointerId) return;
|
|
604
|
+
if ([
|
|
605
|
+
"pointercancel",
|
|
606
|
+
"pointerout",
|
|
607
|
+
"pointerleave",
|
|
608
|
+
"contextmenu"
|
|
609
|
+
].includes(r.type) && !(["pointercancel", "contextmenu"].includes(r.type) && (t.browser.isSafari || t.browser.isWebView))) return;
|
|
610
|
+
n.pointerId = null, n.touchId = null;
|
|
611
|
+
let { params: i, touches: a, rtlTranslate: o, slidesGrid: s, enabled: c } = t;
|
|
612
|
+
if (!c || !i.simulateTouch && r.pointerType === "mouse") return;
|
|
613
|
+
if (n.allowTouchCallbacks && t.emit("touchEnd", r), n.allowTouchCallbacks = !1, !n.isTouched) {
|
|
614
|
+
n.isMoved && i.grabCursor && t.setGrabCursor(!1), n.isMoved = !1, n.startMoving = !1;
|
|
615
|
+
return;
|
|
616
|
+
}
|
|
617
|
+
i.grabCursor && n.isMoved && n.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
|
|
618
|
+
let l = P(), u = l - n.touchStartTime;
|
|
619
|
+
if (t.allowClick) {
|
|
620
|
+
let e = r.path ?? (r.composedPath && r.composedPath());
|
|
621
|
+
t.updateClickedSlide(e && e[0], e), t.emit("tap click", r), u < 300 && l - n.lastClickTime < 300 && t.emit("doubleTap doubleClick", r);
|
|
622
|
+
}
|
|
623
|
+
if (n.lastClickTime = P(), N(() => {
|
|
624
|
+
t.destroyed || (t.allowClick = !0);
|
|
625
|
+
}), !n.isTouched || !n.isMoved || !t.swipeDirection || a.diff === 0 && !n.loopSwapReset || n.currentTranslate === n.startTranslate && !n.loopSwapReset) {
|
|
626
|
+
n.isTouched = !1, n.isMoved = !1, n.startMoving = !1;
|
|
627
|
+
return;
|
|
628
|
+
}
|
|
629
|
+
n.isTouched = !1, n.isMoved = !1, n.startMoving = !1;
|
|
630
|
+
let d;
|
|
631
|
+
if (d = i.followFinger ? o ? t.translate : -t.translate : -(n.currentTranslate ?? 0), i.cssMode) return;
|
|
632
|
+
if (i.freeMode && i.freeMode.enabled) {
|
|
633
|
+
t.freeMode.onTouchEnd({ currentPos: d });
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
let f = d >= -t.maxTranslate() && !t.params.loop, p = 0, m = t.slidesSizesGrid[0];
|
|
637
|
+
for (let e = 0; e < s.length; e += e < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
|
|
638
|
+
let t = e < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
639
|
+
s[e + t] === void 0 ? (f || d >= s[e]) && (p = e, m = s[s.length - 1] - s[s.length - 2]) : (f || d >= s[e] && d < s[e + t]) && (p = e, m = s[e + t] - s[e]);
|
|
640
|
+
}
|
|
641
|
+
let h = null, g = null;
|
|
642
|
+
i.rewind && (t.isBeginning ? g = i.virtual?.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (h = 0));
|
|
643
|
+
let _ = (d - s[p]) / m, v = p < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
644
|
+
if (u > i.longSwipesMs) {
|
|
645
|
+
if (!i.longSwipes) {
|
|
646
|
+
t.slideTo(t.activeIndex);
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
t.swipeDirection === "next" && (_ >= i.longSwipesRatio ? t.slideTo(i.rewind && t.isEnd ? h : p + v) : t.slideTo(p)), t.swipeDirection === "prev" && (_ > 1 - i.longSwipesRatio ? t.slideTo(p + v) : g !== null && _ < 0 && Math.abs(_) > i.longSwipesRatio ? t.slideTo(g) : t.slideTo(p));
|
|
650
|
+
} else {
|
|
651
|
+
if (!i.shortSwipes) {
|
|
652
|
+
t.slideTo(t.activeIndex);
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
655
|
+
t.navigation && (r.target === t.navigation.nextEl || r.target === t.navigation.prevEl) ? r.target === t.navigation.nextEl ? t.slideTo(p + v) : t.slideTo(p) : (t.swipeDirection === "next" && t.slideTo(h === null ? p + v : h), t.swipeDirection === "prev" && t.slideTo(g === null ? p : g));
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
function He(e) {
|
|
659
|
+
let t = this;
|
|
660
|
+
if (t.destroyed) return;
|
|
661
|
+
let n = t.touchEventsData, { params: r, touches: i, rtlTranslate: a, enabled: o } = t;
|
|
662
|
+
if (!o || !r.simulateTouch && e.pointerType === "mouse") return;
|
|
663
|
+
let s = e, c = s.originalEvent ?? s;
|
|
664
|
+
if (c.type === "pointermove" && (n.touchId !== null || c.pointerId !== n.pointerId)) return;
|
|
665
|
+
let l;
|
|
666
|
+
if (c.type === "touchmove") {
|
|
667
|
+
let e = [...c.changedTouches].find((e) => e.identifier === n.touchId);
|
|
668
|
+
if (!e || e.identifier !== n.touchId) return;
|
|
669
|
+
l = e;
|
|
670
|
+
} else l = c;
|
|
671
|
+
if (!n.isTouched) {
|
|
672
|
+
n.startMoving && n.isScrolling && t.emit("touchMoveOpposite", c);
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
let u = l.pageX, d = l.pageY;
|
|
676
|
+
if (c.preventedByNestedSwiper) {
|
|
677
|
+
i.startX = u, i.startY = d;
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
if (!t.allowTouchMove) {
|
|
681
|
+
c.target.matches(n.focusableElements) || (t.allowClick = !1), n.isTouched && (Object.assign(i, {
|
|
682
|
+
startX: u,
|
|
683
|
+
startY: d,
|
|
684
|
+
currentX: u,
|
|
685
|
+
currentY: d
|
|
686
|
+
}), n.touchStartTime = P());
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
if (r.touchReleaseOnEdges && !r.loop) {
|
|
690
|
+
if (t.isVertical()) {
|
|
691
|
+
if (d < i.startY && t.translate <= t.maxTranslate() || d > i.startY && t.translate >= t.minTranslate()) {
|
|
692
|
+
n.isTouched = !1, n.isMoved = !1;
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
} else if (a && (u > i.startX && -t.translate <= t.maxTranslate() || u < i.startX && -t.translate >= t.minTranslate())) return;
|
|
696
|
+
else if (!a && (u < i.startX && t.translate <= t.maxTranslate() || u > i.startX && t.translate >= t.minTranslate())) return;
|
|
697
|
+
}
|
|
698
|
+
if (document.activeElement && document.activeElement.matches(n.focusableElements) && document.activeElement !== c.target && c.pointerType !== "mouse" && document.activeElement.blur(), document.activeElement && c.target === document.activeElement && c.target.matches(n.focusableElements)) {
|
|
699
|
+
n.isMoved = !0, t.allowClick = !1;
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
n.allowTouchCallbacks && t.emit("touchMove", c), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = u, i.currentY = d;
|
|
703
|
+
let f = i.currentX - i.startX, p = i.currentY - i.startY;
|
|
704
|
+
if (t.params.threshold && Math.sqrt(f ** 2 + p ** 2) < t.params.threshold) return;
|
|
705
|
+
if (n.isScrolling === void 0) {
|
|
706
|
+
let e;
|
|
707
|
+
t.isHorizontal() && i.currentY === i.startY || t.isVertical() && i.currentX === i.startX ? n.isScrolling = !1 : f * f + p * p >= 25 && (e = Math.atan2(Math.abs(p), Math.abs(f)) * 180 / Math.PI, n.isScrolling = t.isHorizontal() ? e > r.touchAngle : 90 - e > r.touchAngle);
|
|
708
|
+
}
|
|
709
|
+
if (n.isScrolling && t.emit("touchMoveOpposite", c), n.startMoving === void 0 && (i.currentX !== i.startX || i.currentY !== i.startY) && (n.startMoving = !0), n.isScrolling || c.type === "touchmove" && n.preventTouchMoveFromPointerMove) {
|
|
710
|
+
n.isTouched = !1;
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
if (!n.startMoving) return;
|
|
714
|
+
t.allowClick = !1, !r.cssMode && c.cancelable && c.preventDefault(), r.touchMoveStopPropagation && !r.nested && c.stopPropagation();
|
|
715
|
+
let m = t.isHorizontal() ? f : p, h = t.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
|
|
716
|
+
r.oneWayMovement && (m = Math.abs(m) * (a ? 1 : -1), h = Math.abs(h) * (a ? 1 : -1)), i.diff = m, m *= r.touchRatio, a && (m = -m, h = -h);
|
|
717
|
+
let g = t.touchesDirection;
|
|
718
|
+
t.swipeDirection = m > 0 ? "prev" : "next", t.touchesDirection = h > 0 ? "prev" : "next";
|
|
719
|
+
let _ = t.params.loop && !r.cssMode, v = t.touchesDirection === "next" && t.allowSlideNext || t.touchesDirection === "prev" && t.allowSlidePrev;
|
|
720
|
+
if (!n.isMoved) {
|
|
721
|
+
if (_ && v && t.loopFix({ direction: t.swipeDirection }), n.startTranslate = t.getTranslate(), t.setTransition(0), t.animating) {
|
|
722
|
+
let e = new window.CustomEvent("transitionend", {
|
|
723
|
+
bubbles: !0,
|
|
724
|
+
cancelable: !0,
|
|
725
|
+
detail: { bySwiperTouchMove: !0 }
|
|
726
|
+
});
|
|
727
|
+
t.wrapperEl.dispatchEvent(e);
|
|
728
|
+
}
|
|
729
|
+
n.allowMomentumBounce = !1, r.grabCursor && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!0), t.emit("sliderFirstMove", c);
|
|
730
|
+
}
|
|
731
|
+
if ((/* @__PURE__ */ new Date()).getTime(), r._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove && g !== t.touchesDirection && _ && v && Math.abs(m) >= 1) {
|
|
732
|
+
Object.assign(i, {
|
|
733
|
+
startX: u,
|
|
734
|
+
startY: d,
|
|
735
|
+
currentX: u,
|
|
736
|
+
currentY: d,
|
|
737
|
+
startTranslate: n.currentTranslate
|
|
738
|
+
}), n.loopSwapReset = !0, n.startTranslate = n.currentTranslate;
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
t.emit("sliderMove", c), n.isMoved = !0;
|
|
742
|
+
let y = n.startTranslate ?? 0;
|
|
743
|
+
n.currentTranslate = m + y;
|
|
744
|
+
let b = !0, x = r.resistanceRatio;
|
|
745
|
+
if (r.touchReleaseOnEdges && (x = 0), m > 0 ? (_ && v && n.allowThresholdMove && n.currentTranslate > (r.centeredSlides ? t.minTranslate() - t.slidesSizesGrid[t.activeIndex + 1] - (r.slidesPerView !== "auto" && t.slides.length - r.slidesPerView >= 2 ? t.slidesSizesGrid[t.activeIndex + 1] + t.params.spaceBetween : 0) - t.params.spaceBetween : t.minTranslate()) && t.loopFix({
|
|
746
|
+
direction: "prev",
|
|
747
|
+
setTranslate: !0,
|
|
748
|
+
activeSlideIndex: 0
|
|
749
|
+
}), n.currentTranslate > t.minTranslate() && (b = !1, r.resistance && (n.currentTranslate = t.minTranslate() - 1 + (-t.minTranslate() + y + m) ** x))) : m < 0 && (_ && v && n.allowThresholdMove && n.currentTranslate < (r.centeredSlides ? t.maxTranslate() + t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween + (r.slidesPerView !== "auto" && t.slides.length - r.slidesPerView >= 2 ? t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween : 0) : t.maxTranslate()) && t.loopFix({
|
|
750
|
+
direction: "next",
|
|
751
|
+
setTranslate: !0,
|
|
752
|
+
activeSlideIndex: t.slides.length - (r.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(parseFloat(String(r.slidesPerView))))
|
|
753
|
+
}), n.currentTranslate < t.maxTranslate() && (b = !1, r.resistance && (n.currentTranslate = t.maxTranslate() + 1 - (t.maxTranslate() - y - m) ** x))), b && (c.preventedByNestedSwiper = !0), !t.allowSlideNext && t.swipeDirection === "next" && (n.currentTranslate ?? 0) < y && (n.currentTranslate = y), !t.allowSlidePrev && t.swipeDirection === "prev" && (n.currentTranslate ?? 0) > y && (n.currentTranslate = y), !t.allowSlidePrev && !t.allowSlideNext && (n.currentTranslate = y), r.threshold > 0) if (Math.abs(m) > r.threshold || n.allowThresholdMove) {
|
|
754
|
+
if (!n.allowThresholdMove) {
|
|
755
|
+
n.allowThresholdMove = !0, i.startX = i.currentX, i.startY = i.currentY, n.currentTranslate = n.startTranslate, i.diff = t.isHorizontal() ? i.currentX - i.startX : i.currentY - i.startY;
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
758
|
+
} else {
|
|
759
|
+
n.currentTranslate = n.startTranslate;
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
762
|
+
!r.followFinger || r.cssMode || ((r.freeMode && r.freeMode.enabled && t.freeMode || r.watchSlidesProgress) && (t.updateActiveIndex(), t.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && t.freeMode && t.freeMode.onTouchMove(), t.updateProgress(n.currentTranslate), t.setTranslate(n.currentTranslate ?? 0));
|
|
763
|
+
}
|
|
764
|
+
function Ue(e, t) {
|
|
765
|
+
function n(t) {
|
|
766
|
+
if (!t || t === document || t === window) return null;
|
|
767
|
+
let r = t;
|
|
768
|
+
r.assignedSlot && (r = r.assignedSlot);
|
|
769
|
+
let i = r.closest(e);
|
|
770
|
+
if (!i && !r.getRootNode) return null;
|
|
771
|
+
let a = r.getRootNode();
|
|
772
|
+
return i || n(a.host);
|
|
773
|
+
}
|
|
774
|
+
return n(t);
|
|
775
|
+
}
|
|
776
|
+
function We(e, t, n) {
|
|
777
|
+
let { params: r } = e, i = r.edgeSwipeDetection, a = r.edgeSwipeThreshold;
|
|
778
|
+
return i && (n <= a || n >= window.innerWidth - a) ? i === "prevent" ? (t.preventDefault(), !0) : !1 : !0;
|
|
779
|
+
}
|
|
780
|
+
function Ge(e) {
|
|
781
|
+
let t = this;
|
|
782
|
+
if (t.destroyed) return;
|
|
783
|
+
let n = e.originalEvent ?? e, r = t.touchEventsData;
|
|
784
|
+
if (n.type === "pointerdown") {
|
|
785
|
+
let e = n;
|
|
786
|
+
if (r.pointerId !== null && r.pointerId !== e.pointerId) return;
|
|
787
|
+
r.pointerId = e.pointerId;
|
|
788
|
+
} else n.type === "touchstart" && n.targetTouches.length === 1 && (r.touchId = n.targetTouches[0].identifier);
|
|
789
|
+
if (n.type === "touchstart") {
|
|
790
|
+
We(t, n, n.targetTouches[0].pageX);
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
793
|
+
let { params: i, touches: a, enabled: o } = t;
|
|
794
|
+
if (!o || !i.simulateTouch && n.pointerType === "mouse" || t.animating && i.preventInteractionOnTransition) return;
|
|
795
|
+
!t.animating && i.cssMode && i.loop && t.loopFix();
|
|
796
|
+
let s = n.target;
|
|
797
|
+
if (i.touchEventsTarget === "wrapper" && !re(s, t.wrapperEl)) return;
|
|
798
|
+
let c = n;
|
|
799
|
+
if (typeof c.which == "number" && c.which === 3 || typeof c.button == "number" && c.button > 0 || r.isTouched && r.isMoved) return;
|
|
800
|
+
let l = !!i.noSwipingClass && i.noSwipingClass !== "", u = n.composedPath ? n.composedPath() : n.path;
|
|
801
|
+
l && n.target && n.target.shadowRoot && u && (s = u[0]);
|
|
802
|
+
let d = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(n.target && n.target.shadowRoot);
|
|
803
|
+
if (i.noSwiping && (f ? Ue(d, s) : s.closest(d))) {
|
|
804
|
+
t.allowClick = !0;
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
|
+
if (i.swipeHandler && typeof i.swipeHandler == "string" && !s.closest(i.swipeHandler)) return;
|
|
808
|
+
let p = n;
|
|
809
|
+
a.currentX = p.pageX, a.currentY = p.pageY;
|
|
810
|
+
let m = a.currentX, h = a.currentY;
|
|
811
|
+
if (!We(t, n, m)) return;
|
|
812
|
+
Object.assign(r, {
|
|
813
|
+
isTouched: !0,
|
|
814
|
+
isMoved: !1,
|
|
815
|
+
allowTouchCallbacks: !0,
|
|
816
|
+
isScrolling: void 0,
|
|
817
|
+
startMoving: void 0
|
|
818
|
+
}), a.startX = m, a.startY = h, r.touchStartTime = P(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, i.threshold > 0 && (r.allowThresholdMove = !1);
|
|
819
|
+
let g = !0;
|
|
820
|
+
s.matches(r.focusableElements) && (g = !1, s.nodeName === "SELECT" && (r.isTouched = !1)), document.activeElement && document.activeElement.matches(r.focusableElements) && document.activeElement !== s && (p.pointerType === "mouse" || p.pointerType !== "mouse" && !s.matches(r.focusableElements)) && document.activeElement.blur();
|
|
821
|
+
let _ = g && t.allowTouchMove && i.touchStartPreventDefault;
|
|
822
|
+
(i.touchStartForcePreventDefault || _) && !s.isContentEditable && n.preventDefault(), i.freeMode && i.freeMode.enabled && t.freeMode && t.animating && !i.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", n);
|
|
823
|
+
}
|
|
824
|
+
var Ke = (e, t) => {
|
|
825
|
+
let { params: n, el: r, wrapperEl: i, device: a } = e, o = !!n.nested, s = t === "on" ? "addEventListener" : "removeEventListener", c = t;
|
|
826
|
+
if (!r || typeof r == "string") return;
|
|
827
|
+
document[s]("touchstart", e.onDocumentTouchStart, {
|
|
828
|
+
passive: !1,
|
|
829
|
+
capture: o
|
|
830
|
+
}), r[s]("touchstart", e.onTouchStart, { passive: !1 }), r[s]("pointerdown", e.onTouchStart, { passive: !1 }), document[s]("touchmove", e.onTouchMove, {
|
|
831
|
+
passive: !1,
|
|
832
|
+
capture: o
|
|
833
|
+
}), document[s]("pointermove", e.onTouchMove, {
|
|
834
|
+
passive: !1,
|
|
835
|
+
capture: o
|
|
836
|
+
}), document[s]("touchend", e.onTouchEnd, { passive: !0 }), document[s]("pointerup", e.onTouchEnd, { passive: !0 }), document[s]("pointercancel", e.onTouchEnd, { passive: !0 }), document[s]("touchcancel", e.onTouchEnd, { passive: !0 }), document[s]("pointerout", e.onTouchEnd, { passive: !0 }), document[s]("pointerleave", e.onTouchEnd, { passive: !0 }), document[s]("contextmenu", e.onTouchEnd, { passive: !0 }), (n.preventClicks || n.preventClicksPropagation) && r[s]("click", e.onClick, !0), n.cssMode && i[s]("scroll", e.onScroll);
|
|
837
|
+
let l = (t) => {
|
|
838
|
+
e[c](t, ze, !0);
|
|
839
|
+
};
|
|
840
|
+
n.updateOnWindowResize ? l(a.ios || a.android ? "resize orientationchange observerUpdate" : "resize observerUpdate") : l("observerUpdate"), r[s]("load", e.onLoad, { capture: !0 });
|
|
841
|
+
};
|
|
842
|
+
function qe() {
|
|
843
|
+
let e = this, { params: t } = e;
|
|
844
|
+
e.onTouchStart = Ge.bind(e), e.onTouchMove = He.bind(e), e.onTouchEnd = Ve.bind(e), e.onDocumentTouchStart = Le.bind(e), t.cssMode && (e.onScroll = Be.bind(e)), e.onClick = Ie.bind(e), e.onLoad = Re.bind(e), Ke(e, "on");
|
|
845
|
+
}
|
|
846
|
+
function Je() {
|
|
847
|
+
Ke(this, "off");
|
|
848
|
+
}
|
|
849
|
+
var Ye = {
|
|
850
|
+
attachEvents: qe,
|
|
851
|
+
detachEvents: Je
|
|
852
|
+
};
|
|
853
|
+
function Xe(e) {
|
|
854
|
+
let t = this;
|
|
855
|
+
if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return;
|
|
856
|
+
let n = t.params.touchEventsTarget === "container" ? t.el : t.wrapperEl;
|
|
857
|
+
t.isElement && (t.__preventObserver__ = !0), n.style.cursor = "move", n.style.cursor = e ? "grabbing" : "grab", t.isElement && requestAnimationFrame(() => {
|
|
858
|
+
t.__preventObserver__ = !1;
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
function Ze() {
|
|
862
|
+
let e = this;
|
|
863
|
+
e.params.watchOverflow && e.isLocked || e.params.cssMode || (e.isElement && (e.__preventObserver__ = !0), e[e.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", e.isElement && requestAnimationFrame(() => {
|
|
864
|
+
e.__preventObserver__ = !1;
|
|
865
|
+
}));
|
|
866
|
+
}
|
|
867
|
+
var Qe = {
|
|
868
|
+
setGrabCursor: Xe,
|
|
869
|
+
unsetGrabCursor: Ze
|
|
870
|
+
};
|
|
871
|
+
function $e(e, t) {
|
|
872
|
+
let n = this, { params: r, slidesEl: i } = n;
|
|
873
|
+
if (!r.loop || n.virtual && n.params.virtual?.enabled) return;
|
|
874
|
+
let a = () => {
|
|
875
|
+
z(i, `.${r.slideClass}, swiper-slide`).forEach((e, t) => {
|
|
876
|
+
e.setAttribute("data-swiper-slide-index", String(t));
|
|
877
|
+
});
|
|
878
|
+
}, o = () => {
|
|
879
|
+
let e = z(i, `.${r.slideBlankClass}`);
|
|
880
|
+
e.forEach((e) => {
|
|
881
|
+
e.remove();
|
|
882
|
+
}), e.length > 0 && (n.recalcSlides(), n.updateSlides());
|
|
883
|
+
}, s = n.grid && r.grid && r.grid.rows > 1;
|
|
884
|
+
r.loopAddBlankSlides && (r.slidesPerGroup > 1 || s) && o();
|
|
885
|
+
let c = r.slidesPerGroup * (s ? r.grid.rows : 1), l = n.slides.length % c !== 0, u = s && n.slides.length % r.grid.rows !== 0, d = (e) => {
|
|
886
|
+
for (let t = 0; t < e; t += 1) {
|
|
887
|
+
let e = n.isElement ? V("swiper-slide", [r.slideBlankClass]) : V("div", [r.slideClass, r.slideBlankClass]);
|
|
888
|
+
n.slidesEl.append(e);
|
|
889
|
+
}
|
|
890
|
+
};
|
|
891
|
+
l ? (r.loopAddBlankSlides ? (d(c - n.slides.length % c), n.recalcSlides(), n.updateSlides()) : B("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"), a()) : (u && (r.loopAddBlankSlides ? (d(r.grid.rows - n.slides.length % r.grid.rows), n.recalcSlides(), n.updateSlides()) : B("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")), a());
|
|
892
|
+
let f = r.centeredSlides || !!r.slidesOffsetBefore || !!r.slidesOffsetAfter;
|
|
893
|
+
n.loopFix({
|
|
894
|
+
slideRealIndex: e,
|
|
895
|
+
direction: f ? void 0 : "next",
|
|
896
|
+
initial: t
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
function et() {
|
|
900
|
+
let e = this, { params: t, slidesEl: n } = e;
|
|
901
|
+
if (!t.loop || !n || e.virtual && e.params.virtual?.enabled) return;
|
|
902
|
+
e.recalcSlides();
|
|
903
|
+
let r = [];
|
|
904
|
+
e.slides.forEach((e) => {
|
|
905
|
+
let t = e, n = t.swiperSlideIndex === void 0 ? Number(e.getAttribute("data-swiper-slide-index")) : t.swiperSlideIndex;
|
|
906
|
+
r[n] = e;
|
|
907
|
+
}), e.slides.forEach((e) => {
|
|
908
|
+
e.removeAttribute("data-swiper-slide-index");
|
|
909
|
+
}), r.forEach((e) => {
|
|
910
|
+
n.append(e);
|
|
911
|
+
}), e.recalcSlides(), e.slideTo(e.realIndex, 0);
|
|
912
|
+
}
|
|
913
|
+
function tt(e = {}) {
|
|
914
|
+
let { slideRealIndex: t, slideTo: n = !0, direction: r, setTranslate: i, activeSlideIndex: a, initial: o, byController: s, byMousewheel: c } = e, l = a, u = this;
|
|
915
|
+
if (!u.params.loop) return;
|
|
916
|
+
u.emit("beforeLoopFix");
|
|
917
|
+
let { slides: d, allowSlidePrev: f, allowSlideNext: p, slidesEl: m, params: h } = u, { centeredSlides: g, slidesOffsetBefore: _, slidesOffsetAfter: v, initialSlide: y } = h, b = g || !!_ || !!v;
|
|
918
|
+
if (u.allowSlidePrev = !0, u.allowSlideNext = !0, u.virtual && h.virtual?.enabled) {
|
|
919
|
+
if (n) {
|
|
920
|
+
let e = u.virtual.slides.length, t = u.virtual.slidesBefore ?? 0;
|
|
921
|
+
!b && u.snapIndex === 0 ? u.slideTo(e, 0, !1, !0) : b && u.snapIndex < h.slidesPerView ? u.slideTo(e + u.snapIndex, 0, !1, !0) : u.snapIndex === u.snapGrid.length - 1 && u.slideTo(t, 0, !1, !0);
|
|
922
|
+
}
|
|
923
|
+
u.allowSlidePrev = f, u.allowSlideNext = p, u.emit("loopFix");
|
|
924
|
+
return;
|
|
925
|
+
}
|
|
926
|
+
let x = h.slidesPerView;
|
|
927
|
+
x === "auto" ? x = u.slidesPerViewDynamic() : (x = Math.ceil(parseFloat(String(h.slidesPerView))), b && x % 2 == 0 && (x += 1));
|
|
928
|
+
let S = h.slidesPerGroupAuto ? x : h.slidesPerGroup, C = b ? Math.max(S, Math.ceil(x / 2)) : S;
|
|
929
|
+
C % S !== 0 && (C += S - C % S), C += h.loopAdditionalSlides, u.loopedSlides = C;
|
|
930
|
+
let w = u.grid && h.grid && h.grid.rows > 1;
|
|
931
|
+
d.length < x + C || u.params.effect === "cards" && d.length < x + C * 2 ? B("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : w && h.grid.fill === "row" && B("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
932
|
+
let T = [], E = [], D = w ? Math.ceil(d.length / h.grid.rows) : d.length, O = o && D - y < x && !b, k = O ? y : u.activeIndex;
|
|
933
|
+
l === void 0 ? l = u.getSlideIndex(d.find((e) => e.classList.contains(h.slideActiveClass))) : k = l;
|
|
934
|
+
let A = r === "next" || !r, j = r === "prev" || !r, M = 0, N = 0, P = (w ? d[l].column ?? 0 : l) + (b && i === void 0 ? -x / 2 + .5 : 0);
|
|
935
|
+
if (P < C) {
|
|
936
|
+
M = Math.max(C - P, S);
|
|
937
|
+
for (let e = 0; e < C - P; e += 1) {
|
|
938
|
+
let t = e - Math.floor(e / D) * D;
|
|
939
|
+
if (w) {
|
|
940
|
+
let e = D - t - 1;
|
|
941
|
+
for (let t = d.length - 1; t >= 0; --t) d[t].column === e && T.push(t);
|
|
942
|
+
} else T.push(D - t - 1);
|
|
943
|
+
}
|
|
944
|
+
} else if (P + x > D - C) {
|
|
945
|
+
N = Math.max(P - (D - C * 2), S), O && (N = Math.max(N, x - D + y + 1));
|
|
946
|
+
for (let e = 0; e < N; e += 1) {
|
|
947
|
+
let t = e - Math.floor(e / D) * D;
|
|
948
|
+
w ? d.forEach((e, n) => {
|
|
949
|
+
e.column === t && E.push(n);
|
|
950
|
+
}) : E.push(t);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
if (u.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
954
|
+
u.__preventObserver__ = !1;
|
|
955
|
+
}), u.params.effect === "cards" && d.length < x + C * 2 && (E.includes(l) && E.splice(E.indexOf(l), 1), T.includes(l) && T.splice(T.indexOf(l), 1)), j && T.forEach((e) => {
|
|
956
|
+
let t = d[e];
|
|
957
|
+
t.swiperLoopMoveDOM = !0, m.prepend(t), t.swiperLoopMoveDOM = !1;
|
|
958
|
+
}), A && E.forEach((e) => {
|
|
959
|
+
let t = d[e];
|
|
960
|
+
t.swiperLoopMoveDOM = !0, m.append(t), t.swiperLoopMoveDOM = !1;
|
|
961
|
+
}), u.recalcSlides(), h.slidesPerView === "auto" ? u.updateSlides() : w && (T.length > 0 && j || E.length > 0 && A) && u.slides.forEach((e, t) => {
|
|
962
|
+
u.grid.updateSlide(t, e, u.slides);
|
|
963
|
+
}), h.watchSlidesProgress && u.updateSlidesOffset(), n) {
|
|
964
|
+
if (T.length > 0 && j) {
|
|
965
|
+
if (t === void 0) {
|
|
966
|
+
let e = u.slidesGrid[k], t = u.slidesGrid[k + M] - e;
|
|
967
|
+
c ? u.setTranslate(u.translate - t) : (u.slideTo(k + Math.ceil(M), 0, !1, !0), i && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - t, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - t));
|
|
968
|
+
} else if (i) {
|
|
969
|
+
let e = w ? T.length / h.grid.rows : T.length;
|
|
970
|
+
u.slideTo(u.activeIndex + e, 0, !1, !0), u.touchEventsData.currentTranslate = u.translate;
|
|
971
|
+
}
|
|
972
|
+
} else if (E.length > 0 && A) if (t === void 0) {
|
|
973
|
+
let e = u.slidesGrid[k], t = u.slidesGrid[k - N] - e;
|
|
974
|
+
c ? u.setTranslate(u.translate - t) : (u.slideTo(k - N, 0, !1, !0), i && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - t, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - t));
|
|
975
|
+
} else {
|
|
976
|
+
let e = w ? E.length / h.grid.rows : E.length;
|
|
977
|
+
u.slideTo(u.activeIndex - e, 0, !1, !0);
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
u.allowSlidePrev = f, u.allowSlideNext = p;
|
|
981
|
+
let F = u.controller?.control;
|
|
982
|
+
if (F && !s) {
|
|
983
|
+
let e = {
|
|
984
|
+
slideRealIndex: t,
|
|
985
|
+
direction: r,
|
|
986
|
+
setTranslate: i,
|
|
987
|
+
activeSlideIndex: l,
|
|
988
|
+
byController: !0
|
|
989
|
+
};
|
|
990
|
+
Array.isArray(F) ? F.forEach((t) => {
|
|
991
|
+
!t.destroyed && t.params.loop && t.loopFix({
|
|
992
|
+
...e,
|
|
993
|
+
slideTo: t.params.slidesPerView === h.slidesPerView && n
|
|
994
|
+
});
|
|
995
|
+
}) : F instanceof u.constructor && F.params.loop && F.loopFix({
|
|
996
|
+
...e,
|
|
997
|
+
slideTo: F.params.slidesPerView === h.slidesPerView && n
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
u.emit("loopFix");
|
|
1001
|
+
}
|
|
1002
|
+
var nt = {
|
|
1003
|
+
loopCreate: $e,
|
|
1004
|
+
loopFix: tt,
|
|
1005
|
+
loopDestroy: et
|
|
1006
|
+
};
|
|
1007
|
+
function rt(e, t) {
|
|
1008
|
+
return function(n = {}) {
|
|
1009
|
+
let r = Object.keys(n)[0], i = n[r];
|
|
1010
|
+
if (typeof i != "object" || !i) {
|
|
1011
|
+
L(t, n);
|
|
1012
|
+
return;
|
|
1013
|
+
}
|
|
1014
|
+
if (e[r] === !0 && (e[r] = { enabled: !0 }), r === "navigation" && e[r] && e[r].enabled && !e[r].prevEl && !e[r].nextEl && (e[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && e[r] && e[r].enabled && !e[r].el && (e[r].auto = !0), !(r in e && "enabled" in i)) {
|
|
1015
|
+
L(t, n);
|
|
1016
|
+
return;
|
|
1017
|
+
}
|
|
1018
|
+
typeof e[r] == "object" && !("enabled" in e[r]) && (e[r].enabled = !0), e[r] || (e[r] = { enabled: !1 }), L(t, n);
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
var it = ({ swiper: e, extendParams: t, on: n }) => {
|
|
1022
|
+
let r = [], i = (t, n = {}) => {
|
|
1023
|
+
let i = window.MutationObserver || window.WebkitMutationObserver;
|
|
1024
|
+
if (!i) return;
|
|
1025
|
+
let a = new i((t) => {
|
|
1026
|
+
if (e.__preventObserver__) return;
|
|
1027
|
+
if (t.length === 1) {
|
|
1028
|
+
e.emit("observerUpdate", t[0]);
|
|
1029
|
+
return;
|
|
1030
|
+
}
|
|
1031
|
+
let n = function() {
|
|
1032
|
+
e.emit("observerUpdate", t[0]);
|
|
1033
|
+
};
|
|
1034
|
+
window.requestAnimationFrame ? window.requestAnimationFrame(n) : window.setTimeout(n, 0);
|
|
1035
|
+
});
|
|
1036
|
+
a.observe(t, {
|
|
1037
|
+
attributes: n.attributes === void 0 || n.attributes,
|
|
1038
|
+
childList: e.isElement || n.childList === void 0 || n.childList,
|
|
1039
|
+
characterData: n.characterData === void 0 || n.characterData
|
|
1040
|
+
}), r.push(a);
|
|
1041
|
+
};
|
|
1042
|
+
t({
|
|
1043
|
+
observer: !1,
|
|
1044
|
+
observeParents: !1,
|
|
1045
|
+
observeSlideChildren: !1
|
|
1046
|
+
}), n("init", () => {
|
|
1047
|
+
if (e.params.observer) {
|
|
1048
|
+
if (e.params.observeParents) {
|
|
1049
|
+
let t = se(e.hostEl);
|
|
1050
|
+
for (let e = 0; e < t.length; e += 1) i(t[e]);
|
|
1051
|
+
}
|
|
1052
|
+
i(e.hostEl, { childList: e.params.observeSlideChildren }), i(e.wrapperEl, { attributes: !1 });
|
|
1053
|
+
}
|
|
1054
|
+
}), n("destroy", () => {
|
|
1055
|
+
r.forEach((e) => {
|
|
1056
|
+
e.disconnect();
|
|
1057
|
+
}), r.splice(0, r.length);
|
|
1058
|
+
});
|
|
1059
|
+
}, at = ({ swiper: e, on: t, emit: n }) => {
|
|
1060
|
+
let r = null, i = null, a = () => {
|
|
1061
|
+
!e || e.destroyed || !e.initialized || (n("beforeResize"), n("resize"));
|
|
1062
|
+
}, o = () => {
|
|
1063
|
+
!e || e.destroyed || !e.initialized || (r = new ResizeObserver((t) => {
|
|
1064
|
+
i = window.requestAnimationFrame(() => {
|
|
1065
|
+
let { width: n, height: r } = e, i = n, o = r;
|
|
1066
|
+
t.forEach(({ contentBoxSize: t, contentRect: n, target: r }) => {
|
|
1067
|
+
if (r && r !== e.el) return;
|
|
1068
|
+
let a = Array.isArray(t) ? t[0] : t;
|
|
1069
|
+
i = n ? n.width : a.inlineSize, o = n ? n.height : a.blockSize;
|
|
1070
|
+
}), (i !== n || o !== r) && a();
|
|
1071
|
+
});
|
|
1072
|
+
}), r.observe(e.el));
|
|
1073
|
+
}, s = () => {
|
|
1074
|
+
i && window.cancelAnimationFrame(i), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
|
|
1075
|
+
}, c = () => {
|
|
1076
|
+
!e || e.destroyed || !e.initialized || n("orientationchange");
|
|
1077
|
+
};
|
|
1078
|
+
t("init", () => {
|
|
1079
|
+
if (e.params.resizeObserver && window.ResizeObserver !== void 0) {
|
|
1080
|
+
o();
|
|
1081
|
+
return;
|
|
1082
|
+
}
|
|
1083
|
+
window.addEventListener("resize", a), window.addEventListener("orientationchange", c);
|
|
1084
|
+
}), t("destroy", () => {
|
|
1085
|
+
s(), window.removeEventListener("resize", a), window.removeEventListener("orientationchange", c);
|
|
1086
|
+
});
|
|
1087
|
+
};
|
|
1088
|
+
function ot(e, t = !0, n) {
|
|
1089
|
+
let r = this, { enabled: i, params: a, animating: o } = r;
|
|
1090
|
+
if (!i || r.destroyed) return r;
|
|
1091
|
+
e === void 0 && (e = r.params.speed);
|
|
1092
|
+
let s = a.slidesPerGroup;
|
|
1093
|
+
a.slidesPerView === "auto" && a.slidesPerGroup === 1 && a.slidesPerGroupAuto && (s = Math.max(r.slidesPerViewDynamic("current", !0), 1));
|
|
1094
|
+
let c = r.activeIndex < a.slidesPerGroupSkip ? 1 : s, l = r.virtual && a.virtual?.enabled;
|
|
1095
|
+
if (a.loop) {
|
|
1096
|
+
if (o && !l && a.loopPreventsSliding) return !1;
|
|
1097
|
+
if (r.loopFix({ direction: "next" }), r._clientLeft = r.wrapperEl.clientLeft, r.activeIndex === r.slides.length - 1 && a.cssMode) return requestAnimationFrame(() => {
|
|
1098
|
+
r.slideTo(r.activeIndex + c, e, t, n);
|
|
1099
|
+
}), !0;
|
|
1100
|
+
}
|
|
1101
|
+
return a.rewind && r.isEnd ? r.slideTo(0, e, t, n) : r.slideTo(r.activeIndex + c, e, t, n);
|
|
1102
|
+
}
|
|
1103
|
+
function st(e, t = !0, n) {
|
|
1104
|
+
let r = this, { params: i, snapGrid: a, slidesGrid: o, rtlTranslate: s, enabled: c, animating: l } = r;
|
|
1105
|
+
if (!c || r.destroyed) return r;
|
|
1106
|
+
e === void 0 && (e = r.params.speed);
|
|
1107
|
+
let u = r.virtual && i.virtual?.enabled;
|
|
1108
|
+
if (i.loop) {
|
|
1109
|
+
if (l && !u && i.loopPreventsSliding) return !1;
|
|
1110
|
+
r.loopFix({ direction: "prev" }), r._clientLeft = r.wrapperEl.clientLeft;
|
|
1111
|
+
}
|
|
1112
|
+
let d = s ? r.translate : -r.translate;
|
|
1113
|
+
function f(e) {
|
|
1114
|
+
return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e);
|
|
1115
|
+
}
|
|
1116
|
+
let p = f(d), m = a.map((e) => f(e)), h = i.freeMode && i.freeMode.enabled, g = a[m.indexOf(p) - 1];
|
|
1117
|
+
if (g === void 0 && (i.cssMode || h)) {
|
|
1118
|
+
let e;
|
|
1119
|
+
a.forEach((t, n) => {
|
|
1120
|
+
p >= t && (e = n);
|
|
1121
|
+
}), e !== void 0 && (g = h ? a[e] : a[e > 0 ? e - 1 : e]);
|
|
1122
|
+
}
|
|
1123
|
+
let _ = 0;
|
|
1124
|
+
if (g !== void 0 && (_ = o.indexOf(g), _ < 0 && (_ = r.activeIndex - 1), i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (_ = _ - r.slidesPerViewDynamic("previous", !0) + 1, _ = Math.max(_, 0))), i.rewind && r.isBeginning) {
|
|
1125
|
+
let i = r.params.virtual?.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
|
|
1126
|
+
return r.slideTo(i, e, t, n);
|
|
1127
|
+
} else if (i.loop && r.activeIndex === 0 && i.cssMode) return requestAnimationFrame(() => {
|
|
1128
|
+
r.slideTo(_, e, t, n);
|
|
1129
|
+
}), !0;
|
|
1130
|
+
return r.slideTo(_, e, t, n);
|
|
1131
|
+
}
|
|
1132
|
+
function ct(e, t = !0, n) {
|
|
1133
|
+
let r = this;
|
|
1134
|
+
if (!r.destroyed) return e === void 0 && (e = r.params.speed), r.slideTo(r.activeIndex, e, t, n);
|
|
1135
|
+
}
|
|
1136
|
+
function lt(e = 0, t, n = !0, r, i) {
|
|
1137
|
+
typeof e == "string" && (e = parseInt(e, 10));
|
|
1138
|
+
let a = this, o = e;
|
|
1139
|
+
o < 0 && (o = 0);
|
|
1140
|
+
let { params: s, snapGrid: c, slidesGrid: l, previousIndex: u, activeIndex: d, rtlTranslate: f, wrapperEl: p, enabled: m } = a;
|
|
1141
|
+
if (!m && !r && !i || a.destroyed || a.animating && s.preventInteractionOnTransition) return !1;
|
|
1142
|
+
t === void 0 && (t = a.params.speed);
|
|
1143
|
+
let h = Math.min(a.params.slidesPerGroupSkip, o), g = h + Math.floor((o - h) / a.params.slidesPerGroup);
|
|
1144
|
+
g >= c.length && (g = c.length - 1);
|
|
1145
|
+
let _ = -c[g];
|
|
1146
|
+
if (s.normalizeSlideIndex) for (let e = 0; e < l.length; e += 1) {
|
|
1147
|
+
let t = -Math.floor(_ * 100), n = Math.floor(l[e] * 100), r = Math.floor(l[e + 1] * 100);
|
|
1148
|
+
l[e + 1] === void 0 ? t >= n && (o = e) : t >= n && t < r - (r - n) / 2 ? o = e : t >= n && t < r && (o = e + 1);
|
|
1149
|
+
}
|
|
1150
|
+
if (a.initialized && o !== d && (!a.allowSlideNext && (f ? _ > a.translate && _ > a.minTranslate() : _ < a.translate && _ < a.minTranslate()) || !a.allowSlidePrev && _ > a.translate && _ > a.maxTranslate() && (d || 0) !== o)) return !1;
|
|
1151
|
+
o !== (u || 0) && n && a.emit("beforeSlideChangeStart"), a.updateProgress(_);
|
|
1152
|
+
let v;
|
|
1153
|
+
v = o > d ? "next" : o < d ? "prev" : "reset";
|
|
1154
|
+
let y = a.virtual && a.params.virtual?.enabled;
|
|
1155
|
+
if (!(y && i) && (f && -_ === a.translate || !f && _ === a.translate)) return a.updateActiveIndex(o), s.autoHeight && a.updateAutoHeight(), a.updateSlidesClasses(), s.effect !== "slide" && a.setTranslate(_), v !== "reset" && (a.transitionStart(n, v), a.transitionEnd(n, v)), !1;
|
|
1156
|
+
if (s.cssMode) {
|
|
1157
|
+
let e = a.isHorizontal(), n = f ? _ : -_;
|
|
1158
|
+
return t === 0 ? (y && (a.wrapperEl.style.scrollSnapType = "none", a._immediateVirtual = !0), y && !a._cssModeVirtualInitialSet && (a.params.initialSlide ?? 0) > 0 ? (a._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1159
|
+
p[e ? "scrollLeft" : "scrollTop"] = n;
|
|
1160
|
+
})) : p[e ? "scrollLeft" : "scrollTop"] = n, y && requestAnimationFrame(() => {
|
|
1161
|
+
a.wrapperEl.style.scrollSnapType = "", a._immediateVirtual = !1;
|
|
1162
|
+
})) : p.scrollTo({
|
|
1163
|
+
[e ? "left" : "top"]: n,
|
|
1164
|
+
behavior: "smooth"
|
|
1165
|
+
}), !0;
|
|
1166
|
+
}
|
|
1167
|
+
let b = we().isSafari;
|
|
1168
|
+
return y && !i && b && a.isElement && a.virtual.update(!1, !1, o), a.setTransition(t), a.setTranslate(_), a.updateActiveIndex(o), a.updateSlidesClasses(), a.emit("beforeTransitionStart", t, r), a.transitionStart(n, v), t === 0 ? a.transitionEnd(n, v) : a.animating || (a.animating = !0, a.onSlideToWrapperTransitionEnd ||= function(e) {
|
|
1169
|
+
!a || a.destroyed || e.target === this && (a.wrapperEl.removeEventListener("transitionend", a.onSlideToWrapperTransitionEnd), a.onSlideToWrapperTransitionEnd = null, delete a.onSlideToWrapperTransitionEnd, a.transitionEnd(n, v));
|
|
1170
|
+
}, a.wrapperEl.addEventListener("transitionend", a.onSlideToWrapperTransitionEnd)), !0;
|
|
1171
|
+
}
|
|
1172
|
+
function ut() {
|
|
1173
|
+
let e = this;
|
|
1174
|
+
if (e.destroyed) return;
|
|
1175
|
+
let { params: t, slidesEl: n, clickedSlide: r, clickedIndex: i } = e;
|
|
1176
|
+
if (r === void 0 || i === void 0) return;
|
|
1177
|
+
let a = t.slidesPerView === "auto" ? e.slidesPerViewDynamic() : t.slidesPerView, o = e.getSlideIndexWhenGrid(i), s, c = e.isElement ? "swiper-slide" : `.${t.slideClass}`, l = e.grid && e.params.grid && e.params.grid.rows > 1;
|
|
1178
|
+
if (t.loop) {
|
|
1179
|
+
if (e.animating) return;
|
|
1180
|
+
s = parseInt(r.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? e.slideToLoop(s) : o > (l ? (e.slides.length - a) / 2 - (e.params.grid.rows - 1) : e.slides.length - a) ? (e.loopFix(), o = e.getSlideIndex(z(n, `${c}[data-swiper-slide-index="${s}"]`)[0]), N(() => {
|
|
1181
|
+
e.slideTo(o);
|
|
1182
|
+
})) : e.slideTo(o);
|
|
1183
|
+
} else e.slideTo(o);
|
|
1184
|
+
}
|
|
1185
|
+
function dt(e, t = !0, n, r = .5) {
|
|
1186
|
+
let i = this;
|
|
1187
|
+
if (i.destroyed) return;
|
|
1188
|
+
e === void 0 && (e = i.params.speed);
|
|
1189
|
+
let a = i.activeIndex, o = Math.min(i.params.slidesPerGroupSkip, a), s = o + Math.floor((a - o) / i.params.slidesPerGroup), c = i.rtlTranslate ? i.translate : -i.translate;
|
|
1190
|
+
if (c >= i.snapGrid[s]) {
|
|
1191
|
+
let e = i.snapGrid[s], t = i.snapGrid[s + 1];
|
|
1192
|
+
c - e > (t - e) * r && (a += i.params.slidesPerGroup);
|
|
1193
|
+
} else {
|
|
1194
|
+
let e = i.snapGrid[s - 1], t = i.snapGrid[s];
|
|
1195
|
+
c - e <= (t - e) * r && (a -= i.params.slidesPerGroup);
|
|
1196
|
+
}
|
|
1197
|
+
return a = Math.max(a, 0), a = Math.min(a, i.slidesGrid.length - 1), i.slideTo(a, e, t, n);
|
|
1198
|
+
}
|
|
1199
|
+
function ft(e = 0, t, n = !0, r) {
|
|
1200
|
+
typeof e == "string" && (e = parseInt(e, 10));
|
|
1201
|
+
let i = this;
|
|
1202
|
+
if (i.destroyed) return;
|
|
1203
|
+
t === void 0 && (t = i.params.speed);
|
|
1204
|
+
let a = i.grid && i.params.grid && i.params.grid.rows > 1, o = e;
|
|
1205
|
+
if (i.params.loop) if (i.virtual && i.params.virtual?.enabled) o += i.virtual.slidesBefore ?? 0;
|
|
1206
|
+
else {
|
|
1207
|
+
let e;
|
|
1208
|
+
if (a) {
|
|
1209
|
+
let t = o * i.params.grid.rows;
|
|
1210
|
+
e = i.slides.find((e) => Number(e.getAttribute("data-swiper-slide-index")) === t)?.column ?? 0;
|
|
1211
|
+
} else e = i.getSlideIndexByData(o);
|
|
1212
|
+
let t = a ? Math.ceil(i.slides.length / i.params.grid.rows) : i.slides.length, { centeredSlides: n, slidesOffsetBefore: s, slidesOffsetAfter: c } = i.params, l = n || !!s || !!c, u;
|
|
1213
|
+
i.params.slidesPerView === "auto" ? u = i.slidesPerViewDynamic() : (u = Math.ceil(parseFloat(String(i.params.slidesPerView))), l && u % 2 == 0 && (u += 1));
|
|
1214
|
+
let d = t - e < u;
|
|
1215
|
+
if (l && (d ||= e < Math.ceil(u / 2)), r && l && i.params.slidesPerView !== "auto" && !a && (d = !1), d) {
|
|
1216
|
+
let n = l ? e < i.activeIndex ? "prev" : "next" : e - i.activeIndex - 1 < i.params.slidesPerView ? "next" : "prev";
|
|
1217
|
+
i.loopFix({
|
|
1218
|
+
direction: n,
|
|
1219
|
+
slideTo: !0,
|
|
1220
|
+
activeSlideIndex: n === "next" ? e + 1 : e - t + 1,
|
|
1221
|
+
slideRealIndex: n === "next" ? i.realIndex : void 0
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
if (a) {
|
|
1225
|
+
let e = o * i.params.grid.rows;
|
|
1226
|
+
o = i.slides.find((t) => Number(t.getAttribute("data-swiper-slide-index")) === e)?.column ?? 0;
|
|
1227
|
+
} else o = i.getSlideIndexByData(o);
|
|
1228
|
+
}
|
|
1229
|
+
return requestAnimationFrame(() => {
|
|
1230
|
+
i.slideTo(o, t, n, r);
|
|
1231
|
+
}), i;
|
|
1232
|
+
}
|
|
1233
|
+
var pt = {
|
|
1234
|
+
slideTo: lt,
|
|
1235
|
+
slideToLoop: ft,
|
|
1236
|
+
slideNext: ot,
|
|
1237
|
+
slidePrev: st,
|
|
1238
|
+
slideReset: ct,
|
|
1239
|
+
slideToClosest: dt,
|
|
1240
|
+
slideToClickedSlide: ut
|
|
1241
|
+
};
|
|
1242
|
+
function mt(e, t) {
|
|
1243
|
+
let n = this;
|
|
1244
|
+
n.params.cssMode || (n.wrapperEl.style.transitionDuration = `${e}ms`, n.wrapperEl.style.transitionDelay = e === 0 ? "0ms" : ""), n.emit("setTransition", e, t);
|
|
1245
|
+
}
|
|
1246
|
+
function ht({ swiper: e, runCallbacks: t, direction: n, step: r }) {
|
|
1247
|
+
let { activeIndex: i, previousIndex: a } = e, o = n;
|
|
1248
|
+
o ||= i > a ? "next" : i < a ? "prev" : "reset", e.emit(`transition${r}`), t && o === "reset" ? e.emit(`slideResetTransition${r}`) : t && i !== a && (e.emit(`slideChangeTransition${r}`), o === "next" ? e.emit(`slideNextTransition${r}`) : e.emit(`slidePrevTransition${r}`));
|
|
1249
|
+
}
|
|
1250
|
+
function gt(e = !0, t) {
|
|
1251
|
+
let n = this, { params: r } = n;
|
|
1252
|
+
n.animating = !1, !r.cssMode && (n.setTransition(0), ht({
|
|
1253
|
+
swiper: n,
|
|
1254
|
+
runCallbacks: e,
|
|
1255
|
+
direction: t,
|
|
1256
|
+
step: "End"
|
|
1257
|
+
}));
|
|
1258
|
+
}
|
|
1259
|
+
function _t(e = !0, t) {
|
|
1260
|
+
let n = this, { params: r } = n;
|
|
1261
|
+
r.cssMode || (r.autoHeight && n.updateAutoHeight(), ht({
|
|
1262
|
+
swiper: n,
|
|
1263
|
+
runCallbacks: e,
|
|
1264
|
+
direction: t,
|
|
1265
|
+
step: "Start"
|
|
1266
|
+
}));
|
|
1267
|
+
}
|
|
1268
|
+
var vt = {
|
|
1269
|
+
setTransition: mt,
|
|
1270
|
+
transitionStart: _t,
|
|
1271
|
+
transitionEnd: gt
|
|
1272
|
+
};
|
|
1273
|
+
function yt(e = this.isHorizontal() ? "x" : "y") {
|
|
1274
|
+
let t = this, { params: n, rtlTranslate: r, translate: i, wrapperEl: a } = t;
|
|
1275
|
+
if (n.virtualTranslate) return r ? -i : i;
|
|
1276
|
+
if (n.cssMode) return i;
|
|
1277
|
+
let o = ee(a, e);
|
|
1278
|
+
return o += t.cssOverflowAdjustment(), r && (o = -o), o || 0;
|
|
1279
|
+
}
|
|
1280
|
+
function bt() {
|
|
1281
|
+
return -this.snapGrid[this.snapGrid.length - 1];
|
|
1282
|
+
}
|
|
1283
|
+
function xt() {
|
|
1284
|
+
return -this.snapGrid[0];
|
|
1285
|
+
}
|
|
1286
|
+
function St(e, t) {
|
|
1287
|
+
let n = this, { rtlTranslate: r, params: i, wrapperEl: a, progress: o } = n, s = 0, c = 0;
|
|
1288
|
+
n.isHorizontal() ? s = r ? -e : e : c = e, i.roundLengths && (s = Math.floor(s), c = Math.floor(c)), n.previousTranslate = n.translate, n.translate = n.isHorizontal() ? s : c, i.cssMode ? a[n.isHorizontal() ? "scrollLeft" : "scrollTop"] = n.isHorizontal() ? -s : -c : i.virtualTranslate || (n.isHorizontal() ? s -= n.cssOverflowAdjustment() : c -= n.cssOverflowAdjustment(), a.style.transform = `translate3d(${s}px, ${c}px, 0px)`);
|
|
1289
|
+
let l, u = n.maxTranslate() - n.minTranslate();
|
|
1290
|
+
l = u === 0 ? 0 : (e - n.minTranslate()) / u, l !== o && n.updateProgress(e), n.emit("setTranslate", n.translate, t);
|
|
1291
|
+
}
|
|
1292
|
+
function Ct(e = 0, t = this.params.speed, n = !0, r = !0, i) {
|
|
1293
|
+
let a = this, { params: o, wrapperEl: s } = a;
|
|
1294
|
+
if (a.animating && o.preventInteractionOnTransition) return !1;
|
|
1295
|
+
let c = a.minTranslate(), l = a.maxTranslate(), u;
|
|
1296
|
+
if (u = r && e > c ? c : r && e < l ? l : e, a.updateProgress(u), o.cssMode) {
|
|
1297
|
+
let e = a.isHorizontal();
|
|
1298
|
+
return t === 0 ? s[e ? "scrollLeft" : "scrollTop"] = -u : s.scrollTo({
|
|
1299
|
+
[e ? "left" : "top"]: -u,
|
|
1300
|
+
behavior: "smooth"
|
|
1301
|
+
}), !0;
|
|
1302
|
+
}
|
|
1303
|
+
return t === 0 ? (a.setTransition(0), a.setTranslate(u), n && (a.emit("beforeTransitionStart", t, i), a.emit("transitionEnd"))) : (a.setTransition(t), a.setTranslate(u), n && (a.emit("beforeTransitionStart", t, i), a.emit("transitionStart")), a.animating || (a.animating = !0, a.onTranslateToWrapperTransitionEnd ||= function(e) {
|
|
1304
|
+
!a || a.destroyed || e.target === this && (a.wrapperEl.removeEventListener("transitionend", a.onTranslateToWrapperTransitionEnd), a.onTranslateToWrapperTransitionEnd = null, delete a.onTranslateToWrapperTransitionEnd, a.animating = !1, n && a.emit("transitionEnd"));
|
|
1305
|
+
}, a.wrapperEl.addEventListener("transitionend", a.onTranslateToWrapperTransitionEnd))), !0;
|
|
1306
|
+
}
|
|
1307
|
+
var wt = {
|
|
1308
|
+
getTranslate: yt,
|
|
1309
|
+
setTranslate: St,
|
|
1310
|
+
minTranslate: xt,
|
|
1311
|
+
maxTranslate: bt,
|
|
1312
|
+
translateTo: Ct
|
|
1313
|
+
};
|
|
1314
|
+
function Tt(e) {
|
|
1315
|
+
let { slidesGrid: t, params: n } = e, r = e.rtlTranslate ? e.translate : -e.translate, i;
|
|
1316
|
+
for (let e = 0; e < t.length; e += 1) t[e + 1] === void 0 ? r >= t[e] && (i = e) : r >= t[e] && r < t[e + 1] - (t[e + 1] - t[e]) / 2 ? i = e : r >= t[e] && r < t[e + 1] && (i = e + 1);
|
|
1317
|
+
return n.normalizeSlideIndex && (i < 0 || i === void 0) && (i = 0), i;
|
|
1318
|
+
}
|
|
1319
|
+
function Et(e) {
|
|
1320
|
+
let t = this, n = t.rtlTranslate ? t.translate : -t.translate, { snapGrid: r, params: i, activeIndex: a, realIndex: o, snapIndex: s } = t, c = e, l, u = (e) => {
|
|
1321
|
+
let n = t.virtual.slides, r = e - (t.virtual.slidesBefore ?? 0);
|
|
1322
|
+
return r < 0 && (r = n.length + r), r >= n.length && (r -= n.length), r;
|
|
1323
|
+
};
|
|
1324
|
+
if (c === void 0 && (c = Tt(t)), r.indexOf(n) >= 0) l = r.indexOf(n);
|
|
1325
|
+
else {
|
|
1326
|
+
let e = Math.min(i.slidesPerGroupSkip, c);
|
|
1327
|
+
l = e + Math.floor((c - e) / i.slidesPerGroup);
|
|
1328
|
+
}
|
|
1329
|
+
if (l >= r.length && (l = r.length - 1), c === a && !t.params.loop) {
|
|
1330
|
+
l !== s && (t.snapIndex = l, t.emit("snapIndexChange"));
|
|
1331
|
+
return;
|
|
1332
|
+
}
|
|
1333
|
+
if (c === a && t.params.loop && t.virtual && t.params.virtual?.enabled) {
|
|
1334
|
+
t.realIndex = u(c);
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
let d = t.grid && i.grid && i.grid.rows > 1, f;
|
|
1338
|
+
if (t.virtual && i.virtual?.enabled) f = i.loop ? u(c) : c;
|
|
1339
|
+
else if (d) {
|
|
1340
|
+
let e = t.slides.find((e) => e.column === c), n = parseInt(e.getAttribute("data-swiper-slide-index"), 10);
|
|
1341
|
+
Number.isNaN(n) && (n = Math.max(t.slides.indexOf(e), 0)), f = Math.floor(n / i.grid.rows);
|
|
1342
|
+
} else if (t.slides[c]) {
|
|
1343
|
+
let e = t.slides[c].getAttribute("data-swiper-slide-index");
|
|
1344
|
+
f = e ? parseInt(e, 10) : c;
|
|
1345
|
+
} else f = c;
|
|
1346
|
+
Object.assign(t, {
|
|
1347
|
+
previousSnapIndex: s,
|
|
1348
|
+
snapIndex: l,
|
|
1349
|
+
previousRealIndex: o,
|
|
1350
|
+
realIndex: f,
|
|
1351
|
+
previousIndex: a,
|
|
1352
|
+
activeIndex: c
|
|
1353
|
+
}), t.initialized && J(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && (o !== f && t.emit("realIndexChange"), t.emit("slideChange"));
|
|
1354
|
+
}
|
|
1355
|
+
function Dt(e) {
|
|
1356
|
+
let t = this, n = [], r = t.virtual && t.params.virtual?.enabled, i = 0, a;
|
|
1357
|
+
typeof e == "number" ? t.setTransition(e) : e === !0 && t.setTransition(t.params.speed);
|
|
1358
|
+
let o = (e) => r ? t.slides[t.getSlideIndexByData(e)] : t.slides[e];
|
|
1359
|
+
if (t.params.slidesPerView !== "auto" && t.params.slidesPerView > 1) if (t.params.centeredSlides) (t.visibleSlides || []).forEach((e) => {
|
|
1360
|
+
n.push(e);
|
|
1361
|
+
});
|
|
1362
|
+
else for (a = 0; a < Math.ceil(t.params.slidesPerView); a += 1) {
|
|
1363
|
+
let e = t.activeIndex + a;
|
|
1364
|
+
if (e > t.slides.length && !r) break;
|
|
1365
|
+
let i = o(e);
|
|
1366
|
+
i && n.push(i);
|
|
1367
|
+
}
|
|
1368
|
+
else {
|
|
1369
|
+
let e = o(t.activeIndex);
|
|
1370
|
+
e && n.push(e);
|
|
1371
|
+
}
|
|
1372
|
+
for (a = 0; a < n.length; a += 1) if (n[a] !== void 0) {
|
|
1373
|
+
let e = n[a].offsetHeight;
|
|
1374
|
+
i = e > i ? e : i;
|
|
1375
|
+
}
|
|
1376
|
+
(i || i === 0) && (t.wrapperEl.style.height = `${i}px`);
|
|
1377
|
+
}
|
|
1378
|
+
function Ot(e, t) {
|
|
1379
|
+
let n = this, r = n.params, i = e.closest(`.${r.slideClass}, swiper-slide`);
|
|
1380
|
+
!i && n.isElement && t && t.length > 1 && t.includes(e) && [...t.slice(t.indexOf(e) + 1, t.length)].forEach((e) => {
|
|
1381
|
+
!i && e.matches && e.matches(`.${r.slideClass}, swiper-slide`) && (i = e);
|
|
1382
|
+
});
|
|
1383
|
+
let a = !1, o;
|
|
1384
|
+
if (i) {
|
|
1385
|
+
for (let e = 0; e < n.slides.length; e += 1) if (n.slides[e] === i) {
|
|
1386
|
+
a = !0, o = e;
|
|
1387
|
+
break;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
if (i && a) n.clickedSlide = i, n.virtual && n.params.virtual?.enabled ? n.clickedIndex = parseInt(i.getAttribute("data-swiper-slide-index"), 10) : n.clickedIndex = o;
|
|
1391
|
+
else {
|
|
1392
|
+
n.clickedSlide = void 0, n.clickedIndex = void 0;
|
|
1393
|
+
return;
|
|
1394
|
+
}
|
|
1395
|
+
r.slideToClickedSlide && n.clickedIndex !== void 0 && n.clickedIndex !== n.activeIndex && n.slideToClickedSlide();
|
|
1396
|
+
}
|
|
1397
|
+
function kt(e) {
|
|
1398
|
+
let t = this;
|
|
1399
|
+
if (e === void 0) {
|
|
1400
|
+
let n = t.rtlTranslate ? -1 : 1;
|
|
1401
|
+
e = t && t.translate && t.translate * n || 0;
|
|
1402
|
+
}
|
|
1403
|
+
let n = t.params, r = t.maxTranslate() - t.minTranslate(), { progress: i, isBeginning: a, isEnd: o } = t, s = t.progressLoop, c = a, l = o;
|
|
1404
|
+
if (r === 0) i = 0, a = !0, o = !0;
|
|
1405
|
+
else {
|
|
1406
|
+
i = (e - t.minTranslate()) / r;
|
|
1407
|
+
let n = Math.abs(e - t.minTranslate()) < 1, s = Math.abs(e - t.maxTranslate()) < 1;
|
|
1408
|
+
a = n || i <= 0, o = s || i >= 1, n && (i = 0), s && (i = 1);
|
|
1409
|
+
}
|
|
1410
|
+
if (n.loop) {
|
|
1411
|
+
let n = t.getSlideIndexByData(0), r = t.getSlideIndexByData(t.slides.length - 1), i = t.slidesGrid[n], a = t.slidesGrid[r], o = t.slidesGrid[t.slidesGrid.length - 1], c = Math.abs(e);
|
|
1412
|
+
s = c >= i ? (c - i) / o : (c + o - a) / o, s > 1 && --s;
|
|
1413
|
+
}
|
|
1414
|
+
Object.assign(t, {
|
|
1415
|
+
progress: i,
|
|
1416
|
+
progressLoop: s,
|
|
1417
|
+
isBeginning: a,
|
|
1418
|
+
isEnd: o
|
|
1419
|
+
}), (n.watchSlidesProgress || n.centeredSlides && n.autoHeight) && t.updateSlidesProgress(e), a && !c && t.emit("reachBeginning toEdge"), o && !l && t.emit("reachEnd toEdge"), (c && !a || l && !o) && t.emit("fromEdge"), t.emit("progress", i);
|
|
1420
|
+
}
|
|
1421
|
+
function At() {
|
|
1422
|
+
let e = this, t, n, r = e.el;
|
|
1423
|
+
t = e.params.width !== void 0 && e.params.width !== null ? e.params.width : r.clientWidth, n = e.params.height !== void 0 && e.params.height !== null ? e.params.height : r.clientHeight, !(t === 0 && e.isHorizontal() || n === 0 && e.isVertical()) && (t = t - parseInt(H(r, "padding-left") || "0", 10) - parseInt(H(r, "padding-right") || "0", 10), n = n - parseInt(H(r, "padding-top") || "0", 10) - parseInt(H(r, "padding-bottom") || "0", 10), Number.isNaN(t) && (t = 0), Number.isNaN(n) && (n = 0), Object.assign(e, {
|
|
1424
|
+
width: t,
|
|
1425
|
+
height: n,
|
|
1426
|
+
size: e.isHorizontal() ? t : n
|
|
1427
|
+
}));
|
|
1428
|
+
}
|
|
1429
|
+
function jt() {
|
|
1430
|
+
let e = this;
|
|
1431
|
+
function t(t, n) {
|
|
1432
|
+
return parseFloat(t.getPropertyValue(e.getDirectionLabel(n)) || "0");
|
|
1433
|
+
}
|
|
1434
|
+
let n = e.params, { wrapperEl: r, slidesEl: i, rtlTranslate: a, wrongRTL: o } = e, s = !!(e.virtual && n.virtual?.enabled), c = s ? e.virtual.slides.length : e.slides.length, l = z(i, `.${e.params.slideClass}, swiper-slide`), u = s ? e.virtual.slides.length : l.length, d = [], f = [], p = [], m = (t) => typeof t == "function" ? t.call(e) : t, h = m(n.slidesOffsetBefore), g = m(n.slidesOffsetAfter), _ = e.snapGrid.length, v = e.slidesGrid.length, y = e.size - h - g, b = n.spaceBetween, x = -h, S = 0, C = 0;
|
|
1435
|
+
if (y === void 0) return;
|
|
1436
|
+
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * y : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b - h - g, l.forEach((e) => {
|
|
1437
|
+
a ? e.style.marginLeft = "" : e.style.marginRight = "", e.style.marginBottom = "", e.style.marginTop = "";
|
|
1438
|
+
}), n.centeredSlides && n.cssMode && (R(r, "--swiper-centered-offset-before", ""), R(r, "--swiper-centered-offset-after", "")), n.cssMode && (R(r, "--swiper-slides-offset-before", `${h}px`), R(r, "--swiper-slides-offset-after", `${g}px`));
|
|
1439
|
+
let w = n.grid && n.grid.rows > 1 && e.grid;
|
|
1440
|
+
w ? e.grid.initSlides(l) : e.grid && e.grid.unsetSlides();
|
|
1441
|
+
let T = 0, E = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((e) => n.breakpoints[e]?.slidesPerView !== void 0).length > 0;
|
|
1442
|
+
for (let r = 0; r < u; r += 1) {
|
|
1443
|
+
T = 0;
|
|
1444
|
+
let i = l[r];
|
|
1445
|
+
if (!(i && (w && e.grid.updateSlide(r, i, l), H(i, "display") === "none"))) {
|
|
1446
|
+
if (s && n.slidesPerView === "auto") n.virtual?.slidesPerViewAutoSlideSize && (T = n.virtual.slidesPerViewAutoSlideSize), T && i && (n.roundLengths && (T = Math.floor(T)), i.style[e.getDirectionLabel("width")] = `${T}px`);
|
|
1447
|
+
else if (n.slidesPerView === "auto") {
|
|
1448
|
+
E && (i.style[e.getDirectionLabel("width")] = "");
|
|
1449
|
+
let r = getComputedStyle(i), a = i.style.transform, o = i.style.webkitTransform;
|
|
1450
|
+
if (a && (i.style.transform = "none"), o && (i.style.webkitTransform = "none"), n.roundLengths) T = e.isHorizontal() ? U(i, "width") : U(i, "height");
|
|
1451
|
+
else {
|
|
1452
|
+
let e = t(r, "width"), n = t(r, "padding-left"), a = t(r, "padding-right"), o = t(r, "margin-left"), s = t(r, "margin-right"), c = r.getPropertyValue("box-sizing");
|
|
1453
|
+
if (c && c === "border-box") T = e + o + s;
|
|
1454
|
+
else {
|
|
1455
|
+
let { clientWidth: t, offsetWidth: r } = i;
|
|
1456
|
+
T = e + n + a + o + s + (r - t);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
a && (i.style.transform = a), o && (i.style.webkitTransform = o), n.roundLengths && (T = Math.floor(T));
|
|
1460
|
+
} else T = (y - (n.slidesPerView - 1) * b) / n.slidesPerView, n.roundLengths && (T = Math.floor(T)), i && (i.style[e.getDirectionLabel("width")] = `${T}px`);
|
|
1461
|
+
i && (i.swiperSlideSize = T), p.push(T), n.centeredSlides ? (x = x + T / 2 + S / 2 + b, S === 0 && r !== 0 && (x = x - y / 2 - b), r === 0 && (x = x - y / 2 - b), Math.abs(x) < 1 / 1e3 && (x = 0), n.roundLengths && (x = Math.floor(x)), C % n.slidesPerGroup === 0 && d.push(x), f.push(x)) : (n.roundLengths && (x = Math.floor(x)), (C - Math.min(e.params.slidesPerGroupSkip, C)) % e.params.slidesPerGroup === 0 && d.push(x), f.push(x), x = x + T + b), e.virtualSize += T + b, S = T, C += 1;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
if (e.virtualSize = Math.max(e.virtualSize, y) + g, a && o && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize + b}px`), n.setWrapperSize && (r.style[e.getDirectionLabel("width")] = `${e.virtualSize + b}px`), w && e.grid.updateWrapperSize(T, d), !n.centeredSlides) {
|
|
1465
|
+
let t = n.slidesPerView !== "auto" && n.slidesPerView % 1 != 0, r = n.snapToSlideEdge && !n.loop && (n.slidesPerView === "auto" || t), i = d.length;
|
|
1466
|
+
if (r) {
|
|
1467
|
+
let e;
|
|
1468
|
+
if (n.slidesPerView === "auto") {
|
|
1469
|
+
e = 1;
|
|
1470
|
+
let t = 0;
|
|
1471
|
+
for (let n = p.length - 1; n >= 0 && (t += p[n] + (n < p.length - 1 ? b : 0), t <= y); --n) e = p.length - n;
|
|
1472
|
+
} else e = Math.floor(n.slidesPerView);
|
|
1473
|
+
i = Math.max(u - e, 0);
|
|
1474
|
+
}
|
|
1475
|
+
let a = [];
|
|
1476
|
+
for (let t = 0; t < d.length; t += 1) {
|
|
1477
|
+
let o = d[t];
|
|
1478
|
+
n.roundLengths && (o = Math.floor(o)), r ? t <= i && a.push(o) : d[t] <= e.virtualSize - y && a.push(o);
|
|
1479
|
+
}
|
|
1480
|
+
d = a, Math.floor(e.virtualSize - y) - Math.floor(d[d.length - 1]) > 1 && (r || d.push(e.virtualSize - y));
|
|
1481
|
+
}
|
|
1482
|
+
if (s && n.loop) {
|
|
1483
|
+
let t = p[0] + b, r = (e.virtual.slidesBefore ?? 0) + (e.virtual.slidesAfter ?? 0);
|
|
1484
|
+
if (n.slidesPerGroup > 1) {
|
|
1485
|
+
let e = Math.ceil(r / n.slidesPerGroup), i = t * n.slidesPerGroup;
|
|
1486
|
+
for (let t = 0; t < e; t += 1) d.push(d[d.length - 1] + i);
|
|
1487
|
+
}
|
|
1488
|
+
for (let i = 0; i < r; i += 1) n.slidesPerGroup === 1 && d.push(d[d.length - 1] + t), f.push(f[f.length - 1] + t), e.virtualSize += t;
|
|
1489
|
+
}
|
|
1490
|
+
if (d.length === 0 && (d = [0]), b !== 0) {
|
|
1491
|
+
let t = e.isHorizontal() && a ? "marginLeft" : e.getDirectionLabel("marginRight");
|
|
1492
|
+
l.filter((e, t) => !n.cssMode || n.loop ? !0 : t !== l.length - 1).forEach((e) => {
|
|
1493
|
+
e.style[t] = `${b}px`;
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
if (n.centeredSlides && n.centeredSlidesBounds) {
|
|
1497
|
+
let e = 0;
|
|
1498
|
+
p.forEach((t) => {
|
|
1499
|
+
e += t + (b || 0);
|
|
1500
|
+
}), e -= b;
|
|
1501
|
+
let t = e > y ? e - y : 0;
|
|
1502
|
+
d = d.map((e) => e <= 0 ? -h : e > t ? t + g : e);
|
|
1503
|
+
}
|
|
1504
|
+
if (n.centerInsufficientSlides) {
|
|
1505
|
+
let e = 0;
|
|
1506
|
+
if (p.forEach((t) => {
|
|
1507
|
+
e += t + (b || 0);
|
|
1508
|
+
}), e -= b, e < y) {
|
|
1509
|
+
let t = (y - e) / 2;
|
|
1510
|
+
d.forEach((e, n) => {
|
|
1511
|
+
d[n] = e - t;
|
|
1512
|
+
}), f.forEach((e, n) => {
|
|
1513
|
+
f[n] = e + t;
|
|
1514
|
+
});
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
if (Object.assign(e, {
|
|
1518
|
+
slides: l,
|
|
1519
|
+
snapGrid: d,
|
|
1520
|
+
slidesGrid: f,
|
|
1521
|
+
slidesSizesGrid: p
|
|
1522
|
+
}), n.centeredSlides && n.cssMode && !n.centeredSlidesBounds) {
|
|
1523
|
+
R(r, "--swiper-centered-offset-before", `${-d[0]}px`), R(r, "--swiper-centered-offset-after", `${e.size / 2 - p[p.length - 1] / 2}px`);
|
|
1524
|
+
let t = -e.snapGrid[0], n = -e.slidesGrid[0];
|
|
1525
|
+
e.snapGrid = e.snapGrid.map((e) => e + t), e.slidesGrid = e.slidesGrid.map((e) => e + n);
|
|
1526
|
+
}
|
|
1527
|
+
if (u !== c && e.emit("slidesLengthChange"), d.length !== _ && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), f.length !== v && e.emit("slidesGridLengthChange"), n.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !s && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
|
|
1528
|
+
let t = `${n.containerModifierClass}backface-hidden`, r = e.el.classList.contains(t);
|
|
1529
|
+
u <= n.maxBackfaceHiddenSlides ? r || e.el.classList.add(t) : r && e.el.classList.remove(t);
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
var X = (e, t, n) => {
|
|
1533
|
+
t && !e.classList.contains(n) ? e.classList.add(n) : !t && e.classList.contains(n) && e.classList.remove(n);
|
|
1534
|
+
};
|
|
1535
|
+
function Mt() {
|
|
1536
|
+
let e = this, { slides: t, params: n, slidesEl: r, activeIndex: i } = e, a = !!(e.virtual && n.virtual?.enabled), o = e.grid && n.grid && n.grid.rows > 1, s = (e) => z(r, `.${n.slideClass}${e}, swiper-slide${e}`)[0], c, l, u;
|
|
1537
|
+
if (a) if (n.loop) {
|
|
1538
|
+
let t = e.virtual.slides, n = i - (e.virtual.slidesBefore ?? 0);
|
|
1539
|
+
n < 0 && (n = t.length + n), n >= t.length && (n -= t.length), c = s(`[data-swiper-slide-index="${n}"]`);
|
|
1540
|
+
} else c = s(`[data-swiper-slide-index="${i}"]`);
|
|
1541
|
+
else o ? (c = t.find((e) => e.column === i), u = t.find((e) => e.column === i + 1), l = t.find((e) => e.column === i - 1)) : c = t[i];
|
|
1542
|
+
c && (o || (u = ae(c, `.${n.slideClass}, swiper-slide`)[0], n.loop && !u && (u = t[0]), l = ie(c, `.${n.slideClass}, swiper-slide`)[0], n.loop)), t.forEach((e) => {
|
|
1543
|
+
X(e, e === c, n.slideActiveClass), X(e, e === u, n.slideNextClass), X(e, e === l, n.slidePrevClass);
|
|
1544
|
+
}), e.emitSlidesClasses();
|
|
1545
|
+
}
|
|
1546
|
+
function Nt() {
|
|
1547
|
+
let e = this, t = e.slides, n = e.isElement ? e.isHorizontal() ? e.wrapperEl.offsetLeft : e.wrapperEl.offsetTop : 0;
|
|
1548
|
+
for (let r = 0; r < t.length; r += 1) t[r].swiperSlideOffset = (e.isHorizontal() ? t[r].offsetLeft : t[r].offsetTop) - n - e.cssOverflowAdjustment();
|
|
1549
|
+
}
|
|
1550
|
+
var Pt = (e, t, n) => {
|
|
1551
|
+
t && !e.classList.contains(n) ? e.classList.add(n) : !t && e.classList.contains(n) && e.classList.remove(n);
|
|
1552
|
+
};
|
|
1553
|
+
function Ft(e = this && this.translate || 0) {
|
|
1554
|
+
let t = this, n = t.params, { slides: r, rtlTranslate: i, snapGrid: a } = t;
|
|
1555
|
+
if (r.length === 0) return;
|
|
1556
|
+
r[0].swiperSlideOffset === void 0 && t.updateSlidesOffset();
|
|
1557
|
+
let o = -e;
|
|
1558
|
+
i && (o = e), t.visibleSlidesIndexes = [], t.visibleSlides = [];
|
|
1559
|
+
let s = n.spaceBetween;
|
|
1560
|
+
typeof s == "string" && s.indexOf("%") >= 0 ? s = parseFloat(s.replace("%", "")) / 100 * t.size : typeof s == "string" && (s = parseFloat(s));
|
|
1561
|
+
for (let e = 0; e < r.length; e += 1) {
|
|
1562
|
+
let c = r[e], l = c.swiperSlideOffset ?? 0;
|
|
1563
|
+
n.cssMode && n.centeredSlides && (l -= r[0].swiperSlideOffset ?? 0);
|
|
1564
|
+
let u = c.swiperSlideSize ?? 0, d = (o + (n.centeredSlides ? t.minTranslate() : 0) - l) / (u + s), f = (o - a[0] + (n.centeredSlides ? t.minTranslate() : 0) - l) / (u + s), p = -(o - l), m = p + t.slidesSizesGrid[e], h = p >= 0 && p <= t.size - t.slidesSizesGrid[e], g = p >= 0 && p < t.size - 1 || m > 1 && m <= t.size || p <= 0 && m >= t.size;
|
|
1565
|
+
g && (t.visibleSlides.push(c), t.visibleSlidesIndexes.push(e)), Pt(c, g, n.slideVisibleClass), Pt(c, h, n.slideFullyVisibleClass), c.progress = i ? -d : d, c.originalProgress = i ? -f : f;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
var It = {
|
|
1569
|
+
eventsEmitter: Fe,
|
|
1570
|
+
update: {
|
|
1571
|
+
updateSize: At,
|
|
1572
|
+
updateSlides: jt,
|
|
1573
|
+
updateAutoHeight: Dt,
|
|
1574
|
+
updateSlidesOffset: Nt,
|
|
1575
|
+
updateSlidesProgress: Ft,
|
|
1576
|
+
updateProgress: kt,
|
|
1577
|
+
updateSlidesClasses: Mt,
|
|
1578
|
+
updateActiveIndex: Et,
|
|
1579
|
+
updateClickedSlide: Ot
|
|
1580
|
+
},
|
|
1581
|
+
translate: wt,
|
|
1582
|
+
transition: vt,
|
|
1583
|
+
slide: pt,
|
|
1584
|
+
loop: nt,
|
|
1585
|
+
grabCursor: Qe,
|
|
1586
|
+
events: Ye,
|
|
1587
|
+
breakpoints: Oe,
|
|
1588
|
+
checkOverflow: Ae,
|
|
1589
|
+
classes: Pe
|
|
1590
|
+
}, Z = {}, Q = class e {
|
|
1591
|
+
static extendedDefaults;
|
|
1592
|
+
static defaults;
|
|
1593
|
+
constructor(...t) {
|
|
1594
|
+
let n, r;
|
|
1595
|
+
if (t.length === 1 && t[0] !== null && typeof t[0] == "object" && Object.prototype.toString.call(t[0]).slice(8, -1) === "Object" ? r = t[0] : [n, r] = t, r ||= {}, r = L({}, r), n && !r.el && (r.el = n), r.el && typeof r.el == "string" && typeof document < "u" && document.querySelectorAll(r.el).length > 1) {
|
|
1596
|
+
let t = [];
|
|
1597
|
+
return document.querySelectorAll(r.el).forEach((n) => {
|
|
1598
|
+
let i = L({}, r, { el: n });
|
|
1599
|
+
t.push(new e(i));
|
|
1600
|
+
}), t;
|
|
1601
|
+
}
|
|
1602
|
+
let i = this;
|
|
1603
|
+
i.__swiper__ = !0, i.support = ve(), i.device = xe({ userAgent: r.userAgent ?? void 0 }), i.browser = we(), i.eventsListeners = {}, i.eventsAnyListeners = [], i.modules = [...i.__modules__ || []], r.modules && Array.isArray(r.modules) && r.modules.forEach((e) => {
|
|
1604
|
+
let t = e;
|
|
1605
|
+
typeof t == "function" && i.modules.indexOf(t) < 0 && i.modules.push(t);
|
|
1606
|
+
});
|
|
1607
|
+
let a = {};
|
|
1608
|
+
if (i.modules.forEach((e) => {
|
|
1609
|
+
e({
|
|
1610
|
+
params: r,
|
|
1611
|
+
swiper: i,
|
|
1612
|
+
extendParams: rt(r, a),
|
|
1613
|
+
on: i.on.bind(i),
|
|
1614
|
+
once: i.once.bind(i),
|
|
1615
|
+
off: i.off.bind(i),
|
|
1616
|
+
emit: i.emit.bind(i)
|
|
1617
|
+
});
|
|
1618
|
+
}), i.params = L({}, L({}, Y, a), Z, r), i.originalParams = L({}, i.params), i.passedParams = L({}, r), i.params && i.params.on) {
|
|
1619
|
+
let e = i.params.on;
|
|
1620
|
+
Object.keys(e).forEach((t) => {
|
|
1621
|
+
let n = e[t];
|
|
1622
|
+
n && i.on(t, n);
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
return i.params && i.params.onAny && i.onAny(i.params.onAny), Object.assign(i, {
|
|
1626
|
+
enabled: i.params.enabled,
|
|
1627
|
+
el: n,
|
|
1628
|
+
classNames: [],
|
|
1629
|
+
slides: [],
|
|
1630
|
+
slidesGrid: [],
|
|
1631
|
+
snapGrid: [],
|
|
1632
|
+
slidesSizesGrid: [],
|
|
1633
|
+
isHorizontal() {
|
|
1634
|
+
return i.params.direction === "horizontal";
|
|
1635
|
+
},
|
|
1636
|
+
isVertical() {
|
|
1637
|
+
return i.params.direction === "vertical";
|
|
1638
|
+
},
|
|
1639
|
+
activeIndex: 0,
|
|
1640
|
+
realIndex: 0,
|
|
1641
|
+
isBeginning: !0,
|
|
1642
|
+
isEnd: !1,
|
|
1643
|
+
translate: 0,
|
|
1644
|
+
previousTranslate: 0,
|
|
1645
|
+
progress: 0,
|
|
1646
|
+
velocity: 0,
|
|
1647
|
+
animating: !1,
|
|
1648
|
+
cssOverflowAdjustment() {
|
|
1649
|
+
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
|
|
1650
|
+
},
|
|
1651
|
+
allowSlideNext: i.params.allowSlideNext,
|
|
1652
|
+
allowSlidePrev: i.params.allowSlidePrev,
|
|
1653
|
+
touchEventsData: {
|
|
1654
|
+
isTouched: void 0,
|
|
1655
|
+
isMoved: void 0,
|
|
1656
|
+
allowTouchCallbacks: void 0,
|
|
1657
|
+
touchStartTime: void 0,
|
|
1658
|
+
isScrolling: void 0,
|
|
1659
|
+
currentTranslate: void 0,
|
|
1660
|
+
startTranslate: void 0,
|
|
1661
|
+
allowThresholdMove: void 0,
|
|
1662
|
+
focusableElements: i.params.focusableElements,
|
|
1663
|
+
lastClickTime: 0,
|
|
1664
|
+
clickTimeout: void 0,
|
|
1665
|
+
velocities: [],
|
|
1666
|
+
allowMomentumBounce: void 0,
|
|
1667
|
+
startMoving: void 0,
|
|
1668
|
+
pointerId: null,
|
|
1669
|
+
touchId: null
|
|
1670
|
+
},
|
|
1671
|
+
allowClick: !0,
|
|
1672
|
+
allowTouchMove: i.params.allowTouchMove,
|
|
1673
|
+
touches: {
|
|
1674
|
+
startX: 0,
|
|
1675
|
+
startY: 0,
|
|
1676
|
+
currentX: 0,
|
|
1677
|
+
currentY: 0,
|
|
1678
|
+
diff: 0
|
|
1679
|
+
},
|
|
1680
|
+
imagesToLoad: [],
|
|
1681
|
+
imagesLoaded: 0
|
|
1682
|
+
}), i.emit("_swiper"), i.params.init && i.init(), i;
|
|
1683
|
+
}
|
|
1684
|
+
getDirectionLabel(e) {
|
|
1685
|
+
return this.isHorizontal() ? e : {
|
|
1686
|
+
width: "height",
|
|
1687
|
+
"margin-top": "margin-left",
|
|
1688
|
+
"margin-bottom ": "margin-right",
|
|
1689
|
+
"margin-left": "margin-top",
|
|
1690
|
+
"margin-right": "margin-bottom",
|
|
1691
|
+
"padding-left": "padding-top",
|
|
1692
|
+
"padding-right": "padding-bottom",
|
|
1693
|
+
marginRight: "marginBottom"
|
|
1694
|
+
}[e];
|
|
1695
|
+
}
|
|
1696
|
+
isHorizontal() {
|
|
1697
|
+
return this.params.direction === "horizontal";
|
|
1698
|
+
}
|
|
1699
|
+
isVertical() {
|
|
1700
|
+
return this.params.direction === "vertical";
|
|
1701
|
+
}
|
|
1702
|
+
cssOverflowAdjustment() {
|
|
1703
|
+
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
|
|
1704
|
+
}
|
|
1705
|
+
getSlideIndex(e) {
|
|
1706
|
+
let { slidesEl: t, params: n } = this, r = oe(z(t, `.${n.slideClass}, swiper-slide`)[0]);
|
|
1707
|
+
return oe(e) - (r ?? 0);
|
|
1708
|
+
}
|
|
1709
|
+
getSlideIndexByData(e) {
|
|
1710
|
+
return this.getSlideIndex(this.slides.find((t) => Number(t.getAttribute("data-swiper-slide-index")) === e));
|
|
1711
|
+
}
|
|
1712
|
+
getSlideIndexWhenGrid(e) {
|
|
1713
|
+
return this.grid && this.params.grid && this.params.grid.rows > 1 && (this.params.grid.fill === "column" ? e = Math.floor(e / this.params.grid.rows) : this.params.grid.fill === "row" && (e %= Math.ceil(this.slides.length / this.params.grid.rows))), e;
|
|
1714
|
+
}
|
|
1715
|
+
recalcSlides() {
|
|
1716
|
+
let { slidesEl: e, params: t } = this;
|
|
1717
|
+
this.slides = z(e, `.${t.slideClass}, swiper-slide`);
|
|
1718
|
+
}
|
|
1719
|
+
enable() {
|
|
1720
|
+
this.enabled || (this.enabled = !0, this.params.grabCursor && this.setGrabCursor(), this.emit("enable"));
|
|
1721
|
+
}
|
|
1722
|
+
disable() {
|
|
1723
|
+
this.enabled && (this.enabled = !1, this.params.grabCursor && this.unsetGrabCursor(), this.emit("disable"));
|
|
1724
|
+
}
|
|
1725
|
+
setProgress(e, t) {
|
|
1726
|
+
e = Math.min(Math.max(e, 0), 1);
|
|
1727
|
+
let n = this.minTranslate(), r = (this.maxTranslate() - n) * e + n;
|
|
1728
|
+
this.translateTo(r, t === void 0 ? 0 : t), this.updateActiveIndex(), this.updateSlidesClasses();
|
|
1729
|
+
}
|
|
1730
|
+
emitContainerClasses() {
|
|
1731
|
+
if (!this.params._emitClasses || !this.el) return;
|
|
1732
|
+
let e = this.el.className.split(" ").filter((e) => e.indexOf("swiper") === 0 || e.indexOf(this.params.containerModifierClass) === 0);
|
|
1733
|
+
this.emit("_containerClasses", e.join(" "));
|
|
1734
|
+
}
|
|
1735
|
+
getSlideClasses(e) {
|
|
1736
|
+
return this.destroyed ? "" : e.className.split(" ").filter((e) => e.indexOf("swiper-slide") === 0 || e.indexOf(this.params.slideClass) === 0).join(" ");
|
|
1737
|
+
}
|
|
1738
|
+
emitSlidesClasses() {
|
|
1739
|
+
if (!this.params._emitClasses || !this.el) return;
|
|
1740
|
+
let e = [];
|
|
1741
|
+
this.slides.forEach((t) => {
|
|
1742
|
+
let n = this.getSlideClasses(t);
|
|
1743
|
+
e.push({
|
|
1744
|
+
slideEl: t,
|
|
1745
|
+
classNames: n
|
|
1746
|
+
}), this.emit("_slideClass", t, n);
|
|
1747
|
+
}), this.emit("_slideClasses", e);
|
|
1748
|
+
}
|
|
1749
|
+
slidesPerViewDynamic(e = "current", t = !1) {
|
|
1750
|
+
let { params: n, slides: r, slidesGrid: i, slidesSizesGrid: a, size: o, activeIndex: s } = this, c = 1;
|
|
1751
|
+
if (typeof n.slidesPerView == "number") return n.slidesPerView;
|
|
1752
|
+
if (!o) return c;
|
|
1753
|
+
if (n.centeredSlides) {
|
|
1754
|
+
let e = r[s] ? Math.ceil(r[s].swiperSlideSize ?? 0) : 0, t = !1;
|
|
1755
|
+
for (let n = s + 1; n < r.length; n += 1) r[n] && !t && (e += Math.ceil(r[n].swiperSlideSize ?? 0), c += 1, e > o && (t = !0));
|
|
1756
|
+
for (let n = s - 1; n >= 0; --n) r[n] && !t && (e += r[n].swiperSlideSize ?? 0, c += 1, e > o && (t = !0));
|
|
1757
|
+
} else if (e === "current") for (let e = s + 1; e < r.length; e += 1) (t ? i[e] + a[e] - i[s] < o : i[e] - i[s] < o) && (c += 1);
|
|
1758
|
+
else for (let e = s - 1; e >= 0; --e) i[s] - i[e] < o && (c += 1);
|
|
1759
|
+
return c;
|
|
1760
|
+
}
|
|
1761
|
+
update() {
|
|
1762
|
+
let e = this;
|
|
1763
|
+
if (!e || e.destroyed) return;
|
|
1764
|
+
let { snapGrid: t, params: n } = e;
|
|
1765
|
+
n.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll("[loading=\"lazy\"]")].forEach((t) => {
|
|
1766
|
+
t.complete && K(e, t);
|
|
1767
|
+
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
1768
|
+
function r() {
|
|
1769
|
+
let t = e.rtlTranslate ? e.translate * -1 : e.translate, n = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate());
|
|
1770
|
+
e.setTranslate(n), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
1771
|
+
}
|
|
1772
|
+
let i;
|
|
1773
|
+
if (n.freeMode?.enabled && !n.cssMode) r(), n.autoHeight && e.updateAutoHeight();
|
|
1774
|
+
else {
|
|
1775
|
+
if ((n.slidesPerView === "auto" || n.slidesPerView > 1) && e.isEnd && !n.centeredSlides) {
|
|
1776
|
+
let t = e.virtual && n.virtual?.enabled ? e.virtual.slides.length : e.slides.length;
|
|
1777
|
+
i = e.slideTo(t - 1, 0, !1, !0);
|
|
1778
|
+
} else i = e.slideTo(e.activeIndex, 0, !1, !0);
|
|
1779
|
+
i || r();
|
|
1780
|
+
}
|
|
1781
|
+
n.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update");
|
|
1782
|
+
}
|
|
1783
|
+
changeDirection(e, t = !0) {
|
|
1784
|
+
let n = this, r = n.params.direction;
|
|
1785
|
+
return e ||= r === "horizontal" ? "vertical" : "horizontal", e === r || e !== "horizontal" && e !== "vertical" ? n : (n.el.classList.remove(`${n.params.containerModifierClass}${r}`), n.el.classList.add(`${n.params.containerModifierClass}${e}`), n.emitContainerClasses(), n.params.direction = e, n.slides.forEach((t) => {
|
|
1786
|
+
e === "vertical" ? t.style.width = "" : t.style.height = "";
|
|
1787
|
+
}), n.emit("changeDirection"), t && n.update(), n);
|
|
1788
|
+
}
|
|
1789
|
+
changeLanguageDirection(e) {
|
|
1790
|
+
let t = this;
|
|
1791
|
+
t.rtl && e === "rtl" || !t.rtl && e === "ltr" || (t.rtl = e === "rtl", t.rtlTranslate = t.params.direction === "horizontal" && t.rtl, t.rtl ? (t.el.classList.add(`${t.params.containerModifierClass}rtl`), t.el.dir = "rtl") : (t.el.classList.remove(`${t.params.containerModifierClass}rtl`), t.el.dir = "ltr"), t.update());
|
|
1792
|
+
}
|
|
1793
|
+
mount(e) {
|
|
1794
|
+
let t = this;
|
|
1795
|
+
if (t.mounted) return !0;
|
|
1796
|
+
if (typeof document > "u") return !1;
|
|
1797
|
+
let n = e ?? t.params.el, r = null;
|
|
1798
|
+
if (typeof n == "string" ? r = document.querySelector(n) : n instanceof HTMLElement && (r = n), !r) return !1;
|
|
1799
|
+
r.swiper = t;
|
|
1800
|
+
let i = r.parentNode;
|
|
1801
|
+
i && i.host && i.host.nodeName === t.params.swiperElementNodeName.toUpperCase() && (t.isElement = !0);
|
|
1802
|
+
let a = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`, o = r && r.shadowRoot ? r.shadowRoot.querySelector(a()) : z(r, a())[0];
|
|
1803
|
+
!o && t.params.createElements && (o = V("div", t.params.wrapperClass), r.append(o), z(r, `.${t.params.slideClass}`).forEach((e) => {
|
|
1804
|
+
o.append(e);
|
|
1805
|
+
}));
|
|
1806
|
+
let s = t.isElement ? r.parentNode.host : null;
|
|
1807
|
+
return Object.assign(t, {
|
|
1808
|
+
el: r,
|
|
1809
|
+
wrapperEl: o,
|
|
1810
|
+
slidesEl: t.isElement && !s.slideSlots ? s : o,
|
|
1811
|
+
hostEl: t.isElement ? s : r,
|
|
1812
|
+
mounted: !0,
|
|
1813
|
+
rtl: r.dir.toLowerCase() === "rtl" || H(r, "direction") === "rtl",
|
|
1814
|
+
rtlTranslate: t.params.direction === "horizontal" && (r.dir.toLowerCase() === "rtl" || H(r, "direction") === "rtl"),
|
|
1815
|
+
wrongRTL: H(o, "display") === "-webkit-box"
|
|
1816
|
+
}), !0;
|
|
1817
|
+
}
|
|
1818
|
+
init(e) {
|
|
1819
|
+
let t = this;
|
|
1820
|
+
if (t.initialized || t.mount(e) === !1) return t;
|
|
1821
|
+
t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.loop && t.virtual && t.params.virtual?.enabled ? t.slideTo((t.params.initialSlide ?? 0) + (t.virtual.slidesBefore ?? 0), 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.params.loop && t.loopCreate(void 0, !0), t.attachEvents();
|
|
1822
|
+
let n = [...t.el.querySelectorAll("[loading=\"lazy\"]")];
|
|
1823
|
+
return t.isElement && n.push(...t.hostEl.querySelectorAll("[loading=\"lazy\"]")), n.forEach((e) => {
|
|
1824
|
+
e.complete ? K(t, e) : e.addEventListener("load", (e) => {
|
|
1825
|
+
K(t, e.target);
|
|
1826
|
+
});
|
|
1827
|
+
}), J(t), t.initialized = !0, J(t), t.emit("init"), t.emit("afterInit"), t;
|
|
1828
|
+
}
|
|
1829
|
+
destroy(e = !0, t = !0) {
|
|
1830
|
+
let n = this, { params: r, el: i, wrapperEl: a, slides: o } = n;
|
|
1831
|
+
return n.params === void 0 || n.destroyed ? null : (n.emit("beforeDestroy"), n.initialized = !1, n.detachEvents(), r.loop && n.loopDestroy(), t && (n.removeClasses(), i && typeof i != "string" && i.removeAttribute("style"), a && a.removeAttribute("style"), o && o.length && o.forEach((e) => {
|
|
1832
|
+
e.classList.remove(r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), e.removeAttribute("style"), e.removeAttribute("data-swiper-slide-index");
|
|
1833
|
+
})), n.emit("destroy"), Object.keys(n.eventsListeners).forEach((e) => {
|
|
1834
|
+
n.off(e);
|
|
1835
|
+
}), e !== !1 && (n.el && typeof n.el != "string" && (n.el.swiper = null), M(n)), n.destroyed = !0, null);
|
|
1836
|
+
}
|
|
1837
|
+
static extendDefaults(e) {
|
|
1838
|
+
L(Z, e);
|
|
1839
|
+
}
|
|
1840
|
+
static installModule(t) {
|
|
1841
|
+
e.prototype.__modules__ || (e.prototype.__modules__ = []);
|
|
1842
|
+
let n = e.prototype.__modules__;
|
|
1843
|
+
typeof t == "function" && n.indexOf(t) < 0 && n.push(t);
|
|
1844
|
+
}
|
|
1845
|
+
static use(t) {
|
|
1846
|
+
return Array.isArray(t) ? (t.forEach((t) => e.installModule(t)), e) : (e.installModule(t), e);
|
|
1847
|
+
}
|
|
1848
|
+
};
|
|
1849
|
+
Object.defineProperty(Q, "extendedDefaults", { get() {
|
|
1850
|
+
return Z;
|
|
1851
|
+
} }), Object.defineProperty(Q, "defaults", { get() {
|
|
1852
|
+
return Y;
|
|
1853
|
+
} });
|
|
1854
|
+
var Lt = It, Rt = Q.prototype;
|
|
1855
|
+
Object.keys(Lt).forEach((e) => {
|
|
1856
|
+
let t = Lt[e];
|
|
1857
|
+
Object.keys(t).forEach((e) => {
|
|
1858
|
+
Rt[e] = t[e];
|
|
1859
|
+
});
|
|
1860
|
+
}), Q.use([at, it]);
|
|
1861
|
+
//#endregion
|
|
1862
|
+
//#region node_modules/swiper/shared/update-on-virtual-data.mjs
|
|
1863
|
+
function zt(e, t, n, r, i) {
|
|
1864
|
+
let a = [];
|
|
1865
|
+
if (!t) return a;
|
|
1866
|
+
let o = (e) => {
|
|
1867
|
+
a.indexOf(e) < 0 && a.push(e);
|
|
1868
|
+
};
|
|
1869
|
+
if (n && r) {
|
|
1870
|
+
let e = r.map(i), t = n.map(i);
|
|
1871
|
+
e.join("") !== t.join("") && o("children"), r.length !== n.length && o("children");
|
|
1872
|
+
}
|
|
1873
|
+
return le.filter((e) => e[0] === "_").map((e) => e.replace(/_/, "")).forEach((n) => {
|
|
1874
|
+
if (n in e && n in t) {
|
|
1875
|
+
let r = e[n], i = t[n];
|
|
1876
|
+
if (W(r) && W(i)) {
|
|
1877
|
+
let e = Object.keys(r), t = Object.keys(i);
|
|
1878
|
+
e.length === t.length ? (e.forEach((e) => {
|
|
1879
|
+
r[e] !== i[e] && o(n);
|
|
1880
|
+
}), t.forEach((e) => {
|
|
1881
|
+
r[e] !== i[e] && o(n);
|
|
1882
|
+
})) : o(n);
|
|
1883
|
+
} else r !== i && o(n);
|
|
1884
|
+
}
|
|
1885
|
+
}), a;
|
|
1886
|
+
}
|
|
1887
|
+
function Bt(e = {}, t = !0) {
|
|
1888
|
+
let n = { on: {} }, r = {}, i = {};
|
|
1889
|
+
G(n, Y), n._emitClasses = !0, n.init = !1;
|
|
1890
|
+
let a = {}, o = le.map((e) => e.replace(/_/, "")), s = { ...e };
|
|
1891
|
+
return Object.keys(s).forEach((s) => {
|
|
1892
|
+
let c = e[s];
|
|
1893
|
+
if (c !== void 0) if (o.indexOf(s) >= 0) W(c) ? (n[s] = {}, i[s] = {}, G(n[s], c), G(i[s], c)) : (n[s] = c, i[s] = c);
|
|
1894
|
+
else if (s.search(/on[A-Z]/) === 0 && typeof c == "function") {
|
|
1895
|
+
let e = `${s[2].toLowerCase()}${s.substring(3)}`, i = c;
|
|
1896
|
+
t ? r[e] = i : n.on[e] = i;
|
|
1897
|
+
} else a[s] = c;
|
|
1898
|
+
}), [
|
|
1899
|
+
"navigation",
|
|
1900
|
+
"pagination",
|
|
1901
|
+
"scrollbar"
|
|
1902
|
+
].forEach((e) => {
|
|
1903
|
+
n[e] === !0 && (n[e] = {}), n[e] === !1 && delete n[e];
|
|
1904
|
+
}), {
|
|
1905
|
+
params: n,
|
|
1906
|
+
passedParams: i,
|
|
1907
|
+
rest: a,
|
|
1908
|
+
events: r
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
function Vt(e, t) {
|
|
1912
|
+
let { el: n, nextEl: r, prevEl: i, paginationEl: a, scrollbarEl: o, swiper: s } = e;
|
|
1913
|
+
if (ue(t) && r && i) {
|
|
1914
|
+
let e = s.params.navigation, t = s.originalParams.navigation;
|
|
1915
|
+
e.nextEl = r, t.nextEl = r, e.prevEl = i, t.prevEl = i;
|
|
1916
|
+
}
|
|
1917
|
+
de(t) && a && (s.params.pagination.el = a, s.originalParams.pagination.el = a), fe(t) && o && (s.params.scrollbar.el = o, s.originalParams.scrollbar.el = o), s.init(n);
|
|
1918
|
+
}
|
|
1919
|
+
var Ht = (e) => {
|
|
1920
|
+
!e || e.destroyed || !e.params.virtual || e.params.virtual && !e.params.virtual.enabled || (e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.emit("_virtualUpdated"), e.parallax && e.params.parallax && e.params.parallax.enabled && e.parallax.setTranslate?.());
|
|
1921
|
+
};
|
|
1922
|
+
//#endregion
|
|
1923
|
+
//#region node_modules/swiper/swiper-vue.mjs
|
|
1924
|
+
function $(e = {}, t, n) {
|
|
1925
|
+
let r = [], i = {
|
|
1926
|
+
"container-start": [],
|
|
1927
|
+
"container-end": [],
|
|
1928
|
+
"wrapper-start": [],
|
|
1929
|
+
"wrapper-end": []
|
|
1930
|
+
}, a = (e, t) => {
|
|
1931
|
+
if (!Array.isArray(e)) return;
|
|
1932
|
+
let n = t === "default" ? "container-end" : t;
|
|
1933
|
+
e.forEach((e) => {
|
|
1934
|
+
if (typeof e.type == "symbol" && e.children) {
|
|
1935
|
+
a(e.children, n);
|
|
1936
|
+
return;
|
|
1937
|
+
}
|
|
1938
|
+
let t = e.type, o = e.componentOptions?.tag;
|
|
1939
|
+
t && (t.name === "SwiperSlide" || t.name === "AsyncComponentWrapper") || o === "SwiperSlide" ? r.push(e) : i[n] && i[n].push(e);
|
|
1940
|
+
});
|
|
1941
|
+
};
|
|
1942
|
+
return Object.keys(e).forEach((t) => {
|
|
1943
|
+
let n = e[t];
|
|
1944
|
+
if (typeof n != "function") return;
|
|
1945
|
+
let r = n();
|
|
1946
|
+
a(r, t);
|
|
1947
|
+
}), n.value = t.value, t.value = r, {
|
|
1948
|
+
slides: r,
|
|
1949
|
+
slots: i
|
|
1950
|
+
};
|
|
1951
|
+
}
|
|
1952
|
+
function Ut(e, t, n) {
|
|
1953
|
+
if (!n) return null;
|
|
1954
|
+
let r = e.value;
|
|
1955
|
+
if (!r) return null;
|
|
1956
|
+
let i = (e) => {
|
|
1957
|
+
let n = e;
|
|
1958
|
+
return e < 0 ? n = t.length + e : n >= t.length && (n -= t.length), n;
|
|
1959
|
+
}, a = r.isHorizontal() ? { [r.rtlTranslate ? "right" : "left"]: `${n.offset}px` } : { top: `${n.offset}px` }, { from: o, to: s } = n, c = r.params.loop ? -t.length : 0, u = r.params.loop ? t.length * 2 : t.length, d = [];
|
|
1960
|
+
for (let e = c; e < u; e += 1) if (e >= o && e <= s && d.length < t.length) {
|
|
1961
|
+
let n = t[i(e)];
|
|
1962
|
+
n && d.push(n);
|
|
1963
|
+
}
|
|
1964
|
+
return d.map((t) => {
|
|
1965
|
+
let n = t.props ?? {};
|
|
1966
|
+
if (n.style = n.style ?? {}, n.swiperRef = e, n.style = a, t.props = n, t.type) return l(t.type, { ...n }, t.children);
|
|
1967
|
+
if (t.componentOptions) return l(t.componentOptions.Ctor, { ...n }, t.componentOptions.children);
|
|
1968
|
+
});
|
|
1969
|
+
}
|
|
1970
|
+
var Wt = c({
|
|
1971
|
+
name: "Swiper",
|
|
1972
|
+
props: {
|
|
1973
|
+
tag: {
|
|
1974
|
+
type: String,
|
|
1975
|
+
default: "div"
|
|
1976
|
+
},
|
|
1977
|
+
wrapperTag: {
|
|
1978
|
+
type: String,
|
|
1979
|
+
default: "div"
|
|
1980
|
+
},
|
|
1981
|
+
modules: {
|
|
1982
|
+
type: Array,
|
|
1983
|
+
default: void 0
|
|
1984
|
+
},
|
|
1985
|
+
init: {
|
|
1986
|
+
type: Boolean,
|
|
1987
|
+
default: void 0
|
|
1988
|
+
},
|
|
1989
|
+
direction: {
|
|
1990
|
+
type: String,
|
|
1991
|
+
default: void 0
|
|
1992
|
+
},
|
|
1993
|
+
oneWayMovement: {
|
|
1994
|
+
type: Boolean,
|
|
1995
|
+
default: void 0
|
|
1996
|
+
},
|
|
1997
|
+
swiperElementNodeName: {
|
|
1998
|
+
type: String,
|
|
1999
|
+
default: "SWIPER-CONTAINER"
|
|
2000
|
+
},
|
|
2001
|
+
touchEventsTarget: {
|
|
2002
|
+
type: String,
|
|
2003
|
+
default: void 0
|
|
2004
|
+
},
|
|
2005
|
+
initialSlide: {
|
|
2006
|
+
type: Number,
|
|
2007
|
+
default: void 0
|
|
2008
|
+
},
|
|
2009
|
+
speed: {
|
|
2010
|
+
type: Number,
|
|
2011
|
+
default: void 0
|
|
2012
|
+
},
|
|
2013
|
+
cssMode: {
|
|
2014
|
+
type: Boolean,
|
|
2015
|
+
default: void 0
|
|
2016
|
+
},
|
|
2017
|
+
updateOnWindowResize: {
|
|
2018
|
+
type: Boolean,
|
|
2019
|
+
default: void 0
|
|
2020
|
+
},
|
|
2021
|
+
resizeObserver: {
|
|
2022
|
+
type: Boolean,
|
|
2023
|
+
default: void 0
|
|
2024
|
+
},
|
|
2025
|
+
nested: {
|
|
2026
|
+
type: Boolean,
|
|
2027
|
+
default: void 0
|
|
2028
|
+
},
|
|
2029
|
+
focusableElements: {
|
|
2030
|
+
type: String,
|
|
2031
|
+
default: void 0
|
|
2032
|
+
},
|
|
2033
|
+
width: {
|
|
2034
|
+
type: Number,
|
|
2035
|
+
default: void 0
|
|
2036
|
+
},
|
|
2037
|
+
height: {
|
|
2038
|
+
type: Number,
|
|
2039
|
+
default: void 0
|
|
2040
|
+
},
|
|
2041
|
+
preventInteractionOnTransition: {
|
|
2042
|
+
type: Boolean,
|
|
2043
|
+
default: void 0
|
|
2044
|
+
},
|
|
2045
|
+
userAgent: {
|
|
2046
|
+
type: String,
|
|
2047
|
+
default: void 0
|
|
2048
|
+
},
|
|
2049
|
+
url: {
|
|
2050
|
+
type: String,
|
|
2051
|
+
default: void 0
|
|
2052
|
+
},
|
|
2053
|
+
edgeSwipeDetection: {
|
|
2054
|
+
type: [Boolean, String],
|
|
2055
|
+
default: void 0
|
|
2056
|
+
},
|
|
2057
|
+
edgeSwipeThreshold: {
|
|
2058
|
+
type: Number,
|
|
2059
|
+
default: void 0
|
|
2060
|
+
},
|
|
2061
|
+
autoHeight: {
|
|
2062
|
+
type: Boolean,
|
|
2063
|
+
default: void 0
|
|
2064
|
+
},
|
|
2065
|
+
setWrapperSize: {
|
|
2066
|
+
type: Boolean,
|
|
2067
|
+
default: void 0
|
|
2068
|
+
},
|
|
2069
|
+
virtualTranslate: {
|
|
2070
|
+
type: Boolean,
|
|
2071
|
+
default: void 0
|
|
2072
|
+
},
|
|
2073
|
+
effect: {
|
|
2074
|
+
type: String,
|
|
2075
|
+
default: void 0
|
|
2076
|
+
},
|
|
2077
|
+
breakpoints: {
|
|
2078
|
+
type: Object,
|
|
2079
|
+
default: void 0
|
|
2080
|
+
},
|
|
2081
|
+
breakpointsBase: {
|
|
2082
|
+
type: String,
|
|
2083
|
+
default: void 0
|
|
2084
|
+
},
|
|
2085
|
+
spaceBetween: {
|
|
2086
|
+
type: [Number, String],
|
|
2087
|
+
default: void 0
|
|
2088
|
+
},
|
|
2089
|
+
slidesPerView: {
|
|
2090
|
+
type: [Number, String],
|
|
2091
|
+
default: void 0
|
|
2092
|
+
},
|
|
2093
|
+
maxBackfaceHiddenSlides: {
|
|
2094
|
+
type: Number,
|
|
2095
|
+
default: void 0
|
|
2096
|
+
},
|
|
2097
|
+
slidesPerGroup: {
|
|
2098
|
+
type: Number,
|
|
2099
|
+
default: void 0
|
|
2100
|
+
},
|
|
2101
|
+
slidesPerGroupSkip: {
|
|
2102
|
+
type: Number,
|
|
2103
|
+
default: void 0
|
|
2104
|
+
},
|
|
2105
|
+
slidesPerGroupAuto: {
|
|
2106
|
+
type: Boolean,
|
|
2107
|
+
default: void 0
|
|
2108
|
+
},
|
|
2109
|
+
centeredSlides: {
|
|
2110
|
+
type: Boolean,
|
|
2111
|
+
default: void 0
|
|
2112
|
+
},
|
|
2113
|
+
centeredSlidesBounds: {
|
|
2114
|
+
type: Boolean,
|
|
2115
|
+
default: void 0
|
|
2116
|
+
},
|
|
2117
|
+
slidesOffsetBefore: {
|
|
2118
|
+
type: Number,
|
|
2119
|
+
default: void 0
|
|
2120
|
+
},
|
|
2121
|
+
slidesOffsetAfter: {
|
|
2122
|
+
type: Number,
|
|
2123
|
+
default: void 0
|
|
2124
|
+
},
|
|
2125
|
+
normalizeSlideIndex: {
|
|
2126
|
+
type: Boolean,
|
|
2127
|
+
default: void 0
|
|
2128
|
+
},
|
|
2129
|
+
centerInsufficientSlides: {
|
|
2130
|
+
type: Boolean,
|
|
2131
|
+
default: void 0
|
|
2132
|
+
},
|
|
2133
|
+
watchOverflow: {
|
|
2134
|
+
type: Boolean,
|
|
2135
|
+
default: void 0
|
|
2136
|
+
},
|
|
2137
|
+
roundLengths: {
|
|
2138
|
+
type: Boolean,
|
|
2139
|
+
default: void 0
|
|
2140
|
+
},
|
|
2141
|
+
touchRatio: {
|
|
2142
|
+
type: Number,
|
|
2143
|
+
default: void 0
|
|
2144
|
+
},
|
|
2145
|
+
touchAngle: {
|
|
2146
|
+
type: Number,
|
|
2147
|
+
default: void 0
|
|
2148
|
+
},
|
|
2149
|
+
simulateTouch: {
|
|
2150
|
+
type: Boolean,
|
|
2151
|
+
default: void 0
|
|
2152
|
+
},
|
|
2153
|
+
shortSwipes: {
|
|
2154
|
+
type: Boolean,
|
|
2155
|
+
default: void 0
|
|
2156
|
+
},
|
|
2157
|
+
longSwipes: {
|
|
2158
|
+
type: Boolean,
|
|
2159
|
+
default: void 0
|
|
2160
|
+
},
|
|
2161
|
+
longSwipesRatio: {
|
|
2162
|
+
type: Number,
|
|
2163
|
+
default: void 0
|
|
2164
|
+
},
|
|
2165
|
+
longSwipesMs: {
|
|
2166
|
+
type: Number,
|
|
2167
|
+
default: void 0
|
|
2168
|
+
},
|
|
2169
|
+
followFinger: {
|
|
2170
|
+
type: Boolean,
|
|
2171
|
+
default: void 0
|
|
2172
|
+
},
|
|
2173
|
+
allowTouchMove: {
|
|
2174
|
+
type: Boolean,
|
|
2175
|
+
default: void 0
|
|
2176
|
+
},
|
|
2177
|
+
threshold: {
|
|
2178
|
+
type: Number,
|
|
2179
|
+
default: void 0
|
|
2180
|
+
},
|
|
2181
|
+
touchMoveStopPropagation: {
|
|
2182
|
+
type: Boolean,
|
|
2183
|
+
default: void 0
|
|
2184
|
+
},
|
|
2185
|
+
touchStartPreventDefault: {
|
|
2186
|
+
type: Boolean,
|
|
2187
|
+
default: void 0
|
|
2188
|
+
},
|
|
2189
|
+
touchStartForcePreventDefault: {
|
|
2190
|
+
type: Boolean,
|
|
2191
|
+
default: void 0
|
|
2192
|
+
},
|
|
2193
|
+
touchReleaseOnEdges: {
|
|
2194
|
+
type: Boolean,
|
|
2195
|
+
default: void 0
|
|
2196
|
+
},
|
|
2197
|
+
uniqueNavElements: {
|
|
2198
|
+
type: Boolean,
|
|
2199
|
+
default: void 0
|
|
2200
|
+
},
|
|
2201
|
+
resistance: {
|
|
2202
|
+
type: Boolean,
|
|
2203
|
+
default: void 0
|
|
2204
|
+
},
|
|
2205
|
+
resistanceRatio: {
|
|
2206
|
+
type: Number,
|
|
2207
|
+
default: void 0
|
|
2208
|
+
},
|
|
2209
|
+
watchSlidesProgress: {
|
|
2210
|
+
type: Boolean,
|
|
2211
|
+
default: void 0
|
|
2212
|
+
},
|
|
2213
|
+
grabCursor: {
|
|
2214
|
+
type: Boolean,
|
|
2215
|
+
default: void 0
|
|
2216
|
+
},
|
|
2217
|
+
preventClicks: {
|
|
2218
|
+
type: Boolean,
|
|
2219
|
+
default: void 0
|
|
2220
|
+
},
|
|
2221
|
+
preventClicksPropagation: {
|
|
2222
|
+
type: Boolean,
|
|
2223
|
+
default: void 0
|
|
2224
|
+
},
|
|
2225
|
+
slideToClickedSlide: {
|
|
2226
|
+
type: Boolean,
|
|
2227
|
+
default: void 0
|
|
2228
|
+
},
|
|
2229
|
+
loop: {
|
|
2230
|
+
type: Boolean,
|
|
2231
|
+
default: void 0
|
|
2232
|
+
},
|
|
2233
|
+
loopedSlides: {
|
|
2234
|
+
type: Number,
|
|
2235
|
+
default: void 0
|
|
2236
|
+
},
|
|
2237
|
+
loopPreventsSliding: {
|
|
2238
|
+
type: Boolean,
|
|
2239
|
+
default: void 0
|
|
2240
|
+
},
|
|
2241
|
+
loopAdditionalSlides: {
|
|
2242
|
+
type: Number,
|
|
2243
|
+
default: void 0
|
|
2244
|
+
},
|
|
2245
|
+
loopAddBlankSlides: {
|
|
2246
|
+
type: Boolean,
|
|
2247
|
+
default: void 0
|
|
2248
|
+
},
|
|
2249
|
+
rewind: {
|
|
2250
|
+
type: Boolean,
|
|
2251
|
+
default: void 0
|
|
2252
|
+
},
|
|
2253
|
+
allowSlidePrev: {
|
|
2254
|
+
type: Boolean,
|
|
2255
|
+
default: void 0
|
|
2256
|
+
},
|
|
2257
|
+
allowSlideNext: {
|
|
2258
|
+
type: Boolean,
|
|
2259
|
+
default: void 0
|
|
2260
|
+
},
|
|
2261
|
+
swipeHandler: {
|
|
2262
|
+
type: Boolean,
|
|
2263
|
+
default: void 0
|
|
2264
|
+
},
|
|
2265
|
+
noSwiping: {
|
|
2266
|
+
type: Boolean,
|
|
2267
|
+
default: void 0
|
|
2268
|
+
},
|
|
2269
|
+
noSwipingClass: {
|
|
2270
|
+
type: String,
|
|
2271
|
+
default: void 0
|
|
2272
|
+
},
|
|
2273
|
+
noSwipingSelector: {
|
|
2274
|
+
type: String,
|
|
2275
|
+
default: void 0
|
|
2276
|
+
},
|
|
2277
|
+
passiveListeners: {
|
|
2278
|
+
type: Boolean,
|
|
2279
|
+
default: void 0
|
|
2280
|
+
},
|
|
2281
|
+
containerModifierClass: {
|
|
2282
|
+
type: String,
|
|
2283
|
+
default: void 0
|
|
2284
|
+
},
|
|
2285
|
+
slideClass: {
|
|
2286
|
+
type: String,
|
|
2287
|
+
default: void 0
|
|
2288
|
+
},
|
|
2289
|
+
slideActiveClass: {
|
|
2290
|
+
type: String,
|
|
2291
|
+
default: void 0
|
|
2292
|
+
},
|
|
2293
|
+
slideVisibleClass: {
|
|
2294
|
+
type: String,
|
|
2295
|
+
default: void 0
|
|
2296
|
+
},
|
|
2297
|
+
slideFullyVisibleClass: {
|
|
2298
|
+
type: String,
|
|
2299
|
+
default: void 0
|
|
2300
|
+
},
|
|
2301
|
+
slideBlankClass: {
|
|
2302
|
+
type: String,
|
|
2303
|
+
default: void 0
|
|
2304
|
+
},
|
|
2305
|
+
slideNextClass: {
|
|
2306
|
+
type: String,
|
|
2307
|
+
default: void 0
|
|
2308
|
+
},
|
|
2309
|
+
slidePrevClass: {
|
|
2310
|
+
type: String,
|
|
2311
|
+
default: void 0
|
|
2312
|
+
},
|
|
2313
|
+
wrapperClass: {
|
|
2314
|
+
type: String,
|
|
2315
|
+
default: void 0
|
|
2316
|
+
},
|
|
2317
|
+
lazyPreloaderClass: {
|
|
2318
|
+
type: String,
|
|
2319
|
+
default: void 0
|
|
2320
|
+
},
|
|
2321
|
+
lazyPreloadPrevNext: {
|
|
2322
|
+
type: Number,
|
|
2323
|
+
default: void 0
|
|
2324
|
+
},
|
|
2325
|
+
runCallbacksOnInit: {
|
|
2326
|
+
type: Boolean,
|
|
2327
|
+
default: void 0
|
|
2328
|
+
},
|
|
2329
|
+
observer: {
|
|
2330
|
+
type: Boolean,
|
|
2331
|
+
default: void 0
|
|
2332
|
+
},
|
|
2333
|
+
observeParents: {
|
|
2334
|
+
type: Boolean,
|
|
2335
|
+
default: void 0
|
|
2336
|
+
},
|
|
2337
|
+
observeSlideChildren: {
|
|
2338
|
+
type: Boolean,
|
|
2339
|
+
default: void 0
|
|
2340
|
+
},
|
|
2341
|
+
a11y: {
|
|
2342
|
+
type: [Boolean, Object],
|
|
2343
|
+
default: void 0
|
|
2344
|
+
},
|
|
2345
|
+
autoplay: {
|
|
2346
|
+
type: [Boolean, Object],
|
|
2347
|
+
default: void 0
|
|
2348
|
+
},
|
|
2349
|
+
controller: {
|
|
2350
|
+
type: Object,
|
|
2351
|
+
default: void 0
|
|
2352
|
+
},
|
|
2353
|
+
coverflowEffect: {
|
|
2354
|
+
type: Object,
|
|
2355
|
+
default: void 0
|
|
2356
|
+
},
|
|
2357
|
+
cubeEffect: {
|
|
2358
|
+
type: Object,
|
|
2359
|
+
default: void 0
|
|
2360
|
+
},
|
|
2361
|
+
fadeEffect: {
|
|
2362
|
+
type: Object,
|
|
2363
|
+
default: void 0
|
|
2364
|
+
},
|
|
2365
|
+
flipEffect: {
|
|
2366
|
+
type: Object,
|
|
2367
|
+
default: void 0
|
|
2368
|
+
},
|
|
2369
|
+
creativeEffect: {
|
|
2370
|
+
type: Object,
|
|
2371
|
+
default: void 0
|
|
2372
|
+
},
|
|
2373
|
+
cardsEffect: {
|
|
2374
|
+
type: Object,
|
|
2375
|
+
default: void 0
|
|
2376
|
+
},
|
|
2377
|
+
hashNavigation: {
|
|
2378
|
+
type: [Boolean, Object],
|
|
2379
|
+
default: void 0
|
|
2380
|
+
},
|
|
2381
|
+
history: {
|
|
2382
|
+
type: [Boolean, Object],
|
|
2383
|
+
default: void 0
|
|
2384
|
+
},
|
|
2385
|
+
keyboard: {
|
|
2386
|
+
type: [Boolean, Object],
|
|
2387
|
+
default: void 0
|
|
2388
|
+
},
|
|
2389
|
+
mousewheel: {
|
|
2390
|
+
type: [Boolean, Object],
|
|
2391
|
+
default: void 0
|
|
2392
|
+
},
|
|
2393
|
+
navigation: {
|
|
2394
|
+
type: [Boolean, Object],
|
|
2395
|
+
default: void 0
|
|
2396
|
+
},
|
|
2397
|
+
pagination: {
|
|
2398
|
+
type: [Boolean, Object],
|
|
2399
|
+
default: void 0
|
|
2400
|
+
},
|
|
2401
|
+
parallax: {
|
|
2402
|
+
type: [Boolean, Object],
|
|
2403
|
+
default: void 0
|
|
2404
|
+
},
|
|
2405
|
+
scrollbar: {
|
|
2406
|
+
type: [Boolean, Object],
|
|
2407
|
+
default: void 0
|
|
2408
|
+
},
|
|
2409
|
+
thumbs: {
|
|
2410
|
+
type: Object,
|
|
2411
|
+
default: void 0
|
|
2412
|
+
},
|
|
2413
|
+
virtual: {
|
|
2414
|
+
type: [Boolean, Object],
|
|
2415
|
+
default: void 0
|
|
2416
|
+
},
|
|
2417
|
+
zoom: {
|
|
2418
|
+
type: [Boolean, Object],
|
|
2419
|
+
default: void 0
|
|
2420
|
+
},
|
|
2421
|
+
grid: {
|
|
2422
|
+
type: Object,
|
|
2423
|
+
default: void 0
|
|
2424
|
+
},
|
|
2425
|
+
freeMode: {
|
|
2426
|
+
type: [Boolean, Object],
|
|
2427
|
+
default: void 0
|
|
2428
|
+
},
|
|
2429
|
+
enabled: {
|
|
2430
|
+
type: Boolean,
|
|
2431
|
+
default: void 0
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
emits: /* @__PURE__ */ "_beforeBreakpoint._containerClasses._slideClass._slideClasses._swiper._freeModeNoMomentumRelease._virtualUpdated.activeIndexChange.afterInit.autoplay.autoplayStart.autoplayStop.autoplayPause.autoplayResume.autoplayTimeLeft.beforeDestroy.beforeInit.beforeLoopFix.beforeResize.beforeSlideChangeStart.beforeTransitionStart.breakpoint.changeDirection.click.disable.doubleTap.doubleClick.destroy.enable.fromEdge.hashChange.hashSet.init.keyPress.lock.loopFix.momentumBounce.navigationHide.navigationShow.navigationPrev.navigationNext.observerUpdate.orientationchange.paginationHide.paginationRender.paginationShow.paginationUpdate.progress.reachBeginning.reachEnd.realIndexChange.resize.scroll.scrollbarDragEnd.scrollbarDragMove.scrollbarDragStart.setTransition.setTranslate.slidesUpdated.slideChange.slideChangeTransitionEnd.slideChangeTransitionStart.slideNextTransitionEnd.slideNextTransitionStart.slidePrevTransitionEnd.slidePrevTransitionStart.slideResetTransitionStart.slideResetTransitionEnd.sliderMove.sliderFirstMove.slidesLengthChange.slidesGridLengthChange.snapGridLengthChange.snapIndexChange.swiper.tap.toEdge.touchEnd.touchMove.touchMoveOpposite.touchStart.transitionEnd.transitionStart.unlock.update.virtualUpdate.zoomChange".split("."),
|
|
2435
|
+
setup(e, { slots: t, emit: n }) {
|
|
2436
|
+
let { tag: r, wrapperTag: i } = e, a = y("swiper"), o = y(null), s = y(!1), c = y(!1), d = y(null), f = x(null), m = y(null), _ = { value: [] }, b = { value: [] }, S = y(null), C = y(null), T = y(null), E = y(null), { params: D, passedParams: O } = Bt(e, !1);
|
|
2437
|
+
$(t, _, b), m.value = O, b.value = _.value, D.onAny = (e, ...t) => {
|
|
2438
|
+
n(e, ...t);
|
|
2439
|
+
}, Object.assign(D.on, {
|
|
2440
|
+
_beforeBreakpoint: () => {
|
|
2441
|
+
$(t, _, b), s.value = !0;
|
|
2442
|
+
},
|
|
2443
|
+
_containerClasses(e, t) {
|
|
2444
|
+
a.value = t;
|
|
2445
|
+
}
|
|
2446
|
+
});
|
|
2447
|
+
let k = { ...D };
|
|
2448
|
+
delete k.wrapperClass, f.value = new Q(k);
|
|
2449
|
+
let A = f.value;
|
|
2450
|
+
if (A && A.virtual && A.params.virtual?.enabled) {
|
|
2451
|
+
A.virtual.slides = _.value;
|
|
2452
|
+
let e = {
|
|
2453
|
+
cache: !1,
|
|
2454
|
+
slides: _.value,
|
|
2455
|
+
renderExternal: (e) => {
|
|
2456
|
+
o.value = e;
|
|
2457
|
+
},
|
|
2458
|
+
renderExternalUpdate: !1
|
|
2459
|
+
};
|
|
2460
|
+
G(A.params.virtual, e), A.originalParams.virtual && G(A.originalParams.virtual, e);
|
|
2461
|
+
}
|
|
2462
|
+
g(() => {
|
|
2463
|
+
!c.value && f.value && (f.value.emitSlidesClasses(), c.value = !0);
|
|
2464
|
+
let { passedParams: t } = Bt(e, !1), n = zt(t, m.value, _.value, b.value, (e) => e.props ? e.props.key : void 0);
|
|
2465
|
+
m.value = t, (n.length || s.value) && f.value && !f.value.destroyed && he({
|
|
2466
|
+
swiper: f.value,
|
|
2467
|
+
slides: _.value,
|
|
2468
|
+
passedParams: t,
|
|
2469
|
+
changedParams: n,
|
|
2470
|
+
nextEl: S.value,
|
|
2471
|
+
prevEl: C.value,
|
|
2472
|
+
scrollbarEl: E.value,
|
|
2473
|
+
paginationEl: T.value
|
|
2474
|
+
}), s.value = !1;
|
|
2475
|
+
}), v("swiper", f), w(o, () => {
|
|
2476
|
+
u(() => {
|
|
2477
|
+
Ht(f.value);
|
|
2478
|
+
});
|
|
2479
|
+
}), h(() => {
|
|
2480
|
+
!d.value || !f.value || (Vt({
|
|
2481
|
+
el: d.value,
|
|
2482
|
+
nextEl: S.value,
|
|
2483
|
+
prevEl: C.value,
|
|
2484
|
+
paginationEl: T.value,
|
|
2485
|
+
scrollbarEl: E.value,
|
|
2486
|
+
swiper: f.value
|
|
2487
|
+
}, D), n("swiper", f.value));
|
|
2488
|
+
}), p(() => {
|
|
2489
|
+
f.value && !f.value.destroyed && f.value.destroy(!0, !1);
|
|
2490
|
+
});
|
|
2491
|
+
function j(e) {
|
|
2492
|
+
return D.virtual ? Ut(f, e, o.value) : (e.forEach((e, t) => {
|
|
2493
|
+
let n = e.props ?? {};
|
|
2494
|
+
n.swiperRef = f, n.swiperSlideIndex = t, e.props = n;
|
|
2495
|
+
}), e);
|
|
2496
|
+
}
|
|
2497
|
+
return () => {
|
|
2498
|
+
let { slides: n, slots: o } = $(t, _, b);
|
|
2499
|
+
return l(r, {
|
|
2500
|
+
ref: d,
|
|
2501
|
+
class: pe(a.value)
|
|
2502
|
+
}, [
|
|
2503
|
+
o["container-start"],
|
|
2504
|
+
l(i, { class: me(D.wrapperClass) }, [
|
|
2505
|
+
o["wrapper-start"],
|
|
2506
|
+
j(n),
|
|
2507
|
+
o["wrapper-end"]
|
|
2508
|
+
]),
|
|
2509
|
+
ue(e) && [l("div", {
|
|
2510
|
+
ref: C,
|
|
2511
|
+
class: "swiper-button-prev"
|
|
2512
|
+
}), l("div", {
|
|
2513
|
+
ref: S,
|
|
2514
|
+
class: "swiper-button-next"
|
|
2515
|
+
})],
|
|
2516
|
+
fe(e) && l("div", {
|
|
2517
|
+
ref: E,
|
|
2518
|
+
class: "swiper-scrollbar"
|
|
2519
|
+
}),
|
|
2520
|
+
de(e) && l("div", {
|
|
2521
|
+
ref: T,
|
|
2522
|
+
class: "swiper-pagination"
|
|
2523
|
+
}),
|
|
2524
|
+
o["container-end"]
|
|
2525
|
+
]);
|
|
2526
|
+
};
|
|
2527
|
+
}
|
|
2528
|
+
}), Gt = c({
|
|
2529
|
+
name: "SwiperSlide",
|
|
2530
|
+
props: {
|
|
2531
|
+
tag: {
|
|
2532
|
+
type: String,
|
|
2533
|
+
default: "div"
|
|
2534
|
+
},
|
|
2535
|
+
swiperRef: {
|
|
2536
|
+
type: Object,
|
|
2537
|
+
required: !1
|
|
2538
|
+
},
|
|
2539
|
+
swiperSlideIndex: {
|
|
2540
|
+
type: Number,
|
|
2541
|
+
default: void 0,
|
|
2542
|
+
required: !1
|
|
2543
|
+
},
|
|
2544
|
+
zoom: {
|
|
2545
|
+
type: [Boolean, Number],
|
|
2546
|
+
default: void 0,
|
|
2547
|
+
required: !1
|
|
2548
|
+
},
|
|
2549
|
+
lazy: {
|
|
2550
|
+
type: Boolean,
|
|
2551
|
+
default: !1,
|
|
2552
|
+
required: !1
|
|
2553
|
+
},
|
|
2554
|
+
virtualIndex: {
|
|
2555
|
+
type: [String, Number],
|
|
2556
|
+
default: void 0
|
|
2557
|
+
}
|
|
2558
|
+
},
|
|
2559
|
+
setup(e, { slots: t }) {
|
|
2560
|
+
let r = !1, { swiperRef: i } = e, a = y(null), o = y("swiper-slide"), s = y(!1);
|
|
2561
|
+
function c(e, t, n) {
|
|
2562
|
+
t === a.value && (o.value = n);
|
|
2563
|
+
}
|
|
2564
|
+
h(() => {
|
|
2565
|
+
!i || !i.value || (i.value.on("_slideClass", c), r = !0);
|
|
2566
|
+
}), m(() => {
|
|
2567
|
+
r || !i || !i.value || (i.value.on("_slideClass", c), r = !0);
|
|
2568
|
+
}), g(() => {
|
|
2569
|
+
!a.value || !i || !i.value || (e.swiperSlideIndex !== void 0 && (a.value.swiperSlideIndex = e.swiperSlideIndex), i.value.destroyed && o.value !== "swiper-slide" && (o.value = "swiper-slide"));
|
|
2570
|
+
}), p(() => {
|
|
2571
|
+
!i || !i.value || i.value.off("_slideClass", c);
|
|
2572
|
+
});
|
|
2573
|
+
let u = n(() => ({
|
|
2574
|
+
isActive: o.value.indexOf("swiper-slide-active") >= 0,
|
|
2575
|
+
isVisible: o.value.indexOf("swiper-slide-visible") >= 0,
|
|
2576
|
+
isPrev: o.value.indexOf("swiper-slide-prev") >= 0,
|
|
2577
|
+
isNext: o.value.indexOf("swiper-slide-next") >= 0
|
|
2578
|
+
}));
|
|
2579
|
+
v("swiperSlide", u);
|
|
2580
|
+
let d = () => {
|
|
2581
|
+
s.value = !0;
|
|
2582
|
+
}, f = (e) => {
|
|
2583
|
+
let t = e.el;
|
|
2584
|
+
t && (t.lazyPreloaderManaged = !0);
|
|
2585
|
+
};
|
|
2586
|
+
return () => l(e.tag, {
|
|
2587
|
+
class: pe(`${o.value}`),
|
|
2588
|
+
ref: a,
|
|
2589
|
+
"data-swiper-slide-index": e.virtualIndex === void 0 && i && i.value && i.value.params.loop ? e.swiperSlideIndex : e.virtualIndex,
|
|
2590
|
+
onLoadCapture: d
|
|
2591
|
+
}, e.zoom ? l("div", {
|
|
2592
|
+
class: "swiper-zoom-container",
|
|
2593
|
+
"data-swiper-zoom": typeof e.zoom == "number" ? e.zoom : void 0
|
|
2594
|
+
}, [t.default && t.default(u.value), e.lazy && !s.value && l("div", {
|
|
2595
|
+
class: "swiper-lazy-preloader",
|
|
2596
|
+
onVnodeMounted: f
|
|
2597
|
+
})]) : [t.default && t.default(u.value), e.lazy && !s.value && l("div", {
|
|
2598
|
+
class: "swiper-lazy-preloader",
|
|
2599
|
+
onVnodeMounted: f
|
|
2600
|
+
})]);
|
|
2601
|
+
}
|
|
2602
|
+
}), Kt = { class: "payLayerFrame" }, qt = { class: "payLeft" }, Jt = { class: "userBox" }, Yt = { class: "userInfo" }, Xt = { class: "userAvatar" }, Zt = ["src"], Qt = { class: "userLogin" }, $t = { class: "userState" }, en = { class: "userLoginName" }, tn = {
|
|
2603
|
+
key: 0,
|
|
2604
|
+
class: "userPay",
|
|
2605
|
+
href: "https://www.le.com/user/vip",
|
|
2606
|
+
target: "_blank"
|
|
2607
|
+
}, nn = { class: "userTip" }, rn = { class: "payPackage" }, an = { class: "packageTabContainer" }, on = { class: "packItem" }, sn = { class: "payTime" }, cn = { class: "payPrice" }, ln = { class: "payOldPrice" }, un = { class: "payIcon" }, dn = { class: "payPoint" }, fn = /*#__PURE__*/ k(/* @__PURE__ */ c({
|
|
2608
|
+
__name: "index",
|
|
2609
|
+
setup(c) {
|
|
2610
|
+
let l = y(!1), u = y({}), f = y({}), p = y(null), m = y([]);
|
|
2611
|
+
y(!1), y(!1);
|
|
2612
|
+
let g = y(1), v = n(() => p.value?.isvip ? p.value.vipType : 0), x = async (e) => {
|
|
2613
|
+
let t = await E.get("https://mp-s.le.com/website/api/v1/packages", { params: {
|
|
2614
|
+
platform: "pc",
|
|
2615
|
+
vipType: e
|
|
2616
|
+
} });
|
|
2617
|
+
console.log(t), m.value = t.data.data.packages;
|
|
2618
|
+
}, w = async () => {
|
|
2619
|
+
let t = await e("https://d-api-m.le.com/yuanxian/member?platform=pc");
|
|
2620
|
+
f.value = t.data, t.data[1] && t.data[9] ? p.value = t.data[1] : p.value = Object.values(t.data)[0];
|
|
2621
|
+
};
|
|
2622
|
+
return h(() => {
|
|
2623
|
+
let e = () => {
|
|
2624
|
+
let e = window.LEPass.isLogin();
|
|
2625
|
+
l.value = e, u.value = window.LEPass.getUserInfo(), e && w(), x(1);
|
|
2626
|
+
};
|
|
2627
|
+
if (window.LEPass) console.log("else"), e();
|
|
2628
|
+
else {
|
|
2629
|
+
let t = document.createElement("script");
|
|
2630
|
+
t.src = "https://jstatic.letvcdn.com/sdk/passport_new.js", document.body.appendChild(t), t.onload = () => {
|
|
2631
|
+
e();
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
}), (e, n) => (_(), a("div", null, [n[8] ||= o("div", { class: "payLayerMask" }, null, -1), o("div", Kt, [
|
|
2635
|
+
n[5] ||= o("div", { class: "close" }, null, -1),
|
|
2636
|
+
n[6] ||= o("div", { class: "exchange" }, [o("a", {
|
|
2637
|
+
href: "https://ibuy.le.com/v2/exchange/index.html",
|
|
2638
|
+
target: "_blank"
|
|
2639
|
+
}, "兑换会员")], -1),
|
|
2640
|
+
o("div", qt, [o("div", Jt, [o("div", Yt, [o("span", Xt, [o("img", {
|
|
2641
|
+
src: u.value.headicon_200 || "https://i0.letvimg.com/img/201207/30/tx200.png",
|
|
2642
|
+
alt: ""
|
|
2643
|
+
}, null, 8, Zt), o("i", { class: d(["iconUserVip", v.value ? "vip" : p.value?.endtime ? "expire" : ""]) }, null, 2)]), o("div", Qt, [o("div", $t, [o("span", en, S(u.value.nickname), 1), p.value?.isSubscribe === 2 ? (_(), a("a", tn, "续费管理")) : i("", !0)]), o("span", nn, S(v.value ? `${p.value?.packageName} ${p.value?.endtime.split(" ")[0]}到期` : p.value?.endtime ? "视频会员服务已过期,续费立享会员权益" : "开通视频会员享会员权益,大片热剧免费看"), 1)])]), n[2] ||= o("span", {
|
|
2644
|
+
class: "userChange",
|
|
2645
|
+
"data-bk": "change"
|
|
2646
|
+
}, "切换账号", -1)]), o("div", rn, [o("div", { class: d(`packageTabTitle ${g.value === 9 ? "reverse" : ""}`) }, [o("div", {
|
|
2647
|
+
class: "tab tab1 tabcur",
|
|
2648
|
+
"data-viptype": "1",
|
|
2649
|
+
onClick: n[0] ||= (e) => g.value = 1
|
|
2650
|
+
}, [...n[3] ||= [o("span", null, "乐视视频会员", -1), o("i", null, "电脑,iPad ,手机均可使用", -1)]]), o("div", {
|
|
2651
|
+
class: "tab tab1",
|
|
2652
|
+
"data-viptype": "9",
|
|
2653
|
+
onClick: n[1] ||= (e) => g.value = 9
|
|
2654
|
+
}, [...n[4] ||= [o("span", null, "乐视频会员(电视端)", -1), o("i", null, "电脑,iPad ,手机,电视端均可使用", -1)]])], 2), o("div", an, [s(C(Wt), {
|
|
2655
|
+
"slides-per-view": 3,
|
|
2656
|
+
"slides-per-group": 3,
|
|
2657
|
+
"space-between": 12
|
|
2658
|
+
}, {
|
|
2659
|
+
default: T(() => [(_(!0), a(t, null, b(m.value, (e) => (_(), r(C(Gt), null, {
|
|
2660
|
+
default: T(() => [o("div", on, [
|
|
2661
|
+
o("div", sn, S(e.packageName), 1),
|
|
2662
|
+
o("div", cn, S(e.price), 1),
|
|
2663
|
+
o("div", ln, S(e.originalPrice), 1),
|
|
2664
|
+
o("div", un, S(e.iconlong), 1),
|
|
2665
|
+
o("div", dn, S(e.point), 1)
|
|
2666
|
+
])]),
|
|
2667
|
+
_: 2
|
|
2668
|
+
}, 1024))), 256))]),
|
|
2669
|
+
_: 1
|
|
2670
|
+
})])])]),
|
|
2671
|
+
n[7] ||= o("div", { class: "payRight" }, null, -1)
|
|
2672
|
+
])]));
|
|
21
2673
|
}
|
|
22
|
-
}), [["__scopeId", "data-v-
|
|
2674
|
+
}), [["__scopeId", "data-v-aa1d5b94"]]);
|
|
23
2675
|
//#endregion
|
|
24
|
-
export {
|
|
2676
|
+
export { A as ActivitySwitcher, fn as PreCashier };
|