@wikicasa-dev/components 2.0.53 → 2.0.54-alpha.1
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/AccessibleSelect.js +1 -1
- package/dist/BaseAccordion.js +1 -1
- package/dist/BaseAccordionBtn.js +1 -1
- package/dist/BaseAccordionContent.js +1 -1
- package/dist/BaseAccordionItem.js +1 -1
- package/dist/BaseAlert.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseBadge.js +1 -1
- package/dist/BaseBreadcrumb.js +1 -1
- package/dist/BaseButton.js +1 -1
- package/dist/BaseCard.js +2 -2
- package/dist/BaseComplexToggle.js +4 -4
- package/dist/BaseDropDown.js +1 -1
- package/dist/BaseFloatingLabel.js +3 -3
- package/dist/BaseIcon.js +4 -4
- package/dist/BaseInput.js +9 -9
- package/dist/BaseModal.js +1 -1
- package/dist/BasePagination.js +1 -1
- package/dist/BasePaper.js +2 -2
- package/dist/BaseShimmerLoader.js +2 -2
- package/dist/BaseSlider.js +2 -2
- package/dist/BaseSnackbar.js +3 -3
- package/dist/BaseTabList.js +1 -1
- package/dist/BaseTabPanel.js +1 -1
- package/dist/BaseTabView.js +1 -1
- package/dist/BaseTextarea.js +4 -4
- package/dist/BaseToggle.js +4 -4
- package/dist/BaseTooltip.js +3 -3
- package/dist/BaseUploadFile.js +1 -1
- package/dist/CheckboxBtn.js +5 -5
- package/dist/CheckboxGroup.js +1 -1
- package/dist/DoughnutChart.js +1 -1
- package/dist/IntersectionObservable.js +1 -1
- package/dist/IntersectionObserver.js +1 -1
- package/dist/LineChart.js +1 -1
- package/dist/RadioButton.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/SelectItem.js +1 -1
- package/dist/ShimmerMultiLine.js +1 -1
- package/dist/SimpleSlider.js +2 -2
- package/dist/StaticSpinner.js +2 -2
- package/dist/SwiperCarousel.js +861 -829
- package/dist/SwiperSlide.js +2 -2
- package/dist/UIKit/AccessibleSelect.vue.d.ts +5 -10
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +9 -12
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +12 -17
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -14
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +20 -33
- package/dist/UIKit/BaseAlert.vue.d.ts +7 -7
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +4 -8
- package/dist/UIKit/BaseBadge.vue.d.ts +6 -6
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +8 -10
- package/dist/UIKit/BaseButton.vue.d.ts +17 -30
- package/dist/UIKit/BaseCard.vue.d.ts +12 -15
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +7 -6
- package/dist/UIKit/BaseDropDown.vue.d.ts +9 -6
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +5 -11
- package/dist/UIKit/BaseIcon.vue.d.ts +3 -9
- package/dist/UIKit/BaseInput.vue.d.ts +10 -7
- package/dist/UIKit/BaseModal.vue.d.ts +25 -44
- package/dist/UIKit/BasePagination.vue.d.ts +5 -5
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +10 -12
- package/dist/UIKit/BaseSlider.vue.d.ts +10 -7
- package/dist/UIKit/BaseSnackbar.vue.d.ts +7 -14
- package/dist/UIKit/BaseTextarea.vue.d.ts +7 -5
- package/dist/UIKit/BaseToggle.vue.d.ts +6 -5
- package/dist/UIKit/BaseTooltip.vue.d.ts +13 -20
- package/dist/UIKit/BaseUploadFile.vue.d.ts +13 -19
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +18 -31
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +23 -43
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +7 -11
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +8 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -6
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +54 -8
- package/dist/UIKit/Slider/SimpleSlider.vue.d.ts +7 -5
- package/dist/UIKit/StaticSpinner.vue.d.ts +3 -5
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +8 -10
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +5 -7
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +9 -11
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +7 -5
- package/dist/chart/DoughnutChart.vue.d.ts +3 -5
- package/dist/chart/LineChart.vue.d.ts +4 -6
- package/dist/chart/composables/useChartjsModules.d.ts +1 -1
- package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.tcyWuhKm.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js} +4 -4
- package/dist/chunks/{ArrowIcon.CCFMdsq6.js → ArrowIcon.Bq6Xr3uH.js} +1 -1
- package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js → BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js} +2 -2
- package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +4 -4
- package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +2 -2
- package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +8 -8
- package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js → BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.B31Vyyn6.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.m9DVH1he.js} +9 -9
- package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js → BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js} +2 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BAE3i6sW.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +7 -7
- package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js → BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js} +4 -4
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.CpbjEyOl.js → BaseDropDown.vue_vue_type_script_setup_true_lang.CPpsFIZy.js} +9 -9
- package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.CeKWAwpg.js → BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +4 -4
- package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.Cb6fEMc-.js → BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +20 -19
- package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CohlLou1.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +2 -2
- package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +2 -2
- package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.DTPN9Rg-.js → BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +3 -3
- package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js} +1 -1
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.BC3hlJfx.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.CDFRhya0.js} +5 -5
- package/dist/chunks/{CloseIcon.DIkr4soH.js → CloseIcon.BZ4U3aiI.js} +1 -1
- package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js → DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js} +3 -3
- package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +2 -2
- package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +2 -2
- package/dist/chunks/{LineChart.vue_vue_type_script_setup_true_lang.iRZ_Q6nK.js → LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js} +3 -3
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js → RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +2 -2
- package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +2 -2
- package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js → SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +2 -2
- package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js} +3 -3
- package/dist/chunks/polyline.tNTK3v2u.js +129 -0
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -9
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +5 -2
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +6 -2
- package/dist/components/carousel/SwiperSlide.vue.d.ts +3 -2
- package/dist/index.js +24 -24
- package/dist/useChartjsModules.js +24 -29
- package/package.json +5 -4
- package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
- package/dist/chunks/types-B0dZ7OiV.D29wNgoj.js +0 -3209
- package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
package/dist/SwiperCarousel.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Swiper as
|
|
3
|
-
import "./chunks/
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import './assets/SwiperCarousel.css';function
|
|
7
|
-
return
|
|
1
|
+
import { defineComponent as Re, reactive as Fe, ref as xe, useId as Ne, computed as Q, onMounted as qe, watch as Ve, nextTick as ke, createElementBlock as V, openBlock as j, normalizeClass as G, createElementVNode as _, createCommentVNode as me, renderSlot as Xe, Fragment as Ce, renderList as Ye, mergeProps as De, withModifiers as Te } from "vue";
|
|
2
|
+
import { Swiper as Oe } from "swiper";
|
|
3
|
+
import "./chunks/polyline.tNTK3v2u.js";
|
|
4
|
+
import { l as je } from "./chunks/ObjectUtils.DwkJjVq1.js";
|
|
5
|
+
import { _ as Ge } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import './assets/SwiperCarousel.css';function Ie(s) {
|
|
7
|
+
return s !== null && typeof s == "object" && "constructor" in s && s.constructor === Object;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
function Le(s, e) {
|
|
10
|
+
s === void 0 && (s = {}), e === void 0 && (e = {});
|
|
11
|
+
const C = ["__proto__", "constructor", "prototype"];
|
|
12
|
+
Object.keys(e).filter((l) => C.indexOf(l) < 0).forEach((l) => {
|
|
13
|
+
typeof s[l] > "u" ? s[l] = e[l] : Ie(e[l]) && Ie(s[l]) && Object.keys(e[l]).length > 0 && Le(s[l], e[l]);
|
|
12
14
|
});
|
|
13
15
|
}
|
|
14
|
-
const
|
|
16
|
+
const Be = {
|
|
15
17
|
body: {},
|
|
16
18
|
addEventListener() {
|
|
17
19
|
},
|
|
@@ -66,12 +68,12 @@ const Oe = {
|
|
|
66
68
|
search: ""
|
|
67
69
|
}
|
|
68
70
|
};
|
|
69
|
-
function
|
|
70
|
-
const
|
|
71
|
-
return
|
|
71
|
+
function ae() {
|
|
72
|
+
const s = typeof document < "u" ? document : {};
|
|
73
|
+
return Le(s, Be), s;
|
|
72
74
|
}
|
|
73
|
-
const
|
|
74
|
-
document:
|
|
75
|
+
const Ke = {
|
|
76
|
+
document: Be,
|
|
75
77
|
navigator: {
|
|
76
78
|
userAgent: ""
|
|
77
79
|
},
|
|
@@ -121,164 +123,164 @@ const Ne = {
|
|
|
121
123
|
matchMedia() {
|
|
122
124
|
return {};
|
|
123
125
|
},
|
|
124
|
-
requestAnimationFrame(
|
|
125
|
-
return typeof setTimeout > "u" ? (
|
|
126
|
+
requestAnimationFrame(s) {
|
|
127
|
+
return typeof setTimeout > "u" ? (s(), null) : setTimeout(s, 0);
|
|
126
128
|
},
|
|
127
|
-
cancelAnimationFrame(
|
|
128
|
-
typeof setTimeout > "u" || clearTimeout(
|
|
129
|
+
cancelAnimationFrame(s) {
|
|
130
|
+
typeof setTimeout > "u" || clearTimeout(s);
|
|
129
131
|
}
|
|
130
132
|
};
|
|
131
133
|
function ee() {
|
|
132
|
-
const
|
|
133
|
-
return
|
|
134
|
+
const s = typeof window < "u" ? window : {};
|
|
135
|
+
return Le(s, Ke), s;
|
|
134
136
|
}
|
|
135
|
-
function
|
|
136
|
-
return
|
|
137
|
+
function Ue(s) {
|
|
138
|
+
return s === void 0 && (s = ""), s.trim().split(" ").filter((e) => !!e.trim());
|
|
137
139
|
}
|
|
138
|
-
function
|
|
139
|
-
return e === void 0 && (e = 0), setTimeout(
|
|
140
|
+
function Ze(s, e) {
|
|
141
|
+
return e === void 0 && (e = 0), setTimeout(s, e);
|
|
140
142
|
}
|
|
141
|
-
function
|
|
143
|
+
function Se() {
|
|
142
144
|
return Date.now();
|
|
143
145
|
}
|
|
144
|
-
function
|
|
146
|
+
function Je(s) {
|
|
145
147
|
const e = ee();
|
|
146
|
-
let
|
|
147
|
-
return e.getComputedStyle && (
|
|
148
|
+
let C;
|
|
149
|
+
return e.getComputedStyle && (C = e.getComputedStyle(s, null)), !C && s.currentStyle && (C = s.currentStyle), C || (C = s.style), C;
|
|
148
150
|
}
|
|
149
|
-
function
|
|
151
|
+
function Ae(s, e) {
|
|
150
152
|
e === void 0 && (e = "x");
|
|
151
|
-
const
|
|
152
|
-
let l, m,
|
|
153
|
-
const T =
|
|
154
|
-
return
|
|
153
|
+
const C = ee();
|
|
154
|
+
let l, m, w;
|
|
155
|
+
const T = Je(s);
|
|
156
|
+
return C.WebKitCSSMatrix ? (m = T.transform || T.webkitTransform, m.split(",").length > 6 && (m = m.split(", ").map(($) => $.replace(",", ".")).join(", ")), w = new C.WebKitCSSMatrix(m === "none" ? "" : m)) : (w = T.MozTransform || T.OTransform || T.MsTransform || T.msTransform || T.transform || T.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), l = w.toString().split(",")), e === "x" && (C.WebKitCSSMatrix ? m = w.m41 : l.length === 16 ? m = parseFloat(l[12]) : m = parseFloat(l[4])), e === "y" && (C.WebKitCSSMatrix ? m = w.m42 : l.length === 16 ? m = parseFloat(l[13]) : m = parseFloat(l[5])), m || 0;
|
|
155
157
|
}
|
|
156
|
-
function
|
|
157
|
-
return typeof
|
|
158
|
+
function Qe(s) {
|
|
159
|
+
return typeof s == "object" && s !== null && s.constructor && Object.prototype.toString.call(s).slice(8, -1) === "Object";
|
|
158
160
|
}
|
|
159
|
-
function
|
|
161
|
+
function he(s, e) {
|
|
160
162
|
e === void 0 && (e = "");
|
|
161
|
-
const
|
|
162
|
-
return
|
|
163
|
+
const C = ee(), l = [...s.children];
|
|
164
|
+
return C.HTMLSlotElement && s instanceof HTMLSlotElement && l.push(...s.assignedElements()), e ? l.filter((m) => m.matches(e)) : l;
|
|
163
165
|
}
|
|
164
|
-
function
|
|
166
|
+
function _e(s, e) {
|
|
165
167
|
e === void 0 && (e = []);
|
|
166
|
-
const
|
|
167
|
-
return
|
|
168
|
+
const C = document.createElement(s);
|
|
169
|
+
return C.classList.add(...Array.isArray(e) ? e : Ue(e)), C;
|
|
168
170
|
}
|
|
169
|
-
function
|
|
170
|
-
const e = ee(),
|
|
171
|
+
function Me(s) {
|
|
172
|
+
const e = ee(), C = ae(), l = s.getBoundingClientRect(), m = C.body, w = s.clientTop || m.clientTop || 0, T = s.clientLeft || m.clientLeft || 0, $ = s === e ? e.scrollY : s.scrollTop, S = s === e ? e.scrollX : s.scrollLeft;
|
|
171
173
|
return {
|
|
172
|
-
top: l.top + $ -
|
|
173
|
-
left: l.left +
|
|
174
|
+
top: l.top + $ - w,
|
|
175
|
+
left: l.left + S - T
|
|
174
176
|
};
|
|
175
177
|
}
|
|
176
|
-
function
|
|
177
|
-
let e =
|
|
178
|
+
function We(s) {
|
|
179
|
+
let e = s, C;
|
|
178
180
|
if (e) {
|
|
179
|
-
for (
|
|
180
|
-
e.nodeType === 1 && (
|
|
181
|
-
return
|
|
181
|
+
for (C = 0; (e = e.previousSibling) !== null; )
|
|
182
|
+
e.nodeType === 1 && (C += 1);
|
|
183
|
+
return C;
|
|
182
184
|
}
|
|
183
185
|
}
|
|
184
|
-
function
|
|
185
|
-
const
|
|
186
|
-
let l =
|
|
186
|
+
function se(s, e) {
|
|
187
|
+
const C = [];
|
|
188
|
+
let l = s.parentElement;
|
|
187
189
|
for (; l; )
|
|
188
|
-
e ? l.matches(e) &&
|
|
189
|
-
return
|
|
190
|
+
e ? l.matches(e) && C.push(l) : C.push(l), l = l.parentElement;
|
|
191
|
+
return C;
|
|
190
192
|
}
|
|
191
|
-
function
|
|
192
|
-
function
|
|
193
|
-
l.target ===
|
|
193
|
+
function ge(s, e) {
|
|
194
|
+
function C(l) {
|
|
195
|
+
l.target === s && (e.call(s, l), s.removeEventListener("transitionend", C));
|
|
194
196
|
}
|
|
195
|
-
e &&
|
|
197
|
+
e && s.addEventListener("transitionend", C);
|
|
196
198
|
}
|
|
197
|
-
function
|
|
199
|
+
function et(s, e, C) {
|
|
198
200
|
const l = ee();
|
|
199
|
-
return
|
|
201
|
+
return s[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(l.getComputedStyle(s, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(l.getComputedStyle(s, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
200
202
|
}
|
|
201
|
-
function
|
|
202
|
-
return (Array.isArray(
|
|
203
|
+
function A(s) {
|
|
204
|
+
return (Array.isArray(s) ? s : [s]).filter((e) => !!e);
|
|
203
205
|
}
|
|
204
|
-
function
|
|
206
|
+
function tt(s) {
|
|
205
207
|
let {
|
|
206
208
|
swiper: e,
|
|
207
|
-
extendParams:
|
|
209
|
+
extendParams: C,
|
|
208
210
|
on: l,
|
|
209
211
|
emit: m
|
|
210
|
-
} =
|
|
211
|
-
const
|
|
212
|
+
} = s;
|
|
213
|
+
const w = ae(), T = ee();
|
|
212
214
|
e.keyboard = {
|
|
213
215
|
enabled: !1
|
|
214
|
-
},
|
|
216
|
+
}, C({
|
|
215
217
|
keyboard: {
|
|
216
218
|
enabled: !1,
|
|
217
219
|
onlyInViewport: !0,
|
|
218
220
|
pageUpDown: !0
|
|
219
221
|
}
|
|
220
222
|
});
|
|
221
|
-
function $(
|
|
223
|
+
function $(o) {
|
|
222
224
|
if (!e.enabled) return;
|
|
223
225
|
const {
|
|
224
|
-
rtlTranslate:
|
|
226
|
+
rtlTranslate: v
|
|
225
227
|
} = e;
|
|
226
|
-
let
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
if (!e.allowSlideNext && (e.isHorizontal() &&
|
|
228
|
+
let d = o;
|
|
229
|
+
d.originalEvent && (d = d.originalEvent);
|
|
230
|
+
const u = d.keyCode || d.charCode, i = e.params.keyboard.pageUpDown, t = i && u === 33, r = i && u === 34, p = u === 37, n = u === 39, a = u === 38, h = u === 40;
|
|
231
|
+
if (!e.allowSlideNext && (e.isHorizontal() && n || e.isVertical() && h || r) || !e.allowSlidePrev && (e.isHorizontal() && p || e.isVertical() && a || t))
|
|
230
232
|
return !1;
|
|
231
|
-
if (!(
|
|
232
|
-
if (e.params.keyboard.onlyInViewport && (
|
|
233
|
-
let
|
|
234
|
-
if (
|
|
233
|
+
if (!(d.shiftKey || d.altKey || d.ctrlKey || d.metaKey) && !(w.activeElement && w.activeElement.nodeName && (w.activeElement.nodeName.toLowerCase() === "input" || w.activeElement.nodeName.toLowerCase() === "textarea"))) {
|
|
234
|
+
if (e.params.keyboard.onlyInViewport && (t || r || p || n || a || h)) {
|
|
235
|
+
let M = !1;
|
|
236
|
+
if (se(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && se(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
235
237
|
return;
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
const W = [[k.left, k.top], [k.left + L, k.top], [k.left, k.top +
|
|
238
|
+
const g = e.el, L = g.clientWidth, x = g.clientHeight, b = T.innerWidth, X = T.innerHeight, k = Me(g);
|
|
239
|
+
v && (k.left -= g.scrollLeft);
|
|
240
|
+
const W = [[k.left, k.top], [k.left + L, k.top], [k.left, k.top + x], [k.left + L, k.top + x]];
|
|
239
241
|
for (let P = 0; P < W.length; P += 1) {
|
|
240
242
|
const z = W[P];
|
|
241
|
-
if (z[0] >= 0 && z[0] <=
|
|
243
|
+
if (z[0] >= 0 && z[0] <= b && z[1] >= 0 && z[1] <= X) {
|
|
242
244
|
if (z[0] === 0 && z[1] === 0) continue;
|
|
243
|
-
|
|
245
|
+
M = !0;
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
|
-
if (!
|
|
248
|
+
if (!M) return;
|
|
247
249
|
}
|
|
248
|
-
e.isHorizontal() ? ((
|
|
250
|
+
e.isHorizontal() ? ((t || r || p || n) && (d.preventDefault ? d.preventDefault() : d.returnValue = !1), ((r || n) && !v || (t || p) && v) && e.slideNext(), ((t || p) && !v || (r || n) && v) && e.slidePrev()) : ((t || r || a || h) && (d.preventDefault ? d.preventDefault() : d.returnValue = !1), (r || h) && e.slideNext(), (t || a) && e.slidePrev()), m("keyPress", u);
|
|
249
251
|
}
|
|
250
252
|
}
|
|
251
|
-
function
|
|
252
|
-
e.keyboard.enabled || (
|
|
253
|
+
function S() {
|
|
254
|
+
e.keyboard.enabled || (w.addEventListener("keydown", $), e.keyboard.enabled = !0);
|
|
253
255
|
}
|
|
254
|
-
function
|
|
255
|
-
e.keyboard.enabled && (
|
|
256
|
+
function f() {
|
|
257
|
+
e.keyboard.enabled && (w.removeEventListener("keydown", $), e.keyboard.enabled = !1);
|
|
256
258
|
}
|
|
257
259
|
l("init", () => {
|
|
258
|
-
e.params.keyboard.enabled &&
|
|
260
|
+
e.params.keyboard.enabled && S();
|
|
259
261
|
}), l("destroy", () => {
|
|
260
|
-
e.keyboard.enabled &&
|
|
262
|
+
e.keyboard.enabled && f();
|
|
261
263
|
}), Object.assign(e.keyboard, {
|
|
262
|
-
enable:
|
|
263
|
-
disable:
|
|
264
|
+
enable: S,
|
|
265
|
+
disable: f
|
|
264
266
|
});
|
|
265
267
|
}
|
|
266
|
-
function
|
|
267
|
-
return
|
|
268
|
-
if (!
|
|
269
|
-
let
|
|
270
|
-
|
|
268
|
+
function He(s, e, C, l) {
|
|
269
|
+
return s.params.createElements && Object.keys(l).forEach((m) => {
|
|
270
|
+
if (!C[m] && C.auto === !0) {
|
|
271
|
+
let w = he(s.el, `.${l[m]}`)[0];
|
|
272
|
+
w || (w = _e("div", l[m]), w.className = l[m], s.el.append(w)), C[m] = w, e[m] = w;
|
|
271
273
|
}
|
|
272
|
-
}),
|
|
274
|
+
}), C;
|
|
273
275
|
}
|
|
274
|
-
function
|
|
276
|
+
function it(s) {
|
|
275
277
|
let {
|
|
276
278
|
swiper: e,
|
|
277
|
-
extendParams:
|
|
279
|
+
extendParams: C,
|
|
278
280
|
on: l,
|
|
279
281
|
emit: m
|
|
280
|
-
} =
|
|
281
|
-
|
|
282
|
+
} = s;
|
|
283
|
+
C({
|
|
282
284
|
navigation: {
|
|
283
285
|
nextEl: null,
|
|
284
286
|
prevEl: null,
|
|
@@ -292,119 +294,119 @@ function Je(r) {
|
|
|
292
294
|
nextEl: null,
|
|
293
295
|
prevEl: null
|
|
294
296
|
};
|
|
295
|
-
function
|
|
296
|
-
let
|
|
297
|
-
return
|
|
297
|
+
function w(i) {
|
|
298
|
+
let t;
|
|
299
|
+
return i && typeof i == "string" && e.isElement && (t = e.el.querySelector(i) || e.hostEl.querySelector(i), t) ? t : (i && (typeof i == "string" && (t = [...document.querySelectorAll(i)]), e.params.uniqueNavElements && typeof i == "string" && t && t.length > 1 && e.el.querySelectorAll(i).length === 1 ? t = e.el.querySelector(i) : t && t.length === 1 && (t = t[0])), i && !t ? i : t);
|
|
298
300
|
}
|
|
299
|
-
function T(
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
function T(i, t) {
|
|
302
|
+
const r = e.params.navigation;
|
|
303
|
+
i = A(i), i.forEach((p) => {
|
|
304
|
+
p && (p.classList[t ? "add" : "remove"](...r.disabledClass.split(" ")), p.tagName === "BUTTON" && (p.disabled = t), e.params.watchOverflow && e.enabled && p.classList[e.isLocked ? "add" : "remove"](r.lockClass));
|
|
303
305
|
});
|
|
304
306
|
}
|
|
305
307
|
function $() {
|
|
306
308
|
const {
|
|
307
|
-
nextEl:
|
|
308
|
-
prevEl:
|
|
309
|
+
nextEl: i,
|
|
310
|
+
prevEl: t
|
|
309
311
|
} = e.navigation;
|
|
310
312
|
if (e.params.loop) {
|
|
311
|
-
T(
|
|
313
|
+
T(t, !1), T(i, !1);
|
|
312
314
|
return;
|
|
313
315
|
}
|
|
314
|
-
T(
|
|
316
|
+
T(t, e.isBeginning && !e.params.rewind), T(i, e.isEnd && !e.params.rewind);
|
|
315
317
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
318
|
+
function S(i) {
|
|
319
|
+
i.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), m("navigationPrev"));
|
|
318
320
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
321
|
+
function f(i) {
|
|
322
|
+
i.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), m("navigationNext"));
|
|
321
323
|
}
|
|
322
|
-
function
|
|
323
|
-
const
|
|
324
|
-
if (e.params.navigation =
|
|
324
|
+
function o() {
|
|
325
|
+
const i = e.params.navigation;
|
|
326
|
+
if (e.params.navigation = He(e, e.originalParams.navigation, e.params.navigation, {
|
|
325
327
|
nextEl: "swiper-button-next",
|
|
326
328
|
prevEl: "swiper-button-prev"
|
|
327
|
-
}), !(
|
|
328
|
-
let
|
|
329
|
+
}), !(i.nextEl || i.prevEl)) return;
|
|
330
|
+
let t = w(i.nextEl), r = w(i.prevEl);
|
|
329
331
|
Object.assign(e.navigation, {
|
|
330
|
-
nextEl:
|
|
331
|
-
prevEl:
|
|
332
|
-
}),
|
|
333
|
-
const
|
|
334
|
-
|
|
332
|
+
nextEl: t,
|
|
333
|
+
prevEl: r
|
|
334
|
+
}), t = A(t), r = A(r);
|
|
335
|
+
const p = (n, a) => {
|
|
336
|
+
n && n.addEventListener("click", a === "next" ? f : S), !e.enabled && n && n.classList.add(...i.lockClass.split(" "));
|
|
335
337
|
};
|
|
336
|
-
|
|
338
|
+
t.forEach((n) => p(n, "next")), r.forEach((n) => p(n, "prev"));
|
|
337
339
|
}
|
|
338
|
-
function
|
|
340
|
+
function v() {
|
|
339
341
|
let {
|
|
340
|
-
nextEl:
|
|
341
|
-
prevEl:
|
|
342
|
+
nextEl: i,
|
|
343
|
+
prevEl: t
|
|
342
344
|
} = e.navigation;
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
|
|
345
|
+
i = A(i), t = A(t);
|
|
346
|
+
const r = (p, n) => {
|
|
347
|
+
p.removeEventListener("click", n === "next" ? f : S), p.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
346
348
|
};
|
|
347
|
-
|
|
349
|
+
i.forEach((p) => r(p, "next")), t.forEach((p) => r(p, "prev"));
|
|
348
350
|
}
|
|
349
351
|
l("init", () => {
|
|
350
|
-
e.params.navigation.enabled === !1 ?
|
|
352
|
+
e.params.navigation.enabled === !1 ? u() : (o(), $());
|
|
351
353
|
}), l("toEdge fromEdge lock unlock", () => {
|
|
352
354
|
$();
|
|
353
355
|
}), l("destroy", () => {
|
|
354
|
-
|
|
356
|
+
v();
|
|
355
357
|
}), l("enable disable", () => {
|
|
356
358
|
let {
|
|
357
|
-
nextEl:
|
|
358
|
-
prevEl:
|
|
359
|
+
nextEl: i,
|
|
360
|
+
prevEl: t
|
|
359
361
|
} = e.navigation;
|
|
360
|
-
if (
|
|
362
|
+
if (i = A(i), t = A(t), e.enabled) {
|
|
361
363
|
$();
|
|
362
364
|
return;
|
|
363
365
|
}
|
|
364
|
-
[...
|
|
365
|
-
}), l("click", (
|
|
366
|
+
[...i, ...t].filter((r) => !!r).forEach((r) => r.classList.add(e.params.navigation.lockClass));
|
|
367
|
+
}), l("click", (i, t) => {
|
|
366
368
|
let {
|
|
367
|
-
nextEl:
|
|
368
|
-
prevEl:
|
|
369
|
+
nextEl: r,
|
|
370
|
+
prevEl: p
|
|
369
371
|
} = e.navigation;
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
let
|
|
373
|
-
if (e.isElement && !
|
|
374
|
-
const
|
|
375
|
-
|
|
372
|
+
r = A(r), p = A(p);
|
|
373
|
+
const n = t.target;
|
|
374
|
+
let a = p.includes(n) || r.includes(n);
|
|
375
|
+
if (e.isElement && !a) {
|
|
376
|
+
const h = t.path || t.composedPath && t.composedPath();
|
|
377
|
+
h && (a = h.find((M) => r.includes(M) || p.includes(M)));
|
|
376
378
|
}
|
|
377
|
-
if (e.params.navigation.hideOnClick && !
|
|
378
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el ===
|
|
379
|
-
let
|
|
380
|
-
|
|
379
|
+
if (e.params.navigation.hideOnClick && !a) {
|
|
380
|
+
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === n || e.pagination.el.contains(n))) return;
|
|
381
|
+
let h;
|
|
382
|
+
r.length ? h = r[0].classList.contains(e.params.navigation.hiddenClass) : p.length && (h = p[0].classList.contains(e.params.navigation.hiddenClass)), m(h === !0 ? "navigationShow" : "navigationHide"), [...r, ...p].filter((M) => !!M).forEach((M) => M.classList.toggle(e.params.navigation.hiddenClass));
|
|
381
383
|
}
|
|
382
384
|
});
|
|
383
|
-
const
|
|
384
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),
|
|
385
|
-
},
|
|
386
|
-
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),
|
|
385
|
+
const d = () => {
|
|
386
|
+
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), o(), $();
|
|
387
|
+
}, u = () => {
|
|
388
|
+
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), v();
|
|
387
389
|
};
|
|
388
390
|
Object.assign(e.navigation, {
|
|
389
|
-
enable:
|
|
390
|
-
disable:
|
|
391
|
+
enable: d,
|
|
392
|
+
disable: u,
|
|
391
393
|
update: $,
|
|
392
|
-
init:
|
|
393
|
-
destroy:
|
|
394
|
+
init: o,
|
|
395
|
+
destroy: v
|
|
394
396
|
});
|
|
395
397
|
}
|
|
396
|
-
function
|
|
397
|
-
return
|
|
398
|
+
function ue(s) {
|
|
399
|
+
return s === void 0 && (s = ""), `.${s.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
398
400
|
}
|
|
399
|
-
function
|
|
401
|
+
function nt(s) {
|
|
400
402
|
let {
|
|
401
403
|
swiper: e,
|
|
402
|
-
extendParams:
|
|
404
|
+
extendParams: C,
|
|
403
405
|
on: l,
|
|
404
406
|
emit: m
|
|
405
|
-
} =
|
|
406
|
-
const
|
|
407
|
-
|
|
407
|
+
} = s;
|
|
408
|
+
const w = "swiper-pagination";
|
|
409
|
+
C({
|
|
408
410
|
pagination: {
|
|
409
411
|
el: null,
|
|
410
412
|
bulletElement: "span",
|
|
@@ -419,218 +421,219 @@ function Qe(r) {
|
|
|
419
421
|
// 'bullets' or 'progressbar' or 'fraction' or 'custom'
|
|
420
422
|
dynamicBullets: !1,
|
|
421
423
|
dynamicMainBullets: 1,
|
|
422
|
-
formatFractionCurrent: (
|
|
423
|
-
formatFractionTotal: (
|
|
424
|
-
bulletClass: `${
|
|
425
|
-
bulletActiveClass: `${
|
|
426
|
-
modifierClass: `${
|
|
427
|
-
currentClass: `${
|
|
428
|
-
totalClass: `${
|
|
429
|
-
hiddenClass: `${
|
|
430
|
-
progressbarFillClass: `${
|
|
431
|
-
progressbarOppositeClass: `${
|
|
432
|
-
clickableClass: `${
|
|
433
|
-
lockClass: `${
|
|
434
|
-
horizontalClass: `${
|
|
435
|
-
verticalClass: `${
|
|
436
|
-
paginationDisabledClass: `${
|
|
424
|
+
formatFractionCurrent: (n) => n,
|
|
425
|
+
formatFractionTotal: (n) => n,
|
|
426
|
+
bulletClass: `${w}-bullet`,
|
|
427
|
+
bulletActiveClass: `${w}-bullet-active`,
|
|
428
|
+
modifierClass: `${w}-`,
|
|
429
|
+
currentClass: `${w}-current`,
|
|
430
|
+
totalClass: `${w}-total`,
|
|
431
|
+
hiddenClass: `${w}-hidden`,
|
|
432
|
+
progressbarFillClass: `${w}-progressbar-fill`,
|
|
433
|
+
progressbarOppositeClass: `${w}-progressbar-opposite`,
|
|
434
|
+
clickableClass: `${w}-clickable`,
|
|
435
|
+
lockClass: `${w}-lock`,
|
|
436
|
+
horizontalClass: `${w}-horizontal`,
|
|
437
|
+
verticalClass: `${w}-vertical`,
|
|
438
|
+
paginationDisabledClass: `${w}-disabled`
|
|
437
439
|
}
|
|
438
440
|
}), e.pagination = {
|
|
439
441
|
el: null,
|
|
440
442
|
bullets: []
|
|
441
443
|
};
|
|
442
444
|
let T, $ = 0;
|
|
443
|
-
function
|
|
445
|
+
function S() {
|
|
444
446
|
return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
445
447
|
}
|
|
446
|
-
function
|
|
448
|
+
function f(n, a) {
|
|
447
449
|
const {
|
|
448
|
-
bulletActiveClass:
|
|
450
|
+
bulletActiveClass: h
|
|
449
451
|
} = e.params.pagination;
|
|
450
|
-
|
|
452
|
+
n && (n = n[`${a === "prev" ? "previous" : "next"}ElementSibling`], n && (n.classList.add(`${h}-${a}`), n = n[`${a === "prev" ? "previous" : "next"}ElementSibling`], n && n.classList.add(`${h}-${a}-${a}`)));
|
|
451
453
|
}
|
|
452
|
-
function
|
|
453
|
-
if (
|
|
454
|
+
function o(n, a, h) {
|
|
455
|
+
if (n = n % h, a = a % h, a === n + 1)
|
|
454
456
|
return "next";
|
|
455
|
-
if (
|
|
457
|
+
if (a === n - 1)
|
|
456
458
|
return "previous";
|
|
457
459
|
}
|
|
458
|
-
function
|
|
459
|
-
const
|
|
460
|
-
if (!
|
|
460
|
+
function v(n) {
|
|
461
|
+
const a = n.target.closest(ue(e.params.pagination.bulletClass));
|
|
462
|
+
if (!a)
|
|
461
463
|
return;
|
|
462
|
-
|
|
463
|
-
const
|
|
464
|
+
n.preventDefault();
|
|
465
|
+
const h = We(a) * e.params.slidesPerGroup;
|
|
464
466
|
if (e.params.loop) {
|
|
465
|
-
if (e.realIndex ===
|
|
466
|
-
const
|
|
467
|
-
|
|
467
|
+
if (e.realIndex === h) return;
|
|
468
|
+
const M = o(e.realIndex, h, e.slides.length);
|
|
469
|
+
M === "next" ? e.slideNext() : M === "previous" ? e.slidePrev() : e.slideToLoop(h);
|
|
468
470
|
} else
|
|
469
|
-
e.slideTo(
|
|
471
|
+
e.slideTo(h);
|
|
470
472
|
}
|
|
471
|
-
function
|
|
472
|
-
const
|
|
473
|
-
if (
|
|
474
|
-
let
|
|
475
|
-
|
|
476
|
-
let
|
|
477
|
-
const L = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length,
|
|
478
|
-
if (e.params.loop ? (
|
|
479
|
-
const
|
|
480
|
-
let
|
|
481
|
-
if (
|
|
482
|
-
P.style[e.isHorizontal() ? "width" : "height"] = `${T * (
|
|
483
|
-
}),
|
|
484
|
-
const z = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((
|
|
473
|
+
function d() {
|
|
474
|
+
const n = e.rtl, a = e.params.pagination;
|
|
475
|
+
if (S()) return;
|
|
476
|
+
let h = e.pagination.el;
|
|
477
|
+
h = A(h);
|
|
478
|
+
let M, g;
|
|
479
|
+
const L = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, x = e.params.loop ? Math.ceil(L / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
480
|
+
if (e.params.loop ? (g = e.previousRealIndex || 0, M = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (M = e.snapIndex, g = e.previousSnapIndex) : (g = e.previousIndex || 0, M = e.activeIndex || 0), a.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
481
|
+
const b = e.pagination.bullets;
|
|
482
|
+
let X, k, W;
|
|
483
|
+
if (a.dynamicBullets && (T = et(b[0], e.isHorizontal() ? "width" : "height"), h.forEach((P) => {
|
|
484
|
+
P.style[e.isHorizontal() ? "width" : "height"] = `${T * (a.dynamicMainBullets + 4)}px`;
|
|
485
|
+
}), a.dynamicMainBullets > 1 && g !== void 0 && ($ += M - (g || 0), $ > a.dynamicMainBullets - 1 ? $ = a.dynamicMainBullets - 1 : $ < 0 && ($ = 0)), X = Math.max(M - $, 0), k = X + (Math.min(b.length, a.dynamicMainBullets) - 1), W = (k + X) / 2), b.forEach((P) => {
|
|
486
|
+
const z = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((D) => `${a.bulletActiveClass}${D}`)].map((D) => typeof D == "string" && D.includes(" ") ? D.split(" ") : D).flat();
|
|
485
487
|
P.classList.remove(...z);
|
|
486
|
-
}),
|
|
487
|
-
|
|
488
|
-
const z =
|
|
489
|
-
z ===
|
|
488
|
+
}), h.length > 1)
|
|
489
|
+
b.forEach((P) => {
|
|
490
|
+
const z = We(P);
|
|
491
|
+
z === M ? P.classList.add(...a.bulletActiveClass.split(" ")) : e.isElement && P.setAttribute("part", "bullet"), a.dynamicBullets && (z >= X && z <= k && P.classList.add(...`${a.bulletActiveClass}-main`.split(" ")), z === X && f(P, "prev"), z === k && f(P, "next"));
|
|
490
492
|
});
|
|
491
493
|
else {
|
|
492
|
-
const P =
|
|
493
|
-
if (P && P.classList.add(...
|
|
494
|
-
z.setAttribute("part",
|
|
495
|
-
}),
|
|
496
|
-
const z =
|
|
497
|
-
for (let
|
|
498
|
-
|
|
499
|
-
|
|
494
|
+
const P = b[M];
|
|
495
|
+
if (P && P.classList.add(...a.bulletActiveClass.split(" ")), e.isElement && b.forEach((z, D) => {
|
|
496
|
+
z.setAttribute("part", D === M ? "bullet-active" : "bullet");
|
|
497
|
+
}), a.dynamicBullets) {
|
|
498
|
+
const z = b[X], D = b[k];
|
|
499
|
+
for (let I = X; I <= k; I += 1)
|
|
500
|
+
b[I] && b[I].classList.add(...`${a.bulletActiveClass}-main`.split(" "));
|
|
501
|
+
f(z, "prev"), f(D, "next");
|
|
500
502
|
}
|
|
501
503
|
}
|
|
502
|
-
if (
|
|
503
|
-
const P = Math.min(
|
|
504
|
-
|
|
505
|
-
|
|
504
|
+
if (a.dynamicBullets) {
|
|
505
|
+
const P = Math.min(b.length, a.dynamicMainBullets + 4), z = (T * P - T) / 2 - W * T, D = n ? "right" : "left";
|
|
506
|
+
b.forEach((I) => {
|
|
507
|
+
I.style[e.isHorizontal() ? D : "top"] = `${z}px`;
|
|
506
508
|
});
|
|
507
509
|
}
|
|
508
510
|
}
|
|
509
|
-
|
|
510
|
-
if (
|
|
511
|
-
k.textContent =
|
|
512
|
-
}),
|
|
513
|
-
k.textContent =
|
|
514
|
-
})),
|
|
511
|
+
h.forEach((b, X) => {
|
|
512
|
+
if (a.type === "fraction" && (b.querySelectorAll(ue(a.currentClass)).forEach((k) => {
|
|
513
|
+
k.textContent = a.formatFractionCurrent(M + 1);
|
|
514
|
+
}), b.querySelectorAll(ue(a.totalClass)).forEach((k) => {
|
|
515
|
+
k.textContent = a.formatFractionTotal(x);
|
|
516
|
+
})), a.type === "progressbar") {
|
|
515
517
|
let k;
|
|
516
|
-
|
|
517
|
-
const W = (
|
|
518
|
+
a.progressbarOpposite ? k = e.isHorizontal() ? "vertical" : "horizontal" : k = e.isHorizontal() ? "horizontal" : "vertical";
|
|
519
|
+
const W = (M + 1) / x;
|
|
518
520
|
let P = 1, z = 1;
|
|
519
|
-
k === "horizontal" ? P = W : z = W,
|
|
520
|
-
|
|
521
|
+
k === "horizontal" ? P = W : z = W, b.querySelectorAll(ue(a.progressbarFillClass)).forEach((D) => {
|
|
522
|
+
D.style.transform = `translate3d(0,0,0) scaleX(${P}) scaleY(${z})`, D.style.transitionDuration = `${e.params.speed}ms`;
|
|
521
523
|
});
|
|
522
524
|
}
|
|
523
|
-
|
|
525
|
+
a.type === "custom" && a.renderCustom ? (b.innerHTML = a.renderCustom(e, M + 1, x), X === 0 && m("paginationRender", b)) : (X === 0 && m("paginationRender", b), m("paginationUpdate", b)), e.params.watchOverflow && e.enabled && b.classList[e.isLocked ? "add" : "remove"](a.lockClass);
|
|
524
526
|
});
|
|
525
527
|
}
|
|
526
|
-
function
|
|
527
|
-
const
|
|
528
|
-
if (
|
|
529
|
-
const
|
|
530
|
-
let
|
|
531
|
-
|
|
532
|
-
let
|
|
533
|
-
if (
|
|
534
|
-
let
|
|
535
|
-
e.params.freeMode && e.params.freeMode.enabled &&
|
|
536
|
-
for (let L = 0; L <
|
|
537
|
-
|
|
528
|
+
function u() {
|
|
529
|
+
const n = e.params.pagination;
|
|
530
|
+
if (S()) return;
|
|
531
|
+
const a = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
|
|
532
|
+
let h = e.pagination.el;
|
|
533
|
+
h = A(h);
|
|
534
|
+
let M = "";
|
|
535
|
+
if (n.type === "bullets") {
|
|
536
|
+
let g = e.params.loop ? Math.ceil(a / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
537
|
+
e.params.freeMode && e.params.freeMode.enabled && g > a && (g = a);
|
|
538
|
+
for (let L = 0; L < g; L += 1)
|
|
539
|
+
n.renderBullet ? M += n.renderBullet.call(e, L, n.bulletClass) : M += `<${n.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${n.bulletClass}"></${n.bulletElement}>`;
|
|
538
540
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}),
|
|
541
|
+
n.type === "fraction" && (n.renderFraction ? M = n.renderFraction.call(e, n.currentClass, n.totalClass) : M = `<span class="${n.currentClass}"></span> / <span class="${n.totalClass}"></span>`), n.type === "progressbar" && (n.renderProgressbar ? M = n.renderProgressbar.call(e, n.progressbarFillClass) : M = `<span class="${n.progressbarFillClass}"></span>`), e.pagination.bullets = [], h.forEach((g) => {
|
|
542
|
+
n.type !== "custom" && (g.innerHTML = M || ""), n.type === "bullets" && e.pagination.bullets.push(...g.querySelectorAll(ue(n.bulletClass)));
|
|
543
|
+
}), n.type !== "custom" && m("paginationRender", h[0]);
|
|
542
544
|
}
|
|
543
|
-
function
|
|
544
|
-
e.params.pagination =
|
|
545
|
+
function i() {
|
|
546
|
+
e.params.pagination = He(e, e.originalParams.pagination, e.params.pagination, {
|
|
545
547
|
el: "swiper-pagination"
|
|
546
548
|
});
|
|
547
|
-
const
|
|
548
|
-
if (!
|
|
549
|
-
let
|
|
550
|
-
typeof
|
|
551
|
-
el:
|
|
552
|
-
}),
|
|
553
|
-
|
|
549
|
+
const n = e.params.pagination;
|
|
550
|
+
if (!n.el) return;
|
|
551
|
+
let a;
|
|
552
|
+
typeof n.el == "string" && e.isElement && (a = e.el.querySelector(n.el)), !a && typeof n.el == "string" && (a = [...document.querySelectorAll(n.el)]), a || (a = n.el), !(!a || a.length === 0) && (e.params.uniqueNavElements && typeof n.el == "string" && Array.isArray(a) && a.length > 1 && (a = [...e.el.querySelectorAll(n.el)], a.length > 1 && (a = a.find((h) => se(h, ".swiper")[0] === e.el))), Array.isArray(a) && a.length === 1 && (a = a[0]), Object.assign(e.pagination, {
|
|
553
|
+
el: a
|
|
554
|
+
}), a = A(a), a.forEach((h) => {
|
|
555
|
+
n.type === "bullets" && n.clickable && h.classList.add(...(n.clickableClass || "").split(" ")), h.classList.add(n.modifierClass + n.type), h.classList.add(e.isHorizontal() ? n.horizontalClass : n.verticalClass), n.type === "bullets" && n.dynamicBullets && (h.classList.add(`${n.modifierClass}${n.type}-dynamic`), $ = 0, n.dynamicMainBullets < 1 && (n.dynamicMainBullets = 1)), n.type === "progressbar" && n.progressbarOpposite && h.classList.add(n.progressbarOppositeClass), n.clickable && h.addEventListener("click", v), e.enabled || h.classList.add(n.lockClass);
|
|
554
556
|
}));
|
|
555
557
|
}
|
|
556
|
-
function
|
|
557
|
-
const
|
|
558
|
-
if (
|
|
559
|
-
let
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
})), e.pagination.bullets && e.pagination.bullets.forEach((
|
|
558
|
+
function t() {
|
|
559
|
+
const n = e.params.pagination;
|
|
560
|
+
if (S()) return;
|
|
561
|
+
let a = e.pagination.el;
|
|
562
|
+
a && (a = A(a), a.forEach((h) => {
|
|
563
|
+
h.classList.remove(n.hiddenClass), h.classList.remove(n.modifierClass + n.type), h.classList.remove(e.isHorizontal() ? n.horizontalClass : n.verticalClass), n.clickable && (h.classList.remove(...(n.clickableClass || "").split(" ")), h.removeEventListener("click", v));
|
|
564
|
+
})), e.pagination.bullets && e.pagination.bullets.forEach((h) => h.classList.remove(...n.bulletActiveClass.split(" ")));
|
|
563
565
|
}
|
|
564
566
|
l("changeDirection", () => {
|
|
565
567
|
if (!e.pagination || !e.pagination.el) return;
|
|
566
|
-
const
|
|
568
|
+
const n = e.params.pagination;
|
|
567
569
|
let {
|
|
568
|
-
el:
|
|
570
|
+
el: a
|
|
569
571
|
} = e.pagination;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
+
a = A(a), a.forEach((h) => {
|
|
573
|
+
h.classList.remove(n.horizontalClass, n.verticalClass), h.classList.add(e.isHorizontal() ? n.horizontalClass : n.verticalClass);
|
|
572
574
|
});
|
|
573
575
|
}), l("init", () => {
|
|
574
|
-
e.params.pagination.enabled === !1 ?
|
|
576
|
+
e.params.pagination.enabled === !1 ? p() : (i(), u(), d());
|
|
575
577
|
}), l("activeIndexChange", () => {
|
|
576
|
-
typeof e.snapIndex > "u" &&
|
|
578
|
+
typeof e.snapIndex > "u" && d();
|
|
577
579
|
}), l("snapIndexChange", () => {
|
|
578
|
-
|
|
580
|
+
d();
|
|
579
581
|
}), l("snapGridLengthChange", () => {
|
|
580
|
-
|
|
582
|
+
u(), d();
|
|
581
583
|
}), l("destroy", () => {
|
|
582
|
-
|
|
584
|
+
t();
|
|
583
585
|
}), l("enable disable", () => {
|
|
584
586
|
let {
|
|
585
|
-
el:
|
|
587
|
+
el: n
|
|
586
588
|
} = e.pagination;
|
|
587
|
-
|
|
589
|
+
n && (n = A(n), n.forEach((a) => a.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
|
|
588
590
|
}), l("lock unlock", () => {
|
|
589
|
-
|
|
590
|
-
}), l("click", (
|
|
591
|
-
const
|
|
592
|
-
if (e.params.pagination.el && e.params.pagination.hideOnClick &&
|
|
593
|
-
if (e.navigation && (e.navigation.nextEl &&
|
|
594
|
-
const
|
|
595
|
-
m(
|
|
591
|
+
d();
|
|
592
|
+
}), l("click", (n, a) => {
|
|
593
|
+
const h = a.target, M = A(e.pagination.el);
|
|
594
|
+
if (e.params.pagination.el && e.params.pagination.hideOnClick && M && M.length > 0 && !h.classList.contains(e.params.pagination.bulletClass)) {
|
|
595
|
+
if (e.navigation && (e.navigation.nextEl && h === e.navigation.nextEl || e.navigation.prevEl && h === e.navigation.prevEl)) return;
|
|
596
|
+
const g = M[0].classList.contains(e.params.pagination.hiddenClass);
|
|
597
|
+
m(g === !0 ? "paginationShow" : "paginationHide"), M.forEach((L) => L.classList.toggle(e.params.pagination.hiddenClass));
|
|
596
598
|
}
|
|
597
599
|
});
|
|
598
|
-
const
|
|
600
|
+
const r = () => {
|
|
599
601
|
e.el.classList.remove(e.params.pagination.paginationDisabledClass);
|
|
600
602
|
let {
|
|
601
|
-
el:
|
|
603
|
+
el: n
|
|
602
604
|
} = e.pagination;
|
|
603
|
-
|
|
604
|
-
},
|
|
605
|
+
n && (n = A(n), n.forEach((a) => a.classList.remove(e.params.pagination.paginationDisabledClass))), i(), u(), d();
|
|
606
|
+
}, p = () => {
|
|
605
607
|
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
606
608
|
let {
|
|
607
|
-
el:
|
|
609
|
+
el: n
|
|
608
610
|
} = e.pagination;
|
|
609
|
-
|
|
611
|
+
n && (n = A(n), n.forEach((a) => a.classList.add(e.params.pagination.paginationDisabledClass))), t();
|
|
610
612
|
};
|
|
611
613
|
Object.assign(e.pagination, {
|
|
612
|
-
enable:
|
|
613
|
-
disable:
|
|
614
|
-
render:
|
|
615
|
-
update:
|
|
616
|
-
init:
|
|
617
|
-
destroy:
|
|
614
|
+
enable: r,
|
|
615
|
+
disable: p,
|
|
616
|
+
render: u,
|
|
617
|
+
update: d,
|
|
618
|
+
init: i,
|
|
619
|
+
destroy: t
|
|
618
620
|
});
|
|
619
621
|
}
|
|
620
|
-
function
|
|
622
|
+
function at(s) {
|
|
621
623
|
let {
|
|
622
624
|
swiper: e,
|
|
623
|
-
extendParams:
|
|
625
|
+
extendParams: C,
|
|
624
626
|
on: l,
|
|
625
627
|
emit: m
|
|
626
|
-
} =
|
|
627
|
-
const
|
|
628
|
-
|
|
628
|
+
} = s;
|
|
629
|
+
const w = ee();
|
|
630
|
+
C({
|
|
629
631
|
zoom: {
|
|
630
632
|
enabled: !1,
|
|
631
633
|
limitToOriginalSize: !1,
|
|
632
634
|
maxRatio: 3,
|
|
633
635
|
minRatio: 1,
|
|
636
|
+
panOnMouseMove: !1,
|
|
634
637
|
toggle: !0,
|
|
635
638
|
containerClass: "swiper-zoom-container",
|
|
636
639
|
zoomedSlideClass: "swiper-slide-zoomed"
|
|
@@ -638,8 +641,13 @@ function _e(r) {
|
|
|
638
641
|
}), e.zoom = {
|
|
639
642
|
enabled: !1
|
|
640
643
|
};
|
|
641
|
-
let T = 1, $ = !1,
|
|
642
|
-
|
|
644
|
+
let T = 1, $ = !1, S = !1, f = {
|
|
645
|
+
x: 0,
|
|
646
|
+
y: 0
|
|
647
|
+
};
|
|
648
|
+
const o = -3;
|
|
649
|
+
let v, d;
|
|
650
|
+
const u = [], i = {
|
|
643
651
|
originX: 0,
|
|
644
652
|
originY: 0,
|
|
645
653
|
slideEl: void 0,
|
|
@@ -663,244 +671,266 @@ function _e(r) {
|
|
|
663
671
|
startY: void 0,
|
|
664
672
|
touchesStart: {},
|
|
665
673
|
touchesCurrent: {}
|
|
666
|
-
},
|
|
674
|
+
}, r = {
|
|
667
675
|
x: void 0,
|
|
668
676
|
y: void 0,
|
|
669
677
|
prevPositionX: void 0,
|
|
670
678
|
prevPositionY: void 0,
|
|
671
679
|
prevTime: void 0
|
|
672
680
|
};
|
|
673
|
-
let
|
|
681
|
+
let p = 1;
|
|
674
682
|
Object.defineProperty(e.zoom, "scale", {
|
|
675
683
|
get() {
|
|
676
|
-
return
|
|
684
|
+
return p;
|
|
677
685
|
},
|
|
678
|
-
set(
|
|
679
|
-
if (
|
|
680
|
-
const
|
|
681
|
-
m("zoomChange",
|
|
686
|
+
set(c) {
|
|
687
|
+
if (p !== c) {
|
|
688
|
+
const E = i.imageEl, y = i.slideEl;
|
|
689
|
+
m("zoomChange", c, E, y);
|
|
682
690
|
}
|
|
683
|
-
|
|
691
|
+
p = c;
|
|
684
692
|
}
|
|
685
693
|
});
|
|
686
|
-
function
|
|
687
|
-
if (
|
|
688
|
-
const
|
|
689
|
-
return Math.sqrt((
|
|
694
|
+
function n() {
|
|
695
|
+
if (u.length < 2) return 1;
|
|
696
|
+
const c = u[0].pageX, E = u[0].pageY, y = u[1].pageX, O = u[1].pageY;
|
|
697
|
+
return Math.sqrt((y - c) ** 2 + (O - E) ** 2);
|
|
690
698
|
}
|
|
691
|
-
function
|
|
692
|
-
const
|
|
693
|
-
if (
|
|
694
|
-
const
|
|
695
|
-
return Math.min(
|
|
699
|
+
function a() {
|
|
700
|
+
const c = e.params.zoom, E = i.imageWrapEl.getAttribute("data-swiper-zoom") || c.maxRatio;
|
|
701
|
+
if (c.limitToOriginalSize && i.imageEl && i.imageEl.naturalWidth) {
|
|
702
|
+
const y = i.imageEl.naturalWidth / i.imageEl.offsetWidth;
|
|
703
|
+
return Math.min(y, E);
|
|
696
704
|
}
|
|
697
|
-
return
|
|
705
|
+
return E;
|
|
698
706
|
}
|
|
699
|
-
function
|
|
700
|
-
if (
|
|
707
|
+
function h() {
|
|
708
|
+
if (u.length < 2) return {
|
|
701
709
|
x: null,
|
|
702
710
|
y: null
|
|
703
711
|
};
|
|
704
|
-
const
|
|
705
|
-
return [(
|
|
712
|
+
const c = i.imageEl.getBoundingClientRect();
|
|
713
|
+
return [(u[0].pageX + (u[1].pageX - u[0].pageX) / 2 - c.x - w.scrollX) / T, (u[0].pageY + (u[1].pageY - u[0].pageY) / 2 - c.y - w.scrollY) / T];
|
|
706
714
|
}
|
|
707
|
-
function
|
|
715
|
+
function M() {
|
|
708
716
|
return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
|
|
709
717
|
}
|
|
710
|
-
function
|
|
711
|
-
const
|
|
712
|
-
return !!(
|
|
718
|
+
function g(c) {
|
|
719
|
+
const E = M();
|
|
720
|
+
return !!(c.target.matches(E) || e.slides.filter((y) => y.contains(c.target)).length > 0);
|
|
713
721
|
}
|
|
714
|
-
function
|
|
715
|
-
const
|
|
716
|
-
return !!(
|
|
722
|
+
function L(c) {
|
|
723
|
+
const E = `.${e.params.zoom.containerClass}`;
|
|
724
|
+
return !!(c.target.matches(E) || [...e.hostEl.querySelectorAll(E)].filter((y) => y.contains(c.target)).length > 0);
|
|
717
725
|
}
|
|
718
|
-
function
|
|
719
|
-
if (
|
|
720
|
-
const
|
|
721
|
-
if (
|
|
722
|
-
if (
|
|
723
|
-
i.slideEl =
|
|
724
|
-
let
|
|
725
|
-
if (
|
|
726
|
+
function x(c) {
|
|
727
|
+
if (c.pointerType === "mouse" && u.splice(0, u.length), !g(c)) return;
|
|
728
|
+
const E = e.params.zoom;
|
|
729
|
+
if (v = !1, d = !1, u.push(c), !(u.length < 2)) {
|
|
730
|
+
if (v = !0, i.scaleStart = n(), !i.slideEl) {
|
|
731
|
+
i.slideEl = c.target.closest(`.${e.params.slideClass}, swiper-slide`), i.slideEl || (i.slideEl = e.slides[e.activeIndex]);
|
|
732
|
+
let y = i.slideEl.querySelector(`.${E.containerClass}`);
|
|
733
|
+
if (y && (y = y.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = y, y ? i.imageWrapEl = se(i.imageEl, `.${E.containerClass}`)[0] : i.imageWrapEl = void 0, !i.imageWrapEl) {
|
|
726
734
|
i.imageEl = void 0;
|
|
727
735
|
return;
|
|
728
736
|
}
|
|
729
|
-
i.maxRatio =
|
|
737
|
+
i.maxRatio = a();
|
|
730
738
|
}
|
|
731
739
|
if (i.imageEl) {
|
|
732
|
-
const [
|
|
733
|
-
i.originX =
|
|
740
|
+
const [y, O] = h();
|
|
741
|
+
i.originX = y, i.originY = O, i.imageEl.style.transitionDuration = "0ms";
|
|
734
742
|
}
|
|
735
743
|
$ = !0;
|
|
736
744
|
}
|
|
737
745
|
}
|
|
738
|
-
function
|
|
739
|
-
if (!
|
|
740
|
-
const
|
|
741
|
-
|
|
746
|
+
function b(c) {
|
|
747
|
+
if (!g(c)) return;
|
|
748
|
+
const E = e.params.zoom, y = e.zoom, O = u.findIndex((B) => B.pointerId === c.pointerId);
|
|
749
|
+
O >= 0 && (u[O] = c), !(u.length < 2) && (d = !0, i.scaleMove = n(), i.imageEl && (y.scale = i.scaleMove / i.scaleStart * T, y.scale > i.maxRatio && (y.scale = i.maxRatio - 1 + (y.scale - i.maxRatio + 1) ** 0.5), y.scale < E.minRatio && (y.scale = E.minRatio + 1 - (E.minRatio - y.scale + 1) ** 0.5), i.imageEl.style.transform = `translate3d(0,0,0) scale(${y.scale})`));
|
|
742
750
|
}
|
|
743
|
-
function
|
|
744
|
-
if (!
|
|
745
|
-
const
|
|
746
|
-
|
|
751
|
+
function X(c) {
|
|
752
|
+
if (!g(c) || c.pointerType === "mouse" && c.type === "pointerout") return;
|
|
753
|
+
const E = e.params.zoom, y = e.zoom, O = u.findIndex((B) => B.pointerId === c.pointerId);
|
|
754
|
+
O >= 0 && u.splice(O, 1), !(!v || !d) && (v = !1, d = !1, i.imageEl && (y.scale = Math.max(Math.min(y.scale, i.maxRatio), E.minRatio), i.imageEl.style.transitionDuration = `${e.params.speed}ms`, i.imageEl.style.transform = `translate3d(0,0,0) scale(${y.scale})`, T = y.scale, $ = !1, y.scale > 1 && i.slideEl ? i.slideEl.classList.add(`${E.zoomedSlideClass}`) : y.scale <= 1 && i.slideEl && i.slideEl.classList.remove(`${E.zoomedSlideClass}`), y.scale === 1 && (i.originX = 0, i.originY = 0, i.slideEl = void 0)));
|
|
747
755
|
}
|
|
748
|
-
let
|
|
749
|
-
function
|
|
756
|
+
let k;
|
|
757
|
+
function W() {
|
|
750
758
|
e.touchEventsData.preventTouchMoveFromPointerMove = !1;
|
|
751
759
|
}
|
|
752
|
-
function
|
|
753
|
-
clearTimeout(
|
|
754
|
-
e.destroyed ||
|
|
760
|
+
function P() {
|
|
761
|
+
clearTimeout(k), e.touchEventsData.preventTouchMoveFromPointerMove = !0, k = setTimeout(() => {
|
|
762
|
+
e.destroyed || W();
|
|
755
763
|
});
|
|
756
764
|
}
|
|
757
|
-
function
|
|
758
|
-
const
|
|
765
|
+
function z(c) {
|
|
766
|
+
const E = e.device;
|
|
759
767
|
if (!i.imageEl || t.isTouched) return;
|
|
760
|
-
|
|
761
|
-
const
|
|
762
|
-
t.touchesStart.x =
|
|
768
|
+
E.android && c.cancelable && c.preventDefault(), t.isTouched = !0;
|
|
769
|
+
const y = u.length > 0 ? u[0] : c;
|
|
770
|
+
t.touchesStart.x = y.pageX, t.touchesStart.y = y.pageY;
|
|
763
771
|
}
|
|
764
|
-
function
|
|
765
|
-
|
|
772
|
+
function D(c) {
|
|
773
|
+
const y = c.pointerType === "mouse" && e.params.zoom.panOnMouseMove;
|
|
774
|
+
if (!g(c) || !L(c))
|
|
766
775
|
return;
|
|
767
|
-
const
|
|
768
|
-
if (!i.imageEl
|
|
776
|
+
const O = e.zoom;
|
|
777
|
+
if (!i.imageEl)
|
|
769
778
|
return;
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
779
|
+
if (!t.isTouched || !i.slideEl) {
|
|
780
|
+
y && Y(c);
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
if (y) {
|
|
784
|
+
Y(c);
|
|
785
|
+
return;
|
|
786
|
+
}
|
|
787
|
+
t.isMoved || (t.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, t.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, t.startX = Ae(i.imageWrapEl, "x") || 0, t.startY = Ae(i.imageWrapEl, "y") || 0, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight, i.imageWrapEl.style.transitionDuration = "0ms");
|
|
788
|
+
const B = t.width * O.scale, U = t.height * O.scale;
|
|
789
|
+
if (t.minX = Math.min(i.slideWidth / 2 - B / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - U / 2, 0), t.maxY = -t.minY, t.touchesCurrent.x = u.length > 0 ? u[0].pageX : c.pageX, t.touchesCurrent.y = u.length > 0 ? u[0].pageY : c.pageY, Math.max(Math.abs(t.touchesCurrent.x - t.touchesStart.x), Math.abs(t.touchesCurrent.y - t.touchesStart.y)) > 5 && (e.allowClick = !1), !t.isMoved && !$) {
|
|
773
790
|
if (e.isHorizontal() && (Math.floor(t.minX) === Math.floor(t.startX) && t.touchesCurrent.x < t.touchesStart.x || Math.floor(t.maxX) === Math.floor(t.startX) && t.touchesCurrent.x > t.touchesStart.x)) {
|
|
774
|
-
t.isTouched = !1,
|
|
791
|
+
t.isTouched = !1, W();
|
|
775
792
|
return;
|
|
776
793
|
}
|
|
777
794
|
if (!e.isHorizontal() && (Math.floor(t.minY) === Math.floor(t.startY) && t.touchesCurrent.y < t.touchesStart.y || Math.floor(t.maxY) === Math.floor(t.startY) && t.touchesCurrent.y > t.touchesStart.y)) {
|
|
778
|
-
t.isTouched = !1,
|
|
795
|
+
t.isTouched = !1, W();
|
|
779
796
|
return;
|
|
780
797
|
}
|
|
781
798
|
}
|
|
782
|
-
|
|
783
|
-
const
|
|
784
|
-
originX:
|
|
785
|
-
originY:
|
|
799
|
+
c.cancelable && c.preventDefault(), c.stopPropagation(), P(), t.isMoved = !0;
|
|
800
|
+
const q = (O.scale - T) / (i.maxRatio - e.params.zoom.minRatio), {
|
|
801
|
+
originX: J,
|
|
802
|
+
originY: H
|
|
786
803
|
} = i;
|
|
787
|
-
t.currentX = t.touchesCurrent.x - t.touchesStart.x + t.startX +
|
|
804
|
+
t.currentX = t.touchesCurrent.x - t.touchesStart.x + t.startX + q * (t.width - J * 2), t.currentY = t.touchesCurrent.y - t.touchesStart.y + t.startY + q * (t.height - H * 2), t.currentX < t.minX && (t.currentX = t.minX + 1 - (t.minX - t.currentX + 1) ** 0.8), t.currentX > t.maxX && (t.currentX = t.maxX - 1 + (t.currentX - t.maxX + 1) ** 0.8), t.currentY < t.minY && (t.currentY = t.minY + 1 - (t.minY - t.currentY + 1) ** 0.8), t.currentY > t.maxY && (t.currentY = t.maxY - 1 + (t.currentY - t.maxY + 1) ** 0.8), r.prevPositionX || (r.prevPositionX = t.touchesCurrent.x), r.prevPositionY || (r.prevPositionY = t.touchesCurrent.y), r.prevTime || (r.prevTime = Date.now()), r.x = (t.touchesCurrent.x - r.prevPositionX) / (Date.now() - r.prevTime) / 2, r.y = (t.touchesCurrent.y - r.prevPositionY) / (Date.now() - r.prevTime) / 2, Math.abs(t.touchesCurrent.x - r.prevPositionX) < 2 && (r.x = 0), Math.abs(t.touchesCurrent.y - r.prevPositionY) < 2 && (r.y = 0), r.prevPositionX = t.touchesCurrent.x, r.prevPositionY = t.touchesCurrent.y, r.prevTime = Date.now(), i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
|
|
788
805
|
}
|
|
789
|
-
function
|
|
790
|
-
const
|
|
791
|
-
if (!i.imageEl) return;
|
|
806
|
+
function I() {
|
|
807
|
+
const c = e.zoom;
|
|
808
|
+
if (u.length = 0, !i.imageEl) return;
|
|
792
809
|
if (!t.isTouched || !t.isMoved) {
|
|
793
810
|
t.isTouched = !1, t.isMoved = !1;
|
|
794
811
|
return;
|
|
795
812
|
}
|
|
796
813
|
t.isTouched = !1, t.isMoved = !1;
|
|
797
|
-
let
|
|
798
|
-
const
|
|
799
|
-
|
|
800
|
-
const
|
|
801
|
-
t.currentX =
|
|
802
|
-
const
|
|
803
|
-
t.minX = Math.min(i.slideWidth / 2 -
|
|
814
|
+
let E = 300, y = 300;
|
|
815
|
+
const O = r.x * E, B = t.currentX + O, U = r.y * y, Z = t.currentY + U;
|
|
816
|
+
r.x !== 0 && (E = Math.abs((B - t.currentX) / r.x)), r.y !== 0 && (y = Math.abs((Z - t.currentY) / r.y));
|
|
817
|
+
const q = Math.max(E, y);
|
|
818
|
+
t.currentX = B, t.currentY = Z;
|
|
819
|
+
const J = t.width * c.scale, H = t.height * c.scale;
|
|
820
|
+
t.minX = Math.min(i.slideWidth / 2 - J / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - H / 2, 0), t.maxY = -t.minY, t.currentX = Math.max(Math.min(t.currentX, t.maxX), t.minX), t.currentY = Math.max(Math.min(t.currentY, t.maxY), t.minY), i.imageWrapEl.style.transitionDuration = `${q}ms`, i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
|
|
804
821
|
}
|
|
805
|
-
function
|
|
806
|
-
const
|
|
807
|
-
i.slideEl && e.activeIndex !== e.slides.indexOf(i.slideEl) && (i.imageEl && (i.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), i.imageWrapEl && (i.imageWrapEl.style.transform = "translate3d(0,0,0)"), i.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),
|
|
822
|
+
function ce() {
|
|
823
|
+
const c = e.zoom;
|
|
824
|
+
i.slideEl && e.activeIndex !== e.slides.indexOf(i.slideEl) && (i.imageEl && (i.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), i.imageWrapEl && (i.imageWrapEl.style.transform = "translate3d(0,0,0)"), i.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), c.scale = 1, T = 1, i.slideEl = void 0, i.imageEl = void 0, i.imageWrapEl = void 0, i.originX = 0, i.originY = 0);
|
|
825
|
+
}
|
|
826
|
+
function Y(c) {
|
|
827
|
+
if (T <= 1 || !i.imageWrapEl || !g(c) || !L(c)) return;
|
|
828
|
+
const E = w.getComputedStyle(i.imageWrapEl).transform, y = new w.DOMMatrix(E);
|
|
829
|
+
if (!S) {
|
|
830
|
+
S = !0, f.x = c.clientX, f.y = c.clientY, t.startX = y.e, t.startY = y.f, t.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, t.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight;
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
const O = (c.clientX - f.x) * o, B = (c.clientY - f.y) * o, U = t.width * T, Z = t.height * T, q = i.slideWidth, J = i.slideHeight, H = Math.min(q / 2 - U / 2, 0), N = -H, oe = Math.min(J / 2 - Z / 2, 0), de = -oe, te = Math.max(Math.min(t.startX + O, N), H), ie = Math.max(Math.min(t.startY + B, de), oe);
|
|
834
|
+
i.imageWrapEl.style.transitionDuration = "0ms", i.imageWrapEl.style.transform = `translate3d(${te}px, ${ie}px, 0)`, f.x = c.clientX, f.y = c.clientY, t.startX = te, t.startY = ie, t.currentX = te, t.currentY = ie;
|
|
808
835
|
}
|
|
809
|
-
function
|
|
810
|
-
const
|
|
836
|
+
function F(c) {
|
|
837
|
+
const E = e.zoom, y = e.params.zoom;
|
|
811
838
|
if (!i.slideEl) {
|
|
812
|
-
|
|
813
|
-
let
|
|
814
|
-
|
|
839
|
+
c && c.target && (i.slideEl = c.target.closest(`.${e.params.slideClass}, swiper-slide`)), i.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = he(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex]);
|
|
840
|
+
let le = i.slideEl.querySelector(`.${y.containerClass}`);
|
|
841
|
+
le && (le = le.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = le, le ? i.imageWrapEl = se(i.imageEl, `.${y.containerClass}`)[0] : i.imageWrapEl = void 0;
|
|
815
842
|
}
|
|
816
843
|
if (!i.imageEl || !i.imageWrapEl) return;
|
|
817
|
-
e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), i.slideEl.classList.add(`${
|
|
818
|
-
let
|
|
819
|
-
typeof t.touchesStart.x > "u" &&
|
|
820
|
-
const
|
|
821
|
-
T === 1 &&
|
|
822
|
-
const
|
|
823
|
-
|
|
844
|
+
e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), i.slideEl.classList.add(`${y.zoomedSlideClass}`);
|
|
845
|
+
let O, B, U, Z, q, J, H, N, oe, de, te, ie, pe, fe, ve, ye, we, be;
|
|
846
|
+
typeof t.touchesStart.x > "u" && c ? (O = c.pageX, B = c.pageY) : (O = t.touchesStart.x, B = t.touchesStart.y);
|
|
847
|
+
const Ee = T, ne = typeof c == "number" ? c : null;
|
|
848
|
+
T === 1 && ne && (O = void 0, B = void 0, t.touchesStart.x = void 0, t.touchesStart.y = void 0);
|
|
849
|
+
const ze = a();
|
|
850
|
+
E.scale = ne || ze, T = ne || ze, c && !(T === 1 && ne) ? (we = i.slideEl.offsetWidth, be = i.slideEl.offsetHeight, U = Me(i.slideEl).left + w.scrollX, Z = Me(i.slideEl).top + w.scrollY, q = U + we / 2 - O, J = Z + be / 2 - B, oe = i.imageEl.offsetWidth || i.imageEl.clientWidth, de = i.imageEl.offsetHeight || i.imageEl.clientHeight, te = oe * E.scale, ie = de * E.scale, pe = Math.min(we / 2 - te / 2, 0), fe = Math.min(be / 2 - ie / 2, 0), ve = -pe, ye = -fe, Ee > 0 && ne && typeof t.currentX == "number" && typeof t.currentY == "number" ? (H = t.currentX * E.scale / Ee, N = t.currentY * E.scale / Ee) : (H = q * E.scale, N = J * E.scale), H < pe && (H = pe), H > ve && (H = ve), N < fe && (N = fe), N > ye && (N = ye)) : (H = 0, N = 0), ne && E.scale === 1 && (i.originX = 0, i.originY = 0), t.currentX = H, t.currentY = N, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = `translate3d(${H}px, ${N}px,0)`, i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = `translate3d(0,0,0) scale(${E.scale})`;
|
|
824
851
|
}
|
|
825
|
-
function
|
|
826
|
-
const
|
|
852
|
+
function R() {
|
|
853
|
+
const c = e.zoom, E = e.params.zoom;
|
|
827
854
|
if (!i.slideEl) {
|
|
828
|
-
e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl =
|
|
829
|
-
let
|
|
830
|
-
|
|
855
|
+
e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = he(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex];
|
|
856
|
+
let y = i.slideEl.querySelector(`.${E.containerClass}`);
|
|
857
|
+
y && (y = y.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = y, y ? i.imageWrapEl = se(i.imageEl, `.${E.containerClass}`)[0] : i.imageWrapEl = void 0;
|
|
831
858
|
}
|
|
832
|
-
!i.imageEl || !i.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""),
|
|
859
|
+
!i.imageEl || !i.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), c.scale = 1, T = 1, t.currentX = void 0, t.currentY = void 0, t.touchesStart.x = void 0, t.touchesStart.y = void 0, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = "translate3d(0,0,0)", i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = "translate3d(0,0,0) scale(1)", i.slideEl.classList.remove(`${E.zoomedSlideClass}`), i.slideEl = void 0, i.originX = 0, i.originY = 0, e.params.zoom.panOnMouseMove && (f = {
|
|
860
|
+
x: 0,
|
|
861
|
+
y: 0
|
|
862
|
+
}, S && (S = !1, t.startX = 0, t.startY = 0)));
|
|
833
863
|
}
|
|
834
|
-
function
|
|
835
|
-
const
|
|
836
|
-
|
|
864
|
+
function K(c) {
|
|
865
|
+
const E = e.zoom;
|
|
866
|
+
E.scale && E.scale !== 1 ? R() : F(c);
|
|
837
867
|
}
|
|
838
|
-
function
|
|
839
|
-
const
|
|
868
|
+
function re() {
|
|
869
|
+
const c = e.params.passiveListeners ? {
|
|
840
870
|
passive: !0,
|
|
841
871
|
capture: !1
|
|
842
|
-
} : !1,
|
|
872
|
+
} : !1, E = e.params.passiveListeners ? {
|
|
843
873
|
passive: !1,
|
|
844
874
|
capture: !0
|
|
845
875
|
} : !0;
|
|
846
876
|
return {
|
|
847
|
-
passiveListener:
|
|
848
|
-
activeListenerWithCapture:
|
|
877
|
+
passiveListener: c,
|
|
878
|
+
activeListenerWithCapture: E
|
|
849
879
|
};
|
|
850
880
|
}
|
|
851
|
-
function
|
|
852
|
-
const
|
|
853
|
-
if (
|
|
854
|
-
|
|
881
|
+
function $e() {
|
|
882
|
+
const c = e.zoom;
|
|
883
|
+
if (c.enabled) return;
|
|
884
|
+
c.enabled = !0;
|
|
855
885
|
const {
|
|
856
|
-
passiveListener:
|
|
857
|
-
activeListenerWithCapture:
|
|
858
|
-
} =
|
|
859
|
-
e.wrapperEl.addEventListener("pointerdown",
|
|
860
|
-
e.wrapperEl.addEventListener(
|
|
861
|
-
}), e.wrapperEl.addEventListener("pointermove",
|
|
886
|
+
passiveListener: E,
|
|
887
|
+
activeListenerWithCapture: y
|
|
888
|
+
} = re();
|
|
889
|
+
e.wrapperEl.addEventListener("pointerdown", x, E), e.wrapperEl.addEventListener("pointermove", b, y), ["pointerup", "pointercancel", "pointerout"].forEach((O) => {
|
|
890
|
+
e.wrapperEl.addEventListener(O, X, E);
|
|
891
|
+
}), e.wrapperEl.addEventListener("pointermove", D, y);
|
|
862
892
|
}
|
|
863
|
-
function
|
|
864
|
-
const
|
|
865
|
-
if (!
|
|
866
|
-
|
|
893
|
+
function Pe() {
|
|
894
|
+
const c = e.zoom;
|
|
895
|
+
if (!c.enabled) return;
|
|
896
|
+
c.enabled = !1;
|
|
867
897
|
const {
|
|
868
|
-
passiveListener:
|
|
869
|
-
activeListenerWithCapture:
|
|
870
|
-
} =
|
|
871
|
-
e.wrapperEl.removeEventListener("pointerdown",
|
|
872
|
-
e.wrapperEl.removeEventListener(
|
|
873
|
-
}), e.wrapperEl.removeEventListener("pointermove",
|
|
898
|
+
passiveListener: E,
|
|
899
|
+
activeListenerWithCapture: y
|
|
900
|
+
} = re();
|
|
901
|
+
e.wrapperEl.removeEventListener("pointerdown", x, E), e.wrapperEl.removeEventListener("pointermove", b, y), ["pointerup", "pointercancel", "pointerout"].forEach((O) => {
|
|
902
|
+
e.wrapperEl.removeEventListener(O, X, E);
|
|
903
|
+
}), e.wrapperEl.removeEventListener("pointermove", D, y);
|
|
874
904
|
}
|
|
875
905
|
l("init", () => {
|
|
876
|
-
e.params.zoom.enabled &&
|
|
906
|
+
e.params.zoom.enabled && $e();
|
|
877
907
|
}), l("destroy", () => {
|
|
878
|
-
|
|
879
|
-
}), l("touchStart", (
|
|
880
|
-
e.zoom.enabled &&
|
|
881
|
-
}), l("touchEnd", (
|
|
882
|
-
e.zoom.enabled &&
|
|
883
|
-
}), l("doubleTap", (
|
|
884
|
-
!e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle &&
|
|
908
|
+
Pe();
|
|
909
|
+
}), l("touchStart", (c, E) => {
|
|
910
|
+
e.zoom.enabled && z(E);
|
|
911
|
+
}), l("touchEnd", (c, E) => {
|
|
912
|
+
e.zoom.enabled && I();
|
|
913
|
+
}), l("doubleTap", (c, E) => {
|
|
914
|
+
!e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && K(E);
|
|
885
915
|
}), l("transitionEnd", () => {
|
|
886
|
-
e.zoom.enabled && e.params.zoom.enabled &&
|
|
916
|
+
e.zoom.enabled && e.params.zoom.enabled && ce();
|
|
887
917
|
}), l("slideChange", () => {
|
|
888
|
-
e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode &&
|
|
918
|
+
e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && ce();
|
|
889
919
|
}), Object.assign(e.zoom, {
|
|
890
|
-
enable:
|
|
891
|
-
disable:
|
|
892
|
-
in:
|
|
893
|
-
out:
|
|
894
|
-
toggle:
|
|
920
|
+
enable: $e,
|
|
921
|
+
disable: Pe,
|
|
922
|
+
in: F,
|
|
923
|
+
out: R,
|
|
924
|
+
toggle: K
|
|
895
925
|
});
|
|
896
926
|
}
|
|
897
|
-
function
|
|
927
|
+
function st(s) {
|
|
898
928
|
let {
|
|
899
929
|
swiper: e,
|
|
900
|
-
extendParams:
|
|
930
|
+
extendParams: C,
|
|
901
931
|
on: l
|
|
902
|
-
} =
|
|
903
|
-
|
|
932
|
+
} = s;
|
|
933
|
+
C({
|
|
904
934
|
controller: {
|
|
905
935
|
control: void 0,
|
|
906
936
|
inverse: !1,
|
|
@@ -910,100 +940,100 @@ function et(r) {
|
|
|
910
940
|
}), e.controller = {
|
|
911
941
|
control: void 0
|
|
912
942
|
};
|
|
913
|
-
function m(
|
|
914
|
-
const
|
|
915
|
-
let
|
|
916
|
-
return (
|
|
917
|
-
for (
|
|
918
|
-
|
|
919
|
-
return
|
|
943
|
+
function m(f, o) {
|
|
944
|
+
const v = /* @__PURE__ */ function() {
|
|
945
|
+
let t, r, p;
|
|
946
|
+
return (n, a) => {
|
|
947
|
+
for (r = -1, t = n.length; t - r > 1; )
|
|
948
|
+
p = t + r >> 1, n[p] <= a ? r = p : t = p;
|
|
949
|
+
return t;
|
|
920
950
|
};
|
|
921
951
|
}();
|
|
922
|
-
this.x =
|
|
923
|
-
let
|
|
924
|
-
return this.interpolate = function(
|
|
925
|
-
return
|
|
952
|
+
this.x = f, this.y = o, this.lastIndex = f.length - 1;
|
|
953
|
+
let d, u;
|
|
954
|
+
return this.interpolate = function(t) {
|
|
955
|
+
return t ? (u = v(this.x, t), d = u - 1, (t - this.x[d]) * (this.y[u] - this.y[d]) / (this.x[u] - this.x[d]) + this.y[d]) : 0;
|
|
926
956
|
}, this;
|
|
927
957
|
}
|
|
928
|
-
function
|
|
929
|
-
e.controller.spline = e.params.loop ? new m(e.slidesGrid,
|
|
958
|
+
function w(f) {
|
|
959
|
+
e.controller.spline = e.params.loop ? new m(e.slidesGrid, f.slidesGrid) : new m(e.snapGrid, f.snapGrid);
|
|
930
960
|
}
|
|
931
|
-
function T(
|
|
932
|
-
const
|
|
933
|
-
let
|
|
934
|
-
const
|
|
935
|
-
function
|
|
936
|
-
if (
|
|
937
|
-
const
|
|
938
|
-
e.params.controller.by === "slide" && (
|
|
961
|
+
function T(f, o) {
|
|
962
|
+
const v = e.controller.control;
|
|
963
|
+
let d, u;
|
|
964
|
+
const i = e.constructor;
|
|
965
|
+
function t(r) {
|
|
966
|
+
if (r.destroyed) return;
|
|
967
|
+
const p = e.rtlTranslate ? -e.translate : e.translate;
|
|
968
|
+
e.params.controller.by === "slide" && (w(r), u = -e.controller.spline.interpolate(-p)), (!u || e.params.controller.by === "container") && (d = (r.maxTranslate() - r.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(d) || !Number.isFinite(d)) && (d = 1), u = (p - e.minTranslate()) * d + r.minTranslate()), e.params.controller.inverse && (u = r.maxTranslate() - u), r.updateProgress(u), r.setTranslate(u, e), r.updateActiveIndex(), r.updateSlidesClasses();
|
|
939
969
|
}
|
|
940
|
-
if (Array.isArray(
|
|
941
|
-
for (let
|
|
942
|
-
|
|
943
|
-
else
|
|
970
|
+
if (Array.isArray(v))
|
|
971
|
+
for (let r = 0; r < v.length; r += 1)
|
|
972
|
+
v[r] !== o && v[r] instanceof i && t(v[r]);
|
|
973
|
+
else v instanceof i && o !== v && t(v);
|
|
944
974
|
}
|
|
945
|
-
function $(
|
|
946
|
-
const
|
|
947
|
-
let
|
|
948
|
-
function
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
}),
|
|
952
|
-
|
|
975
|
+
function $(f, o) {
|
|
976
|
+
const v = e.constructor, d = e.controller.control;
|
|
977
|
+
let u;
|
|
978
|
+
function i(t) {
|
|
979
|
+
t.destroyed || (t.setTransition(f, e), f !== 0 && (t.transitionStart(), t.params.autoHeight && Ze(() => {
|
|
980
|
+
t.updateAutoHeight();
|
|
981
|
+
}), ge(t.wrapperEl, () => {
|
|
982
|
+
d && t.transitionEnd();
|
|
953
983
|
})));
|
|
954
984
|
}
|
|
955
|
-
if (Array.isArray(
|
|
956
|
-
for (
|
|
957
|
-
|
|
958
|
-
else
|
|
985
|
+
if (Array.isArray(d))
|
|
986
|
+
for (u = 0; u < d.length; u += 1)
|
|
987
|
+
d[u] !== o && d[u] instanceof v && i(d[u]);
|
|
988
|
+
else d instanceof v && o !== d && i(d);
|
|
959
989
|
}
|
|
960
|
-
function
|
|
990
|
+
function S() {
|
|
961
991
|
e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
|
|
962
992
|
}
|
|
963
993
|
l("beforeInit", () => {
|
|
964
994
|
if (typeof window < "u" && // eslint-disable-line
|
|
965
995
|
(typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
|
|
966
|
-
(typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((
|
|
967
|
-
if (e.controller.control || (e.controller.control = []),
|
|
968
|
-
e.controller.control.push(
|
|
969
|
-
else if (
|
|
970
|
-
const
|
|
971
|
-
e.controller.control.push(
|
|
996
|
+
(typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((o) => {
|
|
997
|
+
if (e.controller.control || (e.controller.control = []), o && o.swiper)
|
|
998
|
+
e.controller.control.push(o.swiper);
|
|
999
|
+
else if (o) {
|
|
1000
|
+
const v = `${e.params.eventsPrefix}init`, d = (u) => {
|
|
1001
|
+
e.controller.control.push(u.detail[0]), e.update(), o.removeEventListener(v, d);
|
|
972
1002
|
};
|
|
973
|
-
|
|
1003
|
+
o.addEventListener(v, d);
|
|
974
1004
|
}
|
|
975
1005
|
});
|
|
976
1006
|
return;
|
|
977
1007
|
}
|
|
978
1008
|
e.controller.control = e.params.controller.control;
|
|
979
1009
|
}), l("update", () => {
|
|
980
|
-
|
|
1010
|
+
S();
|
|
981
1011
|
}), l("resize", () => {
|
|
982
|
-
|
|
1012
|
+
S();
|
|
983
1013
|
}), l("observerUpdate", () => {
|
|
984
|
-
|
|
985
|
-
}), l("setTranslate", (
|
|
986
|
-
!e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(
|
|
987
|
-
}), l("setTransition", (
|
|
988
|
-
!e.controller.control || e.controller.control.destroyed || e.controller.setTransition(
|
|
1014
|
+
S();
|
|
1015
|
+
}), l("setTranslate", (f, o, v) => {
|
|
1016
|
+
!e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(o, v);
|
|
1017
|
+
}), l("setTransition", (f, o, v) => {
|
|
1018
|
+
!e.controller.control || e.controller.control.destroyed || e.controller.setTransition(o, v);
|
|
989
1019
|
}), Object.assign(e.controller, {
|
|
990
1020
|
setTranslate: T,
|
|
991
1021
|
setTransition: $
|
|
992
1022
|
});
|
|
993
1023
|
}
|
|
994
|
-
function
|
|
1024
|
+
function rt(s) {
|
|
995
1025
|
let {
|
|
996
1026
|
swiper: e,
|
|
997
|
-
extendParams:
|
|
1027
|
+
extendParams: C,
|
|
998
1028
|
on: l,
|
|
999
1029
|
emit: m,
|
|
1000
|
-
params:
|
|
1001
|
-
} =
|
|
1030
|
+
params: w
|
|
1031
|
+
} = s;
|
|
1002
1032
|
e.autoplay = {
|
|
1003
1033
|
running: !1,
|
|
1004
1034
|
paused: !1,
|
|
1005
1035
|
timeLeft: 0
|
|
1006
|
-
},
|
|
1036
|
+
}, C({
|
|
1007
1037
|
autoplay: {
|
|
1008
1038
|
enabled: !1,
|
|
1009
1039
|
delay: 3e3,
|
|
@@ -1014,115 +1044,115 @@ function tt(r) {
|
|
|
1014
1044
|
pauseOnMouseEnter: !1
|
|
1015
1045
|
}
|
|
1016
1046
|
});
|
|
1017
|
-
let T, $,
|
|
1018
|
-
function
|
|
1019
|
-
!e || e.destroyed || !e.wrapperEl ||
|
|
1047
|
+
let T, $, S = w && w.autoplay ? w.autoplay.delay : 3e3, f = w && w.autoplay ? w.autoplay.delay : 3e3, o, v = (/* @__PURE__ */ new Date()).getTime(), d, u, i, t, r, p, n;
|
|
1048
|
+
function a(Y) {
|
|
1049
|
+
!e || e.destroyed || !e.wrapperEl || Y.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", a), !(n || Y.detail && Y.detail.bySwiperTouchMove) && X());
|
|
1020
1050
|
}
|
|
1021
|
-
const
|
|
1051
|
+
const h = () => {
|
|
1022
1052
|
if (e.destroyed || !e.autoplay.running) return;
|
|
1023
|
-
e.autoplay.paused ?
|
|
1024
|
-
const
|
|
1025
|
-
e.autoplay.timeLeft =
|
|
1026
|
-
|
|
1053
|
+
e.autoplay.paused ? d = !0 : d && (f = o, d = !1);
|
|
1054
|
+
const Y = e.autoplay.paused ? o : v + f - (/* @__PURE__ */ new Date()).getTime();
|
|
1055
|
+
e.autoplay.timeLeft = Y, m("autoplayTimeLeft", Y, Y / S), $ = requestAnimationFrame(() => {
|
|
1056
|
+
h();
|
|
1027
1057
|
});
|
|
1028
|
-
},
|
|
1029
|
-
let
|
|
1030
|
-
return e.virtual && e.params.virtual.enabled ?
|
|
1031
|
-
},
|
|
1058
|
+
}, M = () => {
|
|
1059
|
+
let Y;
|
|
1060
|
+
return e.virtual && e.params.virtual.enabled ? Y = e.slides.find((R) => R.classList.contains("swiper-slide-active")) : Y = e.slides[e.activeIndex], Y ? parseInt(Y.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
1061
|
+
}, g = (Y) => {
|
|
1032
1062
|
if (e.destroyed || !e.autoplay.running) return;
|
|
1033
|
-
cancelAnimationFrame($),
|
|
1034
|
-
let
|
|
1035
|
-
|
|
1036
|
-
const
|
|
1037
|
-
!Number.isNaN(
|
|
1038
|
-
const
|
|
1039
|
-
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(
|
|
1040
|
-
|
|
1063
|
+
cancelAnimationFrame($), h();
|
|
1064
|
+
let F = typeof Y > "u" ? e.params.autoplay.delay : Y;
|
|
1065
|
+
S = e.params.autoplay.delay, f = e.params.autoplay.delay;
|
|
1066
|
+
const R = M();
|
|
1067
|
+
!Number.isNaN(R) && R > 0 && typeof Y > "u" && (F = R, S = R, f = R), o = F;
|
|
1068
|
+
const K = e.params.speed, re = () => {
|
|
1069
|
+
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(K, !0, !0), m("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, K, !0, !0), m("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(K, !0, !0), m("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, K, !0, !0), m("autoplay")), e.params.cssMode && (v = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
1070
|
+
g();
|
|
1041
1071
|
})));
|
|
1042
1072
|
};
|
|
1043
|
-
return
|
|
1044
|
-
|
|
1045
|
-
},
|
|
1046
|
-
|
|
1047
|
-
}),
|
|
1073
|
+
return F > 0 ? (clearTimeout(T), T = setTimeout(() => {
|
|
1074
|
+
re();
|
|
1075
|
+
}, F)) : requestAnimationFrame(() => {
|
|
1076
|
+
re();
|
|
1077
|
+
}), F;
|
|
1048
1078
|
}, L = () => {
|
|
1049
|
-
|
|
1050
|
-
},
|
|
1079
|
+
v = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, g(), m("autoplayStart");
|
|
1080
|
+
}, x = () => {
|
|
1051
1081
|
e.autoplay.running = !1, clearTimeout(T), cancelAnimationFrame($), m("autoplayStop");
|
|
1052
|
-
},
|
|
1082
|
+
}, b = (Y, F) => {
|
|
1053
1083
|
if (e.destroyed || !e.autoplay.running) return;
|
|
1054
|
-
clearTimeout(T),
|
|
1055
|
-
const
|
|
1056
|
-
m("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend",
|
|
1084
|
+
clearTimeout(T), Y || (p = !0);
|
|
1085
|
+
const R = () => {
|
|
1086
|
+
m("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", a) : X();
|
|
1057
1087
|
};
|
|
1058
|
-
if (e.autoplay.paused = !0,
|
|
1059
|
-
|
|
1088
|
+
if (e.autoplay.paused = !0, F) {
|
|
1089
|
+
r && (o = e.params.autoplay.delay), r = !1, R();
|
|
1060
1090
|
return;
|
|
1061
1091
|
}
|
|
1062
|
-
|
|
1063
|
-
},
|
|
1064
|
-
e.isEnd &&
|
|
1092
|
+
o = (o || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - v), !(e.isEnd && o < 0 && !e.params.loop) && (o < 0 && (o = 0), R());
|
|
1093
|
+
}, X = () => {
|
|
1094
|
+
e.isEnd && o < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (v = (/* @__PURE__ */ new Date()).getTime(), p ? (p = !1, g(o)) : g(), e.autoplay.paused = !1, m("autoplayResume"));
|
|
1065
1095
|
}, k = () => {
|
|
1066
1096
|
if (e.destroyed || !e.autoplay.running) return;
|
|
1067
|
-
const
|
|
1068
|
-
|
|
1069
|
-
}, W = (
|
|
1070
|
-
|
|
1071
|
-
}, P = (
|
|
1072
|
-
|
|
1097
|
+
const Y = ae();
|
|
1098
|
+
Y.visibilityState === "hidden" && (p = !0, b(!0)), Y.visibilityState === "visible" && X();
|
|
1099
|
+
}, W = (Y) => {
|
|
1100
|
+
Y.pointerType === "mouse" && (p = !0, n = !0, !(e.animating || e.autoplay.paused) && b(!0));
|
|
1101
|
+
}, P = (Y) => {
|
|
1102
|
+
Y.pointerType === "mouse" && (n = !1, e.autoplay.paused && X());
|
|
1073
1103
|
}, z = () => {
|
|
1074
1104
|
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", W), e.el.addEventListener("pointerleave", P));
|
|
1075
|
-
},
|
|
1105
|
+
}, D = () => {
|
|
1076
1106
|
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", W), e.el.removeEventListener("pointerleave", P));
|
|
1077
|
-
},
|
|
1078
|
-
|
|
1079
|
-
},
|
|
1080
|
-
|
|
1107
|
+
}, I = () => {
|
|
1108
|
+
ae().addEventListener("visibilitychange", k);
|
|
1109
|
+
}, ce = () => {
|
|
1110
|
+
ae().removeEventListener("visibilitychange", k);
|
|
1081
1111
|
};
|
|
1082
1112
|
l("init", () => {
|
|
1083
|
-
e.params.autoplay.enabled && (z(),
|
|
1113
|
+
e.params.autoplay.enabled && (z(), I(), L());
|
|
1084
1114
|
}), l("destroy", () => {
|
|
1085
|
-
|
|
1115
|
+
D(), ce(), e.autoplay.running && x();
|
|
1086
1116
|
}), l("_freeModeStaticRelease", () => {
|
|
1087
|
-
(
|
|
1117
|
+
(i || p) && X();
|
|
1088
1118
|
}), l("_freeModeNoMomentumRelease", () => {
|
|
1089
|
-
e.params.autoplay.disableOnInteraction ?
|
|
1090
|
-
}), l("beforeTransitionStart", (
|
|
1091
|
-
e.destroyed || !e.autoplay.running || (
|
|
1119
|
+
e.params.autoplay.disableOnInteraction ? x() : b(!0, !0);
|
|
1120
|
+
}), l("beforeTransitionStart", (Y, F, R) => {
|
|
1121
|
+
e.destroyed || !e.autoplay.running || (R || !e.params.autoplay.disableOnInteraction ? b(!0, !0) : x());
|
|
1092
1122
|
}), l("sliderFirstMove", () => {
|
|
1093
1123
|
if (!(e.destroyed || !e.autoplay.running)) {
|
|
1094
1124
|
if (e.params.autoplay.disableOnInteraction) {
|
|
1095
|
-
|
|
1125
|
+
x();
|
|
1096
1126
|
return;
|
|
1097
1127
|
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1128
|
+
u = !0, i = !1, p = !1, t = setTimeout(() => {
|
|
1129
|
+
p = !0, i = !0, b(!0);
|
|
1100
1130
|
}, 200);
|
|
1101
1131
|
}
|
|
1102
1132
|
}), l("touchEnd", () => {
|
|
1103
|
-
if (!(e.destroyed || !e.autoplay.running || !
|
|
1104
|
-
if (clearTimeout(
|
|
1105
|
-
|
|
1133
|
+
if (!(e.destroyed || !e.autoplay.running || !u)) {
|
|
1134
|
+
if (clearTimeout(t), clearTimeout(T), e.params.autoplay.disableOnInteraction) {
|
|
1135
|
+
i = !1, u = !1;
|
|
1106
1136
|
return;
|
|
1107
1137
|
}
|
|
1108
|
-
|
|
1138
|
+
i && e.params.cssMode && X(), i = !1, u = !1;
|
|
1109
1139
|
}
|
|
1110
1140
|
}), l("slideChange", () => {
|
|
1111
|
-
e.destroyed || !e.autoplay.running || (
|
|
1141
|
+
e.destroyed || !e.autoplay.running || (r = !0);
|
|
1112
1142
|
}), Object.assign(e.autoplay, {
|
|
1113
1143
|
start: L,
|
|
1114
|
-
stop:
|
|
1115
|
-
pause:
|
|
1116
|
-
resume:
|
|
1144
|
+
stop: x,
|
|
1145
|
+
pause: b,
|
|
1146
|
+
resume: X
|
|
1117
1147
|
});
|
|
1118
1148
|
}
|
|
1119
|
-
function
|
|
1149
|
+
function ot(s) {
|
|
1120
1150
|
let {
|
|
1121
1151
|
swiper: e,
|
|
1122
|
-
extendParams:
|
|
1152
|
+
extendParams: C,
|
|
1123
1153
|
on: l
|
|
1124
|
-
} =
|
|
1125
|
-
|
|
1154
|
+
} = s;
|
|
1155
|
+
C({
|
|
1126
1156
|
thumbs: {
|
|
1127
1157
|
swiper: null,
|
|
1128
1158
|
multipleActiveThumbs: !0,
|
|
@@ -1131,113 +1161,115 @@ function it(r) {
|
|
|
1131
1161
|
thumbsContainerClass: "swiper-thumbs"
|
|
1132
1162
|
}
|
|
1133
1163
|
});
|
|
1134
|
-
let m = !1,
|
|
1164
|
+
let m = !1, w = !1;
|
|
1135
1165
|
e.thumbs = {
|
|
1136
1166
|
swiper: null
|
|
1137
1167
|
};
|
|
1138
1168
|
function T() {
|
|
1139
|
-
const
|
|
1140
|
-
if (!
|
|
1141
|
-
const
|
|
1142
|
-
if (
|
|
1143
|
-
let
|
|
1144
|
-
|
|
1169
|
+
const f = e.thumbs.swiper;
|
|
1170
|
+
if (!f || f.destroyed) return;
|
|
1171
|
+
const o = f.clickedIndex, v = f.clickedSlide;
|
|
1172
|
+
if (v && v.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof o > "u" || o === null) return;
|
|
1173
|
+
let d;
|
|
1174
|
+
f.params.loop ? d = parseInt(f.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : d = o, e.params.loop ? e.slideToLoop(d) : e.slideTo(d);
|
|
1145
1175
|
}
|
|
1146
1176
|
function $() {
|
|
1147
1177
|
const {
|
|
1148
|
-
thumbs:
|
|
1178
|
+
thumbs: f
|
|
1149
1179
|
} = e.params;
|
|
1150
1180
|
if (m) return !1;
|
|
1151
1181
|
m = !0;
|
|
1152
|
-
const
|
|
1153
|
-
if (
|
|
1154
|
-
|
|
1182
|
+
const o = e.constructor;
|
|
1183
|
+
if (f.swiper instanceof o) {
|
|
1184
|
+
if (f.swiper.destroyed)
|
|
1185
|
+
return m = !1, !1;
|
|
1186
|
+
e.thumbs.swiper = f.swiper, Object.assign(e.thumbs.swiper.originalParams, {
|
|
1155
1187
|
watchSlidesProgress: !0,
|
|
1156
1188
|
slideToClickedSlide: !1
|
|
1157
1189
|
}), Object.assign(e.thumbs.swiper.params, {
|
|
1158
1190
|
watchSlidesProgress: !0,
|
|
1159
1191
|
slideToClickedSlide: !1
|
|
1160
1192
|
}), e.thumbs.swiper.update();
|
|
1161
|
-
else if (
|
|
1162
|
-
const
|
|
1163
|
-
Object.assign(
|
|
1193
|
+
} else if (Qe(f.swiper)) {
|
|
1194
|
+
const v = Object.assign({}, f.swiper);
|
|
1195
|
+
Object.assign(v, {
|
|
1164
1196
|
watchSlidesProgress: !0,
|
|
1165
1197
|
slideToClickedSlide: !1
|
|
1166
|
-
}), e.thumbs.swiper = new
|
|
1198
|
+
}), e.thumbs.swiper = new o(v), w = !0;
|
|
1167
1199
|
}
|
|
1168
1200
|
return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", T), !0;
|
|
1169
1201
|
}
|
|
1170
|
-
function
|
|
1171
|
-
const
|
|
1172
|
-
if (!
|
|
1173
|
-
const
|
|
1174
|
-
let
|
|
1175
|
-
const
|
|
1176
|
-
if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (
|
|
1177
|
-
for (let
|
|
1178
|
-
|
|
1179
|
-
|
|
1202
|
+
function S(f) {
|
|
1203
|
+
const o = e.thumbs.swiper;
|
|
1204
|
+
if (!o || o.destroyed) return;
|
|
1205
|
+
const v = o.params.slidesPerView === "auto" ? o.slidesPerViewDynamic() : o.params.slidesPerView;
|
|
1206
|
+
let d = 1;
|
|
1207
|
+
const u = e.params.thumbs.slideThumbActiveClass;
|
|
1208
|
+
if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (d = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (d = 1), d = Math.floor(d), o.slides.forEach((r) => r.classList.remove(u)), o.params.loop || o.params.virtual && o.params.virtual.enabled)
|
|
1209
|
+
for (let r = 0; r < d; r += 1)
|
|
1210
|
+
he(o.slidesEl, `[data-swiper-slide-index="${e.realIndex + r}"]`).forEach((p) => {
|
|
1211
|
+
p.classList.add(u);
|
|
1180
1212
|
});
|
|
1181
1213
|
else
|
|
1182
|
-
for (let
|
|
1183
|
-
|
|
1184
|
-
const
|
|
1185
|
-
if (e.realIndex !==
|
|
1186
|
-
const
|
|
1187
|
-
let
|
|
1188
|
-
if (
|
|
1189
|
-
const
|
|
1190
|
-
|
|
1214
|
+
for (let r = 0; r < d; r += 1)
|
|
1215
|
+
o.slides[e.realIndex + r] && o.slides[e.realIndex + r].classList.add(u);
|
|
1216
|
+
const i = e.params.thumbs.autoScrollOffset, t = i && !o.params.loop;
|
|
1217
|
+
if (e.realIndex !== o.realIndex || t) {
|
|
1218
|
+
const r = o.activeIndex;
|
|
1219
|
+
let p, n;
|
|
1220
|
+
if (o.params.loop) {
|
|
1221
|
+
const a = o.slides.find((h) => h.getAttribute("data-swiper-slide-index") === `${e.realIndex}`);
|
|
1222
|
+
p = o.slides.indexOf(a), n = e.activeIndex > e.previousIndex ? "next" : "prev";
|
|
1191
1223
|
} else
|
|
1192
|
-
|
|
1193
|
-
|
|
1224
|
+
p = e.realIndex, n = p > e.previousIndex ? "next" : "prev";
|
|
1225
|
+
t && (p += n === "next" ? i : -1 * i), o.visibleSlidesIndexes && o.visibleSlidesIndexes.indexOf(p) < 0 && (o.params.centeredSlides ? p > r ? p = p - Math.floor(v / 2) + 1 : p = p + Math.floor(v / 2) - 1 : p > r && o.params.slidesPerGroup, o.slideTo(p, f ? 0 : void 0));
|
|
1194
1226
|
}
|
|
1195
1227
|
}
|
|
1196
1228
|
l("beforeInit", () => {
|
|
1197
1229
|
const {
|
|
1198
|
-
thumbs:
|
|
1230
|
+
thumbs: f
|
|
1199
1231
|
} = e.params;
|
|
1200
|
-
if (!(!
|
|
1201
|
-
if (typeof
|
|
1202
|
-
const
|
|
1203
|
-
const
|
|
1204
|
-
if (
|
|
1205
|
-
|
|
1206
|
-
else if (
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1232
|
+
if (!(!f || !f.swiper))
|
|
1233
|
+
if (typeof f.swiper == "string" || f.swiper instanceof HTMLElement) {
|
|
1234
|
+
const o = ae(), v = () => {
|
|
1235
|
+
const u = typeof f.swiper == "string" ? o.querySelector(f.swiper) : f.swiper;
|
|
1236
|
+
if (u && u.swiper)
|
|
1237
|
+
f.swiper = u.swiper, $(), S(!0);
|
|
1238
|
+
else if (u) {
|
|
1239
|
+
const i = `${e.params.eventsPrefix}init`, t = (r) => {
|
|
1240
|
+
f.swiper = r.detail[0], u.removeEventListener(i, t), $(), S(!0), f.swiper.update(), e.update();
|
|
1209
1241
|
};
|
|
1210
|
-
|
|
1242
|
+
u.addEventListener(i, t);
|
|
1211
1243
|
}
|
|
1212
|
-
return
|
|
1213
|
-
},
|
|
1244
|
+
return u;
|
|
1245
|
+
}, d = () => {
|
|
1214
1246
|
if (e.destroyed) return;
|
|
1215
|
-
|
|
1247
|
+
v() || requestAnimationFrame(d);
|
|
1216
1248
|
};
|
|
1217
|
-
requestAnimationFrame(
|
|
1249
|
+
requestAnimationFrame(d);
|
|
1218
1250
|
} else
|
|
1219
|
-
$(),
|
|
1251
|
+
$(), S(!0);
|
|
1220
1252
|
}), l("slideChange update resize observerUpdate", () => {
|
|
1221
|
-
|
|
1222
|
-
}), l("setTransition", (
|
|
1223
|
-
const
|
|
1224
|
-
!
|
|
1253
|
+
S();
|
|
1254
|
+
}), l("setTransition", (f, o) => {
|
|
1255
|
+
const v = e.thumbs.swiper;
|
|
1256
|
+
!v || v.destroyed || v.setTransition(o);
|
|
1225
1257
|
}), l("beforeDestroy", () => {
|
|
1226
|
-
const
|
|
1227
|
-
!
|
|
1258
|
+
const f = e.thumbs.swiper;
|
|
1259
|
+
!f || f.destroyed || w && f.destroy();
|
|
1228
1260
|
}), Object.assign(e.thumbs, {
|
|
1229
1261
|
init: $,
|
|
1230
|
-
update:
|
|
1262
|
+
update: S
|
|
1231
1263
|
});
|
|
1232
1264
|
}
|
|
1233
|
-
function
|
|
1265
|
+
function lt(s) {
|
|
1234
1266
|
let {
|
|
1235
1267
|
swiper: e,
|
|
1236
|
-
extendParams:
|
|
1268
|
+
extendParams: C,
|
|
1237
1269
|
emit: l,
|
|
1238
1270
|
once: m
|
|
1239
|
-
} =
|
|
1240
|
-
|
|
1271
|
+
} = s;
|
|
1272
|
+
C({
|
|
1241
1273
|
freeMode: {
|
|
1242
1274
|
enabled: !1,
|
|
1243
1275
|
momentum: !0,
|
|
@@ -1249,109 +1281,109 @@ function at(r) {
|
|
|
1249
1281
|
minimumVelocity: 0.02
|
|
1250
1282
|
}
|
|
1251
1283
|
});
|
|
1252
|
-
function
|
|
1284
|
+
function w() {
|
|
1253
1285
|
if (e.params.cssMode) return;
|
|
1254
|
-
const
|
|
1255
|
-
e.setTranslate(
|
|
1286
|
+
const S = e.getTranslate();
|
|
1287
|
+
e.setTranslate(S), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
|
|
1256
1288
|
currentPos: e.rtl ? e.translate : -e.translate
|
|
1257
1289
|
});
|
|
1258
1290
|
}
|
|
1259
1291
|
function T() {
|
|
1260
1292
|
if (e.params.cssMode) return;
|
|
1261
1293
|
const {
|
|
1262
|
-
touchEventsData:
|
|
1263
|
-
touches:
|
|
1294
|
+
touchEventsData: S,
|
|
1295
|
+
touches: f
|
|
1264
1296
|
} = e;
|
|
1265
|
-
|
|
1266
|
-
position:
|
|
1267
|
-
time:
|
|
1268
|
-
}),
|
|
1269
|
-
position:
|
|
1270
|
-
time:
|
|
1297
|
+
S.velocities.length === 0 && S.velocities.push({
|
|
1298
|
+
position: f[e.isHorizontal() ? "startX" : "startY"],
|
|
1299
|
+
time: S.touchStartTime
|
|
1300
|
+
}), S.velocities.push({
|
|
1301
|
+
position: f[e.isHorizontal() ? "currentX" : "currentY"],
|
|
1302
|
+
time: Se()
|
|
1271
1303
|
});
|
|
1272
1304
|
}
|
|
1273
|
-
function $(
|
|
1305
|
+
function $(S) {
|
|
1274
1306
|
let {
|
|
1275
|
-
currentPos:
|
|
1276
|
-
} =
|
|
1307
|
+
currentPos: f
|
|
1308
|
+
} = S;
|
|
1277
1309
|
if (e.params.cssMode) return;
|
|
1278
1310
|
const {
|
|
1279
|
-
params:
|
|
1280
|
-
wrapperEl:
|
|
1281
|
-
rtlTranslate:
|
|
1282
|
-
snapGrid:
|
|
1283
|
-
touchEventsData:
|
|
1284
|
-
} = e,
|
|
1285
|
-
if (
|
|
1311
|
+
params: o,
|
|
1312
|
+
wrapperEl: v,
|
|
1313
|
+
rtlTranslate: d,
|
|
1314
|
+
snapGrid: u,
|
|
1315
|
+
touchEventsData: i
|
|
1316
|
+
} = e, r = Se() - i.touchStartTime;
|
|
1317
|
+
if (f < -e.minTranslate()) {
|
|
1286
1318
|
e.slideTo(e.activeIndex);
|
|
1287
1319
|
return;
|
|
1288
1320
|
}
|
|
1289
|
-
if (
|
|
1290
|
-
e.slides.length <
|
|
1321
|
+
if (f > -e.maxTranslate()) {
|
|
1322
|
+
e.slides.length < u.length ? e.slideTo(u.length - 1) : e.slideTo(e.slides.length - 1);
|
|
1291
1323
|
return;
|
|
1292
1324
|
}
|
|
1293
|
-
if (
|
|
1294
|
-
if (
|
|
1295
|
-
const
|
|
1296
|
-
e.velocity =
|
|
1325
|
+
if (o.freeMode.momentum) {
|
|
1326
|
+
if (i.velocities.length > 1) {
|
|
1327
|
+
const x = i.velocities.pop(), b = i.velocities.pop(), X = x.position - b.position, k = x.time - b.time;
|
|
1328
|
+
e.velocity = X / k, e.velocity /= 2, Math.abs(e.velocity) < o.freeMode.minimumVelocity && (e.velocity = 0), (k > 150 || Se() - x.time > 300) && (e.velocity = 0);
|
|
1297
1329
|
} else
|
|
1298
1330
|
e.velocity = 0;
|
|
1299
|
-
e.velocity *=
|
|
1300
|
-
let
|
|
1301
|
-
const
|
|
1302
|
-
let
|
|
1303
|
-
|
|
1304
|
-
let
|
|
1305
|
-
const
|
|
1331
|
+
e.velocity *= o.freeMode.momentumVelocityRatio, i.velocities.length = 0;
|
|
1332
|
+
let p = 1e3 * o.freeMode.momentumRatio;
|
|
1333
|
+
const n = e.velocity * p;
|
|
1334
|
+
let a = e.translate + n;
|
|
1335
|
+
d && (a = -a);
|
|
1336
|
+
let h = !1, M;
|
|
1337
|
+
const g = Math.abs(e.velocity) * 20 * o.freeMode.momentumBounceRatio;
|
|
1306
1338
|
let L;
|
|
1307
|
-
if (
|
|
1308
|
-
|
|
1309
|
-
else if (
|
|
1310
|
-
|
|
1311
|
-
else if (
|
|
1312
|
-
let
|
|
1313
|
-
for (let
|
|
1314
|
-
if (
|
|
1315
|
-
|
|
1339
|
+
if (a < e.maxTranslate())
|
|
1340
|
+
o.freeMode.momentumBounce ? (a + e.maxTranslate() < -g && (a = e.maxTranslate() - g), M = e.maxTranslate(), h = !0, i.allowMomentumBounce = !0) : a = e.maxTranslate(), o.loop && o.centeredSlides && (L = !0);
|
|
1341
|
+
else if (a > e.minTranslate())
|
|
1342
|
+
o.freeMode.momentumBounce ? (a - e.minTranslate() > g && (a = e.minTranslate() + g), M = e.minTranslate(), h = !0, i.allowMomentumBounce = !0) : a = e.minTranslate(), o.loop && o.centeredSlides && (L = !0);
|
|
1343
|
+
else if (o.freeMode.sticky) {
|
|
1344
|
+
let x;
|
|
1345
|
+
for (let b = 0; b < u.length; b += 1)
|
|
1346
|
+
if (u[b] > -a) {
|
|
1347
|
+
x = b;
|
|
1316
1348
|
break;
|
|
1317
1349
|
}
|
|
1318
|
-
Math.abs(
|
|
1350
|
+
Math.abs(u[x] - a) < Math.abs(u[x - 1] - a) || e.swipeDirection === "next" ? a = u[x] : a = u[x - 1], a = -a;
|
|
1319
1351
|
}
|
|
1320
1352
|
if (L && m("transitionEnd", () => {
|
|
1321
1353
|
e.loopFix();
|
|
1322
1354
|
}), e.velocity !== 0) {
|
|
1323
|
-
if (
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1355
|
+
if (d ? p = Math.abs((-a - e.translate) / e.velocity) : p = Math.abs((a - e.translate) / e.velocity), o.freeMode.sticky) {
|
|
1356
|
+
const x = Math.abs((d ? -a : a) - e.translate), b = e.slidesSizesGrid[e.activeIndex];
|
|
1357
|
+
x < b ? p = o.speed : x < 2 * b ? p = o.speed * 1.5 : p = o.speed * 2.5;
|
|
1326
1358
|
}
|
|
1327
|
-
} else if (
|
|
1359
|
+
} else if (o.freeMode.sticky) {
|
|
1328
1360
|
e.slideToClosest();
|
|
1329
1361
|
return;
|
|
1330
1362
|
}
|
|
1331
|
-
|
|
1332
|
-
!e || e.destroyed || !
|
|
1333
|
-
e.setTranslate(
|
|
1363
|
+
o.freeMode.momentumBounce && h ? (e.updateProgress(M), e.setTransition(p), e.setTranslate(a), e.transitionStart(!0, e.swipeDirection), e.animating = !0, ge(v, () => {
|
|
1364
|
+
!e || e.destroyed || !i.allowMomentumBounce || (l("momentumBounce"), e.setTransition(o.speed), setTimeout(() => {
|
|
1365
|
+
e.setTranslate(M), ge(v, () => {
|
|
1334
1366
|
!e || e.destroyed || e.transitionEnd();
|
|
1335
1367
|
});
|
|
1336
1368
|
}, 0));
|
|
1337
|
-
})) : e.velocity ? (l("_freeModeNoMomentumRelease"), e.updateProgress(
|
|
1369
|
+
})) : e.velocity ? (l("_freeModeNoMomentumRelease"), e.updateProgress(a), e.setTransition(p), e.setTranslate(a), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, ge(v, () => {
|
|
1338
1370
|
!e || e.destroyed || e.transitionEnd();
|
|
1339
|
-
}))) : e.updateProgress(
|
|
1340
|
-
} else if (
|
|
1371
|
+
}))) : e.updateProgress(a), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
1372
|
+
} else if (o.freeMode.sticky) {
|
|
1341
1373
|
e.slideToClosest();
|
|
1342
1374
|
return;
|
|
1343
|
-
} else
|
|
1344
|
-
(!
|
|
1375
|
+
} else o.freeMode && l("_freeModeNoMomentumRelease");
|
|
1376
|
+
(!o.freeMode.momentum || r >= o.longSwipesMs) && (l("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
|
|
1345
1377
|
}
|
|
1346
1378
|
Object.assign(e, {
|
|
1347
1379
|
freeMode: {
|
|
1348
|
-
onTouchStart:
|
|
1380
|
+
onTouchStart: w,
|
|
1349
1381
|
onTouchMove: T,
|
|
1350
1382
|
onTouchEnd: $
|
|
1351
1383
|
}
|
|
1352
1384
|
});
|
|
1353
1385
|
}
|
|
1354
|
-
const
|
|
1386
|
+
const ut = ["id"], ct = ["id", "data-cy"], dt = ["data-idx", "loading", "fetchpriority", "alt", "width", "height", "onLoad"], pt = ["id"], ft = ["loading", "alt"], mt = /* @__PURE__ */ Re({
|
|
1355
1387
|
inheritAttrs: !1,
|
|
1356
1388
|
__name: "SwiperCarousel",
|
|
1357
1389
|
props: {
|
|
@@ -1365,199 +1397,199 @@ const nt = ["id"], st = ["id", "data-cy"], rt = ["data-idx", "loading", "fetchpr
|
|
|
1365
1397
|
shiftFirstImage: { type: Boolean, default: !1 }
|
|
1366
1398
|
},
|
|
1367
1399
|
emits: ["moved", "click", "firstSlideLoaded"],
|
|
1368
|
-
setup(
|
|
1369
|
-
const l =
|
|
1370
|
-
swiperParams: { modules: [
|
|
1400
|
+
setup(s, { expose: e, emit: C }) {
|
|
1401
|
+
const l = C, m = Fe({
|
|
1402
|
+
swiperParams: { modules: [at] },
|
|
1371
1403
|
swiper: null,
|
|
1372
1404
|
initCarousel: !1
|
|
1373
|
-
}),
|
|
1374
|
-
() =>
|
|
1375
|
-
),
|
|
1376
|
-
|
|
1377
|
-
},
|
|
1378
|
-
if (!
|
|
1379
|
-
return { src:
|
|
1380
|
-
let
|
|
1381
|
-
if (
|
|
1382
|
-
for (const P in
|
|
1383
|
-
const { mq: z, width:
|
|
1384
|
-
|
|
1405
|
+
}), w = xe(), T = xe(!1), $ = Ne(), S = Q(() => s.id ?? $), f = Q(() => s.swiperOptions?.slidesPerView || 1), o = Q(() => s.thumbSwiperOptions?.slidesPerView || 1), v = Q(() => !!s.swiperOptions?.keyboard), d = Q(() => !!s.swiperOptions.navigation), u = Q(() => !!s.swiperOptions.pagination), i = Q(() => !!s.swiperOptions.autoplay), t = Q(
|
|
1406
|
+
() => s.swiperOptions?.effect || "slider"
|
|
1407
|
+
), r = () => {
|
|
1408
|
+
s.swiperOptions && je(s.swiperOptions, m.swiperParams);
|
|
1409
|
+
}, p = (g, L = -1) => {
|
|
1410
|
+
if (!g.images)
|
|
1411
|
+
return { src: g.src || "" };
|
|
1412
|
+
let x = "", b = "", X = "";
|
|
1413
|
+
if (s.artDirection) {
|
|
1414
|
+
for (const P in s.artDirection) {
|
|
1415
|
+
const { mq: z, width: D } = s.artDirection[P];
|
|
1416
|
+
D && (X += X ? `,${z} ${parseInt(D)}px` : `${z} ${parseInt(D)}px`);
|
|
1385
1417
|
}
|
|
1386
|
-
|
|
1387
|
-
const
|
|
1388
|
-
return !
|
|
1389
|
-
}, ""),
|
|
1418
|
+
b = g.images.reduce((P, z, D) => {
|
|
1419
|
+
const I = Object.values(s.artDirection)[D];
|
|
1420
|
+
return !I || !I.width || (P += P ? `, ${z.storagePath} ${I.width}` : `${z.storagePath} ${I.width}`), P;
|
|
1421
|
+
}, ""), x = g.images[0].storagePath;
|
|
1390
1422
|
} else {
|
|
1391
|
-
let P =
|
|
1392
|
-
|
|
1423
|
+
let P = g.images;
|
|
1424
|
+
g.images.length > 3 ? P = g.images.slice(2, 5) : s.shiftFirstImage && (P[0] = P[1]), b = P.reduce((z, D, I) => (I === 0 && (x = `${D.storagePath}`), I > 0 && (z += ", "), `${z}${D.storagePath} ${I + 1}x`), "");
|
|
1393
1425
|
}
|
|
1394
|
-
const k =
|
|
1395
|
-
return typeof
|
|
1396
|
-
},
|
|
1397
|
-
if (typeof
|
|
1398
|
-
const L =
|
|
1399
|
-
if (L && !L.src && (L.src = L.dataset.src || "", L.srcset = L.dataset.srcset || ""),
|
|
1426
|
+
const k = x, W = b;
|
|
1427
|
+
return typeof f.value == "number" && L > f.value ? (x = "", b = "", { sizes: X, "data-src": k, "data-srcset": W }) : { src: x, srcset: b, sizes: X };
|
|
1428
|
+
}, n = [], a = (g) => {
|
|
1429
|
+
if (typeof f.value == "string") return;
|
|
1430
|
+
const L = n[g];
|
|
1431
|
+
if (L && !L.src && (L.src = L.dataset.src || "", L.srcset = L.dataset.srcset || ""), g < f.value || g + 1 >= (s.images ?? []).length)
|
|
1400
1432
|
return;
|
|
1401
|
-
const
|
|
1402
|
-
|
|
1433
|
+
const x = n[g + 1];
|
|
1434
|
+
x && !x.src && (x.src = x?.dataset.src || "", x.srcset = x?.dataset.srcset || "");
|
|
1403
1435
|
};
|
|
1404
1436
|
e({
|
|
1405
|
-
moveTo(
|
|
1406
|
-
m.swiper?.slideTo(
|
|
1437
|
+
moveTo(g, L = 0, x = !0) {
|
|
1438
|
+
m.swiper?.slideTo(g, L, x);
|
|
1407
1439
|
}
|
|
1408
1440
|
});
|
|
1409
|
-
const
|
|
1410
|
-
|
|
1411
|
-
|
|
1441
|
+
const h = xe(null), M = (g) => {
|
|
1442
|
+
g === 0 && n && n[g] && ke(() => {
|
|
1443
|
+
h.value?.setAttribute("data-first-slide-loaded", "true"), l("firstSlideLoaded");
|
|
1412
1444
|
});
|
|
1413
1445
|
};
|
|
1414
|
-
return
|
|
1415
|
-
if (
|
|
1446
|
+
return qe(async () => {
|
|
1447
|
+
if (r(), v.value && (m.swiperParams.modules?.push(tt), m.swiperParams.keyboard = s.swiperOptions.keyboard), u.value && (m.swiperParams.modules?.push(nt), m.swiperParams.pagination = {
|
|
1416
1448
|
el: ".swiper-pagination",
|
|
1417
|
-
renderFraction: (
|
|
1418
|
-
<span data-cy="swiper-pagination-current" class="${
|
|
1449
|
+
renderFraction: (x, b) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
|
|
1450
|
+
<span data-cy="swiper-pagination-current" class="${x}"></span>
|
|
1419
1451
|
/
|
|
1420
|
-
<span data-cy="swiper-pagination-total" class="${
|
|
1452
|
+
<span data-cy="swiper-pagination-total" class="${b}"></span>
|
|
1421
1453
|
</div>`,
|
|
1422
1454
|
...typeof m.swiperParams.pagination == "boolean" ? {} : m.swiperParams.pagination
|
|
1423
|
-
}),
|
|
1424
|
-
m.swiperParams.modules?.push(
|
|
1425
|
-
const
|
|
1426
|
-
...
|
|
1455
|
+
}), d.value) {
|
|
1456
|
+
m.swiperParams.modules?.push(it);
|
|
1457
|
+
const x = {
|
|
1458
|
+
...s.swiperOptions.navigation.nextEl ?? {
|
|
1427
1459
|
nextEl: ".swiper-button-next"
|
|
1428
1460
|
},
|
|
1429
|
-
...
|
|
1461
|
+
...s.swiperOptions.navigation.prevEl ?? {
|
|
1430
1462
|
prevEl: ".swiper-button-prev"
|
|
1431
1463
|
}
|
|
1432
1464
|
};
|
|
1433
1465
|
m.swiperParams.navigation = {
|
|
1434
|
-
...typeof
|
|
1435
|
-
...
|
|
1466
|
+
...typeof s.swiperOptions.navigation == "object" ? s.swiperOptions.navigation : {},
|
|
1467
|
+
...x
|
|
1436
1468
|
};
|
|
1437
1469
|
}
|
|
1438
|
-
|
|
1439
|
-
const
|
|
1470
|
+
i.value && (m.swiperParams.modules?.push(rt), m.swiperParams.autoplay = s.swiperOptions.autoplay);
|
|
1471
|
+
const g = {
|
|
1440
1472
|
...m.swiperParams,
|
|
1441
1473
|
on: {
|
|
1442
1474
|
init: () => {
|
|
1443
1475
|
T.value = !0;
|
|
1444
1476
|
},
|
|
1445
|
-
slideChange: (
|
|
1446
|
-
|
|
1477
|
+
slideChange: (x) => {
|
|
1478
|
+
a(x.activeIndex), l("moved", { activeIndex: x.activeIndex });
|
|
1447
1479
|
}
|
|
1448
1480
|
}
|
|
1449
1481
|
};
|
|
1450
1482
|
let L = null;
|
|
1451
|
-
|
|
1452
|
-
...
|
|
1453
|
-
modules: [
|
|
1454
|
-
}),
|
|
1483
|
+
s.thumbSwiperOptions && (m.swiperParams.modules?.push(ot), m.swiperParams.modules?.push(st), L = new Oe(`#thumb_${S.value}`, {
|
|
1484
|
+
...s.thumbSwiperOptions,
|
|
1485
|
+
modules: [lt]
|
|
1486
|
+
}), g.thumbs = {
|
|
1455
1487
|
swiper: L
|
|
1456
|
-
}),
|
|
1457
|
-
}),
|
|
1458
|
-
() =>
|
|
1488
|
+
}), g.lazyPreloadPrevNext = 1, m.swiper = new Oe(`#${S.value}`, g), w.value?.classList.remove("uikit-hidden");
|
|
1489
|
+
}), Ve(
|
|
1490
|
+
() => s.images,
|
|
1459
1491
|
() => {
|
|
1460
|
-
|
|
1492
|
+
ke(() => {
|
|
1461
1493
|
m.swiper?.update();
|
|
1462
1494
|
});
|
|
1463
1495
|
}
|
|
1464
|
-
), (
|
|
1465
|
-
id: `root-${
|
|
1496
|
+
), (g, L) => (j(), V("div", {
|
|
1497
|
+
id: `root-${S.value}`,
|
|
1466
1498
|
ref_key: "root",
|
|
1467
|
-
ref:
|
|
1468
|
-
class:
|
|
1499
|
+
ref: h,
|
|
1500
|
+
class: G(["swiper-carousel-root", g.$attrs["root-classes"]])
|
|
1469
1501
|
}, [
|
|
1470
|
-
|
|
1471
|
-
id:
|
|
1472
|
-
"data-cy":
|
|
1473
|
-
class:
|
|
1502
|
+
_("div", {
|
|
1503
|
+
id: S.value,
|
|
1504
|
+
"data-cy": g.$attrs["data-cy"],
|
|
1505
|
+
class: G(["swiper", g.$attrs["swiper-classes"]])
|
|
1474
1506
|
}, [
|
|
1475
|
-
|
|
1507
|
+
_("div", {
|
|
1476
1508
|
ref_key: "swiperWrapper",
|
|
1477
|
-
ref:
|
|
1478
|
-
class:
|
|
1479
|
-
|
|
1480
|
-
|
|
1509
|
+
ref: w,
|
|
1510
|
+
class: G(["swiper-wrapper", [
|
|
1511
|
+
g.$attrs["swiper-wrapper-classes"],
|
|
1512
|
+
t.value === "none" && "no-transition"
|
|
1481
1513
|
]]),
|
|
1482
|
-
onClick: L[0] || (L[0] = (
|
|
1514
|
+
onClick: L[0] || (L[0] = (x) => l("click"))
|
|
1483
1515
|
}, [
|
|
1484
|
-
|
|
1485
|
-
(
|
|
1486
|
-
key: `swiper_${
|
|
1487
|
-
class:
|
|
1516
|
+
Xe(g.$slots, "default", {}, () => [
|
|
1517
|
+
(j(!0), V(Ce, null, Ye(g.images, (x, b) => (j(), V("div", {
|
|
1518
|
+
key: `swiper_${S.value}_${b}`,
|
|
1519
|
+
class: G(["swiper-slide", g.$attrs["swiper-slide-classes"]])
|
|
1488
1520
|
}, [
|
|
1489
|
-
|
|
1490
|
-
class:
|
|
1521
|
+
_("div", {
|
|
1522
|
+
class: G(["swiper-zoom-container", g.$attrs["swiper-zoom-container-classes"]])
|
|
1491
1523
|
}, [
|
|
1492
|
-
|
|
1524
|
+
g.backgroundImage ? me("", !0) : (j(), V("img", De({
|
|
1493
1525
|
key: 0,
|
|
1494
1526
|
ref_for: !0,
|
|
1495
|
-
ref: (
|
|
1496
|
-
|
|
1527
|
+
ref: (X) => {
|
|
1528
|
+
n.push(X);
|
|
1497
1529
|
},
|
|
1498
|
-
class: ["disable-select", [
|
|
1499
|
-
"data-idx": `${
|
|
1500
|
-
},
|
|
1501
|
-
loading:
|
|
1502
|
-
fetchpriority: !
|
|
1503
|
-
alt:
|
|
1530
|
+
class: ["disable-select", [g.$attrs["slide-img-classes"] || x.classes]],
|
|
1531
|
+
"data-idx": `${S.value}-slide-img-${b}`
|
|
1532
|
+
}, p(x, b), {
|
|
1533
|
+
loading: g.lazyLoadImages || b >= f.value ? "lazy" : void 0,
|
|
1534
|
+
fetchpriority: !g.lazyLoadImages && b === 0 ? "high" : "low",
|
|
1535
|
+
alt: x.alt,
|
|
1504
1536
|
itemprop: "image",
|
|
1505
|
-
width:
|
|
1506
|
-
height:
|
|
1507
|
-
onLoad: (
|
|
1508
|
-
}), null, 16,
|
|
1537
|
+
width: x.width,
|
|
1538
|
+
height: x.height,
|
|
1539
|
+
onLoad: (X) => M(b)
|
|
1540
|
+
}), null, 16, dt))
|
|
1509
1541
|
], 2)
|
|
1510
1542
|
], 2))), 128)),
|
|
1511
|
-
|
|
1543
|
+
Xe(g.$slots, "last_slide", {}, void 0, !0)
|
|
1512
1544
|
], !0)
|
|
1513
1545
|
], 2),
|
|
1514
|
-
|
|
1546
|
+
u.value ? (j(), V("div", {
|
|
1515
1547
|
key: 0,
|
|
1516
|
-
class:
|
|
1517
|
-
onClick: L[1] || (L[1] =
|
|
1548
|
+
class: G([g.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
|
|
1549
|
+
onClick: L[1] || (L[1] = Te(() => {
|
|
1518
1550
|
}, ["stop"]))
|
|
1519
|
-
}, null, 2)) :
|
|
1520
|
-
|
|
1521
|
-
|
|
1551
|
+
}, null, 2)) : me("", !0),
|
|
1552
|
+
d.value ? (j(), V(Ce, { key: 1 }, [
|
|
1553
|
+
_("div", {
|
|
1522
1554
|
class: "swiper-button-prev",
|
|
1523
1555
|
"data-cy": "swiper-button-prev",
|
|
1524
|
-
onClick: L[2] || (L[2] =
|
|
1556
|
+
onClick: L[2] || (L[2] = Te(() => {
|
|
1525
1557
|
}, ["stop"]))
|
|
1526
1558
|
}),
|
|
1527
|
-
|
|
1559
|
+
_("div", {
|
|
1528
1560
|
class: "swiper-button-next",
|
|
1529
1561
|
"data-cy": "swiper-button-next",
|
|
1530
|
-
onClick: L[3] || (L[3] =
|
|
1562
|
+
onClick: L[3] || (L[3] = Te(() => {
|
|
1531
1563
|
}, ["stop"]))
|
|
1532
1564
|
})
|
|
1533
|
-
], 64)) :
|
|
1534
|
-
], 10,
|
|
1535
|
-
|
|
1565
|
+
], 64)) : me("", !0)
|
|
1566
|
+
], 10, ct),
|
|
1567
|
+
g.thumbSwiperOptions ? (j(), V("div", {
|
|
1536
1568
|
key: 0,
|
|
1537
|
-
id: `thumb_${
|
|
1569
|
+
id: `thumb_${S.value}`,
|
|
1538
1570
|
thumbsSlider: "",
|
|
1539
|
-
class:
|
|
1571
|
+
class: G(["swiper", g.$attrs["thumb-swiper-classes"]])
|
|
1540
1572
|
}, [
|
|
1541
|
-
|
|
1542
|
-
class:
|
|
1573
|
+
_("div", {
|
|
1574
|
+
class: G(["swiper-wrapper", g.$attrs["thumb-swiper-wrapper-classes"]])
|
|
1543
1575
|
}, [
|
|
1544
|
-
(
|
|
1545
|
-
key: `thumb_${
|
|
1546
|
-
class:
|
|
1576
|
+
(j(!0), V(Ce, null, Ye(g.images, (x, b) => (j(), V("div", {
|
|
1577
|
+
key: `thumb_${S.value}_${b}`,
|
|
1578
|
+
class: G(["swiper-slide", g.$attrs["thumb-img-wrapper-classes"]])
|
|
1547
1579
|
}, [
|
|
1548
|
-
|
|
1549
|
-
class:
|
|
1580
|
+
_("img", De({
|
|
1581
|
+
class: g.$attrs["thumb-img-classes"],
|
|
1550
1582
|
ref_for: !0
|
|
1551
|
-
},
|
|
1552
|
-
loading:
|
|
1553
|
-
alt:
|
|
1554
|
-
}), null, 16,
|
|
1583
|
+
}, p(x), {
|
|
1584
|
+
loading: b >= o.value ? "lazy" : void 0,
|
|
1585
|
+
alt: x.alt
|
|
1586
|
+
}), null, 16, ft)
|
|
1555
1587
|
], 2))), 128))
|
|
1556
1588
|
], 2)
|
|
1557
|
-
], 10,
|
|
1558
|
-
], 10,
|
|
1589
|
+
], 10, pt)) : me("", !0)
|
|
1590
|
+
], 10, ut));
|
|
1559
1591
|
}
|
|
1560
|
-
}),
|
|
1592
|
+
}), bt = /* @__PURE__ */ Ge(mt, [["__scopeId", "data-v-09ecb9f6"]]);
|
|
1561
1593
|
export {
|
|
1562
|
-
|
|
1594
|
+
bt as default
|
|
1563
1595
|
};
|