md-components-mdigial-azamat 0.0.43 → 0.0.45
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/AllComponents.js +3 -4
- package/dist/AnimatedSwiper/index.js +2 -2
- package/dist/CardImageSecondaryList/CardImageSecondaryList.js +7 -7
- package/dist/Footer/components/NavigationFooter/NavigationFooter.js +17 -17
- package/dist/Header/Header.js +1 -1
- package/dist/Header/components/HeaderMenu/HeaderMenu.js +25 -24
- package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +2 -3
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +1 -1
- package/dist/Header/components/HeaderMobile/index.js +1 -1
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +6 -7
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +10 -11
- package/dist/Header/index.js +1 -1
- package/dist/InfoBannerList/InfoBannerList.js +1 -1
- package/dist/InfoBannerList/index.js +1 -1
- package/dist/InstructionList/InstructionList.js +1 -1
- package/dist/InstructionList/components/InstructionCard/InstructionCard.js +3 -4
- package/dist/InstructionList/components/InstructionCard/index.js +1 -1
- package/dist/InstructionList/index.js +1 -1
- package/dist/MainBanner/MainBanner.js +32 -32
- package/dist/PageViewer/PageViewer.js +1 -1
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PreviewList/PreviewList.js +1 -1
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +3 -4
- package/dist/PreviewList/components/PreviewCard/index.js +1 -1
- package/dist/PreviewList/index.js +1 -1
- package/dist/PromoPoster/PromoPoster.js +1 -1
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/StandartTable/components/CardMarkedRow/index.js +3 -4
- package/dist/StandartTable/index.js +1 -1
- package/dist/SwiperList/SwiperList.js +3 -4
- package/dist/SwiperList/index.js +1 -1
- package/dist/TasksBanner/TasksBanner.js +1 -1
- package/dist/TasksBanner/index.js +1 -1
- package/dist/TasksBannerList/TasksBannerList.js +1 -1
- package/dist/TasksBannerList/index.js +1 -1
- package/dist/VideoMainBanner/VideoMainBanner.js +27 -27
- package/dist/assets/index2.css +1 -1
- package/dist/componentsMap-0e7046ee.js +67 -0
- package/dist/index-aa718078.js +1229 -0
- package/dist/main.js +13 -13
- package/dist/{swiper-react-90953710.js → swiper-react-0815edaf.js} +652 -505
- package/package.json +1 -1
- package/dist/assets/index3.css +0 -1
- package/dist/componentsMap-ec48f708.js +0 -68
- package/dist/index-3b24fe0f.js +0 -314
- package/dist/index-4c5d924e.js +0 -925
- package/dist/mousewheel-865ae601.js +0 -153
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
1
|
+
import B, { forwardRef as Pe, useState as U, useRef as F, useEffect as fe, useLayoutEffect as $e, createContext as Me } from "react";
|
|
2
|
+
function ge(t) {
|
|
3
3
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function me(t, e) {
|
|
6
6
|
t === void 0 && (t = {}), e === void 0 && (e = {});
|
|
7
7
|
const i = ["__proto__", "constructor", "prototype"];
|
|
8
8
|
Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
|
|
9
|
-
typeof t[s] > "u" ? t[s] = e[s] :
|
|
9
|
+
typeof t[s] > "u" ? t[s] = e[s] : ge(e[s]) && ge(t[s]) && Object.keys(e[s]).length > 0 && me(t[s], e[s]);
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
const Ce = {
|
|
@@ -64,9 +64,9 @@ const Ce = {
|
|
|
64
64
|
search: ""
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
function
|
|
67
|
+
function Y() {
|
|
68
68
|
const t = typeof document < "u" ? document : {};
|
|
69
|
-
return
|
|
69
|
+
return me(t, Ce), t;
|
|
70
70
|
}
|
|
71
71
|
const We = {
|
|
72
72
|
document: Ce,
|
|
@@ -126,14 +126,14 @@ const We = {
|
|
|
126
126
|
typeof setTimeout > "u" || clearTimeout(t);
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
|
-
function
|
|
129
|
+
function V() {
|
|
130
130
|
const t = typeof window < "u" ? window : {};
|
|
131
|
-
return
|
|
131
|
+
return me(t, We), t;
|
|
132
132
|
}
|
|
133
133
|
function je(t) {
|
|
134
134
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Xe(t) {
|
|
137
137
|
const e = t;
|
|
138
138
|
Object.keys(e).forEach((i) => {
|
|
139
139
|
try {
|
|
@@ -146,31 +146,31 @@ function qe(t) {
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ee(t, e) {
|
|
150
150
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function W() {
|
|
153
153
|
return Date.now();
|
|
154
154
|
}
|
|
155
155
|
function Ye(t) {
|
|
156
|
-
const e =
|
|
156
|
+
const e = V();
|
|
157
157
|
let i;
|
|
158
158
|
return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function qe(t, e) {
|
|
161
161
|
e === void 0 && (e = "x");
|
|
162
|
-
const i =
|
|
162
|
+
const i = V();
|
|
163
163
|
let s, n, r;
|
|
164
164
|
const l = Ye(t);
|
|
165
165
|
return i.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(n === "none" ? "" : n)) : (r = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? n = r.m41 : s.length === 16 ? n = parseFloat(s[12]) : n = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? n = r.m42 : s.length === 16 ? n = parseFloat(s[13]) : n = parseFloat(s[5])), n || 0;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Z(t) {
|
|
168
168
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
169
169
|
}
|
|
170
170
|
function Ue(t) {
|
|
171
171
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function H() {
|
|
174
174
|
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
175
175
|
for (let i = 1; i < arguments.length; i += 1) {
|
|
176
176
|
const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
|
|
@@ -178,7 +178,7 @@ function V() {
|
|
|
178
178
|
const n = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
|
|
179
179
|
for (let r = 0, l = n.length; r < l; r += 1) {
|
|
180
180
|
const a = n[r], o = Object.getOwnPropertyDescriptor(s, a);
|
|
181
|
-
o !== void 0 && o.enumerable && (
|
|
181
|
+
o !== void 0 && o.enumerable && (Z(t[a]) && Z(s[a]) ? s[a].__swiper__ ? t[a] = s[a] : H(t[a], s[a]) : !Z(t[a]) && Z(s[a]) ? (t[a] = {}, s[a].__swiper__ ? t[a] = s[a] : H(t[a], s[a])) : t[a] = s[a]);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -193,7 +193,7 @@ function Ie(t) {
|
|
|
193
193
|
targetPosition: i,
|
|
194
194
|
side: s
|
|
195
195
|
} = t;
|
|
196
|
-
const n =
|
|
196
|
+
const n = V(), r = -e.translate;
|
|
197
197
|
let l = null, a;
|
|
198
198
|
const o = e.params.speed;
|
|
199
199
|
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
@@ -215,9 +215,9 @@ function Ie(t) {
|
|
|
215
215
|
};
|
|
216
216
|
f();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function k(t, e) {
|
|
219
219
|
e === void 0 && (e = "");
|
|
220
|
-
const i =
|
|
220
|
+
const i = V(), s = [...t.children];
|
|
221
221
|
return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((n) => n.matches(e)) : s;
|
|
222
222
|
}
|
|
223
223
|
function Ke(t, e) {
|
|
@@ -229,24 +229,24 @@ function Ke(t, e) {
|
|
|
229
229
|
i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
const i =
|
|
232
|
+
function Ze(t, e) {
|
|
233
|
+
const i = V();
|
|
234
234
|
let s = e.contains(t);
|
|
235
235
|
return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = Ke(t, e))), s;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function te(t) {
|
|
238
238
|
try {
|
|
239
239
|
console.warn(t);
|
|
240
240
|
return;
|
|
241
241
|
} catch {
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function ie(t, e) {
|
|
245
245
|
e === void 0 && (e = []);
|
|
246
246
|
const i = document.createElement(t);
|
|
247
247
|
return i.classList.add(...Array.isArray(e) ? e : je(e)), i;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Qe(t, e) {
|
|
250
250
|
const i = [];
|
|
251
251
|
for (; t.previousElementSibling; ) {
|
|
252
252
|
const s = t.previousElementSibling;
|
|
@@ -262,10 +262,10 @@ function Je(t, e) {
|
|
|
262
262
|
}
|
|
263
263
|
return i;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
return
|
|
265
|
+
function j(t, e) {
|
|
266
|
+
return V().getComputedStyle(t, null).getPropertyValue(e);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function ve(t) {
|
|
269
269
|
let e = t, i;
|
|
270
270
|
if (e) {
|
|
271
271
|
for (i = 0; (e = e.previousSibling) !== null; )
|
|
@@ -280,50 +280,50 @@ function et(t, e) {
|
|
|
280
280
|
e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
|
|
281
281
|
return i;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
const s =
|
|
283
|
+
function we(t, e, i) {
|
|
284
|
+
const s = V();
|
|
285
285
|
return i ? t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom")) : t.offsetWidth;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function R(t) {
|
|
288
288
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Se(t, e) {
|
|
291
291
|
e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
|
|
292
292
|
createHTML: (i) => i
|
|
293
293
|
}).createHTML(e) : t.innerHTML = e;
|
|
294
294
|
}
|
|
295
|
-
let
|
|
295
|
+
let re;
|
|
296
296
|
function tt() {
|
|
297
|
-
const t =
|
|
297
|
+
const t = V(), e = Y();
|
|
298
298
|
return {
|
|
299
299
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
300
300
|
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
303
|
function Le() {
|
|
304
|
-
return
|
|
304
|
+
return re || (re = tt()), re;
|
|
305
305
|
}
|
|
306
|
-
let
|
|
306
|
+
let ne;
|
|
307
307
|
function it(t) {
|
|
308
308
|
let {
|
|
309
309
|
userAgent: e
|
|
310
310
|
} = t === void 0 ? {} : t;
|
|
311
|
-
const i = Le(), s =
|
|
311
|
+
const i = Le(), s = V(), n = s.navigator.platform, r = e || s.navigator.userAgent, l = {
|
|
312
312
|
ios: !1,
|
|
313
313
|
android: !1
|
|
314
314
|
}, a = s.screen.width, o = s.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
315
315
|
let c = r.match(/(iPad).*OS\s([\d_]+)/);
|
|
316
316
|
const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), m = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), h = n === "Win32";
|
|
317
317
|
let u = n === "MacIntel";
|
|
318
|
-
const
|
|
319
|
-
return !c && u && i.touch &&
|
|
318
|
+
const v = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
319
|
+
return !c && u && i.touch && v.indexOf(`${a}x${o}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), u = !1), d && !h && (l.os = "android", l.android = !0), (c || m || f) && (l.os = "ios", l.ios = !0), l;
|
|
320
320
|
}
|
|
321
321
|
function Oe(t) {
|
|
322
|
-
return t === void 0 && (t = {}),
|
|
322
|
+
return t === void 0 && (t = {}), ne || (ne = it(t)), ne;
|
|
323
323
|
}
|
|
324
|
-
let
|
|
324
|
+
let ae;
|
|
325
325
|
function st() {
|
|
326
|
-
const t =
|
|
326
|
+
const t = V(), e = Oe();
|
|
327
327
|
let i = !1;
|
|
328
328
|
function s() {
|
|
329
329
|
const a = t.navigator.userAgent.toLowerCase();
|
|
@@ -345,7 +345,7 @@ function st() {
|
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
function ze() {
|
|
348
|
-
return
|
|
348
|
+
return ae || (ae = st()), ae;
|
|
349
349
|
}
|
|
350
350
|
function rt(t) {
|
|
351
351
|
let {
|
|
@@ -353,7 +353,7 @@ function rt(t) {
|
|
|
353
353
|
on: i,
|
|
354
354
|
emit: s
|
|
355
355
|
} = t;
|
|
356
|
-
const n =
|
|
356
|
+
const n = V();
|
|
357
357
|
let r = null, l = null;
|
|
358
358
|
const a = () => {
|
|
359
359
|
!e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
|
|
@@ -364,15 +364,15 @@ function rt(t) {
|
|
|
364
364
|
width: m,
|
|
365
365
|
height: h
|
|
366
366
|
} = e;
|
|
367
|
-
let u = m,
|
|
368
|
-
f.forEach((
|
|
367
|
+
let u = m, v = h;
|
|
368
|
+
f.forEach((E) => {
|
|
369
369
|
let {
|
|
370
370
|
contentBoxSize: p,
|
|
371
|
-
contentRect:
|
|
372
|
-
target:
|
|
373
|
-
} =
|
|
374
|
-
|
|
375
|
-
}), (u !== m ||
|
|
371
|
+
contentRect: w,
|
|
372
|
+
target: g
|
|
373
|
+
} = E;
|
|
374
|
+
g && g !== e.el || (u = w ? w.width : (p[0] || p).inlineSize, v = w ? w.height : (p[0] || p).blockSize);
|
|
375
|
+
}), (u !== m || v !== h) && a();
|
|
376
376
|
});
|
|
377
377
|
}), r.observe(e.el));
|
|
378
378
|
}, d = () => {
|
|
@@ -397,7 +397,7 @@ function nt(t) {
|
|
|
397
397
|
on: s,
|
|
398
398
|
emit: n
|
|
399
399
|
} = t;
|
|
400
|
-
const r = [], l =
|
|
400
|
+
const r = [], l = V(), a = function(c, f) {
|
|
401
401
|
f === void 0 && (f = {});
|
|
402
402
|
const m = l.MutationObserver || l.WebkitMutationObserver, h = new m((u) => {
|
|
403
403
|
if (e.__preventObserver__)
|
|
@@ -406,10 +406,10 @@ function nt(t) {
|
|
|
406
406
|
n("observerUpdate", u[0]);
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const v = function() {
|
|
410
410
|
n("observerUpdate", u[0]);
|
|
411
411
|
};
|
|
412
|
-
l.requestAnimationFrame ? l.requestAnimationFrame(
|
|
412
|
+
l.requestAnimationFrame ? l.requestAnimationFrame(v) : l.setTimeout(v, 0);
|
|
413
413
|
});
|
|
414
414
|
h.observe(c, {
|
|
415
415
|
attributes: typeof f.attributes > "u" ? !0 : f.attributes,
|
|
@@ -504,7 +504,7 @@ function lt() {
|
|
|
504
504
|
const t = this;
|
|
505
505
|
let e, i;
|
|
506
506
|
const s = t.el;
|
|
507
|
-
typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(
|
|
507
|
+
typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(j(s, "padding-left") || 0, 10) - parseInt(j(s, "padding-right") || 0, 10), i = i - parseInt(j(s, "padding-top") || 0, 10) - parseInt(j(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
|
|
508
508
|
width: e,
|
|
509
509
|
height: i,
|
|
510
510
|
size: t.isHorizontal() ? e : i
|
|
@@ -512,8 +512,8 @@ function lt() {
|
|
|
512
512
|
}
|
|
513
513
|
function ot() {
|
|
514
514
|
const t = this;
|
|
515
|
-
function e(
|
|
516
|
-
return parseFloat(
|
|
515
|
+
function e(b, y) {
|
|
516
|
+
return parseFloat(b.getPropertyValue(t.getDirectionLabel(y)) || 0);
|
|
517
517
|
}
|
|
518
518
|
const i = t.params, {
|
|
519
519
|
wrapperEl: s,
|
|
@@ -521,95 +521,95 @@ function ot() {
|
|
|
521
521
|
size: r,
|
|
522
522
|
rtlTranslate: l,
|
|
523
523
|
wrongRTL: a
|
|
524
|
-
} = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, c =
|
|
524
|
+
} = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, c = k(n, `.${t.params.slideClass}, swiper-slide`), f = o ? t.virtual.slides.length : c.length;
|
|
525
525
|
let m = [];
|
|
526
526
|
const h = [], u = [];
|
|
527
|
-
let
|
|
528
|
-
typeof
|
|
529
|
-
let
|
|
530
|
-
typeof
|
|
531
|
-
const p = t.snapGrid.length,
|
|
532
|
-
let
|
|
527
|
+
let v = i.slidesOffsetBefore;
|
|
528
|
+
typeof v == "function" && (v = i.slidesOffsetBefore.call(t));
|
|
529
|
+
let E = i.slidesOffsetAfter;
|
|
530
|
+
typeof E == "function" && (E = i.slidesOffsetAfter.call(t));
|
|
531
|
+
const p = t.snapGrid.length, w = t.slidesGrid.length;
|
|
532
|
+
let g = i.spaceBetween, T = -v, x = 0, M = 0;
|
|
533
533
|
if (typeof r > "u")
|
|
534
534
|
return;
|
|
535
|
-
typeof
|
|
536
|
-
l ?
|
|
535
|
+
typeof g == "string" && g.indexOf("%") >= 0 ? g = parseFloat(g.replace("%", "")) / 100 * r : typeof g == "string" && (g = parseFloat(g)), t.virtualSize = -g, c.forEach((b) => {
|
|
536
|
+
l ? b.style.marginLeft = "" : b.style.marginRight = "", b.style.marginBottom = "", b.style.marginTop = "";
|
|
537
537
|
}), i.centeredSlides && i.cssMode && (Q(s, "--swiper-centered-offset-before", ""), Q(s, "--swiper-centered-offset-after", ""));
|
|
538
|
-
const
|
|
539
|
-
|
|
538
|
+
const C = i.grid && i.grid.rows > 1 && t.grid;
|
|
539
|
+
C ? t.grid.initSlides(c) : t.grid && t.grid.unsetSlides();
|
|
540
540
|
let P;
|
|
541
|
-
const
|
|
542
|
-
for (let
|
|
541
|
+
const S = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((b) => typeof i.breakpoints[b].slidesPerView < "u").length > 0;
|
|
542
|
+
for (let b = 0; b < f; b += 1) {
|
|
543
543
|
P = 0;
|
|
544
544
|
let y;
|
|
545
|
-
if (c[
|
|
545
|
+
if (c[b] && (y = c[b]), C && t.grid.updateSlide(b, y, c), !(c[b] && j(y, "display") === "none")) {
|
|
546
546
|
if (i.slidesPerView === "auto") {
|
|
547
|
-
|
|
548
|
-
const I = getComputedStyle(y),
|
|
549
|
-
if (
|
|
550
|
-
P = t.isHorizontal() ?
|
|
547
|
+
S && (c[b].style[t.getDirectionLabel("width")] = "");
|
|
548
|
+
const I = getComputedStyle(y), L = y.style.transform, G = y.style.webkitTransform;
|
|
549
|
+
if (L && (y.style.transform = "none"), G && (y.style.webkitTransform = "none"), i.roundLengths)
|
|
550
|
+
P = t.isHorizontal() ? we(y, "width", !0) : we(y, "height", !0);
|
|
551
551
|
else {
|
|
552
|
-
const
|
|
553
|
-
if (
|
|
554
|
-
P =
|
|
552
|
+
const D = e(I, "width"), O = e(I, "padding-left"), A = e(I, "padding-right"), _ = e(I, "margin-left"), z = e(I, "margin-right"), N = I.getPropertyValue("box-sizing");
|
|
553
|
+
if (N && N === "border-box")
|
|
554
|
+
P = D + _ + z;
|
|
555
555
|
else {
|
|
556
556
|
const {
|
|
557
|
-
clientWidth:
|
|
558
|
-
offsetWidth:
|
|
557
|
+
clientWidth: ke,
|
|
558
|
+
offsetWidth: Re
|
|
559
559
|
} = y;
|
|
560
|
-
P =
|
|
560
|
+
P = D + O + A + _ + z + (Re - ke);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
|
|
563
|
+
L && (y.style.transform = L), G && (y.style.webkitTransform = G), i.roundLengths && (P = Math.floor(P));
|
|
564
564
|
} else
|
|
565
|
-
P = (r - (i.slidesPerView - 1) *
|
|
566
|
-
c[
|
|
565
|
+
P = (r - (i.slidesPerView - 1) * g) / i.slidesPerView, i.roundLengths && (P = Math.floor(P)), c[b] && (c[b].style[t.getDirectionLabel("width")] = `${P}px`);
|
|
566
|
+
c[b] && (c[b].swiperSlideSize = P), u.push(P), i.centeredSlides ? (T = T + P / 2 + x / 2 + g, x === 0 && b !== 0 && (T = T - r / 2 - g), b === 0 && (T = T - r / 2 - g), Math.abs(T) < 1 / 1e3 && (T = 0), i.roundLengths && (T = Math.floor(T)), M % i.slidesPerGroup === 0 && m.push(T), h.push(T)) : (i.roundLengths && (T = Math.floor(T)), (M - Math.min(t.params.slidesPerGroupSkip, M)) % t.params.slidesPerGroup === 0 && m.push(T), h.push(T), T = T + P + g), t.virtualSize += P + g, x = P, M += 1;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
if (t.virtualSize = Math.max(t.virtualSize, r) +
|
|
570
|
-
const
|
|
569
|
+
if (t.virtualSize = Math.max(t.virtualSize, r) + E, l && a && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + g}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + g}px`), C && t.grid.updateWrapperSize(P, m), !i.centeredSlides) {
|
|
570
|
+
const b = [];
|
|
571
571
|
for (let y = 0; y < m.length; y += 1) {
|
|
572
572
|
let I = m[y];
|
|
573
|
-
i.roundLengths && (I = Math.floor(I)), m[y] <= t.virtualSize - r &&
|
|
573
|
+
i.roundLengths && (I = Math.floor(I)), m[y] <= t.virtualSize - r && b.push(I);
|
|
574
574
|
}
|
|
575
|
-
m =
|
|
575
|
+
m = b, Math.floor(t.virtualSize - r) - Math.floor(m[m.length - 1]) > 1 && m.push(t.virtualSize - r);
|
|
576
576
|
}
|
|
577
577
|
if (o && i.loop) {
|
|
578
|
-
const
|
|
578
|
+
const b = u[0] + g;
|
|
579
579
|
if (i.slidesPerGroup > 1) {
|
|
580
|
-
const y = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), I =
|
|
581
|
-
for (let
|
|
580
|
+
const y = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), I = b * i.slidesPerGroup;
|
|
581
|
+
for (let L = 0; L < y; L += 1)
|
|
582
582
|
m.push(m[m.length - 1] + I);
|
|
583
583
|
}
|
|
584
584
|
for (let y = 0; y < t.virtual.slidesBefore + t.virtual.slidesAfter; y += 1)
|
|
585
|
-
i.slidesPerGroup === 1 && m.push(m[m.length - 1] +
|
|
585
|
+
i.slidesPerGroup === 1 && m.push(m[m.length - 1] + b), h.push(h[h.length - 1] + b), t.virtualSize += b;
|
|
586
586
|
}
|
|
587
|
-
if (m.length === 0 && (m = [0]),
|
|
588
|
-
const
|
|
587
|
+
if (m.length === 0 && (m = [0]), g !== 0) {
|
|
588
|
+
const b = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
589
589
|
c.filter((y, I) => !i.cssMode || i.loop ? !0 : I !== c.length - 1).forEach((y) => {
|
|
590
|
-
y.style[
|
|
590
|
+
y.style[b] = `${g}px`;
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
if (i.centeredSlides && i.centeredSlidesBounds) {
|
|
594
|
-
let
|
|
594
|
+
let b = 0;
|
|
595
595
|
u.forEach((I) => {
|
|
596
|
-
|
|
597
|
-
}),
|
|
598
|
-
const y =
|
|
599
|
-
m = m.map((I) => I <= 0 ? -
|
|
596
|
+
b += I + (g || 0);
|
|
597
|
+
}), b -= g;
|
|
598
|
+
const y = b > r ? b - r : 0;
|
|
599
|
+
m = m.map((I) => I <= 0 ? -v : I > y ? y + E : I);
|
|
600
600
|
}
|
|
601
601
|
if (i.centerInsufficientSlides) {
|
|
602
|
-
let
|
|
602
|
+
let b = 0;
|
|
603
603
|
u.forEach((I) => {
|
|
604
|
-
|
|
605
|
-
}),
|
|
604
|
+
b += I + (g || 0);
|
|
605
|
+
}), b -= g;
|
|
606
606
|
const y = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
|
|
607
|
-
if (
|
|
608
|
-
const I = (r -
|
|
609
|
-
m.forEach((
|
|
610
|
-
m[
|
|
611
|
-
}), h.forEach((
|
|
612
|
-
h[
|
|
607
|
+
if (b + y < r) {
|
|
608
|
+
const I = (r - b - y) / 2;
|
|
609
|
+
m.forEach((L, G) => {
|
|
610
|
+
m[G] = L - I;
|
|
611
|
+
}), h.forEach((L, G) => {
|
|
612
|
+
h[G] = L + I;
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
}
|
|
@@ -620,12 +620,12 @@ function ot() {
|
|
|
620
620
|
slidesSizesGrid: u
|
|
621
621
|
}), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
|
|
622
622
|
Q(s, "--swiper-centered-offset-before", `${-m[0]}px`), Q(s, "--swiper-centered-offset-after", `${t.size / 2 - u[u.length - 1] / 2}px`);
|
|
623
|
-
const
|
|
624
|
-
t.snapGrid = t.snapGrid.map((I) => I +
|
|
623
|
+
const b = -t.snapGrid[0], y = -t.slidesGrid[0];
|
|
624
|
+
t.snapGrid = t.snapGrid.map((I) => I + b), t.slidesGrid = t.slidesGrid.map((I) => I + y);
|
|
625
625
|
}
|
|
626
|
-
if (f !== d && t.emit("slidesLengthChange"), m.length !== p && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), h.length !==
|
|
627
|
-
const
|
|
628
|
-
f <= i.maxBackfaceHiddenSlides ? y || t.el.classList.add(
|
|
626
|
+
if (f !== d && t.emit("slidesLengthChange"), m.length !== p && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), h.length !== w && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
|
|
627
|
+
const b = `${i.containerModifierClass}backface-hidden`, y = t.el.classList.contains(b);
|
|
628
|
+
f <= i.maxBackfaceHiddenSlides ? y || t.el.classList.add(b) : y && t.el.classList.remove(b);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
function dt(t) {
|
|
@@ -659,7 +659,7 @@ function ct() {
|
|
|
659
659
|
for (let s = 0; s < e.length; s += 1)
|
|
660
660
|
e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const Te = (t, e, i) => {
|
|
663
663
|
e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
|
|
664
664
|
};
|
|
665
665
|
function ft(t) {
|
|
@@ -680,8 +680,8 @@ function ft(t) {
|
|
|
680
680
|
const d = s[o];
|
|
681
681
|
let c = d.swiperSlideOffset;
|
|
682
682
|
i.cssMode && i.centeredSlides && (c -= s[0].swiperSlideOffset);
|
|
683
|
-
const f = (l + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), m = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), h = -(l - c), u = h + e.slidesSizesGrid[o],
|
|
684
|
-
|
|
683
|
+
const f = (l + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), m = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), h = -(l - c), u = h + e.slidesSizesGrid[o], v = h >= 0 && h <= e.size - e.slidesSizesGrid[o], E = h >= 0 && h < e.size - 1 || u > 1 && u <= e.size || h <= 0 && u >= e.size;
|
|
684
|
+
E && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)), Te(d, E, i.slideVisibleClass), Te(d, v, i.slideFullyVisibleClass), d.progress = n ? -f : f, d.originalProgress = n ? -m : m;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
function ut(t) {
|
|
@@ -706,8 +706,8 @@ function ut(t) {
|
|
|
706
706
|
r = c || n <= 0, l = f || n >= 1, c && (n = 0), f && (n = 1);
|
|
707
707
|
}
|
|
708
708
|
if (i.loop) {
|
|
709
|
-
const c = e.getSlideIndexByData(0), f = e.getSlideIndexByData(e.slides.length - 1), m = e.slidesGrid[c], h = e.slidesGrid[f], u = e.slidesGrid[e.slidesGrid.length - 1],
|
|
710
|
-
|
|
709
|
+
const c = e.getSlideIndexByData(0), f = e.getSlideIndexByData(e.slides.length - 1), m = e.slidesGrid[c], h = e.slidesGrid[f], u = e.slidesGrid[e.slidesGrid.length - 1], v = Math.abs(t);
|
|
710
|
+
v >= m ? a = (v - m) / u : a = (v + u - h) / u, a > 1 && (a -= 1);
|
|
711
711
|
}
|
|
712
712
|
Object.assign(e, {
|
|
713
713
|
progress: n,
|
|
@@ -716,7 +716,7 @@ function ut(t) {
|
|
|
716
716
|
isEnd: l
|
|
717
717
|
}), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), r && !o && e.emit("reachBeginning toEdge"), l && !d && e.emit("reachEnd toEdge"), (o && !r || d && !l) && e.emit("fromEdge"), e.emit("progress", n);
|
|
718
718
|
}
|
|
719
|
-
const
|
|
719
|
+
const le = (t, e, i) => {
|
|
720
720
|
e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
|
|
721
721
|
};
|
|
722
722
|
function pt() {
|
|
@@ -725,7 +725,7 @@ function pt() {
|
|
|
725
725
|
params: i,
|
|
726
726
|
slidesEl: s,
|
|
727
727
|
activeIndex: n
|
|
728
|
-
} = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (f) =>
|
|
728
|
+
} = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (f) => k(s, `.${i.slideClass}${f}, swiper-slide${f}`)[0];
|
|
729
729
|
let o, d, c;
|
|
730
730
|
if (r)
|
|
731
731
|
if (i.loop) {
|
|
@@ -735,11 +735,11 @@ function pt() {
|
|
|
735
735
|
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
736
736
|
else
|
|
737
737
|
l ? (o = e.find((f) => f.column === n), c = e.find((f) => f.column === n + 1), d = e.find((f) => f.column === n - 1)) : o = e[n];
|
|
738
|
-
o && (l || (c = Je(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !c && (c = e[0]), d =
|
|
739
|
-
|
|
738
|
+
o && (l || (c = Je(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !c && (c = e[0]), d = Qe(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((f) => {
|
|
739
|
+
le(f, f === o, i.slideActiveClass), le(f, f === c, i.slideNextClass), le(f, f === d, i.slidePrevClass);
|
|
740
740
|
}), t.emitSlidesClasses();
|
|
741
741
|
}
|
|
742
|
-
const
|
|
742
|
+
const J = (t, e) => {
|
|
743
743
|
if (!t || t.destroyed || !t.params)
|
|
744
744
|
return;
|
|
745
745
|
const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
|
|
@@ -749,12 +749,12 @@ const Z = (t, e) => {
|
|
|
749
749
|
s.shadowRoot && (n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
|
|
750
750
|
})), n && n.remove();
|
|
751
751
|
}
|
|
752
|
-
},
|
|
752
|
+
}, oe = (t, e) => {
|
|
753
753
|
if (!t.slides[e])
|
|
754
754
|
return;
|
|
755
755
|
const i = t.slides[e].querySelector('[loading="lazy"]');
|
|
756
756
|
i && i.removeAttribute("loading");
|
|
757
|
-
},
|
|
757
|
+
}, ue = (t) => {
|
|
758
758
|
if (!t || t.destroyed || !t.params)
|
|
759
759
|
return;
|
|
760
760
|
let e = t.params.lazyPreloadPrevNext;
|
|
@@ -768,7 +768,7 @@ const Z = (t, e) => {
|
|
|
768
768
|
a.push(...Array.from({
|
|
769
769
|
length: e
|
|
770
770
|
}).map((o, d) => l + s + d)), t.slides.forEach((o, d) => {
|
|
771
|
-
a.includes(o.column) &&
|
|
771
|
+
a.includes(o.column) && oe(t, d);
|
|
772
772
|
});
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
@@ -776,11 +776,11 @@ const Z = (t, e) => {
|
|
|
776
776
|
if (t.params.rewind || t.params.loop)
|
|
777
777
|
for (let l = n - e; l <= r + e; l += 1) {
|
|
778
778
|
const a = (l % i + i) % i;
|
|
779
|
-
(a < n || a > r) &&
|
|
779
|
+
(a < n || a > r) && oe(t, a);
|
|
780
780
|
}
|
|
781
781
|
else
|
|
782
782
|
for (let l = Math.max(n - e, 0); l <= Math.min(r + e, i - 1); l += 1)
|
|
783
|
-
l !== n && (l > r || l < n) &&
|
|
783
|
+
l !== n && (l > r || l < n) && oe(t, l);
|
|
784
784
|
};
|
|
785
785
|
function mt(t) {
|
|
786
786
|
const {
|
|
@@ -824,7 +824,7 @@ function ht(t) {
|
|
|
824
824
|
if (e.virtual && n.virtual.enabled && n.loop)
|
|
825
825
|
m = c(o);
|
|
826
826
|
else if (f) {
|
|
827
|
-
const h = e.slides.find((
|
|
827
|
+
const h = e.slides.find((v) => v.column === o);
|
|
828
828
|
let u = parseInt(h.getAttribute("data-swiper-slide-index"), 10);
|
|
829
829
|
Number.isNaN(u) && (u = Math.max(e.slides.indexOf(h), 0)), m = Math.floor(u / n.grid.rows);
|
|
830
830
|
} else if (e.slides[o]) {
|
|
@@ -839,7 +839,7 @@ function ht(t) {
|
|
|
839
839
|
realIndex: m,
|
|
840
840
|
previousIndex: r,
|
|
841
841
|
activeIndex: o
|
|
842
|
-
}), e.initialized &&
|
|
842
|
+
}), e.initialized && ue(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== m && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
843
843
|
}
|
|
844
844
|
function gt(t, e) {
|
|
845
845
|
const i = this, s = i.params;
|
|
@@ -886,7 +886,7 @@ function wt(t) {
|
|
|
886
886
|
return s ? -n : n;
|
|
887
887
|
if (i.cssMode)
|
|
888
888
|
return n;
|
|
889
|
-
let l =
|
|
889
|
+
let l = qe(r, t);
|
|
890
890
|
return l += e.cssOverflowAdjustment(), s && (l = -l), l || 0;
|
|
891
891
|
}
|
|
892
892
|
function St(t, e) {
|
|
@@ -909,7 +909,7 @@ function Tt() {
|
|
|
909
909
|
function bt() {
|
|
910
910
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function Et(t, e, i, s, n) {
|
|
913
913
|
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), s === void 0 && (s = !0);
|
|
914
914
|
const r = this, {
|
|
915
915
|
params: l,
|
|
@@ -941,12 +941,12 @@ function xt(t, e, i, s, n) {
|
|
|
941
941
|
!r || r.destroyed || m.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, i && r.emit("transitionEnd"));
|
|
942
942
|
}), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
|
|
943
943
|
}
|
|
944
|
-
var
|
|
944
|
+
var xt = {
|
|
945
945
|
getTranslate: wt,
|
|
946
946
|
setTranslate: St,
|
|
947
947
|
minTranslate: Tt,
|
|
948
948
|
maxTranslate: bt,
|
|
949
|
-
translateTo:
|
|
949
|
+
translateTo: Et
|
|
950
950
|
};
|
|
951
951
|
function yt(t, e) {
|
|
952
952
|
const i = this;
|
|
@@ -978,7 +978,7 @@ function Pt(t, e) {
|
|
|
978
978
|
step: "Start"
|
|
979
979
|
}));
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Mt(t, e) {
|
|
982
982
|
t === void 0 && (t = !0);
|
|
983
983
|
const i = this, {
|
|
984
984
|
params: s
|
|
@@ -990,10 +990,10 @@ function Ct(t, e) {
|
|
|
990
990
|
step: "End"
|
|
991
991
|
}));
|
|
992
992
|
}
|
|
993
|
-
var
|
|
993
|
+
var Ct = {
|
|
994
994
|
setTransition: yt,
|
|
995
995
|
transitionStart: Pt,
|
|
996
|
-
transitionEnd:
|
|
996
|
+
transitionEnd: Mt
|
|
997
997
|
};
|
|
998
998
|
function It(t, e, i, s, n) {
|
|
999
999
|
t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
@@ -1013,29 +1013,29 @@ function It(t, e, i, s, n) {
|
|
|
1013
1013
|
if (!u && !s && !n || r.destroyed || r.animating && a.preventInteractionOnTransition)
|
|
1014
1014
|
return !1;
|
|
1015
1015
|
typeof e > "u" && (e = r.params.speed);
|
|
1016
|
-
const
|
|
1017
|
-
let
|
|
1018
|
-
|
|
1019
|
-
const p = -o[
|
|
1016
|
+
const v = Math.min(r.params.slidesPerGroupSkip, l);
|
|
1017
|
+
let E = v + Math.floor((l - v) / r.params.slidesPerGroup);
|
|
1018
|
+
E >= o.length && (E = o.length - 1);
|
|
1019
|
+
const p = -o[E];
|
|
1020
1020
|
if (a.normalizeSlideIndex)
|
|
1021
|
-
for (let
|
|
1022
|
-
const P = -Math.floor(p * 100),
|
|
1023
|
-
typeof d[
|
|
1021
|
+
for (let C = 0; C < d.length; C += 1) {
|
|
1022
|
+
const P = -Math.floor(p * 100), S = Math.floor(d[C] * 100), b = Math.floor(d[C + 1] * 100);
|
|
1023
|
+
typeof d[C + 1] < "u" ? P >= S && P < b - (b - S) / 2 ? l = C : P >= S && P < b && (l = C + 1) : P >= S && (l = C);
|
|
1024
1024
|
}
|
|
1025
1025
|
if (r.initialized && l !== f && (!r.allowSlideNext && (m ? p > r.translate && p > r.minTranslate() : p < r.translate && p < r.minTranslate()) || !r.allowSlidePrev && p > r.translate && p > r.maxTranslate() && (f || 0) !== l))
|
|
1026
1026
|
return !1;
|
|
1027
1027
|
l !== (c || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(p);
|
|
1028
|
-
let
|
|
1029
|
-
l > f ?
|
|
1030
|
-
const
|
|
1031
|
-
if (!(
|
|
1032
|
-
return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(p),
|
|
1028
|
+
let w;
|
|
1029
|
+
l > f ? w = "next" : l < f ? w = "prev" : w = "reset";
|
|
1030
|
+
const g = r.virtual && r.params.virtual.enabled;
|
|
1031
|
+
if (!(g && n) && (m && -p === r.translate || !m && p === r.translate))
|
|
1032
|
+
return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(p), w !== "reset" && (r.transitionStart(i, w), r.transitionEnd(i, w)), !1;
|
|
1033
1033
|
if (a.cssMode) {
|
|
1034
|
-
const
|
|
1034
|
+
const C = r.isHorizontal(), P = m ? p : -p;
|
|
1035
1035
|
if (e === 0)
|
|
1036
|
-
|
|
1037
|
-
h[
|
|
1038
|
-
})) : h[
|
|
1036
|
+
g && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), g && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1037
|
+
h[C ? "scrollLeft" : "scrollTop"] = P;
|
|
1038
|
+
})) : h[C ? "scrollLeft" : "scrollTop"] = P, g && requestAnimationFrame(() => {
|
|
1039
1039
|
r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
|
|
1040
1040
|
});
|
|
1041
1041
|
else {
|
|
@@ -1043,18 +1043,18 @@ function It(t, e, i, s, n) {
|
|
|
1043
1043
|
return Ie({
|
|
1044
1044
|
swiper: r,
|
|
1045
1045
|
targetPosition: P,
|
|
1046
|
-
side:
|
|
1046
|
+
side: C ? "left" : "top"
|
|
1047
1047
|
}), !0;
|
|
1048
1048
|
h.scrollTo({
|
|
1049
|
-
[
|
|
1049
|
+
[C ? "left" : "top"]: P,
|
|
1050
1050
|
behavior: "smooth"
|
|
1051
1051
|
});
|
|
1052
1052
|
}
|
|
1053
1053
|
return !0;
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
return
|
|
1057
|
-
!r || r.destroyed || P.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i,
|
|
1055
|
+
const M = ze().isSafari;
|
|
1056
|
+
return g && !n && M && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(p), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, w), e === 0 ? r.transitionEnd(i, w) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(P) {
|
|
1057
|
+
!r || r.destroyed || P.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, w));
|
|
1058
1058
|
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
|
|
1059
1059
|
}
|
|
1060
1060
|
function Lt(t, e, i, s) {
|
|
@@ -1147,21 +1147,21 @@ function zt(t, e, i) {
|
|
|
1147
1147
|
}), s._clientLeft = s.wrapperEl.clientLeft;
|
|
1148
1148
|
}
|
|
1149
1149
|
const f = a ? s.translate : -s.translate;
|
|
1150
|
-
function m(
|
|
1151
|
-
return
|
|
1150
|
+
function m(w) {
|
|
1151
|
+
return w < 0 ? -Math.floor(Math.abs(w)) : Math.floor(w);
|
|
1152
1152
|
}
|
|
1153
|
-
const h = m(f), u = r.map((
|
|
1154
|
-
let
|
|
1155
|
-
if (typeof
|
|
1156
|
-
let
|
|
1157
|
-
r.forEach((
|
|
1158
|
-
h >=
|
|
1159
|
-
}), typeof
|
|
1153
|
+
const h = m(f), u = r.map((w) => m(w)), v = n.freeMode && n.freeMode.enabled;
|
|
1154
|
+
let E = r[u.indexOf(h) - 1];
|
|
1155
|
+
if (typeof E > "u" && (n.cssMode || v)) {
|
|
1156
|
+
let w;
|
|
1157
|
+
r.forEach((g, T) => {
|
|
1158
|
+
h >= g && (w = T);
|
|
1159
|
+
}), typeof w < "u" && (E = v ? r[w] : r[w > 0 ? w - 1 : w]);
|
|
1160
1160
|
}
|
|
1161
1161
|
let p = 0;
|
|
1162
|
-
if (typeof
|
|
1163
|
-
const
|
|
1164
|
-
return s.slideTo(
|
|
1162
|
+
if (typeof E < "u" && (p = l.indexOf(E), p < 0 && (p = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (p = p - s.slidesPerViewDynamic("previous", !0) + 1, p = Math.max(p, 0))), n.rewind && s.isBeginning) {
|
|
1163
|
+
const w = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
|
|
1164
|
+
return s.slideTo(w, t, e, i);
|
|
1165
1165
|
} else if (n.loop && s.activeIndex === 0 && n.cssMode)
|
|
1166
1166
|
return requestAnimationFrame(() => {
|
|
1167
1167
|
s.slideTo(p, t, e, i);
|
|
@@ -1204,7 +1204,7 @@ function Gt() {
|
|
|
1204
1204
|
if (e.loop) {
|
|
1205
1205
|
if (t.animating)
|
|
1206
1206
|
return;
|
|
1207
|
-
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(
|
|
1207
|
+
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(k(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), ee(() => {
|
|
1208
1208
|
t.slideTo(n);
|
|
1209
1209
|
})) : t.slideTo(n);
|
|
1210
1210
|
} else
|
|
@@ -1219,7 +1219,7 @@ var Dt = {
|
|
|
1219
1219
|
slideToClosest: _t,
|
|
1220
1220
|
slideToClickedSlide: Gt
|
|
1221
1221
|
};
|
|
1222
|
-
function
|
|
1222
|
+
function Bt(t, e) {
|
|
1223
1223
|
const i = this, {
|
|
1224
1224
|
params: s,
|
|
1225
1225
|
slidesEl: n
|
|
@@ -1227,11 +1227,11 @@ function Vt(t, e) {
|
|
|
1227
1227
|
if (!s.loop || i.virtual && i.params.virtual.enabled)
|
|
1228
1228
|
return;
|
|
1229
1229
|
const r = () => {
|
|
1230
|
-
|
|
1230
|
+
k(n, `.${s.slideClass}, swiper-slide`).forEach((h, u) => {
|
|
1231
1231
|
h.setAttribute("data-swiper-slide-index", u);
|
|
1232
1232
|
});
|
|
1233
1233
|
}, l = () => {
|
|
1234
|
-
const m =
|
|
1234
|
+
const m = k(n, `.${s.slideBlankClass}`);
|
|
1235
1235
|
m.forEach((h) => {
|
|
1236
1236
|
h.remove();
|
|
1237
1237
|
}), m.length > 0 && (i.recalcSlides(), i.updateSlides());
|
|
@@ -1239,7 +1239,7 @@ function Vt(t, e) {
|
|
|
1239
1239
|
s.loopAddBlankSlides && (s.slidesPerGroup > 1 || a) && l();
|
|
1240
1240
|
const o = s.slidesPerGroup * (a ? s.grid.rows : 1), d = i.slides.length % o !== 0, c = a && i.slides.length % s.grid.rows !== 0, f = (m) => {
|
|
1241
1241
|
for (let h = 0; h < m; h += 1) {
|
|
1242
|
-
const u = i.isElement ?
|
|
1242
|
+
const u = i.isElement ? ie("swiper-slide", [s.slideBlankClass]) : ie("div", [s.slideClass, s.slideBlankClass]);
|
|
1243
1243
|
i.slidesEl.append(u);
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
@@ -1248,14 +1248,14 @@ function Vt(t, e) {
|
|
|
1248
1248
|
const m = o - i.slides.length % o;
|
|
1249
1249
|
f(m), i.recalcSlides(), i.updateSlides();
|
|
1250
1250
|
} else
|
|
1251
|
-
|
|
1251
|
+
te("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)");
|
|
1252
1252
|
r();
|
|
1253
1253
|
} else if (c) {
|
|
1254
1254
|
if (s.loopAddBlankSlides) {
|
|
1255
1255
|
const m = s.grid.rows - i.slides.length % s.grid.rows;
|
|
1256
1256
|
f(m), i.recalcSlides(), i.updateSlides();
|
|
1257
1257
|
} else
|
|
1258
|
-
|
|
1258
|
+
te("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)");
|
|
1259
1259
|
r();
|
|
1260
1260
|
} else
|
|
1261
1261
|
r();
|
|
@@ -1265,7 +1265,7 @@ function Vt(t, e) {
|
|
|
1265
1265
|
initial: e
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Vt(t) {
|
|
1269
1269
|
let {
|
|
1270
1270
|
slideRealIndex: e,
|
|
1271
1271
|
slideTo: i = !0,
|
|
@@ -1287,87 +1287,87 @@ function Bt(t) {
|
|
|
1287
1287
|
slidesEl: h,
|
|
1288
1288
|
params: u
|
|
1289
1289
|
} = d, {
|
|
1290
|
-
centeredSlides:
|
|
1291
|
-
initialSlide:
|
|
1290
|
+
centeredSlides: v,
|
|
1291
|
+
initialSlide: E
|
|
1292
1292
|
} = u;
|
|
1293
1293
|
if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && u.virtual.enabled) {
|
|
1294
1294
|
i && (!u.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : u.centeredSlides && d.snapIndex < u.slidesPerView ? d.slideTo(d.virtual.slides.length + d.snapIndex, 0, !1, !0) : d.snapIndex === d.snapGrid.length - 1 && d.slideTo(d.virtual.slidesBefore, 0, !1, !0)), d.allowSlidePrev = f, d.allowSlideNext = m, d.emit("loopFix");
|
|
1295
1295
|
return;
|
|
1296
1296
|
}
|
|
1297
1297
|
let p = u.slidesPerView;
|
|
1298
|
-
p === "auto" ? p = d.slidesPerViewDynamic() : (p = Math.ceil(parseFloat(u.slidesPerView, 10)),
|
|
1299
|
-
const
|
|
1300
|
-
let
|
|
1301
|
-
|
|
1302
|
-
const
|
|
1303
|
-
c.length < p +
|
|
1304
|
-
const
|
|
1305
|
-
let
|
|
1306
|
-
typeof r > "u" ? r = d.getSlideIndex(c.find((
|
|
1307
|
-
const
|
|
1308
|
-
let I = 0,
|
|
1309
|
-
const
|
|
1310
|
-
if (
|
|
1311
|
-
I = Math.max(
|
|
1312
|
-
for (let
|
|
1313
|
-
const
|
|
1314
|
-
if (
|
|
1315
|
-
const
|
|
1316
|
-
for (let
|
|
1317
|
-
c[
|
|
1298
|
+
p === "auto" ? p = d.slidesPerViewDynamic() : (p = Math.ceil(parseFloat(u.slidesPerView, 10)), v && p % 2 === 0 && (p = p + 1));
|
|
1299
|
+
const w = u.slidesPerGroupAuto ? p : u.slidesPerGroup;
|
|
1300
|
+
let g = v ? Math.max(w, Math.ceil(p / 2)) : w;
|
|
1301
|
+
g % w !== 0 && (g += w - g % w), g += u.loopAdditionalSlides, d.loopedSlides = g;
|
|
1302
|
+
const T = d.grid && u.grid && u.grid.rows > 1;
|
|
1303
|
+
c.length < p + g || d.params.effect === "cards" && c.length < p + g * 2 ? te("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") : T && u.grid.fill === "row" && te("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1304
|
+
const x = [], M = [], C = T ? Math.ceil(c.length / u.grid.rows) : c.length, P = l && C - E < p && !v;
|
|
1305
|
+
let S = P ? E : d.activeIndex;
|
|
1306
|
+
typeof r > "u" ? r = d.getSlideIndex(c.find((O) => O.classList.contains(u.slideActiveClass))) : S = r;
|
|
1307
|
+
const b = s === "next" || !s, y = s === "prev" || !s;
|
|
1308
|
+
let I = 0, L = 0;
|
|
1309
|
+
const D = (T ? c[r].column : r) + (v && typeof n > "u" ? -p / 2 + 0.5 : 0);
|
|
1310
|
+
if (D < g) {
|
|
1311
|
+
I = Math.max(g - D, w);
|
|
1312
|
+
for (let O = 0; O < g - D; O += 1) {
|
|
1313
|
+
const A = O - Math.floor(O / C) * C;
|
|
1314
|
+
if (T) {
|
|
1315
|
+
const _ = C - A - 1;
|
|
1316
|
+
for (let z = c.length - 1; z >= 0; z -= 1)
|
|
1317
|
+
c[z].column === _ && x.push(z);
|
|
1318
1318
|
} else
|
|
1319
|
-
|
|
1319
|
+
x.push(C - A - 1);
|
|
1320
1320
|
}
|
|
1321
|
-
} else if (
|
|
1322
|
-
|
|
1323
|
-
for (let
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
}) :
|
|
1321
|
+
} else if (D + p > C - g) {
|
|
1322
|
+
L = Math.max(D - (C - g * 2), w), P && (L = Math.max(L, p - C + E + 1));
|
|
1323
|
+
for (let O = 0; O < L; O += 1) {
|
|
1324
|
+
const A = O - Math.floor(O / C) * C;
|
|
1325
|
+
T ? c.forEach((_, z) => {
|
|
1326
|
+
_.column === A && M.push(z);
|
|
1327
|
+
}) : M.push(A);
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1331
1331
|
d.__preventObserver__ = !1;
|
|
1332
|
-
}), d.params.effect === "cards" && c.length < p +
|
|
1333
|
-
c[
|
|
1334
|
-
}),
|
|
1335
|
-
c[
|
|
1336
|
-
}), d.recalcSlides(), u.slidesPerView === "auto" ? d.updateSlides() :
|
|
1337
|
-
d.grid.updateSlide(
|
|
1332
|
+
}), d.params.effect === "cards" && c.length < p + g * 2 && (M.includes(r) && M.splice(M.indexOf(r), 1), x.includes(r) && x.splice(x.indexOf(r), 1)), y && x.forEach((O) => {
|
|
1333
|
+
c[O].swiperLoopMoveDOM = !0, h.prepend(c[O]), c[O].swiperLoopMoveDOM = !1;
|
|
1334
|
+
}), b && M.forEach((O) => {
|
|
1335
|
+
c[O].swiperLoopMoveDOM = !0, h.append(c[O]), c[O].swiperLoopMoveDOM = !1;
|
|
1336
|
+
}), d.recalcSlides(), u.slidesPerView === "auto" ? d.updateSlides() : T && (x.length > 0 && y || M.length > 0 && b) && d.slides.forEach((O, A) => {
|
|
1337
|
+
d.grid.updateSlide(A, O, d.slides);
|
|
1338
1338
|
}), u.watchSlidesProgress && d.updateSlidesOffset(), i) {
|
|
1339
|
-
if (
|
|
1339
|
+
if (x.length > 0 && y) {
|
|
1340
1340
|
if (typeof e > "u") {
|
|
1341
|
-
const
|
|
1342
|
-
o ? d.setTranslate(d.translate -
|
|
1341
|
+
const O = d.slidesGrid[S], _ = d.slidesGrid[S + I] - O;
|
|
1342
|
+
o ? d.setTranslate(d.translate - _) : (d.slideTo(S + Math.ceil(I), 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - _, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - _));
|
|
1343
1343
|
} else if (n) {
|
|
1344
|
-
const
|
|
1345
|
-
d.slideTo(d.activeIndex +
|
|
1344
|
+
const O = T ? x.length / u.grid.rows : x.length;
|
|
1345
|
+
d.slideTo(d.activeIndex + O, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
|
|
1346
1346
|
}
|
|
1347
|
-
} else if (
|
|
1347
|
+
} else if (M.length > 0 && b)
|
|
1348
1348
|
if (typeof e > "u") {
|
|
1349
|
-
const
|
|
1350
|
-
o ? d.setTranslate(d.translate -
|
|
1349
|
+
const O = d.slidesGrid[S], _ = d.slidesGrid[S - L] - O;
|
|
1350
|
+
o ? d.setTranslate(d.translate - _) : (d.slideTo(S - L, 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - _, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - _));
|
|
1351
1351
|
} else {
|
|
1352
|
-
const
|
|
1353
|
-
d.slideTo(d.activeIndex -
|
|
1352
|
+
const O = T ? M.length / u.grid.rows : M.length;
|
|
1353
|
+
d.slideTo(d.activeIndex - O, 0, !1, !0);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
if (d.allowSlidePrev = f, d.allowSlideNext = m, d.controller && d.controller.control && !a) {
|
|
1357
|
-
const
|
|
1357
|
+
const O = {
|
|
1358
1358
|
slideRealIndex: e,
|
|
1359
1359
|
direction: s,
|
|
1360
1360
|
setTranslate: n,
|
|
1361
1361
|
activeSlideIndex: r,
|
|
1362
1362
|
byController: !0
|
|
1363
1363
|
};
|
|
1364
|
-
Array.isArray(d.controller.control) ? d.controller.control.forEach((
|
|
1365
|
-
!
|
|
1366
|
-
...
|
|
1367
|
-
slideTo:
|
|
1364
|
+
Array.isArray(d.controller.control) ? d.controller.control.forEach((A) => {
|
|
1365
|
+
!A.destroyed && A.params.loop && A.loopFix({
|
|
1366
|
+
...O,
|
|
1367
|
+
slideTo: A.params.slidesPerView === u.slidesPerView ? i : !1
|
|
1368
1368
|
});
|
|
1369
1369
|
}) : d.controller.control instanceof d.constructor && d.controller.control.params.loop && d.controller.control.loopFix({
|
|
1370
|
-
...
|
|
1370
|
+
...O,
|
|
1371
1371
|
slideTo: d.controller.control.params.slidesPerView === u.slidesPerView ? i : !1
|
|
1372
1372
|
});
|
|
1373
1373
|
}
|
|
@@ -1391,12 +1391,12 @@ function Nt() {
|
|
|
1391
1391
|
i.append(n);
|
|
1392
1392
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1393
1393
|
}
|
|
1394
|
-
var
|
|
1395
|
-
loopCreate:
|
|
1396
|
-
loopFix:
|
|
1394
|
+
var Ht = {
|
|
1395
|
+
loopCreate: Bt,
|
|
1396
|
+
loopFix: Vt,
|
|
1397
1397
|
loopDestroy: Nt
|
|
1398
1398
|
};
|
|
1399
|
-
function
|
|
1399
|
+
function Ft(t) {
|
|
1400
1400
|
const e = this;
|
|
1401
1401
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode)
|
|
1402
1402
|
return;
|
|
@@ -1405,20 +1405,20 @@ function kt(t) {
|
|
|
1405
1405
|
e.__preventObserver__ = !1;
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function kt() {
|
|
1409
1409
|
const t = this;
|
|
1410
1410
|
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
|
|
1411
1411
|
t.__preventObserver__ = !1;
|
|
1412
1412
|
}));
|
|
1413
1413
|
}
|
|
1414
|
-
var
|
|
1415
|
-
setGrabCursor:
|
|
1416
|
-
unsetGrabCursor:
|
|
1414
|
+
var Rt = {
|
|
1415
|
+
setGrabCursor: Ft,
|
|
1416
|
+
unsetGrabCursor: kt
|
|
1417
1417
|
};
|
|
1418
|
-
function
|
|
1418
|
+
function $t(t, e) {
|
|
1419
1419
|
e === void 0 && (e = this);
|
|
1420
1420
|
function i(s) {
|
|
1421
|
-
if (!s || s ===
|
|
1421
|
+
if (!s || s === Y() || s === V())
|
|
1422
1422
|
return null;
|
|
1423
1423
|
s.assignedSlot && (s = s.assignedSlot);
|
|
1424
1424
|
const n = s.closest(t);
|
|
@@ -1426,14 +1426,14 @@ function Ht(t, e) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
return i(e);
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
const s =
|
|
1429
|
+
function be(t, e, i) {
|
|
1430
|
+
const s = V(), {
|
|
1431
1431
|
params: n
|
|
1432
1432
|
} = t, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
|
|
1433
1433
|
return r && (i <= l || i >= s.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1434
1434
|
}
|
|
1435
1435
|
function Wt(t) {
|
|
1436
|
-
const e = this, i =
|
|
1436
|
+
const e = this, i = Y();
|
|
1437
1437
|
let s = t;
|
|
1438
1438
|
s.originalEvent && (s = s.originalEvent);
|
|
1439
1439
|
const n = e.touchEventsData;
|
|
@@ -1444,7 +1444,7 @@ function Wt(t) {
|
|
|
1444
1444
|
} else
|
|
1445
1445
|
s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
|
|
1446
1446
|
if (s.type === "touchstart") {
|
|
1447
|
-
|
|
1447
|
+
be(e, s, s.targetTouches[0].pageX);
|
|
1448
1448
|
return;
|
|
1449
1449
|
}
|
|
1450
1450
|
const {
|
|
@@ -1456,12 +1456,12 @@ function Wt(t) {
|
|
|
1456
1456
|
return;
|
|
1457
1457
|
!e.animating && r.cssMode && r.loop && e.loopFix();
|
|
1458
1458
|
let o = s.target;
|
|
1459
|
-
if (r.touchEventsTarget === "wrapper" && !
|
|
1459
|
+
if (r.touchEventsTarget === "wrapper" && !Ze(o, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved)
|
|
1460
1460
|
return;
|
|
1461
1461
|
const d = !!r.noSwipingClass && r.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
|
|
1462
1462
|
d && s.target && s.target.shadowRoot && c && (o = c[0]);
|
|
1463
1463
|
const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, m = !!(s.target && s.target.shadowRoot);
|
|
1464
|
-
if (r.noSwiping && (m ?
|
|
1464
|
+
if (r.noSwiping && (m ? $t(f, o) : o.closest(f))) {
|
|
1465
1465
|
e.allowClick = !0;
|
|
1466
1466
|
return;
|
|
1467
1467
|
}
|
|
@@ -1469,7 +1469,7 @@ function Wt(t) {
|
|
|
1469
1469
|
return;
|
|
1470
1470
|
l.currentX = s.pageX, l.currentY = s.pageY;
|
|
1471
1471
|
const h = l.currentX, u = l.currentY;
|
|
1472
|
-
if (!
|
|
1472
|
+
if (!be(e, s, h))
|
|
1473
1473
|
return;
|
|
1474
1474
|
Object.assign(n, {
|
|
1475
1475
|
isTouched: !0,
|
|
@@ -1477,14 +1477,14 @@ function Wt(t) {
|
|
|
1477
1477
|
allowTouchCallbacks: !0,
|
|
1478
1478
|
isScrolling: void 0,
|
|
1479
1479
|
startMoving: void 0
|
|
1480
|
-
}), l.startX = h, l.startY = u, n.touchStartTime =
|
|
1481
|
-
let
|
|
1482
|
-
o.matches(n.focusableElements) && (
|
|
1483
|
-
const
|
|
1484
|
-
(r.touchStartForcePreventDefault ||
|
|
1480
|
+
}), l.startX = h, l.startY = u, n.touchStartTime = W(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
|
|
1481
|
+
let v = !0;
|
|
1482
|
+
o.matches(n.focusableElements) && (v = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== o && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !o.matches(n.focusableElements)) && i.activeElement.blur();
|
|
1483
|
+
const E = v && e.allowTouchMove && r.touchStartPreventDefault;
|
|
1484
|
+
(r.touchStartForcePreventDefault || E) && !o.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
|
|
1485
1485
|
}
|
|
1486
1486
|
function jt(t) {
|
|
1487
|
-
const e =
|
|
1487
|
+
const e = Y(), i = this, s = i.touchEventsData, {
|
|
1488
1488
|
params: n,
|
|
1489
1489
|
touches: r,
|
|
1490
1490
|
rtlTranslate: l,
|
|
@@ -1497,7 +1497,7 @@ function jt(t) {
|
|
|
1497
1497
|
return;
|
|
1498
1498
|
let d;
|
|
1499
1499
|
if (o.type === "touchmove") {
|
|
1500
|
-
if (d = [...o.changedTouches].find((
|
|
1500
|
+
if (d = [...o.changedTouches].find((M) => M.identifier === s.touchId), !d || d.identifier !== s.touchId)
|
|
1501
1501
|
return;
|
|
1502
1502
|
} else
|
|
1503
1503
|
d = o;
|
|
@@ -1516,7 +1516,7 @@ function jt(t) {
|
|
|
1516
1516
|
startY: f,
|
|
1517
1517
|
currentX: c,
|
|
1518
1518
|
currentY: f
|
|
1519
|
-
}), s.touchStartTime =
|
|
1519
|
+
}), s.touchStartTime = W());
|
|
1520
1520
|
return;
|
|
1521
1521
|
}
|
|
1522
1522
|
if (n.touchReleaseOnEdges && !n.loop)
|
|
@@ -1540,8 +1540,8 @@ function jt(t) {
|
|
|
1540
1540
|
if (i.params.threshold && Math.sqrt(m ** 2 + h ** 2) < i.params.threshold)
|
|
1541
1541
|
return;
|
|
1542
1542
|
if (typeof s.isScrolling > "u") {
|
|
1543
|
-
let
|
|
1544
|
-
i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : m * m + h * h >= 25 && (
|
|
1543
|
+
let M;
|
|
1544
|
+
i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : m * m + h * h >= 25 && (M = Math.atan2(Math.abs(h), Math.abs(m)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? M > n.touchAngle : 90 - M > n.touchAngle);
|
|
1545
1545
|
}
|
|
1546
1546
|
if (s.isScrolling && i.emit("touchMoveOpposite", o), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling || o.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
|
|
1547
1547
|
s.isTouched = !1;
|
|
@@ -1550,28 +1550,28 @@ function jt(t) {
|
|
|
1550
1550
|
if (!s.startMoving)
|
|
1551
1551
|
return;
|
|
1552
1552
|
i.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
|
|
1553
|
-
let u = i.isHorizontal() ? m : h,
|
|
1554
|
-
n.oneWayMovement && (u = Math.abs(u) * (l ? 1 : -1),
|
|
1555
|
-
const
|
|
1556
|
-
i.swipeDirection = u > 0 ? "prev" : "next", i.touchesDirection =
|
|
1557
|
-
const p = i.params.loop && !n.cssMode,
|
|
1553
|
+
let u = i.isHorizontal() ? m : h, v = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
|
1554
|
+
n.oneWayMovement && (u = Math.abs(u) * (l ? 1 : -1), v = Math.abs(v) * (l ? 1 : -1)), r.diff = u, u *= n.touchRatio, l && (u = -u, v = -v);
|
|
1555
|
+
const E = i.touchesDirection;
|
|
1556
|
+
i.swipeDirection = u > 0 ? "prev" : "next", i.touchesDirection = v > 0 ? "prev" : "next";
|
|
1557
|
+
const p = i.params.loop && !n.cssMode, w = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
|
|
1558
1558
|
if (!s.isMoved) {
|
|
1559
|
-
if (p &&
|
|
1559
|
+
if (p && w && i.loopFix({
|
|
1560
1560
|
direction: i.swipeDirection
|
|
1561
1561
|
}), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
|
|
1562
|
-
const
|
|
1562
|
+
const M = new window.CustomEvent("transitionend", {
|
|
1563
1563
|
bubbles: !0,
|
|
1564
1564
|
cancelable: !0,
|
|
1565
1565
|
detail: {
|
|
1566
1566
|
bySwiperTouchMove: !0
|
|
1567
1567
|
}
|
|
1568
1568
|
});
|
|
1569
|
-
i.wrapperEl.dispatchEvent(
|
|
1569
|
+
i.wrapperEl.dispatchEvent(M);
|
|
1570
1570
|
}
|
|
1571
1571
|
s.allowMomentumBounce = !1, n.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", o);
|
|
1572
1572
|
}
|
|
1573
|
-
let
|
|
1574
|
-
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove &&
|
|
1573
|
+
let g;
|
|
1574
|
+
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && E !== i.touchesDirection && p && w && Math.abs(u) >= 1) {
|
|
1575
1575
|
Object.assign(r, {
|
|
1576
1576
|
startX: c,
|
|
1577
1577
|
startY: f,
|
|
@@ -1582,16 +1582,16 @@ function jt(t) {
|
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
1584
|
i.emit("sliderMove", o), s.isMoved = !0, s.currentTranslate = u + s.startTranslate;
|
|
1585
|
-
let
|
|
1586
|
-
if (n.touchReleaseOnEdges && (
|
|
1585
|
+
let T = !0, x = n.resistanceRatio;
|
|
1586
|
+
if (n.touchReleaseOnEdges && (x = 0), u > 0 ? (p && w && !g && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
|
|
1587
1587
|
direction: "prev",
|
|
1588
1588
|
setTranslate: !0,
|
|
1589
1589
|
activeSlideIndex: 0
|
|
1590
|
-
}), s.currentTranslate > i.minTranslate() && (
|
|
1590
|
+
}), s.currentTranslate > i.minTranslate() && (T = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + u) ** x))) : u < 0 && (p && w && !g && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
|
|
1591
1591
|
direction: "next",
|
|
1592
1592
|
setTranslate: !0,
|
|
1593
1593
|
activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
|
1594
|
-
}), s.currentTranslate < i.maxTranslate() && (
|
|
1594
|
+
}), s.currentTranslate < i.maxTranslate() && (T = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - u) ** x))), T && (o.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
|
|
1595
1595
|
if (Math.abs(u) > n.threshold || s.allowThresholdMove) {
|
|
1596
1596
|
if (!s.allowThresholdMove) {
|
|
1597
1597
|
s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
|
|
@@ -1603,13 +1603,13 @@ function jt(t) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
!n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && i.freeMode || n.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function Xt(t) {
|
|
1607
1607
|
const e = this, i = e.touchEventsData;
|
|
1608
1608
|
let s = t;
|
|
1609
1609
|
s.originalEvent && (s = s.originalEvent);
|
|
1610
1610
|
let n;
|
|
1611
1611
|
if (s.type === "touchend" || s.type === "touchcancel") {
|
|
1612
|
-
if (n = [...s.changedTouches].find((
|
|
1612
|
+
if (n = [...s.changedTouches].find((x) => x.identifier === i.touchId), !n || n.identifier !== i.touchId)
|
|
1613
1613
|
return;
|
|
1614
1614
|
} else {
|
|
1615
1615
|
if (i.touchId !== null || s.pointerId !== i.pointerId)
|
|
@@ -1633,12 +1633,12 @@ function qt(t) {
|
|
|
1633
1633
|
return;
|
|
1634
1634
|
}
|
|
1635
1635
|
l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
1636
|
-
const f =
|
|
1636
|
+
const f = W(), m = f - i.touchStartTime;
|
|
1637
1637
|
if (e.allowClick) {
|
|
1638
|
-
const
|
|
1639
|
-
e.updateClickedSlide(
|
|
1638
|
+
const x = s.path || s.composedPath && s.composedPath();
|
|
1639
|
+
e.updateClickedSlide(x && x[0] || s.target, x), e.emit("tap click", s), m < 300 && f - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
|
|
1640
1640
|
}
|
|
1641
|
-
if (i.lastClickTime =
|
|
1641
|
+
if (i.lastClickTime = W(), ee(() => {
|
|
1642
1642
|
e.destroyed || (e.allowClick = !0);
|
|
1643
1643
|
}), !i.isTouched || !i.isMoved || !e.swipeDirection || a.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
|
|
1644
1644
|
i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
|
|
@@ -1655,29 +1655,29 @@ function qt(t) {
|
|
|
1655
1655
|
return;
|
|
1656
1656
|
}
|
|
1657
1657
|
const u = h >= -e.maxTranslate() && !e.params.loop;
|
|
1658
|
-
let
|
|
1659
|
-
for (let
|
|
1660
|
-
const
|
|
1661
|
-
typeof d[
|
|
1662
|
-
}
|
|
1663
|
-
let p = null,
|
|
1664
|
-
l.rewind && (e.isBeginning ?
|
|
1665
|
-
const
|
|
1658
|
+
let v = 0, E = e.slidesSizesGrid[0];
|
|
1659
|
+
for (let x = 0; x < d.length; x += x < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
|
|
1660
|
+
const M = x < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1661
|
+
typeof d[x + M] < "u" ? (u || h >= d[x] && h < d[x + M]) && (v = x, E = d[x + M] - d[x]) : (u || h >= d[x]) && (v = x, E = d[d.length - 1] - d[d.length - 2]);
|
|
1662
|
+
}
|
|
1663
|
+
let p = null, w = null;
|
|
1664
|
+
l.rewind && (e.isBeginning ? w = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (p = 0));
|
|
1665
|
+
const g = (h - d[v]) / E, T = v < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1666
1666
|
if (m > l.longSwipesMs) {
|
|
1667
1667
|
if (!l.longSwipes) {
|
|
1668
1668
|
e.slideTo(e.activeIndex);
|
|
1669
1669
|
return;
|
|
1670
1670
|
}
|
|
1671
|
-
e.swipeDirection === "next" && (
|
|
1671
|
+
e.swipeDirection === "next" && (g >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? p : v + T) : e.slideTo(v)), e.swipeDirection === "prev" && (g > 1 - l.longSwipesRatio ? e.slideTo(v + T) : w !== null && g < 0 && Math.abs(g) > l.longSwipesRatio ? e.slideTo(w) : e.slideTo(v));
|
|
1672
1672
|
} else {
|
|
1673
1673
|
if (!l.shortSwipes) {
|
|
1674
1674
|
e.slideTo(e.activeIndex);
|
|
1675
1675
|
return;
|
|
1676
1676
|
}
|
|
1677
|
-
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(
|
|
1677
|
+
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(v + T) : e.slideTo(v) : (e.swipeDirection === "next" && e.slideTo(p !== null ? p : v + T), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : v));
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function Ee() {
|
|
1681
1681
|
const t = this, {
|
|
1682
1682
|
params: e,
|
|
1683
1683
|
el: i
|
|
@@ -1700,7 +1700,7 @@ function Yt(t) {
|
|
|
1700
1700
|
const e = this;
|
|
1701
1701
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function qt() {
|
|
1704
1704
|
const t = this, {
|
|
1705
1705
|
wrapperEl: e,
|
|
1706
1706
|
rtlTranslate: i,
|
|
@@ -1715,14 +1715,14 @@ function Xt() {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
function Ut(t) {
|
|
1717
1717
|
const e = this;
|
|
1718
|
-
|
|
1718
|
+
J(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
1719
1719
|
}
|
|
1720
1720
|
function Kt() {
|
|
1721
1721
|
const t = this;
|
|
1722
1722
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1723
1723
|
}
|
|
1724
1724
|
const _e = (t, e) => {
|
|
1725
|
-
const i =
|
|
1725
|
+
const i = Y(), {
|
|
1726
1726
|
params: s,
|
|
1727
1727
|
el: n,
|
|
1728
1728
|
wrapperEl: r,
|
|
@@ -1755,22 +1755,22 @@ const _e = (t, e) => {
|
|
|
1755
1755
|
passive: !0
|
|
1756
1756
|
}), i[o]("contextmenu", t.onTouchEnd, {
|
|
1757
1757
|
passive: !0
|
|
1758
|
-
}), (s.preventClicks || s.preventClicksPropagation) && n[o]("click", t.onClick, !0), s.cssMode && r[o]("scroll", t.onScroll), s.updateOnWindowResize ? t[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate",
|
|
1758
|
+
}), (s.preventClicks || s.preventClicksPropagation) && n[o]("click", t.onClick, !0), s.cssMode && r[o]("scroll", t.onScroll), s.updateOnWindowResize ? t[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Ee, !0) : t[d]("observerUpdate", Ee, !0), n[o]("load", t.onLoad, {
|
|
1759
1759
|
capture: !0
|
|
1760
1760
|
}));
|
|
1761
1761
|
};
|
|
1762
|
-
function
|
|
1762
|
+
function Zt() {
|
|
1763
1763
|
const t = this, {
|
|
1764
1764
|
params: e
|
|
1765
1765
|
} = t;
|
|
1766
|
-
t.onTouchStart = Wt.bind(t), t.onTouchMove = jt.bind(t), t.onTouchEnd =
|
|
1766
|
+
t.onTouchStart = Wt.bind(t), t.onTouchMove = jt.bind(t), t.onTouchEnd = Xt.bind(t), t.onDocumentTouchStart = Kt.bind(t), e.cssMode && (t.onScroll = qt.bind(t)), t.onClick = Yt.bind(t), t.onLoad = Ut.bind(t), _e(t, "on");
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function Qt() {
|
|
1769
1769
|
_e(this, "off");
|
|
1770
1770
|
}
|
|
1771
1771
|
var Jt = {
|
|
1772
|
-
attachEvents:
|
|
1773
|
-
detachEvents:
|
|
1772
|
+
attachEvents: Zt,
|
|
1773
|
+
detachEvents: Qt
|
|
1774
1774
|
};
|
|
1775
1775
|
const xe = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1776
1776
|
function ei() {
|
|
@@ -1782,30 +1782,30 @@ function ei() {
|
|
|
1782
1782
|
} = t, r = s.breakpoints;
|
|
1783
1783
|
if (!r || r && Object.keys(r).length === 0)
|
|
1784
1784
|
return;
|
|
1785
|
-
const l =
|
|
1785
|
+
const l = Y(), a = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", o = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : l.querySelector(s.breakpointsBase), d = t.getBreakpoint(r, a, o);
|
|
1786
1786
|
if (!d || t.currentBreakpoint === d)
|
|
1787
1787
|
return;
|
|
1788
|
-
const f = (d in r ? r[d] : void 0) || t.originalParams, m = xe(t, s), h = xe(t, f), u = t.params.grabCursor,
|
|
1789
|
-
m && !h ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !m && h && (n.classList.add(`${s.containerModifierClass}grid`), (f.grid.fill && f.grid.fill === "column" || !f.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), u && !
|
|
1790
|
-
if (typeof f[
|
|
1788
|
+
const f = (d in r ? r[d] : void 0) || t.originalParams, m = xe(t, s), h = xe(t, f), u = t.params.grabCursor, v = f.grabCursor, E = s.enabled;
|
|
1789
|
+
m && !h ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !m && h && (n.classList.add(`${s.containerModifierClass}grid`), (f.grid.fill && f.grid.fill === "column" || !f.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), u && !v ? t.unsetGrabCursor() : !u && v && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((M) => {
|
|
1790
|
+
if (typeof f[M] > "u")
|
|
1791
1791
|
return;
|
|
1792
|
-
const
|
|
1793
|
-
|
|
1792
|
+
const C = s[M] && s[M].enabled, P = f[M] && f[M].enabled;
|
|
1793
|
+
C && !P && t[M].disable(), !C && P && t[M].enable();
|
|
1794
1794
|
});
|
|
1795
|
-
const p = f.direction && f.direction !== s.direction,
|
|
1796
|
-
p && i && t.changeDirection(),
|
|
1797
|
-
const
|
|
1795
|
+
const p = f.direction && f.direction !== s.direction, w = s.loop && (f.slidesPerView !== s.slidesPerView || p), g = s.loop;
|
|
1796
|
+
p && i && t.changeDirection(), H(t.params, f);
|
|
1797
|
+
const T = t.params.enabled, x = t.params.loop;
|
|
1798
1798
|
Object.assign(t, {
|
|
1799
1799
|
allowTouchMove: t.params.allowTouchMove,
|
|
1800
1800
|
allowSlideNext: t.params.allowSlideNext,
|
|
1801
1801
|
allowSlidePrev: t.params.allowSlidePrev
|
|
1802
|
-
}),
|
|
1802
|
+
}), E && !T ? t.disable() : !E && T && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", f), i && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !g && x ? (t.loopCreate(e), t.updateSlides()) : g && !x && t.loopDestroy()), t.emit("breakpoint", f);
|
|
1803
1803
|
}
|
|
1804
1804
|
function ti(t, e, i) {
|
|
1805
1805
|
if (e === void 0 && (e = "window"), !t || e === "container" && !i)
|
|
1806
1806
|
return;
|
|
1807
1807
|
let s = !1;
|
|
1808
|
-
const n =
|
|
1808
|
+
const n = V(), r = e === "window" ? n.innerHeight : i.clientHeight, l = Object.keys(t).map((a) => {
|
|
1809
1809
|
if (typeof a == "string" && a.indexOf("@") === 0) {
|
|
1810
1810
|
const o = parseFloat(a.substr(1));
|
|
1811
1811
|
return {
|
|
@@ -1897,7 +1897,7 @@ function li() {
|
|
|
1897
1897
|
}
|
|
1898
1898
|
var oi = {
|
|
1899
1899
|
checkOverflow: li
|
|
1900
|
-
},
|
|
1900
|
+
}, pe = {
|
|
1901
1901
|
init: !0,
|
|
1902
1902
|
direction: "horizontal",
|
|
1903
1903
|
oneWayMovement: !1,
|
|
@@ -2023,47 +2023,47 @@ function di(t, e) {
|
|
|
2023
2023
|
s === void 0 && (s = {});
|
|
2024
2024
|
const n = Object.keys(s)[0], r = s[n];
|
|
2025
2025
|
if (typeof r != "object" || r === null) {
|
|
2026
|
-
|
|
2026
|
+
H(e, s);
|
|
2027
2027
|
return;
|
|
2028
2028
|
}
|
|
2029
2029
|
if (t[n] === !0 && (t[n] = {
|
|
2030
2030
|
enabled: !0
|
|
2031
2031
|
}), n === "navigation" && t[n] && t[n].enabled && !t[n].prevEl && !t[n].nextEl && (t[n].auto = !0), ["pagination", "scrollbar"].indexOf(n) >= 0 && t[n] && t[n].enabled && !t[n].el && (t[n].auto = !0), !(n in t && "enabled" in r)) {
|
|
2032
|
-
|
|
2032
|
+
H(e, s);
|
|
2033
2033
|
return;
|
|
2034
2034
|
}
|
|
2035
2035
|
typeof t[n] == "object" && !("enabled" in t[n]) && (t[n].enabled = !0), t[n] || (t[n] = {
|
|
2036
2036
|
enabled: !1
|
|
2037
|
-
}),
|
|
2037
|
+
}), H(e, s);
|
|
2038
2038
|
};
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const de = {
|
|
2041
2041
|
eventsEmitter: at,
|
|
2042
2042
|
update: vt,
|
|
2043
|
-
translate:
|
|
2044
|
-
transition:
|
|
2043
|
+
translate: xt,
|
|
2044
|
+
transition: Ct,
|
|
2045
2045
|
slide: Dt,
|
|
2046
|
-
loop:
|
|
2047
|
-
grabCursor:
|
|
2046
|
+
loop: Ht,
|
|
2047
|
+
grabCursor: Rt,
|
|
2048
2048
|
events: Jt,
|
|
2049
2049
|
breakpoints: ii,
|
|
2050
2050
|
checkOverflow: oi,
|
|
2051
2051
|
classes: ai
|
|
2052
|
-
},
|
|
2053
|
-
let
|
|
2052
|
+
}, ce = {};
|
|
2053
|
+
let he = class $ {
|
|
2054
2054
|
constructor() {
|
|
2055
2055
|
let e, i;
|
|
2056
2056
|
for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
|
|
2057
2057
|
n[r] = arguments[r];
|
|
2058
|
-
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i =
|
|
2059
|
-
const l =
|
|
2058
|
+
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i = H({}, i), e && !i.el && (i.el = e);
|
|
2059
|
+
const l = Y();
|
|
2060
2060
|
if (i.el && typeof i.el == "string" && l.querySelectorAll(i.el).length > 1) {
|
|
2061
2061
|
const c = [];
|
|
2062
2062
|
return l.querySelectorAll(i.el).forEach((f) => {
|
|
2063
|
-
const m =
|
|
2063
|
+
const m = H({}, i, {
|
|
2064
2064
|
el: f
|
|
2065
2065
|
});
|
|
2066
|
-
c.push(new
|
|
2066
|
+
c.push(new $(m));
|
|
2067
2067
|
}), c;
|
|
2068
2068
|
}
|
|
2069
2069
|
const a = this;
|
|
@@ -2082,8 +2082,8 @@ let me = class H {
|
|
|
2082
2082
|
emit: a.emit.bind(a)
|
|
2083
2083
|
});
|
|
2084
2084
|
});
|
|
2085
|
-
const d =
|
|
2086
|
-
return a.params =
|
|
2085
|
+
const d = H({}, pe, o);
|
|
2086
|
+
return a.params = H({}, d, ce, i), a.originalParams = H({}, a.params), a.passedParams = H({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((c) => {
|
|
2087
2087
|
a.on(c, a.params.on[c]);
|
|
2088
2088
|
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
2089
2089
|
enabled: a.params.enabled,
|
|
@@ -2174,8 +2174,8 @@ let me = class H {
|
|
|
2174
2174
|
const {
|
|
2175
2175
|
slidesEl: i,
|
|
2176
2176
|
params: s
|
|
2177
|
-
} = this, n =
|
|
2178
|
-
return
|
|
2177
|
+
} = this, n = k(i, `.${s.slideClass}, swiper-slide`), r = ve(n[0]);
|
|
2178
|
+
return ve(e) - r;
|
|
2179
2179
|
}
|
|
2180
2180
|
getSlideIndexByData(e) {
|
|
2181
2181
|
return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
|
|
@@ -2188,7 +2188,7 @@ let me = class H {
|
|
|
2188
2188
|
slidesEl: i,
|
|
2189
2189
|
params: s
|
|
2190
2190
|
} = e;
|
|
2191
|
-
e.slides =
|
|
2191
|
+
e.slides = k(i, `.${s.slideClass}, swiper-slide`);
|
|
2192
2192
|
}
|
|
2193
2193
|
enable() {
|
|
2194
2194
|
const e = this;
|
|
@@ -2264,7 +2264,7 @@ let me = class H {
|
|
|
2264
2264
|
params: s
|
|
2265
2265
|
} = e;
|
|
2266
2266
|
s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
|
|
2267
|
-
l.complete &&
|
|
2267
|
+
l.complete && J(e, l);
|
|
2268
2268
|
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
2269
2269
|
function n() {
|
|
2270
2270
|
const l = e.rtlTranslate ? e.translate * -1 : e.translate, a = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
|
|
@@ -2303,8 +2303,8 @@ let me = class H {
|
|
|
2303
2303
|
return !1;
|
|
2304
2304
|
s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = !0);
|
|
2305
2305
|
const n = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
|
|
2306
|
-
let l = (() => s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) :
|
|
2307
|
-
return !l && i.params.createElements && (l =
|
|
2306
|
+
let l = (() => s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : k(s, n())[0])();
|
|
2307
|
+
return !l && i.params.createElements && (l = ie("div", i.params.wrapperClass), s.append(l), k(s, `.${i.params.slideClass}`).forEach((a) => {
|
|
2308
2308
|
l.append(a);
|
|
2309
2309
|
})), Object.assign(i, {
|
|
2310
2310
|
el: s,
|
|
@@ -2313,9 +2313,9 @@ let me = class H {
|
|
|
2313
2313
|
hostEl: i.isElement ? s.parentNode.host : s,
|
|
2314
2314
|
mounted: !0,
|
|
2315
2315
|
// RTL
|
|
2316
|
-
rtl: s.dir.toLowerCase() === "rtl" ||
|
|
2317
|
-
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" ||
|
|
2318
|
-
wrongRTL:
|
|
2316
|
+
rtl: s.dir.toLowerCase() === "rtl" || j(s, "direction") === "rtl",
|
|
2317
|
+
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || j(s, "direction") === "rtl"),
|
|
2318
|
+
wrongRTL: j(l, "display") === "-webkit-box"
|
|
2319
2319
|
}), !0;
|
|
2320
2320
|
}
|
|
2321
2321
|
init(e) {
|
|
@@ -2325,10 +2325,10 @@ let me = class H {
|
|
|
2325
2325
|
i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit, !1, !0) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, !1, !0), i.params.loop && i.loopCreate(void 0, !0), i.attachEvents();
|
|
2326
2326
|
const n = [...i.el.querySelectorAll('[loading="lazy"]')];
|
|
2327
2327
|
return i.isElement && n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
|
|
2328
|
-
r.complete ?
|
|
2329
|
-
|
|
2328
|
+
r.complete ? J(i, r) : r.addEventListener("load", (l) => {
|
|
2329
|
+
J(i, l.target);
|
|
2330
2330
|
});
|
|
2331
|
-
}),
|
|
2331
|
+
}), ue(i), i.initialized = !0, ue(i), i.emit("init"), i.emit("afterInit"), i;
|
|
2332
2332
|
}
|
|
2333
2333
|
destroy(e, i) {
|
|
2334
2334
|
e === void 0 && (e = !0), i === void 0 && (i = !0);
|
|
@@ -2342,41 +2342,190 @@ let me = class H {
|
|
|
2342
2342
|
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2343
2343
|
})), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((o) => {
|
|
2344
2344
|
s.off(o);
|
|
2345
|
-
}), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null),
|
|
2345
|
+
}), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), Xe(s)), s.destroyed = !0), null;
|
|
2346
2346
|
}
|
|
2347
2347
|
static extendDefaults(e) {
|
|
2348
|
-
|
|
2348
|
+
H(ce, e);
|
|
2349
2349
|
}
|
|
2350
2350
|
static get extendedDefaults() {
|
|
2351
|
-
return
|
|
2351
|
+
return ce;
|
|
2352
2352
|
}
|
|
2353
2353
|
static get defaults() {
|
|
2354
|
-
return
|
|
2354
|
+
return pe;
|
|
2355
2355
|
}
|
|
2356
2356
|
static installModule(e) {
|
|
2357
|
-
|
|
2358
|
-
const i =
|
|
2357
|
+
$.prototype.__modules__ || ($.prototype.__modules__ = []);
|
|
2358
|
+
const i = $.prototype.__modules__;
|
|
2359
2359
|
typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
|
|
2360
2360
|
}
|
|
2361
2361
|
static use(e) {
|
|
2362
|
-
return Array.isArray(e) ? (e.forEach((i) =>
|
|
2362
|
+
return Array.isArray(e) ? (e.forEach((i) => $.installModule(i)), $) : ($.installModule(e), $);
|
|
2363
2363
|
}
|
|
2364
2364
|
};
|
|
2365
|
-
Object.keys(
|
|
2366
|
-
Object.keys(
|
|
2367
|
-
|
|
2365
|
+
Object.keys(de).forEach((t) => {
|
|
2366
|
+
Object.keys(de[t]).forEach((e) => {
|
|
2367
|
+
he.prototype[e] = de[t][e];
|
|
2368
2368
|
});
|
|
2369
2369
|
});
|
|
2370
|
-
|
|
2370
|
+
he.use([rt, nt]);
|
|
2371
|
+
function xi(t) {
|
|
2372
|
+
let {
|
|
2373
|
+
swiper: e,
|
|
2374
|
+
extendParams: i,
|
|
2375
|
+
on: s,
|
|
2376
|
+
emit: n
|
|
2377
|
+
} = t;
|
|
2378
|
+
const r = V();
|
|
2379
|
+
i({
|
|
2380
|
+
mousewheel: {
|
|
2381
|
+
enabled: !1,
|
|
2382
|
+
releaseOnEdges: !1,
|
|
2383
|
+
invert: !1,
|
|
2384
|
+
forceToAxis: !1,
|
|
2385
|
+
sensitivity: 1,
|
|
2386
|
+
eventsTarget: "container",
|
|
2387
|
+
thresholdDelta: null,
|
|
2388
|
+
thresholdTime: null,
|
|
2389
|
+
noMousewheelClass: "swiper-no-mousewheel"
|
|
2390
|
+
}
|
|
2391
|
+
}), e.mousewheel = {
|
|
2392
|
+
enabled: !1
|
|
2393
|
+
};
|
|
2394
|
+
let l, a = W(), o;
|
|
2395
|
+
const d = [];
|
|
2396
|
+
function c(g) {
|
|
2397
|
+
let C = 0, P = 0, S = 0, b = 0;
|
|
2398
|
+
return "detail" in g && (P = g.detail), "wheelDelta" in g && (P = -g.wheelDelta / 120), "wheelDeltaY" in g && (P = -g.wheelDeltaY / 120), "wheelDeltaX" in g && (C = -g.wheelDeltaX / 120), "axis" in g && g.axis === g.HORIZONTAL_AXIS && (C = P, P = 0), S = C * 10, b = P * 10, "deltaY" in g && (b = g.deltaY), "deltaX" in g && (S = g.deltaX), g.shiftKey && !S && (S = b, b = 0), (S || b) && g.deltaMode && (g.deltaMode === 1 ? (S *= 40, b *= 40) : (S *= 800, b *= 800)), S && !C && (C = S < 1 ? -1 : 1), b && !P && (P = b < 1 ? -1 : 1), {
|
|
2399
|
+
spinX: C,
|
|
2400
|
+
spinY: P,
|
|
2401
|
+
pixelX: S,
|
|
2402
|
+
pixelY: b
|
|
2403
|
+
};
|
|
2404
|
+
}
|
|
2405
|
+
function f() {
|
|
2406
|
+
e.enabled && (e.mouseEntered = !0);
|
|
2407
|
+
}
|
|
2408
|
+
function m() {
|
|
2409
|
+
e.enabled && (e.mouseEntered = !1);
|
|
2410
|
+
}
|
|
2411
|
+
function h(g) {
|
|
2412
|
+
return e.params.mousewheel.thresholdDelta && g.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && W() - a < e.params.mousewheel.thresholdTime ? !1 : g.delta >= 6 && W() - a < 60 ? !0 : (g.direction < 0 ? (!e.isEnd || e.params.loop) && !e.animating && (e.slideNext(), n("scroll", g.raw)) : (!e.isBeginning || e.params.loop) && !e.animating && (e.slidePrev(), n("scroll", g.raw)), a = new r.Date().getTime(), !1);
|
|
2413
|
+
}
|
|
2414
|
+
function u(g) {
|
|
2415
|
+
const T = e.params.mousewheel;
|
|
2416
|
+
if (g.direction < 0) {
|
|
2417
|
+
if (e.isEnd && !e.params.loop && T.releaseOnEdges)
|
|
2418
|
+
return !0;
|
|
2419
|
+
} else if (e.isBeginning && !e.params.loop && T.releaseOnEdges)
|
|
2420
|
+
return !0;
|
|
2421
|
+
return !1;
|
|
2422
|
+
}
|
|
2423
|
+
function v(g) {
|
|
2424
|
+
let T = g, x = !0;
|
|
2425
|
+
if (!e.enabled || g.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))
|
|
2426
|
+
return;
|
|
2427
|
+
const M = e.params.mousewheel;
|
|
2428
|
+
e.params.cssMode && T.preventDefault();
|
|
2429
|
+
let C = e.el;
|
|
2430
|
+
e.params.mousewheel.eventsTarget !== "container" && (C = document.querySelector(e.params.mousewheel.eventsTarget));
|
|
2431
|
+
const P = C && C.contains(T.target);
|
|
2432
|
+
if (!e.mouseEntered && !P && !M.releaseOnEdges)
|
|
2433
|
+
return !0;
|
|
2434
|
+
T.originalEvent && (T = T.originalEvent);
|
|
2435
|
+
let S = 0;
|
|
2436
|
+
const b = e.rtlTranslate ? -1 : 1, y = c(T);
|
|
2437
|
+
if (M.forceToAxis)
|
|
2438
|
+
if (e.isHorizontal())
|
|
2439
|
+
if (Math.abs(y.pixelX) > Math.abs(y.pixelY))
|
|
2440
|
+
S = -y.pixelX * b;
|
|
2441
|
+
else
|
|
2442
|
+
return !0;
|
|
2443
|
+
else if (Math.abs(y.pixelY) > Math.abs(y.pixelX))
|
|
2444
|
+
S = -y.pixelY;
|
|
2445
|
+
else
|
|
2446
|
+
return !0;
|
|
2447
|
+
else
|
|
2448
|
+
S = Math.abs(y.pixelX) > Math.abs(y.pixelY) ? -y.pixelX * b : -y.pixelY;
|
|
2449
|
+
if (S === 0)
|
|
2450
|
+
return !0;
|
|
2451
|
+
M.invert && (S = -S);
|
|
2452
|
+
let I = e.getTranslate() + S * M.sensitivity;
|
|
2453
|
+
if (I >= e.minTranslate() && (I = e.minTranslate()), I <= e.maxTranslate() && (I = e.maxTranslate()), x = e.params.loop ? !0 : !(I === e.minTranslate() || I === e.maxTranslate()), x && e.params.nested && T.stopPropagation(), !e.params.freeMode || !e.params.freeMode.enabled) {
|
|
2454
|
+
const L = {
|
|
2455
|
+
time: W(),
|
|
2456
|
+
delta: Math.abs(S),
|
|
2457
|
+
direction: Math.sign(S),
|
|
2458
|
+
raw: g
|
|
2459
|
+
};
|
|
2460
|
+
d.length >= 2 && d.shift();
|
|
2461
|
+
const G = d.length ? d[d.length - 1] : void 0;
|
|
2462
|
+
if (d.push(L), G ? (L.direction !== G.direction || L.delta > G.delta || L.time > G.time + 150) && h(L) : h(L), u(L))
|
|
2463
|
+
return !0;
|
|
2464
|
+
} else {
|
|
2465
|
+
const L = {
|
|
2466
|
+
time: W(),
|
|
2467
|
+
delta: Math.abs(S),
|
|
2468
|
+
direction: Math.sign(S)
|
|
2469
|
+
}, G = o && L.time < o.time + 500 && L.delta <= o.delta && L.direction === o.direction;
|
|
2470
|
+
if (!G) {
|
|
2471
|
+
o = void 0;
|
|
2472
|
+
let D = e.getTranslate() + S * M.sensitivity;
|
|
2473
|
+
const O = e.isBeginning, A = e.isEnd;
|
|
2474
|
+
if (D >= e.minTranslate() && (D = e.minTranslate()), D <= e.maxTranslate() && (D = e.maxTranslate()), e.setTransition(0), e.setTranslate(D), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!O && e.isBeginning || !A && e.isEnd) && e.updateSlidesClasses(), e.params.loop && e.loopFix({
|
|
2475
|
+
direction: L.direction < 0 ? "next" : "prev",
|
|
2476
|
+
byMousewheel: !0
|
|
2477
|
+
}), e.params.freeMode.sticky) {
|
|
2478
|
+
clearTimeout(l), l = void 0, d.length >= 15 && d.shift();
|
|
2479
|
+
const _ = d.length ? d[d.length - 1] : void 0, z = d[0];
|
|
2480
|
+
if (d.push(L), _ && (L.delta > _.delta || L.direction !== _.direction))
|
|
2481
|
+
d.splice(0);
|
|
2482
|
+
else if (d.length >= 15 && L.time - z.time < 500 && z.delta - L.delta >= 1 && L.delta <= 6) {
|
|
2483
|
+
const N = S > 0 ? 0.8 : 0.2;
|
|
2484
|
+
o = L, d.splice(0), l = ee(() => {
|
|
2485
|
+
e.destroyed || !e.params || e.slideToClosest(e.params.speed, !0, void 0, N);
|
|
2486
|
+
}, 0);
|
|
2487
|
+
}
|
|
2488
|
+
l || (l = ee(() => {
|
|
2489
|
+
if (e.destroyed || !e.params)
|
|
2490
|
+
return;
|
|
2491
|
+
const N = 0.5;
|
|
2492
|
+
o = L, d.splice(0), e.slideToClosest(e.params.speed, !0, void 0, N);
|
|
2493
|
+
}, 500));
|
|
2494
|
+
}
|
|
2495
|
+
if (G || n("scroll", T), e.params.autoplay && e.params.autoplay.disableOnInteraction && e.autoplay.stop(), M.releaseOnEdges && (D === e.minTranslate() || D === e.maxTranslate()))
|
|
2496
|
+
return !0;
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
return T.preventDefault ? T.preventDefault() : T.returnValue = !1, !1;
|
|
2500
|
+
}
|
|
2501
|
+
function E(g) {
|
|
2502
|
+
let T = e.el;
|
|
2503
|
+
e.params.mousewheel.eventsTarget !== "container" && (T = document.querySelector(e.params.mousewheel.eventsTarget)), T[g]("mouseenter", f), T[g]("mouseleave", m), T[g]("wheel", v);
|
|
2504
|
+
}
|
|
2505
|
+
function p() {
|
|
2506
|
+
return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel", v), !0) : e.mousewheel.enabled ? !1 : (E("addEventListener"), e.mousewheel.enabled = !0, !0);
|
|
2507
|
+
}
|
|
2508
|
+
function w() {
|
|
2509
|
+
return e.params.cssMode ? (e.wrapperEl.addEventListener(event, v), !0) : e.mousewheel.enabled ? (E("removeEventListener"), e.mousewheel.enabled = !1, !0) : !1;
|
|
2510
|
+
}
|
|
2511
|
+
s("init", () => {
|
|
2512
|
+
!e.params.mousewheel.enabled && e.params.cssMode && w(), e.params.mousewheel.enabled && p();
|
|
2513
|
+
}), s("destroy", () => {
|
|
2514
|
+
e.params.cssMode && p(), e.mousewheel.enabled && w();
|
|
2515
|
+
}), Object.assign(e.mousewheel, {
|
|
2516
|
+
enable: p,
|
|
2517
|
+
disable: w
|
|
2518
|
+
});
|
|
2519
|
+
}
|
|
2371
2520
|
function ci(t, e, i, s) {
|
|
2372
2521
|
return t.params.createElements && Object.keys(s).forEach((n) => {
|
|
2373
2522
|
if (!i[n] && i.auto === !0) {
|
|
2374
|
-
let r =
|
|
2375
|
-
r || (r =
|
|
2523
|
+
let r = k(t.el, `.${s[n]}`)[0];
|
|
2524
|
+
r || (r = ie("div", s[n]), r.className = s[n], t.el.append(r)), i[n] = r, e[n] = r;
|
|
2376
2525
|
}
|
|
2377
2526
|
}), i;
|
|
2378
2527
|
}
|
|
2379
|
-
function
|
|
2528
|
+
function yi(t) {
|
|
2380
2529
|
let {
|
|
2381
2530
|
swiper: e,
|
|
2382
2531
|
extendParams: i,
|
|
@@ -2398,25 +2547,25 @@ function Ei(t) {
|
|
|
2398
2547
|
prevEl: null
|
|
2399
2548
|
};
|
|
2400
2549
|
function r(u) {
|
|
2401
|
-
let
|
|
2402
|
-
return u && typeof u == "string" && e.isElement && (
|
|
2550
|
+
let v;
|
|
2551
|
+
return u && typeof u == "string" && e.isElement && (v = e.el.querySelector(u) || e.hostEl.querySelector(u), v) ? v : (u && (typeof u == "string" && (v = [...document.querySelectorAll(u)]), e.params.uniqueNavElements && typeof u == "string" && v && v.length > 1 && e.el.querySelectorAll(u).length === 1 ? v = e.el.querySelector(u) : v && v.length === 1 && (v = v[0])), u && !v ? u : v);
|
|
2403
2552
|
}
|
|
2404
|
-
function l(u,
|
|
2405
|
-
const
|
|
2406
|
-
u =
|
|
2407
|
-
p && (p.classList[
|
|
2553
|
+
function l(u, v) {
|
|
2554
|
+
const E = e.params.navigation;
|
|
2555
|
+
u = R(u), u.forEach((p) => {
|
|
2556
|
+
p && (p.classList[v ? "add" : "remove"](...E.disabledClass.split(" ")), p.tagName === "BUTTON" && (p.disabled = v), e.params.watchOverflow && e.enabled && p.classList[e.isLocked ? "add" : "remove"](E.lockClass));
|
|
2408
2557
|
});
|
|
2409
2558
|
}
|
|
2410
2559
|
function a() {
|
|
2411
2560
|
const {
|
|
2412
2561
|
nextEl: u,
|
|
2413
|
-
prevEl:
|
|
2562
|
+
prevEl: v
|
|
2414
2563
|
} = e.navigation;
|
|
2415
2564
|
if (e.params.loop) {
|
|
2416
|
-
l(
|
|
2565
|
+
l(v, !1), l(u, !1);
|
|
2417
2566
|
return;
|
|
2418
2567
|
}
|
|
2419
|
-
l(
|
|
2568
|
+
l(v, e.isBeginning && !e.params.rewind), l(u, e.isEnd && !e.params.rewind);
|
|
2420
2569
|
}
|
|
2421
2570
|
function o(u) {
|
|
2422
2571
|
u.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), n("navigationPrev"));
|
|
@@ -2431,26 +2580,26 @@ function Ei(t) {
|
|
|
2431
2580
|
prevEl: "swiper-button-prev"
|
|
2432
2581
|
}), !(u.nextEl || u.prevEl))
|
|
2433
2582
|
return;
|
|
2434
|
-
let
|
|
2583
|
+
let v = r(u.nextEl), E = r(u.prevEl);
|
|
2435
2584
|
Object.assign(e.navigation, {
|
|
2436
|
-
nextEl:
|
|
2437
|
-
prevEl:
|
|
2438
|
-
}),
|
|
2439
|
-
const p = (
|
|
2440
|
-
|
|
2585
|
+
nextEl: v,
|
|
2586
|
+
prevEl: E
|
|
2587
|
+
}), v = R(v), E = R(E);
|
|
2588
|
+
const p = (w, g) => {
|
|
2589
|
+
w && w.addEventListener("click", g === "next" ? d : o), !e.enabled && w && w.classList.add(...u.lockClass.split(" "));
|
|
2441
2590
|
};
|
|
2442
|
-
|
|
2591
|
+
v.forEach((w) => p(w, "next")), E.forEach((w) => p(w, "prev"));
|
|
2443
2592
|
}
|
|
2444
2593
|
function f() {
|
|
2445
2594
|
let {
|
|
2446
2595
|
nextEl: u,
|
|
2447
|
-
prevEl:
|
|
2596
|
+
prevEl: v
|
|
2448
2597
|
} = e.navigation;
|
|
2449
|
-
u =
|
|
2450
|
-
const
|
|
2451
|
-
p.removeEventListener("click",
|
|
2598
|
+
u = R(u), v = R(v);
|
|
2599
|
+
const E = (p, w) => {
|
|
2600
|
+
p.removeEventListener("click", w === "next" ? d : o), p.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
2452
2601
|
};
|
|
2453
|
-
u.forEach((p) =>
|
|
2602
|
+
u.forEach((p) => E(p, "next")), v.forEach((p) => E(p, "prev"));
|
|
2454
2603
|
}
|
|
2455
2604
|
s("init", () => {
|
|
2456
2605
|
e.params.navigation.enabled === !1 ? h() : (c(), a());
|
|
@@ -2461,30 +2610,30 @@ function Ei(t) {
|
|
|
2461
2610
|
}), s("enable disable", () => {
|
|
2462
2611
|
let {
|
|
2463
2612
|
nextEl: u,
|
|
2464
|
-
prevEl:
|
|
2613
|
+
prevEl: v
|
|
2465
2614
|
} = e.navigation;
|
|
2466
|
-
if (u =
|
|
2615
|
+
if (u = R(u), v = R(v), e.enabled) {
|
|
2467
2616
|
a();
|
|
2468
2617
|
return;
|
|
2469
2618
|
}
|
|
2470
|
-
[...u, ...
|
|
2471
|
-
}), s("click", (u,
|
|
2619
|
+
[...u, ...v].filter((E) => !!E).forEach((E) => E.classList.add(e.params.navigation.lockClass));
|
|
2620
|
+
}), s("click", (u, v) => {
|
|
2472
2621
|
let {
|
|
2473
|
-
nextEl:
|
|
2622
|
+
nextEl: E,
|
|
2474
2623
|
prevEl: p
|
|
2475
2624
|
} = e.navigation;
|
|
2476
|
-
|
|
2477
|
-
const
|
|
2478
|
-
let
|
|
2479
|
-
if (e.isElement && !
|
|
2480
|
-
const
|
|
2481
|
-
|
|
2625
|
+
E = R(E), p = R(p);
|
|
2626
|
+
const w = v.target;
|
|
2627
|
+
let g = p.includes(w) || E.includes(w);
|
|
2628
|
+
if (e.isElement && !g) {
|
|
2629
|
+
const T = v.path || v.composedPath && v.composedPath();
|
|
2630
|
+
T && (g = T.find((x) => E.includes(x) || p.includes(x)));
|
|
2482
2631
|
}
|
|
2483
|
-
if (e.params.navigation.hideOnClick && !
|
|
2484
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el ===
|
|
2632
|
+
if (e.params.navigation.hideOnClick && !g) {
|
|
2633
|
+
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === w || e.pagination.el.contains(w)))
|
|
2485
2634
|
return;
|
|
2486
|
-
let
|
|
2487
|
-
|
|
2635
|
+
let T;
|
|
2636
|
+
E.length ? T = E[0].classList.contains(e.params.navigation.hiddenClass) : p.length && (T = p[0].classList.contains(e.params.navigation.hiddenClass)), n(T === !0 ? "navigationShow" : "navigationHide"), [...E, ...p].filter((x) => !!x).forEach((x) => x.classList.toggle(e.params.navigation.hiddenClass));
|
|
2488
2637
|
}
|
|
2489
2638
|
});
|
|
2490
2639
|
const m = () => {
|
|
@@ -2619,22 +2768,22 @@ const Ge = [
|
|
|
2619
2768
|
"zoom",
|
|
2620
2769
|
"control"
|
|
2621
2770
|
];
|
|
2622
|
-
function
|
|
2771
|
+
function X(t) {
|
|
2623
2772
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
|
2624
2773
|
}
|
|
2625
|
-
function
|
|
2774
|
+
function q(t, e) {
|
|
2626
2775
|
const i = ["__proto__", "constructor", "prototype"];
|
|
2627
2776
|
Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
|
|
2628
|
-
typeof t[s] > "u" ? t[s] = e[s] :
|
|
2777
|
+
typeof t[s] > "u" ? t[s] = e[s] : X(e[s]) && X(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : q(t[s], e[s]) : t[s] = e[s];
|
|
2629
2778
|
});
|
|
2630
2779
|
}
|
|
2631
2780
|
function De(t) {
|
|
2632
2781
|
return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
|
|
2633
2782
|
}
|
|
2634
|
-
function
|
|
2783
|
+
function Be(t) {
|
|
2635
2784
|
return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
|
|
2636
2785
|
}
|
|
2637
|
-
function
|
|
2786
|
+
function Ve(t) {
|
|
2638
2787
|
return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
|
|
2639
2788
|
}
|
|
2640
2789
|
function Ne(t) {
|
|
@@ -2658,37 +2807,37 @@ function ui(t) {
|
|
|
2658
2807
|
scrollbarEl: a,
|
|
2659
2808
|
paginationEl: o
|
|
2660
2809
|
} = t;
|
|
2661
|
-
const d = n.filter((
|
|
2810
|
+
const d = n.filter((S) => S !== "children" && S !== "direction" && S !== "wrapperClass"), {
|
|
2662
2811
|
params: c,
|
|
2663
2812
|
pagination: f,
|
|
2664
2813
|
navigation: m,
|
|
2665
2814
|
scrollbar: h,
|
|
2666
2815
|
virtual: u,
|
|
2667
|
-
thumbs:
|
|
2816
|
+
thumbs: v
|
|
2668
2817
|
} = e;
|
|
2669
|
-
let
|
|
2670
|
-
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (
|
|
2671
|
-
const P = (
|
|
2672
|
-
e[
|
|
2818
|
+
let E, p, w, g, T, x, M, C;
|
|
2819
|
+
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (E = !0), n.includes("controller") && s.controller && s.controller.control && c.controller && !c.controller.control && (p = !0), n.includes("pagination") && s.pagination && (s.pagination.el || o) && (c.pagination || c.pagination === !1) && f && !f.el && (w = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && h && !h.el && (g = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (c.navigation || c.navigation === !1) && m && !m.prevEl && !m.nextEl && (T = !0);
|
|
2820
|
+
const P = (S) => {
|
|
2821
|
+
e[S] && (e[S].destroy(), S === "navigation" ? (e.isElement && (e[S].prevEl.remove(), e[S].nextEl.remove()), c[S].prevEl = void 0, c[S].nextEl = void 0, e[S].prevEl = void 0, e[S].nextEl = void 0) : (e.isElement && e[S].el.remove(), c[S].el = void 0, e[S].el = void 0));
|
|
2673
2822
|
};
|
|
2674
|
-
n.includes("loop") && e.isElement && (c.loop && !s.loop ?
|
|
2675
|
-
if (
|
|
2676
|
-
Object.assign(c[
|
|
2823
|
+
n.includes("loop") && e.isElement && (c.loop && !s.loop ? x = !0 : !c.loop && s.loop ? M = !0 : C = !0), d.forEach((S) => {
|
|
2824
|
+
if (X(c[S]) && X(s[S]))
|
|
2825
|
+
Object.assign(c[S], s[S]), (S === "navigation" || S === "pagination" || S === "scrollbar") && "enabled" in s[S] && !s[S].enabled && P(S);
|
|
2677
2826
|
else {
|
|
2678
|
-
const
|
|
2679
|
-
(
|
|
2827
|
+
const b = s[S];
|
|
2828
|
+
(b === !0 || b === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? b === !1 && P(S) : c[S] = s[S];
|
|
2680
2829
|
}
|
|
2681
|
-
}), d.includes("controller") && !p && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), n.includes("children") && i && u && c.virtual.enabled ? (u.slides = i, u.update(!0)) : n.includes("virtual") && u && c.virtual.enabled && (i && (u.slides = i), u.update(!0)), n.includes("children") && i && c.loop && (
|
|
2830
|
+
}), d.includes("controller") && !p && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), n.includes("children") && i && u && c.virtual.enabled ? (u.slides = i, u.update(!0)) : n.includes("virtual") && u && c.virtual.enabled && (i && (u.slides = i), u.update(!0)), n.includes("children") && i && c.loop && (C = !0), E && v.init() && v.update(!0), p && (e.controller.control = c.controller.control), w && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (c.pagination.el = o), f.init(), f.render(), f.update()), g && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (c.scrollbar.el = a), h.init(), h.updateSize(), h.setTranslate()), T && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), Se(r, e.hostEl.constructor.nextButtonSvg), r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), Se(l, e.hostEl.constructor.prevButtonSvg), l.part.add("button-prev"), e.el.appendChild(l))), r && (c.navigation.nextEl = r), l && (c.navigation.prevEl = l), m.init(), m.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (x || C) && e.loopDestroy(), (M || C) && e.loopCreate(), e.update();
|
|
2682
2831
|
}
|
|
2683
2832
|
function pi(t, e) {
|
|
2684
2833
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2685
2834
|
const i = {
|
|
2686
2835
|
on: {}
|
|
2687
2836
|
}, s = {}, n = {};
|
|
2688
|
-
|
|
2837
|
+
q(i, pe), i._emitClasses = !0, i.init = !1;
|
|
2689
2838
|
const r = {}, l = Ge.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
|
|
2690
2839
|
return Object.keys(a).forEach((o) => {
|
|
2691
|
-
typeof t[o] > "u" || (l.indexOf(o) >= 0 ?
|
|
2840
|
+
typeof t[o] > "u" || (l.indexOf(o) >= 0 ? X(t[o]) ? (i[o] = {}, n[o] = {}, q(i[o], t[o]), q(n[o], t[o])) : (i[o] = t[o], n[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? e ? s[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : i.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : r[o] = t[o]);
|
|
2692
2841
|
}), ["navigation", "pagination", "scrollbar"].forEach((o) => {
|
|
2693
2842
|
i[o] === !0 && (i[o] = {}), i[o] === !1 && delete i[o];
|
|
2694
2843
|
}), {
|
|
@@ -2707,7 +2856,7 @@ function mi(t, e) {
|
|
|
2707
2856
|
scrollbarEl: l,
|
|
2708
2857
|
swiper: a
|
|
2709
2858
|
} = t;
|
|
2710
|
-
De(e) && s && n && (a.params.navigation.nextEl = s, a.originalParams.navigation.nextEl = s, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n),
|
|
2859
|
+
De(e) && s && n && (a.params.navigation.nextEl = s, a.originalParams.navigation.nextEl = s, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), Be(e) && r && (a.params.pagination.el = r, a.originalParams.pagination.el = r), Ve(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(i);
|
|
2711
2860
|
}
|
|
2712
2861
|
function hi(t, e, i, s, n) {
|
|
2713
2862
|
const r = [];
|
|
@@ -2722,7 +2871,7 @@ function hi(t, e, i, s, n) {
|
|
|
2722
2871
|
}
|
|
2723
2872
|
return Ge.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
|
|
2724
2873
|
if (o in t && o in e)
|
|
2725
|
-
if (
|
|
2874
|
+
if (X(t[o]) && X(e[o])) {
|
|
2726
2875
|
const d = Object.keys(t[o]), c = Object.keys(e[o]);
|
|
2727
2876
|
d.length !== c.length ? l(o) : (d.forEach((f) => {
|
|
2728
2877
|
t[o][f] !== e[o][f] && l(o);
|
|
@@ -2736,23 +2885,23 @@ function hi(t, e, i, s, n) {
|
|
|
2736
2885
|
const gi = (t) => {
|
|
2737
2886
|
!t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
|
|
2738
2887
|
};
|
|
2739
|
-
function
|
|
2740
|
-
return
|
|
2888
|
+
function se() {
|
|
2889
|
+
return se = Object.assign ? Object.assign.bind() : function(t) {
|
|
2741
2890
|
for (var e = 1; e < arguments.length; e++) {
|
|
2742
2891
|
var i = arguments[e];
|
|
2743
2892
|
for (var s in i)
|
|
2744
2893
|
Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
|
|
2745
2894
|
}
|
|
2746
2895
|
return t;
|
|
2747
|
-
},
|
|
2896
|
+
}, se.apply(this, arguments);
|
|
2748
2897
|
}
|
|
2749
|
-
function
|
|
2898
|
+
function He(t) {
|
|
2750
2899
|
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
2751
2900
|
}
|
|
2752
|
-
function
|
|
2901
|
+
function Fe(t) {
|
|
2753
2902
|
const e = [];
|
|
2754
|
-
return
|
|
2755
|
-
|
|
2903
|
+
return B.Children.toArray(t).forEach((i) => {
|
|
2904
|
+
He(i) ? e.push(i) : i.props && i.props.children && Fe(i.props.children).forEach((s) => e.push(s));
|
|
2756
2905
|
}), e;
|
|
2757
2906
|
}
|
|
2758
2907
|
function vi(t) {
|
|
@@ -2762,13 +2911,13 @@ function vi(t) {
|
|
|
2762
2911
|
"wrapper-start": [],
|
|
2763
2912
|
"wrapper-end": []
|
|
2764
2913
|
};
|
|
2765
|
-
return
|
|
2766
|
-
if (
|
|
2914
|
+
return B.Children.toArray(t).forEach((s) => {
|
|
2915
|
+
if (He(s))
|
|
2767
2916
|
e.push(s);
|
|
2768
2917
|
else if (s.props && s.props.slot && i[s.props.slot])
|
|
2769
2918
|
i[s.props.slot].push(s);
|
|
2770
2919
|
else if (s.props && s.props.children) {
|
|
2771
|
-
const n =
|
|
2920
|
+
const n = Fe(s.props.children);
|
|
2772
2921
|
n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
|
|
2773
2922
|
} else
|
|
2774
2923
|
i["container-end"].push(s);
|
|
@@ -2793,16 +2942,16 @@ function wi(t, e, i) {
|
|
|
2793
2942
|
} = i, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, d = [];
|
|
2794
2943
|
for (let c = a; c < o; c += 1)
|
|
2795
2944
|
c >= r && c <= l && d.push(e[s(c)]);
|
|
2796
|
-
return d.map((c, f) => /* @__PURE__ */
|
|
2945
|
+
return d.map((c, f) => /* @__PURE__ */ B.cloneElement(c, {
|
|
2797
2946
|
swiper: t,
|
|
2798
2947
|
style: n,
|
|
2799
2948
|
key: c.props.virtualIndex || c.key || `slide-${f}`
|
|
2800
2949
|
}));
|
|
2801
2950
|
}
|
|
2802
|
-
function
|
|
2803
|
-
return typeof window > "u" ?
|
|
2951
|
+
function K(t, e) {
|
|
2952
|
+
return typeof window > "u" ? fe(t, e) : $e(t, e);
|
|
2804
2953
|
}
|
|
2805
|
-
const
|
|
2954
|
+
const ye = /* @__PURE__ */ Me(null), Si = /* @__PURE__ */ Me(null), Ti = /* @__PURE__ */ Pe(function(t, e) {
|
|
2806
2955
|
let {
|
|
2807
2956
|
className: i,
|
|
2808
2957
|
tag: s = "div",
|
|
@@ -2811,111 +2960,111 @@ const Ee = /* @__PURE__ */ Pe(null), Si = /* @__PURE__ */ Pe(null), Ti = /* @__P
|
|
|
2811
2960
|
onSwiper: l,
|
|
2812
2961
|
...a
|
|
2813
2962
|
} = t === void 0 ? {} : t, o = !1;
|
|
2814
|
-
const [d, c] =
|
|
2963
|
+
const [d, c] = U("swiper"), [f, m] = U(null), [h, u] = U(!1), v = F(!1), E = F(null), p = F(null), w = F(null), g = F(null), T = F(null), x = F(null), M = F(null), C = F(null), {
|
|
2815
2964
|
params: P,
|
|
2816
|
-
passedParams:
|
|
2817
|
-
rest:
|
|
2965
|
+
passedParams: S,
|
|
2966
|
+
rest: b,
|
|
2818
2967
|
events: y
|
|
2819
2968
|
} = pi(a), {
|
|
2820
2969
|
slides: I,
|
|
2821
|
-
slots:
|
|
2822
|
-
} = vi(r),
|
|
2970
|
+
slots: L
|
|
2971
|
+
} = vi(r), G = () => {
|
|
2823
2972
|
u(!h);
|
|
2824
2973
|
};
|
|
2825
2974
|
Object.assign(P.on, {
|
|
2826
|
-
_containerClasses(
|
|
2827
|
-
c(
|
|
2975
|
+
_containerClasses(z, N) {
|
|
2976
|
+
c(N);
|
|
2828
2977
|
}
|
|
2829
2978
|
});
|
|
2830
|
-
const
|
|
2979
|
+
const D = () => {
|
|
2831
2980
|
Object.assign(P.on, y), o = !0;
|
|
2832
|
-
const
|
|
2981
|
+
const z = {
|
|
2833
2982
|
...P
|
|
2834
2983
|
};
|
|
2835
|
-
if (delete
|
|
2984
|
+
if (delete z.wrapperClass, p.current = new he(z), p.current.virtual && p.current.params.virtual.enabled) {
|
|
2836
2985
|
p.current.virtual.slides = I;
|
|
2837
|
-
const
|
|
2986
|
+
const N = {
|
|
2838
2987
|
cache: !1,
|
|
2839
2988
|
slides: I,
|
|
2840
2989
|
renderExternal: m,
|
|
2841
2990
|
renderExternalUpdate: !1
|
|
2842
2991
|
};
|
|
2843
|
-
|
|
2992
|
+
q(p.current.params.virtual, N), q(p.current.originalParams.virtual, N);
|
|
2844
2993
|
}
|
|
2845
2994
|
};
|
|
2846
|
-
|
|
2847
|
-
const
|
|
2848
|
-
o || !y || !p.current || Object.keys(y).forEach((
|
|
2849
|
-
p.current.on(
|
|
2995
|
+
E.current || D(), p.current && p.current.on("_beforeBreakpoint", G);
|
|
2996
|
+
const O = () => {
|
|
2997
|
+
o || !y || !p.current || Object.keys(y).forEach((z) => {
|
|
2998
|
+
p.current.on(z, y[z]);
|
|
2850
2999
|
});
|
|
2851
|
-
},
|
|
2852
|
-
!y || !p.current || Object.keys(y).forEach((
|
|
2853
|
-
p.current.off(
|
|
3000
|
+
}, A = () => {
|
|
3001
|
+
!y || !p.current || Object.keys(y).forEach((z) => {
|
|
3002
|
+
p.current.off(z, y[z]);
|
|
2854
3003
|
});
|
|
2855
3004
|
};
|
|
2856
|
-
|
|
2857
|
-
p.current && p.current.off("_beforeBreakpoint",
|
|
2858
|
-
}),
|
|
2859
|
-
!
|
|
2860
|
-
}),
|
|
2861
|
-
if (e && (e.current =
|
|
2862
|
-
return p.current.destroyed &&
|
|
2863
|
-
el:
|
|
2864
|
-
nextEl:
|
|
2865
|
-
prevEl:
|
|
2866
|
-
paginationEl:
|
|
2867
|
-
scrollbarEl:
|
|
3005
|
+
fe(() => () => {
|
|
3006
|
+
p.current && p.current.off("_beforeBreakpoint", G);
|
|
3007
|
+
}), fe(() => {
|
|
3008
|
+
!v.current && p.current && (p.current.emitSlidesClasses(), v.current = !0);
|
|
3009
|
+
}), K(() => {
|
|
3010
|
+
if (e && (e.current = E.current), !!E.current)
|
|
3011
|
+
return p.current.destroyed && D(), mi({
|
|
3012
|
+
el: E.current,
|
|
3013
|
+
nextEl: T.current,
|
|
3014
|
+
prevEl: x.current,
|
|
3015
|
+
paginationEl: M.current,
|
|
3016
|
+
scrollbarEl: C.current,
|
|
2868
3017
|
swiper: p.current
|
|
2869
3018
|
}, P), l && !p.current.destroyed && l(p.current), () => {
|
|
2870
3019
|
p.current && !p.current.destroyed && p.current.destroy(!0, !1);
|
|
2871
3020
|
};
|
|
2872
|
-
}, []),
|
|
2873
|
-
|
|
2874
|
-
const
|
|
2875
|
-
return
|
|
3021
|
+
}, []), K(() => {
|
|
3022
|
+
O();
|
|
3023
|
+
const z = hi(S, w.current, I, g.current, (N) => N.key);
|
|
3024
|
+
return w.current = S, g.current = I, z.length && p.current && !p.current.destroyed && ui({
|
|
2876
3025
|
swiper: p.current,
|
|
2877
3026
|
slides: I,
|
|
2878
|
-
passedParams:
|
|
2879
|
-
changedParams:
|
|
2880
|
-
nextEl:
|
|
2881
|
-
prevEl:
|
|
2882
|
-
scrollbarEl:
|
|
2883
|
-
paginationEl:
|
|
3027
|
+
passedParams: S,
|
|
3028
|
+
changedParams: z,
|
|
3029
|
+
nextEl: T.current,
|
|
3030
|
+
prevEl: x.current,
|
|
3031
|
+
scrollbarEl: C.current,
|
|
3032
|
+
paginationEl: M.current
|
|
2884
3033
|
}), () => {
|
|
2885
|
-
|
|
3034
|
+
A();
|
|
2886
3035
|
};
|
|
2887
|
-
}),
|
|
3036
|
+
}), K(() => {
|
|
2888
3037
|
gi(p.current);
|
|
2889
3038
|
}, [f]);
|
|
2890
|
-
function
|
|
2891
|
-
return P.virtual ? wi(p.current, I, f) : I.map((
|
|
3039
|
+
function _() {
|
|
3040
|
+
return P.virtual ? wi(p.current, I, f) : I.map((z, N) => /* @__PURE__ */ B.cloneElement(z, {
|
|
2892
3041
|
swiper: p.current,
|
|
2893
|
-
swiperSlideIndex:
|
|
3042
|
+
swiperSlideIndex: N
|
|
2894
3043
|
}));
|
|
2895
3044
|
}
|
|
2896
|
-
return /* @__PURE__ */
|
|
2897
|
-
ref:
|
|
3045
|
+
return /* @__PURE__ */ B.createElement(s, se({
|
|
3046
|
+
ref: E,
|
|
2898
3047
|
className: Ne(`${d}${i ? ` ${i}` : ""}`)
|
|
2899
|
-
},
|
|
3048
|
+
}, b), /* @__PURE__ */ B.createElement(Si.Provider, {
|
|
2900
3049
|
value: p.current
|
|
2901
|
-
},
|
|
3050
|
+
}, L["container-start"], /* @__PURE__ */ B.createElement(n, {
|
|
2902
3051
|
className: fi(P.wrapperClass)
|
|
2903
|
-
},
|
|
2904
|
-
ref: b,
|
|
2905
|
-
className: "swiper-button-prev"
|
|
2906
|
-
}), /* @__PURE__ */ A.createElement("div", {
|
|
3052
|
+
}, L["wrapper-start"], _(), L["wrapper-end"]), De(P) && /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement("div", {
|
|
2907
3053
|
ref: x,
|
|
3054
|
+
className: "swiper-button-prev"
|
|
3055
|
+
}), /* @__PURE__ */ B.createElement("div", {
|
|
3056
|
+
ref: T,
|
|
2908
3057
|
className: "swiper-button-next"
|
|
2909
|
-
})),
|
|
2910
|
-
ref: M,
|
|
2911
|
-
className: "swiper-scrollbar"
|
|
2912
|
-
}), Ve(P) && /* @__PURE__ */ A.createElement("div", {
|
|
3058
|
+
})), Ve(P) && /* @__PURE__ */ B.createElement("div", {
|
|
2913
3059
|
ref: C,
|
|
3060
|
+
className: "swiper-scrollbar"
|
|
3061
|
+
}), Be(P) && /* @__PURE__ */ B.createElement("div", {
|
|
3062
|
+
ref: M,
|
|
2914
3063
|
className: "swiper-pagination"
|
|
2915
|
-
}),
|
|
3064
|
+
}), L["container-end"]));
|
|
2916
3065
|
});
|
|
2917
3066
|
Ti.displayName = "Swiper";
|
|
2918
|
-
const bi = /* @__PURE__ */
|
|
3067
|
+
const bi = /* @__PURE__ */ Pe(function(t, e) {
|
|
2919
3068
|
let {
|
|
2920
3069
|
tag: i = "div",
|
|
2921
3070
|
children: s,
|
|
@@ -2927,21 +3076,21 @@ const bi = /* @__PURE__ */ ye(function(t, e) {
|
|
|
2927
3076
|
swiperSlideIndex: d,
|
|
2928
3077
|
...c
|
|
2929
3078
|
} = t === void 0 ? {} : t;
|
|
2930
|
-
const f =
|
|
2931
|
-
function
|
|
2932
|
-
|
|
3079
|
+
const f = F(null), [m, h] = U("swiper-slide"), [u, v] = U(!1);
|
|
3080
|
+
function E(T, x, M) {
|
|
3081
|
+
x === f.current && h(M);
|
|
2933
3082
|
}
|
|
2934
|
-
|
|
3083
|
+
K(() => {
|
|
2935
3084
|
if (typeof d < "u" && (f.current.swiperSlideIndex = d), e && (e.current = f.current), !(!f.current || !r)) {
|
|
2936
3085
|
if (r.destroyed) {
|
|
2937
3086
|
m !== "swiper-slide" && h("swiper-slide");
|
|
2938
3087
|
return;
|
|
2939
3088
|
}
|
|
2940
|
-
return r.on("_slideClass",
|
|
2941
|
-
r && r.off("_slideClass",
|
|
3089
|
+
return r.on("_slideClass", E), () => {
|
|
3090
|
+
r && r.off("_slideClass", E);
|
|
2942
3091
|
};
|
|
2943
3092
|
}
|
|
2944
|
-
}),
|
|
3093
|
+
}), K(() => {
|
|
2945
3094
|
r && f.current && !r.destroyed && h(r.getSlideClasses(f.current));
|
|
2946
3095
|
}, [r]);
|
|
2947
3096
|
const p = {
|
|
@@ -2949,35 +3098,33 @@ const bi = /* @__PURE__ */ ye(function(t, e) {
|
|
|
2949
3098
|
isVisible: m.indexOf("swiper-slide-visible") >= 0,
|
|
2950
3099
|
isPrev: m.indexOf("swiper-slide-prev") >= 0,
|
|
2951
3100
|
isNext: m.indexOf("swiper-slide-next") >= 0
|
|
2952
|
-
},
|
|
2953
|
-
|
|
3101
|
+
}, w = () => typeof s == "function" ? s(p) : s, g = () => {
|
|
3102
|
+
v(!0);
|
|
2954
3103
|
};
|
|
2955
|
-
return /* @__PURE__ */
|
|
3104
|
+
return /* @__PURE__ */ B.createElement(i, se({
|
|
2956
3105
|
ref: f,
|
|
2957
3106
|
className: Ne(`${m}${n ? ` ${n}` : ""}`),
|
|
2958
3107
|
"data-swiper-slide-index": o,
|
|
2959
|
-
onLoad:
|
|
2960
|
-
}, c), l && /* @__PURE__ */
|
|
3108
|
+
onLoad: g
|
|
3109
|
+
}, c), l && /* @__PURE__ */ B.createElement(ye.Provider, {
|
|
2961
3110
|
value: p
|
|
2962
|
-
}, /* @__PURE__ */
|
|
3111
|
+
}, /* @__PURE__ */ B.createElement("div", {
|
|
2963
3112
|
className: "swiper-zoom-container",
|
|
2964
3113
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
2965
|
-
},
|
|
3114
|
+
}, w(), a && !u && /* @__PURE__ */ B.createElement("div", {
|
|
2966
3115
|
className: "swiper-lazy-preloader"
|
|
2967
|
-
}))), !l && /* @__PURE__ */
|
|
3116
|
+
}))), !l && /* @__PURE__ */ B.createElement(ye.Provider, {
|
|
2968
3117
|
value: p
|
|
2969
|
-
},
|
|
3118
|
+
}, w(), a && !u && /* @__PURE__ */ B.createElement("div", {
|
|
2970
3119
|
className: "swiper-lazy-preloader"
|
|
2971
3120
|
})));
|
|
2972
3121
|
});
|
|
2973
3122
|
bi.displayName = "SwiperSlide";
|
|
2974
3123
|
export {
|
|
2975
|
-
|
|
2976
|
-
|
|
3124
|
+
xi as M,
|
|
3125
|
+
yi as N,
|
|
3126
|
+
he as S,
|
|
2977
3127
|
Ti as a,
|
|
2978
3128
|
bi as b,
|
|
2979
|
-
|
|
2980
|
-
q as d,
|
|
2981
|
-
D as g,
|
|
2982
|
-
Me as n
|
|
3129
|
+
Y as g
|
|
2983
3130
|
};
|