md-components-mdigial-azamat 0.0.45 → 0.0.46
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 +167 -33
- package/dist/AllComponentsInfo.js +95 -0
- package/dist/AnimatedSwiper/index.js +139 -10
- package/dist/AnimatedSwiper/info.js +11 -0
- package/dist/Banner/Banner.js +4 -3
- package/dist/Banner/info.js +11 -0
- package/dist/BannerAndText/index.js +2 -1
- package/dist/BannerAndText/info.js +11 -0
- package/dist/CardIconList/CardIconList.js +3 -2
- package/dist/CardIconList/info.js +11 -0
- package/dist/CardImageList/CardImageList.js +4 -3
- package/dist/CardImageList/info.js +11 -0
- package/dist/CardImageSecondary/CardImageSecondary.js +2 -1
- package/dist/CardImageSecondary/info.js +11 -0
- package/dist/CardImageSecondaryList/CardImageSecondaryList.js +2 -1
- package/dist/CardImageSecondaryList/info.js +11 -0
- package/dist/CardInfoTable/index.js +4 -3
- package/dist/CardInfoTable/info.js +11 -0
- package/dist/Cards/CardImage/CardImage.js +2 -1
- package/dist/Cards/CardImage/info.js +11 -0
- package/dist/Cards/ColoredCard/index.js +2 -1
- package/dist/Cards/ColoredCard/info.js +11 -0
- package/dist/Cards/ContentCard/ContentCard.js +36 -35
- package/dist/Cards/ContentCard/info.js +11 -0
- package/dist/Cards/FeaturesCard/index.js +3 -2
- package/dist/Cards/FeaturesCard/info.js +11 -0
- package/dist/Cards/WarningCard/WarningCard.js +7 -6
- package/dist/Cards/WarningCard/info.js +11 -0
- package/dist/ContentCardList/ContentCardList.js +23 -19
- package/dist/ContentCardList/info.js +11 -0
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +3 -2
- package/dist/DownloadFile/components/DownloadFileBanner/info.js +11 -0
- package/dist/DownloadFile/components/DownloadFileBright/index.js +3 -2
- package/dist/DownloadFile/components/DownloadFileBright/info.js +11 -0
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +4 -3
- package/dist/DownloadFile/components/DownloadFileFull/info.js +11 -0
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +4 -3
- package/dist/DownloadFile/components/DownloadFileHalf/info.js +11 -0
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +5 -4
- package/dist/DownloadFile/components/DownloadFileMini/info.js +11 -0
- package/dist/Faq/Faq.js +2 -1
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +2 -2
- package/dist/Faq/info.js +11 -0
- package/dist/Footer/Footer.js +96 -54
- package/dist/Footer/info.js +10 -0
- package/dist/Header/Header.js +60 -6
- package/dist/Header/components/HeaderCard/HeaderCard.js +2 -2
- package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +1 -1
- package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +52 -44
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +71 -9
- package/dist/Header/components/HeaderMobile/index.js +1 -1
- package/dist/Header/components/HeaderSearch/HeaderSearch.js +157 -11
- package/dist/Header/components/HeaderSearch/index.js +2 -2
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +11 -11
- package/dist/Header/components/SelectLanguage/SelectLanguage.js +1 -1
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +11 -10
- package/dist/Header/index.js +2 -2
- package/dist/Header/info.js +10 -0
- package/dist/HeroPossibilityBanner/index.js +2 -1
- package/dist/HeroPossibilityBanner/info.js +11 -0
- package/dist/HtmlContent/HtmlContent.js +2 -1
- package/dist/HtmlContent/info.js +10 -0
- package/dist/InfoBanner/index.js +3 -2
- package/dist/InfoBanner/info.js +11 -0
- package/dist/InfoBannerList/InfoBannerList.js +49 -7
- package/dist/InfoBannerList/index.js +2 -2
- package/dist/InfoBannerList/info.js +11 -0
- package/dist/InstructionList/InstructionList.js +31 -7
- package/dist/InstructionList/components/InstructionCard/InstructionCard.js +80 -46
- package/dist/InstructionList/components/InstructionCard/index.js +1 -1
- package/dist/InstructionList/index.js +1 -1
- package/dist/InstructionList/info.js +11 -0
- package/dist/IntroBanner/IntroBanner.js +3 -2
- package/dist/IntroBanner/info.js +11 -0
- package/dist/MainBanner/MainBanner.js +4 -3
- package/dist/MainBanner/info.js +11 -0
- package/dist/MultiCards/index.js +2 -1
- package/dist/MultiCards/info.js +11 -0
- package/dist/PageViewer/PageViewer.js +4 -43
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/Partners/Partners.js +2 -1
- package/dist/Partners/info.js +11 -0
- package/dist/PartnersColors/PartnersColors.js +2 -1
- package/dist/PartnersColors/info.js +11 -0
- package/dist/PreviewList/PreviewList.js +31 -6
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +29 -45
- package/dist/PreviewList/components/PreviewCard/index.js +2 -2
- package/dist/PreviewList/index.js +1 -1
- package/dist/PreviewList/info.js +11 -0
- package/dist/PromoPoster/PromoPoster.js +45 -7
- package/dist/PromoPoster/info.js +11 -0
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/Segments/Segments.js +2 -1
- package/dist/Segments/info.js +11 -0
- package/dist/Space/Space.js +2 -1
- package/dist/Space/info.js +11 -0
- package/dist/StandartTable/components/CardMarkedRow/index.js +88 -46
- package/dist/StandartTable/components/CardWarning/index.js +2 -2
- package/dist/StandartTable/index.js +76 -7
- package/dist/StandartTable/info.js +11 -0
- package/dist/Stepper/Stepper.js +4 -3
- package/dist/Stepper/info.js +11 -0
- package/dist/SwiperList/SwiperList.js +119 -10
- package/dist/SwiperList/index.js +1 -1
- package/dist/SwiperList/info.js +11 -0
- package/dist/TasksBanner/TasksBanner.js +132 -9
- package/dist/TasksBanner/index.js +2 -2
- package/dist/TasksBanner/info.js +11 -0
- package/dist/TasksBannerList/TasksBannerList.js +36 -5
- package/dist/TasksBannerList/index.js +2 -2
- package/dist/TasksBannerList/info.js +11 -0
- package/dist/Video/VideoFull/VideoFull.js +2 -1
- package/dist/Video/VideoFull/info.js +11 -0
- package/dist/Video/VideoList/VideoList.js +2 -1
- package/dist/Video/VideoList/info.js +11 -0
- package/dist/Video/VideoListMini/VideoListMini.js +2 -1
- package/dist/Video/VideoListMini/info.js +11 -0
- package/dist/VideoMainBanner/VideoMainBanner.js +3 -2
- package/dist/VideoMainBanner/info.js +11 -0
- package/dist/assets/TasksBanner.css +1 -0
- package/dist/assets/{index2.css → navigation.css} +1 -1
- package/dist/clientApi-642fea4b.js +25 -0
- package/dist/componentsMap-b3ef1658.js +75 -0
- package/dist/{const-637b0dca.js → const-53dff524.js} +3 -3
- package/dist/createBoolean-56064b0d.js +12 -0
- package/dist/{data.mock-483400cb.js → data.mock-2412b65a.js} +94 -96
- package/dist/{index-6af94f99.js → index-10605794.js} +1 -1
- package/dist/index-1a32da94.js +4 -0
- package/dist/{index-815f0132.js → index-b4c61de3.js} +9 -8
- package/dist/index.module-c8833286.js +83 -0
- package/dist/{languages-list-8419e560.js → languages-list-87ab3324.js} +2 -2
- package/dist/main.js +88 -81
- package/dist/mousewheel-2cf27f39.js +153 -0
- package/dist/navigation-48c90d3b.js +183 -0
- package/dist/routes-76228734.js +109 -0
- package/dist/{swiper-react-0815edaf.js → swiper-react-bfbb44d6.js} +507 -654
- package/package.json +1 -1
- package/dist/componentsMap-0e7046ee.js +0 -67
- package/dist/index-3a534581.js +0 -261
- package/dist/index-aa718078.js +0 -1229
- package/dist/routes-382632ac.js +0 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
1
|
+
import A, { forwardRef as ye, useState as X, useRef as k, useEffect as ce, useLayoutEffect as He, createContext as Pe } from "react";
|
|
2
|
+
function he(t) {
|
|
3
3
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function pe(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] : he(e[s]) && he(t[s]) && Object.keys(e[s]).length > 0 && pe(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 q() {
|
|
68
68
|
const t = typeof document < "u" ? document : {};
|
|
69
|
-
return
|
|
69
|
+
return pe(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 D() {
|
|
130
130
|
const t = typeof window < "u" ? window : {};
|
|
131
|
-
return
|
|
131
|
+
return pe(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 qe(t) {
|
|
137
137
|
const e = t;
|
|
138
138
|
Object.keys(e).forEach((i) => {
|
|
139
139
|
try {
|
|
@@ -146,31 +146,31 @@ function Xe(t) {
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Me(t, e) {
|
|
150
150
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function J() {
|
|
153
153
|
return Date.now();
|
|
154
154
|
}
|
|
155
155
|
function Ye(t) {
|
|
156
|
-
const e =
|
|
156
|
+
const e = D();
|
|
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 Xe(t, e) {
|
|
161
161
|
e === void 0 && (e = "x");
|
|
162
|
-
const i =
|
|
162
|
+
const i = D();
|
|
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 K(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 V() {
|
|
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 H() {
|
|
|
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 && (K(t[a]) && K(s[a]) ? s[a].__swiper__ ? t[a] = s[a] : V(t[a], s[a]) : !K(t[a]) && K(s[a]) ? (t[a] = {}, s[a].__swiper__ ? t[a] = s[a] : V(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 = D(), 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 R(t, e) {
|
|
219
219
|
e === void 0 && (e = "");
|
|
220
|
-
const i =
|
|
220
|
+
const i = D(), 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 Qe(t, e) {
|
|
233
|
+
const i = D();
|
|
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 ee(t) {
|
|
238
238
|
try {
|
|
239
239
|
console.warn(t);
|
|
240
240
|
return;
|
|
241
241
|
} catch {
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function te(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 Ze(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 W(t, e) {
|
|
266
|
+
return D().getComputedStyle(t, null).getPropertyValue(e);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function ge(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 ve(t, e, i) {
|
|
284
|
+
const s = D();
|
|
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 $(t) {
|
|
288
288
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function we(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 se;
|
|
296
296
|
function tt() {
|
|
297
|
-
const t =
|
|
297
|
+
const t = D(), e = q();
|
|
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 se || (se = tt()), se;
|
|
305
305
|
}
|
|
306
|
-
let
|
|
306
|
+
let re;
|
|
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 = D(), 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 g = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
319
|
+
return !c && u && i.touch && g.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 = {}), re || (re = it(t)), re;
|
|
323
323
|
}
|
|
324
|
-
let
|
|
324
|
+
let ne;
|
|
325
325
|
function st() {
|
|
326
|
-
const t =
|
|
326
|
+
const t = D(), 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 ne || (ne = st()), ne;
|
|
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 = D();
|
|
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, g = h;
|
|
368
|
+
f.forEach((S) => {
|
|
369
369
|
let {
|
|
370
370
|
contentBoxSize: p,
|
|
371
|
-
contentRect:
|
|
372
|
-
target:
|
|
373
|
-
} =
|
|
374
|
-
|
|
375
|
-
}), (u !== m ||
|
|
371
|
+
contentRect: v,
|
|
372
|
+
target: w
|
|
373
|
+
} = S;
|
|
374
|
+
w && w !== e.el || (u = v ? v.width : (p[0] || p).inlineSize, g = v ? v.height : (p[0] || p).blockSize);
|
|
375
|
+
}), (u !== m || g !== 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 = D(), 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 g = function() {
|
|
410
410
|
n("observerUpdate", u[0]);
|
|
411
411
|
};
|
|
412
|
-
l.requestAnimationFrame ? l.requestAnimationFrame(
|
|
412
|
+
l.requestAnimationFrame ? l.requestAnimationFrame(g) : l.setTimeout(g, 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(W(s, "padding-left") || 0, 10) - parseInt(W(s, "padding-right") || 0, 10), i = i - parseInt(W(s, "padding-top") || 0, 10) - parseInt(W(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(T, y) {
|
|
516
|
+
return parseFloat(T.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 = R(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 g = i.slidesOffsetBefore;
|
|
528
|
+
typeof g == "function" && (g = i.slidesOffsetBefore.call(t));
|
|
529
|
+
let S = i.slidesOffsetAfter;
|
|
530
|
+
typeof S == "function" && (S = i.slidesOffsetAfter.call(t));
|
|
531
|
+
const p = t.snapGrid.length, v = t.slidesGrid.length;
|
|
532
|
+
let w = i.spaceBetween, x = -g, b = 0, C = 0;
|
|
533
533
|
if (typeof r > "u")
|
|
534
534
|
return;
|
|
535
|
-
typeof
|
|
536
|
-
l ?
|
|
535
|
+
typeof w == "string" && w.indexOf("%") >= 0 ? w = parseFloat(w.replace("%", "")) / 100 * r : typeof w == "string" && (w = parseFloat(w)), t.virtualSize = -w, c.forEach((T) => {
|
|
536
|
+
l ? T.style.marginLeft = "" : T.style.marginRight = "", T.style.marginBottom = "", T.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 M = i.grid && i.grid.rows > 1 && t.grid;
|
|
539
|
+
M ? t.grid.initSlides(c) : t.grid && t.grid.unsetSlides();
|
|
540
540
|
let P;
|
|
541
|
-
const
|
|
542
|
-
for (let
|
|
541
|
+
const E = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((T) => typeof i.breakpoints[T].slidesPerView < "u").length > 0;
|
|
542
|
+
for (let T = 0; T < f; T += 1) {
|
|
543
543
|
P = 0;
|
|
544
544
|
let y;
|
|
545
|
-
if (c[
|
|
545
|
+
if (c[T] && (y = c[T]), M && t.grid.updateSlide(T, y, c), !(c[T] && W(y, "display") === "none")) {
|
|
546
546
|
if (i.slidesPerView === "auto") {
|
|
547
|
-
|
|
548
|
-
const I = getComputedStyle(y),
|
|
549
|
-
if (
|
|
550
|
-
P = t.isHorizontal() ?
|
|
547
|
+
E && (c[T].style[t.getDirectionLabel("width")] = "");
|
|
548
|
+
const I = getComputedStyle(y), z = y.style.transform, B = y.style.webkitTransform;
|
|
549
|
+
if (z && (y.style.transform = "none"), B && (y.style.webkitTransform = "none"), i.roundLengths)
|
|
550
|
+
P = t.isHorizontal() ? ve(y, "width", !0) : ve(y, "height", !0);
|
|
551
551
|
else {
|
|
552
|
-
const
|
|
553
|
-
if (
|
|
554
|
-
P =
|
|
552
|
+
const N = e(I, "width"), L = e(I, "padding-left"), _ = e(I, "padding-right"), G = e(I, "margin-left"), O = e(I, "margin-right"), F = I.getPropertyValue("box-sizing");
|
|
553
|
+
if (F && F === "border-box")
|
|
554
|
+
P = N + G + O;
|
|
555
555
|
else {
|
|
556
556
|
const {
|
|
557
|
-
clientWidth:
|
|
558
|
-
offsetWidth:
|
|
557
|
+
clientWidth: Re,
|
|
558
|
+
offsetWidth: $e
|
|
559
559
|
} = y;
|
|
560
|
-
P =
|
|
560
|
+
P = N + L + _ + G + O + ($e - Re);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
|
|
563
|
+
z && (y.style.transform = z), B && (y.style.webkitTransform = B), i.roundLengths && (P = Math.floor(P));
|
|
564
564
|
} else
|
|
565
|
-
P = (r - (i.slidesPerView - 1) *
|
|
566
|
-
c[
|
|
565
|
+
P = (r - (i.slidesPerView - 1) * w) / i.slidesPerView, i.roundLengths && (P = Math.floor(P)), c[T] && (c[T].style[t.getDirectionLabel("width")] = `${P}px`);
|
|
566
|
+
c[T] && (c[T].swiperSlideSize = P), u.push(P), i.centeredSlides ? (x = x + P / 2 + b / 2 + w, b === 0 && T !== 0 && (x = x - r / 2 - w), T === 0 && (x = x - r / 2 - w), Math.abs(x) < 1 / 1e3 && (x = 0), i.roundLengths && (x = Math.floor(x)), C % i.slidesPerGroup === 0 && m.push(x), h.push(x)) : (i.roundLengths && (x = Math.floor(x)), (C - Math.min(t.params.slidesPerGroupSkip, C)) % t.params.slidesPerGroup === 0 && m.push(x), h.push(x), x = x + P + w), t.virtualSize += P + w, b = P, C += 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) + S, l && a && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + w}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + w}px`), M && t.grid.updateWrapperSize(P, m), !i.centeredSlides) {
|
|
570
|
+
const T = [];
|
|
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 && T.push(I);
|
|
574
574
|
}
|
|
575
|
-
m =
|
|
575
|
+
m = T, 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 T = u[0] + w;
|
|
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 = T * i.slidesPerGroup;
|
|
581
|
+
for (let z = 0; z < y; z += 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] + T), h.push(h[h.length - 1] + T), t.virtualSize += T;
|
|
586
586
|
}
|
|
587
|
-
if (m.length === 0 && (m = [0]),
|
|
588
|
-
const
|
|
587
|
+
if (m.length === 0 && (m = [0]), w !== 0) {
|
|
588
|
+
const T = 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[T] = `${w}px`;
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
if (i.centeredSlides && i.centeredSlidesBounds) {
|
|
594
|
-
let
|
|
594
|
+
let T = 0;
|
|
595
595
|
u.forEach((I) => {
|
|
596
|
-
|
|
597
|
-
}),
|
|
598
|
-
const y =
|
|
599
|
-
m = m.map((I) => I <= 0 ? -
|
|
596
|
+
T += I + (w || 0);
|
|
597
|
+
}), T -= w;
|
|
598
|
+
const y = T > r ? T - r : 0;
|
|
599
|
+
m = m.map((I) => I <= 0 ? -g : I > y ? y + S : I);
|
|
600
600
|
}
|
|
601
601
|
if (i.centerInsufficientSlides) {
|
|
602
|
-
let
|
|
602
|
+
let T = 0;
|
|
603
603
|
u.forEach((I) => {
|
|
604
|
-
|
|
605
|
-
}),
|
|
604
|
+
T += I + (w || 0);
|
|
605
|
+
}), T -= w;
|
|
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 (T + y < r) {
|
|
608
|
+
const I = (r - T - y) / 2;
|
|
609
|
+
m.forEach((z, B) => {
|
|
610
|
+
m[B] = z - I;
|
|
611
|
+
}), h.forEach((z, B) => {
|
|
612
|
+
h[B] = z + 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 T = -t.snapGrid[0], y = -t.slidesGrid[0];
|
|
624
|
+
t.snapGrid = t.snapGrid.map((I) => I + T), 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 !== v && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
|
|
627
|
+
const T = `${i.containerModifierClass}backface-hidden`, y = t.el.classList.contains(T);
|
|
628
|
+
f <= i.maxBackfaceHiddenSlides ? y || t.el.classList.add(T) : y && t.el.classList.remove(T);
|
|
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 Se = (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], g = h >= 0 && h <= e.size - e.slidesSizesGrid[o], S = h >= 0 && h < e.size - 1 || u > 1 && u <= e.size || h <= 0 && u >= e.size;
|
|
684
|
+
S && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)), Se(d, S, i.slideVisibleClass), Se(d, g, 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], g = Math.abs(t);
|
|
710
|
+
g >= m ? a = (g - m) / u : a = (g + 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 ae = (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) => R(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 = Ze(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((f) => {
|
|
739
|
+
ae(f, f === o, i.slideActiveClass), ae(f, f === c, i.slideNextClass), ae(f, f === d, i.slidePrevClass);
|
|
740
740
|
}), t.emitSlidesClasses();
|
|
741
741
|
}
|
|
742
|
-
const
|
|
742
|
+
const Z = (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 J = (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
|
+
}, le = (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
|
+
}, fe = (t) => {
|
|
758
758
|
if (!t || t.destroyed || !t.params)
|
|
759
759
|
return;
|
|
760
760
|
let e = t.params.lazyPreloadPrevNext;
|
|
@@ -768,7 +768,7 @@ const J = (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) && le(t, d);
|
|
772
772
|
});
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
@@ -776,11 +776,11 @@ const J = (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) && le(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) && le(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((g) => g.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 && fe(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 = Xe(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 xt(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 Et(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 Et = {
|
|
945
945
|
getTranslate: wt,
|
|
946
946
|
setTranslate: St,
|
|
947
947
|
minTranslate: Tt,
|
|
948
948
|
maxTranslate: bt,
|
|
949
|
-
translateTo:
|
|
949
|
+
translateTo: xt
|
|
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 Ct(t, e) {
|
|
982
982
|
t === void 0 && (t = !0);
|
|
983
983
|
const i = this, {
|
|
984
984
|
params: s
|
|
@@ -990,10 +990,10 @@ function Mt(t, e) {
|
|
|
990
990
|
step: "End"
|
|
991
991
|
}));
|
|
992
992
|
}
|
|
993
|
-
var
|
|
993
|
+
var Mt = {
|
|
994
994
|
setTransition: yt,
|
|
995
995
|
transitionStart: Pt,
|
|
996
|
-
transitionEnd:
|
|
996
|
+
transitionEnd: Ct
|
|
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 g = Math.min(r.params.slidesPerGroupSkip, l);
|
|
1017
|
+
let S = g + Math.floor((l - g) / r.params.slidesPerGroup);
|
|
1018
|
+
S >= o.length && (S = o.length - 1);
|
|
1019
|
+
const p = -o[S];
|
|
1020
1020
|
if (a.normalizeSlideIndex)
|
|
1021
|
-
for (let
|
|
1022
|
-
const P = -Math.floor(p * 100),
|
|
1023
|
-
typeof d[
|
|
1021
|
+
for (let M = 0; M < d.length; M += 1) {
|
|
1022
|
+
const P = -Math.floor(p * 100), E = Math.floor(d[M] * 100), T = Math.floor(d[M + 1] * 100);
|
|
1023
|
+
typeof d[M + 1] < "u" ? P >= E && P < T - (T - E) / 2 ? l = M : P >= E && P < T && (l = M + 1) : P >= E && (l = M);
|
|
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 v;
|
|
1029
|
+
l > f ? v = "next" : l < f ? v = "prev" : v = "reset";
|
|
1030
|
+
const w = r.virtual && r.params.virtual.enabled;
|
|
1031
|
+
if (!(w && 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), v !== "reset" && (r.transitionStart(i, v), r.transitionEnd(i, v)), !1;
|
|
1033
1033
|
if (a.cssMode) {
|
|
1034
|
-
const
|
|
1034
|
+
const M = r.isHorizontal(), P = m ? p : -p;
|
|
1035
1035
|
if (e === 0)
|
|
1036
|
-
|
|
1037
|
-
h[
|
|
1038
|
-
})) : h[
|
|
1036
|
+
w && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), w && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1037
|
+
h[M ? "scrollLeft" : "scrollTop"] = P;
|
|
1038
|
+
})) : h[M ? "scrollLeft" : "scrollTop"] = P, w && 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: M ? "left" : "top"
|
|
1047
1047
|
}), !0;
|
|
1048
1048
|
h.scrollTo({
|
|
1049
|
-
[
|
|
1049
|
+
[M ? "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 C = ze().isSafari;
|
|
1056
|
+
return w && !n && C && 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, v), e === 0 ? r.transitionEnd(i, v) : 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, v));
|
|
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(v) {
|
|
1151
|
+
return v < 0 ? -Math.floor(Math.abs(v)) : Math.floor(v);
|
|
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((v) => m(v)), g = n.freeMode && n.freeMode.enabled;
|
|
1154
|
+
let S = r[u.indexOf(h) - 1];
|
|
1155
|
+
if (typeof S > "u" && (n.cssMode || g)) {
|
|
1156
|
+
let v;
|
|
1157
|
+
r.forEach((w, x) => {
|
|
1158
|
+
h >= w && (v = x);
|
|
1159
|
+
}), typeof v < "u" && (S = g ? r[v] : r[v > 0 ? v - 1 : v]);
|
|
1160
1160
|
}
|
|
1161
1161
|
let p = 0;
|
|
1162
|
-
if (typeof
|
|
1163
|
-
const
|
|
1164
|
-
return s.slideTo(
|
|
1162
|
+
if (typeof S < "u" && (p = l.indexOf(S), 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 v = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
|
|
1164
|
+
return s.slideTo(v, 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(R(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), Me(() => {
|
|
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 Vt(t, e) {
|
|
1223
1223
|
const i = this, {
|
|
1224
1224
|
params: s,
|
|
1225
1225
|
slidesEl: n
|
|
@@ -1227,11 +1227,11 @@ function Bt(t, e) {
|
|
|
1227
1227
|
if (!s.loop || i.virtual && i.params.virtual.enabled)
|
|
1228
1228
|
return;
|
|
1229
1229
|
const r = () => {
|
|
1230
|
-
|
|
1230
|
+
R(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 = R(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 Bt(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 ? te("swiper-slide", [s.slideBlankClass]) : te("div", [s.slideClass, s.slideBlankClass]);
|
|
1243
1243
|
i.slidesEl.append(u);
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
@@ -1248,14 +1248,14 @@ function Bt(t, e) {
|
|
|
1248
1248
|
const m = o - i.slides.length % o;
|
|
1249
1249
|
f(m), i.recalcSlides(), i.updateSlides();
|
|
1250
1250
|
} else
|
|
1251
|
-
|
|
1251
|
+
ee("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
|
+
ee("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 Bt(t, e) {
|
|
|
1265
1265
|
initial: e
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Bt(t) {
|
|
1269
1269
|
let {
|
|
1270
1270
|
slideRealIndex: e,
|
|
1271
1271
|
slideTo: i = !0,
|
|
@@ -1287,87 +1287,87 @@ function Vt(t) {
|
|
|
1287
1287
|
slidesEl: h,
|
|
1288
1288
|
params: u
|
|
1289
1289
|
} = d, {
|
|
1290
|
-
centeredSlides:
|
|
1291
|
-
initialSlide:
|
|
1290
|
+
centeredSlides: g,
|
|
1291
|
+
initialSlide: S
|
|
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)), g && p % 2 === 0 && (p = p + 1));
|
|
1299
|
+
const v = u.slidesPerGroupAuto ? p : u.slidesPerGroup;
|
|
1300
|
+
let w = g ? Math.max(v, Math.ceil(p / 2)) : v;
|
|
1301
|
+
w % v !== 0 && (w += v - w % v), w += u.loopAdditionalSlides, d.loopedSlides = w;
|
|
1302
|
+
const x = d.grid && u.grid && u.grid.rows > 1;
|
|
1303
|
+
c.length < p + w || d.params.effect === "cards" && c.length < p + w * 2 ? ee("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") : x && u.grid.fill === "row" && ee("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1304
|
+
const b = [], C = [], M = x ? Math.ceil(c.length / u.grid.rows) : c.length, P = l && M - S < p && !g;
|
|
1305
|
+
let E = P ? S : d.activeIndex;
|
|
1306
|
+
typeof r > "u" ? r = d.getSlideIndex(c.find((L) => L.classList.contains(u.slideActiveClass))) : E = r;
|
|
1307
|
+
const T = s === "next" || !s, y = s === "prev" || !s;
|
|
1308
|
+
let I = 0, z = 0;
|
|
1309
|
+
const N = (x ? c[r].column : r) + (g && typeof n > "u" ? -p / 2 + 0.5 : 0);
|
|
1310
|
+
if (N < w) {
|
|
1311
|
+
I = Math.max(w - N, v);
|
|
1312
|
+
for (let L = 0; L < w - N; L += 1) {
|
|
1313
|
+
const _ = L - Math.floor(L / M) * M;
|
|
1314
|
+
if (x) {
|
|
1315
|
+
const G = M - _ - 1;
|
|
1316
|
+
for (let O = c.length - 1; O >= 0; O -= 1)
|
|
1317
|
+
c[O].column === G && b.push(O);
|
|
1318
1318
|
} else
|
|
1319
|
-
|
|
1319
|
+
b.push(M - _ - 1);
|
|
1320
1320
|
}
|
|
1321
|
-
} else if (
|
|
1322
|
-
|
|
1323
|
-
for (let
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
}) :
|
|
1321
|
+
} else if (N + p > M - w) {
|
|
1322
|
+
z = Math.max(N - (M - w * 2), v), P && (z = Math.max(z, p - M + S + 1));
|
|
1323
|
+
for (let L = 0; L < z; L += 1) {
|
|
1324
|
+
const _ = L - Math.floor(L / M) * M;
|
|
1325
|
+
x ? c.forEach((G, O) => {
|
|
1326
|
+
G.column === _ && C.push(O);
|
|
1327
|
+
}) : C.push(_);
|
|
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 + w * 2 && (C.includes(r) && C.splice(C.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)), y && b.forEach((L) => {
|
|
1333
|
+
c[L].swiperLoopMoveDOM = !0, h.prepend(c[L]), c[L].swiperLoopMoveDOM = !1;
|
|
1334
|
+
}), T && C.forEach((L) => {
|
|
1335
|
+
c[L].swiperLoopMoveDOM = !0, h.append(c[L]), c[L].swiperLoopMoveDOM = !1;
|
|
1336
|
+
}), d.recalcSlides(), u.slidesPerView === "auto" ? d.updateSlides() : x && (b.length > 0 && y || C.length > 0 && T) && d.slides.forEach((L, _) => {
|
|
1337
|
+
d.grid.updateSlide(_, L, d.slides);
|
|
1338
1338
|
}), u.watchSlidesProgress && d.updateSlidesOffset(), i) {
|
|
1339
|
-
if (
|
|
1339
|
+
if (b.length > 0 && y) {
|
|
1340
1340
|
if (typeof e > "u") {
|
|
1341
|
-
const
|
|
1342
|
-
o ? d.setTranslate(d.translate -
|
|
1341
|
+
const L = d.slidesGrid[E], G = d.slidesGrid[E + I] - L;
|
|
1342
|
+
o ? d.setTranslate(d.translate - G) : (d.slideTo(E + Math.ceil(I), 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - G, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - G));
|
|
1343
1343
|
} else if (n) {
|
|
1344
|
-
const
|
|
1345
|
-
d.slideTo(d.activeIndex +
|
|
1344
|
+
const L = x ? b.length / u.grid.rows : b.length;
|
|
1345
|
+
d.slideTo(d.activeIndex + L, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
|
|
1346
1346
|
}
|
|
1347
|
-
} else if (
|
|
1347
|
+
} else if (C.length > 0 && T)
|
|
1348
1348
|
if (typeof e > "u") {
|
|
1349
|
-
const
|
|
1350
|
-
o ? d.setTranslate(d.translate -
|
|
1349
|
+
const L = d.slidesGrid[E], G = d.slidesGrid[E - z] - L;
|
|
1350
|
+
o ? d.setTranslate(d.translate - G) : (d.slideTo(E - z, 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - G, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - G));
|
|
1351
1351
|
} else {
|
|
1352
|
-
const
|
|
1353
|
-
d.slideTo(d.activeIndex -
|
|
1352
|
+
const L = x ? C.length / u.grid.rows : C.length;
|
|
1353
|
+
d.slideTo(d.activeIndex - L, 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 L = {
|
|
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((_) => {
|
|
1365
|
+
!_.destroyed && _.params.loop && _.loopFix({
|
|
1366
|
+
...L,
|
|
1367
|
+
slideTo: _.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
|
+
...L,
|
|
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 Ft = {
|
|
1395
|
+
loopCreate: Vt,
|
|
1396
|
+
loopFix: Bt,
|
|
1397
1397
|
loopDestroy: Nt
|
|
1398
1398
|
};
|
|
1399
|
-
function
|
|
1399
|
+
function kt(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 Ft(t) {
|
|
|
1405
1405
|
e.__preventObserver__ = !1;
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Rt() {
|
|
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 $t = {
|
|
1415
|
+
setGrabCursor: kt,
|
|
1416
|
+
unsetGrabCursor: Rt
|
|
1417
1417
|
};
|
|
1418
|
-
function
|
|
1418
|
+
function Ht(t, e) {
|
|
1419
1419
|
e === void 0 && (e = this);
|
|
1420
1420
|
function i(s) {
|
|
1421
|
-
if (!s || s ===
|
|
1421
|
+
if (!s || s === q() || s === D())
|
|
1422
1422
|
return null;
|
|
1423
1423
|
s.assignedSlot && (s = s.assignedSlot);
|
|
1424
1424
|
const n = s.closest(t);
|
|
@@ -1426,14 +1426,14 @@ function $t(t, e) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
return i(e);
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
const s =
|
|
1429
|
+
function Te(t, e, i) {
|
|
1430
|
+
const s = D(), {
|
|
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 = q();
|
|
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
|
+
Te(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" && !Qe(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 ? Ht(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 (!Te(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 = J(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
|
|
1481
|
+
let g = !0;
|
|
1482
|
+
o.matches(n.focusableElements) && (g = !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 S = g && e.allowTouchMove && r.touchStartPreventDefault;
|
|
1484
|
+
(r.touchStartForcePreventDefault || S) && !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 = q(), 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((C) => C.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 = J());
|
|
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 C;
|
|
1544
|
+
i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : m * m + h * h >= 25 && (C = Math.atan2(Math.abs(h), Math.abs(m)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? C > n.touchAngle : 90 - C > 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, g = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
|
1554
|
+
n.oneWayMovement && (u = Math.abs(u) * (l ? 1 : -1), g = Math.abs(g) * (l ? 1 : -1)), r.diff = u, u *= n.touchRatio, l && (u = -u, g = -g);
|
|
1555
|
+
const S = i.touchesDirection;
|
|
1556
|
+
i.swipeDirection = u > 0 ? "prev" : "next", i.touchesDirection = g > 0 ? "prev" : "next";
|
|
1557
|
+
const p = i.params.loop && !n.cssMode, v = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
|
|
1558
1558
|
if (!s.isMoved) {
|
|
1559
|
-
if (p &&
|
|
1559
|
+
if (p && v && i.loopFix({
|
|
1560
1560
|
direction: i.swipeDirection
|
|
1561
1561
|
}), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
|
|
1562
|
-
const
|
|
1562
|
+
const C = 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(C);
|
|
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 w;
|
|
1574
|
+
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && p && v && 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 x = !0, b = n.resistanceRatio;
|
|
1586
|
+
if (n.touchReleaseOnEdges && (b = 0), u > 0 ? (p && v && !w && 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() && (x = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + u) ** b))) : u < 0 && (p && v && !w && 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() && (x = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - u) ** b))), x && (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 qt(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((b) => b.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 Xt(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 = J(), m = f - i.touchStartTime;
|
|
1637
1637
|
if (e.allowClick) {
|
|
1638
|
-
const
|
|
1639
|
-
e.updateClickedSlide(
|
|
1638
|
+
const b = s.path || s.composedPath && s.composedPath();
|
|
1639
|
+
e.updateClickedSlide(b && b[0] || s.target, b), 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 = J(), Me(() => {
|
|
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 Xt(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 g = 0, S = e.slidesSizesGrid[0];
|
|
1659
|
+
for (let b = 0; b < d.length; b += b < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
|
|
1660
|
+
const C = b < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1661
|
+
typeof d[b + C] < "u" ? (u || h >= d[b] && h < d[b + C]) && (g = b, S = d[b + C] - d[b]) : (u || h >= d[b]) && (g = b, S = d[d.length - 1] - d[d.length - 2]);
|
|
1662
|
+
}
|
|
1663
|
+
let p = null, v = null;
|
|
1664
|
+
l.rewind && (e.isBeginning ? v = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (p = 0));
|
|
1665
|
+
const w = (h - d[g]) / S, x = g < 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" && (w >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? p : g + x) : e.slideTo(g)), e.swipeDirection === "prev" && (w > 1 - l.longSwipesRatio ? e.slideTo(g + x) : v !== null && w < 0 && Math.abs(w) > l.longSwipesRatio ? e.slideTo(v) : e.slideTo(g));
|
|
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(g + x) : e.slideTo(g) : (e.swipeDirection === "next" && e.slideTo(p !== null ? p : g + x), e.swipeDirection === "prev" && e.slideTo(v !== null ? v : g));
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function be() {
|
|
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 Xt() {
|
|
1704
1704
|
const t = this, {
|
|
1705
1705
|
wrapperEl: e,
|
|
1706
1706
|
rtlTranslate: i,
|
|
@@ -1715,14 +1715,14 @@ function qt() {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
function Ut(t) {
|
|
1717
1717
|
const e = this;
|
|
1718
|
-
|
|
1718
|
+
Z(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 = q(), {
|
|
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", be, !0) : t[d]("observerUpdate", be, !0), n[o]("load", t.onLoad, {
|
|
1759
1759
|
capture: !0
|
|
1760
1760
|
}));
|
|
1761
1761
|
};
|
|
1762
|
-
function
|
|
1762
|
+
function Qt() {
|
|
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 = qt.bind(t), t.onDocumentTouchStart = Kt.bind(t), e.cssMode && (t.onScroll = Xt.bind(t)), t.onClick = Yt.bind(t), t.onLoad = Ut.bind(t), _e(t, "on");
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function Zt() {
|
|
1769
1769
|
_e(this, "off");
|
|
1770
1770
|
}
|
|
1771
1771
|
var Jt = {
|
|
1772
|
-
attachEvents:
|
|
1773
|
-
detachEvents:
|
|
1772
|
+
attachEvents: Qt,
|
|
1773
|
+
detachEvents: Zt
|
|
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 = q(), 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, g = f.grabCursor, S = 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 && !g ? t.unsetGrabCursor() : !u && g && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((C) => {
|
|
1790
|
+
if (typeof f[C] > "u")
|
|
1791
1791
|
return;
|
|
1792
|
-
const
|
|
1793
|
-
|
|
1792
|
+
const M = s[C] && s[C].enabled, P = f[C] && f[C].enabled;
|
|
1793
|
+
M && !P && t[C].disable(), !M && P && t[C].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, v = s.loop && (f.slidesPerView !== s.slidesPerView || p), w = s.loop;
|
|
1796
|
+
p && i && t.changeDirection(), V(t.params, f);
|
|
1797
|
+
const x = t.params.enabled, b = 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
|
+
}), S && !x ? t.disable() : !S && x && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", f), i && (v ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !w && b ? (t.loopCreate(e), t.updateSlides()) : w && !b && 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 = D(), 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
|
+
}, ue = {
|
|
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
|
+
V(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
|
+
V(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
|
+
}), V(e, s);
|
|
2038
2038
|
};
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const oe = {
|
|
2041
2041
|
eventsEmitter: at,
|
|
2042
2042
|
update: vt,
|
|
2043
|
-
translate:
|
|
2044
|
-
transition:
|
|
2043
|
+
translate: Et,
|
|
2044
|
+
transition: Mt,
|
|
2045
2045
|
slide: Dt,
|
|
2046
|
-
loop:
|
|
2047
|
-
grabCursor:
|
|
2046
|
+
loop: Ft,
|
|
2047
|
+
grabCursor: $t,
|
|
2048
2048
|
events: Jt,
|
|
2049
2049
|
breakpoints: ii,
|
|
2050
2050
|
checkOverflow: oi,
|
|
2051
2051
|
classes: ai
|
|
2052
|
-
},
|
|
2053
|
-
let
|
|
2052
|
+
}, de = {};
|
|
2053
|
+
let me = class H {
|
|
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 = V({}, i), e && !i.el && (i.el = e);
|
|
2059
|
+
const l = q();
|
|
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 = V({}, i, {
|
|
2064
2064
|
el: f
|
|
2065
2065
|
});
|
|
2066
|
-
c.push(new
|
|
2066
|
+
c.push(new H(m));
|
|
2067
2067
|
}), c;
|
|
2068
2068
|
}
|
|
2069
2069
|
const a = this;
|
|
@@ -2082,8 +2082,8 @@ let he = class $ {
|
|
|
2082
2082
|
emit: a.emit.bind(a)
|
|
2083
2083
|
});
|
|
2084
2084
|
});
|
|
2085
|
-
const d =
|
|
2086
|
-
return a.params =
|
|
2085
|
+
const d = V({}, ue, o);
|
|
2086
|
+
return a.params = V({}, d, de, i), a.originalParams = V({}, a.params), a.passedParams = V({}, 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 he = class $ {
|
|
|
2174
2174
|
const {
|
|
2175
2175
|
slidesEl: i,
|
|
2176
2176
|
params: s
|
|
2177
|
-
} = this, n =
|
|
2178
|
-
return
|
|
2177
|
+
} = this, n = R(i, `.${s.slideClass}, swiper-slide`), r = ge(n[0]);
|
|
2178
|
+
return ge(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 he = class $ {
|
|
|
2188
2188
|
slidesEl: i,
|
|
2189
2189
|
params: s
|
|
2190
2190
|
} = e;
|
|
2191
|
-
e.slides =
|
|
2191
|
+
e.slides = R(i, `.${s.slideClass}, swiper-slide`);
|
|
2192
2192
|
}
|
|
2193
2193
|
enable() {
|
|
2194
2194
|
const e = this;
|
|
@@ -2264,7 +2264,7 @@ let he = class $ {
|
|
|
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 && Z(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 he = class $ {
|
|
|
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()) : R(s, n())[0])();
|
|
2307
|
+
return !l && i.params.createElements && (l = te("div", i.params.wrapperClass), s.append(l), R(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 he = class $ {
|
|
|
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" || W(s, "direction") === "rtl",
|
|
2317
|
+
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || W(s, "direction") === "rtl"),
|
|
2318
|
+
wrongRTL: W(l, "display") === "-webkit-box"
|
|
2319
2319
|
}), !0;
|
|
2320
2320
|
}
|
|
2321
2321
|
init(e) {
|
|
@@ -2325,10 +2325,10 @@ let he = class $ {
|
|
|
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 ? Z(i, r) : r.addEventListener("load", (l) => {
|
|
2329
|
+
Z(i, l.target);
|
|
2330
2330
|
});
|
|
2331
|
-
}),
|
|
2331
|
+
}), fe(i), i.initialized = !0, fe(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,190 +2342,41 @@ let he = class $ {
|
|
|
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), qe(s)), s.destroyed = !0), null;
|
|
2346
2346
|
}
|
|
2347
2347
|
static extendDefaults(e) {
|
|
2348
|
-
|
|
2348
|
+
V(de, e);
|
|
2349
2349
|
}
|
|
2350
2350
|
static get extendedDefaults() {
|
|
2351
|
-
return
|
|
2351
|
+
return de;
|
|
2352
2352
|
}
|
|
2353
2353
|
static get defaults() {
|
|
2354
|
-
return
|
|
2354
|
+
return ue;
|
|
2355
2355
|
}
|
|
2356
2356
|
static installModule(e) {
|
|
2357
|
-
|
|
2358
|
-
const i =
|
|
2357
|
+
H.prototype.__modules__ || (H.prototype.__modules__ = []);
|
|
2358
|
+
const i = H.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) => H.installModule(i)), H) : (H.installModule(e), H);
|
|
2363
2363
|
}
|
|
2364
2364
|
};
|
|
2365
|
-
Object.keys(
|
|
2366
|
-
Object.keys(
|
|
2367
|
-
|
|
2365
|
+
Object.keys(oe).forEach((t) => {
|
|
2366
|
+
Object.keys(oe[t]).forEach((e) => {
|
|
2367
|
+
me.prototype[e] = oe[t][e];
|
|
2368
2368
|
});
|
|
2369
2369
|
});
|
|
2370
|
-
|
|
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
|
-
}
|
|
2370
|
+
me.use([rt, nt]);
|
|
2520
2371
|
function ci(t, e, i, s) {
|
|
2521
2372
|
return t.params.createElements && Object.keys(s).forEach((n) => {
|
|
2522
2373
|
if (!i[n] && i.auto === !0) {
|
|
2523
|
-
let r =
|
|
2524
|
-
r || (r =
|
|
2374
|
+
let r = R(t.el, `.${s[n]}`)[0];
|
|
2375
|
+
r || (r = te("div", s[n]), r.className = s[n], t.el.append(r)), i[n] = r, e[n] = r;
|
|
2525
2376
|
}
|
|
2526
2377
|
}), i;
|
|
2527
2378
|
}
|
|
2528
|
-
function
|
|
2379
|
+
function Ei(t) {
|
|
2529
2380
|
let {
|
|
2530
2381
|
swiper: e,
|
|
2531
2382
|
extendParams: i,
|
|
@@ -2547,25 +2398,25 @@ function yi(t) {
|
|
|
2547
2398
|
prevEl: null
|
|
2548
2399
|
};
|
|
2549
2400
|
function r(u) {
|
|
2550
|
-
let
|
|
2551
|
-
return u && typeof u == "string" && e.isElement && (
|
|
2401
|
+
let g;
|
|
2402
|
+
return u && typeof u == "string" && e.isElement && (g = e.el.querySelector(u) || e.hostEl.querySelector(u), g) ? g : (u && (typeof u == "string" && (g = [...document.querySelectorAll(u)]), e.params.uniqueNavElements && typeof u == "string" && g && g.length > 1 && e.el.querySelectorAll(u).length === 1 ? g = e.el.querySelector(u) : g && g.length === 1 && (g = g[0])), u && !g ? u : g);
|
|
2552
2403
|
}
|
|
2553
|
-
function l(u,
|
|
2554
|
-
const
|
|
2555
|
-
u =
|
|
2556
|
-
p && (p.classList[
|
|
2404
|
+
function l(u, g) {
|
|
2405
|
+
const S = e.params.navigation;
|
|
2406
|
+
u = $(u), u.forEach((p) => {
|
|
2407
|
+
p && (p.classList[g ? "add" : "remove"](...S.disabledClass.split(" ")), p.tagName === "BUTTON" && (p.disabled = g), e.params.watchOverflow && e.enabled && p.classList[e.isLocked ? "add" : "remove"](S.lockClass));
|
|
2557
2408
|
});
|
|
2558
2409
|
}
|
|
2559
2410
|
function a() {
|
|
2560
2411
|
const {
|
|
2561
2412
|
nextEl: u,
|
|
2562
|
-
prevEl:
|
|
2413
|
+
prevEl: g
|
|
2563
2414
|
} = e.navigation;
|
|
2564
2415
|
if (e.params.loop) {
|
|
2565
|
-
l(
|
|
2416
|
+
l(g, !1), l(u, !1);
|
|
2566
2417
|
return;
|
|
2567
2418
|
}
|
|
2568
|
-
l(
|
|
2419
|
+
l(g, e.isBeginning && !e.params.rewind), l(u, e.isEnd && !e.params.rewind);
|
|
2569
2420
|
}
|
|
2570
2421
|
function o(u) {
|
|
2571
2422
|
u.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), n("navigationPrev"));
|
|
@@ -2580,26 +2431,26 @@ function yi(t) {
|
|
|
2580
2431
|
prevEl: "swiper-button-prev"
|
|
2581
2432
|
}), !(u.nextEl || u.prevEl))
|
|
2582
2433
|
return;
|
|
2583
|
-
let
|
|
2434
|
+
let g = r(u.nextEl), S = r(u.prevEl);
|
|
2584
2435
|
Object.assign(e.navigation, {
|
|
2585
|
-
nextEl:
|
|
2586
|
-
prevEl:
|
|
2587
|
-
}),
|
|
2588
|
-
const p = (
|
|
2589
|
-
|
|
2436
|
+
nextEl: g,
|
|
2437
|
+
prevEl: S
|
|
2438
|
+
}), g = $(g), S = $(S);
|
|
2439
|
+
const p = (v, w) => {
|
|
2440
|
+
v && v.addEventListener("click", w === "next" ? d : o), !e.enabled && v && v.classList.add(...u.lockClass.split(" "));
|
|
2590
2441
|
};
|
|
2591
|
-
|
|
2442
|
+
g.forEach((v) => p(v, "next")), S.forEach((v) => p(v, "prev"));
|
|
2592
2443
|
}
|
|
2593
2444
|
function f() {
|
|
2594
2445
|
let {
|
|
2595
2446
|
nextEl: u,
|
|
2596
|
-
prevEl:
|
|
2447
|
+
prevEl: g
|
|
2597
2448
|
} = e.navigation;
|
|
2598
|
-
u =
|
|
2599
|
-
const
|
|
2600
|
-
p.removeEventListener("click",
|
|
2449
|
+
u = $(u), g = $(g);
|
|
2450
|
+
const S = (p, v) => {
|
|
2451
|
+
p.removeEventListener("click", v === "next" ? d : o), p.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
2601
2452
|
};
|
|
2602
|
-
u.forEach((p) =>
|
|
2453
|
+
u.forEach((p) => S(p, "next")), g.forEach((p) => S(p, "prev"));
|
|
2603
2454
|
}
|
|
2604
2455
|
s("init", () => {
|
|
2605
2456
|
e.params.navigation.enabled === !1 ? h() : (c(), a());
|
|
@@ -2610,30 +2461,30 @@ function yi(t) {
|
|
|
2610
2461
|
}), s("enable disable", () => {
|
|
2611
2462
|
let {
|
|
2612
2463
|
nextEl: u,
|
|
2613
|
-
prevEl:
|
|
2464
|
+
prevEl: g
|
|
2614
2465
|
} = e.navigation;
|
|
2615
|
-
if (u =
|
|
2466
|
+
if (u = $(u), g = $(g), e.enabled) {
|
|
2616
2467
|
a();
|
|
2617
2468
|
return;
|
|
2618
2469
|
}
|
|
2619
|
-
[...u, ...
|
|
2620
|
-
}), s("click", (u,
|
|
2470
|
+
[...u, ...g].filter((S) => !!S).forEach((S) => S.classList.add(e.params.navigation.lockClass));
|
|
2471
|
+
}), s("click", (u, g) => {
|
|
2621
2472
|
let {
|
|
2622
|
-
nextEl:
|
|
2473
|
+
nextEl: S,
|
|
2623
2474
|
prevEl: p
|
|
2624
2475
|
} = e.navigation;
|
|
2625
|
-
|
|
2626
|
-
const
|
|
2627
|
-
let
|
|
2628
|
-
if (e.isElement && !
|
|
2629
|
-
const
|
|
2630
|
-
|
|
2476
|
+
S = $(S), p = $(p);
|
|
2477
|
+
const v = g.target;
|
|
2478
|
+
let w = p.includes(v) || S.includes(v);
|
|
2479
|
+
if (e.isElement && !w) {
|
|
2480
|
+
const x = g.path || g.composedPath && g.composedPath();
|
|
2481
|
+
x && (w = x.find((b) => S.includes(b) || p.includes(b)));
|
|
2631
2482
|
}
|
|
2632
|
-
if (e.params.navigation.hideOnClick && !
|
|
2633
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el ===
|
|
2483
|
+
if (e.params.navigation.hideOnClick && !w) {
|
|
2484
|
+
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === v || e.pagination.el.contains(v)))
|
|
2634
2485
|
return;
|
|
2635
|
-
let
|
|
2636
|
-
|
|
2486
|
+
let x;
|
|
2487
|
+
S.length ? x = S[0].classList.contains(e.params.navigation.hiddenClass) : p.length && (x = p[0].classList.contains(e.params.navigation.hiddenClass)), n(x === !0 ? "navigationShow" : "navigationHide"), [...S, ...p].filter((b) => !!b).forEach((b) => b.classList.toggle(e.params.navigation.hiddenClass));
|
|
2637
2488
|
}
|
|
2638
2489
|
});
|
|
2639
2490
|
const m = () => {
|
|
@@ -2768,22 +2619,22 @@ const Ge = [
|
|
|
2768
2619
|
"zoom",
|
|
2769
2620
|
"control"
|
|
2770
2621
|
];
|
|
2771
|
-
function
|
|
2622
|
+
function j(t) {
|
|
2772
2623
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
|
2773
2624
|
}
|
|
2774
|
-
function
|
|
2625
|
+
function Y(t, e) {
|
|
2775
2626
|
const i = ["__proto__", "constructor", "prototype"];
|
|
2776
2627
|
Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
|
|
2777
|
-
typeof t[s] > "u" ? t[s] = e[s] :
|
|
2628
|
+
typeof t[s] > "u" ? t[s] = e[s] : j(e[s]) && j(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : Y(t[s], e[s]) : t[s] = e[s];
|
|
2778
2629
|
});
|
|
2779
2630
|
}
|
|
2780
2631
|
function De(t) {
|
|
2781
2632
|
return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
|
|
2782
2633
|
}
|
|
2783
|
-
function
|
|
2634
|
+
function Ve(t) {
|
|
2784
2635
|
return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
|
|
2785
2636
|
}
|
|
2786
|
-
function
|
|
2637
|
+
function Be(t) {
|
|
2787
2638
|
return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
|
|
2788
2639
|
}
|
|
2789
2640
|
function Ne(t) {
|
|
@@ -2807,37 +2658,37 @@ function ui(t) {
|
|
|
2807
2658
|
scrollbarEl: a,
|
|
2808
2659
|
paginationEl: o
|
|
2809
2660
|
} = t;
|
|
2810
|
-
const d = n.filter((
|
|
2661
|
+
const d = n.filter((E) => E !== "children" && E !== "direction" && E !== "wrapperClass"), {
|
|
2811
2662
|
params: c,
|
|
2812
2663
|
pagination: f,
|
|
2813
2664
|
navigation: m,
|
|
2814
2665
|
scrollbar: h,
|
|
2815
2666
|
virtual: u,
|
|
2816
|
-
thumbs:
|
|
2667
|
+
thumbs: g
|
|
2817
2668
|
} = e;
|
|
2818
|
-
let
|
|
2819
|
-
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (
|
|
2820
|
-
const P = (
|
|
2821
|
-
e[
|
|
2669
|
+
let S, p, v, w, x, b, C, M;
|
|
2670
|
+
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (S = !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 && (v = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && h && !h.el && (w = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (c.navigation || c.navigation === !1) && m && !m.prevEl && !m.nextEl && (x = !0);
|
|
2671
|
+
const P = (E) => {
|
|
2672
|
+
e[E] && (e[E].destroy(), E === "navigation" ? (e.isElement && (e[E].prevEl.remove(), e[E].nextEl.remove()), c[E].prevEl = void 0, c[E].nextEl = void 0, e[E].prevEl = void 0, e[E].nextEl = void 0) : (e.isElement && e[E].el.remove(), c[E].el = void 0, e[E].el = void 0));
|
|
2822
2673
|
};
|
|
2823
|
-
n.includes("loop") && e.isElement && (c.loop && !s.loop ?
|
|
2824
|
-
if (
|
|
2825
|
-
Object.assign(c[
|
|
2674
|
+
n.includes("loop") && e.isElement && (c.loop && !s.loop ? b = !0 : !c.loop && s.loop ? C = !0 : M = !0), d.forEach((E) => {
|
|
2675
|
+
if (j(c[E]) && j(s[E]))
|
|
2676
|
+
Object.assign(c[E], s[E]), (E === "navigation" || E === "pagination" || E === "scrollbar") && "enabled" in s[E] && !s[E].enabled && P(E);
|
|
2826
2677
|
else {
|
|
2827
|
-
const
|
|
2828
|
-
(
|
|
2678
|
+
const T = s[E];
|
|
2679
|
+
(T === !0 || T === !1) && (E === "navigation" || E === "pagination" || E === "scrollbar") ? T === !1 && P(E) : c[E] = s[E];
|
|
2829
2680
|
}
|
|
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 && (
|
|
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 && (M = !0), S && g.init() && g.update(!0), p && (e.controller.control = c.controller.control), v && (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()), w && (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()), x && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), we(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"), we(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), (b || M) && e.loopDestroy(), (C || M) && e.loopCreate(), e.update();
|
|
2831
2682
|
}
|
|
2832
2683
|
function pi(t, e) {
|
|
2833
2684
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2834
2685
|
const i = {
|
|
2835
2686
|
on: {}
|
|
2836
2687
|
}, s = {}, n = {};
|
|
2837
|
-
|
|
2688
|
+
Y(i, ue), i._emitClasses = !0, i.init = !1;
|
|
2838
2689
|
const r = {}, l = Ge.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
|
|
2839
2690
|
return Object.keys(a).forEach((o) => {
|
|
2840
|
-
typeof t[o] > "u" || (l.indexOf(o) >= 0 ?
|
|
2691
|
+
typeof t[o] > "u" || (l.indexOf(o) >= 0 ? j(t[o]) ? (i[o] = {}, n[o] = {}, Y(i[o], t[o]), Y(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]);
|
|
2841
2692
|
}), ["navigation", "pagination", "scrollbar"].forEach((o) => {
|
|
2842
2693
|
i[o] === !0 && (i[o] = {}), i[o] === !1 && delete i[o];
|
|
2843
2694
|
}), {
|
|
@@ -2856,7 +2707,7 @@ function mi(t, e) {
|
|
|
2856
2707
|
scrollbarEl: l,
|
|
2857
2708
|
swiper: a
|
|
2858
2709
|
} = t;
|
|
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),
|
|
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), Ve(e) && r && (a.params.pagination.el = r, a.originalParams.pagination.el = r), Be(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(i);
|
|
2860
2711
|
}
|
|
2861
2712
|
function hi(t, e, i, s, n) {
|
|
2862
2713
|
const r = [];
|
|
@@ -2871,7 +2722,7 @@ function hi(t, e, i, s, n) {
|
|
|
2871
2722
|
}
|
|
2872
2723
|
return Ge.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
|
|
2873
2724
|
if (o in t && o in e)
|
|
2874
|
-
if (
|
|
2725
|
+
if (j(t[o]) && j(e[o])) {
|
|
2875
2726
|
const d = Object.keys(t[o]), c = Object.keys(e[o]);
|
|
2876
2727
|
d.length !== c.length ? l(o) : (d.forEach((f) => {
|
|
2877
2728
|
t[o][f] !== e[o][f] && l(o);
|
|
@@ -2885,23 +2736,23 @@ function hi(t, e, i, s, n) {
|
|
|
2885
2736
|
const gi = (t) => {
|
|
2886
2737
|
!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());
|
|
2887
2738
|
};
|
|
2888
|
-
function
|
|
2889
|
-
return
|
|
2739
|
+
function ie() {
|
|
2740
|
+
return ie = Object.assign ? Object.assign.bind() : function(t) {
|
|
2890
2741
|
for (var e = 1; e < arguments.length; e++) {
|
|
2891
2742
|
var i = arguments[e];
|
|
2892
2743
|
for (var s in i)
|
|
2893
2744
|
Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
|
|
2894
2745
|
}
|
|
2895
2746
|
return t;
|
|
2896
|
-
},
|
|
2747
|
+
}, ie.apply(this, arguments);
|
|
2897
2748
|
}
|
|
2898
|
-
function
|
|
2749
|
+
function Fe(t) {
|
|
2899
2750
|
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
2900
2751
|
}
|
|
2901
|
-
function
|
|
2752
|
+
function ke(t) {
|
|
2902
2753
|
const e = [];
|
|
2903
|
-
return
|
|
2904
|
-
|
|
2754
|
+
return A.Children.toArray(t).forEach((i) => {
|
|
2755
|
+
Fe(i) ? e.push(i) : i.props && i.props.children && ke(i.props.children).forEach((s) => e.push(s));
|
|
2905
2756
|
}), e;
|
|
2906
2757
|
}
|
|
2907
2758
|
function vi(t) {
|
|
@@ -2911,13 +2762,13 @@ function vi(t) {
|
|
|
2911
2762
|
"wrapper-start": [],
|
|
2912
2763
|
"wrapper-end": []
|
|
2913
2764
|
};
|
|
2914
|
-
return
|
|
2915
|
-
if (
|
|
2765
|
+
return A.Children.toArray(t).forEach((s) => {
|
|
2766
|
+
if (Fe(s))
|
|
2916
2767
|
e.push(s);
|
|
2917
2768
|
else if (s.props && s.props.slot && i[s.props.slot])
|
|
2918
2769
|
i[s.props.slot].push(s);
|
|
2919
2770
|
else if (s.props && s.props.children) {
|
|
2920
|
-
const n =
|
|
2771
|
+
const n = ke(s.props.children);
|
|
2921
2772
|
n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
|
|
2922
2773
|
} else
|
|
2923
2774
|
i["container-end"].push(s);
|
|
@@ -2942,16 +2793,16 @@ function wi(t, e, i) {
|
|
|
2942
2793
|
} = i, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, d = [];
|
|
2943
2794
|
for (let c = a; c < o; c += 1)
|
|
2944
2795
|
c >= r && c <= l && d.push(e[s(c)]);
|
|
2945
|
-
return d.map((c, f) => /* @__PURE__ */
|
|
2796
|
+
return d.map((c, f) => /* @__PURE__ */ A.cloneElement(c, {
|
|
2946
2797
|
swiper: t,
|
|
2947
2798
|
style: n,
|
|
2948
2799
|
key: c.props.virtualIndex || c.key || `slide-${f}`
|
|
2949
2800
|
}));
|
|
2950
2801
|
}
|
|
2951
|
-
function
|
|
2952
|
-
return typeof window > "u" ?
|
|
2802
|
+
function U(t, e) {
|
|
2803
|
+
return typeof window > "u" ? ce(t, e) : He(t, e);
|
|
2953
2804
|
}
|
|
2954
|
-
const
|
|
2805
|
+
const Ee = /* @__PURE__ */ Pe(null), Si = /* @__PURE__ */ Pe(null), Ti = /* @__PURE__ */ ye(function(t, e) {
|
|
2955
2806
|
let {
|
|
2956
2807
|
className: i,
|
|
2957
2808
|
tag: s = "div",
|
|
@@ -2960,111 +2811,111 @@ const ye = /* @__PURE__ */ Me(null), Si = /* @__PURE__ */ Me(null), Ti = /* @__P
|
|
|
2960
2811
|
onSwiper: l,
|
|
2961
2812
|
...a
|
|
2962
2813
|
} = t === void 0 ? {} : t, o = !1;
|
|
2963
|
-
const [d, c] =
|
|
2814
|
+
const [d, c] = X("swiper"), [f, m] = X(null), [h, u] = X(!1), g = k(!1), S = k(null), p = k(null), v = k(null), w = k(null), x = k(null), b = k(null), C = k(null), M = k(null), {
|
|
2964
2815
|
params: P,
|
|
2965
|
-
passedParams:
|
|
2966
|
-
rest:
|
|
2816
|
+
passedParams: E,
|
|
2817
|
+
rest: T,
|
|
2967
2818
|
events: y
|
|
2968
2819
|
} = pi(a), {
|
|
2969
2820
|
slides: I,
|
|
2970
|
-
slots:
|
|
2971
|
-
} = vi(r),
|
|
2821
|
+
slots: z
|
|
2822
|
+
} = vi(r), B = () => {
|
|
2972
2823
|
u(!h);
|
|
2973
2824
|
};
|
|
2974
2825
|
Object.assign(P.on, {
|
|
2975
|
-
_containerClasses(
|
|
2976
|
-
c(
|
|
2826
|
+
_containerClasses(O, F) {
|
|
2827
|
+
c(F);
|
|
2977
2828
|
}
|
|
2978
2829
|
});
|
|
2979
|
-
const
|
|
2830
|
+
const N = () => {
|
|
2980
2831
|
Object.assign(P.on, y), o = !0;
|
|
2981
|
-
const
|
|
2832
|
+
const O = {
|
|
2982
2833
|
...P
|
|
2983
2834
|
};
|
|
2984
|
-
if (delete
|
|
2835
|
+
if (delete O.wrapperClass, p.current = new me(O), p.current.virtual && p.current.params.virtual.enabled) {
|
|
2985
2836
|
p.current.virtual.slides = I;
|
|
2986
|
-
const
|
|
2837
|
+
const F = {
|
|
2987
2838
|
cache: !1,
|
|
2988
2839
|
slides: I,
|
|
2989
2840
|
renderExternal: m,
|
|
2990
2841
|
renderExternalUpdate: !1
|
|
2991
2842
|
};
|
|
2992
|
-
|
|
2843
|
+
Y(p.current.params.virtual, F), Y(p.current.originalParams.virtual, F);
|
|
2993
2844
|
}
|
|
2994
2845
|
};
|
|
2995
|
-
|
|
2996
|
-
const
|
|
2997
|
-
o || !y || !p.current || Object.keys(y).forEach((
|
|
2998
|
-
p.current.on(
|
|
2846
|
+
S.current || N(), p.current && p.current.on("_beforeBreakpoint", B);
|
|
2847
|
+
const L = () => {
|
|
2848
|
+
o || !y || !p.current || Object.keys(y).forEach((O) => {
|
|
2849
|
+
p.current.on(O, y[O]);
|
|
2999
2850
|
});
|
|
3000
|
-
},
|
|
3001
|
-
!y || !p.current || Object.keys(y).forEach((
|
|
3002
|
-
p.current.off(
|
|
2851
|
+
}, _ = () => {
|
|
2852
|
+
!y || !p.current || Object.keys(y).forEach((O) => {
|
|
2853
|
+
p.current.off(O, y[O]);
|
|
3003
2854
|
});
|
|
3004
2855
|
};
|
|
3005
|
-
|
|
3006
|
-
p.current && p.current.off("_beforeBreakpoint",
|
|
3007
|
-
}),
|
|
3008
|
-
!
|
|
3009
|
-
}),
|
|
3010
|
-
if (e && (e.current =
|
|
3011
|
-
return p.current.destroyed &&
|
|
3012
|
-
el:
|
|
3013
|
-
nextEl:
|
|
3014
|
-
prevEl:
|
|
3015
|
-
paginationEl:
|
|
3016
|
-
scrollbarEl:
|
|
2856
|
+
ce(() => () => {
|
|
2857
|
+
p.current && p.current.off("_beforeBreakpoint", B);
|
|
2858
|
+
}), ce(() => {
|
|
2859
|
+
!g.current && p.current && (p.current.emitSlidesClasses(), g.current = !0);
|
|
2860
|
+
}), U(() => {
|
|
2861
|
+
if (e && (e.current = S.current), !!S.current)
|
|
2862
|
+
return p.current.destroyed && N(), mi({
|
|
2863
|
+
el: S.current,
|
|
2864
|
+
nextEl: x.current,
|
|
2865
|
+
prevEl: b.current,
|
|
2866
|
+
paginationEl: C.current,
|
|
2867
|
+
scrollbarEl: M.current,
|
|
3017
2868
|
swiper: p.current
|
|
3018
2869
|
}, P), l && !p.current.destroyed && l(p.current), () => {
|
|
3019
2870
|
p.current && !p.current.destroyed && p.current.destroy(!0, !1);
|
|
3020
2871
|
};
|
|
3021
|
-
}, []),
|
|
3022
|
-
|
|
3023
|
-
const
|
|
3024
|
-
return
|
|
2872
|
+
}, []), U(() => {
|
|
2873
|
+
L();
|
|
2874
|
+
const O = hi(E, v.current, I, w.current, (F) => F.key);
|
|
2875
|
+
return v.current = E, w.current = I, O.length && p.current && !p.current.destroyed && ui({
|
|
3025
2876
|
swiper: p.current,
|
|
3026
2877
|
slides: I,
|
|
3027
|
-
passedParams:
|
|
3028
|
-
changedParams:
|
|
3029
|
-
nextEl:
|
|
3030
|
-
prevEl:
|
|
3031
|
-
scrollbarEl:
|
|
3032
|
-
paginationEl:
|
|
2878
|
+
passedParams: E,
|
|
2879
|
+
changedParams: O,
|
|
2880
|
+
nextEl: x.current,
|
|
2881
|
+
prevEl: b.current,
|
|
2882
|
+
scrollbarEl: M.current,
|
|
2883
|
+
paginationEl: C.current
|
|
3033
2884
|
}), () => {
|
|
3034
|
-
|
|
2885
|
+
_();
|
|
3035
2886
|
};
|
|
3036
|
-
}),
|
|
2887
|
+
}), U(() => {
|
|
3037
2888
|
gi(p.current);
|
|
3038
2889
|
}, [f]);
|
|
3039
|
-
function
|
|
3040
|
-
return P.virtual ? wi(p.current, I, f) : I.map((
|
|
2890
|
+
function G() {
|
|
2891
|
+
return P.virtual ? wi(p.current, I, f) : I.map((O, F) => /* @__PURE__ */ A.cloneElement(O, {
|
|
3041
2892
|
swiper: p.current,
|
|
3042
|
-
swiperSlideIndex:
|
|
2893
|
+
swiperSlideIndex: F
|
|
3043
2894
|
}));
|
|
3044
2895
|
}
|
|
3045
|
-
return /* @__PURE__ */
|
|
3046
|
-
ref:
|
|
2896
|
+
return /* @__PURE__ */ A.createElement(s, ie({
|
|
2897
|
+
ref: S,
|
|
3047
2898
|
className: Ne(`${d}${i ? ` ${i}` : ""}`)
|
|
3048
|
-
},
|
|
2899
|
+
}, T), /* @__PURE__ */ A.createElement(Si.Provider, {
|
|
3049
2900
|
value: p.current
|
|
3050
|
-
},
|
|
2901
|
+
}, z["container-start"], /* @__PURE__ */ A.createElement(n, {
|
|
3051
2902
|
className: fi(P.wrapperClass)
|
|
3052
|
-
},
|
|
3053
|
-
ref:
|
|
2903
|
+
}, z["wrapper-start"], G(), z["wrapper-end"]), De(P) && /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement("div", {
|
|
2904
|
+
ref: b,
|
|
3054
2905
|
className: "swiper-button-prev"
|
|
3055
|
-
}), /* @__PURE__ */
|
|
3056
|
-
ref:
|
|
2906
|
+
}), /* @__PURE__ */ A.createElement("div", {
|
|
2907
|
+
ref: x,
|
|
3057
2908
|
className: "swiper-button-next"
|
|
3058
|
-
})),
|
|
3059
|
-
ref: C,
|
|
3060
|
-
className: "swiper-scrollbar"
|
|
3061
|
-
}), Be(P) && /* @__PURE__ */ B.createElement("div", {
|
|
2909
|
+
})), Be(P) && /* @__PURE__ */ A.createElement("div", {
|
|
3062
2910
|
ref: M,
|
|
2911
|
+
className: "swiper-scrollbar"
|
|
2912
|
+
}), Ve(P) && /* @__PURE__ */ A.createElement("div", {
|
|
2913
|
+
ref: C,
|
|
3063
2914
|
className: "swiper-pagination"
|
|
3064
|
-
}),
|
|
2915
|
+
}), z["container-end"]));
|
|
3065
2916
|
});
|
|
3066
2917
|
Ti.displayName = "Swiper";
|
|
3067
|
-
const bi = /* @__PURE__ */
|
|
2918
|
+
const bi = /* @__PURE__ */ ye(function(t, e) {
|
|
3068
2919
|
let {
|
|
3069
2920
|
tag: i = "div",
|
|
3070
2921
|
children: s,
|
|
@@ -3076,21 +2927,21 @@ const bi = /* @__PURE__ */ Pe(function(t, e) {
|
|
|
3076
2927
|
swiperSlideIndex: d,
|
|
3077
2928
|
...c
|
|
3078
2929
|
} = t === void 0 ? {} : t;
|
|
3079
|
-
const f =
|
|
3080
|
-
function
|
|
3081
|
-
|
|
2930
|
+
const f = k(null), [m, h] = X("swiper-slide"), [u, g] = X(!1);
|
|
2931
|
+
function S(x, b, C) {
|
|
2932
|
+
b === f.current && h(C);
|
|
3082
2933
|
}
|
|
3083
|
-
|
|
2934
|
+
U(() => {
|
|
3084
2935
|
if (typeof d < "u" && (f.current.swiperSlideIndex = d), e && (e.current = f.current), !(!f.current || !r)) {
|
|
3085
2936
|
if (r.destroyed) {
|
|
3086
2937
|
m !== "swiper-slide" && h("swiper-slide");
|
|
3087
2938
|
return;
|
|
3088
2939
|
}
|
|
3089
|
-
return r.on("_slideClass",
|
|
3090
|
-
r && r.off("_slideClass",
|
|
2940
|
+
return r.on("_slideClass", S), () => {
|
|
2941
|
+
r && r.off("_slideClass", S);
|
|
3091
2942
|
};
|
|
3092
2943
|
}
|
|
3093
|
-
}),
|
|
2944
|
+
}), U(() => {
|
|
3094
2945
|
r && f.current && !r.destroyed && h(r.getSlideClasses(f.current));
|
|
3095
2946
|
}, [r]);
|
|
3096
2947
|
const p = {
|
|
@@ -3098,33 +2949,35 @@ const bi = /* @__PURE__ */ Pe(function(t, e) {
|
|
|
3098
2949
|
isVisible: m.indexOf("swiper-slide-visible") >= 0,
|
|
3099
2950
|
isPrev: m.indexOf("swiper-slide-prev") >= 0,
|
|
3100
2951
|
isNext: m.indexOf("swiper-slide-next") >= 0
|
|
3101
|
-
},
|
|
3102
|
-
|
|
2952
|
+
}, v = () => typeof s == "function" ? s(p) : s, w = () => {
|
|
2953
|
+
g(!0);
|
|
3103
2954
|
};
|
|
3104
|
-
return /* @__PURE__ */
|
|
2955
|
+
return /* @__PURE__ */ A.createElement(i, ie({
|
|
3105
2956
|
ref: f,
|
|
3106
2957
|
className: Ne(`${m}${n ? ` ${n}` : ""}`),
|
|
3107
2958
|
"data-swiper-slide-index": o,
|
|
3108
|
-
onLoad:
|
|
3109
|
-
}, c), l && /* @__PURE__ */
|
|
2959
|
+
onLoad: w
|
|
2960
|
+
}, c), l && /* @__PURE__ */ A.createElement(Ee.Provider, {
|
|
3110
2961
|
value: p
|
|
3111
|
-
}, /* @__PURE__ */
|
|
2962
|
+
}, /* @__PURE__ */ A.createElement("div", {
|
|
3112
2963
|
className: "swiper-zoom-container",
|
|
3113
2964
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
3114
|
-
},
|
|
2965
|
+
}, v(), a && !u && /* @__PURE__ */ A.createElement("div", {
|
|
3115
2966
|
className: "swiper-lazy-preloader"
|
|
3116
|
-
}))), !l && /* @__PURE__ */
|
|
2967
|
+
}))), !l && /* @__PURE__ */ A.createElement(Ee.Provider, {
|
|
3117
2968
|
value: p
|
|
3118
|
-
},
|
|
2969
|
+
}, v(), a && !u && /* @__PURE__ */ A.createElement("div", {
|
|
3119
2970
|
className: "swiper-lazy-preloader"
|
|
3120
2971
|
})));
|
|
3121
2972
|
});
|
|
3122
2973
|
bi.displayName = "SwiperSlide";
|
|
3123
2974
|
export {
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
2975
|
+
Ei as N,
|
|
2976
|
+
Ti as S,
|
|
2977
|
+
bi as a,
|
|
2978
|
+
me as b,
|
|
2979
|
+
J as c,
|
|
2980
|
+
q as d,
|
|
2981
|
+
D as g,
|
|
2982
|
+
Me as n
|
|
3130
2983
|
};
|