md-components-mdigial-azamat 0.0.32 → 0.0.35
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/Actions/downloadFile/downloadFile.js +28 -0
- package/dist/Actions/index.js +13 -0
- package/dist/Actions/types.js +9 -0
- package/dist/AllComponents.js +29 -9
- package/dist/AnimatedSwiper/Slide/Slide.js +29 -29
- package/dist/AnimatedSwiper/index.js +10 -137
- package/dist/Banner/Banner.js +152 -8
- package/dist/Banner/index.js +2 -2
- package/dist/BannerAndText/index.js +56 -27
- package/dist/CardIconList/CardIconList.js +81 -26
- package/dist/CardIconList/index.js +2 -2
- package/dist/CardImageList/CardImageList.js +75 -8
- package/dist/CardImageList/index.js +1 -1
- package/dist/CardImageSecondary/CardImageSecondary.js +57 -27
- package/dist/CardImageSecondary/index.js +2 -2
- package/dist/CardImageSecondaryList/CardImageSecondaryList.js +27 -4
- package/dist/CardImageSecondaryList/index.js +1 -1
- package/dist/CardInfoTable/index.js +187 -26
- package/dist/Cards/CardImage/CardImage.js +2 -2
- package/dist/Cards/ColoredCard/index.js +2 -2
- package/dist/Cards/ContentCard/ContentCard.js +38 -5
- package/dist/Cards/ContentCard/index.js +2 -2
- package/dist/Cards/FeaturesCard/index.js +3 -3
- package/dist/Cards/WarningCard/WarningCard.js +58 -6
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/model.js +39 -7
- package/dist/ComponentContainer-cdb2528c.js +16 -0
- package/dist/ContentCardList/ContentCardList.js +34 -25
- package/dist/ContentCardList/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +41 -5
- package/dist/DownloadFile/components/DownloadFileBanner/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileBright/index.js +74 -8
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +50 -5
- package/dist/DownloadFile/components/DownloadFileFull/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +46 -5
- package/dist/DownloadFile/components/DownloadFileHalf/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +56 -5
- package/dist/DownloadFile/components/DownloadFileMini/index.js +2 -2
- package/dist/Faq/Faq.js +44 -24
- package/dist/Faq/components/Collapse/Collapse.js +37 -19
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +1061 -4
- package/dist/Faq/components/FeedbackForm/index.js +2 -2
- package/dist/Faq/components/PlusMinusIcon/PlusMinusIcon.js +1 -1
- package/dist/Faq/index.js +2 -2
- package/dist/Footer/Footer.js +452 -0
- package/dist/Footer/components/ContactOfFooter/ContactOfFooter.js +34 -0
- package/dist/Footer/components/LinkToApp/LinkToApp.js +45 -0
- package/dist/Footer/components/LinkToAppMobile/LinkToAppMobile.js +28 -0
- package/dist/Footer/components/ListNavigation/ListNavigation.js +221 -0
- package/dist/Footer/components/NavigationFooter/NavigationFooter.js +31 -0
- package/dist/Footer/components/SocialButtonsList/SocialButtonsList.js +37 -0
- package/dist/Footer/types.js +1 -0
- package/dist/GooglePlayButton-35331c37.js +100 -0
- package/dist/Header/Header.js +8 -0
- package/dist/Header/components/HeaderCard/HeaderCard.js +37 -0
- package/dist/Header/components/HeaderCard/index.js +4 -0
- package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +208 -0
- package/dist/Header/components/HeaderMenu/HeaderMenu.js +41 -0
- package/dist/Header/components/HeaderMenu/index.js +1 -0
- package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +47 -0
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +11 -0
- package/dist/Header/components/HeaderMobile/index.js +4 -0
- package/dist/Header/components/HeaderResults/HeaderResults.js +46 -0
- package/dist/Header/components/HeaderResults/index.js +4 -0
- package/dist/Header/components/HeaderSearch/HeaderSearch.js +13 -0
- package/dist/Header/components/HeaderSearch/index.js +4 -0
- package/dist/Header/components/HeaderSearchMobile/HeaderSearchMobile.js +78 -0
- package/dist/Header/components/HeaderTab/HeaderTab.js +34 -0
- package/dist/Header/components/HeaderTab/index.js +4 -0
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +55 -0
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +149 -0
- package/dist/Header/components/HeaderWeb/index.js +4 -0
- package/dist/Header/components/SelectLanguage/SelectLanguage.js +79 -0
- package/dist/Header/components/SelectLanguage/index.js +4 -0
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +50 -0
- package/dist/Header/components/TabsOutlined/index.js +4 -0
- package/dist/Header/const.js +4 -0
- package/dist/Header/index.js +4 -0
- package/dist/Header/types.js +5 -0
- package/dist/HeroPossibilityBanner/index.js +1 -1
- package/dist/HtmlContent/HtmlContent.js +1 -1
- package/dist/Icon-70ea6cb8.js +187 -0
- package/dist/InfoBanner/index.js +89 -7
- package/dist/InfoBannerList/InfoBannerList.js +5 -5
- package/dist/InfoBannerList/index.js +2 -2
- package/dist/InstructionList/InstructionList.js +6 -4
- package/dist/InstructionList/components/InstructionCard/InstructionCard.js +47 -66
- package/dist/InstructionList/components/InstructionCard/index.js +1 -1
- package/dist/InstructionList/components/InstructionModal/InstructionModal.js +2 -2
- package/dist/InstructionList/index.js +1 -1
- package/dist/IntroBanner/IntroBanner.js +68 -6
- package/dist/IntroBanner/index.js +1 -1
- package/dist/MainBanner/MainBanner.js +84 -6
- package/dist/MainBanner/index.js +2 -2
- package/dist/MultiCards/index.js +88 -5
- package/dist/PageViewer/PageViewer.js +22 -5
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/Partners/Partners.js +2 -2
- package/dist/PartnersColors/PartnersColors.js +1 -1
- package/dist/PartnersColors/components/PartnerCard/PartnerCard.js +1 -1
- package/dist/PartnersColors/components/PartnerTab/PartnerTab.js +2 -2
- package/dist/PreviewList/PreviewList.js +4 -2
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +45 -3
- package/dist/PreviewList/components/PreviewCard/index.js +2 -2
- package/dist/PreviewList/index.js +1 -1
- package/dist/PromoPoster/PromoPoster.js +7 -48
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +11 -11
- package/dist/Segments/Segments.js +1 -1
- package/dist/StandartTable/components/CardMarkedRow/index.js +47 -73
- package/dist/StandartTable/components/CardWarning/index.js +87 -6
- package/dist/StandartTable/index.js +4 -4
- package/dist/Stepper/Stepper.js +50 -6
- package/dist/Stepper/index.js +1 -1
- package/dist/SwiperList/SwiperList.js +11 -97
- package/dist/SwiperList/components/Bullet/Bullet.js +1 -1
- package/dist/SwiperList/components/Slide/Slide.js +6 -6
- package/dist/SwiperList/index.js +1 -1
- package/dist/TasksBanner/TasksBanner.js +9 -123
- package/dist/TasksBanner/index.js +2 -2
- package/dist/TasksBannerList/TasksBannerList.js +5 -30
- package/dist/TasksBannerList/index.js +2 -2
- package/dist/Types/FiledTypes.js +1 -1
- package/dist/Video/VideoFull/VideoFull.js +1 -1
- package/dist/Video/VideoList/VideoList.js +1 -1
- package/dist/Video/VideoListMini/VideoListMini.js +1 -1
- package/dist/Video/components/VideoPlayer/VideoPlayer.js +1 -1
- package/dist/VideoMainBanner/VideoMainBanner.js +168 -7
- package/dist/VideoMainBanner/index.js +2 -2
- package/dist/assets/index.css +1 -1
- package/dist/{cn-d8c04b28.js → cn-6a4bf187.js} +521 -488
- package/dist/componentsMap-e2de87b6.js +68 -0
- package/dist/const-637b0dca.js +27 -0
- package/dist/data.mock-483400cb.js +1713 -0
- package/dist/header-97863d08.js +22 -0
- package/dist/{index-60dfa873.js → index-2265d593.js} +1 -1
- package/dist/index-2fb01942.js +925 -0
- package/dist/index-3a534581.js +261 -0
- package/dist/index-66837af1.js +313 -0
- package/dist/index-6af94f99.js +53 -0
- package/dist/{index-a379154f.js → index-815f0132.js} +2 -2
- package/dist/languages-list-8419e560.js +22 -0
- package/dist/logo-99aa20bd.js +27 -0
- package/dist/main.js +85 -66
- package/dist/mousewheel-865ae601.js +153 -0
- package/dist/palette-b47a76c9.js +46 -0
- package/dist/routes-382632ac.js +7 -0
- package/dist/search-dd4eb6f8.js +5 -0
- package/dist/{swiper-react-c049ea66.js → swiper-react-90953710.js} +760 -935
- package/dist/trash/HeroLargeCards/index.js +1 -1
- package/dist/useClickOutside-197b0df2.js +12 -0
- package/package.json +4 -2
- package/dist/ComponentContainer-0fcc2695.js +0 -16
- package/dist/componentsMap-71c9335f.js +0 -50
- package/dist/index-92f77047.js +0 -4865
- package/dist/model-9e50e351.js +0 -69
- /package/dist/assets/{swiper-react.css → index2.css} +0 -0
- /package/dist/assets/{TasksBanner.css → index3.css} +0 -0
|
@@ -1,63 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import './assets/swiper-react.css';const Pi = ({
|
|
4
|
-
color: t = "#40474F",
|
|
5
|
-
size: e = 24,
|
|
6
|
-
...i
|
|
7
|
-
}) => /* @__PURE__ */ te(
|
|
8
|
-
"svg",
|
|
9
|
-
{
|
|
10
|
-
width: e,
|
|
11
|
-
height: e,
|
|
12
|
-
viewBox: "0 0 24 24",
|
|
13
|
-
fill: "none",
|
|
14
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
-
...i,
|
|
16
|
-
children: /* @__PURE__ */ te(
|
|
17
|
-
"path",
|
|
18
|
-
{
|
|
19
|
-
d: "M17 22L8.41418 13.4142C7.74752 12.7476 7.41418 12.4142 7.41418 12C7.41418 11.5858 7.74752 11.2525 8.41418 10.5858L17 2",
|
|
20
|
-
stroke: t,
|
|
21
|
-
"stroke-width": "2",
|
|
22
|
-
"stroke-linejoin": "round"
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
), Ci = ({
|
|
27
|
-
color: t = "#40474F",
|
|
28
|
-
size: e = 24,
|
|
29
|
-
...i
|
|
30
|
-
}) => /* @__PURE__ */ te(
|
|
31
|
-
"svg",
|
|
32
|
-
{
|
|
33
|
-
width: e,
|
|
34
|
-
height: e,
|
|
35
|
-
viewBox: "0 0 24 24",
|
|
36
|
-
fill: "none",
|
|
37
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
-
...i,
|
|
39
|
-
children: /* @__PURE__ */ te(
|
|
40
|
-
"path",
|
|
41
|
-
{
|
|
42
|
-
d: "M7 22L15.5858 13.4142C16.2524 12.7476 16.5858 12.4142 16.5858 12C16.5858 11.5858 16.2525 11.2525 15.5858 10.5858L7 2",
|
|
43
|
-
stroke: t,
|
|
44
|
-
"stroke-width": "2",
|
|
45
|
-
"stroke-linejoin": "round"
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
function we(t) {
|
|
1
|
+
import A, { forwardRef as ye, useState as X, useRef as k, useEffect as ce, useLayoutEffect as He, createContext as Pe } from "react";
|
|
2
|
+
function he(t) {
|
|
51
3
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
52
4
|
}
|
|
53
|
-
function
|
|
5
|
+
function pe(t, e) {
|
|
54
6
|
t === void 0 && (t = {}), e === void 0 && (e = {});
|
|
55
7
|
const i = ["__proto__", "constructor", "prototype"];
|
|
56
8
|
Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
|
|
57
|
-
typeof t[s] > "u" ? t[s] = e[s] :
|
|
9
|
+
typeof t[s] > "u" ? t[s] = e[s] : he(e[s]) && he(t[s]) && Object.keys(e[s]).length > 0 && pe(t[s], e[s]);
|
|
58
10
|
});
|
|
59
11
|
}
|
|
60
|
-
const
|
|
12
|
+
const Ce = {
|
|
61
13
|
body: {},
|
|
62
14
|
addEventListener() {
|
|
63
15
|
},
|
|
@@ -112,12 +64,12 @@ const Le = {
|
|
|
112
64
|
search: ""
|
|
113
65
|
}
|
|
114
66
|
};
|
|
115
|
-
function
|
|
67
|
+
function q() {
|
|
116
68
|
const t = typeof document < "u" ? document : {};
|
|
117
|
-
return
|
|
69
|
+
return pe(t, Ce), t;
|
|
118
70
|
}
|
|
119
71
|
const We = {
|
|
120
|
-
document:
|
|
72
|
+
document: Ce,
|
|
121
73
|
navigator: {
|
|
122
74
|
userAgent: ""
|
|
123
75
|
},
|
|
@@ -174,14 +126,14 @@ const We = {
|
|
|
174
126
|
typeof setTimeout > "u" || clearTimeout(t);
|
|
175
127
|
}
|
|
176
128
|
};
|
|
177
|
-
function
|
|
129
|
+
function D() {
|
|
178
130
|
const t = typeof window < "u" ? window : {};
|
|
179
|
-
return
|
|
131
|
+
return pe(t, We), t;
|
|
180
132
|
}
|
|
181
|
-
function
|
|
133
|
+
function je(t) {
|
|
182
134
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
183
135
|
}
|
|
184
|
-
function
|
|
136
|
+
function qe(t) {
|
|
185
137
|
const e = t;
|
|
186
138
|
Object.keys(e).forEach((i) => {
|
|
187
139
|
try {
|
|
@@ -194,81 +146,81 @@ function Ye(t) {
|
|
|
194
146
|
}
|
|
195
147
|
});
|
|
196
148
|
}
|
|
197
|
-
function
|
|
149
|
+
function Me(t, e) {
|
|
198
150
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
199
151
|
}
|
|
200
|
-
function
|
|
152
|
+
function J() {
|
|
201
153
|
return Date.now();
|
|
202
154
|
}
|
|
203
|
-
function
|
|
204
|
-
const e =
|
|
155
|
+
function Ye(t) {
|
|
156
|
+
const e = D();
|
|
205
157
|
let i;
|
|
206
158
|
return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
|
|
207
159
|
}
|
|
208
|
-
function
|
|
160
|
+
function Xe(t, e) {
|
|
209
161
|
e === void 0 && (e = "x");
|
|
210
|
-
const i =
|
|
162
|
+
const i = D();
|
|
211
163
|
let s, n, r;
|
|
212
|
-
const l =
|
|
164
|
+
const l = Ye(t);
|
|
213
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;
|
|
214
166
|
}
|
|
215
|
-
function
|
|
167
|
+
function K(t) {
|
|
216
168
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
217
169
|
}
|
|
218
|
-
function
|
|
170
|
+
function Ue(t) {
|
|
219
171
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
220
172
|
}
|
|
221
|
-
function
|
|
173
|
+
function V() {
|
|
222
174
|
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
223
175
|
for (let i = 1; i < arguments.length; i += 1) {
|
|
224
176
|
const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
|
|
225
|
-
if (s != null && !
|
|
177
|
+
if (s != null && !Ue(s)) {
|
|
226
178
|
const n = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
|
|
227
179
|
for (let r = 0, l = n.length; r < l; r += 1) {
|
|
228
180
|
const a = n[r], o = Object.getOwnPropertyDescriptor(s, a);
|
|
229
|
-
o !== void 0 && o.enumerable && (
|
|
181
|
+
o !== void 0 && o.enumerable && (K(t[a]) && K(s[a]) ? s[a].__swiper__ ? t[a] = s[a] : V(t[a], s[a]) : !K(t[a]) && K(s[a]) ? (t[a] = {}, s[a].__swiper__ ? t[a] = s[a] : V(t[a], s[a])) : t[a] = s[a]);
|
|
230
182
|
}
|
|
231
183
|
}
|
|
232
184
|
}
|
|
233
185
|
return t;
|
|
234
186
|
}
|
|
235
|
-
function
|
|
187
|
+
function Q(t, e, i) {
|
|
236
188
|
t.style.setProperty(e, i);
|
|
237
189
|
}
|
|
238
|
-
function
|
|
190
|
+
function Ie(t) {
|
|
239
191
|
let {
|
|
240
192
|
swiper: e,
|
|
241
193
|
targetPosition: i,
|
|
242
194
|
side: s
|
|
243
195
|
} = t;
|
|
244
|
-
const n =
|
|
196
|
+
const n = D(), r = -e.translate;
|
|
245
197
|
let l = null, a;
|
|
246
198
|
const o = e.params.speed;
|
|
247
199
|
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
248
|
-
const d = i > r ? "next" : "prev", c = (m, h) => d === "next" && m >= h || d === "prev" && m <= h,
|
|
200
|
+
const d = i > r ? "next" : "prev", c = (m, h) => d === "next" && m >= h || d === "prev" && m <= h, f = () => {
|
|
249
201
|
a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
|
|
250
202
|
const m = Math.max(Math.min((a - l) / o, 1), 0), h = 0.5 - Math.cos(m * Math.PI) / 2;
|
|
251
|
-
let
|
|
252
|
-
if (c(
|
|
253
|
-
[s]:
|
|
254
|
-
}), c(
|
|
203
|
+
let u = r + h * (i - r);
|
|
204
|
+
if (c(u, i) && (u = i), e.wrapperEl.scrollTo({
|
|
205
|
+
[s]: u
|
|
206
|
+
}), c(u, i)) {
|
|
255
207
|
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
256
208
|
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
257
|
-
[s]:
|
|
209
|
+
[s]: u
|
|
258
210
|
});
|
|
259
211
|
}), n.cancelAnimationFrame(e.cssModeFrameID);
|
|
260
212
|
return;
|
|
261
213
|
}
|
|
262
|
-
e.cssModeFrameID = n.requestAnimationFrame(
|
|
214
|
+
e.cssModeFrameID = n.requestAnimationFrame(f);
|
|
263
215
|
};
|
|
264
|
-
|
|
216
|
+
f();
|
|
265
217
|
}
|
|
266
218
|
function R(t, e) {
|
|
267
219
|
e === void 0 && (e = "");
|
|
268
|
-
const i =
|
|
220
|
+
const i = D(), s = [...t.children];
|
|
269
221
|
return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((n) => n.matches(e)) : s;
|
|
270
222
|
}
|
|
271
|
-
function
|
|
223
|
+
function Ke(t, e) {
|
|
272
224
|
const i = [e];
|
|
273
225
|
for (; i.length > 0; ) {
|
|
274
226
|
const s = i.shift();
|
|
@@ -277,24 +229,24 @@ function Qe(t, e) {
|
|
|
277
229
|
i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
|
|
278
230
|
}
|
|
279
231
|
}
|
|
280
|
-
function
|
|
281
|
-
const i =
|
|
232
|
+
function Qe(t, e) {
|
|
233
|
+
const i = D();
|
|
282
234
|
let s = e.contains(t);
|
|
283
|
-
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 = Ke(t, e))), s;
|
|
284
236
|
}
|
|
285
|
-
function
|
|
237
|
+
function ee(t) {
|
|
286
238
|
try {
|
|
287
239
|
console.warn(t);
|
|
288
240
|
return;
|
|
289
241
|
} catch {
|
|
290
242
|
}
|
|
291
243
|
}
|
|
292
|
-
function
|
|
244
|
+
function te(t, e) {
|
|
293
245
|
e === void 0 && (e = []);
|
|
294
246
|
const i = document.createElement(t);
|
|
295
|
-
return i.classList.add(...Array.isArray(e) ? e :
|
|
247
|
+
return i.classList.add(...Array.isArray(e) ? e : je(e)), i;
|
|
296
248
|
}
|
|
297
|
-
function
|
|
249
|
+
function Ze(t, e) {
|
|
298
250
|
const i = [];
|
|
299
251
|
for (; t.previousElementSibling; ) {
|
|
300
252
|
const s = t.previousElementSibling;
|
|
@@ -302,7 +254,7 @@ function Je(t, e) {
|
|
|
302
254
|
}
|
|
303
255
|
return i;
|
|
304
256
|
}
|
|
305
|
-
function
|
|
257
|
+
function Je(t, e) {
|
|
306
258
|
const i = [];
|
|
307
259
|
for (; t.nextElementSibling; ) {
|
|
308
260
|
const s = t.nextElementSibling;
|
|
@@ -311,9 +263,9 @@ function et(t, e) {
|
|
|
311
263
|
return i;
|
|
312
264
|
}
|
|
313
265
|
function W(t, e) {
|
|
314
|
-
return
|
|
266
|
+
return D().getComputedStyle(t, null).getPropertyValue(e);
|
|
315
267
|
}
|
|
316
|
-
function
|
|
268
|
+
function ge(t) {
|
|
317
269
|
let e = t, i;
|
|
318
270
|
if (e) {
|
|
319
271
|
for (i = 0; (e = e.previousSibling) !== null; )
|
|
@@ -321,318 +273,57 @@ function Se(t) {
|
|
|
321
273
|
return i;
|
|
322
274
|
}
|
|
323
275
|
}
|
|
324
|
-
function
|
|
276
|
+
function et(t, e) {
|
|
325
277
|
const i = [];
|
|
326
278
|
let s = t.parentElement;
|
|
327
279
|
for (; s; )
|
|
328
280
|
e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
|
|
329
281
|
return i;
|
|
330
282
|
}
|
|
331
|
-
function
|
|
332
|
-
const s =
|
|
283
|
+
function ve(t, e, i) {
|
|
284
|
+
const s = D();
|
|
333
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;
|
|
334
286
|
}
|
|
335
|
-
function
|
|
287
|
+
function $(t) {
|
|
336
288
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
337
289
|
}
|
|
338
|
-
function
|
|
290
|
+
function we(t, e) {
|
|
339
291
|
e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
|
|
340
292
|
createHTML: (i) => i
|
|
341
293
|
}).createHTML(e) : t.innerHTML = e;
|
|
342
294
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
let r = R(t.el, `.${s[n]}`)[0];
|
|
347
|
-
r || (r = re("div", s[n]), r.className = s[n], t.el.append(r)), i[n] = r, e[n] = r;
|
|
348
|
-
}
|
|
349
|
-
}), i;
|
|
350
|
-
}
|
|
351
|
-
function Mi(t) {
|
|
352
|
-
let {
|
|
353
|
-
swiper: e,
|
|
354
|
-
extendParams: i,
|
|
355
|
-
on: s,
|
|
356
|
-
emit: n
|
|
357
|
-
} = t;
|
|
358
|
-
i({
|
|
359
|
-
navigation: {
|
|
360
|
-
nextEl: null,
|
|
361
|
-
prevEl: null,
|
|
362
|
-
hideOnClick: !1,
|
|
363
|
-
disabledClass: "swiper-button-disabled",
|
|
364
|
-
hiddenClass: "swiper-button-hidden",
|
|
365
|
-
lockClass: "swiper-button-lock",
|
|
366
|
-
navigationDisabledClass: "swiper-navigation-disabled"
|
|
367
|
-
}
|
|
368
|
-
}), e.navigation = {
|
|
369
|
-
nextEl: null,
|
|
370
|
-
prevEl: null
|
|
371
|
-
};
|
|
372
|
-
function r(f) {
|
|
373
|
-
let g;
|
|
374
|
-
return f && typeof f == "string" && e.isElement && (g = e.el.querySelector(f) || e.hostEl.querySelector(f), g) ? g : (f && (typeof f == "string" && (g = [...document.querySelectorAll(f)]), e.params.uniqueNavElements && typeof f == "string" && g && g.length > 1 && e.el.querySelectorAll(f).length === 1 ? g = e.el.querySelector(f) : g && g.length === 1 && (g = g[0])), f && !g ? f : g);
|
|
375
|
-
}
|
|
376
|
-
function l(f, g) {
|
|
377
|
-
const S = e.params.navigation;
|
|
378
|
-
f = H(f), f.forEach((p) => {
|
|
379
|
-
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));
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
function a() {
|
|
383
|
-
const {
|
|
384
|
-
nextEl: f,
|
|
385
|
-
prevEl: g
|
|
386
|
-
} = e.navigation;
|
|
387
|
-
if (e.params.loop) {
|
|
388
|
-
l(g, !1), l(f, !1);
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
391
|
-
l(g, e.isBeginning && !e.params.rewind), l(f, e.isEnd && !e.params.rewind);
|
|
392
|
-
}
|
|
393
|
-
function o(f) {
|
|
394
|
-
f.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), n("navigationPrev"));
|
|
395
|
-
}
|
|
396
|
-
function d(f) {
|
|
397
|
-
f.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), n("navigationNext"));
|
|
398
|
-
}
|
|
399
|
-
function c() {
|
|
400
|
-
const f = e.params.navigation;
|
|
401
|
-
if (e.params.navigation = it(e, e.originalParams.navigation, e.params.navigation, {
|
|
402
|
-
nextEl: "swiper-button-next",
|
|
403
|
-
prevEl: "swiper-button-prev"
|
|
404
|
-
}), !(f.nextEl || f.prevEl))
|
|
405
|
-
return;
|
|
406
|
-
let g = r(f.nextEl), S = r(f.prevEl);
|
|
407
|
-
Object.assign(e.navigation, {
|
|
408
|
-
nextEl: g,
|
|
409
|
-
prevEl: S
|
|
410
|
-
}), g = H(g), S = H(S);
|
|
411
|
-
const p = (v, w) => {
|
|
412
|
-
v && v.addEventListener("click", w === "next" ? d : o), !e.enabled && v && v.classList.add(...f.lockClass.split(" "));
|
|
413
|
-
};
|
|
414
|
-
g.forEach((v) => p(v, "next")), S.forEach((v) => p(v, "prev"));
|
|
415
|
-
}
|
|
416
|
-
function u() {
|
|
417
|
-
let {
|
|
418
|
-
nextEl: f,
|
|
419
|
-
prevEl: g
|
|
420
|
-
} = e.navigation;
|
|
421
|
-
f = H(f), g = H(g);
|
|
422
|
-
const S = (p, v) => {
|
|
423
|
-
p.removeEventListener("click", v === "next" ? d : o), p.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
424
|
-
};
|
|
425
|
-
f.forEach((p) => S(p, "next")), g.forEach((p) => S(p, "prev"));
|
|
426
|
-
}
|
|
427
|
-
s("init", () => {
|
|
428
|
-
e.params.navigation.enabled === !1 ? h() : (c(), a());
|
|
429
|
-
}), s("toEdge fromEdge lock unlock", () => {
|
|
430
|
-
a();
|
|
431
|
-
}), s("destroy", () => {
|
|
432
|
-
u();
|
|
433
|
-
}), s("enable disable", () => {
|
|
434
|
-
let {
|
|
435
|
-
nextEl: f,
|
|
436
|
-
prevEl: g
|
|
437
|
-
} = e.navigation;
|
|
438
|
-
if (f = H(f), g = H(g), e.enabled) {
|
|
439
|
-
a();
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
[...f, ...g].filter((S) => !!S).forEach((S) => S.classList.add(e.params.navigation.lockClass));
|
|
443
|
-
}), s("click", (f, g) => {
|
|
444
|
-
let {
|
|
445
|
-
nextEl: S,
|
|
446
|
-
prevEl: p
|
|
447
|
-
} = e.navigation;
|
|
448
|
-
S = H(S), p = H(p);
|
|
449
|
-
const v = g.target;
|
|
450
|
-
let w = p.includes(v) || S.includes(v);
|
|
451
|
-
if (e.isElement && !w) {
|
|
452
|
-
const E = g.path || g.composedPath && g.composedPath();
|
|
453
|
-
E && (w = E.find((b) => S.includes(b) || p.includes(b)));
|
|
454
|
-
}
|
|
455
|
-
if (e.params.navigation.hideOnClick && !w) {
|
|
456
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === v || e.pagination.el.contains(v)))
|
|
457
|
-
return;
|
|
458
|
-
let E;
|
|
459
|
-
S.length ? E = S[0].classList.contains(e.params.navigation.hiddenClass) : p.length && (E = p[0].classList.contains(e.params.navigation.hiddenClass)), n(E === !0 ? "navigationShow" : "navigationHide"), [...S, ...p].filter((b) => !!b).forEach((b) => b.classList.toggle(e.params.navigation.hiddenClass));
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
const m = () => {
|
|
463
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), c(), a();
|
|
464
|
-
}, h = () => {
|
|
465
|
-
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), u();
|
|
466
|
-
};
|
|
467
|
-
Object.assign(e.navigation, {
|
|
468
|
-
enable: m,
|
|
469
|
-
disable: h,
|
|
470
|
-
update: a,
|
|
471
|
-
init: c,
|
|
472
|
-
destroy: u
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
function Ii(t) {
|
|
476
|
-
let {
|
|
477
|
-
swiper: e,
|
|
478
|
-
extendParams: i,
|
|
479
|
-
on: s,
|
|
480
|
-
emit: n,
|
|
481
|
-
params: r
|
|
482
|
-
} = t;
|
|
483
|
-
e.autoplay = {
|
|
484
|
-
running: !1,
|
|
485
|
-
paused: !1,
|
|
486
|
-
timeLeft: 0
|
|
487
|
-
}, i({
|
|
488
|
-
autoplay: {
|
|
489
|
-
enabled: !1,
|
|
490
|
-
delay: 3e3,
|
|
491
|
-
waitForTransition: !0,
|
|
492
|
-
disableOnInteraction: !1,
|
|
493
|
-
stopOnLastSlide: !1,
|
|
494
|
-
reverseDirection: !1,
|
|
495
|
-
pauseOnMouseEnter: !1
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
let l, a, o = r && r.autoplay ? r.autoplay.delay : 3e3, d = r && r.autoplay ? r.autoplay.delay : 3e3, c, u = (/* @__PURE__ */ new Date()).getTime(), m, h, f, g, S, p, v;
|
|
499
|
-
function w(M) {
|
|
500
|
-
!e || e.destroyed || !e.wrapperEl || M.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", w), !(v || M.detail && M.detail.bySwiperTouchMove) && T());
|
|
501
|
-
}
|
|
502
|
-
const E = () => {
|
|
503
|
-
if (e.destroyed || !e.autoplay.running)
|
|
504
|
-
return;
|
|
505
|
-
e.autoplay.paused ? m = !0 : m && (d = c, m = !1);
|
|
506
|
-
const M = e.autoplay.paused ? c : u + d - (/* @__PURE__ */ new Date()).getTime();
|
|
507
|
-
e.autoplay.timeLeft = M, n("autoplayTimeLeft", M, M / o), a = requestAnimationFrame(() => {
|
|
508
|
-
E();
|
|
509
|
-
});
|
|
510
|
-
}, b = () => {
|
|
511
|
-
let M;
|
|
512
|
-
return e.virtual && e.params.virtual.enabled ? M = e.slides.find((_) => _.classList.contains("swiper-slide-active")) : M = e.slides[e.activeIndex], M ? parseInt(M.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
513
|
-
}, C = (M) => {
|
|
514
|
-
if (e.destroyed || !e.autoplay.running)
|
|
515
|
-
return;
|
|
516
|
-
cancelAnimationFrame(a), E();
|
|
517
|
-
let z = typeof M > "u" ? e.params.autoplay.delay : M;
|
|
518
|
-
o = e.params.autoplay.delay, d = e.params.autoplay.delay;
|
|
519
|
-
const _ = b();
|
|
520
|
-
!Number.isNaN(_) && _ > 0 && typeof M > "u" && (z = _, o = _, d = _), c = z;
|
|
521
|
-
const q = e.params.speed, Q = () => {
|
|
522
|
-
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(q, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, q, !0, !0), n("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(q, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, q, !0, !0), n("autoplay")), e.params.cssMode && (u = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
523
|
-
C();
|
|
524
|
-
})));
|
|
525
|
-
};
|
|
526
|
-
return z > 0 ? (clearTimeout(l), l = setTimeout(() => {
|
|
527
|
-
Q();
|
|
528
|
-
}, z)) : requestAnimationFrame(() => {
|
|
529
|
-
Q();
|
|
530
|
-
}), z;
|
|
531
|
-
}, I = () => {
|
|
532
|
-
u = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, C(), n("autoplayStart");
|
|
533
|
-
}, x = () => {
|
|
534
|
-
e.autoplay.running = !1, clearTimeout(l), cancelAnimationFrame(a), n("autoplayStop");
|
|
535
|
-
}, y = (M, z) => {
|
|
536
|
-
if (e.destroyed || !e.autoplay.running)
|
|
537
|
-
return;
|
|
538
|
-
clearTimeout(l), M || (p = !0);
|
|
539
|
-
const _ = () => {
|
|
540
|
-
n("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", w) : T();
|
|
541
|
-
};
|
|
542
|
-
if (e.autoplay.paused = !0, z) {
|
|
543
|
-
S && (c = e.params.autoplay.delay), S = !1, _();
|
|
544
|
-
return;
|
|
545
|
-
}
|
|
546
|
-
c = (c || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - u), !(e.isEnd && c < 0 && !e.params.loop) && (c < 0 && (c = 0), _());
|
|
547
|
-
}, T = () => {
|
|
548
|
-
e.isEnd && c < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (u = (/* @__PURE__ */ new Date()).getTime(), p ? (p = !1, C(c)) : C(), e.autoplay.paused = !1, n("autoplayResume"));
|
|
549
|
-
}, P = () => {
|
|
550
|
-
if (e.destroyed || !e.autoplay.running)
|
|
551
|
-
return;
|
|
552
|
-
const M = $();
|
|
553
|
-
M.visibilityState === "hidden" && (p = !0, y(!0)), M.visibilityState === "visible" && T();
|
|
554
|
-
}, L = (M) => {
|
|
555
|
-
M.pointerType === "mouse" && (p = !0, v = !0, !(e.animating || e.autoplay.paused) && y(!0));
|
|
556
|
-
}, A = (M) => {
|
|
557
|
-
M.pointerType === "mouse" && (v = !1, e.autoplay.paused && T());
|
|
558
|
-
}, V = () => {
|
|
559
|
-
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", L), e.el.addEventListener("pointerleave", A));
|
|
560
|
-
}, N = () => {
|
|
561
|
-
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", L), e.el.removeEventListener("pointerleave", A));
|
|
562
|
-
}, O = () => {
|
|
563
|
-
$().addEventListener("visibilitychange", P);
|
|
564
|
-
}, D = () => {
|
|
565
|
-
$().removeEventListener("visibilitychange", P);
|
|
566
|
-
};
|
|
567
|
-
s("init", () => {
|
|
568
|
-
e.params.autoplay.enabled && (V(), O(), I());
|
|
569
|
-
}), s("destroy", () => {
|
|
570
|
-
N(), D(), e.autoplay.running && x();
|
|
571
|
-
}), s("_freeModeStaticRelease", () => {
|
|
572
|
-
(f || p) && T();
|
|
573
|
-
}), s("_freeModeNoMomentumRelease", () => {
|
|
574
|
-
e.params.autoplay.disableOnInteraction ? x() : y(!0, !0);
|
|
575
|
-
}), s("beforeTransitionStart", (M, z, _) => {
|
|
576
|
-
e.destroyed || !e.autoplay.running || (_ || !e.params.autoplay.disableOnInteraction ? y(!0, !0) : x());
|
|
577
|
-
}), s("sliderFirstMove", () => {
|
|
578
|
-
if (!(e.destroyed || !e.autoplay.running)) {
|
|
579
|
-
if (e.params.autoplay.disableOnInteraction) {
|
|
580
|
-
x();
|
|
581
|
-
return;
|
|
582
|
-
}
|
|
583
|
-
h = !0, f = !1, p = !1, g = setTimeout(() => {
|
|
584
|
-
p = !0, f = !0, y(!0);
|
|
585
|
-
}, 200);
|
|
586
|
-
}
|
|
587
|
-
}), s("touchEnd", () => {
|
|
588
|
-
if (!(e.destroyed || !e.autoplay.running || !h)) {
|
|
589
|
-
if (clearTimeout(g), clearTimeout(l), e.params.autoplay.disableOnInteraction) {
|
|
590
|
-
f = !1, h = !1;
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
f && e.params.cssMode && T(), f = !1, h = !1;
|
|
594
|
-
}
|
|
595
|
-
}), s("slideChange", () => {
|
|
596
|
-
e.destroyed || !e.autoplay.running || (S = !0);
|
|
597
|
-
}), Object.assign(e.autoplay, {
|
|
598
|
-
start: I,
|
|
599
|
-
stop: x,
|
|
600
|
-
pause: y,
|
|
601
|
-
resume: T
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
let ae;
|
|
605
|
-
function st() {
|
|
606
|
-
const t = B(), e = $();
|
|
295
|
+
let se;
|
|
296
|
+
function tt() {
|
|
297
|
+
const t = D(), e = q();
|
|
607
298
|
return {
|
|
608
299
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
609
300
|
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
610
301
|
};
|
|
611
302
|
}
|
|
612
|
-
function
|
|
613
|
-
return
|
|
303
|
+
function Le() {
|
|
304
|
+
return se || (se = tt()), se;
|
|
614
305
|
}
|
|
615
|
-
let
|
|
616
|
-
function
|
|
306
|
+
let re;
|
|
307
|
+
function it(t) {
|
|
617
308
|
let {
|
|
618
309
|
userAgent: e
|
|
619
310
|
} = t === void 0 ? {} : t;
|
|
620
|
-
const i =
|
|
311
|
+
const i = Le(), s = D(), n = s.navigator.platform, r = e || s.navigator.userAgent, l = {
|
|
621
312
|
ios: !1,
|
|
622
313
|
android: !1
|
|
623
314
|
}, a = s.screen.width, o = s.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
624
315
|
let c = r.match(/(iPad).*OS\s([\d_]+)/);
|
|
625
|
-
const
|
|
626
|
-
let
|
|
316
|
+
const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), m = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), h = n === "Win32";
|
|
317
|
+
let u = n === "MacIntel";
|
|
627
318
|
const g = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
628
|
-
return !c &&
|
|
319
|
+
return !c && u && i.touch && g.indexOf(`${a}x${o}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), u = !1), d && !h && (l.os = "android", l.android = !0), (c || m || f) && (l.os = "ios", l.ios = !0), l;
|
|
629
320
|
}
|
|
630
|
-
function
|
|
631
|
-
return t === void 0 && (t = {}),
|
|
321
|
+
function Oe(t) {
|
|
322
|
+
return t === void 0 && (t = {}), re || (re = it(t)), re;
|
|
632
323
|
}
|
|
633
|
-
let
|
|
634
|
-
function
|
|
635
|
-
const t =
|
|
324
|
+
let ne;
|
|
325
|
+
function st() {
|
|
326
|
+
const t = D(), e = Oe();
|
|
636
327
|
let i = !1;
|
|
637
328
|
function s() {
|
|
638
329
|
const a = t.navigator.userAgent.toLowerCase();
|
|
@@ -653,35 +344,35 @@ function nt() {
|
|
|
653
344
|
isWebView: n
|
|
654
345
|
};
|
|
655
346
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
347
|
+
function ze() {
|
|
348
|
+
return ne || (ne = st()), ne;
|
|
658
349
|
}
|
|
659
|
-
function
|
|
350
|
+
function rt(t) {
|
|
660
351
|
let {
|
|
661
352
|
swiper: e,
|
|
662
353
|
on: i,
|
|
663
354
|
emit: s
|
|
664
355
|
} = t;
|
|
665
|
-
const n =
|
|
356
|
+
const n = D();
|
|
666
357
|
let r = null, l = null;
|
|
667
358
|
const a = () => {
|
|
668
359
|
!e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
|
|
669
360
|
}, o = () => {
|
|
670
|
-
!e || e.destroyed || !e.initialized || (r = new ResizeObserver((
|
|
361
|
+
!e || e.destroyed || !e.initialized || (r = new ResizeObserver((f) => {
|
|
671
362
|
l = n.requestAnimationFrame(() => {
|
|
672
363
|
const {
|
|
673
364
|
width: m,
|
|
674
365
|
height: h
|
|
675
366
|
} = e;
|
|
676
|
-
let
|
|
677
|
-
|
|
367
|
+
let u = m, g = h;
|
|
368
|
+
f.forEach((S) => {
|
|
678
369
|
let {
|
|
679
370
|
contentBoxSize: p,
|
|
680
371
|
contentRect: v,
|
|
681
372
|
target: w
|
|
682
373
|
} = S;
|
|
683
|
-
w && w !== e.el || (
|
|
684
|
-
}), (
|
|
374
|
+
w && w !== e.el || (u = v ? v.width : (p[0] || p).inlineSize, g = v ? v.height : (p[0] || p).blockSize);
|
|
375
|
+
}), (u !== m || g !== h) && a();
|
|
685
376
|
});
|
|
686
377
|
}), r.observe(e.el));
|
|
687
378
|
}, d = () => {
|
|
@@ -699,38 +390,38 @@ function at(t) {
|
|
|
699
390
|
d(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", c);
|
|
700
391
|
});
|
|
701
392
|
}
|
|
702
|
-
function
|
|
393
|
+
function nt(t) {
|
|
703
394
|
let {
|
|
704
395
|
swiper: e,
|
|
705
396
|
extendParams: i,
|
|
706
397
|
on: s,
|
|
707
398
|
emit: n
|
|
708
399
|
} = t;
|
|
709
|
-
const r = [], l =
|
|
710
|
-
|
|
711
|
-
const m = l.MutationObserver || l.WebkitMutationObserver, h = new m((
|
|
400
|
+
const r = [], l = D(), a = function(c, f) {
|
|
401
|
+
f === void 0 && (f = {});
|
|
402
|
+
const m = l.MutationObserver || l.WebkitMutationObserver, h = new m((u) => {
|
|
712
403
|
if (e.__preventObserver__)
|
|
713
404
|
return;
|
|
714
|
-
if (
|
|
715
|
-
n("observerUpdate",
|
|
405
|
+
if (u.length === 1) {
|
|
406
|
+
n("observerUpdate", u[0]);
|
|
716
407
|
return;
|
|
717
408
|
}
|
|
718
409
|
const g = function() {
|
|
719
|
-
n("observerUpdate",
|
|
410
|
+
n("observerUpdate", u[0]);
|
|
720
411
|
};
|
|
721
412
|
l.requestAnimationFrame ? l.requestAnimationFrame(g) : l.setTimeout(g, 0);
|
|
722
413
|
});
|
|
723
414
|
h.observe(c, {
|
|
724
|
-
attributes: typeof
|
|
725
|
-
childList: e.isElement || (typeof
|
|
726
|
-
characterData: typeof
|
|
415
|
+
attributes: typeof f.attributes > "u" ? !0 : f.attributes,
|
|
416
|
+
childList: e.isElement || (typeof f.childList > "u" ? !0 : f).childList,
|
|
417
|
+
characterData: typeof f.characterData > "u" ? !0 : f.characterData
|
|
727
418
|
}), r.push(h);
|
|
728
419
|
}, o = () => {
|
|
729
420
|
if (e.params.observer) {
|
|
730
421
|
if (e.params.observeParents) {
|
|
731
|
-
const c =
|
|
732
|
-
for (let
|
|
733
|
-
a(c[
|
|
422
|
+
const c = et(e.hostEl);
|
|
423
|
+
for (let f = 0; f < c.length; f += 1)
|
|
424
|
+
a(c[f]);
|
|
734
425
|
}
|
|
735
426
|
a(e.hostEl, {
|
|
736
427
|
childList: e.params.observeSlideChildren
|
|
@@ -749,7 +440,7 @@ function lt(t) {
|
|
|
749
440
|
observeSlideChildren: !1
|
|
750
441
|
}), s("init", o), s("destroy", d);
|
|
751
442
|
}
|
|
752
|
-
var
|
|
443
|
+
var at = {
|
|
753
444
|
on(t, e, i) {
|
|
754
445
|
const s = this;
|
|
755
446
|
if (!s.eventsListeners || s.destroyed || typeof e != "function")
|
|
@@ -809,7 +500,7 @@ var ot = {
|
|
|
809
500
|
}), t;
|
|
810
501
|
}
|
|
811
502
|
};
|
|
812
|
-
function
|
|
503
|
+
function lt() {
|
|
813
504
|
const t = this;
|
|
814
505
|
let e, i;
|
|
815
506
|
const s = t.el;
|
|
@@ -819,10 +510,10 @@ function dt() {
|
|
|
819
510
|
size: t.isHorizontal() ? e : i
|
|
820
511
|
}));
|
|
821
512
|
}
|
|
822
|
-
function
|
|
513
|
+
function ot() {
|
|
823
514
|
const t = this;
|
|
824
|
-
function e(T,
|
|
825
|
-
return parseFloat(T.getPropertyValue(t.getDirectionLabel(
|
|
515
|
+
function e(T, y) {
|
|
516
|
+
return parseFloat(T.getPropertyValue(t.getDirectionLabel(y)) || 0);
|
|
826
517
|
}
|
|
827
518
|
const i = t.params, {
|
|
828
519
|
wrapperEl: s,
|
|
@@ -830,95 +521,95 @@ function ct() {
|
|
|
830
521
|
size: r,
|
|
831
522
|
rtlTranslate: l,
|
|
832
523
|
wrongRTL: a
|
|
833
|
-
} = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, c = R(n, `.${t.params.slideClass}, swiper-slide`),
|
|
524
|
+
} = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, c = R(n, `.${t.params.slideClass}, swiper-slide`), f = o ? t.virtual.slides.length : c.length;
|
|
834
525
|
let m = [];
|
|
835
|
-
const h = [],
|
|
526
|
+
const h = [], u = [];
|
|
836
527
|
let g = i.slidesOffsetBefore;
|
|
837
528
|
typeof g == "function" && (g = i.slidesOffsetBefore.call(t));
|
|
838
529
|
let S = i.slidesOffsetAfter;
|
|
839
530
|
typeof S == "function" && (S = i.slidesOffsetAfter.call(t));
|
|
840
531
|
const p = t.snapGrid.length, v = t.slidesGrid.length;
|
|
841
|
-
let w = i.spaceBetween,
|
|
532
|
+
let w = i.spaceBetween, x = -g, b = 0, C = 0;
|
|
842
533
|
if (typeof r > "u")
|
|
843
534
|
return;
|
|
844
535
|
typeof w == "string" && w.indexOf("%") >= 0 ? w = parseFloat(w.replace("%", "")) / 100 * r : typeof w == "string" && (w = parseFloat(w)), t.virtualSize = -w, c.forEach((T) => {
|
|
845
536
|
l ? T.style.marginLeft = "" : T.style.marginRight = "", T.style.marginBottom = "", T.style.marginTop = "";
|
|
846
|
-
}), i.centeredSlides && i.cssMode && (
|
|
847
|
-
const
|
|
848
|
-
|
|
849
|
-
let
|
|
850
|
-
const
|
|
851
|
-
for (let T = 0; T <
|
|
852
|
-
|
|
853
|
-
let
|
|
854
|
-
if (c[T] && (
|
|
537
|
+
}), i.centeredSlides && i.cssMode && (Q(s, "--swiper-centered-offset-before", ""), Q(s, "--swiper-centered-offset-after", ""));
|
|
538
|
+
const M = i.grid && i.grid.rows > 1 && t.grid;
|
|
539
|
+
M ? t.grid.initSlides(c) : t.grid && t.grid.unsetSlides();
|
|
540
|
+
let P;
|
|
541
|
+
const E = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((T) => typeof i.breakpoints[T].slidesPerView < "u").length > 0;
|
|
542
|
+
for (let T = 0; T < f; T += 1) {
|
|
543
|
+
P = 0;
|
|
544
|
+
let y;
|
|
545
|
+
if (c[T] && (y = c[T]), M && t.grid.updateSlide(T, y, c), !(c[T] && W(y, "display") === "none")) {
|
|
855
546
|
if (i.slidesPerView === "auto") {
|
|
856
|
-
|
|
857
|
-
const
|
|
858
|
-
if (
|
|
859
|
-
|
|
547
|
+
E && (c[T].style[t.getDirectionLabel("width")] = "");
|
|
548
|
+
const I = getComputedStyle(y), z = y.style.transform, B = y.style.webkitTransform;
|
|
549
|
+
if (z && (y.style.transform = "none"), B && (y.style.webkitTransform = "none"), i.roundLengths)
|
|
550
|
+
P = t.isHorizontal() ? ve(y, "width", !0) : ve(y, "height", !0);
|
|
860
551
|
else {
|
|
861
|
-
const N = e(
|
|
862
|
-
if (
|
|
863
|
-
|
|
552
|
+
const N = e(I, "width"), L = e(I, "padding-left"), _ = e(I, "padding-right"), G = e(I, "margin-left"), O = e(I, "margin-right"), F = I.getPropertyValue("box-sizing");
|
|
553
|
+
if (F && F === "border-box")
|
|
554
|
+
P = N + G + O;
|
|
864
555
|
else {
|
|
865
556
|
const {
|
|
866
|
-
clientWidth:
|
|
867
|
-
offsetWidth:
|
|
868
|
-
} =
|
|
869
|
-
|
|
557
|
+
clientWidth: Re,
|
|
558
|
+
offsetWidth: $e
|
|
559
|
+
} = y;
|
|
560
|
+
P = N + L + _ + G + O + ($e - Re);
|
|
870
561
|
}
|
|
871
562
|
}
|
|
872
|
-
|
|
563
|
+
z && (y.style.transform = z), B && (y.style.webkitTransform = B), i.roundLengths && (P = Math.floor(P));
|
|
873
564
|
} else
|
|
874
|
-
|
|
875
|
-
c[T] && (c[T].swiperSlideSize =
|
|
565
|
+
P = (r - (i.slidesPerView - 1) * w) / i.slidesPerView, i.roundLengths && (P = Math.floor(P)), c[T] && (c[T].style[t.getDirectionLabel("width")] = `${P}px`);
|
|
566
|
+
c[T] && (c[T].swiperSlideSize = P), u.push(P), i.centeredSlides ? (x = x + P / 2 + b / 2 + w, b === 0 && T !== 0 && (x = x - r / 2 - w), T === 0 && (x = x - r / 2 - w), Math.abs(x) < 1 / 1e3 && (x = 0), i.roundLengths && (x = Math.floor(x)), C % i.slidesPerGroup === 0 && m.push(x), h.push(x)) : (i.roundLengths && (x = Math.floor(x)), (C - Math.min(t.params.slidesPerGroupSkip, C)) % t.params.slidesPerGroup === 0 && m.push(x), h.push(x), x = x + P + w), t.virtualSize += P + w, b = P, C += 1;
|
|
876
567
|
}
|
|
877
568
|
}
|
|
878
|
-
if (t.virtualSize = Math.max(t.virtualSize, r) + S, l && a && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + w}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + w}px`),
|
|
569
|
+
if (t.virtualSize = Math.max(t.virtualSize, r) + S, l && a && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + w}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + w}px`), M && t.grid.updateWrapperSize(P, m), !i.centeredSlides) {
|
|
879
570
|
const T = [];
|
|
880
|
-
for (let
|
|
881
|
-
let
|
|
882
|
-
i.roundLengths && (
|
|
571
|
+
for (let y = 0; y < m.length; y += 1) {
|
|
572
|
+
let I = m[y];
|
|
573
|
+
i.roundLengths && (I = Math.floor(I)), m[y] <= t.virtualSize - r && T.push(I);
|
|
883
574
|
}
|
|
884
575
|
m = T, Math.floor(t.virtualSize - r) - Math.floor(m[m.length - 1]) > 1 && m.push(t.virtualSize - r);
|
|
885
576
|
}
|
|
886
577
|
if (o && i.loop) {
|
|
887
|
-
const T =
|
|
578
|
+
const T = u[0] + w;
|
|
888
579
|
if (i.slidesPerGroup > 1) {
|
|
889
|
-
const
|
|
890
|
-
for (let
|
|
891
|
-
m.push(m[m.length - 1] +
|
|
580
|
+
const y = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), I = T * i.slidesPerGroup;
|
|
581
|
+
for (let z = 0; z < y; z += 1)
|
|
582
|
+
m.push(m[m.length - 1] + I);
|
|
892
583
|
}
|
|
893
|
-
for (let
|
|
584
|
+
for (let y = 0; y < t.virtual.slidesBefore + t.virtual.slidesAfter; y += 1)
|
|
894
585
|
i.slidesPerGroup === 1 && m.push(m[m.length - 1] + T), h.push(h[h.length - 1] + T), t.virtualSize += T;
|
|
895
586
|
}
|
|
896
587
|
if (m.length === 0 && (m = [0]), w !== 0) {
|
|
897
588
|
const T = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
898
|
-
c.filter((
|
|
899
|
-
|
|
589
|
+
c.filter((y, I) => !i.cssMode || i.loop ? !0 : I !== c.length - 1).forEach((y) => {
|
|
590
|
+
y.style[T] = `${w}px`;
|
|
900
591
|
});
|
|
901
592
|
}
|
|
902
593
|
if (i.centeredSlides && i.centeredSlidesBounds) {
|
|
903
594
|
let T = 0;
|
|
904
|
-
|
|
905
|
-
T +=
|
|
595
|
+
u.forEach((I) => {
|
|
596
|
+
T += I + (w || 0);
|
|
906
597
|
}), T -= w;
|
|
907
|
-
const
|
|
908
|
-
m = m.map((
|
|
598
|
+
const y = T > r ? T - r : 0;
|
|
599
|
+
m = m.map((I) => I <= 0 ? -g : I > y ? y + S : I);
|
|
909
600
|
}
|
|
910
601
|
if (i.centerInsufficientSlides) {
|
|
911
602
|
let T = 0;
|
|
912
|
-
|
|
913
|
-
T +=
|
|
603
|
+
u.forEach((I) => {
|
|
604
|
+
T += I + (w || 0);
|
|
914
605
|
}), T -= w;
|
|
915
|
-
const
|
|
916
|
-
if (T +
|
|
917
|
-
const
|
|
918
|
-
m.forEach((
|
|
919
|
-
m[
|
|
920
|
-
}), h.forEach((
|
|
921
|
-
h[
|
|
606
|
+
const y = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
|
|
607
|
+
if (T + y < r) {
|
|
608
|
+
const I = (r - T - y) / 2;
|
|
609
|
+
m.forEach((z, B) => {
|
|
610
|
+
m[B] = z - I;
|
|
611
|
+
}), h.forEach((z, B) => {
|
|
612
|
+
h[B] = z + I;
|
|
922
613
|
});
|
|
923
614
|
}
|
|
924
615
|
}
|
|
@@ -926,18 +617,18 @@ function ct() {
|
|
|
926
617
|
slides: c,
|
|
927
618
|
snapGrid: m,
|
|
928
619
|
slidesGrid: h,
|
|
929
|
-
slidesSizesGrid:
|
|
620
|
+
slidesSizesGrid: u
|
|
930
621
|
}), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
|
|
931
|
-
|
|
932
|
-
const T = -t.snapGrid[0],
|
|
933
|
-
t.snapGrid = t.snapGrid.map((
|
|
622
|
+
Q(s, "--swiper-centered-offset-before", `${-m[0]}px`), Q(s, "--swiper-centered-offset-after", `${t.size / 2 - u[u.length - 1] / 2}px`);
|
|
623
|
+
const T = -t.snapGrid[0], y = -t.slidesGrid[0];
|
|
624
|
+
t.snapGrid = t.snapGrid.map((I) => I + T), t.slidesGrid = t.slidesGrid.map((I) => I + y);
|
|
934
625
|
}
|
|
935
|
-
if (
|
|
936
|
-
const T = `${i.containerModifierClass}backface-hidden`,
|
|
937
|
-
|
|
626
|
+
if (f !== d && t.emit("slidesLengthChange"), m.length !== p && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), h.length !== v && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
|
|
627
|
+
const T = `${i.containerModifierClass}backface-hidden`, y = t.el.classList.contains(T);
|
|
628
|
+
f <= i.maxBackfaceHiddenSlides ? y || t.el.classList.add(T) : y && t.el.classList.remove(T);
|
|
938
629
|
}
|
|
939
630
|
}
|
|
940
|
-
function
|
|
631
|
+
function dt(t) {
|
|
941
632
|
const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
|
|
942
633
|
let n = 0, r;
|
|
943
634
|
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
@@ -963,15 +654,15 @@ function ut(t) {
|
|
|
963
654
|
}
|
|
964
655
|
(n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
|
|
965
656
|
}
|
|
966
|
-
function
|
|
657
|
+
function ct() {
|
|
967
658
|
const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
968
659
|
for (let s = 0; s < e.length; s += 1)
|
|
969
660
|
e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
|
|
970
661
|
}
|
|
971
|
-
const
|
|
662
|
+
const Se = (t, e, i) => {
|
|
972
663
|
e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
|
|
973
664
|
};
|
|
974
|
-
function
|
|
665
|
+
function ft(t) {
|
|
975
666
|
t === void 0 && (t = this && this.translate || 0);
|
|
976
667
|
const e = this, i = e.params, {
|
|
977
668
|
slides: s,
|
|
@@ -989,11 +680,11 @@ function pt(t) {
|
|
|
989
680
|
const d = s[o];
|
|
990
681
|
let c = d.swiperSlideOffset;
|
|
991
682
|
i.cssMode && i.centeredSlides && (c -= s[0].swiperSlideOffset);
|
|
992
|
-
const
|
|
993
|
-
S && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)),
|
|
683
|
+
const f = (l + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), m = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), h = -(l - c), u = h + e.slidesSizesGrid[o], g = h >= 0 && h <= e.size - e.slidesSizesGrid[o], S = h >= 0 && h < e.size - 1 || u > 1 && u <= e.size || h <= 0 && u >= e.size;
|
|
684
|
+
S && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)), Se(d, S, i.slideVisibleClass), Se(d, g, i.slideFullyVisibleClass), d.progress = n ? -f : f, d.originalProgress = n ? -m : m;
|
|
994
685
|
}
|
|
995
686
|
}
|
|
996
|
-
function
|
|
687
|
+
function ut(t) {
|
|
997
688
|
const e = this;
|
|
998
689
|
if (typeof t > "u") {
|
|
999
690
|
const c = e.rtlTranslate ? -1 : 1;
|
|
@@ -1011,12 +702,12 @@ function mt(t) {
|
|
|
1011
702
|
n = 0, r = !0, l = !0;
|
|
1012
703
|
else {
|
|
1013
704
|
n = (t - e.minTranslate()) / s;
|
|
1014
|
-
const c = Math.abs(t - e.minTranslate()) < 1,
|
|
1015
|
-
r = c || n <= 0, l =
|
|
705
|
+
const c = Math.abs(t - e.minTranslate()) < 1, f = Math.abs(t - e.maxTranslate()) < 1;
|
|
706
|
+
r = c || n <= 0, l = f || n >= 1, c && (n = 0), f && (n = 1);
|
|
1016
707
|
}
|
|
1017
708
|
if (i.loop) {
|
|
1018
|
-
const c = e.getSlideIndexByData(0),
|
|
1019
|
-
g >= m ? a = (g - m) /
|
|
709
|
+
const c = e.getSlideIndexByData(0), f = e.getSlideIndexByData(e.slides.length - 1), m = e.slidesGrid[c], h = e.slidesGrid[f], u = e.slidesGrid[e.slidesGrid.length - 1], g = Math.abs(t);
|
|
710
|
+
g >= m ? a = (g - m) / u : a = (g + u - h) / u, a > 1 && (a -= 1);
|
|
1020
711
|
}
|
|
1021
712
|
Object.assign(e, {
|
|
1022
713
|
progress: n,
|
|
@@ -1025,30 +716,30 @@ function mt(t) {
|
|
|
1025
716
|
isEnd: l
|
|
1026
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);
|
|
1027
718
|
}
|
|
1028
|
-
const
|
|
719
|
+
const ae = (t, e, i) => {
|
|
1029
720
|
e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
|
|
1030
721
|
};
|
|
1031
|
-
function
|
|
722
|
+
function pt() {
|
|
1032
723
|
const t = this, {
|
|
1033
724
|
slides: e,
|
|
1034
725
|
params: i,
|
|
1035
726
|
slidesEl: s,
|
|
1036
727
|
activeIndex: n
|
|
1037
|
-
} = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (
|
|
728
|
+
} = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (f) => R(s, `.${i.slideClass}${f}, swiper-slide${f}`)[0];
|
|
1038
729
|
let o, d, c;
|
|
1039
730
|
if (r)
|
|
1040
731
|
if (i.loop) {
|
|
1041
|
-
let
|
|
1042
|
-
|
|
732
|
+
let f = n - t.virtual.slidesBefore;
|
|
733
|
+
f < 0 && (f = t.virtual.slides.length + f), f >= t.virtual.slides.length && (f -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${f}"]`);
|
|
1043
734
|
} else
|
|
1044
735
|
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
1045
736
|
else
|
|
1046
|
-
l ? (o = e.find((
|
|
1047
|
-
o && (l || (c =
|
|
1048
|
-
|
|
737
|
+
l ? (o = e.find((f) => f.column === n), c = e.find((f) => f.column === n + 1), d = e.find((f) => f.column === n - 1)) : o = e[n];
|
|
738
|
+
o && (l || (c = Je(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !c && (c = e[0]), d = Ze(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((f) => {
|
|
739
|
+
ae(f, f === o, i.slideActiveClass), ae(f, f === c, i.slideNextClass), ae(f, f === d, i.slidePrevClass);
|
|
1049
740
|
}), t.emitSlidesClasses();
|
|
1050
741
|
}
|
|
1051
|
-
const
|
|
742
|
+
const Z = (t, e) => {
|
|
1052
743
|
if (!t || t.destroyed || !t.params)
|
|
1053
744
|
return;
|
|
1054
745
|
const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
|
|
@@ -1058,12 +749,12 @@ const ee = (t, e) => {
|
|
|
1058
749
|
s.shadowRoot && (n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
|
|
1059
750
|
})), n && n.remove();
|
|
1060
751
|
}
|
|
1061
|
-
},
|
|
752
|
+
}, le = (t, e) => {
|
|
1062
753
|
if (!t.slides[e])
|
|
1063
754
|
return;
|
|
1064
755
|
const i = t.slides[e].querySelector('[loading="lazy"]');
|
|
1065
756
|
i && i.removeAttribute("loading");
|
|
1066
|
-
},
|
|
757
|
+
}, fe = (t) => {
|
|
1067
758
|
if (!t || t.destroyed || !t.params)
|
|
1068
759
|
return;
|
|
1069
760
|
let e = t.params.lazyPreloadPrevNext;
|
|
@@ -1077,7 +768,7 @@ const ee = (t, e) => {
|
|
|
1077
768
|
a.push(...Array.from({
|
|
1078
769
|
length: e
|
|
1079
770
|
}).map((o, d) => l + s + d)), t.slides.forEach((o, d) => {
|
|
1080
|
-
a.includes(o.column) &&
|
|
771
|
+
a.includes(o.column) && le(t, d);
|
|
1081
772
|
});
|
|
1082
773
|
return;
|
|
1083
774
|
}
|
|
@@ -1085,13 +776,13 @@ const ee = (t, e) => {
|
|
|
1085
776
|
if (t.params.rewind || t.params.loop)
|
|
1086
777
|
for (let l = n - e; l <= r + e; l += 1) {
|
|
1087
778
|
const a = (l % i + i) % i;
|
|
1088
|
-
(a < n || a > r) &&
|
|
779
|
+
(a < n || a > r) && le(t, a);
|
|
1089
780
|
}
|
|
1090
781
|
else
|
|
1091
782
|
for (let l = Math.max(n - e, 0); l <= Math.min(r + e, i - 1); l += 1)
|
|
1092
|
-
l !== n && (l > r || l < n) &&
|
|
783
|
+
l !== n && (l > r || l < n) && le(t, l);
|
|
1093
784
|
};
|
|
1094
|
-
function
|
|
785
|
+
function mt(t) {
|
|
1095
786
|
const {
|
|
1096
787
|
slidesGrid: e,
|
|
1097
788
|
params: i
|
|
@@ -1101,7 +792,7 @@ function gt(t) {
|
|
|
1101
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);
|
|
1102
793
|
return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
1103
794
|
}
|
|
1104
|
-
function
|
|
795
|
+
function ht(t) {
|
|
1105
796
|
const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
|
|
1106
797
|
snapGrid: s,
|
|
1107
798
|
params: n,
|
|
@@ -1111,10 +802,10 @@ function vt(t) {
|
|
|
1111
802
|
} = e;
|
|
1112
803
|
let o = t, d;
|
|
1113
804
|
const c = (h) => {
|
|
1114
|
-
let
|
|
1115
|
-
return
|
|
805
|
+
let u = h - e.virtual.slidesBefore;
|
|
806
|
+
return u < 0 && (u = e.virtual.slides.length + u), u >= e.virtual.slides.length && (u -= e.virtual.slides.length), u;
|
|
1116
807
|
};
|
|
1117
|
-
if (typeof o > "u" && (o =
|
|
808
|
+
if (typeof o > "u" && (o = mt(e)), s.indexOf(i) >= 0)
|
|
1118
809
|
d = s.indexOf(i);
|
|
1119
810
|
else {
|
|
1120
811
|
const h = Math.min(n.slidesPerGroupSkip, o);
|
|
@@ -1128,14 +819,14 @@ function vt(t) {
|
|
|
1128
819
|
e.realIndex = c(o);
|
|
1129
820
|
return;
|
|
1130
821
|
}
|
|
1131
|
-
const
|
|
822
|
+
const f = e.grid && n.grid && n.grid.rows > 1;
|
|
1132
823
|
let m;
|
|
1133
824
|
if (e.virtual && n.virtual.enabled && n.loop)
|
|
1134
825
|
m = c(o);
|
|
1135
|
-
else if (
|
|
826
|
+
else if (f) {
|
|
1136
827
|
const h = e.slides.find((g) => g.column === o);
|
|
1137
|
-
let
|
|
1138
|
-
Number.isNaN(
|
|
828
|
+
let u = parseInt(h.getAttribute("data-swiper-slide-index"), 10);
|
|
829
|
+
Number.isNaN(u) && (u = Math.max(e.slides.indexOf(h), 0)), m = Math.floor(u / n.grid.rows);
|
|
1139
830
|
} else if (e.slides[o]) {
|
|
1140
831
|
const h = e.slides[o].getAttribute("data-swiper-slide-index");
|
|
1141
832
|
h ? m = parseInt(h, 10) : m = o;
|
|
@@ -1148,9 +839,9 @@ function vt(t) {
|
|
|
1148
839
|
realIndex: m,
|
|
1149
840
|
previousIndex: r,
|
|
1150
841
|
activeIndex: o
|
|
1151
|
-
}), e.initialized &&
|
|
842
|
+
}), e.initialized && fe(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== m && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
1152
843
|
}
|
|
1153
|
-
function
|
|
844
|
+
function gt(t, e) {
|
|
1154
845
|
const i = this, s = i.params;
|
|
1155
846
|
let n = t.closest(`.${s.slideClass}, swiper-slide`);
|
|
1156
847
|
!n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
|
|
@@ -1172,18 +863,18 @@ function wt(t, e) {
|
|
|
1172
863
|
}
|
|
1173
864
|
s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
|
|
1174
865
|
}
|
|
1175
|
-
var
|
|
1176
|
-
updateSize:
|
|
1177
|
-
updateSlides:
|
|
1178
|
-
updateAutoHeight:
|
|
1179
|
-
updateSlidesOffset:
|
|
1180
|
-
updateSlidesProgress:
|
|
1181
|
-
updateProgress:
|
|
1182
|
-
updateSlidesClasses:
|
|
1183
|
-
updateActiveIndex:
|
|
1184
|
-
updateClickedSlide:
|
|
866
|
+
var vt = {
|
|
867
|
+
updateSize: lt,
|
|
868
|
+
updateSlides: ot,
|
|
869
|
+
updateAutoHeight: dt,
|
|
870
|
+
updateSlidesOffset: ct,
|
|
871
|
+
updateSlidesProgress: ft,
|
|
872
|
+
updateProgress: ut,
|
|
873
|
+
updateSlidesClasses: pt,
|
|
874
|
+
updateActiveIndex: ht,
|
|
875
|
+
updateClickedSlide: gt
|
|
1185
876
|
};
|
|
1186
|
-
function
|
|
877
|
+
function wt(t) {
|
|
1187
878
|
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
1188
879
|
const e = this, {
|
|
1189
880
|
params: i,
|
|
@@ -1195,10 +886,10 @@ function Tt(t) {
|
|
|
1195
886
|
return s ? -n : n;
|
|
1196
887
|
if (i.cssMode)
|
|
1197
888
|
return n;
|
|
1198
|
-
let l =
|
|
889
|
+
let l = Xe(r, t);
|
|
1199
890
|
return l += e.cssOverflowAdjustment(), s && (l = -l), l || 0;
|
|
1200
891
|
}
|
|
1201
|
-
function
|
|
892
|
+
function St(t, e) {
|
|
1202
893
|
const i = this, {
|
|
1203
894
|
rtlTranslate: s,
|
|
1204
895
|
params: n,
|
|
@@ -1209,13 +900,13 @@ function bt(t, e) {
|
|
|
1209
900
|
const d = 0;
|
|
1210
901
|
i.isHorizontal() ? a = s ? -t : t : o = t, n.roundLengths && (a = Math.floor(a), o = Math.floor(o)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? a : o, n.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -a : -o : n.virtualTranslate || (i.isHorizontal() ? a -= i.cssOverflowAdjustment() : o -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${a}px, ${o}px, ${d}px)`);
|
|
1211
902
|
let c;
|
|
1212
|
-
const
|
|
1213
|
-
|
|
903
|
+
const f = i.maxTranslate() - i.minTranslate();
|
|
904
|
+
f === 0 ? c = 0 : c = (t - i.minTranslate()) / f, c !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
|
|
1214
905
|
}
|
|
1215
|
-
function
|
|
906
|
+
function Tt() {
|
|
1216
907
|
return -this.snapGrid[0];
|
|
1217
908
|
}
|
|
1218
|
-
function
|
|
909
|
+
function bt() {
|
|
1219
910
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
1220
911
|
}
|
|
1221
912
|
function xt(t, e, i, s, n) {
|
|
@@ -1229,18 +920,18 @@ function xt(t, e, i, s, n) {
|
|
|
1229
920
|
const o = r.minTranslate(), d = r.maxTranslate();
|
|
1230
921
|
let c;
|
|
1231
922
|
if (s && t > o ? c = o : s && t < d ? c = d : c = t, r.updateProgress(c), l.cssMode) {
|
|
1232
|
-
const
|
|
923
|
+
const f = r.isHorizontal();
|
|
1233
924
|
if (e === 0)
|
|
1234
|
-
a[
|
|
925
|
+
a[f ? "scrollLeft" : "scrollTop"] = -c;
|
|
1235
926
|
else {
|
|
1236
927
|
if (!r.support.smoothScroll)
|
|
1237
|
-
return
|
|
928
|
+
return Ie({
|
|
1238
929
|
swiper: r,
|
|
1239
930
|
targetPosition: -c,
|
|
1240
|
-
side:
|
|
931
|
+
side: f ? "left" : "top"
|
|
1241
932
|
}), !0;
|
|
1242
933
|
a.scrollTo({
|
|
1243
|
-
[
|
|
934
|
+
[f ? "left" : "top"]: -c,
|
|
1244
935
|
behavior: "smooth"
|
|
1245
936
|
});
|
|
1246
937
|
}
|
|
@@ -1250,18 +941,18 @@ function xt(t, e, i, s, n) {
|
|
|
1250
941
|
!r || r.destroyed || m.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, i && r.emit("transitionEnd"));
|
|
1251
942
|
}), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
|
|
1252
943
|
}
|
|
1253
|
-
var
|
|
1254
|
-
getTranslate:
|
|
1255
|
-
setTranslate:
|
|
1256
|
-
minTranslate:
|
|
1257
|
-
maxTranslate:
|
|
944
|
+
var Et = {
|
|
945
|
+
getTranslate: wt,
|
|
946
|
+
setTranslate: St,
|
|
947
|
+
minTranslate: Tt,
|
|
948
|
+
maxTranslate: bt,
|
|
1258
949
|
translateTo: xt
|
|
1259
950
|
};
|
|
1260
|
-
function
|
|
951
|
+
function yt(t, e) {
|
|
1261
952
|
const i = this;
|
|
1262
953
|
i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
|
|
1263
954
|
}
|
|
1264
|
-
function
|
|
955
|
+
function Ae(t) {
|
|
1265
956
|
let {
|
|
1266
957
|
swiper: e,
|
|
1267
958
|
runCallbacks: i,
|
|
@@ -1275,36 +966,36 @@ function Ge(t) {
|
|
|
1275
966
|
let a = s;
|
|
1276
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}`));
|
|
1277
968
|
}
|
|
1278
|
-
function
|
|
969
|
+
function Pt(t, e) {
|
|
1279
970
|
t === void 0 && (t = !0);
|
|
1280
971
|
const i = this, {
|
|
1281
972
|
params: s
|
|
1282
973
|
} = i;
|
|
1283
|
-
s.cssMode || (s.autoHeight && i.updateAutoHeight(),
|
|
974
|
+
s.cssMode || (s.autoHeight && i.updateAutoHeight(), Ae({
|
|
1284
975
|
swiper: i,
|
|
1285
976
|
runCallbacks: t,
|
|
1286
977
|
direction: e,
|
|
1287
978
|
step: "Start"
|
|
1288
979
|
}));
|
|
1289
980
|
}
|
|
1290
|
-
function
|
|
981
|
+
function Ct(t, e) {
|
|
1291
982
|
t === void 0 && (t = !0);
|
|
1292
983
|
const i = this, {
|
|
1293
984
|
params: s
|
|
1294
985
|
} = i;
|
|
1295
|
-
i.animating = !1, !s.cssMode && (i.setTransition(0),
|
|
986
|
+
i.animating = !1, !s.cssMode && (i.setTransition(0), Ae({
|
|
1296
987
|
swiper: i,
|
|
1297
988
|
runCallbacks: t,
|
|
1298
989
|
direction: e,
|
|
1299
990
|
step: "End"
|
|
1300
991
|
}));
|
|
1301
992
|
}
|
|
1302
|
-
var
|
|
1303
|
-
setTransition:
|
|
1304
|
-
transitionStart:
|
|
1305
|
-
transitionEnd:
|
|
993
|
+
var Mt = {
|
|
994
|
+
setTransition: yt,
|
|
995
|
+
transitionStart: Pt,
|
|
996
|
+
transitionEnd: Ct
|
|
1306
997
|
};
|
|
1307
|
-
function
|
|
998
|
+
function It(t, e, i, s, n) {
|
|
1308
999
|
t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1309
1000
|
const r = this;
|
|
1310
1001
|
let l = t;
|
|
@@ -1314,12 +1005,12 @@ function Ot(t, e, i, s, n) {
|
|
|
1314
1005
|
snapGrid: o,
|
|
1315
1006
|
slidesGrid: d,
|
|
1316
1007
|
previousIndex: c,
|
|
1317
|
-
activeIndex:
|
|
1008
|
+
activeIndex: f,
|
|
1318
1009
|
rtlTranslate: m,
|
|
1319
1010
|
wrapperEl: h,
|
|
1320
|
-
enabled:
|
|
1011
|
+
enabled: u
|
|
1321
1012
|
} = r;
|
|
1322
|
-
if (!
|
|
1013
|
+
if (!u && !s && !n || r.destroyed || r.animating && a.preventInteractionOnTransition)
|
|
1323
1014
|
return !1;
|
|
1324
1015
|
typeof e > "u" && (e = r.params.speed);
|
|
1325
1016
|
const g = Math.min(r.params.slidesPerGroupSkip, l);
|
|
@@ -1327,46 +1018,46 @@ function Ot(t, e, i, s, n) {
|
|
|
1327
1018
|
S >= o.length && (S = o.length - 1);
|
|
1328
1019
|
const p = -o[S];
|
|
1329
1020
|
if (a.normalizeSlideIndex)
|
|
1330
|
-
for (let
|
|
1331
|
-
const
|
|
1332
|
-
typeof d[
|
|
1021
|
+
for (let M = 0; M < d.length; M += 1) {
|
|
1022
|
+
const P = -Math.floor(p * 100), E = Math.floor(d[M] * 100), T = Math.floor(d[M + 1] * 100);
|
|
1023
|
+
typeof d[M + 1] < "u" ? P >= E && P < T - (T - E) / 2 ? l = M : P >= E && P < T && (l = M + 1) : P >= E && (l = M);
|
|
1333
1024
|
}
|
|
1334
|
-
if (r.initialized && l !==
|
|
1025
|
+
if (r.initialized && l !== f && (!r.allowSlideNext && (m ? p > r.translate && p > r.minTranslate() : p < r.translate && p < r.minTranslate()) || !r.allowSlidePrev && p > r.translate && p > r.maxTranslate() && (f || 0) !== l))
|
|
1335
1026
|
return !1;
|
|
1336
1027
|
l !== (c || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(p);
|
|
1337
1028
|
let v;
|
|
1338
|
-
l >
|
|
1029
|
+
l > f ? v = "next" : l < f ? v = "prev" : v = "reset";
|
|
1339
1030
|
const w = r.virtual && r.params.virtual.enabled;
|
|
1340
1031
|
if (!(w && n) && (m && -p === r.translate || !m && p === r.translate))
|
|
1341
1032
|
return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(p), v !== "reset" && (r.transitionStart(i, v), r.transitionEnd(i, v)), !1;
|
|
1342
1033
|
if (a.cssMode) {
|
|
1343
|
-
const
|
|
1034
|
+
const M = r.isHorizontal(), P = m ? p : -p;
|
|
1344
1035
|
if (e === 0)
|
|
1345
1036
|
w && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), w && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1346
|
-
h[
|
|
1347
|
-
})) : h[
|
|
1037
|
+
h[M ? "scrollLeft" : "scrollTop"] = P;
|
|
1038
|
+
})) : h[M ? "scrollLeft" : "scrollTop"] = P, w && requestAnimationFrame(() => {
|
|
1348
1039
|
r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
|
|
1349
1040
|
});
|
|
1350
1041
|
else {
|
|
1351
1042
|
if (!r.support.smoothScroll)
|
|
1352
|
-
return
|
|
1043
|
+
return Ie({
|
|
1353
1044
|
swiper: r,
|
|
1354
|
-
targetPosition:
|
|
1355
|
-
side:
|
|
1045
|
+
targetPosition: P,
|
|
1046
|
+
side: M ? "left" : "top"
|
|
1356
1047
|
}), !0;
|
|
1357
1048
|
h.scrollTo({
|
|
1358
|
-
[
|
|
1049
|
+
[M ? "left" : "top"]: P,
|
|
1359
1050
|
behavior: "smooth"
|
|
1360
1051
|
});
|
|
1361
1052
|
}
|
|
1362
1053
|
return !0;
|
|
1363
1054
|
}
|
|
1364
|
-
const C =
|
|
1365
|
-
return w && !n && C && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(p), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, v), e === 0 ? r.transitionEnd(i, v) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(
|
|
1366
|
-
!r || r.destroyed ||
|
|
1055
|
+
const C = ze().isSafari;
|
|
1056
|
+
return w && !n && C && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(p), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, v), e === 0 ? r.transitionEnd(i, v) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(P) {
|
|
1057
|
+
!r || r.destroyed || P.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, v));
|
|
1367
1058
|
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
|
|
1368
1059
|
}
|
|
1369
|
-
function
|
|
1060
|
+
function Lt(t, e, i, s) {
|
|
1370
1061
|
t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1371
1062
|
const n = this;
|
|
1372
1063
|
if (n.destroyed)
|
|
@@ -1389,8 +1080,8 @@ function zt(t, e, i, s) {
|
|
|
1389
1080
|
} = n.params;
|
|
1390
1081
|
let c = n.params.slidesPerView;
|
|
1391
1082
|
c === "auto" ? c = n.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(n.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
|
|
1392
|
-
let
|
|
1393
|
-
if (d && (
|
|
1083
|
+
let f = o - a < c;
|
|
1084
|
+
if (d && (f = f || a < Math.ceil(c / 2)), s && d && n.params.slidesPerView !== "auto" && !r && (f = !1), f) {
|
|
1394
1085
|
const m = d ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
|
|
1395
1086
|
n.loopFix({
|
|
1396
1087
|
direction: m,
|
|
@@ -1409,7 +1100,7 @@ function zt(t, e, i, s) {
|
|
|
1409
1100
|
n.slideTo(l, e, i, s);
|
|
1410
1101
|
}), n;
|
|
1411
1102
|
}
|
|
1412
|
-
function
|
|
1103
|
+
function Ot(t, e, i) {
|
|
1413
1104
|
e === void 0 && (e = !0);
|
|
1414
1105
|
const s = this, {
|
|
1415
1106
|
enabled: n,
|
|
@@ -1434,7 +1125,7 @@ function At(t, e, i) {
|
|
|
1434
1125
|
}
|
|
1435
1126
|
return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + o, t, e, i);
|
|
1436
1127
|
}
|
|
1437
|
-
function
|
|
1128
|
+
function zt(t, e, i) {
|
|
1438
1129
|
e === void 0 && (e = !0);
|
|
1439
1130
|
const s = this, {
|
|
1440
1131
|
params: n,
|
|
@@ -1455,16 +1146,16 @@ function _t(t, e, i) {
|
|
|
1455
1146
|
direction: "prev"
|
|
1456
1147
|
}), s._clientLeft = s.wrapperEl.clientLeft;
|
|
1457
1148
|
}
|
|
1458
|
-
const
|
|
1149
|
+
const f = a ? s.translate : -s.translate;
|
|
1459
1150
|
function m(v) {
|
|
1460
1151
|
return v < 0 ? -Math.floor(Math.abs(v)) : Math.floor(v);
|
|
1461
1152
|
}
|
|
1462
|
-
const h = m(
|
|
1463
|
-
let S = r[
|
|
1153
|
+
const h = m(f), u = r.map((v) => m(v)), g = n.freeMode && n.freeMode.enabled;
|
|
1154
|
+
let S = r[u.indexOf(h) - 1];
|
|
1464
1155
|
if (typeof S > "u" && (n.cssMode || g)) {
|
|
1465
1156
|
let v;
|
|
1466
|
-
r.forEach((w,
|
|
1467
|
-
h >= w && (v =
|
|
1157
|
+
r.forEach((w, x) => {
|
|
1158
|
+
h >= w && (v = x);
|
|
1468
1159
|
}), typeof v < "u" && (S = g ? r[v] : r[v > 0 ? v - 1 : v]);
|
|
1469
1160
|
}
|
|
1470
1161
|
let p = 0;
|
|
@@ -1477,13 +1168,13 @@ function _t(t, e, i) {
|
|
|
1477
1168
|
}), !0;
|
|
1478
1169
|
return s.slideTo(p, t, e, i);
|
|
1479
1170
|
}
|
|
1480
|
-
function
|
|
1171
|
+
function At(t, e, i) {
|
|
1481
1172
|
e === void 0 && (e = !0);
|
|
1482
1173
|
const s = this;
|
|
1483
1174
|
if (!s.destroyed)
|
|
1484
1175
|
return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
|
|
1485
1176
|
}
|
|
1486
|
-
function
|
|
1177
|
+
function _t(t, e, i, s) {
|
|
1487
1178
|
e === void 0 && (e = !0), s === void 0 && (s = 0.5);
|
|
1488
1179
|
const n = this;
|
|
1489
1180
|
if (n.destroyed)
|
|
@@ -1500,7 +1191,7 @@ function Gt(t, e, i, s) {
|
|
|
1500
1191
|
}
|
|
1501
1192
|
return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, t, e, i);
|
|
1502
1193
|
}
|
|
1503
|
-
function
|
|
1194
|
+
function Gt() {
|
|
1504
1195
|
const t = this;
|
|
1505
1196
|
if (t.destroyed)
|
|
1506
1197
|
return;
|
|
@@ -1513,22 +1204,22 @@ function Bt() {
|
|
|
1513
1204
|
if (e.loop) {
|
|
1514
1205
|
if (t.animating)
|
|
1515
1206
|
return;
|
|
1516
|
-
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(R(i, `${l}[data-swiper-slide-index="${r}"]`)[0]),
|
|
1207
|
+
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(R(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), Me(() => {
|
|
1517
1208
|
t.slideTo(n);
|
|
1518
1209
|
})) : t.slideTo(n);
|
|
1519
1210
|
} else
|
|
1520
1211
|
t.slideTo(n);
|
|
1521
1212
|
}
|
|
1522
|
-
var
|
|
1523
|
-
slideTo:
|
|
1524
|
-
slideToLoop:
|
|
1525
|
-
slideNext:
|
|
1526
|
-
slidePrev:
|
|
1527
|
-
slideReset:
|
|
1528
|
-
slideToClosest:
|
|
1529
|
-
slideToClickedSlide:
|
|
1213
|
+
var Dt = {
|
|
1214
|
+
slideTo: It,
|
|
1215
|
+
slideToLoop: Lt,
|
|
1216
|
+
slideNext: Ot,
|
|
1217
|
+
slidePrev: zt,
|
|
1218
|
+
slideReset: At,
|
|
1219
|
+
slideToClosest: _t,
|
|
1220
|
+
slideToClickedSlide: Gt
|
|
1530
1221
|
};
|
|
1531
|
-
function
|
|
1222
|
+
function Vt(t, e) {
|
|
1532
1223
|
const i = this, {
|
|
1533
1224
|
params: s,
|
|
1534
1225
|
slidesEl: n
|
|
@@ -1536,8 +1227,8 @@ function Nt(t, e) {
|
|
|
1536
1227
|
if (!s.loop || i.virtual && i.params.virtual.enabled)
|
|
1537
1228
|
return;
|
|
1538
1229
|
const r = () => {
|
|
1539
|
-
R(n, `.${s.slideClass}, swiper-slide`).forEach((h,
|
|
1540
|
-
h.setAttribute("data-swiper-slide-index",
|
|
1230
|
+
R(n, `.${s.slideClass}, swiper-slide`).forEach((h, u) => {
|
|
1231
|
+
h.setAttribute("data-swiper-slide-index", u);
|
|
1541
1232
|
});
|
|
1542
1233
|
}, l = () => {
|
|
1543
1234
|
const m = R(n, `.${s.slideBlankClass}`);
|
|
@@ -1546,25 +1237,25 @@ function Nt(t, e) {
|
|
|
1546
1237
|
}), m.length > 0 && (i.recalcSlides(), i.updateSlides());
|
|
1547
1238
|
}, a = i.grid && s.grid && s.grid.rows > 1;
|
|
1548
1239
|
s.loopAddBlankSlides && (s.slidesPerGroup > 1 || a) && l();
|
|
1549
|
-
const o = s.slidesPerGroup * (a ? s.grid.rows : 1), d = i.slides.length % o !== 0, c = a && i.slides.length % s.grid.rows !== 0,
|
|
1240
|
+
const o = s.slidesPerGroup * (a ? s.grid.rows : 1), d = i.slides.length % o !== 0, c = a && i.slides.length % s.grid.rows !== 0, f = (m) => {
|
|
1550
1241
|
for (let h = 0; h < m; h += 1) {
|
|
1551
|
-
const
|
|
1552
|
-
i.slidesEl.append(
|
|
1242
|
+
const u = i.isElement ? te("swiper-slide", [s.slideBlankClass]) : te("div", [s.slideClass, s.slideBlankClass]);
|
|
1243
|
+
i.slidesEl.append(u);
|
|
1553
1244
|
}
|
|
1554
1245
|
};
|
|
1555
1246
|
if (d) {
|
|
1556
1247
|
if (s.loopAddBlankSlides) {
|
|
1557
1248
|
const m = o - i.slides.length % o;
|
|
1558
|
-
|
|
1249
|
+
f(m), i.recalcSlides(), i.updateSlides();
|
|
1559
1250
|
} else
|
|
1560
|
-
|
|
1251
|
+
ee("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
1561
1252
|
r();
|
|
1562
1253
|
} else if (c) {
|
|
1563
1254
|
if (s.loopAddBlankSlides) {
|
|
1564
1255
|
const m = s.grid.rows - i.slides.length % s.grid.rows;
|
|
1565
|
-
|
|
1256
|
+
f(m), i.recalcSlides(), i.updateSlides();
|
|
1566
1257
|
} else
|
|
1567
|
-
|
|
1258
|
+
ee("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
1568
1259
|
r();
|
|
1569
1260
|
} else
|
|
1570
1261
|
r();
|
|
@@ -1574,7 +1265,7 @@ function Nt(t, e) {
|
|
|
1574
1265
|
initial: e
|
|
1575
1266
|
});
|
|
1576
1267
|
}
|
|
1577
|
-
function
|
|
1268
|
+
function Bt(t) {
|
|
1578
1269
|
let {
|
|
1579
1270
|
slideRealIndex: e,
|
|
1580
1271
|
slideTo: i = !0,
|
|
@@ -1591,98 +1282,98 @@ function Ft(t) {
|
|
|
1591
1282
|
d.emit("beforeLoopFix");
|
|
1592
1283
|
const {
|
|
1593
1284
|
slides: c,
|
|
1594
|
-
allowSlidePrev:
|
|
1285
|
+
allowSlidePrev: f,
|
|
1595
1286
|
allowSlideNext: m,
|
|
1596
1287
|
slidesEl: h,
|
|
1597
|
-
params:
|
|
1288
|
+
params: u
|
|
1598
1289
|
} = d, {
|
|
1599
1290
|
centeredSlides: g,
|
|
1600
1291
|
initialSlide: S
|
|
1601
|
-
} =
|
|
1602
|
-
if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual &&
|
|
1603
|
-
i && (!
|
|
1292
|
+
} = u;
|
|
1293
|
+
if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && u.virtual.enabled) {
|
|
1294
|
+
i && (!u.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : u.centeredSlides && d.snapIndex < u.slidesPerView ? d.slideTo(d.virtual.slides.length + d.snapIndex, 0, !1, !0) : d.snapIndex === d.snapGrid.length - 1 && d.slideTo(d.virtual.slidesBefore, 0, !1, !0)), d.allowSlidePrev = f, d.allowSlideNext = m, d.emit("loopFix");
|
|
1604
1295
|
return;
|
|
1605
1296
|
}
|
|
1606
|
-
let p =
|
|
1607
|
-
p === "auto" ? p = d.slidesPerViewDynamic() : (p = Math.ceil(parseFloat(
|
|
1608
|
-
const v =
|
|
1297
|
+
let p = u.slidesPerView;
|
|
1298
|
+
p === "auto" ? p = d.slidesPerViewDynamic() : (p = Math.ceil(parseFloat(u.slidesPerView, 10)), g && p % 2 === 0 && (p = p + 1));
|
|
1299
|
+
const v = u.slidesPerGroupAuto ? p : u.slidesPerGroup;
|
|
1609
1300
|
let w = g ? Math.max(v, Math.ceil(p / 2)) : v;
|
|
1610
|
-
w % v !== 0 && (w += v - w % v), w +=
|
|
1611
|
-
const
|
|
1612
|
-
c.length < p + w || d.params.effect === "cards" && c.length < p + w * 2 ?
|
|
1613
|
-
const b = [], C = [],
|
|
1614
|
-
let
|
|
1615
|
-
typeof r > "u" ? r = d.getSlideIndex(c.find((
|
|
1616
|
-
const T = s === "next" || !s,
|
|
1617
|
-
let
|
|
1618
|
-
const N = (
|
|
1301
|
+
w % v !== 0 && (w += v - w % v), w += u.loopAdditionalSlides, d.loopedSlides = w;
|
|
1302
|
+
const x = d.grid && u.grid && u.grid.rows > 1;
|
|
1303
|
+
c.length < p + w || d.params.effect === "cards" && c.length < p + w * 2 ? ee("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : x && u.grid.fill === "row" && ee("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1304
|
+
const b = [], C = [], M = x ? Math.ceil(c.length / u.grid.rows) : c.length, P = l && M - S < p && !g;
|
|
1305
|
+
let E = P ? S : d.activeIndex;
|
|
1306
|
+
typeof r > "u" ? r = d.getSlideIndex(c.find((L) => L.classList.contains(u.slideActiveClass))) : E = r;
|
|
1307
|
+
const T = s === "next" || !s, y = s === "prev" || !s;
|
|
1308
|
+
let I = 0, z = 0;
|
|
1309
|
+
const N = (x ? c[r].column : r) + (g && typeof n > "u" ? -p / 2 + 0.5 : 0);
|
|
1619
1310
|
if (N < w) {
|
|
1620
|
-
|
|
1621
|
-
for (let
|
|
1622
|
-
const
|
|
1623
|
-
if (
|
|
1624
|
-
const
|
|
1625
|
-
for (let
|
|
1626
|
-
c[
|
|
1311
|
+
I = Math.max(w - N, v);
|
|
1312
|
+
for (let L = 0; L < w - N; L += 1) {
|
|
1313
|
+
const _ = L - Math.floor(L / M) * M;
|
|
1314
|
+
if (x) {
|
|
1315
|
+
const G = M - _ - 1;
|
|
1316
|
+
for (let O = c.length - 1; O >= 0; O -= 1)
|
|
1317
|
+
c[O].column === G && b.push(O);
|
|
1627
1318
|
} else
|
|
1628
|
-
b.push(
|
|
1319
|
+
b.push(M - _ - 1);
|
|
1629
1320
|
}
|
|
1630
|
-
} else if (N + p >
|
|
1631
|
-
|
|
1632
|
-
for (let
|
|
1633
|
-
const
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
}) : C.push(
|
|
1321
|
+
} else if (N + p > M - w) {
|
|
1322
|
+
z = Math.max(N - (M - w * 2), v), P && (z = Math.max(z, p - M + S + 1));
|
|
1323
|
+
for (let L = 0; L < z; L += 1) {
|
|
1324
|
+
const _ = L - Math.floor(L / M) * M;
|
|
1325
|
+
x ? c.forEach((G, O) => {
|
|
1326
|
+
G.column === _ && C.push(O);
|
|
1327
|
+
}) : C.push(_);
|
|
1637
1328
|
}
|
|
1638
1329
|
}
|
|
1639
1330
|
if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1640
1331
|
d.__preventObserver__ = !1;
|
|
1641
|
-
}), d.params.effect === "cards" && c.length < p + w * 2 && (C.includes(r) && C.splice(C.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)),
|
|
1642
|
-
c[
|
|
1643
|
-
}), T && C.forEach((
|
|
1644
|
-
c[
|
|
1645
|
-
}), d.recalcSlides(),
|
|
1646
|
-
d.grid.updateSlide(
|
|
1647
|
-
}),
|
|
1648
|
-
if (b.length > 0 &&
|
|
1332
|
+
}), d.params.effect === "cards" && c.length < p + w * 2 && (C.includes(r) && C.splice(C.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)), y && b.forEach((L) => {
|
|
1333
|
+
c[L].swiperLoopMoveDOM = !0, h.prepend(c[L]), c[L].swiperLoopMoveDOM = !1;
|
|
1334
|
+
}), T && C.forEach((L) => {
|
|
1335
|
+
c[L].swiperLoopMoveDOM = !0, h.append(c[L]), c[L].swiperLoopMoveDOM = !1;
|
|
1336
|
+
}), d.recalcSlides(), u.slidesPerView === "auto" ? d.updateSlides() : x && (b.length > 0 && y || C.length > 0 && T) && d.slides.forEach((L, _) => {
|
|
1337
|
+
d.grid.updateSlide(_, L, d.slides);
|
|
1338
|
+
}), u.watchSlidesProgress && d.updateSlidesOffset(), i) {
|
|
1339
|
+
if (b.length > 0 && y) {
|
|
1649
1340
|
if (typeof e > "u") {
|
|
1650
|
-
const
|
|
1651
|
-
o ? d.setTranslate(d.translate -
|
|
1341
|
+
const L = d.slidesGrid[E], G = d.slidesGrid[E + I] - L;
|
|
1342
|
+
o ? d.setTranslate(d.translate - G) : (d.slideTo(E + Math.ceil(I), 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - G, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - G));
|
|
1652
1343
|
} else if (n) {
|
|
1653
|
-
const
|
|
1654
|
-
d.slideTo(d.activeIndex +
|
|
1344
|
+
const L = x ? b.length / u.grid.rows : b.length;
|
|
1345
|
+
d.slideTo(d.activeIndex + L, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
|
|
1655
1346
|
}
|
|
1656
1347
|
} else if (C.length > 0 && T)
|
|
1657
1348
|
if (typeof e > "u") {
|
|
1658
|
-
const
|
|
1659
|
-
o ? d.setTranslate(d.translate -
|
|
1349
|
+
const L = d.slidesGrid[E], G = d.slidesGrid[E - z] - L;
|
|
1350
|
+
o ? d.setTranslate(d.translate - G) : (d.slideTo(E - z, 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - G, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - G));
|
|
1660
1351
|
} else {
|
|
1661
|
-
const
|
|
1662
|
-
d.slideTo(d.activeIndex -
|
|
1352
|
+
const L = x ? C.length / u.grid.rows : C.length;
|
|
1353
|
+
d.slideTo(d.activeIndex - L, 0, !1, !0);
|
|
1663
1354
|
}
|
|
1664
1355
|
}
|
|
1665
|
-
if (d.allowSlidePrev =
|
|
1666
|
-
const
|
|
1356
|
+
if (d.allowSlidePrev = f, d.allowSlideNext = m, d.controller && d.controller.control && !a) {
|
|
1357
|
+
const L = {
|
|
1667
1358
|
slideRealIndex: e,
|
|
1668
1359
|
direction: s,
|
|
1669
1360
|
setTranslate: n,
|
|
1670
1361
|
activeSlideIndex: r,
|
|
1671
1362
|
byController: !0
|
|
1672
1363
|
};
|
|
1673
|
-
Array.isArray(d.controller.control) ? d.controller.control.forEach((
|
|
1674
|
-
!
|
|
1675
|
-
...
|
|
1676
|
-
slideTo:
|
|
1364
|
+
Array.isArray(d.controller.control) ? d.controller.control.forEach((_) => {
|
|
1365
|
+
!_.destroyed && _.params.loop && _.loopFix({
|
|
1366
|
+
...L,
|
|
1367
|
+
slideTo: _.params.slidesPerView === u.slidesPerView ? i : !1
|
|
1677
1368
|
});
|
|
1678
1369
|
}) : d.controller.control instanceof d.constructor && d.controller.control.params.loop && d.controller.control.loopFix({
|
|
1679
|
-
...
|
|
1680
|
-
slideTo: d.controller.control.params.slidesPerView ===
|
|
1370
|
+
...L,
|
|
1371
|
+
slideTo: d.controller.control.params.slidesPerView === u.slidesPerView ? i : !1
|
|
1681
1372
|
});
|
|
1682
1373
|
}
|
|
1683
1374
|
d.emit("loopFix");
|
|
1684
1375
|
}
|
|
1685
|
-
function
|
|
1376
|
+
function Nt() {
|
|
1686
1377
|
const t = this, {
|
|
1687
1378
|
params: e,
|
|
1688
1379
|
slidesEl: i
|
|
@@ -1700,12 +1391,12 @@ function kt() {
|
|
|
1700
1391
|
i.append(n);
|
|
1701
1392
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1702
1393
|
}
|
|
1703
|
-
var
|
|
1704
|
-
loopCreate:
|
|
1705
|
-
loopFix:
|
|
1706
|
-
loopDestroy:
|
|
1394
|
+
var Ft = {
|
|
1395
|
+
loopCreate: Vt,
|
|
1396
|
+
loopFix: Bt,
|
|
1397
|
+
loopDestroy: Nt
|
|
1707
1398
|
};
|
|
1708
|
-
function
|
|
1399
|
+
function kt(t) {
|
|
1709
1400
|
const e = this;
|
|
1710
1401
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode)
|
|
1711
1402
|
return;
|
|
@@ -1714,20 +1405,20 @@ function $t(t) {
|
|
|
1714
1405
|
e.__preventObserver__ = !1;
|
|
1715
1406
|
});
|
|
1716
1407
|
}
|
|
1717
|
-
function
|
|
1408
|
+
function Rt() {
|
|
1718
1409
|
const t = this;
|
|
1719
1410
|
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
|
|
1720
1411
|
t.__preventObserver__ = !1;
|
|
1721
1412
|
}));
|
|
1722
1413
|
}
|
|
1723
|
-
var
|
|
1724
|
-
setGrabCursor:
|
|
1725
|
-
unsetGrabCursor:
|
|
1414
|
+
var $t = {
|
|
1415
|
+
setGrabCursor: kt,
|
|
1416
|
+
unsetGrabCursor: Rt
|
|
1726
1417
|
};
|
|
1727
|
-
function
|
|
1418
|
+
function Ht(t, e) {
|
|
1728
1419
|
e === void 0 && (e = this);
|
|
1729
1420
|
function i(s) {
|
|
1730
|
-
if (!s || s ===
|
|
1421
|
+
if (!s || s === q() || s === D())
|
|
1731
1422
|
return null;
|
|
1732
1423
|
s.assignedSlot && (s = s.assignedSlot);
|
|
1733
1424
|
const n = s.closest(t);
|
|
@@ -1735,14 +1426,14 @@ function Wt(t, e) {
|
|
|
1735
1426
|
}
|
|
1736
1427
|
return i(e);
|
|
1737
1428
|
}
|
|
1738
|
-
function
|
|
1739
|
-
const s =
|
|
1429
|
+
function Te(t, e, i) {
|
|
1430
|
+
const s = D(), {
|
|
1740
1431
|
params: n
|
|
1741
1432
|
} = t, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
|
|
1742
1433
|
return r && (i <= l || i >= s.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1743
1434
|
}
|
|
1744
|
-
function
|
|
1745
|
-
const e = this, i =
|
|
1435
|
+
function Wt(t) {
|
|
1436
|
+
const e = this, i = q();
|
|
1746
1437
|
let s = t;
|
|
1747
1438
|
s.originalEvent && (s = s.originalEvent);
|
|
1748
1439
|
const n = e.touchEventsData;
|
|
@@ -1753,7 +1444,7 @@ function qt(t) {
|
|
|
1753
1444
|
} else
|
|
1754
1445
|
s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
|
|
1755
1446
|
if (s.type === "touchstart") {
|
|
1756
|
-
|
|
1447
|
+
Te(e, s, s.targetTouches[0].pageX);
|
|
1757
1448
|
return;
|
|
1758
1449
|
}
|
|
1759
1450
|
const {
|
|
@@ -1765,20 +1456,20 @@ function qt(t) {
|
|
|
1765
1456
|
return;
|
|
1766
1457
|
!e.animating && r.cssMode && r.loop && e.loopFix();
|
|
1767
1458
|
let o = s.target;
|
|
1768
|
-
if (r.touchEventsTarget === "wrapper" && !
|
|
1459
|
+
if (r.touchEventsTarget === "wrapper" && !Qe(o, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved)
|
|
1769
1460
|
return;
|
|
1770
1461
|
const d = !!r.noSwipingClass && r.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
|
|
1771
1462
|
d && s.target && s.target.shadowRoot && c && (o = c[0]);
|
|
1772
|
-
const
|
|
1773
|
-
if (r.noSwiping && (m ?
|
|
1463
|
+
const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, m = !!(s.target && s.target.shadowRoot);
|
|
1464
|
+
if (r.noSwiping && (m ? Ht(f, o) : o.closest(f))) {
|
|
1774
1465
|
e.allowClick = !0;
|
|
1775
1466
|
return;
|
|
1776
1467
|
}
|
|
1777
1468
|
if (r.swipeHandler && !o.closest(r.swipeHandler))
|
|
1778
1469
|
return;
|
|
1779
1470
|
l.currentX = s.pageX, l.currentY = s.pageY;
|
|
1780
|
-
const h = l.currentX,
|
|
1781
|
-
if (!
|
|
1471
|
+
const h = l.currentX, u = l.currentY;
|
|
1472
|
+
if (!Te(e, s, h))
|
|
1782
1473
|
return;
|
|
1783
1474
|
Object.assign(n, {
|
|
1784
1475
|
isTouched: !0,
|
|
@@ -1786,14 +1477,14 @@ function qt(t) {
|
|
|
1786
1477
|
allowTouchCallbacks: !0,
|
|
1787
1478
|
isScrolling: void 0,
|
|
1788
1479
|
startMoving: void 0
|
|
1789
|
-
}), l.startX = h, l.startY =
|
|
1480
|
+
}), l.startX = h, l.startY = u, n.touchStartTime = J(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
|
|
1790
1481
|
let g = !0;
|
|
1791
1482
|
o.matches(n.focusableElements) && (g = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== o && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !o.matches(n.focusableElements)) && i.activeElement.blur();
|
|
1792
1483
|
const S = g && e.allowTouchMove && r.touchStartPreventDefault;
|
|
1793
1484
|
(r.touchStartForcePreventDefault || S) && !o.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
|
|
1794
1485
|
}
|
|
1795
|
-
function
|
|
1796
|
-
const e =
|
|
1486
|
+
function jt(t) {
|
|
1487
|
+
const e = q(), i = this, s = i.touchEventsData, {
|
|
1797
1488
|
params: n,
|
|
1798
1489
|
touches: r,
|
|
1799
1490
|
rtlTranslate: l,
|
|
@@ -1814,23 +1505,23 @@ function Yt(t) {
|
|
|
1814
1505
|
s.startMoving && s.isScrolling && i.emit("touchMoveOpposite", o);
|
|
1815
1506
|
return;
|
|
1816
1507
|
}
|
|
1817
|
-
const c = d.pageX,
|
|
1508
|
+
const c = d.pageX, f = d.pageY;
|
|
1818
1509
|
if (o.preventedByNestedSwiper) {
|
|
1819
|
-
r.startX = c, r.startY =
|
|
1510
|
+
r.startX = c, r.startY = f;
|
|
1820
1511
|
return;
|
|
1821
1512
|
}
|
|
1822
1513
|
if (!i.allowTouchMove) {
|
|
1823
1514
|
o.target.matches(s.focusableElements) || (i.allowClick = !1), s.isTouched && (Object.assign(r, {
|
|
1824
1515
|
startX: c,
|
|
1825
|
-
startY:
|
|
1516
|
+
startY: f,
|
|
1826
1517
|
currentX: c,
|
|
1827
|
-
currentY:
|
|
1828
|
-
}), s.touchStartTime =
|
|
1518
|
+
currentY: f
|
|
1519
|
+
}), s.touchStartTime = J());
|
|
1829
1520
|
return;
|
|
1830
1521
|
}
|
|
1831
1522
|
if (n.touchReleaseOnEdges && !n.loop)
|
|
1832
1523
|
if (i.isVertical()) {
|
|
1833
|
-
if (
|
|
1524
|
+
if (f < r.startY && i.translate <= i.maxTranslate() || f > r.startY && i.translate >= i.minTranslate()) {
|
|
1834
1525
|
s.isTouched = !1, s.isMoved = !1;
|
|
1835
1526
|
return;
|
|
1836
1527
|
}
|
|
@@ -1844,7 +1535,7 @@ function Yt(t) {
|
|
|
1844
1535
|
s.isMoved = !0, i.allowClick = !1;
|
|
1845
1536
|
return;
|
|
1846
1537
|
}
|
|
1847
|
-
s.allowTouchCallbacks && i.emit("touchMove", o), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = c, r.currentY =
|
|
1538
|
+
s.allowTouchCallbacks && i.emit("touchMove", o), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = c, r.currentY = f;
|
|
1848
1539
|
const m = r.currentX - r.startX, h = r.currentY - r.startY;
|
|
1849
1540
|
if (i.params.threshold && Math.sqrt(m ** 2 + h ** 2) < i.params.threshold)
|
|
1850
1541
|
return;
|
|
@@ -1859,10 +1550,10 @@ function Yt(t) {
|
|
|
1859
1550
|
if (!s.startMoving)
|
|
1860
1551
|
return;
|
|
1861
1552
|
i.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
|
|
1862
|
-
let
|
|
1863
|
-
n.oneWayMovement && (
|
|
1553
|
+
let u = i.isHorizontal() ? m : h, g = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
|
1554
|
+
n.oneWayMovement && (u = Math.abs(u) * (l ? 1 : -1), g = Math.abs(g) * (l ? 1 : -1)), r.diff = u, u *= n.touchRatio, l && (u = -u, g = -g);
|
|
1864
1555
|
const S = i.touchesDirection;
|
|
1865
|
-
i.swipeDirection =
|
|
1556
|
+
i.swipeDirection = u > 0 ? "prev" : "next", i.touchesDirection = g > 0 ? "prev" : "next";
|
|
1866
1557
|
const p = i.params.loop && !n.cssMode, v = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
|
|
1867
1558
|
if (!s.isMoved) {
|
|
1868
1559
|
if (p && v && i.loopFix({
|
|
@@ -1880,28 +1571,28 @@ function Yt(t) {
|
|
|
1880
1571
|
s.allowMomentumBounce = !1, n.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", o);
|
|
1881
1572
|
}
|
|
1882
1573
|
let w;
|
|
1883
|
-
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && p && v && Math.abs(
|
|
1574
|
+
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && p && v && Math.abs(u) >= 1) {
|
|
1884
1575
|
Object.assign(r, {
|
|
1885
1576
|
startX: c,
|
|
1886
|
-
startY:
|
|
1577
|
+
startY: f,
|
|
1887
1578
|
currentX: c,
|
|
1888
|
-
currentY:
|
|
1579
|
+
currentY: f,
|
|
1889
1580
|
startTranslate: s.currentTranslate
|
|
1890
1581
|
}), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
|
|
1891
1582
|
return;
|
|
1892
1583
|
}
|
|
1893
|
-
i.emit("sliderMove", o), s.isMoved = !0, s.currentTranslate =
|
|
1894
|
-
let
|
|
1895
|
-
if (n.touchReleaseOnEdges && (b = 0),
|
|
1584
|
+
i.emit("sliderMove", o), s.isMoved = !0, s.currentTranslate = u + s.startTranslate;
|
|
1585
|
+
let x = !0, b = n.resistanceRatio;
|
|
1586
|
+
if (n.touchReleaseOnEdges && (b = 0), u > 0 ? (p && v && !w && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
|
|
1896
1587
|
direction: "prev",
|
|
1897
1588
|
setTranslate: !0,
|
|
1898
1589
|
activeSlideIndex: 0
|
|
1899
|
-
}), s.currentTranslate > i.minTranslate() && (
|
|
1590
|
+
}), s.currentTranslate > i.minTranslate() && (x = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + u) ** b))) : u < 0 && (p && v && !w && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
|
|
1900
1591
|
direction: "next",
|
|
1901
1592
|
setTranslate: !0,
|
|
1902
1593
|
activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
|
1903
|
-
}), s.currentTranslate < i.maxTranslate() && (
|
|
1904
|
-
if (Math.abs(
|
|
1594
|
+
}), s.currentTranslate < i.maxTranslate() && (x = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - u) ** b))), x && (o.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
|
|
1595
|
+
if (Math.abs(u) > n.threshold || s.allowThresholdMove) {
|
|
1905
1596
|
if (!s.allowThresholdMove) {
|
|
1906
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;
|
|
1907
1598
|
return;
|
|
@@ -1912,7 +1603,7 @@ function Yt(t) {
|
|
|
1912
1603
|
}
|
|
1913
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));
|
|
1914
1605
|
}
|
|
1915
|
-
function
|
|
1606
|
+
function qt(t) {
|
|
1916
1607
|
const e = this, i = e.touchEventsData;
|
|
1917
1608
|
let s = t;
|
|
1918
1609
|
s.originalEvent && (s = s.originalEvent);
|
|
@@ -1942,12 +1633,12 @@ function Xt(t) {
|
|
|
1942
1633
|
return;
|
|
1943
1634
|
}
|
|
1944
1635
|
l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
1945
|
-
const
|
|
1636
|
+
const f = J(), m = f - i.touchStartTime;
|
|
1946
1637
|
if (e.allowClick) {
|
|
1947
1638
|
const b = s.path || s.composedPath && s.composedPath();
|
|
1948
|
-
e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), m < 300 &&
|
|
1639
|
+
e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), m < 300 && f - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
|
|
1949
1640
|
}
|
|
1950
|
-
if (i.lastClickTime =
|
|
1641
|
+
if (i.lastClickTime = J(), Me(() => {
|
|
1951
1642
|
e.destroyed || (e.allowClick = !0);
|
|
1952
1643
|
}), !i.isTouched || !i.isMoved || !e.swipeDirection || a.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
|
|
1953
1644
|
i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
|
|
@@ -1963,30 +1654,30 @@ function Xt(t) {
|
|
|
1963
1654
|
});
|
|
1964
1655
|
return;
|
|
1965
1656
|
}
|
|
1966
|
-
const
|
|
1657
|
+
const u = h >= -e.maxTranslate() && !e.params.loop;
|
|
1967
1658
|
let g = 0, S = e.slidesSizesGrid[0];
|
|
1968
1659
|
for (let b = 0; b < d.length; b += b < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
|
|
1969
1660
|
const C = b < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1970
|
-
typeof d[b + C] < "u" ? (
|
|
1661
|
+
typeof d[b + C] < "u" ? (u || h >= d[b] && h < d[b + C]) && (g = b, S = d[b + C] - d[b]) : (u || h >= d[b]) && (g = b, S = d[d.length - 1] - d[d.length - 2]);
|
|
1971
1662
|
}
|
|
1972
1663
|
let p = null, v = null;
|
|
1973
1664
|
l.rewind && (e.isBeginning ? v = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (p = 0));
|
|
1974
|
-
const w = (h - d[g]) / S,
|
|
1665
|
+
const w = (h - d[g]) / S, x = g < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1975
1666
|
if (m > l.longSwipesMs) {
|
|
1976
1667
|
if (!l.longSwipes) {
|
|
1977
1668
|
e.slideTo(e.activeIndex);
|
|
1978
1669
|
return;
|
|
1979
1670
|
}
|
|
1980
|
-
e.swipeDirection === "next" && (w >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? p : g +
|
|
1671
|
+
e.swipeDirection === "next" && (w >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? p : g + x) : e.slideTo(g)), e.swipeDirection === "prev" && (w > 1 - l.longSwipesRatio ? e.slideTo(g + x) : v !== null && w < 0 && Math.abs(w) > l.longSwipesRatio ? e.slideTo(v) : e.slideTo(g));
|
|
1981
1672
|
} else {
|
|
1982
1673
|
if (!l.shortSwipes) {
|
|
1983
1674
|
e.slideTo(e.activeIndex);
|
|
1984
1675
|
return;
|
|
1985
1676
|
}
|
|
1986
|
-
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(g +
|
|
1677
|
+
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(g + x) : e.slideTo(g) : (e.swipeDirection === "next" && e.slideTo(p !== null ? p : g + x), e.swipeDirection === "prev" && e.slideTo(v !== null ? v : g));
|
|
1987
1678
|
}
|
|
1988
1679
|
}
|
|
1989
|
-
function
|
|
1680
|
+
function be() {
|
|
1990
1681
|
const t = this, {
|
|
1991
1682
|
params: e,
|
|
1992
1683
|
el: i
|
|
@@ -2005,11 +1696,11 @@ function xe() {
|
|
|
2005
1696
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
2006
1697
|
}, 500)), t.allowSlidePrev = n, t.allowSlideNext = s, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
|
|
2007
1698
|
}
|
|
2008
|
-
function
|
|
1699
|
+
function Yt(t) {
|
|
2009
1700
|
const e = this;
|
|
2010
1701
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
2011
1702
|
}
|
|
2012
|
-
function
|
|
1703
|
+
function Xt() {
|
|
2013
1704
|
const t = this, {
|
|
2014
1705
|
wrapperEl: e,
|
|
2015
1706
|
rtlTranslate: i,
|
|
@@ -2022,16 +1713,16 @@ function Kt() {
|
|
|
2022
1713
|
const r = t.maxTranslate() - t.minTranslate();
|
|
2023
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);
|
|
2024
1715
|
}
|
|
2025
|
-
function
|
|
1716
|
+
function Ut(t) {
|
|
2026
1717
|
const e = this;
|
|
2027
|
-
|
|
1718
|
+
Z(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
2028
1719
|
}
|
|
2029
|
-
function
|
|
1720
|
+
function Kt() {
|
|
2030
1721
|
const t = this;
|
|
2031
1722
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
2032
1723
|
}
|
|
2033
|
-
const
|
|
2034
|
-
const i =
|
|
1724
|
+
const _e = (t, e) => {
|
|
1725
|
+
const i = q(), {
|
|
2035
1726
|
params: s,
|
|
2036
1727
|
el: n,
|
|
2037
1728
|
wrapperEl: r,
|
|
@@ -2064,25 +1755,25 @@ const Be = (t, e) => {
|
|
|
2064
1755
|
passive: !0
|
|
2065
1756
|
}), i[o]("contextmenu", t.onTouchEnd, {
|
|
2066
1757
|
passive: !0
|
|
2067
|
-
}), (s.preventClicks || s.preventClicksPropagation) && n[o]("click", t.onClick, !0), s.cssMode && r[o]("scroll", t.onScroll), s.updateOnWindowResize ? t[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate",
|
|
1758
|
+
}), (s.preventClicks || s.preventClicksPropagation) && n[o]("click", t.onClick, !0), s.cssMode && r[o]("scroll", t.onScroll), s.updateOnWindowResize ? t[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", be, !0) : t[d]("observerUpdate", be, !0), n[o]("load", t.onLoad, {
|
|
2068
1759
|
capture: !0
|
|
2069
1760
|
}));
|
|
2070
1761
|
};
|
|
2071
|
-
function
|
|
1762
|
+
function Qt() {
|
|
2072
1763
|
const t = this, {
|
|
2073
1764
|
params: e
|
|
2074
1765
|
} = t;
|
|
2075
|
-
t.onTouchStart =
|
|
1766
|
+
t.onTouchStart = Wt.bind(t), t.onTouchMove = jt.bind(t), t.onTouchEnd = qt.bind(t), t.onDocumentTouchStart = Kt.bind(t), e.cssMode && (t.onScroll = Xt.bind(t)), t.onClick = Yt.bind(t), t.onLoad = Ut.bind(t), _e(t, "on");
|
|
2076
1767
|
}
|
|
2077
|
-
function
|
|
2078
|
-
|
|
1768
|
+
function Zt() {
|
|
1769
|
+
_e(this, "off");
|
|
2079
1770
|
}
|
|
2080
|
-
var
|
|
2081
|
-
attachEvents:
|
|
2082
|
-
detachEvents:
|
|
1771
|
+
var Jt = {
|
|
1772
|
+
attachEvents: Qt,
|
|
1773
|
+
detachEvents: Zt
|
|
2083
1774
|
};
|
|
2084
|
-
const
|
|
2085
|
-
function
|
|
1775
|
+
const xe = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1776
|
+
function ei() {
|
|
2086
1777
|
const t = this, {
|
|
2087
1778
|
realIndex: e,
|
|
2088
1779
|
initialized: i,
|
|
@@ -2091,30 +1782,30 @@ function ii() {
|
|
|
2091
1782
|
} = t, r = s.breakpoints;
|
|
2092
1783
|
if (!r || r && Object.keys(r).length === 0)
|
|
2093
1784
|
return;
|
|
2094
|
-
const l =
|
|
1785
|
+
const l = q(), a = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", o = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : l.querySelector(s.breakpointsBase), d = t.getBreakpoint(r, a, o);
|
|
2095
1786
|
if (!d || t.currentBreakpoint === d)
|
|
2096
1787
|
return;
|
|
2097
|
-
const
|
|
2098
|
-
m && !h ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !m && h && (n.classList.add(`${s.containerModifierClass}grid`), (
|
|
2099
|
-
if (typeof
|
|
1788
|
+
const f = (d in r ? r[d] : void 0) || t.originalParams, m = xe(t, s), h = xe(t, f), u = t.params.grabCursor, g = f.grabCursor, S = s.enabled;
|
|
1789
|
+
m && !h ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !m && h && (n.classList.add(`${s.containerModifierClass}grid`), (f.grid.fill && f.grid.fill === "column" || !f.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), u && !g ? t.unsetGrabCursor() : !u && g && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((C) => {
|
|
1790
|
+
if (typeof f[C] > "u")
|
|
2100
1791
|
return;
|
|
2101
|
-
const
|
|
2102
|
-
|
|
1792
|
+
const M = s[C] && s[C].enabled, P = f[C] && f[C].enabled;
|
|
1793
|
+
M && !P && t[C].disable(), !M && P && t[C].enable();
|
|
2103
1794
|
});
|
|
2104
|
-
const p =
|
|
2105
|
-
p && i && t.changeDirection(),
|
|
2106
|
-
const
|
|
1795
|
+
const p = f.direction && f.direction !== s.direction, v = s.loop && (f.slidesPerView !== s.slidesPerView || p), w = s.loop;
|
|
1796
|
+
p && i && t.changeDirection(), V(t.params, f);
|
|
1797
|
+
const x = t.params.enabled, b = t.params.loop;
|
|
2107
1798
|
Object.assign(t, {
|
|
2108
1799
|
allowTouchMove: t.params.allowTouchMove,
|
|
2109
1800
|
allowSlideNext: t.params.allowSlideNext,
|
|
2110
1801
|
allowSlidePrev: t.params.allowSlidePrev
|
|
2111
|
-
}), S && !
|
|
1802
|
+
}), S && !x ? t.disable() : !S && x && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", f), i && (v ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !w && b ? (t.loopCreate(e), t.updateSlides()) : w && !b && t.loopDestroy()), t.emit("breakpoint", f);
|
|
2112
1803
|
}
|
|
2113
|
-
function
|
|
1804
|
+
function ti(t, e, i) {
|
|
2114
1805
|
if (e === void 0 && (e = "window"), !t || e === "container" && !i)
|
|
2115
1806
|
return;
|
|
2116
1807
|
let s = !1;
|
|
2117
|
-
const n =
|
|
1808
|
+
const n = D(), r = e === "window" ? n.innerHeight : i.clientHeight, l = Object.keys(t).map((a) => {
|
|
2118
1809
|
if (typeof a == "string" && a.indexOf("@") === 0) {
|
|
2119
1810
|
const o = parseFloat(a.substr(1));
|
|
2120
1811
|
return {
|
|
@@ -2137,11 +1828,11 @@ function si(t, e, i) {
|
|
|
2137
1828
|
}
|
|
2138
1829
|
return s || "max";
|
|
2139
1830
|
}
|
|
2140
|
-
var
|
|
2141
|
-
setBreakpoint:
|
|
2142
|
-
getBreakpoint:
|
|
1831
|
+
var ii = {
|
|
1832
|
+
setBreakpoint: ei,
|
|
1833
|
+
getBreakpoint: ti
|
|
2143
1834
|
};
|
|
2144
|
-
function
|
|
1835
|
+
function si(t, e) {
|
|
2145
1836
|
const i = [];
|
|
2146
1837
|
return t.forEach((s) => {
|
|
2147
1838
|
typeof s == "object" ? Object.keys(s).forEach((n) => {
|
|
@@ -2149,14 +1840,14 @@ function ni(t, e) {
|
|
|
2149
1840
|
}) : typeof s == "string" && i.push(e + s);
|
|
2150
1841
|
}), i;
|
|
2151
1842
|
}
|
|
2152
|
-
function
|
|
1843
|
+
function ri() {
|
|
2153
1844
|
const t = this, {
|
|
2154
1845
|
classNames: e,
|
|
2155
1846
|
params: i,
|
|
2156
1847
|
rtl: s,
|
|
2157
1848
|
el: n,
|
|
2158
1849
|
device: r
|
|
2159
|
-
} = t, l =
|
|
1850
|
+
} = t, l = si(["initialized", i.direction, {
|
|
2160
1851
|
"free-mode": t.params.freeMode && i.freeMode.enabled
|
|
2161
1852
|
}, {
|
|
2162
1853
|
autoheight: i.autoHeight
|
|
@@ -2179,18 +1870,18 @@ function ai() {
|
|
|
2179
1870
|
}], i.containerModifierClass);
|
|
2180
1871
|
e.push(...l), n.classList.add(...e), t.emitContainerClasses();
|
|
2181
1872
|
}
|
|
2182
|
-
function
|
|
1873
|
+
function ni() {
|
|
2183
1874
|
const t = this, {
|
|
2184
1875
|
el: e,
|
|
2185
1876
|
classNames: i
|
|
2186
1877
|
} = t;
|
|
2187
1878
|
!e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
|
|
2188
1879
|
}
|
|
2189
|
-
var
|
|
2190
|
-
addClasses:
|
|
2191
|
-
removeClasses:
|
|
1880
|
+
var ai = {
|
|
1881
|
+
addClasses: ri,
|
|
1882
|
+
removeClasses: ni
|
|
2192
1883
|
};
|
|
2193
|
-
function
|
|
1884
|
+
function li() {
|
|
2194
1885
|
const t = this, {
|
|
2195
1886
|
isLocked: e,
|
|
2196
1887
|
params: i
|
|
@@ -2204,9 +1895,9 @@ function di() {
|
|
|
2204
1895
|
t.isLocked = t.snapGrid.length === 1;
|
|
2205
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");
|
|
2206
1897
|
}
|
|
2207
|
-
var
|
|
2208
|
-
checkOverflow:
|
|
2209
|
-
},
|
|
1898
|
+
var oi = {
|
|
1899
|
+
checkOverflow: li
|
|
1900
|
+
}, ue = {
|
|
2210
1901
|
init: !0,
|
|
2211
1902
|
direction: "horizontal",
|
|
2212
1903
|
oneWayMovement: !1,
|
|
@@ -2327,72 +2018,72 @@ var ci = {
|
|
|
2327
2018
|
// Internals
|
|
2328
2019
|
_emitClasses: !1
|
|
2329
2020
|
};
|
|
2330
|
-
function
|
|
2021
|
+
function di(t, e) {
|
|
2331
2022
|
return function(s) {
|
|
2332
2023
|
s === void 0 && (s = {});
|
|
2333
2024
|
const n = Object.keys(s)[0], r = s[n];
|
|
2334
2025
|
if (typeof r != "object" || r === null) {
|
|
2335
|
-
|
|
2026
|
+
V(e, s);
|
|
2336
2027
|
return;
|
|
2337
2028
|
}
|
|
2338
2029
|
if (t[n] === !0 && (t[n] = {
|
|
2339
2030
|
enabled: !0
|
|
2340
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)) {
|
|
2341
|
-
|
|
2032
|
+
V(e, s);
|
|
2342
2033
|
return;
|
|
2343
2034
|
}
|
|
2344
2035
|
typeof t[n] == "object" && !("enabled" in t[n]) && (t[n].enabled = !0), t[n] || (t[n] = {
|
|
2345
2036
|
enabled: !1
|
|
2346
|
-
}),
|
|
2037
|
+
}), V(e, s);
|
|
2347
2038
|
};
|
|
2348
2039
|
}
|
|
2349
|
-
const
|
|
2350
|
-
eventsEmitter:
|
|
2351
|
-
update:
|
|
2352
|
-
translate:
|
|
2353
|
-
transition:
|
|
2354
|
-
slide:
|
|
2355
|
-
loop:
|
|
2356
|
-
grabCursor:
|
|
2357
|
-
events:
|
|
2358
|
-
breakpoints:
|
|
2359
|
-
checkOverflow:
|
|
2360
|
-
classes:
|
|
2361
|
-
},
|
|
2362
|
-
let
|
|
2040
|
+
const oe = {
|
|
2041
|
+
eventsEmitter: at,
|
|
2042
|
+
update: vt,
|
|
2043
|
+
translate: Et,
|
|
2044
|
+
transition: Mt,
|
|
2045
|
+
slide: Dt,
|
|
2046
|
+
loop: Ft,
|
|
2047
|
+
grabCursor: $t,
|
|
2048
|
+
events: Jt,
|
|
2049
|
+
breakpoints: ii,
|
|
2050
|
+
checkOverflow: oi,
|
|
2051
|
+
classes: ai
|
|
2052
|
+
}, de = {};
|
|
2053
|
+
let me = class H {
|
|
2363
2054
|
constructor() {
|
|
2364
2055
|
let e, i;
|
|
2365
2056
|
for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
|
|
2366
2057
|
n[r] = arguments[r];
|
|
2367
|
-
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 =
|
|
2368
|
-
const l =
|
|
2058
|
+
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i = V({}, i), e && !i.el && (i.el = e);
|
|
2059
|
+
const l = q();
|
|
2369
2060
|
if (i.el && typeof i.el == "string" && l.querySelectorAll(i.el).length > 1) {
|
|
2370
2061
|
const c = [];
|
|
2371
|
-
return l.querySelectorAll(i.el).forEach((
|
|
2372
|
-
const m =
|
|
2373
|
-
el:
|
|
2062
|
+
return l.querySelectorAll(i.el).forEach((f) => {
|
|
2063
|
+
const m = V({}, i, {
|
|
2064
|
+
el: f
|
|
2374
2065
|
});
|
|
2375
|
-
c.push(new
|
|
2066
|
+
c.push(new H(m));
|
|
2376
2067
|
}), c;
|
|
2377
2068
|
}
|
|
2378
2069
|
const a = this;
|
|
2379
|
-
a.__swiper__ = !0, a.support =
|
|
2070
|
+
a.__swiper__ = !0, a.support = Le(), a.device = Oe({
|
|
2380
2071
|
userAgent: i.userAgent
|
|
2381
|
-
}), a.browser =
|
|
2072
|
+
}), a.browser = ze(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], i.modules && Array.isArray(i.modules) && a.modules.push(...i.modules);
|
|
2382
2073
|
const o = {};
|
|
2383
2074
|
a.modules.forEach((c) => {
|
|
2384
2075
|
c({
|
|
2385
2076
|
params: i,
|
|
2386
2077
|
swiper: a,
|
|
2387
|
-
extendParams:
|
|
2078
|
+
extendParams: di(i, o),
|
|
2388
2079
|
on: a.on.bind(a),
|
|
2389
2080
|
once: a.once.bind(a),
|
|
2390
2081
|
off: a.off.bind(a),
|
|
2391
2082
|
emit: a.emit.bind(a)
|
|
2392
2083
|
});
|
|
2393
2084
|
});
|
|
2394
|
-
const d =
|
|
2395
|
-
return a.params =
|
|
2085
|
+
const d = V({}, ue, o);
|
|
2086
|
+
return a.params = V({}, d, de, i), a.originalParams = V({}, a.params), a.passedParams = V({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((c) => {
|
|
2396
2087
|
a.on(c, a.params.on[c]);
|
|
2397
2088
|
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
2398
2089
|
enabled: a.params.enabled,
|
|
@@ -2483,8 +2174,8 @@ let ve = class j {
|
|
|
2483
2174
|
const {
|
|
2484
2175
|
slidesEl: i,
|
|
2485
2176
|
params: s
|
|
2486
|
-
} = this, n = R(i, `.${s.slideClass}, swiper-slide`), r =
|
|
2487
|
-
return
|
|
2177
|
+
} = this, n = R(i, `.${s.slideClass}, swiper-slide`), r = ge(n[0]);
|
|
2178
|
+
return ge(e) - r;
|
|
2488
2179
|
}
|
|
2489
2180
|
getSlideIndexByData(e) {
|
|
2490
2181
|
return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
|
|
@@ -2551,17 +2242,17 @@ let ve = class j {
|
|
|
2551
2242
|
if (typeof n.slidesPerView == "number")
|
|
2552
2243
|
return n.slidesPerView;
|
|
2553
2244
|
if (n.centeredSlides) {
|
|
2554
|
-
let
|
|
2245
|
+
let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, m;
|
|
2555
2246
|
for (let h = d + 1; h < r.length; h += 1)
|
|
2556
|
-
r[h] && !m && (
|
|
2247
|
+
r[h] && !m && (f += Math.ceil(r[h].swiperSlideSize), c += 1, f > o && (m = !0));
|
|
2557
2248
|
for (let h = d - 1; h >= 0; h -= 1)
|
|
2558
|
-
r[h] && !m && (
|
|
2249
|
+
r[h] && !m && (f += r[h].swiperSlideSize, c += 1, f > o && (m = !0));
|
|
2559
2250
|
} else if (e === "current")
|
|
2560
|
-
for (let
|
|
2561
|
-
(i ? l[
|
|
2251
|
+
for (let f = d + 1; f < r.length; f += 1)
|
|
2252
|
+
(i ? l[f] + a[f] - l[d] < o : l[f] - l[d] < o) && (c += 1);
|
|
2562
2253
|
else
|
|
2563
|
-
for (let
|
|
2564
|
-
l[d] - l[
|
|
2254
|
+
for (let f = d - 1; f >= 0; f -= 1)
|
|
2255
|
+
l[d] - l[f] < o && (c += 1);
|
|
2565
2256
|
return c;
|
|
2566
2257
|
}
|
|
2567
2258
|
update() {
|
|
@@ -2573,7 +2264,7 @@ let ve = class j {
|
|
|
2573
2264
|
params: s
|
|
2574
2265
|
} = e;
|
|
2575
2266
|
s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
|
|
2576
|
-
l.complete &&
|
|
2267
|
+
l.complete && Z(e, l);
|
|
2577
2268
|
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
2578
2269
|
function n() {
|
|
2579
2270
|
const l = e.rtlTranslate ? e.translate * -1 : e.translate, a = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
|
|
@@ -2613,7 +2304,7 @@ let ve = class j {
|
|
|
2613
2304
|
s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = !0);
|
|
2614
2305
|
const n = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
|
|
2615
2306
|
let l = (() => s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : R(s, n())[0])();
|
|
2616
|
-
return !l && i.params.createElements && (l =
|
|
2307
|
+
return !l && i.params.createElements && (l = te("div", i.params.wrapperClass), s.append(l), R(s, `.${i.params.slideClass}`).forEach((a) => {
|
|
2617
2308
|
l.append(a);
|
|
2618
2309
|
})), Object.assign(i, {
|
|
2619
2310
|
el: s,
|
|
@@ -2634,10 +2325,10 @@ let ve = class j {
|
|
|
2634
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();
|
|
2635
2326
|
const n = [...i.el.querySelectorAll('[loading="lazy"]')];
|
|
2636
2327
|
return i.isElement && n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
|
|
2637
|
-
r.complete ?
|
|
2638
|
-
|
|
2328
|
+
r.complete ? Z(i, r) : r.addEventListener("load", (l) => {
|
|
2329
|
+
Z(i, l.target);
|
|
2639
2330
|
});
|
|
2640
|
-
}),
|
|
2331
|
+
}), fe(i), i.initialized = !0, fe(i), i.emit("init"), i.emit("afterInit"), i;
|
|
2641
2332
|
}
|
|
2642
2333
|
destroy(e, i) {
|
|
2643
2334
|
e === void 0 && (e = !0), i === void 0 && (i = !0);
|
|
@@ -2651,33 +2342,165 @@ let ve = class j {
|
|
|
2651
2342
|
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2652
2343
|
})), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((o) => {
|
|
2653
2344
|
s.off(o);
|
|
2654
|
-
}), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null),
|
|
2345
|
+
}), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), qe(s)), s.destroyed = !0), null;
|
|
2655
2346
|
}
|
|
2656
2347
|
static extendDefaults(e) {
|
|
2657
|
-
|
|
2348
|
+
V(de, e);
|
|
2658
2349
|
}
|
|
2659
2350
|
static get extendedDefaults() {
|
|
2660
|
-
return
|
|
2351
|
+
return de;
|
|
2661
2352
|
}
|
|
2662
2353
|
static get defaults() {
|
|
2663
|
-
return
|
|
2354
|
+
return ue;
|
|
2664
2355
|
}
|
|
2665
2356
|
static installModule(e) {
|
|
2666
|
-
|
|
2667
|
-
const i =
|
|
2357
|
+
H.prototype.__modules__ || (H.prototype.__modules__ = []);
|
|
2358
|
+
const i = H.prototype.__modules__;
|
|
2668
2359
|
typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
|
|
2669
2360
|
}
|
|
2670
2361
|
static use(e) {
|
|
2671
|
-
return Array.isArray(e) ? (e.forEach((i) =>
|
|
2362
|
+
return Array.isArray(e) ? (e.forEach((i) => H.installModule(i)), H) : (H.installModule(e), H);
|
|
2672
2363
|
}
|
|
2673
2364
|
};
|
|
2674
|
-
Object.keys(
|
|
2675
|
-
Object.keys(
|
|
2676
|
-
|
|
2365
|
+
Object.keys(oe).forEach((t) => {
|
|
2366
|
+
Object.keys(oe[t]).forEach((e) => {
|
|
2367
|
+
me.prototype[e] = oe[t][e];
|
|
2677
2368
|
});
|
|
2678
2369
|
});
|
|
2679
|
-
|
|
2680
|
-
|
|
2370
|
+
me.use([rt, nt]);
|
|
2371
|
+
function ci(t, e, i, s) {
|
|
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 = [
|
|
2681
2504
|
"eventsPrefix",
|
|
2682
2505
|
"injectStyles",
|
|
2683
2506
|
"injectStylesUrls",
|
|
@@ -2796,25 +2619,25 @@ const Ve = [
|
|
|
2796
2619
|
"zoom",
|
|
2797
2620
|
"control"
|
|
2798
2621
|
];
|
|
2799
|
-
function
|
|
2622
|
+
function j(t) {
|
|
2800
2623
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
|
2801
2624
|
}
|
|
2802
|
-
function
|
|
2625
|
+
function Y(t, e) {
|
|
2803
2626
|
const i = ["__proto__", "constructor", "prototype"];
|
|
2804
2627
|
Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
|
|
2805
|
-
typeof t[s] > "u" ? t[s] = e[s] :
|
|
2628
|
+
typeof t[s] > "u" ? t[s] = e[s] : j(e[s]) && j(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : Y(t[s], e[s]) : t[s] = e[s];
|
|
2806
2629
|
});
|
|
2807
2630
|
}
|
|
2808
|
-
function
|
|
2631
|
+
function De(t) {
|
|
2809
2632
|
return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
|
|
2810
2633
|
}
|
|
2811
|
-
function
|
|
2634
|
+
function Ve(t) {
|
|
2812
2635
|
return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
|
|
2813
2636
|
}
|
|
2814
|
-
function
|
|
2637
|
+
function Be(t) {
|
|
2815
2638
|
return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
|
|
2816
2639
|
}
|
|
2817
|
-
function
|
|
2640
|
+
function Ne(t) {
|
|
2818
2641
|
t === void 0 && (t = "");
|
|
2819
2642
|
const e = t.split(" ").map((s) => s.trim()).filter((s) => !!s), i = [];
|
|
2820
2643
|
return e.forEach((s) => {
|
|
@@ -2824,7 +2647,7 @@ function Re(t) {
|
|
|
2824
2647
|
function fi(t) {
|
|
2825
2648
|
return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
|
|
2826
2649
|
}
|
|
2827
|
-
function
|
|
2650
|
+
function ui(t) {
|
|
2828
2651
|
let {
|
|
2829
2652
|
swiper: e,
|
|
2830
2653
|
slides: i,
|
|
@@ -2835,37 +2658,37 @@ function pi(t) {
|
|
|
2835
2658
|
scrollbarEl: a,
|
|
2836
2659
|
paginationEl: o
|
|
2837
2660
|
} = t;
|
|
2838
|
-
const d = n.filter((
|
|
2661
|
+
const d = n.filter((E) => E !== "children" && E !== "direction" && E !== "wrapperClass"), {
|
|
2839
2662
|
params: c,
|
|
2840
|
-
pagination:
|
|
2663
|
+
pagination: f,
|
|
2841
2664
|
navigation: m,
|
|
2842
2665
|
scrollbar: h,
|
|
2843
|
-
virtual:
|
|
2666
|
+
virtual: u,
|
|
2844
2667
|
thumbs: g
|
|
2845
2668
|
} = e;
|
|
2846
|
-
let S, p, v, w,
|
|
2847
|
-
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (S = !0), n.includes("controller") && s.controller && s.controller.control && c.controller && !c.controller.control && (p = !0), n.includes("pagination") && s.pagination && (s.pagination.el || o) && (c.pagination || c.pagination === !1) &&
|
|
2848
|
-
const
|
|
2849
|
-
e[
|
|
2669
|
+
let S, p, v, w, x, b, C, M;
|
|
2670
|
+
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (S = !0), n.includes("controller") && s.controller && s.controller.control && c.controller && !c.controller.control && (p = !0), n.includes("pagination") && s.pagination && (s.pagination.el || o) && (c.pagination || c.pagination === !1) && f && !f.el && (v = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && h && !h.el && (w = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (c.navigation || c.navigation === !1) && m && !m.prevEl && !m.nextEl && (x = !0);
|
|
2671
|
+
const P = (E) => {
|
|
2672
|
+
e[E] && (e[E].destroy(), E === "navigation" ? (e.isElement && (e[E].prevEl.remove(), e[E].nextEl.remove()), c[E].prevEl = void 0, c[E].nextEl = void 0, e[E].prevEl = void 0, e[E].nextEl = void 0) : (e.isElement && e[E].el.remove(), c[E].el = void 0, e[E].el = void 0));
|
|
2850
2673
|
};
|
|
2851
|
-
n.includes("loop") && e.isElement && (c.loop && !s.loop ? b = !0 : !c.loop && s.loop ? C = !0 :
|
|
2852
|
-
if (
|
|
2853
|
-
Object.assign(c[
|
|
2674
|
+
n.includes("loop") && e.isElement && (c.loop && !s.loop ? b = !0 : !c.loop && s.loop ? C = !0 : M = !0), d.forEach((E) => {
|
|
2675
|
+
if (j(c[E]) && j(s[E]))
|
|
2676
|
+
Object.assign(c[E], s[E]), (E === "navigation" || E === "pagination" || E === "scrollbar") && "enabled" in s[E] && !s[E].enabled && P(E);
|
|
2854
2677
|
else {
|
|
2855
|
-
const T = s[
|
|
2856
|
-
(T === !0 || T === !1) && (
|
|
2678
|
+
const T = s[E];
|
|
2679
|
+
(T === !0 || T === !1) && (E === "navigation" || E === "pagination" || E === "scrollbar") ? T === !1 && P(E) : c[E] = s[E];
|
|
2857
2680
|
}
|
|
2858
|
-
}), d.includes("controller") && !p && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), n.includes("children") && i &&
|
|
2681
|
+
}), d.includes("controller") && !p && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), n.includes("children") && i && u && c.virtual.enabled ? (u.slides = i, u.update(!0)) : n.includes("virtual") && u && c.virtual.enabled && (i && (u.slides = i), u.update(!0)), n.includes("children") && i && c.loop && (M = !0), S && g.init() && g.update(!0), p && (e.controller.control = c.controller.control), v && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (c.pagination.el = o), f.init(), f.render(), f.update()), w && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (c.scrollbar.el = a), h.init(), h.updateSize(), h.setTranslate()), x && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), we(r, e.hostEl.constructor.nextButtonSvg), r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), we(l, e.hostEl.constructor.prevButtonSvg), l.part.add("button-prev"), e.el.appendChild(l))), r && (c.navigation.nextEl = r), l && (c.navigation.prevEl = l), m.init(), m.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (b || M) && e.loopDestroy(), (C || M) && e.loopCreate(), e.update();
|
|
2859
2682
|
}
|
|
2860
|
-
function
|
|
2683
|
+
function pi(t, e) {
|
|
2861
2684
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2862
2685
|
const i = {
|
|
2863
2686
|
on: {}
|
|
2864
2687
|
}, s = {}, n = {};
|
|
2865
|
-
|
|
2866
|
-
const r = {}, l =
|
|
2688
|
+
Y(i, ue), i._emitClasses = !0, i.init = !1;
|
|
2689
|
+
const r = {}, l = Ge.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
|
|
2867
2690
|
return Object.keys(a).forEach((o) => {
|
|
2868
|
-
typeof t[o] > "u" || (l.indexOf(o) >= 0 ?
|
|
2691
|
+
typeof t[o] > "u" || (l.indexOf(o) >= 0 ? j(t[o]) ? (i[o] = {}, n[o] = {}, Y(i[o], t[o]), Y(n[o], t[o])) : (i[o] = t[o], n[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? e ? s[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : i.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : r[o] = t[o]);
|
|
2869
2692
|
}), ["navigation", "pagination", "scrollbar"].forEach((o) => {
|
|
2870
2693
|
i[o] === !0 && (i[o] = {}), i[o] === !1 && delete i[o];
|
|
2871
2694
|
}), {
|
|
@@ -2875,7 +2698,7 @@ function mi(t, e) {
|
|
|
2875
2698
|
events: s
|
|
2876
2699
|
};
|
|
2877
2700
|
}
|
|
2878
|
-
function
|
|
2701
|
+
function mi(t, e) {
|
|
2879
2702
|
let {
|
|
2880
2703
|
el: i,
|
|
2881
2704
|
nextEl: s,
|
|
@@ -2884,9 +2707,9 @@ function hi(t, e) {
|
|
|
2884
2707
|
scrollbarEl: l,
|
|
2885
2708
|
swiper: a
|
|
2886
2709
|
} = t;
|
|
2887
|
-
|
|
2710
|
+
De(e) && s && n && (a.params.navigation.nextEl = s, a.originalParams.navigation.nextEl = s, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), Ve(e) && r && (a.params.pagination.el = r, a.originalParams.pagination.el = r), Be(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(i);
|
|
2888
2711
|
}
|
|
2889
|
-
function
|
|
2712
|
+
function hi(t, e, i, s, n) {
|
|
2890
2713
|
const r = [];
|
|
2891
2714
|
if (!e)
|
|
2892
2715
|
return r;
|
|
@@ -2897,55 +2720,55 @@ function gi(t, e, i, s, n) {
|
|
|
2897
2720
|
const o = s.map(n), d = i.map(n);
|
|
2898
2721
|
o.join("") !== d.join("") && l("children"), s.length !== i.length && l("children");
|
|
2899
2722
|
}
|
|
2900
|
-
return
|
|
2723
|
+
return Ge.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
|
|
2901
2724
|
if (o in t && o in e)
|
|
2902
|
-
if (
|
|
2725
|
+
if (j(t[o]) && j(e[o])) {
|
|
2903
2726
|
const d = Object.keys(t[o]), c = Object.keys(e[o]);
|
|
2904
|
-
d.length !== c.length ? l(o) : (d.forEach((
|
|
2905
|
-
t[o][
|
|
2906
|
-
}), c.forEach((
|
|
2907
|
-
t[o][
|
|
2727
|
+
d.length !== c.length ? l(o) : (d.forEach((f) => {
|
|
2728
|
+
t[o][f] !== e[o][f] && l(o);
|
|
2729
|
+
}), c.forEach((f) => {
|
|
2730
|
+
t[o][f] !== e[o][f] && l(o);
|
|
2908
2731
|
}));
|
|
2909
2732
|
} else
|
|
2910
2733
|
t[o] !== e[o] && l(o);
|
|
2911
2734
|
}), r;
|
|
2912
2735
|
}
|
|
2913
|
-
const
|
|
2736
|
+
const gi = (t) => {
|
|
2914
2737
|
!t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
|
|
2915
2738
|
};
|
|
2916
|
-
function
|
|
2917
|
-
return
|
|
2739
|
+
function ie() {
|
|
2740
|
+
return ie = Object.assign ? Object.assign.bind() : function(t) {
|
|
2918
2741
|
for (var e = 1; e < arguments.length; e++) {
|
|
2919
2742
|
var i = arguments[e];
|
|
2920
2743
|
for (var s in i)
|
|
2921
2744
|
Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
|
|
2922
2745
|
}
|
|
2923
2746
|
return t;
|
|
2924
|
-
},
|
|
2747
|
+
}, ie.apply(this, arguments);
|
|
2925
2748
|
}
|
|
2926
|
-
function
|
|
2749
|
+
function Fe(t) {
|
|
2927
2750
|
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
2928
2751
|
}
|
|
2929
|
-
function
|
|
2752
|
+
function ke(t) {
|
|
2930
2753
|
const e = [];
|
|
2931
|
-
return
|
|
2932
|
-
|
|
2754
|
+
return A.Children.toArray(t).forEach((i) => {
|
|
2755
|
+
Fe(i) ? e.push(i) : i.props && i.props.children && ke(i.props.children).forEach((s) => e.push(s));
|
|
2933
2756
|
}), e;
|
|
2934
2757
|
}
|
|
2935
|
-
function
|
|
2758
|
+
function vi(t) {
|
|
2936
2759
|
const e = [], i = {
|
|
2937
2760
|
"container-start": [],
|
|
2938
2761
|
"container-end": [],
|
|
2939
2762
|
"wrapper-start": [],
|
|
2940
2763
|
"wrapper-end": []
|
|
2941
2764
|
};
|
|
2942
|
-
return
|
|
2943
|
-
if (
|
|
2765
|
+
return A.Children.toArray(t).forEach((s) => {
|
|
2766
|
+
if (Fe(s))
|
|
2944
2767
|
e.push(s);
|
|
2945
2768
|
else if (s.props && s.props.slot && i[s.props.slot])
|
|
2946
2769
|
i[s.props.slot].push(s);
|
|
2947
2770
|
else if (s.props && s.props.children) {
|
|
2948
|
-
const n =
|
|
2771
|
+
const n = ke(s.props.children);
|
|
2949
2772
|
n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
|
|
2950
2773
|
} else
|
|
2951
2774
|
i["container-end"].push(s);
|
|
@@ -2954,12 +2777,12 @@ function wi(t) {
|
|
|
2954
2777
|
slots: i
|
|
2955
2778
|
};
|
|
2956
2779
|
}
|
|
2957
|
-
function
|
|
2780
|
+
function wi(t, e, i) {
|
|
2958
2781
|
if (!i)
|
|
2959
2782
|
return null;
|
|
2960
2783
|
const s = (c) => {
|
|
2961
|
-
let
|
|
2962
|
-
return c < 0 ?
|
|
2784
|
+
let f = c;
|
|
2785
|
+
return c < 0 ? f = e.length + c : f >= e.length && (f = f - e.length), f;
|
|
2963
2786
|
}, n = t.isHorizontal() ? {
|
|
2964
2787
|
[t.rtlTranslate ? "right" : "left"]: `${i.offset}px`
|
|
2965
2788
|
} : {
|
|
@@ -2970,16 +2793,16 @@ function Si(t, e, i) {
|
|
|
2970
2793
|
} = i, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, d = [];
|
|
2971
2794
|
for (let c = a; c < o; c += 1)
|
|
2972
2795
|
c >= r && c <= l && d.push(e[s(c)]);
|
|
2973
|
-
return d.map((c,
|
|
2796
|
+
return d.map((c, f) => /* @__PURE__ */ A.cloneElement(c, {
|
|
2974
2797
|
swiper: t,
|
|
2975
2798
|
style: n,
|
|
2976
|
-
key: c.props.virtualIndex || c.key || `slide-${
|
|
2799
|
+
key: c.props.virtualIndex || c.key || `slide-${f}`
|
|
2977
2800
|
}));
|
|
2978
2801
|
}
|
|
2979
|
-
function
|
|
2980
|
-
return typeof window > "u" ?
|
|
2802
|
+
function U(t, e) {
|
|
2803
|
+
return typeof window > "u" ? ce(t, e) : He(t, e);
|
|
2981
2804
|
}
|
|
2982
|
-
const
|
|
2805
|
+
const Ee = /* @__PURE__ */ Pe(null), Si = /* @__PURE__ */ Pe(null), Ti = /* @__PURE__ */ ye(function(t, e) {
|
|
2983
2806
|
let {
|
|
2984
2807
|
className: i,
|
|
2985
2808
|
tag: s = "div",
|
|
@@ -2988,111 +2811,111 @@ const Ce = /* @__PURE__ */ Ie(null), Ti = /* @__PURE__ */ Ie(null), bi = /* @__P
|
|
|
2988
2811
|
onSwiper: l,
|
|
2989
2812
|
...a
|
|
2990
2813
|
} = t === void 0 ? {} : t, o = !1;
|
|
2991
|
-
const [d, c] =
|
|
2992
|
-
params:
|
|
2993
|
-
passedParams:
|
|
2814
|
+
const [d, c] = X("swiper"), [f, m] = X(null), [h, u] = X(!1), g = k(!1), S = k(null), p = k(null), v = k(null), w = k(null), x = k(null), b = k(null), C = k(null), M = k(null), {
|
|
2815
|
+
params: P,
|
|
2816
|
+
passedParams: E,
|
|
2994
2817
|
rest: T,
|
|
2995
|
-
events:
|
|
2996
|
-
} =
|
|
2997
|
-
slides:
|
|
2998
|
-
slots:
|
|
2999
|
-
} =
|
|
3000
|
-
|
|
2818
|
+
events: y
|
|
2819
|
+
} = pi(a), {
|
|
2820
|
+
slides: I,
|
|
2821
|
+
slots: z
|
|
2822
|
+
} = vi(r), B = () => {
|
|
2823
|
+
u(!h);
|
|
3001
2824
|
};
|
|
3002
|
-
Object.assign(
|
|
3003
|
-
_containerClasses(
|
|
3004
|
-
c(
|
|
2825
|
+
Object.assign(P.on, {
|
|
2826
|
+
_containerClasses(O, F) {
|
|
2827
|
+
c(F);
|
|
3005
2828
|
}
|
|
3006
2829
|
});
|
|
3007
2830
|
const N = () => {
|
|
3008
|
-
Object.assign(
|
|
3009
|
-
const
|
|
3010
|
-
...
|
|
2831
|
+
Object.assign(P.on, y), o = !0;
|
|
2832
|
+
const O = {
|
|
2833
|
+
...P
|
|
3011
2834
|
};
|
|
3012
|
-
if (delete
|
|
3013
|
-
p.current.virtual.slides =
|
|
3014
|
-
const
|
|
2835
|
+
if (delete O.wrapperClass, p.current = new me(O), p.current.virtual && p.current.params.virtual.enabled) {
|
|
2836
|
+
p.current.virtual.slides = I;
|
|
2837
|
+
const F = {
|
|
3015
2838
|
cache: !1,
|
|
3016
|
-
slides:
|
|
2839
|
+
slides: I,
|
|
3017
2840
|
renderExternal: m,
|
|
3018
2841
|
renderExternalUpdate: !1
|
|
3019
2842
|
};
|
|
3020
|
-
|
|
2843
|
+
Y(p.current.params.virtual, F), Y(p.current.originalParams.virtual, F);
|
|
3021
2844
|
}
|
|
3022
2845
|
};
|
|
3023
|
-
S.current || N(), p.current && p.current.on("_beforeBreakpoint",
|
|
3024
|
-
const
|
|
3025
|
-
o || !
|
|
3026
|
-
p.current.on(
|
|
2846
|
+
S.current || N(), p.current && p.current.on("_beforeBreakpoint", B);
|
|
2847
|
+
const L = () => {
|
|
2848
|
+
o || !y || !p.current || Object.keys(y).forEach((O) => {
|
|
2849
|
+
p.current.on(O, y[O]);
|
|
3027
2850
|
});
|
|
3028
|
-
},
|
|
3029
|
-
!
|
|
3030
|
-
p.current.off(
|
|
2851
|
+
}, _ = () => {
|
|
2852
|
+
!y || !p.current || Object.keys(y).forEach((O) => {
|
|
2853
|
+
p.current.off(O, y[O]);
|
|
3031
2854
|
});
|
|
3032
2855
|
};
|
|
3033
|
-
|
|
3034
|
-
p.current && p.current.off("_beforeBreakpoint",
|
|
3035
|
-
}),
|
|
2856
|
+
ce(() => () => {
|
|
2857
|
+
p.current && p.current.off("_beforeBreakpoint", B);
|
|
2858
|
+
}), ce(() => {
|
|
3036
2859
|
!g.current && p.current && (p.current.emitSlidesClasses(), g.current = !0);
|
|
3037
|
-
}),
|
|
2860
|
+
}), U(() => {
|
|
3038
2861
|
if (e && (e.current = S.current), !!S.current)
|
|
3039
|
-
return p.current.destroyed && N(),
|
|
2862
|
+
return p.current.destroyed && N(), mi({
|
|
3040
2863
|
el: S.current,
|
|
3041
|
-
nextEl:
|
|
2864
|
+
nextEl: x.current,
|
|
3042
2865
|
prevEl: b.current,
|
|
3043
2866
|
paginationEl: C.current,
|
|
3044
|
-
scrollbarEl:
|
|
2867
|
+
scrollbarEl: M.current,
|
|
3045
2868
|
swiper: p.current
|
|
3046
|
-
},
|
|
2869
|
+
}, P), l && !p.current.destroyed && l(p.current), () => {
|
|
3047
2870
|
p.current && !p.current.destroyed && p.current.destroy(!0, !1);
|
|
3048
2871
|
};
|
|
3049
|
-
}, []),
|
|
3050
|
-
|
|
3051
|
-
const
|
|
3052
|
-
return v.current =
|
|
2872
|
+
}, []), U(() => {
|
|
2873
|
+
L();
|
|
2874
|
+
const O = hi(E, v.current, I, w.current, (F) => F.key);
|
|
2875
|
+
return v.current = E, w.current = I, O.length && p.current && !p.current.destroyed && ui({
|
|
3053
2876
|
swiper: p.current,
|
|
3054
|
-
slides:
|
|
3055
|
-
passedParams:
|
|
3056
|
-
changedParams:
|
|
3057
|
-
nextEl:
|
|
2877
|
+
slides: I,
|
|
2878
|
+
passedParams: E,
|
|
2879
|
+
changedParams: O,
|
|
2880
|
+
nextEl: x.current,
|
|
3058
2881
|
prevEl: b.current,
|
|
3059
|
-
scrollbarEl:
|
|
2882
|
+
scrollbarEl: M.current,
|
|
3060
2883
|
paginationEl: C.current
|
|
3061
2884
|
}), () => {
|
|
3062
|
-
|
|
2885
|
+
_();
|
|
3063
2886
|
};
|
|
3064
|
-
}),
|
|
3065
|
-
|
|
3066
|
-
}, [
|
|
3067
|
-
function
|
|
3068
|
-
return
|
|
2887
|
+
}), U(() => {
|
|
2888
|
+
gi(p.current);
|
|
2889
|
+
}, [f]);
|
|
2890
|
+
function G() {
|
|
2891
|
+
return P.virtual ? wi(p.current, I, f) : I.map((O, F) => /* @__PURE__ */ A.cloneElement(O, {
|
|
3069
2892
|
swiper: p.current,
|
|
3070
|
-
swiperSlideIndex:
|
|
2893
|
+
swiperSlideIndex: F
|
|
3071
2894
|
}));
|
|
3072
2895
|
}
|
|
3073
|
-
return /* @__PURE__ */
|
|
2896
|
+
return /* @__PURE__ */ A.createElement(s, ie({
|
|
3074
2897
|
ref: S,
|
|
3075
|
-
className:
|
|
3076
|
-
}, T), /* @__PURE__ */
|
|
2898
|
+
className: Ne(`${d}${i ? ` ${i}` : ""}`)
|
|
2899
|
+
}, T), /* @__PURE__ */ A.createElement(Si.Provider, {
|
|
3077
2900
|
value: p.current
|
|
3078
|
-
},
|
|
3079
|
-
className: fi(
|
|
3080
|
-
},
|
|
2901
|
+
}, z["container-start"], /* @__PURE__ */ A.createElement(n, {
|
|
2902
|
+
className: fi(P.wrapperClass)
|
|
2903
|
+
}, z["wrapper-start"], G(), z["wrapper-end"]), De(P) && /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement("div", {
|
|
3081
2904
|
ref: b,
|
|
3082
2905
|
className: "swiper-button-prev"
|
|
3083
|
-
}), /* @__PURE__ */
|
|
3084
|
-
ref:
|
|
2906
|
+
}), /* @__PURE__ */ A.createElement("div", {
|
|
2907
|
+
ref: x,
|
|
3085
2908
|
className: "swiper-button-next"
|
|
3086
|
-
})),
|
|
3087
|
-
ref:
|
|
2909
|
+
})), Be(P) && /* @__PURE__ */ A.createElement("div", {
|
|
2910
|
+
ref: M,
|
|
3088
2911
|
className: "swiper-scrollbar"
|
|
3089
|
-
}),
|
|
2912
|
+
}), Ve(P) && /* @__PURE__ */ A.createElement("div", {
|
|
3090
2913
|
ref: C,
|
|
3091
2914
|
className: "swiper-pagination"
|
|
3092
|
-
}),
|
|
2915
|
+
}), z["container-end"]));
|
|
3093
2916
|
});
|
|
3094
|
-
|
|
3095
|
-
const
|
|
2917
|
+
Ti.displayName = "Swiper";
|
|
2918
|
+
const bi = /* @__PURE__ */ ye(function(t, e) {
|
|
3096
2919
|
let {
|
|
3097
2920
|
tag: i = "div",
|
|
3098
2921
|
children: s,
|
|
@@ -3104,12 +2927,12 @@ const yi = /* @__PURE__ */ Me(function(t, e) {
|
|
|
3104
2927
|
swiperSlideIndex: d,
|
|
3105
2928
|
...c
|
|
3106
2929
|
} = t === void 0 ? {} : t;
|
|
3107
|
-
const
|
|
3108
|
-
function S(
|
|
3109
|
-
b ===
|
|
2930
|
+
const f = k(null), [m, h] = X("swiper-slide"), [u, g] = X(!1);
|
|
2931
|
+
function S(x, b, C) {
|
|
2932
|
+
b === f.current && h(C);
|
|
3110
2933
|
}
|
|
3111
|
-
|
|
3112
|
-
if (typeof d < "u" && (
|
|
2934
|
+
U(() => {
|
|
2935
|
+
if (typeof d < "u" && (f.current.swiperSlideIndex = d), e && (e.current = f.current), !(!f.current || !r)) {
|
|
3113
2936
|
if (r.destroyed) {
|
|
3114
2937
|
m !== "swiper-slide" && h("swiper-slide");
|
|
3115
2938
|
return;
|
|
@@ -3118,8 +2941,8 @@ const yi = /* @__PURE__ */ Me(function(t, e) {
|
|
|
3118
2941
|
r && r.off("_slideClass", S);
|
|
3119
2942
|
};
|
|
3120
2943
|
}
|
|
3121
|
-
}),
|
|
3122
|
-
r &&
|
|
2944
|
+
}), U(() => {
|
|
2945
|
+
r && f.current && !r.destroyed && h(r.getSlideClasses(f.current));
|
|
3123
2946
|
}, [r]);
|
|
3124
2947
|
const p = {
|
|
3125
2948
|
isActive: m.indexOf("swiper-slide-active") >= 0,
|
|
@@ -3129,30 +2952,32 @@ const yi = /* @__PURE__ */ Me(function(t, e) {
|
|
|
3129
2952
|
}, v = () => typeof s == "function" ? s(p) : s, w = () => {
|
|
3130
2953
|
g(!0);
|
|
3131
2954
|
};
|
|
3132
|
-
return /* @__PURE__ */
|
|
3133
|
-
ref:
|
|
3134
|
-
className:
|
|
2955
|
+
return /* @__PURE__ */ A.createElement(i, ie({
|
|
2956
|
+
ref: f,
|
|
2957
|
+
className: Ne(`${m}${n ? ` ${n}` : ""}`),
|
|
3135
2958
|
"data-swiper-slide-index": o,
|
|
3136
2959
|
onLoad: w
|
|
3137
|
-
}, c), l && /* @__PURE__ */
|
|
2960
|
+
}, c), l && /* @__PURE__ */ A.createElement(Ee.Provider, {
|
|
3138
2961
|
value: p
|
|
3139
|
-
}, /* @__PURE__ */
|
|
2962
|
+
}, /* @__PURE__ */ A.createElement("div", {
|
|
3140
2963
|
className: "swiper-zoom-container",
|
|
3141
2964
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
3142
|
-
}, v(), a && !
|
|
2965
|
+
}, v(), a && !u && /* @__PURE__ */ A.createElement("div", {
|
|
3143
2966
|
className: "swiper-lazy-preloader"
|
|
3144
|
-
}))), !l && /* @__PURE__ */
|
|
2967
|
+
}))), !l && /* @__PURE__ */ A.createElement(Ee.Provider, {
|
|
3145
2968
|
value: p
|
|
3146
|
-
}, v(), a && !
|
|
2969
|
+
}, v(), a && !u && /* @__PURE__ */ A.createElement("div", {
|
|
3147
2970
|
className: "swiper-lazy-preloader"
|
|
3148
2971
|
})));
|
|
3149
2972
|
});
|
|
3150
|
-
|
|
2973
|
+
bi.displayName = "SwiperSlide";
|
|
3151
2974
|
export {
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
bi as
|
|
3156
|
-
|
|
3157
|
-
|
|
2975
|
+
Ei as N,
|
|
2976
|
+
me as S,
|
|
2977
|
+
Ti as a,
|
|
2978
|
+
bi as b,
|
|
2979
|
+
J as c,
|
|
2980
|
+
q as d,
|
|
2981
|
+
D as g,
|
|
2982
|
+
Me as n
|
|
3158
2983
|
};
|