md-components-mdigial-azamat 0.0.112 → 0.0.113
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/ActionCardList/ActionCardList.js +28 -5
- package/dist/ActionCardList/index.js +1 -1
- package/dist/ActionCardList/info.js +1 -1
- package/dist/ActionCardSecondaryList/ActionCardSecondaryList.js +32 -0
- package/dist/ActionCardSecondaryList/index.js +6 -0
- package/dist/ActionCardSecondaryList/info.js +11 -0
- package/dist/ActionCardSecondaryList/schema.js +51 -0
- package/dist/ActionCardSecondaryList/types.js +4 -0
- package/dist/ActionIconList/ActionIconList.js +25 -2
- package/dist/AllComponents.js +28 -5
- package/dist/AllComponentsInfo.js +111 -95
- package/dist/AnimatedSwiper/index.js +40 -38
- package/dist/CardImageList/CardImageList.js +122 -81
- package/dist/CardImageList/schema.js +17 -12
- package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
- package/dist/Cards/ActionSecondaryCard/index.js +6 -0
- package/dist/Cards/ActionSecondaryCard/info.js +11 -0
- package/dist/Cards/ActionSecondaryCard/types.js +4 -0
- package/dist/Cards/CardImage/CardImage.js +48 -50
- package/dist/Cards/InfoCard/InfoCard.js +114 -0
- package/dist/Cards/InfoCard/index.js +9 -0
- package/dist/Cards/InfoCard/info.js +11 -0
- package/dist/Cards/InfoCard/schema.js +60 -0
- package/dist/Cards/InfoCard/types.js +4 -0
- package/dist/Cards/PostCard/PostCard.js +60 -0
- package/dist/Cards/PostCard/index.js +6 -0
- package/dist/Cards/PostCard/info.js +11 -0
- package/dist/Cards/PostCard/types.js +4 -0
- package/dist/Cards/WarningCard/WarningCard.js +27 -4
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/info.js +1 -1
- package/dist/Cards/WarningCard/model.js +1 -1
- package/dist/CurrencyRates/CurrencyRates.js +78 -0
- package/dist/CurrencyRates/components/Calculator.js +101 -0
- package/dist/CurrencyRates/components/RateCell.js +15 -0
- package/dist/CurrencyRates/components/RatesTable.js +134 -0
- package/dist/CurrencyRates/components/index.js +6 -0
- package/dist/CurrencyRates/index.js +8 -0
- package/dist/CurrencyRates/info.js +11 -0
- package/dist/CurrencyRates/schema.js +63 -0
- package/dist/CurrencyRates/types.js +4 -0
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
- package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
- package/dist/Faq/Faq.js +1 -1
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
- package/dist/Faq/components/FeedbackForm/index.js +1 -1
- package/dist/FieldInput-ef2a18d4.js +2743 -0
- package/dist/Forms/FormDefault/FormDefault.js +12 -0
- package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
- package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
- package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
- package/dist/Forms/FormDefault/components/FormContent.js +10 -0
- package/dist/Forms/FormDefault/components/FormFields.js +7 -0
- package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
- package/dist/Forms/FormDefault/components/index.js +6 -0
- package/dist/Forms/FormDefault/hooks/index.js +10 -0
- package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
- package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
- package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
- package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
- package/dist/Forms/FormDefault/index.js +6 -12
- package/dist/Forms/FormDefault/info.js +3 -115
- package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
- package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
- package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
- package/dist/Forms/FormDefault/model/index.js +13 -0
- package/dist/Forms/FormDefault/model/requestForm.js +4 -0
- package/dist/Forms/{model/components.js → FormDefault/schema.js} +32 -5
- package/dist/Forms/FormDefault/utils.js +20 -0
- package/dist/Grid-331af266.js +80 -0
- package/dist/Header/Header.js +54 -42
- package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +21 -19
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
- package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
- package/dist/HeroIconsBanner/HeroIconsBanner.js +25 -25
- package/dist/IconList/IconList.js +60 -54
- package/dist/InfoCardList/InfoCardList.js +100 -0
- package/dist/InfoCardList/index.js +6 -0
- package/dist/InfoCardList/info.js +11 -0
- package/dist/InfoCardList/schema.js +39 -0
- package/dist/InfoCardList/types.js +1 -0
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PostsList/PostsList.js +78 -0
- package/dist/PostsList/index.js +4 -0
- package/dist/PostsList/info.js +11 -0
- package/dist/PostsList/schema.js +49 -0
- package/dist/PostsList/types.js +1 -0
- package/dist/PostsSlider/PostsSlider.js +78 -0
- package/dist/PostsSlider/index.js +4 -0
- package/dist/PostsSlider/info.js +11 -0
- package/dist/PostsSlider/schema.js +49 -0
- package/dist/PostsSlider/types.js +1 -0
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/SearchBlock/SearchBlock.js +36 -37
- package/dist/SegmentedContent/SegmentedContent.js +160 -0
- package/dist/SegmentedContent/components/ContentCard.js +50 -0
- package/dist/SegmentedContent/components/index.js +4 -0
- package/dist/SegmentedContent/index.js +8 -0
- package/dist/SegmentedContent/info.js +12 -0
- package/dist/SegmentedContent/schema.js +108 -0
- package/dist/SegmentedContent/types.js +1 -0
- package/dist/Segments/Segments.js +36 -28
- package/dist/Segments/index.js +8 -2
- package/dist/Segments/info.js +1 -1
- package/dist/Segments/schema.js +21 -0
- package/dist/Segments/types.js +4 -1
- package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
- package/dist/SegmentsIcons/index.js +8 -0
- package/dist/SegmentsIcons/info.js +11 -0
- package/dist/SegmentsIcons/schema.js +14 -0
- package/dist/SegmentsIcons/types.js +1 -0
- package/dist/SwiperList/SwiperList.js +13 -11
- package/dist/assets/index.css +1 -1
- package/dist/{componentsMap-cac6c316.js → componentsMap-29ccdfcc.js} +5 -3
- package/dist/{data.mock-ebc679ec.js → data.mock-bb32e8ee.js} +420 -148
- package/dist/index-0791c17f.js +56 -0
- package/dist/index-2ec92a04.js +32 -0
- package/dist/index.esm-0558519f.js +1171 -0
- package/dist/info-72904479.js +791 -0
- package/dist/main.js +151 -119
- package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
- package/dist/navigation-266856e7.js +136 -0
- package/dist/navigation-cd786a0d.js +133 -0
- package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
- package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
- package/dist/types-c3843cc0.js +4 -0
- package/dist/useDraggableScroll-440da9b7.js +29 -0
- package/dist/useTranslation-d7a3ca6f.js +298 -0
- package/package.json +1 -1
- package/dist/FileLoader/fileLoader.js +0 -22
- package/dist/FileLoader/index.js +0 -8
- package/dist/Forms/FormDefault/componentTypes.js +0 -31
- package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
- package/dist/Forms/helpers/renderFormFields.js +0 -7
- package/dist/Forms/model/requestForm.js +0 -4
- package/dist/index-6686852d.js +0 -1794
- package/dist/index-a0ed2e4a.js +0 -1221
- package/dist/info-d05a1f02.js +0 -1547
- package/dist/navigation-b894d0cd.js +0 -183
- /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import A, { forwardRef as
|
|
2
|
-
function
|
|
1
|
+
import A, { forwardRef as Ee, useState as q, useRef as R, useEffect as oe, useLayoutEffect as ke, createContext as ye } from "react";
|
|
2
|
+
function me(t) {
|
|
3
3
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function ue(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] : me(e[s]) && me(t[s]) && Object.keys(e[s]).length > 0 && ue(t[s], e[s]);
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const Pe = {
|
|
13
13
|
body: {},
|
|
14
14
|
addEventListener() {
|
|
15
15
|
},
|
|
@@ -64,12 +64,12 @@ const Ce = {
|
|
|
64
64
|
search: ""
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
function
|
|
67
|
+
function j() {
|
|
68
68
|
const t = typeof document < "u" ? document : {};
|
|
69
|
-
return
|
|
69
|
+
return ue(t, Pe), t;
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
document:
|
|
71
|
+
const He = {
|
|
72
|
+
document: Pe,
|
|
73
73
|
navigator: {
|
|
74
74
|
userAgent: ""
|
|
75
75
|
},
|
|
@@ -126,14 +126,14 @@ const We = {
|
|
|
126
126
|
typeof setTimeout > "u" || clearTimeout(t);
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
|
-
function
|
|
129
|
+
function V() {
|
|
130
130
|
const t = typeof window < "u" ? window : {};
|
|
131
|
-
return
|
|
131
|
+
return ue(t, He), t;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function We(t) {
|
|
134
134
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function je(t) {
|
|
137
137
|
const e = t;
|
|
138
138
|
Object.keys(e).forEach((i) => {
|
|
139
139
|
try {
|
|
@@ -149,64 +149,64 @@ function qe(t) {
|
|
|
149
149
|
function Me(t, e) {
|
|
150
150
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Z() {
|
|
153
153
|
return Date.now();
|
|
154
154
|
}
|
|
155
155
|
function Ye(t) {
|
|
156
|
-
const e =
|
|
156
|
+
const e = V();
|
|
157
157
|
let i;
|
|
158
158
|
return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function qe(t, e) {
|
|
161
161
|
e === void 0 && (e = "x");
|
|
162
|
-
const i =
|
|
162
|
+
const i = V();
|
|
163
163
|
let s, n, r;
|
|
164
164
|
const l = Ye(t);
|
|
165
165
|
return i.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(n === "none" ? "" : n)) : (r = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? n = r.m41 : s.length === 16 ? n = parseFloat(s[12]) : n = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? n = r.m42 : s.length === 16 ? n = parseFloat(s[13]) : n = parseFloat(s[5])), n || 0;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function U(t) {
|
|
168
168
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Xe(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 D() {
|
|
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];
|
|
177
|
-
if (s != null && !
|
|
177
|
+
if (s != null && !Xe(s)) {
|
|
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 && (U(t[a]) && U(s[a]) ? s[a].__swiper__ ? t[a] = s[a] : D(t[a], s[a]) : !U(t[a]) && U(s[a]) ? (t[a] = {}, s[a].__swiper__ ? t[a] = s[a] : D(t[a], s[a])) : t[a] = s[a]);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
return t;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function K(t, e, i) {
|
|
188
188
|
t.style.setProperty(e, i);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Ce(t) {
|
|
191
191
|
let {
|
|
192
192
|
swiper: e,
|
|
193
193
|
targetPosition: i,
|
|
194
194
|
side: s
|
|
195
195
|
} = t;
|
|
196
|
-
const n =
|
|
196
|
+
const n = V(), r = -e.translate;
|
|
197
197
|
let l = null, a;
|
|
198
198
|
const o = e.params.speed;
|
|
199
199
|
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
200
|
-
const d = i > r ? "next" : "prev", c = (
|
|
200
|
+
const d = i > r ? "next" : "prev", c = (u, m) => d === "next" && u >= m || d === "prev" && u <= m, f = () => {
|
|
201
201
|
a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
|
|
202
|
-
const
|
|
203
|
-
let
|
|
204
|
-
if (c(
|
|
205
|
-
[s]:
|
|
206
|
-
}), c(
|
|
202
|
+
const u = Math.max(Math.min((a - l) / o, 1), 0), m = 0.5 - Math.cos(u * Math.PI) / 2;
|
|
203
|
+
let p = r + m * (i - r);
|
|
204
|
+
if (c(p, i) && (p = i), e.wrapperEl.scrollTo({
|
|
205
|
+
[s]: p
|
|
206
|
+
}), c(p, i)) {
|
|
207
207
|
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
208
208
|
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
209
|
-
[s]:
|
|
209
|
+
[s]: p
|
|
210
210
|
});
|
|
211
211
|
}), n.cancelAnimationFrame(e.cssModeFrameID);
|
|
212
212
|
return;
|
|
@@ -215,12 +215,12 @@ function Ie(t) {
|
|
|
215
215
|
};
|
|
216
216
|
f();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function k(t, e) {
|
|
219
219
|
e === void 0 && (e = "");
|
|
220
|
-
const i =
|
|
220
|
+
const i = V(), s = [...t.children];
|
|
221
221
|
return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((n) => n.matches(e)) : s;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Ue(t, e) {
|
|
224
224
|
const i = [e];
|
|
225
225
|
for (; i.length > 0; ) {
|
|
226
226
|
const s = i.shift();
|
|
@@ -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 Ke(t, e) {
|
|
233
|
+
const i = V();
|
|
234
234
|
let s = e.contains(t);
|
|
235
|
-
return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s =
|
|
235
|
+
return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = Ue(t, e))), s;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function J(t) {
|
|
238
238
|
try {
|
|
239
239
|
console.warn(t);
|
|
240
240
|
return;
|
|
241
241
|
} catch {
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function de(t, e) {
|
|
245
245
|
e === void 0 && (e = []);
|
|
246
246
|
const i = document.createElement(t);
|
|
247
|
-
return i.classList.add(...Array.isArray(e) ? e :
|
|
247
|
+
return i.classList.add(...Array.isArray(e) ? e : We(e)), i;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Qe(t, e) {
|
|
250
250
|
const i = [];
|
|
251
251
|
for (; t.previousElementSibling; ) {
|
|
252
252
|
const s = t.previousElementSibling;
|
|
@@ -254,7 +254,7 @@ function Ze(t, e) {
|
|
|
254
254
|
}
|
|
255
255
|
return i;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ze(t, e) {
|
|
258
258
|
const i = [];
|
|
259
259
|
for (; t.nextElementSibling; ) {
|
|
260
260
|
const s = t.nextElementSibling;
|
|
@@ -262,10 +262,10 @@ function Je(t, e) {
|
|
|
262
262
|
}
|
|
263
263
|
return i;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
return
|
|
265
|
+
function H(t, e) {
|
|
266
|
+
return V().getComputedStyle(t, null).getPropertyValue(e);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function he(t) {
|
|
269
269
|
let e = t, i;
|
|
270
270
|
if (e) {
|
|
271
271
|
for (i = 0; (e = e.previousSibling) !== null; )
|
|
@@ -273,57 +273,57 @@ function ge(t) {
|
|
|
273
273
|
return i;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Je(t, e) {
|
|
277
277
|
const i = [];
|
|
278
278
|
let s = t.parentElement;
|
|
279
279
|
for (; s; )
|
|
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 ge(t, e, i) {
|
|
284
|
+
const s = V();
|
|
285
285
|
return i ? t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom")) : t.offsetWidth;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function bi(t) {
|
|
288
288
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function ve(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
|
|
296
|
-
function
|
|
297
|
-
const t =
|
|
295
|
+
let te;
|
|
296
|
+
function et() {
|
|
297
|
+
const t = V(), e = j();
|
|
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
|
-
function
|
|
304
|
-
return
|
|
303
|
+
function Ie() {
|
|
304
|
+
return te || (te = et()), te;
|
|
305
305
|
}
|
|
306
|
-
let
|
|
307
|
-
function
|
|
306
|
+
let ie;
|
|
307
|
+
function tt(t) {
|
|
308
308
|
let {
|
|
309
309
|
userAgent: e
|
|
310
310
|
} = t === void 0 ? {} : t;
|
|
311
|
-
const i =
|
|
311
|
+
const i = Ie(), s = V(), n = s.navigator.platform, r = e || s.navigator.userAgent, l = {
|
|
312
312
|
ios: !1,
|
|
313
313
|
android: !1
|
|
314
314
|
}, a = s.screen.width, o = s.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
315
315
|
let c = r.match(/(iPad).*OS\s([\d_]+)/);
|
|
316
|
-
const f = r.match(/(iPod)(.*OS\s([\d_]+))?/),
|
|
317
|
-
let
|
|
318
|
-
const
|
|
319
|
-
return !c &&
|
|
316
|
+
const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), u = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), m = n === "Win32";
|
|
317
|
+
let p = n === "MacIntel";
|
|
318
|
+
const v = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
319
|
+
return !c && p && i.touch && v.indexOf(`${a}x${o}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), p = !1), d && !m && (l.os = "android", l.android = !0), (c || u || 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 = {}), ie || (ie = tt(t)), ie;
|
|
323
323
|
}
|
|
324
|
-
let
|
|
325
|
-
function
|
|
326
|
-
const t =
|
|
324
|
+
let se;
|
|
325
|
+
function it() {
|
|
326
|
+
const t = V(), e = Oe();
|
|
327
327
|
let i = !1;
|
|
328
328
|
function s() {
|
|
329
329
|
const a = t.navigator.userAgent.toLowerCase();
|
|
@@ -344,16 +344,16 @@ function st() {
|
|
|
344
344
|
isWebView: n
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
347
|
+
function Le() {
|
|
348
|
+
return se || (se = it()), se;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function st(t) {
|
|
351
351
|
let {
|
|
352
352
|
swiper: e,
|
|
353
353
|
on: i,
|
|
354
354
|
emit: s
|
|
355
355
|
} = t;
|
|
356
|
-
const n =
|
|
356
|
+
const n = V();
|
|
357
357
|
let r = null, l = null;
|
|
358
358
|
const a = () => {
|
|
359
359
|
!e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
|
|
@@ -361,18 +361,18 @@ function rt(t) {
|
|
|
361
361
|
!e || e.destroyed || !e.initialized || (r = new ResizeObserver((f) => {
|
|
362
362
|
l = n.requestAnimationFrame(() => {
|
|
363
363
|
const {
|
|
364
|
-
width:
|
|
365
|
-
height:
|
|
364
|
+
width: u,
|
|
365
|
+
height: m
|
|
366
366
|
} = e;
|
|
367
|
-
let
|
|
368
|
-
f.forEach((
|
|
367
|
+
let p = u, v = m;
|
|
368
|
+
f.forEach((M) => {
|
|
369
369
|
let {
|
|
370
|
-
contentBoxSize:
|
|
371
|
-
contentRect:
|
|
372
|
-
target:
|
|
373
|
-
} =
|
|
374
|
-
|
|
375
|
-
}), (
|
|
370
|
+
contentBoxSize: h,
|
|
371
|
+
contentRect: S,
|
|
372
|
+
target: g
|
|
373
|
+
} = M;
|
|
374
|
+
g && g !== e.el || (p = S ? S.width : (h[0] || h).inlineSize, v = S ? S.height : (h[0] || h).blockSize);
|
|
375
|
+
}), (p !== u || v !== m) && a();
|
|
376
376
|
});
|
|
377
377
|
}), r.observe(e.el));
|
|
378
378
|
}, d = () => {
|
|
@@ -390,36 +390,36 @@ function rt(t) {
|
|
|
390
390
|
d(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", c);
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function rt(t) {
|
|
394
394
|
let {
|
|
395
395
|
swiper: e,
|
|
396
396
|
extendParams: i,
|
|
397
397
|
on: s,
|
|
398
398
|
emit: n
|
|
399
399
|
} = t;
|
|
400
|
-
const r = [], l =
|
|
400
|
+
const r = [], l = V(), a = function(c, f) {
|
|
401
401
|
f === void 0 && (f = {});
|
|
402
|
-
const
|
|
402
|
+
const u = l.MutationObserver || l.WebkitMutationObserver, m = new u((p) => {
|
|
403
403
|
if (e.__preventObserver__)
|
|
404
404
|
return;
|
|
405
|
-
if (
|
|
406
|
-
n("observerUpdate",
|
|
405
|
+
if (p.length === 1) {
|
|
406
|
+
n("observerUpdate", p[0]);
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
|
-
const
|
|
410
|
-
n("observerUpdate",
|
|
409
|
+
const v = function() {
|
|
410
|
+
n("observerUpdate", p[0]);
|
|
411
411
|
};
|
|
412
|
-
l.requestAnimationFrame ? l.requestAnimationFrame(
|
|
412
|
+
l.requestAnimationFrame ? l.requestAnimationFrame(v) : l.setTimeout(v, 0);
|
|
413
413
|
});
|
|
414
|
-
|
|
414
|
+
m.observe(c, {
|
|
415
415
|
attributes: typeof f.attributes > "u" ? !0 : f.attributes,
|
|
416
416
|
childList: e.isElement || (typeof f.childList > "u" ? !0 : f).childList,
|
|
417
417
|
characterData: typeof f.characterData > "u" ? !0 : f.characterData
|
|
418
|
-
}), r.push(
|
|
418
|
+
}), r.push(m);
|
|
419
419
|
}, o = () => {
|
|
420
420
|
if (e.params.observer) {
|
|
421
421
|
if (e.params.observeParents) {
|
|
422
|
-
const c =
|
|
422
|
+
const c = Je(e.hostEl);
|
|
423
423
|
for (let f = 0; f < c.length; f += 1)
|
|
424
424
|
a(c[f]);
|
|
425
425
|
}
|
|
@@ -440,7 +440,7 @@ function nt(t) {
|
|
|
440
440
|
observeSlideChildren: !1
|
|
441
441
|
}), s("init", o), s("destroy", d);
|
|
442
442
|
}
|
|
443
|
-
var
|
|
443
|
+
var nt = {
|
|
444
444
|
on(t, e, i) {
|
|
445
445
|
const s = this;
|
|
446
446
|
if (!s.eventsListeners || s.destroyed || typeof e != "function")
|
|
@@ -500,20 +500,20 @@ var at = {
|
|
|
500
500
|
}), t;
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
|
-
function
|
|
503
|
+
function at() {
|
|
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(H(s, "padding-left") || 0, 10) - parseInt(H(s, "padding-right") || 0, 10), i = i - parseInt(H(s, "padding-top") || 0, 10) - parseInt(H(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
|
|
511
511
|
}));
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function lt() {
|
|
514
514
|
const t = this;
|
|
515
|
-
function e(
|
|
516
|
-
return parseFloat(
|
|
515
|
+
function e(w, x) {
|
|
516
|
+
return parseFloat(w.getPropertyValue(t.getDirectionLabel(x)) || 0);
|
|
517
517
|
}
|
|
518
518
|
const i = t.params, {
|
|
519
519
|
wrapperEl: s,
|
|
@@ -521,114 +521,114 @@ 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 =
|
|
525
|
-
let
|
|
526
|
-
const
|
|
527
|
-
let
|
|
528
|
-
typeof
|
|
529
|
-
let
|
|
530
|
-
typeof
|
|
531
|
-
const
|
|
532
|
-
let
|
|
524
|
+
} = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, c = k(n, `.${t.params.slideClass}, swiper-slide`), f = o ? t.virtual.slides.length : c.length;
|
|
525
|
+
let u = [];
|
|
526
|
+
const m = [], p = [];
|
|
527
|
+
let v = i.slidesOffsetBefore;
|
|
528
|
+
typeof v == "function" && (v = i.slidesOffsetBefore.call(t));
|
|
529
|
+
let M = i.slidesOffsetAfter;
|
|
530
|
+
typeof M == "function" && (M = i.slidesOffsetAfter.call(t));
|
|
531
|
+
const h = t.snapGrid.length, S = t.slidesGrid.length;
|
|
532
|
+
let g = i.spaceBetween, E = -v, b = 0, P = 0;
|
|
533
533
|
if (typeof r > "u")
|
|
534
534
|
return;
|
|
535
|
-
typeof
|
|
536
|
-
l ?
|
|
537
|
-
}), i.centeredSlides && i.cssMode && (
|
|
538
|
-
const
|
|
539
|
-
|
|
540
|
-
let
|
|
541
|
-
const
|
|
542
|
-
for (let
|
|
543
|
-
|
|
544
|
-
let
|
|
545
|
-
if (c[
|
|
535
|
+
typeof g == "string" && g.indexOf("%") >= 0 ? g = parseFloat(g.replace("%", "")) / 100 * r : typeof g == "string" && (g = parseFloat(g)), t.virtualSize = -g, c.forEach((w) => {
|
|
536
|
+
l ? w.style.marginLeft = "" : w.style.marginRight = "", w.style.marginBottom = "", w.style.marginTop = "";
|
|
537
|
+
}), i.centeredSlides && i.cssMode && (K(s, "--swiper-centered-offset-before", ""), K(s, "--swiper-centered-offset-after", ""));
|
|
538
|
+
const C = i.grid && i.grid.rows > 1 && t.grid;
|
|
539
|
+
C ? t.grid.initSlides(c) : t.grid && t.grid.unsetSlides();
|
|
540
|
+
let y;
|
|
541
|
+
const T = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((w) => typeof i.breakpoints[w].slidesPerView < "u").length > 0;
|
|
542
|
+
for (let w = 0; w < f; w += 1) {
|
|
543
|
+
y = 0;
|
|
544
|
+
let x;
|
|
545
|
+
if (c[w] && (x = c[w]), C && t.grid.updateSlide(w, x, c), !(c[w] && H(x, "display") === "none")) {
|
|
546
546
|
if (i.slidesPerView === "auto") {
|
|
547
|
-
|
|
548
|
-
const I = getComputedStyle(
|
|
549
|
-
if (z && (
|
|
550
|
-
|
|
547
|
+
T && (c[w].style[t.getDirectionLabel("width")] = "");
|
|
548
|
+
const I = getComputedStyle(x), z = x.style.transform, B = x.style.webkitTransform;
|
|
549
|
+
if (z && (x.style.transform = "none"), B && (x.style.webkitTransform = "none"), i.roundLengths)
|
|
550
|
+
y = t.isHorizontal() ? ge(x, "width", !0) : ge(x, "height", !0);
|
|
551
551
|
else {
|
|
552
|
-
const N = e(I, "width"),
|
|
552
|
+
const N = e(I, "width"), O = e(I, "padding-left"), _ = e(I, "padding-right"), G = e(I, "margin-left"), L = e(I, "margin-right"), F = I.getPropertyValue("box-sizing");
|
|
553
553
|
if (F && F === "border-box")
|
|
554
|
-
|
|
554
|
+
y = N + G + L;
|
|
555
555
|
else {
|
|
556
556
|
const {
|
|
557
557
|
clientWidth: Re,
|
|
558
558
|
offsetWidth: $e
|
|
559
|
-
} =
|
|
560
|
-
|
|
559
|
+
} = x;
|
|
560
|
+
y = N + O + _ + G + L + ($e - Re);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
z && (
|
|
563
|
+
z && (x.style.transform = z), B && (x.style.webkitTransform = B), i.roundLengths && (y = Math.floor(y));
|
|
564
564
|
} else
|
|
565
|
-
|
|
566
|
-
c[
|
|
565
|
+
y = (r - (i.slidesPerView - 1) * g) / i.slidesPerView, i.roundLengths && (y = Math.floor(y)), c[w] && (c[w].style[t.getDirectionLabel("width")] = `${y}px`);
|
|
566
|
+
c[w] && (c[w].swiperSlideSize = y), p.push(y), i.centeredSlides ? (E = E + y / 2 + b / 2 + g, b === 0 && w !== 0 && (E = E - r / 2 - g), w === 0 && (E = E - r / 2 - g), Math.abs(E) < 1 / 1e3 && (E = 0), i.roundLengths && (E = Math.floor(E)), P % i.slidesPerGroup === 0 && u.push(E), m.push(E)) : (i.roundLengths && (E = Math.floor(E)), (P - Math.min(t.params.slidesPerGroupSkip, P)) % t.params.slidesPerGroup === 0 && u.push(E), m.push(E), E = E + y + g), t.virtualSize += y + g, b = y, P += 1;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
if (t.virtualSize = Math.max(t.virtualSize, r) +
|
|
570
|
-
const
|
|
571
|
-
for (let
|
|
572
|
-
let I =
|
|
573
|
-
i.roundLengths && (I = Math.floor(I)),
|
|
569
|
+
if (t.virtualSize = Math.max(t.virtualSize, r) + M, l && a && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + g}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + g}px`), C && t.grid.updateWrapperSize(y, u), !i.centeredSlides) {
|
|
570
|
+
const w = [];
|
|
571
|
+
for (let x = 0; x < u.length; x += 1) {
|
|
572
|
+
let I = u[x];
|
|
573
|
+
i.roundLengths && (I = Math.floor(I)), u[x] <= t.virtualSize - r && w.push(I);
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
u = w, Math.floor(t.virtualSize - r) - Math.floor(u[u.length - 1]) > 1 && u.push(t.virtualSize - r);
|
|
576
576
|
}
|
|
577
577
|
if (o && i.loop) {
|
|
578
|
-
const
|
|
578
|
+
const w = p[0] + g;
|
|
579
579
|
if (i.slidesPerGroup > 1) {
|
|
580
|
-
const
|
|
581
|
-
for (let z = 0; z <
|
|
582
|
-
|
|
580
|
+
const x = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), I = w * i.slidesPerGroup;
|
|
581
|
+
for (let z = 0; z < x; z += 1)
|
|
582
|
+
u.push(u[u.length - 1] + I);
|
|
583
583
|
}
|
|
584
|
-
for (let
|
|
585
|
-
i.slidesPerGroup === 1 &&
|
|
584
|
+
for (let x = 0; x < t.virtual.slidesBefore + t.virtual.slidesAfter; x += 1)
|
|
585
|
+
i.slidesPerGroup === 1 && u.push(u[u.length - 1] + w), m.push(m[m.length - 1] + w), t.virtualSize += w;
|
|
586
586
|
}
|
|
587
|
-
if (
|
|
588
|
-
const
|
|
589
|
-
c.filter((
|
|
590
|
-
|
|
587
|
+
if (u.length === 0 && (u = [0]), g !== 0) {
|
|
588
|
+
const w = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
589
|
+
c.filter((x, I) => !i.cssMode || i.loop ? !0 : I !== c.length - 1).forEach((x) => {
|
|
590
|
+
x.style[w] = `${g}px`;
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
if (i.centeredSlides && i.centeredSlidesBounds) {
|
|
594
|
-
let
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}),
|
|
598
|
-
const
|
|
599
|
-
|
|
594
|
+
let w = 0;
|
|
595
|
+
p.forEach((I) => {
|
|
596
|
+
w += I + (g || 0);
|
|
597
|
+
}), w -= g;
|
|
598
|
+
const x = w > r ? w - r : 0;
|
|
599
|
+
u = u.map((I) => I <= 0 ? -v : I > x ? x + M : I);
|
|
600
600
|
}
|
|
601
601
|
if (i.centerInsufficientSlides) {
|
|
602
|
-
let
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
}),
|
|
606
|
-
const
|
|
607
|
-
if (
|
|
608
|
-
const I = (r -
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}),
|
|
612
|
-
|
|
602
|
+
let w = 0;
|
|
603
|
+
p.forEach((I) => {
|
|
604
|
+
w += I + (g || 0);
|
|
605
|
+
}), w -= g;
|
|
606
|
+
const x = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
|
|
607
|
+
if (w + x < r) {
|
|
608
|
+
const I = (r - w - x) / 2;
|
|
609
|
+
u.forEach((z, B) => {
|
|
610
|
+
u[B] = z - I;
|
|
611
|
+
}), m.forEach((z, B) => {
|
|
612
|
+
m[B] = z + I;
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
if (Object.assign(t, {
|
|
617
617
|
slides: c,
|
|
618
|
-
snapGrid:
|
|
619
|
-
slidesGrid:
|
|
620
|
-
slidesSizesGrid:
|
|
618
|
+
snapGrid: u,
|
|
619
|
+
slidesGrid: m,
|
|
620
|
+
slidesSizesGrid: p
|
|
621
621
|
}), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
|
|
622
|
-
|
|
623
|
-
const
|
|
624
|
-
t.snapGrid = t.snapGrid.map((I) => I +
|
|
622
|
+
K(s, "--swiper-centered-offset-before", `${-u[0]}px`), K(s, "--swiper-centered-offset-after", `${t.size / 2 - p[p.length - 1] / 2}px`);
|
|
623
|
+
const w = -t.snapGrid[0], x = -t.slidesGrid[0];
|
|
624
|
+
t.snapGrid = t.snapGrid.map((I) => I + w), t.slidesGrid = t.slidesGrid.map((I) => I + x);
|
|
625
625
|
}
|
|
626
|
-
if (f !== d && t.emit("slidesLengthChange"),
|
|
627
|
-
const
|
|
628
|
-
f <= i.maxBackfaceHiddenSlides ?
|
|
626
|
+
if (f !== d && t.emit("slidesLengthChange"), u.length !== h && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), m.length !== S && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
|
|
627
|
+
const w = `${i.containerModifierClass}backface-hidden`, x = t.el.classList.contains(w);
|
|
628
|
+
f <= i.maxBackfaceHiddenSlides ? x || t.el.classList.add(w) : x && t.el.classList.remove(w);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function ot(t) {
|
|
632
632
|
const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
|
|
633
633
|
let n = 0, r;
|
|
634
634
|
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
@@ -654,15 +654,15 @@ function dt(t) {
|
|
|
654
654
|
}
|
|
655
655
|
(n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function dt() {
|
|
658
658
|
const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
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 we = (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
|
-
function
|
|
665
|
+
function ct(t) {
|
|
666
666
|
t === void 0 && (t = this && this.translate || 0);
|
|
667
667
|
const e = this, i = e.params, {
|
|
668
668
|
slides: s,
|
|
@@ -680,11 +680,11 @@ 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),
|
|
684
|
-
|
|
683
|
+
const f = (l + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), u = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), m = -(l - c), p = m + e.slidesSizesGrid[o], v = m >= 0 && m <= e.size - e.slidesSizesGrid[o], M = m >= 0 && m < e.size - 1 || p > 1 && p <= e.size || m <= 0 && p >= e.size;
|
|
684
|
+
M && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)), we(d, M, i.slideVisibleClass), we(d, v, i.slideFullyVisibleClass), d.progress = n ? -f : f, d.originalProgress = n ? -u : u;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function ft(t) {
|
|
688
688
|
const e = this;
|
|
689
689
|
if (typeof t > "u") {
|
|
690
690
|
const c = e.rtlTranslate ? -1 : 1;
|
|
@@ -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),
|
|
710
|
-
|
|
709
|
+
const c = e.getSlideIndexByData(0), f = e.getSlideIndexByData(e.slides.length - 1), u = e.slidesGrid[c], m = e.slidesGrid[f], p = e.slidesGrid[e.slidesGrid.length - 1], v = Math.abs(t);
|
|
710
|
+
v >= u ? a = (v - u) / p : a = (v + p - m) / p, a > 1 && (a -= 1);
|
|
711
711
|
}
|
|
712
712
|
Object.assign(e, {
|
|
713
713
|
progress: n,
|
|
@@ -716,16 +716,16 @@ 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 re = (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
|
-
function
|
|
722
|
+
function ut() {
|
|
723
723
|
const t = this, {
|
|
724
724
|
slides: e,
|
|
725
725
|
params: i,
|
|
726
726
|
slidesEl: s,
|
|
727
727
|
activeIndex: n
|
|
728
|
-
} = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (f) =>
|
|
728
|
+
} = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (f) => k(s, `.${i.slideClass}${f}, swiper-slide${f}`)[0];
|
|
729
729
|
let o, d, c;
|
|
730
730
|
if (r)
|
|
731
731
|
if (i.loop) {
|
|
@@ -735,11 +735,11 @@ function pt() {
|
|
|
735
735
|
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
736
736
|
else
|
|
737
737
|
l ? (o = e.find((f) => f.column === n), c = e.find((f) => f.column === n + 1), d = e.find((f) => f.column === n - 1)) : o = e[n];
|
|
738
|
-
o && (l || (c =
|
|
739
|
-
|
|
738
|
+
o && (l || (c = Ze(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !c && (c = e[0]), d = Qe(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((f) => {
|
|
739
|
+
re(f, f === o, i.slideActiveClass), re(f, f === c, i.slideNextClass), re(f, f === d, i.slidePrevClass);
|
|
740
740
|
}), t.emitSlidesClasses();
|
|
741
741
|
}
|
|
742
|
-
const
|
|
742
|
+
const Q = (t, e) => {
|
|
743
743
|
if (!t || t.destroyed || !t.params)
|
|
744
744
|
return;
|
|
745
745
|
const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
|
|
@@ -749,12 +749,12 @@ const Z = (t, e) => {
|
|
|
749
749
|
s.shadowRoot && (n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
|
|
750
750
|
})), n && n.remove();
|
|
751
751
|
}
|
|
752
|
-
},
|
|
752
|
+
}, ne = (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
|
+
}, ce = (t) => {
|
|
758
758
|
if (!t || t.destroyed || !t.params)
|
|
759
759
|
return;
|
|
760
760
|
let e = t.params.lazyPreloadPrevNext;
|
|
@@ -768,7 +768,7 @@ const Z = (t, e) => {
|
|
|
768
768
|
a.push(...Array.from({
|
|
769
769
|
length: e
|
|
770
770
|
}).map((o, d) => l + s + d)), t.slides.forEach((o, d) => {
|
|
771
|
-
a.includes(o.column) &&
|
|
771
|
+
a.includes(o.column) && ne(t, d);
|
|
772
772
|
});
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
@@ -776,13 +776,13 @@ const Z = (t, e) => {
|
|
|
776
776
|
if (t.params.rewind || t.params.loop)
|
|
777
777
|
for (let l = n - e; l <= r + e; l += 1) {
|
|
778
778
|
const a = (l % i + i) % i;
|
|
779
|
-
(a < n || a > r) &&
|
|
779
|
+
(a < n || a > r) && ne(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) && ne(t, l);
|
|
784
784
|
};
|
|
785
|
-
function
|
|
785
|
+
function pt(t) {
|
|
786
786
|
const {
|
|
787
787
|
slidesGrid: e,
|
|
788
788
|
params: i
|
|
@@ -792,7 +792,7 @@ function mt(t) {
|
|
|
792
792
|
typeof e[r + 1] < "u" ? s >= e[r] && s < e[r + 1] - (e[r + 1] - e[r]) / 2 ? n = r : s >= e[r] && s < e[r + 1] && (n = r + 1) : s >= e[r] && (n = r);
|
|
793
793
|
return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function mt(t) {
|
|
796
796
|
const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
|
|
797
797
|
snapGrid: s,
|
|
798
798
|
params: n,
|
|
@@ -801,15 +801,15 @@ function ht(t) {
|
|
|
801
801
|
snapIndex: a
|
|
802
802
|
} = e;
|
|
803
803
|
let o = t, d;
|
|
804
|
-
const c = (
|
|
805
|
-
let
|
|
806
|
-
return
|
|
804
|
+
const c = (m) => {
|
|
805
|
+
let p = m - e.virtual.slidesBefore;
|
|
806
|
+
return p < 0 && (p = e.virtual.slides.length + p), p >= e.virtual.slides.length && (p -= e.virtual.slides.length), p;
|
|
807
807
|
};
|
|
808
|
-
if (typeof o > "u" && (o =
|
|
808
|
+
if (typeof o > "u" && (o = pt(e)), s.indexOf(i) >= 0)
|
|
809
809
|
d = s.indexOf(i);
|
|
810
810
|
else {
|
|
811
|
-
const
|
|
812
|
-
d =
|
|
811
|
+
const m = Math.min(n.slidesPerGroupSkip, o);
|
|
812
|
+
d = m + Math.floor((o - m) / n.slidesPerGroup);
|
|
813
813
|
}
|
|
814
814
|
if (d >= s.length && (d = s.length - 1), o === r && !e.params.loop) {
|
|
815
815
|
d !== a && (e.snapIndex = d, e.emit("snapIndexChange"));
|
|
@@ -820,28 +820,28 @@ function ht(t) {
|
|
|
820
820
|
return;
|
|
821
821
|
}
|
|
822
822
|
const f = e.grid && n.grid && n.grid.rows > 1;
|
|
823
|
-
let
|
|
823
|
+
let u;
|
|
824
824
|
if (e.virtual && n.virtual.enabled && n.loop)
|
|
825
|
-
|
|
825
|
+
u = c(o);
|
|
826
826
|
else if (f) {
|
|
827
|
-
const
|
|
828
|
-
let
|
|
829
|
-
Number.isNaN(
|
|
827
|
+
const m = e.slides.find((v) => v.column === o);
|
|
828
|
+
let p = parseInt(m.getAttribute("data-swiper-slide-index"), 10);
|
|
829
|
+
Number.isNaN(p) && (p = Math.max(e.slides.indexOf(m), 0)), u = Math.floor(p / n.grid.rows);
|
|
830
830
|
} else if (e.slides[o]) {
|
|
831
|
-
const
|
|
832
|
-
|
|
831
|
+
const m = e.slides[o].getAttribute("data-swiper-slide-index");
|
|
832
|
+
m ? u = parseInt(m, 10) : u = o;
|
|
833
833
|
} else
|
|
834
|
-
|
|
834
|
+
u = o;
|
|
835
835
|
Object.assign(e, {
|
|
836
836
|
previousSnapIndex: a,
|
|
837
837
|
snapIndex: d,
|
|
838
838
|
previousRealIndex: l,
|
|
839
|
-
realIndex:
|
|
839
|
+
realIndex: u,
|
|
840
840
|
previousIndex: r,
|
|
841
841
|
activeIndex: o
|
|
842
|
-
}), e.initialized &&
|
|
842
|
+
}), e.initialized && ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== u && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function ht(t, e) {
|
|
845
845
|
const i = this, s = i.params;
|
|
846
846
|
let n = t.closest(`.${s.slideClass}, swiper-slide`);
|
|
847
847
|
!n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
|
|
@@ -863,18 +863,18 @@ function gt(t, e) {
|
|
|
863
863
|
}
|
|
864
864
|
s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
|
|
865
865
|
}
|
|
866
|
-
var
|
|
867
|
-
updateSize:
|
|
868
|
-
updateSlides:
|
|
869
|
-
updateAutoHeight:
|
|
870
|
-
updateSlidesOffset:
|
|
871
|
-
updateSlidesProgress:
|
|
872
|
-
updateProgress:
|
|
873
|
-
updateSlidesClasses:
|
|
874
|
-
updateActiveIndex:
|
|
875
|
-
updateClickedSlide:
|
|
866
|
+
var gt = {
|
|
867
|
+
updateSize: at,
|
|
868
|
+
updateSlides: lt,
|
|
869
|
+
updateAutoHeight: ot,
|
|
870
|
+
updateSlidesOffset: dt,
|
|
871
|
+
updateSlidesProgress: ct,
|
|
872
|
+
updateProgress: ft,
|
|
873
|
+
updateSlidesClasses: ut,
|
|
874
|
+
updateActiveIndex: mt,
|
|
875
|
+
updateClickedSlide: ht
|
|
876
876
|
};
|
|
877
|
-
function
|
|
877
|
+
function vt(t) {
|
|
878
878
|
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
879
879
|
const e = this, {
|
|
880
880
|
params: i,
|
|
@@ -886,10 +886,10 @@ function wt(t) {
|
|
|
886
886
|
return s ? -n : n;
|
|
887
887
|
if (i.cssMode)
|
|
888
888
|
return n;
|
|
889
|
-
let l =
|
|
889
|
+
let l = qe(r, t);
|
|
890
890
|
return l += e.cssOverflowAdjustment(), s && (l = -l), l || 0;
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function wt(t, e) {
|
|
893
893
|
const i = this, {
|
|
894
894
|
rtlTranslate: s,
|
|
895
895
|
params: n,
|
|
@@ -903,13 +903,13 @@ function St(t, e) {
|
|
|
903
903
|
const f = i.maxTranslate() - i.minTranslate();
|
|
904
904
|
f === 0 ? c = 0 : c = (t - i.minTranslate()) / f, c !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function St() {
|
|
907
907
|
return -this.snapGrid[0];
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Tt() {
|
|
910
910
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function bt(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,
|
|
@@ -925,7 +925,7 @@ function xt(t, e, i, s, n) {
|
|
|
925
925
|
a[f ? "scrollLeft" : "scrollTop"] = -c;
|
|
926
926
|
else {
|
|
927
927
|
if (!r.support.smoothScroll)
|
|
928
|
-
return
|
|
928
|
+
return Ce({
|
|
929
929
|
swiper: r,
|
|
930
930
|
targetPosition: -c,
|
|
931
931
|
side: f ? "left" : "top"
|
|
@@ -937,22 +937,22 @@ function xt(t, e, i, s, n) {
|
|
|
937
937
|
}
|
|
938
938
|
return !0;
|
|
939
939
|
}
|
|
940
|
-
return e === 0 ? (r.setTransition(0), r.setTranslate(c), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(c), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(
|
|
941
|
-
!r || r.destroyed ||
|
|
940
|
+
return e === 0 ? (r.setTransition(0), r.setTranslate(c), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(c), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(u) {
|
|
941
|
+
!r || r.destroyed || u.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
|
|
945
|
-
getTranslate:
|
|
946
|
-
setTranslate:
|
|
947
|
-
minTranslate:
|
|
948
|
-
maxTranslate:
|
|
949
|
-
translateTo:
|
|
944
|
+
var xt = {
|
|
945
|
+
getTranslate: vt,
|
|
946
|
+
setTranslate: wt,
|
|
947
|
+
minTranslate: St,
|
|
948
|
+
maxTranslate: Tt,
|
|
949
|
+
translateTo: bt
|
|
950
950
|
};
|
|
951
|
-
function
|
|
951
|
+
function Et(t, e) {
|
|
952
952
|
const i = this;
|
|
953
953
|
i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function ze(t) {
|
|
956
956
|
let {
|
|
957
957
|
swiper: e,
|
|
958
958
|
runCallbacks: i,
|
|
@@ -966,24 +966,24 @@ function Ae(t) {
|
|
|
966
966
|
let a = s;
|
|
967
967
|
a || (r > l ? a = "next" : r < l ? a = "prev" : a = "reset"), e.emit(`transition${n}`), i && a === "reset" ? e.emit(`slideResetTransition${n}`) : i && r !== l && (e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`));
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function yt(t, e) {
|
|
970
970
|
t === void 0 && (t = !0);
|
|
971
971
|
const i = this, {
|
|
972
972
|
params: s
|
|
973
973
|
} = i;
|
|
974
|
-
s.cssMode || (s.autoHeight && i.updateAutoHeight(),
|
|
974
|
+
s.cssMode || (s.autoHeight && i.updateAutoHeight(), ze({
|
|
975
975
|
swiper: i,
|
|
976
976
|
runCallbacks: t,
|
|
977
977
|
direction: e,
|
|
978
978
|
step: "Start"
|
|
979
979
|
}));
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Pt(t, e) {
|
|
982
982
|
t === void 0 && (t = !0);
|
|
983
983
|
const i = this, {
|
|
984
984
|
params: s
|
|
985
985
|
} = i;
|
|
986
|
-
i.animating = !1, !s.cssMode && (i.setTransition(0),
|
|
986
|
+
i.animating = !1, !s.cssMode && (i.setTransition(0), ze({
|
|
987
987
|
swiper: i,
|
|
988
988
|
runCallbacks: t,
|
|
989
989
|
direction: e,
|
|
@@ -991,11 +991,11 @@ function Ct(t, e) {
|
|
|
991
991
|
}));
|
|
992
992
|
}
|
|
993
993
|
var Mt = {
|
|
994
|
-
setTransition:
|
|
995
|
-
transitionStart:
|
|
996
|
-
transitionEnd:
|
|
994
|
+
setTransition: Et,
|
|
995
|
+
transitionStart: yt,
|
|
996
|
+
transitionEnd: Pt
|
|
997
997
|
};
|
|
998
|
-
function
|
|
998
|
+
function Ct(t, e, i, s, n) {
|
|
999
999
|
t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1000
1000
|
const r = this;
|
|
1001
1001
|
let l = t;
|
|
@@ -1006,58 +1006,58 @@ function It(t, e, i, s, n) {
|
|
|
1006
1006
|
slidesGrid: d,
|
|
1007
1007
|
previousIndex: c,
|
|
1008
1008
|
activeIndex: f,
|
|
1009
|
-
rtlTranslate:
|
|
1010
|
-
wrapperEl:
|
|
1011
|
-
enabled:
|
|
1009
|
+
rtlTranslate: u,
|
|
1010
|
+
wrapperEl: m,
|
|
1011
|
+
enabled: p
|
|
1012
1012
|
} = r;
|
|
1013
|
-
if (!
|
|
1013
|
+
if (!p && !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
|
|
1016
|
+
const v = Math.min(r.params.slidesPerGroupSkip, l);
|
|
1017
|
+
let M = v + Math.floor((l - v) / r.params.slidesPerGroup);
|
|
1018
|
+
M >= o.length && (M = o.length - 1);
|
|
1019
|
+
const h = -o[M];
|
|
1020
1020
|
if (a.normalizeSlideIndex)
|
|
1021
|
-
for (let
|
|
1022
|
-
const
|
|
1023
|
-
typeof d[
|
|
1021
|
+
for (let C = 0; C < d.length; C += 1) {
|
|
1022
|
+
const y = -Math.floor(h * 100), T = Math.floor(d[C] * 100), w = Math.floor(d[C + 1] * 100);
|
|
1023
|
+
typeof d[C + 1] < "u" ? y >= T && y < w - (w - T) / 2 ? l = C : y >= T && y < w && (l = C + 1) : y >= T && (l = C);
|
|
1024
1024
|
}
|
|
1025
|
-
if (r.initialized && l !== f && (!r.allowSlideNext && (
|
|
1025
|
+
if (r.initialized && l !== f && (!r.allowSlideNext && (u ? h > r.translate && h > r.minTranslate() : h < r.translate && h < r.minTranslate()) || !r.allowSlidePrev && h > r.translate && h > r.maxTranslate() && (f || 0) !== l))
|
|
1026
1026
|
return !1;
|
|
1027
|
-
l !== (c || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(
|
|
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(
|
|
1027
|
+
l !== (c || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(h);
|
|
1028
|
+
let S;
|
|
1029
|
+
l > f ? S = "next" : l < f ? S = "prev" : S = "reset";
|
|
1030
|
+
const g = r.virtual && r.params.virtual.enabled;
|
|
1031
|
+
if (!(g && n) && (u && -h === r.translate || !u && h === r.translate))
|
|
1032
|
+
return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(h), S !== "reset" && (r.transitionStart(i, S), r.transitionEnd(i, S)), !1;
|
|
1033
1033
|
if (a.cssMode) {
|
|
1034
|
-
const
|
|
1034
|
+
const C = r.isHorizontal(), y = u ? h : -h;
|
|
1035
1035
|
if (e === 0)
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
})) :
|
|
1036
|
+
g && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), g && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1037
|
+
m[C ? "scrollLeft" : "scrollTop"] = y;
|
|
1038
|
+
})) : m[C ? "scrollLeft" : "scrollTop"] = y, g && requestAnimationFrame(() => {
|
|
1039
1039
|
r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
|
|
1040
1040
|
});
|
|
1041
1041
|
else {
|
|
1042
1042
|
if (!r.support.smoothScroll)
|
|
1043
|
-
return
|
|
1043
|
+
return Ce({
|
|
1044
1044
|
swiper: r,
|
|
1045
|
-
targetPosition:
|
|
1046
|
-
side:
|
|
1045
|
+
targetPosition: y,
|
|
1046
|
+
side: C ? "left" : "top"
|
|
1047
1047
|
}), !0;
|
|
1048
|
-
|
|
1049
|
-
[
|
|
1048
|
+
m.scrollTo({
|
|
1049
|
+
[C ? "left" : "top"]: y,
|
|
1050
1050
|
behavior: "smooth"
|
|
1051
1051
|
});
|
|
1052
1052
|
}
|
|
1053
1053
|
return !0;
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
return
|
|
1057
|
-
!r || r.destroyed ||
|
|
1055
|
+
const P = Le().isSafari;
|
|
1056
|
+
return g && !n && P && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(h), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, S), e === 0 ? r.transitionEnd(i, S) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(y) {
|
|
1057
|
+
!r || r.destroyed || y.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, S));
|
|
1058
1058
|
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function It(t, e, i, s) {
|
|
1061
1061
|
t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1062
1062
|
const n = this;
|
|
1063
1063
|
if (n.destroyed)
|
|
@@ -1071,8 +1071,8 @@ function Lt(t, e, i, s) {
|
|
|
1071
1071
|
else {
|
|
1072
1072
|
let a;
|
|
1073
1073
|
if (r) {
|
|
1074
|
-
const
|
|
1075
|
-
a = n.slides.find((
|
|
1074
|
+
const u = l * n.params.grid.rows;
|
|
1075
|
+
a = n.slides.find((m) => m.getAttribute("data-swiper-slide-index") * 1 === u).column;
|
|
1076
1076
|
} else
|
|
1077
1077
|
a = n.getSlideIndexByData(l);
|
|
1078
1078
|
const o = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
|
|
@@ -1082,17 +1082,17 @@ function Lt(t, e, i, s) {
|
|
|
1082
1082
|
c === "auto" ? c = n.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(n.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
|
|
1083
1083
|
let f = o - a < c;
|
|
1084
1084
|
if (d && (f = f || a < Math.ceil(c / 2)), s && d && n.params.slidesPerView !== "auto" && !r && (f = !1), f) {
|
|
1085
|
-
const
|
|
1085
|
+
const u = d ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
|
|
1086
1086
|
n.loopFix({
|
|
1087
|
-
direction:
|
|
1087
|
+
direction: u,
|
|
1088
1088
|
slideTo: !0,
|
|
1089
|
-
activeSlideIndex:
|
|
1090
|
-
slideRealIndex:
|
|
1089
|
+
activeSlideIndex: u === "next" ? a + 1 : a - o + 1,
|
|
1090
|
+
slideRealIndex: u === "next" ? n.realIndex : void 0
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
1093
|
if (r) {
|
|
1094
|
-
const
|
|
1095
|
-
l = n.slides.find((
|
|
1094
|
+
const u = l * n.params.grid.rows;
|
|
1095
|
+
l = n.slides.find((m) => m.getAttribute("data-swiper-slide-index") * 1 === u).column;
|
|
1096
1096
|
} else
|
|
1097
1097
|
l = n.getSlideIndexByData(l);
|
|
1098
1098
|
}
|
|
@@ -1125,7 +1125,7 @@ function Ot(t, e, i) {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + o, t, e, i);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function Lt(t, e, i) {
|
|
1129
1129
|
e === void 0 && (e = !0);
|
|
1130
1130
|
const s = this, {
|
|
1131
1131
|
params: n,
|
|
@@ -1147,34 +1147,34 @@ 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
|
|
1151
|
-
return
|
|
1152
|
-
}
|
|
1153
|
-
const
|
|
1154
|
-
let
|
|
1155
|
-
if (typeof
|
|
1156
|
-
let
|
|
1157
|
-
r.forEach((
|
|
1158
|
-
|
|
1159
|
-
}), typeof
|
|
1160
|
-
}
|
|
1161
|
-
let
|
|
1162
|
-
if (typeof
|
|
1163
|
-
const
|
|
1164
|
-
return s.slideTo(
|
|
1150
|
+
function u(S) {
|
|
1151
|
+
return S < 0 ? -Math.floor(Math.abs(S)) : Math.floor(S);
|
|
1152
|
+
}
|
|
1153
|
+
const m = u(f), p = r.map((S) => u(S)), v = n.freeMode && n.freeMode.enabled;
|
|
1154
|
+
let M = r[p.indexOf(m) - 1];
|
|
1155
|
+
if (typeof M > "u" && (n.cssMode || v)) {
|
|
1156
|
+
let S;
|
|
1157
|
+
r.forEach((g, E) => {
|
|
1158
|
+
m >= g && (S = E);
|
|
1159
|
+
}), typeof S < "u" && (M = v ? r[S] : r[S > 0 ? S - 1 : S]);
|
|
1160
|
+
}
|
|
1161
|
+
let h = 0;
|
|
1162
|
+
if (typeof M < "u" && (h = l.indexOf(M), h < 0 && (h = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (h = h - s.slidesPerViewDynamic("previous", !0) + 1, h = Math.max(h, 0))), n.rewind && s.isBeginning) {
|
|
1163
|
+
const S = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
|
|
1164
|
+
return s.slideTo(S, t, e, i);
|
|
1165
1165
|
} else if (n.loop && s.activeIndex === 0 && n.cssMode)
|
|
1166
1166
|
return requestAnimationFrame(() => {
|
|
1167
|
-
s.slideTo(
|
|
1167
|
+
s.slideTo(h, t, e, i);
|
|
1168
1168
|
}), !0;
|
|
1169
|
-
return s.slideTo(
|
|
1169
|
+
return s.slideTo(h, t, e, i);
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function zt(t, e, i) {
|
|
1172
1172
|
e === void 0 && (e = !0);
|
|
1173
1173
|
const s = this;
|
|
1174
1174
|
if (!s.destroyed)
|
|
1175
1175
|
return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function At(t, e, i, s) {
|
|
1178
1178
|
e === void 0 && (e = !0), s === void 0 && (s = 0.5);
|
|
1179
1179
|
const n = this;
|
|
1180
1180
|
if (n.destroyed)
|
|
@@ -1191,7 +1191,7 @@ function _t(t, e, i, s) {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, t, e, i);
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function _t() {
|
|
1195
1195
|
const t = this;
|
|
1196
1196
|
if (t.destroyed)
|
|
1197
1197
|
return;
|
|
@@ -1204,20 +1204,20 @@ function Gt() {
|
|
|
1204
1204
|
if (e.loop) {
|
|
1205
1205
|
if (t.animating)
|
|
1206
1206
|
return;
|
|
1207
|
-
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(
|
|
1207
|
+
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(k(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), Me(() => {
|
|
1208
1208
|
t.slideTo(n);
|
|
1209
1209
|
})) : t.slideTo(n);
|
|
1210
1210
|
} else
|
|
1211
1211
|
t.slideTo(n);
|
|
1212
1212
|
}
|
|
1213
|
-
var
|
|
1214
|
-
slideTo:
|
|
1215
|
-
slideToLoop:
|
|
1213
|
+
var Gt = {
|
|
1214
|
+
slideTo: Ct,
|
|
1215
|
+
slideToLoop: It,
|
|
1216
1216
|
slideNext: Ot,
|
|
1217
|
-
slidePrev:
|
|
1218
|
-
slideReset:
|
|
1219
|
-
slideToClosest:
|
|
1220
|
-
slideToClickedSlide:
|
|
1217
|
+
slidePrev: Lt,
|
|
1218
|
+
slideReset: zt,
|
|
1219
|
+
slideToClosest: At,
|
|
1220
|
+
slideToClickedSlide: _t
|
|
1221
1221
|
};
|
|
1222
1222
|
function Vt(t, e) {
|
|
1223
1223
|
const i = this, {
|
|
@@ -1227,35 +1227,35 @@ function Vt(t, e) {
|
|
|
1227
1227
|
if (!s.loop || i.virtual && i.params.virtual.enabled)
|
|
1228
1228
|
return;
|
|
1229
1229
|
const r = () => {
|
|
1230
|
-
|
|
1231
|
-
|
|
1230
|
+
k(n, `.${s.slideClass}, swiper-slide`).forEach((m, p) => {
|
|
1231
|
+
m.setAttribute("data-swiper-slide-index", p);
|
|
1232
1232
|
});
|
|
1233
1233
|
}, l = () => {
|
|
1234
|
-
const
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
}),
|
|
1234
|
+
const u = k(n, `.${s.slideBlankClass}`);
|
|
1235
|
+
u.forEach((m) => {
|
|
1236
|
+
m.remove();
|
|
1237
|
+
}), u.length > 0 && (i.recalcSlides(), i.updateSlides());
|
|
1238
1238
|
}, a = i.grid && s.grid && s.grid.rows > 1;
|
|
1239
1239
|
s.loopAddBlankSlides && (s.slidesPerGroup > 1 || a) && l();
|
|
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 = (
|
|
1241
|
-
for (let
|
|
1242
|
-
const
|
|
1243
|
-
i.slidesEl.append(
|
|
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 = (u) => {
|
|
1241
|
+
for (let m = 0; m < u; m += 1) {
|
|
1242
|
+
const p = i.isElement ? de("swiper-slide", [s.slideBlankClass]) : de("div", [s.slideClass, s.slideBlankClass]);
|
|
1243
|
+
i.slidesEl.append(p);
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
1246
1246
|
if (d) {
|
|
1247
1247
|
if (s.loopAddBlankSlides) {
|
|
1248
|
-
const
|
|
1249
|
-
f(
|
|
1248
|
+
const u = o - i.slides.length % o;
|
|
1249
|
+
f(u), i.recalcSlides(), i.updateSlides();
|
|
1250
1250
|
} else
|
|
1251
|
-
|
|
1251
|
+
J("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
|
-
const
|
|
1256
|
-
f(
|
|
1255
|
+
const u = s.grid.rows - i.slides.length % s.grid.rows;
|
|
1256
|
+
f(u), i.recalcSlides(), i.updateSlides();
|
|
1257
1257
|
} else
|
|
1258
|
-
|
|
1258
|
+
J("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
1259
1259
|
r();
|
|
1260
1260
|
} else
|
|
1261
1261
|
r();
|
|
@@ -1265,7 +1265,7 @@ function Vt(t, e) {
|
|
|
1265
1265
|
initial: e
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Dt(t) {
|
|
1269
1269
|
let {
|
|
1270
1270
|
slideRealIndex: e,
|
|
1271
1271
|
slideTo: i = !0,
|
|
@@ -1283,78 +1283,78 @@ function Bt(t) {
|
|
|
1283
1283
|
const {
|
|
1284
1284
|
slides: c,
|
|
1285
1285
|
allowSlidePrev: f,
|
|
1286
|
-
allowSlideNext:
|
|
1287
|
-
slidesEl:
|
|
1288
|
-
params:
|
|
1286
|
+
allowSlideNext: u,
|
|
1287
|
+
slidesEl: m,
|
|
1288
|
+
params: p
|
|
1289
1289
|
} = d, {
|
|
1290
|
-
centeredSlides:
|
|
1291
|
-
initialSlide:
|
|
1292
|
-
} =
|
|
1293
|
-
if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual &&
|
|
1294
|
-
i && (!
|
|
1290
|
+
centeredSlides: v,
|
|
1291
|
+
initialSlide: M
|
|
1292
|
+
} = p;
|
|
1293
|
+
if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && p.virtual.enabled) {
|
|
1294
|
+
i && (!p.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : p.centeredSlides && d.snapIndex < p.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 = u, d.emit("loopFix");
|
|
1295
1295
|
return;
|
|
1296
1296
|
}
|
|
1297
|
-
let
|
|
1298
|
-
|
|
1299
|
-
const
|
|
1300
|
-
let
|
|
1301
|
-
|
|
1302
|
-
const
|
|
1303
|
-
c.length <
|
|
1304
|
-
const b = [],
|
|
1305
|
-
let
|
|
1306
|
-
typeof r > "u" ? r = d.getSlideIndex(c.find((
|
|
1307
|
-
const
|
|
1297
|
+
let h = p.slidesPerView;
|
|
1298
|
+
h === "auto" ? h = d.slidesPerViewDynamic() : (h = Math.ceil(parseFloat(p.slidesPerView, 10)), v && h % 2 === 0 && (h = h + 1));
|
|
1299
|
+
const S = p.slidesPerGroupAuto ? h : p.slidesPerGroup;
|
|
1300
|
+
let g = v ? Math.max(S, Math.ceil(h / 2)) : S;
|
|
1301
|
+
g % S !== 0 && (g += S - g % S), g += p.loopAdditionalSlides, d.loopedSlides = g;
|
|
1302
|
+
const E = d.grid && p.grid && p.grid.rows > 1;
|
|
1303
|
+
c.length < h + g || d.params.effect === "cards" && c.length < h + g * 2 ? J("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") : E && p.grid.fill === "row" && J("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1304
|
+
const b = [], P = [], C = E ? Math.ceil(c.length / p.grid.rows) : c.length, y = l && C - M < h && !v;
|
|
1305
|
+
let T = y ? M : d.activeIndex;
|
|
1306
|
+
typeof r > "u" ? r = d.getSlideIndex(c.find((O) => O.classList.contains(p.slideActiveClass))) : T = r;
|
|
1307
|
+
const w = s === "next" || !s, x = s === "prev" || !s;
|
|
1308
1308
|
let I = 0, z = 0;
|
|
1309
|
-
const N = (
|
|
1310
|
-
if (N <
|
|
1311
|
-
I = Math.max(
|
|
1312
|
-
for (let
|
|
1313
|
-
const _ =
|
|
1314
|
-
if (
|
|
1315
|
-
const G =
|
|
1316
|
-
for (let
|
|
1317
|
-
c[
|
|
1309
|
+
const N = (E ? c[r].column : r) + (v && typeof n > "u" ? -h / 2 + 0.5 : 0);
|
|
1310
|
+
if (N < g) {
|
|
1311
|
+
I = Math.max(g - N, S);
|
|
1312
|
+
for (let O = 0; O < g - N; O += 1) {
|
|
1313
|
+
const _ = O - Math.floor(O / C) * C;
|
|
1314
|
+
if (E) {
|
|
1315
|
+
const G = C - _ - 1;
|
|
1316
|
+
for (let L = c.length - 1; L >= 0; L -= 1)
|
|
1317
|
+
c[L].column === G && b.push(L);
|
|
1318
1318
|
} else
|
|
1319
|
-
b.push(
|
|
1319
|
+
b.push(C - _ - 1);
|
|
1320
1320
|
}
|
|
1321
|
-
} else if (N +
|
|
1322
|
-
z = Math.max(N - (
|
|
1323
|
-
for (let
|
|
1324
|
-
const _ =
|
|
1325
|
-
|
|
1326
|
-
G.column === _ &&
|
|
1327
|
-
}) :
|
|
1321
|
+
} else if (N + h > C - g) {
|
|
1322
|
+
z = Math.max(N - (C - g * 2), S), y && (z = Math.max(z, h - C + M + 1));
|
|
1323
|
+
for (let O = 0; O < z; O += 1) {
|
|
1324
|
+
const _ = O - Math.floor(O / C) * C;
|
|
1325
|
+
E ? c.forEach((G, L) => {
|
|
1326
|
+
G.column === _ && P.push(L);
|
|
1327
|
+
}) : P.push(_);
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1331
1331
|
d.__preventObserver__ = !1;
|
|
1332
|
-
}), d.params.effect === "cards" && c.length <
|
|
1333
|
-
c[
|
|
1334
|
-
}),
|
|
1335
|
-
c[
|
|
1336
|
-
}), d.recalcSlides(),
|
|
1337
|
-
d.grid.updateSlide(_,
|
|
1338
|
-
}),
|
|
1339
|
-
if (b.length > 0 &&
|
|
1332
|
+
}), d.params.effect === "cards" && c.length < h + g * 2 && (P.includes(r) && P.splice(P.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)), x && b.forEach((O) => {
|
|
1333
|
+
c[O].swiperLoopMoveDOM = !0, m.prepend(c[O]), c[O].swiperLoopMoveDOM = !1;
|
|
1334
|
+
}), w && P.forEach((O) => {
|
|
1335
|
+
c[O].swiperLoopMoveDOM = !0, m.append(c[O]), c[O].swiperLoopMoveDOM = !1;
|
|
1336
|
+
}), d.recalcSlides(), p.slidesPerView === "auto" ? d.updateSlides() : E && (b.length > 0 && x || P.length > 0 && w) && d.slides.forEach((O, _) => {
|
|
1337
|
+
d.grid.updateSlide(_, O, d.slides);
|
|
1338
|
+
}), p.watchSlidesProgress && d.updateSlidesOffset(), i) {
|
|
1339
|
+
if (b.length > 0 && x) {
|
|
1340
1340
|
if (typeof e > "u") {
|
|
1341
|
-
const
|
|
1342
|
-
o ? d.setTranslate(d.translate - G) : (d.slideTo(
|
|
1341
|
+
const O = d.slidesGrid[T], G = d.slidesGrid[T + I] - O;
|
|
1342
|
+
o ? d.setTranslate(d.translate - G) : (d.slideTo(T + 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 O = E ? b.length / p.grid.rows : b.length;
|
|
1345
|
+
d.slideTo(d.activeIndex + O, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
|
|
1346
1346
|
}
|
|
1347
|
-
} else if (
|
|
1347
|
+
} else if (P.length > 0 && w)
|
|
1348
1348
|
if (typeof e > "u") {
|
|
1349
|
-
const
|
|
1350
|
-
o ? d.setTranslate(d.translate - G) : (d.slideTo(
|
|
1349
|
+
const O = d.slidesGrid[T], G = d.slidesGrid[T - z] - O;
|
|
1350
|
+
o ? d.setTranslate(d.translate - G) : (d.slideTo(T - 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 O = E ? P.length / p.grid.rows : P.length;
|
|
1353
|
+
d.slideTo(d.activeIndex - O, 0, !1, !0);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
if (d.allowSlidePrev = f, d.allowSlideNext =
|
|
1357
|
-
const
|
|
1356
|
+
if (d.allowSlidePrev = f, d.allowSlideNext = u, d.controller && d.controller.control && !a) {
|
|
1357
|
+
const O = {
|
|
1358
1358
|
slideRealIndex: e,
|
|
1359
1359
|
direction: s,
|
|
1360
1360
|
setTranslate: n,
|
|
@@ -1363,17 +1363,17 @@ function Bt(t) {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
Array.isArray(d.controller.control) ? d.controller.control.forEach((_) => {
|
|
1365
1365
|
!_.destroyed && _.params.loop && _.loopFix({
|
|
1366
|
-
...
|
|
1367
|
-
slideTo: _.params.slidesPerView ===
|
|
1366
|
+
...O,
|
|
1367
|
+
slideTo: _.params.slidesPerView === p.slidesPerView ? i : !1
|
|
1368
1368
|
});
|
|
1369
1369
|
}) : d.controller.control instanceof d.constructor && d.controller.control.params.loop && d.controller.control.loopFix({
|
|
1370
|
-
...
|
|
1371
|
-
slideTo: d.controller.control.params.slidesPerView ===
|
|
1370
|
+
...O,
|
|
1371
|
+
slideTo: d.controller.control.params.slidesPerView === p.slidesPerView ? i : !1
|
|
1372
1372
|
});
|
|
1373
1373
|
}
|
|
1374
1374
|
d.emit("loopFix");
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function Bt() {
|
|
1377
1377
|
const t = this, {
|
|
1378
1378
|
params: e,
|
|
1379
1379
|
slidesEl: i
|
|
@@ -1391,12 +1391,12 @@ function Nt() {
|
|
|
1391
1391
|
i.append(n);
|
|
1392
1392
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1393
1393
|
}
|
|
1394
|
-
var
|
|
1394
|
+
var Nt = {
|
|
1395
1395
|
loopCreate: Vt,
|
|
1396
|
-
loopFix:
|
|
1397
|
-
loopDestroy:
|
|
1396
|
+
loopFix: Dt,
|
|
1397
|
+
loopDestroy: Bt
|
|
1398
1398
|
};
|
|
1399
|
-
function
|
|
1399
|
+
function Ft(t) {
|
|
1400
1400
|
const e = this;
|
|
1401
1401
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode)
|
|
1402
1402
|
return;
|
|
@@ -1412,13 +1412,13 @@ function Rt() {
|
|
|
1412
1412
|
}));
|
|
1413
1413
|
}
|
|
1414
1414
|
var $t = {
|
|
1415
|
-
setGrabCursor:
|
|
1415
|
+
setGrabCursor: Ft,
|
|
1416
1416
|
unsetGrabCursor: Rt
|
|
1417
1417
|
};
|
|
1418
|
-
function
|
|
1418
|
+
function kt(t, e) {
|
|
1419
1419
|
e === void 0 && (e = this);
|
|
1420
1420
|
function i(s) {
|
|
1421
|
-
if (!s || s ===
|
|
1421
|
+
if (!s || s === j() || s === V())
|
|
1422
1422
|
return null;
|
|
1423
1423
|
s.assignedSlot && (s = s.assignedSlot);
|
|
1424
1424
|
const n = s.closest(t);
|
|
@@ -1426,14 +1426,14 @@ function Ht(t, e) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
return i(e);
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
const s =
|
|
1429
|
+
function Se(t, e, i) {
|
|
1430
|
+
const s = V(), {
|
|
1431
1431
|
params: n
|
|
1432
1432
|
} = t, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
|
|
1433
1433
|
return r && (i <= l || i >= s.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1436
|
-
const e = this, i =
|
|
1435
|
+
function Ht(t) {
|
|
1436
|
+
const e = this, i = j();
|
|
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
|
+
Se(e, s, s.targetTouches[0].pageX);
|
|
1448
1448
|
return;
|
|
1449
1449
|
}
|
|
1450
1450
|
const {
|
|
@@ -1456,20 +1456,20 @@ 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" && !Ke(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
|
-
const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`,
|
|
1464
|
-
if (r.noSwiping && (
|
|
1463
|
+
const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, u = !!(s.target && s.target.shadowRoot);
|
|
1464
|
+
if (r.noSwiping && (u ? kt(f, o) : o.closest(f))) {
|
|
1465
1465
|
e.allowClick = !0;
|
|
1466
1466
|
return;
|
|
1467
1467
|
}
|
|
1468
1468
|
if (r.swipeHandler && !o.closest(r.swipeHandler))
|
|
1469
1469
|
return;
|
|
1470
1470
|
l.currentX = s.pageX, l.currentY = s.pageY;
|
|
1471
|
-
const
|
|
1472
|
-
if (!
|
|
1471
|
+
const m = l.currentX, p = l.currentY;
|
|
1472
|
+
if (!Se(e, s, m))
|
|
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 =
|
|
1481
|
-
let
|
|
1482
|
-
o.matches(n.focusableElements) && (
|
|
1483
|
-
const
|
|
1484
|
-
(r.touchStartForcePreventDefault ||
|
|
1480
|
+
}), l.startX = m, l.startY = p, n.touchStartTime = Z(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
|
|
1481
|
+
let v = !0;
|
|
1482
|
+
o.matches(n.focusableElements) && (v = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== o && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !o.matches(n.focusableElements)) && i.activeElement.blur();
|
|
1483
|
+
const M = v && e.allowTouchMove && r.touchStartPreventDefault;
|
|
1484
|
+
(r.touchStartForcePreventDefault || M) && !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
|
-
function
|
|
1487
|
-
const e =
|
|
1486
|
+
function Wt(t) {
|
|
1487
|
+
const e = j(), 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((P) => P.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 = Z());
|
|
1520
1520
|
return;
|
|
1521
1521
|
}
|
|
1522
1522
|
if (n.touchReleaseOnEdges && !n.loop)
|
|
@@ -1536,12 +1536,12 @@ function jt(t) {
|
|
|
1536
1536
|
return;
|
|
1537
1537
|
}
|
|
1538
1538
|
s.allowTouchCallbacks && i.emit("touchMove", o), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = c, r.currentY = f;
|
|
1539
|
-
const
|
|
1540
|
-
if (i.params.threshold && Math.sqrt(
|
|
1539
|
+
const u = r.currentX - r.startX, m = r.currentY - r.startY;
|
|
1540
|
+
if (i.params.threshold && Math.sqrt(u ** 2 + m ** 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 :
|
|
1543
|
+
let P;
|
|
1544
|
+
i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : u * u + m * m >= 25 && (P = Math.atan2(Math.abs(m), Math.abs(u)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? P > n.touchAngle : 90 - P > 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
|
|
1554
|
-
n.oneWayMovement && (
|
|
1555
|
-
const
|
|
1556
|
-
i.swipeDirection =
|
|
1557
|
-
const
|
|
1553
|
+
let p = i.isHorizontal() ? u : m, v = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
|
1554
|
+
n.oneWayMovement && (p = Math.abs(p) * (l ? 1 : -1), v = Math.abs(v) * (l ? 1 : -1)), r.diff = p, p *= n.touchRatio, l && (p = -p, v = -v);
|
|
1555
|
+
const M = i.touchesDirection;
|
|
1556
|
+
i.swipeDirection = p > 0 ? "prev" : "next", i.touchesDirection = v > 0 ? "prev" : "next";
|
|
1557
|
+
const h = i.params.loop && !n.cssMode, S = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
|
|
1558
1558
|
if (!s.isMoved) {
|
|
1559
|
-
if (
|
|
1559
|
+
if (h && S && i.loopFix({
|
|
1560
1560
|
direction: i.swipeDirection
|
|
1561
1561
|
}), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
|
|
1562
|
-
const
|
|
1562
|
+
const P = 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(P);
|
|
1570
1570
|
}
|
|
1571
1571
|
s.allowMomentumBounce = !1, n.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", o);
|
|
1572
1572
|
}
|
|
1573
|
-
let
|
|
1574
|
-
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove &&
|
|
1573
|
+
let g;
|
|
1574
|
+
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && M !== i.touchesDirection && h && S && Math.abs(p) >= 1) {
|
|
1575
1575
|
Object.assign(r, {
|
|
1576
1576
|
startX: c,
|
|
1577
1577
|
startY: f,
|
|
@@ -1581,18 +1581,18 @@ function jt(t) {
|
|
|
1581
1581
|
}), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
|
-
i.emit("sliderMove", o), s.isMoved = !0, s.currentTranslate =
|
|
1585
|
-
let
|
|
1586
|
-
if (n.touchReleaseOnEdges && (b = 0),
|
|
1584
|
+
i.emit("sliderMove", o), s.isMoved = !0, s.currentTranslate = p + s.startTranslate;
|
|
1585
|
+
let E = !0, b = n.resistanceRatio;
|
|
1586
|
+
if (n.touchReleaseOnEdges && (b = 0), p > 0 ? (h && S && !g && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
|
|
1587
1587
|
direction: "prev",
|
|
1588
1588
|
setTranslate: !0,
|
|
1589
1589
|
activeSlideIndex: 0
|
|
1590
|
-
}), s.currentTranslate > i.minTranslate() && (
|
|
1590
|
+
}), s.currentTranslate > i.minTranslate() && (E = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + p) ** b))) : p < 0 && (h && S && !g && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
|
|
1591
1591
|
direction: "next",
|
|
1592
1592
|
setTranslate: !0,
|
|
1593
1593
|
activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
|
1594
|
-
}), s.currentTranslate < i.maxTranslate() && (
|
|
1595
|
-
if (Math.abs(
|
|
1594
|
+
}), s.currentTranslate < i.maxTranslate() && (E = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - p) ** b))), E && (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
|
+
if (Math.abs(p) > 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;
|
|
1598
1598
|
return;
|
|
@@ -1603,7 +1603,7 @@ 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 jt(t) {
|
|
1607
1607
|
const e = this, i = e.touchEventsData;
|
|
1608
1608
|
let s = t;
|
|
1609
1609
|
s.originalEvent && (s = s.originalEvent);
|
|
@@ -1633,51 +1633,51 @@ function qt(t) {
|
|
|
1633
1633
|
return;
|
|
1634
1634
|
}
|
|
1635
1635
|
l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
1636
|
-
const f =
|
|
1636
|
+
const f = Z(), u = f - i.touchStartTime;
|
|
1637
1637
|
if (e.allowClick) {
|
|
1638
1638
|
const b = s.path || s.composedPath && s.composedPath();
|
|
1639
|
-
e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s),
|
|
1639
|
+
e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), u < 300 && f - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
|
|
1640
1640
|
}
|
|
1641
|
-
if (i.lastClickTime =
|
|
1641
|
+
if (i.lastClickTime = Z(), 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;
|
|
1645
1645
|
return;
|
|
1646
1646
|
}
|
|
1647
1647
|
i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
|
|
1648
|
-
let
|
|
1649
|
-
if (l.followFinger ?
|
|
1648
|
+
let m;
|
|
1649
|
+
if (l.followFinger ? m = o ? e.translate : -e.translate : m = -i.currentTranslate, l.cssMode)
|
|
1650
1650
|
return;
|
|
1651
1651
|
if (l.freeMode && l.freeMode.enabled) {
|
|
1652
1652
|
e.freeMode.onTouchEnd({
|
|
1653
|
-
currentPos:
|
|
1653
|
+
currentPos: m
|
|
1654
1654
|
});
|
|
1655
1655
|
return;
|
|
1656
1656
|
}
|
|
1657
|
-
const
|
|
1658
|
-
let
|
|
1657
|
+
const p = m >= -e.maxTranslate() && !e.params.loop;
|
|
1658
|
+
let v = 0, M = e.slidesSizesGrid[0];
|
|
1659
1659
|
for (let b = 0; b < d.length; b += b < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
|
|
1660
|
-
const
|
|
1661
|
-
typeof d[b +
|
|
1660
|
+
const P = b < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1661
|
+
typeof d[b + P] < "u" ? (p || m >= d[b] && m < d[b + P]) && (v = b, M = d[b + P] - d[b]) : (p || m >= d[b]) && (v = b, M = d[d.length - 1] - d[d.length - 2]);
|
|
1662
1662
|
}
|
|
1663
|
-
let
|
|
1664
|
-
l.rewind && (e.isBeginning ?
|
|
1665
|
-
const
|
|
1666
|
-
if (
|
|
1663
|
+
let h = null, S = null;
|
|
1664
|
+
l.rewind && (e.isBeginning ? S = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (h = 0));
|
|
1665
|
+
const g = (m - d[v]) / M, E = v < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1666
|
+
if (u > l.longSwipesMs) {
|
|
1667
1667
|
if (!l.longSwipes) {
|
|
1668
1668
|
e.slideTo(e.activeIndex);
|
|
1669
1669
|
return;
|
|
1670
1670
|
}
|
|
1671
|
-
e.swipeDirection === "next" && (
|
|
1671
|
+
e.swipeDirection === "next" && (g >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? h : v + E) : e.slideTo(v)), e.swipeDirection === "prev" && (g > 1 - l.longSwipesRatio ? e.slideTo(v + E) : S !== null && g < 0 && Math.abs(g) > l.longSwipesRatio ? e.slideTo(S) : e.slideTo(v));
|
|
1672
1672
|
} else {
|
|
1673
1673
|
if (!l.shortSwipes) {
|
|
1674
1674
|
e.slideTo(e.activeIndex);
|
|
1675
1675
|
return;
|
|
1676
1676
|
}
|
|
1677
|
-
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(
|
|
1677
|
+
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(v + E) : e.slideTo(v) : (e.swipeDirection === "next" && e.slideTo(h !== null ? h : v + E), e.swipeDirection === "prev" && e.slideTo(S !== null ? S : v));
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function Te() {
|
|
1681
1681
|
const t = this, {
|
|
1682
1682
|
params: e,
|
|
1683
1683
|
el: i
|
|
@@ -1700,7 +1700,7 @@ function Yt(t) {
|
|
|
1700
1700
|
const e = this;
|
|
1701
1701
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function qt() {
|
|
1704
1704
|
const t = this, {
|
|
1705
1705
|
wrapperEl: e,
|
|
1706
1706
|
rtlTranslate: i,
|
|
@@ -1713,16 +1713,16 @@ function Xt() {
|
|
|
1713
1713
|
const r = t.maxTranslate() - t.minTranslate();
|
|
1714
1714
|
r === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / r, n !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function Xt(t) {
|
|
1717
1717
|
const e = this;
|
|
1718
|
-
|
|
1718
|
+
Q(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Ut() {
|
|
1721
1721
|
const t = this;
|
|
1722
1722
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1723
1723
|
}
|
|
1724
|
-
const
|
|
1725
|
-
const i =
|
|
1724
|
+
const Ae = (t, e) => {
|
|
1725
|
+
const i = j(), {
|
|
1726
1726
|
params: s,
|
|
1727
1727
|
el: n,
|
|
1728
1728
|
wrapperEl: r,
|
|
@@ -1755,25 +1755,25 @@ 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", Te, !0) : t[d]("observerUpdate", Te, !0), n[o]("load", t.onLoad, {
|
|
1759
1759
|
capture: !0
|
|
1760
1760
|
}));
|
|
1761
1761
|
};
|
|
1762
|
-
function
|
|
1762
|
+
function Kt() {
|
|
1763
1763
|
const t = this, {
|
|
1764
1764
|
params: e
|
|
1765
1765
|
} = t;
|
|
1766
|
-
t.onTouchStart =
|
|
1766
|
+
t.onTouchStart = Ht.bind(t), t.onTouchMove = Wt.bind(t), t.onTouchEnd = jt.bind(t), t.onDocumentTouchStart = Ut.bind(t), e.cssMode && (t.onScroll = qt.bind(t)), t.onClick = Yt.bind(t), t.onLoad = Xt.bind(t), Ae(t, "on");
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1769
|
-
|
|
1768
|
+
function Qt() {
|
|
1769
|
+
Ae(this, "off");
|
|
1770
1770
|
}
|
|
1771
|
-
var
|
|
1772
|
-
attachEvents:
|
|
1773
|
-
detachEvents:
|
|
1771
|
+
var Zt = {
|
|
1772
|
+
attachEvents: Kt,
|
|
1773
|
+
detachEvents: Qt
|
|
1774
1774
|
};
|
|
1775
|
-
const
|
|
1776
|
-
function
|
|
1775
|
+
const be = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1776
|
+
function Jt() {
|
|
1777
1777
|
const t = this, {
|
|
1778
1778
|
realIndex: e,
|
|
1779
1779
|
initialized: i,
|
|
@@ -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 = j(), 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,
|
|
1789
|
-
|
|
1790
|
-
if (typeof f[
|
|
1788
|
+
const f = (d in r ? r[d] : void 0) || t.originalParams, u = be(t, s), m = be(t, f), p = t.params.grabCursor, v = f.grabCursor, M = s.enabled;
|
|
1789
|
+
u && !m ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !u && m && (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()), p && !v ? t.unsetGrabCursor() : !p && v && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((P) => {
|
|
1790
|
+
if (typeof f[P] > "u")
|
|
1791
1791
|
return;
|
|
1792
|
-
const
|
|
1793
|
-
|
|
1792
|
+
const C = s[P] && s[P].enabled, y = f[P] && f[P].enabled;
|
|
1793
|
+
C && !y && t[P].disable(), !C && y && t[P].enable();
|
|
1794
1794
|
});
|
|
1795
|
-
const
|
|
1796
|
-
|
|
1797
|
-
const
|
|
1795
|
+
const h = f.direction && f.direction !== s.direction, S = s.loop && (f.slidesPerView !== s.slidesPerView || h), g = s.loop;
|
|
1796
|
+
h && i && t.changeDirection(), D(t.params, f);
|
|
1797
|
+
const E = 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
|
+
}), M && !E ? t.disable() : !M && E && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", f), i && (S ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !g && b ? (t.loopCreate(e), t.updateSlides()) : g && !b && t.loopDestroy()), t.emit("breakpoint", f);
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function ei(t, e, i) {
|
|
1805
1805
|
if (e === void 0 && (e = "window"), !t || e === "container" && !i)
|
|
1806
1806
|
return;
|
|
1807
1807
|
let s = !1;
|
|
1808
|
-
const n =
|
|
1808
|
+
const n = V(), r = e === "window" ? n.innerHeight : i.clientHeight, l = Object.keys(t).map((a) => {
|
|
1809
1809
|
if (typeof a == "string" && a.indexOf("@") === 0) {
|
|
1810
1810
|
const o = parseFloat(a.substr(1));
|
|
1811
1811
|
return {
|
|
@@ -1828,11 +1828,11 @@ function ti(t, e, i) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
return s || "max";
|
|
1830
1830
|
}
|
|
1831
|
-
var
|
|
1832
|
-
setBreakpoint:
|
|
1833
|
-
getBreakpoint:
|
|
1831
|
+
var ti = {
|
|
1832
|
+
setBreakpoint: Jt,
|
|
1833
|
+
getBreakpoint: ei
|
|
1834
1834
|
};
|
|
1835
|
-
function
|
|
1835
|
+
function ii(t, e) {
|
|
1836
1836
|
const i = [];
|
|
1837
1837
|
return t.forEach((s) => {
|
|
1838
1838
|
typeof s == "object" ? Object.keys(s).forEach((n) => {
|
|
@@ -1840,14 +1840,14 @@ function si(t, e) {
|
|
|
1840
1840
|
}) : typeof s == "string" && i.push(e + s);
|
|
1841
1841
|
}), i;
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function si() {
|
|
1844
1844
|
const t = this, {
|
|
1845
1845
|
classNames: e,
|
|
1846
1846
|
params: i,
|
|
1847
1847
|
rtl: s,
|
|
1848
1848
|
el: n,
|
|
1849
1849
|
device: r
|
|
1850
|
-
} = t, l =
|
|
1850
|
+
} = t, l = ii(["initialized", i.direction, {
|
|
1851
1851
|
"free-mode": t.params.freeMode && i.freeMode.enabled
|
|
1852
1852
|
}, {
|
|
1853
1853
|
autoheight: i.autoHeight
|
|
@@ -1870,18 +1870,18 @@ function ri() {
|
|
|
1870
1870
|
}], i.containerModifierClass);
|
|
1871
1871
|
e.push(...l), n.classList.add(...e), t.emitContainerClasses();
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function ri() {
|
|
1874
1874
|
const t = this, {
|
|
1875
1875
|
el: e,
|
|
1876
1876
|
classNames: i
|
|
1877
1877
|
} = t;
|
|
1878
1878
|
!e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
|
|
1879
1879
|
}
|
|
1880
|
-
var
|
|
1881
|
-
addClasses:
|
|
1882
|
-
removeClasses:
|
|
1880
|
+
var ni = {
|
|
1881
|
+
addClasses: si,
|
|
1882
|
+
removeClasses: ri
|
|
1883
1883
|
};
|
|
1884
|
-
function
|
|
1884
|
+
function ai() {
|
|
1885
1885
|
const t = this, {
|
|
1886
1886
|
isLocked: e,
|
|
1887
1887
|
params: i
|
|
@@ -1895,9 +1895,9 @@ function li() {
|
|
|
1895
1895
|
t.isLocked = t.snapGrid.length === 1;
|
|
1896
1896
|
i.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
|
|
1897
1897
|
}
|
|
1898
|
-
var
|
|
1899
|
-
checkOverflow:
|
|
1900
|
-
},
|
|
1898
|
+
var li = {
|
|
1899
|
+
checkOverflow: ai
|
|
1900
|
+
}, fe = {
|
|
1901
1901
|
init: !0,
|
|
1902
1902
|
direction: "horizontal",
|
|
1903
1903
|
oneWayMovement: !1,
|
|
@@ -2018,72 +2018,72 @@ var oi = {
|
|
|
2018
2018
|
// Internals
|
|
2019
2019
|
_emitClasses: !1
|
|
2020
2020
|
};
|
|
2021
|
-
function
|
|
2021
|
+
function oi(t, e) {
|
|
2022
2022
|
return function(s) {
|
|
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
|
+
D(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
|
+
D(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
|
+
}), D(e, s);
|
|
2038
2038
|
};
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2041
|
-
eventsEmitter:
|
|
2042
|
-
update:
|
|
2043
|
-
translate:
|
|
2040
|
+
const ae = {
|
|
2041
|
+
eventsEmitter: nt,
|
|
2042
|
+
update: gt,
|
|
2043
|
+
translate: xt,
|
|
2044
2044
|
transition: Mt,
|
|
2045
|
-
slide:
|
|
2046
|
-
loop:
|
|
2045
|
+
slide: Gt,
|
|
2046
|
+
loop: Nt,
|
|
2047
2047
|
grabCursor: $t,
|
|
2048
|
-
events:
|
|
2049
|
-
breakpoints:
|
|
2050
|
-
checkOverflow:
|
|
2051
|
-
classes:
|
|
2052
|
-
},
|
|
2053
|
-
let
|
|
2048
|
+
events: Zt,
|
|
2049
|
+
breakpoints: ti,
|
|
2050
|
+
checkOverflow: li,
|
|
2051
|
+
classes: ni
|
|
2052
|
+
}, le = {};
|
|
2053
|
+
let pe = class $ {
|
|
2054
2054
|
constructor() {
|
|
2055
2055
|
let e, i;
|
|
2056
2056
|
for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
|
|
2057
2057
|
n[r] = arguments[r];
|
|
2058
|
-
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i =
|
|
2059
|
-
const l =
|
|
2058
|
+
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i = D({}, i), e && !i.el && (i.el = e);
|
|
2059
|
+
const l = j();
|
|
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
|
|
2063
|
+
const u = D({}, i, {
|
|
2064
2064
|
el: f
|
|
2065
2065
|
});
|
|
2066
|
-
c.push(new
|
|
2066
|
+
c.push(new $(u));
|
|
2067
2067
|
}), c;
|
|
2068
2068
|
}
|
|
2069
2069
|
const a = this;
|
|
2070
|
-
a.__swiper__ = !0, a.support =
|
|
2070
|
+
a.__swiper__ = !0, a.support = Ie(), a.device = Oe({
|
|
2071
2071
|
userAgent: i.userAgent
|
|
2072
|
-
}), a.browser =
|
|
2072
|
+
}), a.browser = Le(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], i.modules && Array.isArray(i.modules) && a.modules.push(...i.modules);
|
|
2073
2073
|
const o = {};
|
|
2074
2074
|
a.modules.forEach((c) => {
|
|
2075
2075
|
c({
|
|
2076
2076
|
params: i,
|
|
2077
2077
|
swiper: a,
|
|
2078
|
-
extendParams:
|
|
2078
|
+
extendParams: oi(i, o),
|
|
2079
2079
|
on: a.on.bind(a),
|
|
2080
2080
|
once: a.once.bind(a),
|
|
2081
2081
|
off: a.off.bind(a),
|
|
2082
2082
|
emit: a.emit.bind(a)
|
|
2083
2083
|
});
|
|
2084
2084
|
});
|
|
2085
|
-
const d =
|
|
2086
|
-
return a.params =
|
|
2085
|
+
const d = D({}, fe, o);
|
|
2086
|
+
return a.params = D({}, d, le, i), a.originalParams = D({}, a.params), a.passedParams = D({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((c) => {
|
|
2087
2087
|
a.on(c, a.params.on[c]);
|
|
2088
2088
|
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
2089
2089
|
enabled: a.params.enabled,
|
|
@@ -2174,8 +2174,8 @@ let me = class H {
|
|
|
2174
2174
|
const {
|
|
2175
2175
|
slidesEl: i,
|
|
2176
2176
|
params: s
|
|
2177
|
-
} = this, n =
|
|
2178
|
-
return
|
|
2177
|
+
} = this, n = k(i, `.${s.slideClass}, swiper-slide`), r = he(n[0]);
|
|
2178
|
+
return he(e) - r;
|
|
2179
2179
|
}
|
|
2180
2180
|
getSlideIndexByData(e) {
|
|
2181
2181
|
return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
|
|
@@ -2188,7 +2188,7 @@ let me = class H {
|
|
|
2188
2188
|
slidesEl: i,
|
|
2189
2189
|
params: s
|
|
2190
2190
|
} = e;
|
|
2191
|
-
e.slides =
|
|
2191
|
+
e.slides = k(i, `.${s.slideClass}, swiper-slide`);
|
|
2192
2192
|
}
|
|
2193
2193
|
enable() {
|
|
2194
2194
|
const e = this;
|
|
@@ -2242,11 +2242,11 @@ let me = class H {
|
|
|
2242
2242
|
if (typeof n.slidesPerView == "number")
|
|
2243
2243
|
return n.slidesPerView;
|
|
2244
2244
|
if (n.centeredSlides) {
|
|
2245
|
-
let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0,
|
|
2246
|
-
for (let
|
|
2247
|
-
r[
|
|
2248
|
-
for (let
|
|
2249
|
-
r[
|
|
2245
|
+
let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, u;
|
|
2246
|
+
for (let m = d + 1; m < r.length; m += 1)
|
|
2247
|
+
r[m] && !u && (f += Math.ceil(r[m].swiperSlideSize), c += 1, f > o && (u = !0));
|
|
2248
|
+
for (let m = d - 1; m >= 0; m -= 1)
|
|
2249
|
+
r[m] && !u && (f += r[m].swiperSlideSize, c += 1, f > o && (u = !0));
|
|
2250
2250
|
} else if (e === "current")
|
|
2251
2251
|
for (let f = d + 1; f < r.length; f += 1)
|
|
2252
2252
|
(i ? l[f] + a[f] - l[d] < o : l[f] - l[d] < o) && (c += 1);
|
|
@@ -2264,7 +2264,7 @@ let me = class H {
|
|
|
2264
2264
|
params: s
|
|
2265
2265
|
} = e;
|
|
2266
2266
|
s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
|
|
2267
|
-
l.complete &&
|
|
2267
|
+
l.complete && Q(e, l);
|
|
2268
2268
|
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
2269
2269
|
function n() {
|
|
2270
2270
|
const l = e.rtlTranslate ? e.translate * -1 : e.translate, a = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
|
|
@@ -2303,8 +2303,8 @@ let me = class H {
|
|
|
2303
2303
|
return !1;
|
|
2304
2304
|
s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = !0);
|
|
2305
2305
|
const n = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
|
|
2306
|
-
let l = (() => s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) :
|
|
2307
|
-
return !l && i.params.createElements && (l =
|
|
2306
|
+
let l = (() => s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : k(s, n())[0])();
|
|
2307
|
+
return !l && i.params.createElements && (l = de("div", i.params.wrapperClass), s.append(l), k(s, `.${i.params.slideClass}`).forEach((a) => {
|
|
2308
2308
|
l.append(a);
|
|
2309
2309
|
})), Object.assign(i, {
|
|
2310
2310
|
el: s,
|
|
@@ -2313,9 +2313,9 @@ let me = class H {
|
|
|
2313
2313
|
hostEl: i.isElement ? s.parentNode.host : s,
|
|
2314
2314
|
mounted: !0,
|
|
2315
2315
|
// RTL
|
|
2316
|
-
rtl: s.dir.toLowerCase() === "rtl" ||
|
|
2317
|
-
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" ||
|
|
2318
|
-
wrongRTL:
|
|
2316
|
+
rtl: s.dir.toLowerCase() === "rtl" || H(s, "direction") === "rtl",
|
|
2317
|
+
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || H(s, "direction") === "rtl"),
|
|
2318
|
+
wrongRTL: H(l, "display") === "-webkit-box"
|
|
2319
2319
|
}), !0;
|
|
2320
2320
|
}
|
|
2321
2321
|
init(e) {
|
|
@@ -2325,10 +2325,10 @@ let me = class H {
|
|
|
2325
2325
|
i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit, !1, !0) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, !1, !0), i.params.loop && i.loopCreate(void 0, !0), i.attachEvents();
|
|
2326
2326
|
const n = [...i.el.querySelectorAll('[loading="lazy"]')];
|
|
2327
2327
|
return i.isElement && n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
|
|
2328
|
-
r.complete ?
|
|
2329
|
-
|
|
2328
|
+
r.complete ? Q(i, r) : r.addEventListener("load", (l) => {
|
|
2329
|
+
Q(i, l.target);
|
|
2330
2330
|
});
|
|
2331
|
-
}),
|
|
2331
|
+
}), ce(i), i.initialized = !0, ce(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,165 +2342,33 @@ let me = class H {
|
|
|
2342
2342
|
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2343
2343
|
})), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((o) => {
|
|
2344
2344
|
s.off(o);
|
|
2345
|
-
}), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null),
|
|
2345
|
+
}), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), je(s)), s.destroyed = !0), null;
|
|
2346
2346
|
}
|
|
2347
2347
|
static extendDefaults(e) {
|
|
2348
|
-
|
|
2348
|
+
D(le, e);
|
|
2349
2349
|
}
|
|
2350
2350
|
static get extendedDefaults() {
|
|
2351
|
-
return
|
|
2351
|
+
return le;
|
|
2352
2352
|
}
|
|
2353
2353
|
static get defaults() {
|
|
2354
|
-
return
|
|
2354
|
+
return fe;
|
|
2355
2355
|
}
|
|
2356
2356
|
static installModule(e) {
|
|
2357
|
-
|
|
2358
|
-
const i =
|
|
2357
|
+
$.prototype.__modules__ || ($.prototype.__modules__ = []);
|
|
2358
|
+
const i = $.prototype.__modules__;
|
|
2359
2359
|
typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
|
|
2360
2360
|
}
|
|
2361
2361
|
static use(e) {
|
|
2362
|
-
return Array.isArray(e) ? (e.forEach((i) =>
|
|
2362
|
+
return Array.isArray(e) ? (e.forEach((i) => $.installModule(i)), $) : ($.installModule(e), $);
|
|
2363
2363
|
}
|
|
2364
2364
|
};
|
|
2365
|
-
Object.keys(
|
|
2366
|
-
Object.keys(
|
|
2367
|
-
|
|
2365
|
+
Object.keys(ae).forEach((t) => {
|
|
2366
|
+
Object.keys(ae[t]).forEach((e) => {
|
|
2367
|
+
pe.prototype[e] = ae[t][e];
|
|
2368
2368
|
});
|
|
2369
2369
|
});
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
return t.params.createElements && Object.keys(s).forEach((n) => {
|
|
2373
|
-
if (!i[n] && i.auto === !0) {
|
|
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;
|
|
2376
|
-
}
|
|
2377
|
-
}), i;
|
|
2378
|
-
}
|
|
2379
|
-
function Ei(t) {
|
|
2380
|
-
let {
|
|
2381
|
-
swiper: e,
|
|
2382
|
-
extendParams: i,
|
|
2383
|
-
on: s,
|
|
2384
|
-
emit: n
|
|
2385
|
-
} = t;
|
|
2386
|
-
i({
|
|
2387
|
-
navigation: {
|
|
2388
|
-
nextEl: null,
|
|
2389
|
-
prevEl: null,
|
|
2390
|
-
hideOnClick: !1,
|
|
2391
|
-
disabledClass: "swiper-button-disabled",
|
|
2392
|
-
hiddenClass: "swiper-button-hidden",
|
|
2393
|
-
lockClass: "swiper-button-lock",
|
|
2394
|
-
navigationDisabledClass: "swiper-navigation-disabled"
|
|
2395
|
-
}
|
|
2396
|
-
}), e.navigation = {
|
|
2397
|
-
nextEl: null,
|
|
2398
|
-
prevEl: null
|
|
2399
|
-
};
|
|
2400
|
-
function r(u) {
|
|
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);
|
|
2403
|
-
}
|
|
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));
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
function a() {
|
|
2411
|
-
const {
|
|
2412
|
-
nextEl: u,
|
|
2413
|
-
prevEl: g
|
|
2414
|
-
} = e.navigation;
|
|
2415
|
-
if (e.params.loop) {
|
|
2416
|
-
l(g, !1), l(u, !1);
|
|
2417
|
-
return;
|
|
2418
|
-
}
|
|
2419
|
-
l(g, e.isBeginning && !e.params.rewind), l(u, e.isEnd && !e.params.rewind);
|
|
2420
|
-
}
|
|
2421
|
-
function o(u) {
|
|
2422
|
-
u.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), n("navigationPrev"));
|
|
2423
|
-
}
|
|
2424
|
-
function d(u) {
|
|
2425
|
-
u.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), n("navigationNext"));
|
|
2426
|
-
}
|
|
2427
|
-
function c() {
|
|
2428
|
-
const u = e.params.navigation;
|
|
2429
|
-
if (e.params.navigation = ci(e, e.originalParams.navigation, e.params.navigation, {
|
|
2430
|
-
nextEl: "swiper-button-next",
|
|
2431
|
-
prevEl: "swiper-button-prev"
|
|
2432
|
-
}), !(u.nextEl || u.prevEl))
|
|
2433
|
-
return;
|
|
2434
|
-
let g = r(u.nextEl), S = r(u.prevEl);
|
|
2435
|
-
Object.assign(e.navigation, {
|
|
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(" "));
|
|
2441
|
-
};
|
|
2442
|
-
g.forEach((v) => p(v, "next")), S.forEach((v) => p(v, "prev"));
|
|
2443
|
-
}
|
|
2444
|
-
function f() {
|
|
2445
|
-
let {
|
|
2446
|
-
nextEl: u,
|
|
2447
|
-
prevEl: g
|
|
2448
|
-
} = e.navigation;
|
|
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(" "));
|
|
2452
|
-
};
|
|
2453
|
-
u.forEach((p) => S(p, "next")), g.forEach((p) => S(p, "prev"));
|
|
2454
|
-
}
|
|
2455
|
-
s("init", () => {
|
|
2456
|
-
e.params.navigation.enabled === !1 ? h() : (c(), a());
|
|
2457
|
-
}), s("toEdge fromEdge lock unlock", () => {
|
|
2458
|
-
a();
|
|
2459
|
-
}), s("destroy", () => {
|
|
2460
|
-
f();
|
|
2461
|
-
}), s("enable disable", () => {
|
|
2462
|
-
let {
|
|
2463
|
-
nextEl: u,
|
|
2464
|
-
prevEl: g
|
|
2465
|
-
} = e.navigation;
|
|
2466
|
-
if (u = $(u), g = $(g), e.enabled) {
|
|
2467
|
-
a();
|
|
2468
|
-
return;
|
|
2469
|
-
}
|
|
2470
|
-
[...u, ...g].filter((S) => !!S).forEach((S) => S.classList.add(e.params.navigation.lockClass));
|
|
2471
|
-
}), s("click", (u, g) => {
|
|
2472
|
-
let {
|
|
2473
|
-
nextEl: S,
|
|
2474
|
-
prevEl: p
|
|
2475
|
-
} = e.navigation;
|
|
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)));
|
|
2482
|
-
}
|
|
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)))
|
|
2485
|
-
return;
|
|
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));
|
|
2488
|
-
}
|
|
2489
|
-
});
|
|
2490
|
-
const m = () => {
|
|
2491
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), c(), a();
|
|
2492
|
-
}, h = () => {
|
|
2493
|
-
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), f();
|
|
2494
|
-
};
|
|
2495
|
-
Object.assign(e.navigation, {
|
|
2496
|
-
enable: m,
|
|
2497
|
-
disable: h,
|
|
2498
|
-
update: a,
|
|
2499
|
-
init: c,
|
|
2500
|
-
destroy: f
|
|
2501
|
-
});
|
|
2502
|
-
}
|
|
2503
|
-
const Ge = [
|
|
2370
|
+
pe.use([st, rt]);
|
|
2371
|
+
const _e = [
|
|
2504
2372
|
"eventsPrefix",
|
|
2505
2373
|
"injectStyles",
|
|
2506
2374
|
"injectStylesUrls",
|
|
@@ -2619,35 +2487,35 @@ const Ge = [
|
|
|
2619
2487
|
"zoom",
|
|
2620
2488
|
"control"
|
|
2621
2489
|
];
|
|
2622
|
-
function
|
|
2490
|
+
function W(t) {
|
|
2623
2491
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
|
2624
2492
|
}
|
|
2625
2493
|
function Y(t, e) {
|
|
2626
2494
|
const i = ["__proto__", "constructor", "prototype"];
|
|
2627
2495
|
Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
|
|
2628
|
-
typeof t[s] > "u" ? t[s] = e[s] :
|
|
2496
|
+
typeof t[s] > "u" ? t[s] = e[s] : W(e[s]) && W(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : Y(t[s], e[s]) : t[s] = e[s];
|
|
2629
2497
|
});
|
|
2630
2498
|
}
|
|
2631
|
-
function
|
|
2499
|
+
function Ge(t) {
|
|
2632
2500
|
return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
|
|
2633
2501
|
}
|
|
2634
2502
|
function Ve(t) {
|
|
2635
2503
|
return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
|
|
2636
2504
|
}
|
|
2637
|
-
function
|
|
2505
|
+
function De(t) {
|
|
2638
2506
|
return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
|
|
2639
2507
|
}
|
|
2640
|
-
function
|
|
2508
|
+
function Be(t) {
|
|
2641
2509
|
t === void 0 && (t = "");
|
|
2642
2510
|
const e = t.split(" ").map((s) => s.trim()).filter((s) => !!s), i = [];
|
|
2643
2511
|
return e.forEach((s) => {
|
|
2644
2512
|
i.indexOf(s) < 0 && i.push(s);
|
|
2645
2513
|
}), i.join(" ");
|
|
2646
2514
|
}
|
|
2647
|
-
function
|
|
2515
|
+
function di(t) {
|
|
2648
2516
|
return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
|
|
2649
2517
|
}
|
|
2650
|
-
function
|
|
2518
|
+
function ci(t) {
|
|
2651
2519
|
let {
|
|
2652
2520
|
swiper: e,
|
|
2653
2521
|
slides: i,
|
|
@@ -2658,37 +2526,37 @@ function ui(t) {
|
|
|
2658
2526
|
scrollbarEl: a,
|
|
2659
2527
|
paginationEl: o
|
|
2660
2528
|
} = t;
|
|
2661
|
-
const d = n.filter((
|
|
2529
|
+
const d = n.filter((T) => T !== "children" && T !== "direction" && T !== "wrapperClass"), {
|
|
2662
2530
|
params: c,
|
|
2663
2531
|
pagination: f,
|
|
2664
|
-
navigation:
|
|
2665
|
-
scrollbar:
|
|
2666
|
-
virtual:
|
|
2667
|
-
thumbs:
|
|
2532
|
+
navigation: u,
|
|
2533
|
+
scrollbar: m,
|
|
2534
|
+
virtual: p,
|
|
2535
|
+
thumbs: v
|
|
2668
2536
|
} = e;
|
|
2669
|
-
let
|
|
2670
|
-
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (
|
|
2671
|
-
const
|
|
2672
|
-
e[
|
|
2537
|
+
let M, h, S, g, E, b, P, C;
|
|
2538
|
+
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (M = !0), n.includes("controller") && s.controller && s.controller.control && c.controller && !c.controller.control && (h = !0), n.includes("pagination") && s.pagination && (s.pagination.el || o) && (c.pagination || c.pagination === !1) && f && !f.el && (S = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && m && !m.el && (g = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (c.navigation || c.navigation === !1) && u && !u.prevEl && !u.nextEl && (E = !0);
|
|
2539
|
+
const y = (T) => {
|
|
2540
|
+
e[T] && (e[T].destroy(), T === "navigation" ? (e.isElement && (e[T].prevEl.remove(), e[T].nextEl.remove()), c[T].prevEl = void 0, c[T].nextEl = void 0, e[T].prevEl = void 0, e[T].nextEl = void 0) : (e.isElement && e[T].el.remove(), c[T].el = void 0, e[T].el = void 0));
|
|
2673
2541
|
};
|
|
2674
|
-
n.includes("loop") && e.isElement && (c.loop && !s.loop ? b = !0 : !c.loop && s.loop ?
|
|
2675
|
-
if (
|
|
2676
|
-
Object.assign(c[
|
|
2542
|
+
n.includes("loop") && e.isElement && (c.loop && !s.loop ? b = !0 : !c.loop && s.loop ? P = !0 : C = !0), d.forEach((T) => {
|
|
2543
|
+
if (W(c[T]) && W(s[T]))
|
|
2544
|
+
Object.assign(c[T], s[T]), (T === "navigation" || T === "pagination" || T === "scrollbar") && "enabled" in s[T] && !s[T].enabled && y(T);
|
|
2677
2545
|
else {
|
|
2678
|
-
const
|
|
2679
|
-
(
|
|
2546
|
+
const w = s[T];
|
|
2547
|
+
(w === !0 || w === !1) && (T === "navigation" || T === "pagination" || T === "scrollbar") ? w === !1 && y(T) : c[T] = s[T];
|
|
2680
2548
|
}
|
|
2681
|
-
}), d.includes("controller") && !
|
|
2549
|
+
}), d.includes("controller") && !h && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), n.includes("children") && i && p && c.virtual.enabled ? (p.slides = i, p.update(!0)) : n.includes("virtual") && p && c.virtual.enabled && (i && (p.slides = i), p.update(!0)), n.includes("children") && i && c.loop && (C = !0), M && v.init() && v.update(!0), h && (e.controller.control = c.controller.control), S && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (c.pagination.el = o), f.init(), f.render(), f.update()), g && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (c.scrollbar.el = a), m.init(), m.updateSize(), m.setTranslate()), E && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), ve(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"), ve(l, e.hostEl.constructor.prevButtonSvg), l.part.add("button-prev"), e.el.appendChild(l))), r && (c.navigation.nextEl = r), l && (c.navigation.prevEl = l), u.init(), u.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (b || C) && e.loopDestroy(), (P || C) && e.loopCreate(), e.update();
|
|
2682
2550
|
}
|
|
2683
|
-
function
|
|
2551
|
+
function fi(t, e) {
|
|
2684
2552
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2685
2553
|
const i = {
|
|
2686
2554
|
on: {}
|
|
2687
2555
|
}, s = {}, n = {};
|
|
2688
|
-
Y(i,
|
|
2689
|
-
const r = {}, l =
|
|
2556
|
+
Y(i, fe), i._emitClasses = !0, i.init = !1;
|
|
2557
|
+
const r = {}, l = _e.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
|
|
2690
2558
|
return Object.keys(a).forEach((o) => {
|
|
2691
|
-
typeof t[o] > "u" || (l.indexOf(o) >= 0 ?
|
|
2559
|
+
typeof t[o] > "u" || (l.indexOf(o) >= 0 ? W(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]);
|
|
2692
2560
|
}), ["navigation", "pagination", "scrollbar"].forEach((o) => {
|
|
2693
2561
|
i[o] === !0 && (i[o] = {}), i[o] === !1 && delete i[o];
|
|
2694
2562
|
}), {
|
|
@@ -2698,7 +2566,7 @@ function pi(t, e) {
|
|
|
2698
2566
|
events: s
|
|
2699
2567
|
};
|
|
2700
2568
|
}
|
|
2701
|
-
function
|
|
2569
|
+
function ui(t, e) {
|
|
2702
2570
|
let {
|
|
2703
2571
|
el: i,
|
|
2704
2572
|
nextEl: s,
|
|
@@ -2707,9 +2575,9 @@ function mi(t, e) {
|
|
|
2707
2575
|
scrollbarEl: l,
|
|
2708
2576
|
swiper: a
|
|
2709
2577
|
} = t;
|
|
2710
|
-
|
|
2578
|
+
Ge(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), De(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(i);
|
|
2711
2579
|
}
|
|
2712
|
-
function
|
|
2580
|
+
function pi(t, e, i, s, n) {
|
|
2713
2581
|
const r = [];
|
|
2714
2582
|
if (!e)
|
|
2715
2583
|
return r;
|
|
@@ -2720,9 +2588,9 @@ function hi(t, e, i, s, n) {
|
|
|
2720
2588
|
const o = s.map(n), d = i.map(n);
|
|
2721
2589
|
o.join("") !== d.join("") && l("children"), s.length !== i.length && l("children");
|
|
2722
2590
|
}
|
|
2723
|
-
return
|
|
2591
|
+
return _e.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
|
|
2724
2592
|
if (o in t && o in e)
|
|
2725
|
-
if (
|
|
2593
|
+
if (W(t[o]) && W(e[o])) {
|
|
2726
2594
|
const d = Object.keys(t[o]), c = Object.keys(e[o]);
|
|
2727
2595
|
d.length !== c.length ? l(o) : (d.forEach((f) => {
|
|
2728
2596
|
t[o][f] !== e[o][f] && l(o);
|
|
@@ -2733,29 +2601,29 @@ function hi(t, e, i, s, n) {
|
|
|
2733
2601
|
t[o] !== e[o] && l(o);
|
|
2734
2602
|
}), r;
|
|
2735
2603
|
}
|
|
2736
|
-
const
|
|
2604
|
+
const mi = (t) => {
|
|
2737
2605
|
!t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
|
|
2738
2606
|
};
|
|
2739
|
-
function
|
|
2740
|
-
return
|
|
2607
|
+
function ee() {
|
|
2608
|
+
return ee = Object.assign ? Object.assign.bind() : function(t) {
|
|
2741
2609
|
for (var e = 1; e < arguments.length; e++) {
|
|
2742
2610
|
var i = arguments[e];
|
|
2743
2611
|
for (var s in i)
|
|
2744
2612
|
Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
|
|
2745
2613
|
}
|
|
2746
2614
|
return t;
|
|
2747
|
-
},
|
|
2615
|
+
}, ee.apply(this, arguments);
|
|
2748
2616
|
}
|
|
2749
|
-
function
|
|
2617
|
+
function Ne(t) {
|
|
2750
2618
|
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
2751
2619
|
}
|
|
2752
|
-
function
|
|
2620
|
+
function Fe(t) {
|
|
2753
2621
|
const e = [];
|
|
2754
2622
|
return A.Children.toArray(t).forEach((i) => {
|
|
2755
|
-
|
|
2623
|
+
Ne(i) ? e.push(i) : i.props && i.props.children && Fe(i.props.children).forEach((s) => e.push(s));
|
|
2756
2624
|
}), e;
|
|
2757
2625
|
}
|
|
2758
|
-
function
|
|
2626
|
+
function hi(t) {
|
|
2759
2627
|
const e = [], i = {
|
|
2760
2628
|
"container-start": [],
|
|
2761
2629
|
"container-end": [],
|
|
@@ -2763,12 +2631,12 @@ function vi(t) {
|
|
|
2763
2631
|
"wrapper-end": []
|
|
2764
2632
|
};
|
|
2765
2633
|
return A.Children.toArray(t).forEach((s) => {
|
|
2766
|
-
if (
|
|
2634
|
+
if (Ne(s))
|
|
2767
2635
|
e.push(s);
|
|
2768
2636
|
else if (s.props && s.props.slot && i[s.props.slot])
|
|
2769
2637
|
i[s.props.slot].push(s);
|
|
2770
2638
|
else if (s.props && s.props.children) {
|
|
2771
|
-
const n =
|
|
2639
|
+
const n = Fe(s.props.children);
|
|
2772
2640
|
n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
|
|
2773
2641
|
} else
|
|
2774
2642
|
i["container-end"].push(s);
|
|
@@ -2777,7 +2645,7 @@ function vi(t) {
|
|
|
2777
2645
|
slots: i
|
|
2778
2646
|
};
|
|
2779
2647
|
}
|
|
2780
|
-
function
|
|
2648
|
+
function gi(t, e, i) {
|
|
2781
2649
|
if (!i)
|
|
2782
2650
|
return null;
|
|
2783
2651
|
const s = (c) => {
|
|
@@ -2799,10 +2667,10 @@ function wi(t, e, i) {
|
|
|
2799
2667
|
key: c.props.virtualIndex || c.key || `slide-${f}`
|
|
2800
2668
|
}));
|
|
2801
2669
|
}
|
|
2802
|
-
function
|
|
2803
|
-
return typeof window > "u" ?
|
|
2670
|
+
function X(t, e) {
|
|
2671
|
+
return typeof window > "u" ? oe(t, e) : ke(t, e);
|
|
2804
2672
|
}
|
|
2805
|
-
const
|
|
2673
|
+
const xe = /* @__PURE__ */ ye(null), vi = /* @__PURE__ */ ye(null), wi = /* @__PURE__ */ Ee(function(t, e) {
|
|
2806
2674
|
let {
|
|
2807
2675
|
className: i,
|
|
2808
2676
|
tag: s = "div",
|
|
@@ -2811,111 +2679,111 @@ const Ee = /* @__PURE__ */ Pe(null), Si = /* @__PURE__ */ Pe(null), Ti = /* @__P
|
|
|
2811
2679
|
onSwiper: l,
|
|
2812
2680
|
...a
|
|
2813
2681
|
} = t === void 0 ? {} : t, o = !1;
|
|
2814
|
-
const [d, c] =
|
|
2815
|
-
params:
|
|
2816
|
-
passedParams:
|
|
2817
|
-
rest:
|
|
2818
|
-
events:
|
|
2819
|
-
} =
|
|
2682
|
+
const [d, c] = q("swiper"), [f, u] = q(null), [m, p] = q(!1), v = R(!1), M = R(null), h = R(null), S = R(null), g = R(null), E = R(null), b = R(null), P = R(null), C = R(null), {
|
|
2683
|
+
params: y,
|
|
2684
|
+
passedParams: T,
|
|
2685
|
+
rest: w,
|
|
2686
|
+
events: x
|
|
2687
|
+
} = fi(a), {
|
|
2820
2688
|
slides: I,
|
|
2821
2689
|
slots: z
|
|
2822
|
-
} =
|
|
2823
|
-
|
|
2690
|
+
} = hi(r), B = () => {
|
|
2691
|
+
p(!m);
|
|
2824
2692
|
};
|
|
2825
|
-
Object.assign(
|
|
2826
|
-
_containerClasses(
|
|
2693
|
+
Object.assign(y.on, {
|
|
2694
|
+
_containerClasses(L, F) {
|
|
2827
2695
|
c(F);
|
|
2828
2696
|
}
|
|
2829
2697
|
});
|
|
2830
2698
|
const N = () => {
|
|
2831
|
-
Object.assign(
|
|
2832
|
-
const
|
|
2833
|
-
...
|
|
2699
|
+
Object.assign(y.on, x), o = !0;
|
|
2700
|
+
const L = {
|
|
2701
|
+
...y
|
|
2834
2702
|
};
|
|
2835
|
-
if (delete
|
|
2836
|
-
|
|
2703
|
+
if (delete L.wrapperClass, h.current = new pe(L), h.current.virtual && h.current.params.virtual.enabled) {
|
|
2704
|
+
h.current.virtual.slides = I;
|
|
2837
2705
|
const F = {
|
|
2838
2706
|
cache: !1,
|
|
2839
2707
|
slides: I,
|
|
2840
|
-
renderExternal:
|
|
2708
|
+
renderExternal: u,
|
|
2841
2709
|
renderExternalUpdate: !1
|
|
2842
2710
|
};
|
|
2843
|
-
Y(
|
|
2711
|
+
Y(h.current.params.virtual, F), Y(h.current.originalParams.virtual, F);
|
|
2844
2712
|
}
|
|
2845
2713
|
};
|
|
2846
|
-
|
|
2847
|
-
const
|
|
2848
|
-
o || !
|
|
2849
|
-
|
|
2714
|
+
M.current || N(), h.current && h.current.on("_beforeBreakpoint", B);
|
|
2715
|
+
const O = () => {
|
|
2716
|
+
o || !x || !h.current || Object.keys(x).forEach((L) => {
|
|
2717
|
+
h.current.on(L, x[L]);
|
|
2850
2718
|
});
|
|
2851
2719
|
}, _ = () => {
|
|
2852
|
-
!
|
|
2853
|
-
|
|
2720
|
+
!x || !h.current || Object.keys(x).forEach((L) => {
|
|
2721
|
+
h.current.off(L, x[L]);
|
|
2854
2722
|
});
|
|
2855
2723
|
};
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
}),
|
|
2859
|
-
!
|
|
2860
|
-
}),
|
|
2861
|
-
if (e && (e.current =
|
|
2862
|
-
return
|
|
2863
|
-
el:
|
|
2864
|
-
nextEl:
|
|
2724
|
+
oe(() => () => {
|
|
2725
|
+
h.current && h.current.off("_beforeBreakpoint", B);
|
|
2726
|
+
}), oe(() => {
|
|
2727
|
+
!v.current && h.current && (h.current.emitSlidesClasses(), v.current = !0);
|
|
2728
|
+
}), X(() => {
|
|
2729
|
+
if (e && (e.current = M.current), !!M.current)
|
|
2730
|
+
return h.current.destroyed && N(), ui({
|
|
2731
|
+
el: M.current,
|
|
2732
|
+
nextEl: E.current,
|
|
2865
2733
|
prevEl: b.current,
|
|
2866
|
-
paginationEl:
|
|
2867
|
-
scrollbarEl:
|
|
2868
|
-
swiper:
|
|
2869
|
-
},
|
|
2870
|
-
|
|
2734
|
+
paginationEl: P.current,
|
|
2735
|
+
scrollbarEl: C.current,
|
|
2736
|
+
swiper: h.current
|
|
2737
|
+
}, y), l && !h.current.destroyed && l(h.current), () => {
|
|
2738
|
+
h.current && !h.current.destroyed && h.current.destroy(!0, !1);
|
|
2871
2739
|
};
|
|
2872
|
-
}, []),
|
|
2873
|
-
|
|
2874
|
-
const
|
|
2875
|
-
return
|
|
2876
|
-
swiper:
|
|
2740
|
+
}, []), X(() => {
|
|
2741
|
+
O();
|
|
2742
|
+
const L = pi(T, S.current, I, g.current, (F) => F.key);
|
|
2743
|
+
return S.current = T, g.current = I, L.length && h.current && !h.current.destroyed && ci({
|
|
2744
|
+
swiper: h.current,
|
|
2877
2745
|
slides: I,
|
|
2878
|
-
passedParams:
|
|
2879
|
-
changedParams:
|
|
2880
|
-
nextEl:
|
|
2746
|
+
passedParams: T,
|
|
2747
|
+
changedParams: L,
|
|
2748
|
+
nextEl: E.current,
|
|
2881
2749
|
prevEl: b.current,
|
|
2882
|
-
scrollbarEl:
|
|
2883
|
-
paginationEl:
|
|
2750
|
+
scrollbarEl: C.current,
|
|
2751
|
+
paginationEl: P.current
|
|
2884
2752
|
}), () => {
|
|
2885
2753
|
_();
|
|
2886
2754
|
};
|
|
2887
|
-
}),
|
|
2888
|
-
|
|
2755
|
+
}), X(() => {
|
|
2756
|
+
mi(h.current);
|
|
2889
2757
|
}, [f]);
|
|
2890
2758
|
function G() {
|
|
2891
|
-
return
|
|
2892
|
-
swiper:
|
|
2759
|
+
return y.virtual ? gi(h.current, I, f) : I.map((L, F) => /* @__PURE__ */ A.cloneElement(L, {
|
|
2760
|
+
swiper: h.current,
|
|
2893
2761
|
swiperSlideIndex: F
|
|
2894
2762
|
}));
|
|
2895
2763
|
}
|
|
2896
|
-
return /* @__PURE__ */ A.createElement(s,
|
|
2897
|
-
ref:
|
|
2898
|
-
className:
|
|
2899
|
-
},
|
|
2900
|
-
value:
|
|
2764
|
+
return /* @__PURE__ */ A.createElement(s, ee({
|
|
2765
|
+
ref: M,
|
|
2766
|
+
className: Be(`${d}${i ? ` ${i}` : ""}`)
|
|
2767
|
+
}, w), /* @__PURE__ */ A.createElement(vi.Provider, {
|
|
2768
|
+
value: h.current
|
|
2901
2769
|
}, z["container-start"], /* @__PURE__ */ A.createElement(n, {
|
|
2902
|
-
className:
|
|
2903
|
-
}, z["wrapper-start"], G(), z["wrapper-end"]),
|
|
2770
|
+
className: di(y.wrapperClass)
|
|
2771
|
+
}, z["wrapper-start"], G(), z["wrapper-end"]), Ge(y) && /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement("div", {
|
|
2904
2772
|
ref: b,
|
|
2905
2773
|
className: "swiper-button-prev"
|
|
2906
2774
|
}), /* @__PURE__ */ A.createElement("div", {
|
|
2907
|
-
ref:
|
|
2775
|
+
ref: E,
|
|
2908
2776
|
className: "swiper-button-next"
|
|
2909
|
-
})),
|
|
2910
|
-
ref: M,
|
|
2911
|
-
className: "swiper-scrollbar"
|
|
2912
|
-
}), Ve(P) && /* @__PURE__ */ A.createElement("div", {
|
|
2777
|
+
})), De(y) && /* @__PURE__ */ A.createElement("div", {
|
|
2913
2778
|
ref: C,
|
|
2779
|
+
className: "swiper-scrollbar"
|
|
2780
|
+
}), Ve(y) && /* @__PURE__ */ A.createElement("div", {
|
|
2781
|
+
ref: P,
|
|
2914
2782
|
className: "swiper-pagination"
|
|
2915
2783
|
}), z["container-end"]));
|
|
2916
2784
|
});
|
|
2917
|
-
|
|
2918
|
-
const
|
|
2785
|
+
wi.displayName = "Swiper";
|
|
2786
|
+
const Si = /* @__PURE__ */ Ee(function(t, e) {
|
|
2919
2787
|
let {
|
|
2920
2788
|
tag: i = "div",
|
|
2921
2789
|
children: s,
|
|
@@ -2927,57 +2795,59 @@ const bi = /* @__PURE__ */ ye(function(t, e) {
|
|
|
2927
2795
|
swiperSlideIndex: d,
|
|
2928
2796
|
...c
|
|
2929
2797
|
} = t === void 0 ? {} : t;
|
|
2930
|
-
const f =
|
|
2931
|
-
function
|
|
2932
|
-
b === f.current &&
|
|
2798
|
+
const f = R(null), [u, m] = q("swiper-slide"), [p, v] = q(!1);
|
|
2799
|
+
function M(E, b, P) {
|
|
2800
|
+
b === f.current && m(P);
|
|
2933
2801
|
}
|
|
2934
|
-
|
|
2802
|
+
X(() => {
|
|
2935
2803
|
if (typeof d < "u" && (f.current.swiperSlideIndex = d), e && (e.current = f.current), !(!f.current || !r)) {
|
|
2936
2804
|
if (r.destroyed) {
|
|
2937
|
-
|
|
2805
|
+
u !== "swiper-slide" && m("swiper-slide");
|
|
2938
2806
|
return;
|
|
2939
2807
|
}
|
|
2940
|
-
return r.on("_slideClass",
|
|
2941
|
-
r && r.off("_slideClass",
|
|
2808
|
+
return r.on("_slideClass", M), () => {
|
|
2809
|
+
r && r.off("_slideClass", M);
|
|
2942
2810
|
};
|
|
2943
2811
|
}
|
|
2944
|
-
}),
|
|
2945
|
-
r && f.current && !r.destroyed &&
|
|
2812
|
+
}), X(() => {
|
|
2813
|
+
r && f.current && !r.destroyed && m(r.getSlideClasses(f.current));
|
|
2946
2814
|
}, [r]);
|
|
2947
|
-
const
|
|
2948
|
-
isActive:
|
|
2949
|
-
isVisible:
|
|
2950
|
-
isPrev:
|
|
2951
|
-
isNext:
|
|
2952
|
-
},
|
|
2953
|
-
|
|
2815
|
+
const h = {
|
|
2816
|
+
isActive: u.indexOf("swiper-slide-active") >= 0,
|
|
2817
|
+
isVisible: u.indexOf("swiper-slide-visible") >= 0,
|
|
2818
|
+
isPrev: u.indexOf("swiper-slide-prev") >= 0,
|
|
2819
|
+
isNext: u.indexOf("swiper-slide-next") >= 0
|
|
2820
|
+
}, S = () => typeof s == "function" ? s(h) : s, g = () => {
|
|
2821
|
+
v(!0);
|
|
2954
2822
|
};
|
|
2955
|
-
return /* @__PURE__ */ A.createElement(i,
|
|
2823
|
+
return /* @__PURE__ */ A.createElement(i, ee({
|
|
2956
2824
|
ref: f,
|
|
2957
|
-
className:
|
|
2825
|
+
className: Be(`${u}${n ? ` ${n}` : ""}`),
|
|
2958
2826
|
"data-swiper-slide-index": o,
|
|
2959
|
-
onLoad:
|
|
2960
|
-
}, c), l && /* @__PURE__ */ A.createElement(
|
|
2961
|
-
value:
|
|
2827
|
+
onLoad: g
|
|
2828
|
+
}, c), l && /* @__PURE__ */ A.createElement(xe.Provider, {
|
|
2829
|
+
value: h
|
|
2962
2830
|
}, /* @__PURE__ */ A.createElement("div", {
|
|
2963
2831
|
className: "swiper-zoom-container",
|
|
2964
2832
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
2965
|
-
},
|
|
2833
|
+
}, S(), a && !p && /* @__PURE__ */ A.createElement("div", {
|
|
2966
2834
|
className: "swiper-lazy-preloader"
|
|
2967
|
-
}))), !l && /* @__PURE__ */ A.createElement(
|
|
2968
|
-
value:
|
|
2969
|
-
},
|
|
2835
|
+
}))), !l && /* @__PURE__ */ A.createElement(xe.Provider, {
|
|
2836
|
+
value: h
|
|
2837
|
+
}, S(), a && !p && /* @__PURE__ */ A.createElement("div", {
|
|
2970
2838
|
className: "swiper-lazy-preloader"
|
|
2971
2839
|
})));
|
|
2972
2840
|
});
|
|
2973
|
-
|
|
2841
|
+
Si.displayName = "SwiperSlide";
|
|
2974
2842
|
export {
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2843
|
+
pe as S,
|
|
2844
|
+
wi as a,
|
|
2845
|
+
Si as b,
|
|
2846
|
+
Z as c,
|
|
2847
|
+
de as d,
|
|
2848
|
+
k as e,
|
|
2849
|
+
j as f,
|
|
2850
|
+
V as g,
|
|
2851
|
+
bi as m,
|
|
2982
2852
|
Me as n
|
|
2983
2853
|
};
|