@marimo-team/islands 0.14.11-dev2 → 0.14.11-dev21
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/{ConnectedDataExplorerComponent-Dl7Gx8nj.js → ConnectedDataExplorerComponent-B98UAJGl.js} +4 -4
- package/dist/{ImageComparisonComponent-IsA0pccG.js → ImageComparisonComponent-3rx-X1eA.js} +1 -1
- package/dist/{VegaLite-C3jfIIJl.js → VegaLite-bssctYsi.js} +6961 -7180
- package/dist/{_baseUniq-DXGCzwrs.js → _baseUniq-n5nuGCm-.js} +36 -36
- package/dist/{any-language-editor-BbtP_crK.js → any-language-editor-CTuUQiXP.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-B5UTatfK.js → architectureDiagram-NQ2NVSRB-Ghs-gTjF.js} +897 -894
- package/dist/assets/{worker-BcyuOSTi.js → save-worker-fI5ofStJ.js} +1076 -1649
- package/dist/assets/{save-worker-BIDtxCd1.js → worker-Bfk1FrzG.js} +1627 -1747
- package/dist/assets/worker-BldghCZh.js +3752 -0
- package/dist/{blockDiagram-JOT3LUYC-BsdaPVqe.js → blockDiagram-PHRCVELO-BJrdpvE8.js} +534 -522
- package/dist/{c4Diagram-VJAJSXHY-mAt84R4z.js → c4Diagram-6F6E4RAY-C3mvzJPu.js} +4 -4
- package/dist/{channel-BQIWHLpc.js → channel-Dv_KwBSx.js} +1 -1
- package/dist/{chunk-4BMEZGHF-CKIxJWxP.js → chunk-353BL4L5-DE1uUKLI.js} +1 -1
- package/dist/{chunk-D6G4REZN-CgGV16Ao.js → chunk-67H74DCK-BSe-uUSS.js} +1 -1
- package/dist/chunk-6OLS64BW-lmSfyWue.js +1383 -0
- package/dist/{chunk-XZIHB7SX-Bwue5JjE.js → chunk-AACKK3MU-DAmuROVD.js} +1 -1
- package/dist/chunk-BFAMUDN2-D9C6R9UM.js +8 -0
- package/dist/chunk-E2GYISFI-BzFDmP6o.js +19 -0
- package/dist/{chunk-A2AXSNBT-wMvlVMnZ.js → chunk-QEP2MXWD-BILXx23p.js} +30 -27
- package/dist/chunk-SKB7J2MH-CxMkQppY.js +20 -0
- package/dist/{classDiagram-GIVACNV2-DOmcKRwM.js → classDiagram-BGRH5UQR-BbYr5aD9.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DOmcKRwM.js → classDiagram-v2-O24JOBDK-BbYr5aD9.js} +2 -2
- package/dist/{clone-PHSHUhb-.js → clone-DuBujAk0.js} +1 -1
- package/dist/{dagre-OKDRZEBW-D5HNBllU.js → dagre-FFZHY6LT-DO5nLpLx.js} +8 -8
- package/dist/{data-editor-Coz_zrsX.js → data-editor-C8yM5wyh.js} +213 -201
- package/dist/diagram-3EMPZRKU-B1rYMJMS.js +313 -0
- package/dist/diagram-5UYTHUR4-BUu8PsmE.js +137 -0
- package/dist/{diagram-SSKATNLV-BsO89QJN.js → diagram-ZTM2IBQH-lz_uZrYh.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-DWIMKTfS.js → erDiagram-R3QVA2FD-D_A2jrJV.js} +6 -5
- package/dist/{flowDiagram-4HSFHLVR-CnO0wmaL.js → flowDiagram-PKI6S5ZS-Bv6D_bIf.js} +283 -278
- package/dist/{ganttDiagram-APWFNJXF-otclLFL4.js → ganttDiagram-EK5VF46D-CbkaARm4.js} +453 -439
- package/dist/{gitGraphDiagram-7IBYFJ6S-C7F3RAja.js → gitGraphDiagram-GW3U2K7C-B8ZGoOT-.js} +35 -35
- package/dist/{graph-Btsdly6D.js → graph-txVVq_De.js} +3 -3
- package/dist/{index-BreCkhLm.js → index-BI6tloBb.js} +3 -3
- package/dist/{index-CcRF-HlA.js → index-CFJazcU-.js} +4 -4
- package/dist/{index-BGmzdYRo.js → index-OiR0LgXX.js} +6 -3
- package/dist/{index-z8OyYHEh.js → index-fJDj-gSp.js} +1 -1
- package/dist/index-pBmAzQJl.js +235 -0
- package/dist/{infoDiagram-PH2N3AL5-BwcXDzwE.js → infoDiagram-RLU2ROGC-DJw6nWp0.js} +5 -3
- package/dist/journeyDiagram-EWQZEKCU-1oCDdLcB.js +836 -0
- package/dist/{kanban-definition-NDS4AKOZ-3NJYjnpz.js → kanban-definition-ILFWEQ3N-nKJ02Ox0.js} +41 -39
- package/dist/{layout-qfivsCI_.js → layout-CbUwX9d6.js} +49 -49
- package/dist/{linear-D_Kojy5s.js → linear-sn9_bxtB.js} +22 -22
- package/dist/{main-DLuap1gp.js → main-D9-48wlP.js} +45053 -45130
- package/dist/main.js +1 -1
- package/dist/{mermaid-DCIbF0Rd.js → mermaid-CRRCnedu.js} +4925 -4853
- package/dist/min-CYaGuxZ4.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-BtSBR7-c.js → mindmap-definition-CZNETY7S-CV62GMPJ.js} +3 -3
- package/dist/{pieDiagram-IB7DONF6-TiB_3g9z.js → pieDiagram-NIOCPIFQ-Bcs4p6kX.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-B0DPjp7Z.js → quadrantDiagram-2OG54O6I-BlY5yea6.js} +2 -2
- package/dist/{react-plotly-BXWB3UQ5.js → react-plotly-B1SKP2B-.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-D_IlbRr_.js → requirementDiagram-SO3GGRV7-rmiJc5mh.js} +5 -4
- package/dist/{sankeyDiagram-QLVOVGJD-BHm9uvp_.js → sankeyDiagram-4UZDY2LN-TVzOLFCA.js} +11 -11
- package/dist/{sequenceDiagram-X6HHIX6F-3wcWWNtl.js → sequenceDiagram-ZIKVLSP4-POBNIgPB.js} +151 -149
- package/dist/{slides-component-JEGZbKgL.js → slides-component-5Y9DQzeV.js} +969 -962
- package/dist/stateDiagram-XX37X6EN-lR-7TG5f.js +264 -0
- package/dist/{stateDiagram-v2-YXO3MK2T-DTdt4vFc.js → stateDiagram-v2-GD6S3NHB-CYV2YCSY.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DyZM4tB4.js → time-BytuUgXk.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-Of4cvbYH.js → timeline-definition-RI47OAVP-DOrNrVHk.js} +99 -102
- package/dist/{radar-MK3ICKWK-BMSp8zaN.js → treemap-FKARHQ26-BOli4yXg.js} +2469 -2330
- package/dist/{vega-component-Dwc_9OTG.js → vega-component-KZ-3GH6H.js} +21 -21
- package/dist/{xychartDiagram-VJFVF3MP-5Jc993Va.js → xychartDiagram-H2YORKM3-CUOFDcIy.js} +409 -375
- package/package.json +37 -37
- package/dist/assets/worker-Dz6PPEGc.js +0 -4115
- package/dist/chunk-AEK57VVT-BAi7QtEw.js +0 -1416
- package/dist/chunk-RZ5BOZE2-D7Ag0UF8.js +0 -24
- package/dist/diagram-VNBRO52H-CA8VTm7L.js +0 -126
- package/dist/journeyDiagram-U35MCT3I-Co4hTdu9.js +0 -809
- package/dist/min-CQBZldos.js +0 -80
- package/dist/stateDiagram-DGXRK772-DbH3Rdz4.js +0 -271
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as R, b as V, c as bt, aT as xt, M as Ke, j as ge, O as yt } from "./main-D9-48wlP.js";
|
|
2
2
|
function Ze(t) {
|
|
3
3
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
4
4
|
}
|
|
@@ -68,7 +68,7 @@ function Z() {
|
|
|
68
68
|
const t = typeof document < "u" ? document : {};
|
|
69
69
|
return je(t, st), t;
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const Tt = {
|
|
72
72
|
document: st,
|
|
73
73
|
navigator: {
|
|
74
74
|
userAgent: ""
|
|
@@ -128,12 +128,12 @@ const yt = {
|
|
|
128
128
|
};
|
|
129
129
|
function k() {
|
|
130
130
|
const t = typeof window < "u" ? window : {};
|
|
131
|
-
return je(t,
|
|
131
|
+
return je(t, Tt), t;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ct(t) {
|
|
134
134
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Mt(t) {
|
|
137
137
|
const e = t;
|
|
138
138
|
Object.keys(e).forEach((i) => {
|
|
139
139
|
try {
|
|
@@ -146,13 +146,13 @@ function Ct(t) {
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function rt(t, e) {
|
|
150
150
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Me() {
|
|
153
153
|
return Date.now();
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Pt(t) {
|
|
156
156
|
const e = k();
|
|
157
157
|
let i;
|
|
158
158
|
return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
|
|
@@ -160,31 +160,31 @@ function Mt(t) {
|
|
|
160
160
|
function We(t, e) {
|
|
161
161
|
e === void 0 && (e = "x");
|
|
162
162
|
const i = k();
|
|
163
|
-
let s,
|
|
164
|
-
const d =
|
|
165
|
-
return i.WebKitCSSMatrix ? (
|
|
163
|
+
let s, n, r;
|
|
164
|
+
const d = Pt(t);
|
|
165
|
+
return i.WebKitCSSMatrix ? (n = d.transform || d.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((o) => o.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(n === "none" ? "" : n)) : (r = d.MozTransform || d.OTransform || d.MsTransform || d.msTransform || d.transform || d.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? n = r.m41 : s.length === 16 ? n = parseFloat(s[12]) : n = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? n = r.m42 : s.length === 16 ? n = parseFloat(s[13]) : n = parseFloat(s[5])), n || 0;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Te(t) {
|
|
168
168
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Lt(t) {
|
|
171
171
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
172
172
|
}
|
|
173
173
|
function j() {
|
|
174
174
|
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
175
175
|
for (let i = 1; i < arguments.length; i += 1) {
|
|
176
176
|
const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
|
|
177
|
-
if (s != null && !
|
|
178
|
-
const
|
|
179
|
-
for (let
|
|
180
|
-
const o = r
|
|
181
|
-
c !== void 0 && c.enumerable && (
|
|
177
|
+
if (s != null && !Lt(s)) {
|
|
178
|
+
const n = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
|
|
179
|
+
for (let r = 0, d = n.length; r < d; r += 1) {
|
|
180
|
+
const o = n[r], c = Object.getOwnPropertyDescriptor(s, o);
|
|
181
|
+
c !== void 0 && c.enumerable && (Te(t[o]) && Te(s[o]) ? s[o].__swiper__ ? t[o] = s[o] : j(t[o], s[o]) : !Te(t[o]) && Te(s[o]) ? (t[o] = {}, s[o].__swiper__ ? t[o] = s[o] : j(t[o], s[o])) : t[o] = s[o]);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
return t;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function we(t, e, i) {
|
|
188
188
|
t.style.setProperty(e, i);
|
|
189
189
|
}
|
|
190
190
|
function nt(t) {
|
|
@@ -193,34 +193,34 @@ function nt(t) {
|
|
|
193
193
|
targetPosition: i,
|
|
194
194
|
side: s
|
|
195
195
|
} = t;
|
|
196
|
-
const
|
|
196
|
+
const n = k(), r = -e.translate;
|
|
197
197
|
let d = null, o;
|
|
198
198
|
const c = e.params.speed;
|
|
199
|
-
e.wrapperEl.style.scrollSnapType = "none",
|
|
200
|
-
const f = i >
|
|
199
|
+
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
200
|
+
const f = i > r ? "next" : "prev", p = (v, w) => f === "next" && v >= w || f === "prev" && v <= w, m = () => {
|
|
201
201
|
o = (/* @__PURE__ */ new Date()).getTime(), d === null && (d = o);
|
|
202
202
|
const v = Math.max(Math.min((o - d) / c, 1), 0), w = 0.5 - Math.cos(v * Math.PI) / 2;
|
|
203
|
-
let a =
|
|
204
|
-
if (
|
|
203
|
+
let a = r + w * (i - r);
|
|
204
|
+
if (p(a, i) && (a = i), e.wrapperEl.scrollTo({
|
|
205
205
|
[s]: a
|
|
206
|
-
}),
|
|
206
|
+
}), p(a, i)) {
|
|
207
207
|
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
208
208
|
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
209
209
|
[s]: a
|
|
210
210
|
});
|
|
211
|
-
}),
|
|
211
|
+
}), n.cancelAnimationFrame(e.cssModeFrameID);
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
e.cssModeFrameID =
|
|
214
|
+
e.cssModeFrameID = n.requestAnimationFrame(m);
|
|
215
215
|
};
|
|
216
216
|
m();
|
|
217
217
|
}
|
|
218
218
|
function q(t, e) {
|
|
219
219
|
e === void 0 && (e = "");
|
|
220
220
|
const i = k(), s = [...t.children];
|
|
221
|
-
return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((
|
|
221
|
+
return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((n) => n.matches(e)) : s;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function zt(t, e) {
|
|
224
224
|
const i = [e];
|
|
225
225
|
for (; i.length > 0; ) {
|
|
226
226
|
const s = i.shift();
|
|
@@ -229,12 +229,12 @@ function Lt(t, e) {
|
|
|
229
229
|
i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function It(t, e) {
|
|
233
233
|
const i = k();
|
|
234
234
|
let s = e.contains(t);
|
|
235
|
-
return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s =
|
|
235
|
+
return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = zt(t, e))), s;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Pe(t) {
|
|
238
238
|
try {
|
|
239
239
|
console.warn(t);
|
|
240
240
|
return;
|
|
@@ -244,16 +244,16 @@ function Me(t) {
|
|
|
244
244
|
function fe(t, e) {
|
|
245
245
|
e === void 0 && (e = []);
|
|
246
246
|
const i = document.createElement(t);
|
|
247
|
-
return i.classList.add(...Array.isArray(e) ? e :
|
|
247
|
+
return i.classList.add(...Array.isArray(e) ? e : Ct(e)), i;
|
|
248
248
|
}
|
|
249
249
|
function ke(t) {
|
|
250
|
-
const e = k(), i = Z(), s = t.getBoundingClientRect(),
|
|
250
|
+
const e = k(), i = Z(), s = t.getBoundingClientRect(), n = i.body, r = t.clientTop || n.clientTop || 0, d = t.clientLeft || n.clientLeft || 0, o = t === e ? e.scrollY : t.scrollTop, c = t === e ? e.scrollX : t.scrollLeft;
|
|
251
251
|
return {
|
|
252
|
-
top: s.top + o -
|
|
252
|
+
top: s.top + o - r,
|
|
253
253
|
left: s.left + c - d
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Ot(t, e) {
|
|
257
257
|
const i = [];
|
|
258
258
|
for (; t.previousElementSibling; ) {
|
|
259
259
|
const s = t.previousElementSibling;
|
|
@@ -261,7 +261,7 @@ function It(t, e) {
|
|
|
261
261
|
}
|
|
262
262
|
return i;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function At(t, e) {
|
|
265
265
|
const i = [];
|
|
266
266
|
for (; t.nextElementSibling; ) {
|
|
267
267
|
const s = t.nextElementSibling;
|
|
@@ -269,10 +269,10 @@ function Ot(t, e) {
|
|
|
269
269
|
}
|
|
270
270
|
return i;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function re(t, e) {
|
|
273
273
|
return k().getComputedStyle(t, null).getPropertyValue(e);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Le(t) {
|
|
276
276
|
let e = t, i;
|
|
277
277
|
if (e) {
|
|
278
278
|
for (i = 0; (e = e.previousSibling) !== null; )
|
|
@@ -280,26 +280,31 @@ function Pe(t) {
|
|
|
280
280
|
return i;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function ne(t, e) {
|
|
284
284
|
const i = [];
|
|
285
285
|
let s = t.parentElement;
|
|
286
286
|
for (; s; )
|
|
287
287
|
e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
|
|
288
288
|
return i;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ne(t, e, i) {
|
|
291
291
|
const s = k();
|
|
292
292
|
return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
293
293
|
}
|
|
294
294
|
function W(t) {
|
|
295
295
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function ue(t, e) {
|
|
298
|
+
e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
|
|
299
|
+
createHTML: (i) => i
|
|
300
|
+
}).createHTML(e) : t.innerHTML = e;
|
|
301
|
+
}
|
|
302
|
+
function Dt(t) {
|
|
298
303
|
let {
|
|
299
304
|
swiper: e,
|
|
300
305
|
extendParams: i,
|
|
301
306
|
on: s,
|
|
302
|
-
emit:
|
|
307
|
+
emit: n
|
|
303
308
|
} = t;
|
|
304
309
|
i({
|
|
305
310
|
virtual: {
|
|
@@ -313,7 +318,7 @@ function At(t) {
|
|
|
313
318
|
addSlidesAfter: 0
|
|
314
319
|
}
|
|
315
320
|
});
|
|
316
|
-
let
|
|
321
|
+
let r;
|
|
317
322
|
const d = Z();
|
|
318
323
|
e.virtual = {
|
|
319
324
|
cache: {},
|
|
@@ -329,12 +334,12 @@ function At(t) {
|
|
|
329
334
|
if (S.cache && e.virtual.cache[l])
|
|
330
335
|
return e.virtual.cache[l];
|
|
331
336
|
let g;
|
|
332
|
-
return S.renderSlide ? (g = S.renderSlide.call(e, a, l), typeof g == "string" && (o
|
|
337
|
+
return S.renderSlide ? (g = S.renderSlide.call(e, a, l), typeof g == "string" && (ue(o, g), g = o.children[0])) : e.isElement ? g = fe("swiper-slide") : g = fe("div", e.params.slideClass), g.setAttribute("data-swiper-slide-index", l), S.renderSlide || ue(g, a), S.cache && (e.virtual.cache[l] = g), g;
|
|
333
338
|
}
|
|
334
339
|
function f(a, l, S) {
|
|
335
340
|
const {
|
|
336
341
|
slidesPerView: g,
|
|
337
|
-
slidesPerGroup:
|
|
342
|
+
slidesPerGroup: u,
|
|
338
343
|
centeredSlides: h,
|
|
339
344
|
loop: E,
|
|
340
345
|
initialSlide: b
|
|
@@ -356,7 +361,7 @@ function At(t) {
|
|
|
356
361
|
let $;
|
|
357
362
|
e.rtlTranslate ? $ = "right" : $ = e.isHorizontal() ? "left" : "top";
|
|
358
363
|
let _, A;
|
|
359
|
-
h ? (_ = Math.floor(g / 2) +
|
|
364
|
+
h ? (_ = Math.floor(g / 2) + u + I, A = Math.floor(g / 2) + u + L) : (_ = g + (u - 1) + I, A = (E ? g : u) + L);
|
|
360
365
|
let Y = D - A, X = D + _;
|
|
361
366
|
E || (Y = Math.max(Y, 0), X = Math.min(X, T.length - 1));
|
|
362
367
|
let G = (e.slidesGrid[Y] || 0) - (e.slidesGrid[0] || 0);
|
|
@@ -368,13 +373,13 @@ function At(t) {
|
|
|
368
373
|
slidesBefore: A,
|
|
369
374
|
slidesAfter: _
|
|
370
375
|
});
|
|
371
|
-
function
|
|
372
|
-
e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(),
|
|
376
|
+
function N() {
|
|
377
|
+
e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), n("virtualUpdate");
|
|
373
378
|
}
|
|
374
379
|
if (z === Y && y === X && !a) {
|
|
375
380
|
e.slidesGrid !== P && G !== O && e.slides.forEach((x) => {
|
|
376
381
|
x.style[$] = `${G - Math.abs(e.cssOverflowAdjustment())}px`;
|
|
377
|
-
}), e.updateProgress(),
|
|
382
|
+
}), e.updateProgress(), n("virtualUpdate");
|
|
378
383
|
return;
|
|
379
384
|
}
|
|
380
385
|
if (e.params.virtual.renderExternal) {
|
|
@@ -388,10 +393,10 @@ function At(t) {
|
|
|
388
393
|
M.push(T[B]);
|
|
389
394
|
return M;
|
|
390
395
|
}()
|
|
391
|
-
}), e.params.virtual.renderExternalUpdate ?
|
|
396
|
+
}), e.params.virtual.renderExternalUpdate ? N() : n("virtualUpdate");
|
|
392
397
|
return;
|
|
393
398
|
}
|
|
394
|
-
const K = [], ee = [],
|
|
399
|
+
const K = [], ee = [], pe = (x) => {
|
|
395
400
|
let M = x;
|
|
396
401
|
return x < 0 ? M = T.length + x : M >= T.length && (M = M - T.length), M;
|
|
397
402
|
};
|
|
@@ -402,15 +407,15 @@ function At(t) {
|
|
|
402
407
|
else
|
|
403
408
|
for (let x = z; x <= y; x += 1)
|
|
404
409
|
if (x < Y || x > X) {
|
|
405
|
-
const M =
|
|
410
|
+
const M = pe(x);
|
|
406
411
|
e.slides.filter((B) => B.matches(`.${e.params.slideClass}[data-swiper-slide-index="${M}"], swiper-slide[data-swiper-slide-index="${M}"]`)).forEach((B) => {
|
|
407
412
|
B.remove();
|
|
408
413
|
});
|
|
409
414
|
}
|
|
410
|
-
const
|
|
411
|
-
for (let x =
|
|
415
|
+
const Ee = E ? -T.length : 0, C = E ? T.length * 2 : T.length;
|
|
416
|
+
for (let x = Ee; x < C; x += 1)
|
|
412
417
|
if (x >= Y && x <= X) {
|
|
413
|
-
const M =
|
|
418
|
+
const M = pe(x);
|
|
414
419
|
typeof y > "u" || a ? ee.push(M) : (x > y && ee.push(M), x < z && K.push(M));
|
|
415
420
|
}
|
|
416
421
|
if (ee.forEach((x) => {
|
|
@@ -426,9 +431,9 @@ function At(t) {
|
|
|
426
431
|
});
|
|
427
432
|
q(e.slidesEl, ".swiper-slide, swiper-slide").forEach((x) => {
|
|
428
433
|
x.style[$] = `${G - Math.abs(e.cssOverflowAdjustment())}px`;
|
|
429
|
-
}),
|
|
434
|
+
}), N();
|
|
430
435
|
}
|
|
431
|
-
function
|
|
436
|
+
function p(a) {
|
|
432
437
|
if (typeof a == "object" && "length" in a)
|
|
433
438
|
for (let l = 0; l < a.length; l += 1)
|
|
434
439
|
a[l] && e.virtual.slides.push(a[l]);
|
|
@@ -440,15 +445,15 @@ function At(t) {
|
|
|
440
445
|
const l = e.activeIndex;
|
|
441
446
|
let S = l + 1, g = 1;
|
|
442
447
|
if (Array.isArray(a)) {
|
|
443
|
-
for (let
|
|
444
|
-
a[
|
|
448
|
+
for (let u = 0; u < a.length; u += 1)
|
|
449
|
+
a[u] && e.virtual.slides.unshift(a[u]);
|
|
445
450
|
S = l + a.length, g = a.length;
|
|
446
451
|
} else
|
|
447
452
|
e.virtual.slides.unshift(a);
|
|
448
453
|
if (e.params.virtual.cache) {
|
|
449
|
-
const
|
|
450
|
-
Object.keys(
|
|
451
|
-
const b =
|
|
454
|
+
const u = e.virtual.cache, h = {};
|
|
455
|
+
Object.keys(u).forEach((E) => {
|
|
456
|
+
const b = u[E], L = b.getAttribute("data-swiper-slide-index");
|
|
452
457
|
L && b.setAttribute("data-swiper-slide-index", parseInt(L, 10) + g), h[parseInt(E, 10) + g] = b;
|
|
453
458
|
}), e.virtual.cache = h;
|
|
454
459
|
}
|
|
@@ -482,27 +487,27 @@ function At(t) {
|
|
|
482
487
|
}
|
|
483
488
|
a || (e.virtual.slides = e.params.virtual.slides), e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress = true, e.originalParams.watchSlidesProgress = true, f(false, true);
|
|
484
489
|
}), s("setTranslate", () => {
|
|
485
|
-
e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(
|
|
490
|
+
e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(r), r = setTimeout(() => {
|
|
486
491
|
f();
|
|
487
492
|
}, 100)) : f());
|
|
488
493
|
}), s("init update resize", () => {
|
|
489
|
-
e.params.virtual.enabled && e.params.cssMode &&
|
|
494
|
+
e.params.virtual.enabled && e.params.cssMode && we(e.wrapperEl, "--swiper-virtual-size", `${e.virtualSize}px`);
|
|
490
495
|
}), Object.assign(e.virtual, {
|
|
491
|
-
appendSlide:
|
|
496
|
+
appendSlide: p,
|
|
492
497
|
prependSlide: m,
|
|
493
498
|
removeSlide: v,
|
|
494
499
|
removeAllSlides: w,
|
|
495
500
|
update: f
|
|
496
501
|
});
|
|
497
502
|
}
|
|
498
|
-
function
|
|
503
|
+
function $t(t) {
|
|
499
504
|
let {
|
|
500
505
|
swiper: e,
|
|
501
506
|
extendParams: i,
|
|
502
507
|
on: s,
|
|
503
|
-
emit:
|
|
508
|
+
emit: n
|
|
504
509
|
} = t;
|
|
505
|
-
const
|
|
510
|
+
const r = Z(), d = k();
|
|
506
511
|
e.keyboard = {
|
|
507
512
|
enabled: false
|
|
508
513
|
}, i({
|
|
@@ -512,20 +517,20 @@ function Dt(t) {
|
|
|
512
517
|
pageUpDown: true
|
|
513
518
|
}
|
|
514
519
|
});
|
|
515
|
-
function o(
|
|
520
|
+
function o(p) {
|
|
516
521
|
if (!e.enabled) return;
|
|
517
522
|
const {
|
|
518
523
|
rtlTranslate: m
|
|
519
524
|
} = e;
|
|
520
|
-
let v =
|
|
525
|
+
let v = p;
|
|
521
526
|
v.originalEvent && (v = v.originalEvent);
|
|
522
|
-
const w = v.keyCode || v.charCode, a = e.params.keyboard.pageUpDown, l = a && w === 33, S = a && w === 34, g = w === 37,
|
|
523
|
-
if (!e.allowSlideNext && (e.isHorizontal() &&
|
|
527
|
+
const w = v.keyCode || v.charCode, a = e.params.keyboard.pageUpDown, l = a && w === 33, S = a && w === 34, g = w === 37, u = w === 39, h = w === 38, E = w === 40;
|
|
528
|
+
if (!e.allowSlideNext && (e.isHorizontal() && u || e.isVertical() && E || S) || !e.allowSlidePrev && (e.isHorizontal() && g || e.isVertical() && h || l))
|
|
524
529
|
return false;
|
|
525
|
-
if (!(v.shiftKey || v.altKey || v.ctrlKey || v.metaKey) && !(
|
|
526
|
-
if (e.params.keyboard.onlyInViewport && (l || S || g ||
|
|
530
|
+
if (!(v.shiftKey || v.altKey || v.ctrlKey || v.metaKey) && !(r.activeElement && (r.activeElement.isContentEditable || r.activeElement.nodeName && (r.activeElement.nodeName.toLowerCase() === "input" || r.activeElement.nodeName.toLowerCase() === "textarea")))) {
|
|
531
|
+
if (e.params.keyboard.onlyInViewport && (l || S || g || u || h || E)) {
|
|
527
532
|
let b = false;
|
|
528
|
-
if (
|
|
533
|
+
if (ne(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && ne(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
529
534
|
return;
|
|
530
535
|
const L = e.el, I = L.clientWidth, z = L.clientHeight, y = d.innerWidth, T = d.innerHeight, P = ke(L);
|
|
531
536
|
m && (P.left -= L.scrollLeft);
|
|
@@ -539,14 +544,14 @@ function Dt(t) {
|
|
|
539
544
|
}
|
|
540
545
|
if (!b) return;
|
|
541
546
|
}
|
|
542
|
-
e.isHorizontal() ? ((l || S || g ||
|
|
547
|
+
e.isHorizontal() ? ((l || S || g || u) && (v.preventDefault ? v.preventDefault() : v.returnValue = false), ((S || u) && !m || (l || g) && m) && e.slideNext(), ((l || g) && !m || (S || u) && m) && e.slidePrev()) : ((l || S || h || E) && (v.preventDefault ? v.preventDefault() : v.returnValue = false), (S || E) && e.slideNext(), (l || h) && e.slidePrev()), n("keyPress", w);
|
|
543
548
|
}
|
|
544
549
|
}
|
|
545
550
|
function c() {
|
|
546
|
-
e.keyboard.enabled || (
|
|
551
|
+
e.keyboard.enabled || (r.addEventListener("keydown", o), e.keyboard.enabled = true);
|
|
547
552
|
}
|
|
548
553
|
function f() {
|
|
549
|
-
e.keyboard.enabled && (
|
|
554
|
+
e.keyboard.enabled && (r.removeEventListener("keydown", o), e.keyboard.enabled = false);
|
|
550
555
|
}
|
|
551
556
|
s("init", () => {
|
|
552
557
|
e.params.keyboard.enabled && c();
|
|
@@ -557,20 +562,20 @@ function Dt(t) {
|
|
|
557
562
|
disable: f
|
|
558
563
|
});
|
|
559
564
|
}
|
|
560
|
-
function
|
|
561
|
-
return t.params.createElements && Object.keys(s).forEach((
|
|
562
|
-
if (!i[
|
|
563
|
-
let
|
|
564
|
-
|
|
565
|
+
function at(t, e, i, s) {
|
|
566
|
+
return t.params.createElements && Object.keys(s).forEach((n) => {
|
|
567
|
+
if (!i[n] && i.auto === true) {
|
|
568
|
+
let r = q(t.el, `.${s[n]}`)[0];
|
|
569
|
+
r || (r = fe("div", s[n]), r.className = s[n], t.el.append(r)), i[n] = r, e[n] = r;
|
|
565
570
|
}
|
|
566
571
|
}), i;
|
|
567
572
|
}
|
|
568
|
-
function
|
|
573
|
+
function _t(t) {
|
|
569
574
|
let {
|
|
570
575
|
swiper: e,
|
|
571
576
|
extendParams: i,
|
|
572
577
|
on: s,
|
|
573
|
-
emit:
|
|
578
|
+
emit: n
|
|
574
579
|
} = t;
|
|
575
580
|
i({
|
|
576
581
|
navigation: {
|
|
@@ -586,7 +591,7 @@ function $t(t) {
|
|
|
586
591
|
nextEl: null,
|
|
587
592
|
prevEl: null
|
|
588
593
|
};
|
|
589
|
-
function
|
|
594
|
+
function r(a) {
|
|
590
595
|
let l;
|
|
591
596
|
return a && typeof a == "string" && e.isElement && (l = e.el.querySelector(a) || e.hostEl.querySelector(a), l) ? l : (a && (typeof a == "string" && (l = [...document.querySelectorAll(a)]), e.params.uniqueNavElements && typeof a == "string" && l && l.length > 1 && e.el.querySelectorAll(a).length === 1 ? l = e.el.querySelector(a) : l && l.length === 1 && (l = l[0])), a && !l ? a : l);
|
|
592
597
|
}
|
|
@@ -608,26 +613,26 @@ function $t(t) {
|
|
|
608
613
|
d(l, e.isBeginning && !e.params.rewind), d(a, e.isEnd && !e.params.rewind);
|
|
609
614
|
}
|
|
610
615
|
function c(a) {
|
|
611
|
-
a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(),
|
|
616
|
+
a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), n("navigationPrev"));
|
|
612
617
|
}
|
|
613
618
|
function f(a) {
|
|
614
|
-
a.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(),
|
|
619
|
+
a.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), n("navigationNext"));
|
|
615
620
|
}
|
|
616
|
-
function
|
|
621
|
+
function p() {
|
|
617
622
|
const a = e.params.navigation;
|
|
618
|
-
if (e.params.navigation =
|
|
623
|
+
if (e.params.navigation = at(e, e.originalParams.navigation, e.params.navigation, {
|
|
619
624
|
nextEl: "swiper-button-next",
|
|
620
625
|
prevEl: "swiper-button-prev"
|
|
621
626
|
}), !(a.nextEl || a.prevEl)) return;
|
|
622
|
-
let l =
|
|
627
|
+
let l = r(a.nextEl), S = r(a.prevEl);
|
|
623
628
|
Object.assign(e.navigation, {
|
|
624
629
|
nextEl: l,
|
|
625
630
|
prevEl: S
|
|
626
631
|
}), l = W(l), S = W(S);
|
|
627
|
-
const g = (
|
|
628
|
-
|
|
632
|
+
const g = (u, h) => {
|
|
633
|
+
u && u.addEventListener("click", h === "next" ? f : c), !e.enabled && u && u.classList.add(...a.lockClass.split(" "));
|
|
629
634
|
};
|
|
630
|
-
l.forEach((
|
|
635
|
+
l.forEach((u) => g(u, "next")), S.forEach((u) => g(u, "prev"));
|
|
631
636
|
}
|
|
632
637
|
function m() {
|
|
633
638
|
let {
|
|
@@ -635,13 +640,13 @@ function $t(t) {
|
|
|
635
640
|
prevEl: l
|
|
636
641
|
} = e.navigation;
|
|
637
642
|
a = W(a), l = W(l);
|
|
638
|
-
const S = (g,
|
|
639
|
-
g.removeEventListener("click",
|
|
643
|
+
const S = (g, u) => {
|
|
644
|
+
g.removeEventListener("click", u === "next" ? f : c), g.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
640
645
|
};
|
|
641
646
|
a.forEach((g) => S(g, "next")), l.forEach((g) => S(g, "prev"));
|
|
642
647
|
}
|
|
643
648
|
s("init", () => {
|
|
644
|
-
e.params.navigation.enabled === false ? w() : (
|
|
649
|
+
e.params.navigation.enabled === false ? w() : (p(), o());
|
|
645
650
|
}), s("toEdge fromEdge lock unlock", () => {
|
|
646
651
|
o();
|
|
647
652
|
}), s("destroy", () => {
|
|
@@ -662,20 +667,20 @@ function $t(t) {
|
|
|
662
667
|
prevEl: g
|
|
663
668
|
} = e.navigation;
|
|
664
669
|
S = W(S), g = W(g);
|
|
665
|
-
const
|
|
666
|
-
let h = g.includes(
|
|
670
|
+
const u = l.target;
|
|
671
|
+
let h = g.includes(u) || S.includes(u);
|
|
667
672
|
if (e.isElement && !h) {
|
|
668
673
|
const E = l.path || l.composedPath && l.composedPath();
|
|
669
674
|
E && (h = E.find((b) => S.includes(b) || g.includes(b)));
|
|
670
675
|
}
|
|
671
676
|
if (e.params.navigation.hideOnClick && !h) {
|
|
672
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el ===
|
|
677
|
+
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === u || e.pagination.el.contains(u))) return;
|
|
673
678
|
let E;
|
|
674
|
-
S.length ? E = S[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (E = g[0].classList.contains(e.params.navigation.hiddenClass)),
|
|
679
|
+
S.length ? E = S[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (E = g[0].classList.contains(e.params.navigation.hiddenClass)), n(E === true ? "navigationShow" : "navigationHide"), [...S, ...g].filter((b) => !!b).forEach((b) => b.classList.toggle(e.params.navigation.hiddenClass));
|
|
675
680
|
}
|
|
676
681
|
});
|
|
677
682
|
const v = () => {
|
|
678
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),
|
|
683
|
+
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), p(), o();
|
|
679
684
|
}, w = () => {
|
|
680
685
|
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), m();
|
|
681
686
|
};
|
|
@@ -683,21 +688,21 @@ function $t(t) {
|
|
|
683
688
|
enable: v,
|
|
684
689
|
disable: w,
|
|
685
690
|
update: o,
|
|
686
|
-
init:
|
|
691
|
+
init: p,
|
|
687
692
|
destroy: m
|
|
688
693
|
});
|
|
689
694
|
}
|
|
690
|
-
function
|
|
691
|
-
return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
695
|
+
function ve(t) {
|
|
696
|
+
return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/()[\]])/g, "\\$1").replace(/ /g, ".")}`;
|
|
692
697
|
}
|
|
693
|
-
function
|
|
698
|
+
function Gt(t) {
|
|
694
699
|
let {
|
|
695
700
|
swiper: e,
|
|
696
701
|
extendParams: i,
|
|
697
702
|
on: s,
|
|
698
|
-
emit:
|
|
703
|
+
emit: n
|
|
699
704
|
} = t;
|
|
700
|
-
const
|
|
705
|
+
const r = "swiper-pagination";
|
|
701
706
|
i({
|
|
702
707
|
pagination: {
|
|
703
708
|
el: null,
|
|
@@ -713,21 +718,21 @@ function _t(t) {
|
|
|
713
718
|
// 'bullets' or 'progressbar' or 'fraction' or 'custom'
|
|
714
719
|
dynamicBullets: false,
|
|
715
720
|
dynamicMainBullets: 1,
|
|
716
|
-
formatFractionCurrent: (
|
|
717
|
-
formatFractionTotal: (
|
|
718
|
-
bulletClass: `${
|
|
719
|
-
bulletActiveClass: `${
|
|
720
|
-
modifierClass: `${
|
|
721
|
-
currentClass: `${
|
|
722
|
-
totalClass: `${
|
|
723
|
-
hiddenClass: `${
|
|
724
|
-
progressbarFillClass: `${
|
|
725
|
-
progressbarOppositeClass: `${
|
|
726
|
-
clickableClass: `${
|
|
727
|
-
lockClass: `${
|
|
728
|
-
horizontalClass: `${
|
|
729
|
-
verticalClass: `${
|
|
730
|
-
paginationDisabledClass: `${
|
|
721
|
+
formatFractionCurrent: (u) => u,
|
|
722
|
+
formatFractionTotal: (u) => u,
|
|
723
|
+
bulletClass: `${r}-bullet`,
|
|
724
|
+
bulletActiveClass: `${r}-bullet-active`,
|
|
725
|
+
modifierClass: `${r}-`,
|
|
726
|
+
currentClass: `${r}-current`,
|
|
727
|
+
totalClass: `${r}-total`,
|
|
728
|
+
hiddenClass: `${r}-hidden`,
|
|
729
|
+
progressbarFillClass: `${r}-progressbar-fill`,
|
|
730
|
+
progressbarOppositeClass: `${r}-progressbar-opposite`,
|
|
731
|
+
clickableClass: `${r}-clickable`,
|
|
732
|
+
lockClass: `${r}-lock`,
|
|
733
|
+
horizontalClass: `${r}-horizontal`,
|
|
734
|
+
verticalClass: `${r}-vertical`,
|
|
735
|
+
paginationDisabledClass: `${r}-disabled`
|
|
731
736
|
}
|
|
732
737
|
}), e.pagination = {
|
|
733
738
|
el: null,
|
|
@@ -737,33 +742,33 @@ function _t(t) {
|
|
|
737
742
|
function c() {
|
|
738
743
|
return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
739
744
|
}
|
|
740
|
-
function f(
|
|
745
|
+
function f(u, h) {
|
|
741
746
|
const {
|
|
742
747
|
bulletActiveClass: E
|
|
743
748
|
} = e.params.pagination;
|
|
744
|
-
|
|
749
|
+
u && (u = u[`${h === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${E}-${h}`), u = u[`${h === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${E}-${h}-${h}`)));
|
|
745
750
|
}
|
|
746
|
-
function u
|
|
747
|
-
if (
|
|
751
|
+
function p(u, h, E) {
|
|
752
|
+
if (u = u % E, h = h % E, h === u + 1)
|
|
748
753
|
return "next";
|
|
749
|
-
if (h ===
|
|
754
|
+
if (h === u - 1)
|
|
750
755
|
return "previous";
|
|
751
756
|
}
|
|
752
|
-
function m(
|
|
753
|
-
const h =
|
|
757
|
+
function m(u) {
|
|
758
|
+
const h = u.target.closest(ve(e.params.pagination.bulletClass));
|
|
754
759
|
if (!h)
|
|
755
760
|
return;
|
|
756
|
-
|
|
757
|
-
const E =
|
|
761
|
+
u.preventDefault();
|
|
762
|
+
const E = Le(h) * e.params.slidesPerGroup;
|
|
758
763
|
if (e.params.loop) {
|
|
759
764
|
if (e.realIndex === E) return;
|
|
760
|
-
const b =
|
|
765
|
+
const b = p(e.realIndex, E, e.slides.length);
|
|
761
766
|
b === "next" ? e.slideNext() : b === "previous" ? e.slidePrev() : e.slideToLoop(E);
|
|
762
767
|
} else
|
|
763
768
|
e.slideTo(E);
|
|
764
769
|
}
|
|
765
770
|
function v() {
|
|
766
|
-
const
|
|
771
|
+
const u = e.rtl, h = e.params.pagination;
|
|
767
772
|
if (c()) return;
|
|
768
773
|
let E = e.pagination.el;
|
|
769
774
|
E = W(E);
|
|
@@ -772,14 +777,14 @@ function _t(t) {
|
|
|
772
777
|
if (e.params.loop ? (L = e.previousRealIndex || 0, b = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (b = e.snapIndex, L = e.previousSnapIndex) : (L = e.previousIndex || 0, b = e.activeIndex || 0), h.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
773
778
|
const y = e.pagination.bullets;
|
|
774
779
|
let T, P, O;
|
|
775
|
-
if (h.dynamicBullets && (d =
|
|
780
|
+
if (h.dynamicBullets && (d = Ne(y[0], e.isHorizontal() ? "width" : "height"), E.forEach((D) => {
|
|
776
781
|
D.style[e.isHorizontal() ? "width" : "height"] = `${d * (h.dynamicMainBullets + 4)}px`;
|
|
777
782
|
}), h.dynamicMainBullets > 1 && L !== void 0 && (o += b - (L || 0), o > h.dynamicMainBullets - 1 ? o = h.dynamicMainBullets - 1 : o < 0 && (o = 0)), T = Math.max(b - o, 0), P = T + (Math.min(y.length, h.dynamicMainBullets) - 1), O = (P + T) / 2), y.forEach((D) => {
|
|
778
783
|
const $ = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((_) => `${h.bulletActiveClass}${_}`)].map((_) => typeof _ == "string" && _.includes(" ") ? _.split(" ") : _).flat();
|
|
779
784
|
D.classList.remove(...$);
|
|
780
785
|
}), E.length > 1)
|
|
781
786
|
y.forEach((D) => {
|
|
782
|
-
const $ =
|
|
787
|
+
const $ = Le(D);
|
|
783
788
|
$ === b ? D.classList.add(...h.bulletActiveClass.split(" ")) : e.isElement && D.setAttribute("part", "bullet"), h.dynamicBullets && ($ >= T && $ <= P && D.classList.add(...`${h.bulletActiveClass}-main`.split(" ")), $ === T && f(D, "prev"), $ === P && f(D, "next"));
|
|
784
789
|
});
|
|
785
790
|
else {
|
|
@@ -794,75 +799,75 @@ function _t(t) {
|
|
|
794
799
|
}
|
|
795
800
|
}
|
|
796
801
|
if (h.dynamicBullets) {
|
|
797
|
-
const D = Math.min(y.length, h.dynamicMainBullets + 4), $ = (d * D - d) / 2 - O * d, _ =
|
|
802
|
+
const D = Math.min(y.length, h.dynamicMainBullets + 4), $ = (d * D - d) / 2 - O * d, _ = u ? "right" : "left";
|
|
798
803
|
y.forEach((A) => {
|
|
799
804
|
A.style[e.isHorizontal() ? _ : "top"] = `${$}px`;
|
|
800
805
|
});
|
|
801
806
|
}
|
|
802
807
|
}
|
|
803
808
|
E.forEach((y, T) => {
|
|
804
|
-
if (h.type === "fraction" && (y.querySelectorAll(
|
|
809
|
+
if (h.type === "fraction" && (y.querySelectorAll(ve(h.currentClass)).forEach((P) => {
|
|
805
810
|
P.textContent = h.formatFractionCurrent(b + 1);
|
|
806
|
-
}), y.querySelectorAll(
|
|
811
|
+
}), y.querySelectorAll(ve(h.totalClass)).forEach((P) => {
|
|
807
812
|
P.textContent = h.formatFractionTotal(z);
|
|
808
813
|
})), h.type === "progressbar") {
|
|
809
814
|
let P;
|
|
810
815
|
h.progressbarOpposite ? P = e.isHorizontal() ? "vertical" : "horizontal" : P = e.isHorizontal() ? "horizontal" : "vertical";
|
|
811
816
|
const O = (b + 1) / z;
|
|
812
817
|
let D = 1, $ = 1;
|
|
813
|
-
P === "horizontal" ? D = O : $ = O, y.querySelectorAll(
|
|
818
|
+
P === "horizontal" ? D = O : $ = O, y.querySelectorAll(ve(h.progressbarFillClass)).forEach((_) => {
|
|
814
819
|
_.style.transform = `translate3d(0,0,0) scaleX(${D}) scaleY(${$})`, _.style.transitionDuration = `${e.params.speed}ms`;
|
|
815
820
|
});
|
|
816
821
|
}
|
|
817
|
-
h.type === "custom" && h.renderCustom ? (y
|
|
822
|
+
h.type === "custom" && h.renderCustom ? (ue(y, h.renderCustom(e, b + 1, z)), T === 0 && n("paginationRender", y)) : (T === 0 && n("paginationRender", y), n("paginationUpdate", y)), e.params.watchOverflow && e.enabled && y.classList[e.isLocked ? "add" : "remove"](h.lockClass);
|
|
818
823
|
});
|
|
819
824
|
}
|
|
820
825
|
function w() {
|
|
821
|
-
const
|
|
826
|
+
const u = e.params.pagination;
|
|
822
827
|
if (c()) return;
|
|
823
828
|
const h = 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;
|
|
824
829
|
let E = e.pagination.el;
|
|
825
830
|
E = W(E);
|
|
826
831
|
let b = "";
|
|
827
|
-
if (
|
|
832
|
+
if (u.type === "bullets") {
|
|
828
833
|
let L = e.params.loop ? Math.ceil(h / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
829
834
|
e.params.freeMode && e.params.freeMode.enabled && L > h && (L = h);
|
|
830
835
|
for (let I = 0; I < L; I += 1)
|
|
831
|
-
|
|
836
|
+
u.renderBullet ? b += u.renderBullet.call(e, I, u.bulletClass) : b += `<${u.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${u.bulletClass}"></${u.bulletElement}>`;
|
|
832
837
|
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}),
|
|
838
|
+
u.type === "fraction" && (u.renderFraction ? b = u.renderFraction.call(e, u.currentClass, u.totalClass) : b = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? b = u.renderProgressbar.call(e, u.progressbarFillClass) : b = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], E.forEach((L) => {
|
|
839
|
+
u.type !== "custom" && ue(L, b || ""), u.type === "bullets" && e.pagination.bullets.push(...L.querySelectorAll(ve(u.bulletClass)));
|
|
840
|
+
}), u.type !== "custom" && n("paginationRender", E[0]);
|
|
836
841
|
}
|
|
837
842
|
function a() {
|
|
838
|
-
e.params.pagination =
|
|
843
|
+
e.params.pagination = at(e, e.originalParams.pagination, e.params.pagination, {
|
|
839
844
|
el: "swiper-pagination"
|
|
840
845
|
});
|
|
841
|
-
const
|
|
842
|
-
if (!
|
|
846
|
+
const u = e.params.pagination;
|
|
847
|
+
if (!u.el) return;
|
|
843
848
|
let h;
|
|
844
|
-
typeof
|
|
849
|
+
typeof u.el == "string" && e.isElement && (h = e.el.querySelector(u.el)), !h && typeof u.el == "string" && (h = [...document.querySelectorAll(u.el)]), h || (h = u.el), !(!h || h.length === 0) && (e.params.uniqueNavElements && typeof u.el == "string" && Array.isArray(h) && h.length > 1 && (h = [...e.el.querySelectorAll(u.el)], h.length > 1 && (h = h.find((E) => ne(E, ".swiper")[0] === e.el))), Array.isArray(h) && h.length === 1 && (h = h[0]), Object.assign(e.pagination, {
|
|
845
850
|
el: h
|
|
846
851
|
}), h = W(h), h.forEach((E) => {
|
|
847
|
-
|
|
852
|
+
u.type === "bullets" && u.clickable && E.classList.add(...(u.clickableClass || "").split(" ")), E.classList.add(u.modifierClass + u.type), E.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.type === "bullets" && u.dynamicBullets && (E.classList.add(`${u.modifierClass}${u.type}-dynamic`), o = 0, u.dynamicMainBullets < 1 && (u.dynamicMainBullets = 1)), u.type === "progressbar" && u.progressbarOpposite && E.classList.add(u.progressbarOppositeClass), u.clickable && E.addEventListener("click", m), e.enabled || E.classList.add(u.lockClass);
|
|
848
853
|
}));
|
|
849
854
|
}
|
|
850
855
|
function l() {
|
|
851
|
-
const
|
|
856
|
+
const u = e.params.pagination;
|
|
852
857
|
if (c()) return;
|
|
853
858
|
let h = e.pagination.el;
|
|
854
859
|
h && (h = W(h), h.forEach((E) => {
|
|
855
|
-
E.classList.remove(
|
|
856
|
-
})), e.pagination.bullets && e.pagination.bullets.forEach((E) => E.classList.remove(...
|
|
860
|
+
E.classList.remove(u.hiddenClass), E.classList.remove(u.modifierClass + u.type), E.classList.remove(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.clickable && (E.classList.remove(...(u.clickableClass || "").split(" ")), E.removeEventListener("click", m));
|
|
861
|
+
})), e.pagination.bullets && e.pagination.bullets.forEach((E) => E.classList.remove(...u.bulletActiveClass.split(" ")));
|
|
857
862
|
}
|
|
858
863
|
s("changeDirection", () => {
|
|
859
864
|
if (!e.pagination || !e.pagination.el) return;
|
|
860
|
-
const
|
|
865
|
+
const u = e.params.pagination;
|
|
861
866
|
let {
|
|
862
867
|
el: h
|
|
863
868
|
} = e.pagination;
|
|
864
869
|
h = W(h), h.forEach((E) => {
|
|
865
|
-
E.classList.remove(
|
|
870
|
+
E.classList.remove(u.horizontalClass, u.verticalClass), E.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
|
|
866
871
|
});
|
|
867
872
|
}), s("init", () => {
|
|
868
873
|
e.params.pagination.enabled === false ? g() : (a(), w(), v());
|
|
@@ -876,31 +881,31 @@ function _t(t) {
|
|
|
876
881
|
l();
|
|
877
882
|
}), s("enable disable", () => {
|
|
878
883
|
let {
|
|
879
|
-
el:
|
|
884
|
+
el: u
|
|
880
885
|
} = e.pagination;
|
|
881
|
-
|
|
886
|
+
u && (u = W(u), u.forEach((h) => h.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
|
|
882
887
|
}), s("lock unlock", () => {
|
|
883
888
|
v();
|
|
884
|
-
}), s("click", (
|
|
889
|
+
}), s("click", (u, h) => {
|
|
885
890
|
const E = h.target, b = W(e.pagination.el);
|
|
886
891
|
if (e.params.pagination.el && e.params.pagination.hideOnClick && b && b.length > 0 && !E.classList.contains(e.params.pagination.bulletClass)) {
|
|
887
892
|
if (e.navigation && (e.navigation.nextEl && E === e.navigation.nextEl || e.navigation.prevEl && E === e.navigation.prevEl)) return;
|
|
888
893
|
const L = b[0].classList.contains(e.params.pagination.hiddenClass);
|
|
889
|
-
|
|
894
|
+
n(L === true ? "paginationShow" : "paginationHide"), b.forEach((I) => I.classList.toggle(e.params.pagination.hiddenClass));
|
|
890
895
|
}
|
|
891
896
|
});
|
|
892
897
|
const S = () => {
|
|
893
898
|
e.el.classList.remove(e.params.pagination.paginationDisabledClass);
|
|
894
899
|
let {
|
|
895
|
-
el:
|
|
900
|
+
el: u
|
|
896
901
|
} = e.pagination;
|
|
897
|
-
|
|
902
|
+
u && (u = W(u), u.forEach((h) => h.classList.remove(e.params.pagination.paginationDisabledClass))), a(), w(), v();
|
|
898
903
|
}, g = () => {
|
|
899
904
|
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
900
905
|
let {
|
|
901
|
-
el:
|
|
906
|
+
el: u
|
|
902
907
|
} = e.pagination;
|
|
903
|
-
|
|
908
|
+
u && (u = W(u), u.forEach((h) => h.classList.add(e.params.pagination.paginationDisabledClass))), l();
|
|
904
909
|
};
|
|
905
910
|
Object.assign(e.pagination, {
|
|
906
911
|
enable: S,
|
|
@@ -911,14 +916,14 @@ function _t(t) {
|
|
|
911
916
|
destroy: l
|
|
912
917
|
});
|
|
913
918
|
}
|
|
914
|
-
function
|
|
919
|
+
function Bt(t) {
|
|
915
920
|
let {
|
|
916
921
|
swiper: e,
|
|
917
922
|
extendParams: i,
|
|
918
923
|
on: s,
|
|
919
|
-
emit:
|
|
924
|
+
emit: n
|
|
920
925
|
} = t;
|
|
921
|
-
const
|
|
926
|
+
const r = k();
|
|
922
927
|
i({
|
|
923
928
|
zoom: {
|
|
924
929
|
enabled: false,
|
|
@@ -937,7 +942,7 @@ function Gt(t) {
|
|
|
937
942
|
x: 0,
|
|
938
943
|
y: 0
|
|
939
944
|
};
|
|
940
|
-
const
|
|
945
|
+
const p = -3;
|
|
941
946
|
let m, v;
|
|
942
947
|
const w = [], a = {
|
|
943
948
|
originX: 0,
|
|
@@ -978,12 +983,12 @@ function Gt(t) {
|
|
|
978
983
|
set(C) {
|
|
979
984
|
if (g !== C) {
|
|
980
985
|
const x = a.imageEl, M = a.slideEl;
|
|
981
|
-
|
|
986
|
+
n("zoomChange", C, x, M);
|
|
982
987
|
}
|
|
983
988
|
g = C;
|
|
984
989
|
}
|
|
985
990
|
});
|
|
986
|
-
function
|
|
991
|
+
function u() {
|
|
987
992
|
if (w.length < 2) return 1;
|
|
988
993
|
const C = w[0].pageX, x = w[0].pageY, M = w[1].pageX, B = w[1].pageY;
|
|
989
994
|
return Math.sqrt((M - C) ** 2 + (B - x) ** 2);
|
|
@@ -1002,7 +1007,7 @@ function Gt(t) {
|
|
|
1002
1007
|
y: null
|
|
1003
1008
|
};
|
|
1004
1009
|
const C = a.imageEl.getBoundingClientRect();
|
|
1005
|
-
return [(w[0].pageX + (w[1].pageX - w[0].pageX) / 2 - C.x -
|
|
1010
|
+
return [(w[0].pageX + (w[1].pageX - w[0].pageX) / 2 - C.x - r.scrollX) / d, (w[0].pageY + (w[1].pageY - w[0].pageY) / 2 - C.y - r.scrollY) / d];
|
|
1006
1011
|
}
|
|
1007
1012
|
function b() {
|
|
1008
1013
|
return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
|
|
@@ -1019,10 +1024,10 @@ function Gt(t) {
|
|
|
1019
1024
|
if (C.pointerType === "mouse" && w.splice(0, w.length), !L(C)) return;
|
|
1020
1025
|
const x = e.params.zoom;
|
|
1021
1026
|
if (m = false, v = false, w.push(C), !(w.length < 2)) {
|
|
1022
|
-
if (m = true, a.scaleStart =
|
|
1027
|
+
if (m = true, a.scaleStart = u(), !a.slideEl) {
|
|
1023
1028
|
a.slideEl = C.target.closest(`.${e.params.slideClass}, swiper-slide`), a.slideEl || (a.slideEl = e.slides[e.activeIndex]);
|
|
1024
1029
|
let M = a.slideEl.querySelector(`.${x.containerClass}`);
|
|
1025
|
-
if (M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl =
|
|
1030
|
+
if (M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = ne(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0, !a.imageWrapEl) {
|
|
1026
1031
|
a.imageEl = void 0;
|
|
1027
1032
|
return;
|
|
1028
1033
|
}
|
|
@@ -1037,12 +1042,12 @@ function Gt(t) {
|
|
|
1037
1042
|
}
|
|
1038
1043
|
function y(C) {
|
|
1039
1044
|
if (!L(C)) return;
|
|
1040
|
-
const x = e.params.zoom, M = e.zoom, B = w.findIndex((
|
|
1041
|
-
B >= 0 && (w[B] = C), !(w.length < 2) && (v = true, a.scaleMove =
|
|
1045
|
+
const x = e.params.zoom, M = e.zoom, B = w.findIndex((H) => H.pointerId === C.pointerId);
|
|
1046
|
+
B >= 0 && (w[B] = C), !(w.length < 2) && (v = true, a.scaleMove = u(), a.imageEl && (M.scale = a.scaleMove / a.scaleStart * d, M.scale > a.maxRatio && (M.scale = a.maxRatio - 1 + (M.scale - a.maxRatio + 1) ** 0.5), M.scale < x.minRatio && (M.scale = x.minRatio + 1 - (x.minRatio - M.scale + 1) ** 0.5), a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`));
|
|
1042
1047
|
}
|
|
1043
1048
|
function T(C) {
|
|
1044
1049
|
if (!L(C) || C.pointerType === "mouse" && C.type === "pointerout") return;
|
|
1045
|
-
const x = e.params.zoom, M = e.zoom, B = w.findIndex((
|
|
1050
|
+
const x = e.params.zoom, M = e.zoom, B = w.findIndex((H) => H.pointerId === C.pointerId);
|
|
1046
1051
|
B >= 0 && w.splice(B, 1), !(!m || !v) && (m = false, v = false, a.imageEl && (M.scale = Math.max(Math.min(M.scale, a.maxRatio), x.minRatio), a.imageEl.style.transitionDuration = `${e.params.speed}ms`, a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`, d = M.scale, o = false, M.scale > 1 && a.slideEl ? a.slideEl.classList.add(`${x.zoomedSlideClass}`) : M.scale <= 1 && a.slideEl && a.slideEl.classList.remove(`${x.zoomedSlideClass}`), M.scale === 1 && (a.originX = 0, a.originY = 0, a.slideEl = void 0)));
|
|
1047
1052
|
}
|
|
1048
1053
|
let P;
|
|
@@ -1077,8 +1082,8 @@ function Gt(t) {
|
|
|
1077
1082
|
return;
|
|
1078
1083
|
}
|
|
1079
1084
|
l.isMoved || (l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, l.startX = We(a.imageWrapEl, "x") || 0, l.startY = We(a.imageWrapEl, "y") || 0, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight, a.imageWrapEl.style.transitionDuration = "0ms");
|
|
1080
|
-
const
|
|
1081
|
-
if (l.minX = Math.min(a.slideWidth / 2 -
|
|
1085
|
+
const H = l.width * B.scale, te = l.height * B.scale;
|
|
1086
|
+
if (l.minX = Math.min(a.slideWidth / 2 - H / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - te / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = w.length > 0 ? w[0].pageX : C.pageX, l.touchesCurrent.y = w.length > 0 ? w[0].pageY : C.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = false), !l.isMoved && !o) {
|
|
1082
1087
|
if (e.isHorizontal() && (Math.floor(l.minX) === Math.floor(l.startX) && l.touchesCurrent.x < l.touchesStart.x || Math.floor(l.maxX) === Math.floor(l.startX) && l.touchesCurrent.x > l.touchesStart.x)) {
|
|
1083
1088
|
l.isTouched = false, O();
|
|
1084
1089
|
return;
|
|
@@ -1104,10 +1109,10 @@ function Gt(t) {
|
|
|
1104
1109
|
}
|
|
1105
1110
|
l.isTouched = false, l.isMoved = false;
|
|
1106
1111
|
let x = 300, M = 300;
|
|
1107
|
-
const B = S.x * x,
|
|
1108
|
-
S.x !== 0 && (x = Math.abs((
|
|
1112
|
+
const B = S.x * x, H = l.currentX + B, te = S.y * M, ie = l.currentY + te;
|
|
1113
|
+
S.x !== 0 && (x = Math.abs((H - l.currentX) / S.x)), S.y !== 0 && (M = Math.abs((ie - l.currentY) / S.y));
|
|
1109
1114
|
const Q = Math.max(x, M);
|
|
1110
|
-
l.currentX =
|
|
1115
|
+
l.currentX = H, l.currentY = ie;
|
|
1111
1116
|
const se = l.width * C.scale, F = l.height * C.scale;
|
|
1112
1117
|
l.minX = Math.min(a.slideWidth / 2 - se / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - F / 2, 0), l.maxY = -l.minY, l.currentX = Math.max(Math.min(l.currentX, l.maxX), l.minX), l.currentY = Math.max(Math.min(l.currentY, l.maxY), l.minY), a.imageWrapEl.style.transitionDuration = `${Q}ms`, a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
|
|
1113
1118
|
}
|
|
@@ -1117,36 +1122,36 @@ function Gt(t) {
|
|
|
1117
1122
|
}
|
|
1118
1123
|
function X(C) {
|
|
1119
1124
|
if (d <= 1 || !a.imageWrapEl || !L(C) || !I(C)) return;
|
|
1120
|
-
const x =
|
|
1125
|
+
const x = r.getComputedStyle(a.imageWrapEl).transform, M = new r.DOMMatrix(x);
|
|
1121
1126
|
if (!c) {
|
|
1122
1127
|
c = true, f.x = C.clientX, f.y = C.clientY, l.startX = M.e, l.startY = M.f, l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight;
|
|
1123
1128
|
return;
|
|
1124
1129
|
}
|
|
1125
|
-
const B = (C.clientX - f.x) *
|
|
1130
|
+
const B = (C.clientX - f.x) * p, H = (C.clientY - f.y) * p, te = l.width * d, ie = l.height * d, Q = a.slideWidth, se = a.slideHeight, F = Math.min(Q / 2 - te / 2, 0), U = -F, me = Math.min(se / 2 - ie / 2, 0), be = -me, le = Math.max(Math.min(l.startX + B, U), F), oe = Math.max(Math.min(l.startY + H, be), me);
|
|
1126
1131
|
a.imageWrapEl.style.transitionDuration = "0ms", a.imageWrapEl.style.transform = `translate3d(${le}px, ${oe}px, 0)`, f.x = C.clientX, f.y = C.clientY, l.startX = le, l.startY = oe, l.currentX = le, l.currentY = oe;
|
|
1127
1132
|
}
|
|
1128
1133
|
function G(C) {
|
|
1129
1134
|
const x = e.zoom, M = e.params.zoom;
|
|
1130
1135
|
if (!a.slideEl) {
|
|
1131
1136
|
C && C.target && (a.slideEl = C.target.closest(`.${e.params.slideClass}, swiper-slide`)), a.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? a.slideEl = q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : a.slideEl = e.slides[e.activeIndex]);
|
|
1132
|
-
let
|
|
1133
|
-
|
|
1137
|
+
let he = a.slideEl.querySelector(`.${M.containerClass}`);
|
|
1138
|
+
he && (he = he.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = he, he ? a.imageWrapEl = ne(a.imageEl, `.${M.containerClass}`)[0] : a.imageWrapEl = void 0;
|
|
1134
1139
|
}
|
|
1135
1140
|
if (!a.imageEl || !a.imageWrapEl) return;
|
|
1136
1141
|
e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), a.slideEl.classList.add(`${M.zoomedSlideClass}`);
|
|
1137
|
-
let B,
|
|
1138
|
-
typeof l.touchesStart.x > "u" && C ? (B = C.pageX,
|
|
1139
|
-
const
|
|
1140
|
-
d === 1 && de && (B = void 0,
|
|
1142
|
+
let B, H, te, ie, Q, se, F, U, me, be, le, oe, xe, ye, Ie, Oe, Ae, De;
|
|
1143
|
+
typeof l.touchesStart.x > "u" && C ? (B = C.pageX, H = C.pageY) : (B = l.touchesStart.x, H = l.touchesStart.y);
|
|
1144
|
+
const $e = d, de = typeof C == "number" ? C : null;
|
|
1145
|
+
d === 1 && de && (B = void 0, H = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
|
|
1141
1146
|
const Ue = h();
|
|
1142
|
-
x.scale = de || Ue, d = de || Ue, C && !(d === 1 && de) ? (
|
|
1147
|
+
x.scale = de || Ue, d = de || Ue, C && !(d === 1 && de) ? (Ae = a.slideEl.offsetWidth, De = a.slideEl.offsetHeight, te = ke(a.slideEl).left + r.scrollX, ie = ke(a.slideEl).top + r.scrollY, Q = te + Ae / 2 - B, se = ie + De / 2 - H, me = a.imageEl.offsetWidth || a.imageEl.clientWidth, be = a.imageEl.offsetHeight || a.imageEl.clientHeight, le = me * x.scale, oe = be * x.scale, xe = Math.min(Ae / 2 - le / 2, 0), ye = Math.min(De / 2 - oe / 2, 0), Ie = -xe, Oe = -ye, $e > 0 && de && typeof l.currentX == "number" && typeof l.currentY == "number" ? (F = l.currentX * x.scale / $e, U = l.currentY * x.scale / $e) : (F = Q * x.scale, U = se * x.scale), F < xe && (F = xe), F > Ie && (F = Ie), U < ye && (U = ye), U > Oe && (U = Oe)) : (F = 0, U = 0), de && x.scale === 1 && (a.originX = 0, a.originY = 0), l.currentX = F, l.currentY = U, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = `translate3d(${F}px, ${U}px,0)`, a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`;
|
|
1143
1148
|
}
|
|
1144
|
-
function
|
|
1149
|
+
function N() {
|
|
1145
1150
|
const C = e.zoom, x = e.params.zoom;
|
|
1146
1151
|
if (!a.slideEl) {
|
|
1147
1152
|
e.params.virtual && e.params.virtual.enabled && e.virtual ? a.slideEl = q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : a.slideEl = e.slides[e.activeIndex];
|
|
1148
1153
|
let M = a.slideEl.querySelector(`.${x.containerClass}`);
|
|
1149
|
-
M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl =
|
|
1154
|
+
M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = ne(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0;
|
|
1150
1155
|
}
|
|
1151
1156
|
!a.imageEl || !a.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), C.scale = 1, d = 1, l.currentX = void 0, l.currentY = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = "translate3d(0,0,0)", a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = "translate3d(0,0,0) scale(1)", a.slideEl.classList.remove(`${x.zoomedSlideClass}`), a.slideEl = void 0, a.originX = 0, a.originY = 0, e.params.zoom.panOnMouseMove && (f = {
|
|
1152
1157
|
x: 0,
|
|
@@ -1155,7 +1160,7 @@ function Gt(t) {
|
|
|
1155
1160
|
}
|
|
1156
1161
|
function K(C) {
|
|
1157
1162
|
const x = e.zoom;
|
|
1158
|
-
x.scale && x.scale !== 1 ?
|
|
1163
|
+
x.scale && x.scale !== 1 ? N() : G(C);
|
|
1159
1164
|
}
|
|
1160
1165
|
function ee() {
|
|
1161
1166
|
const C = e.params.passiveListeners ? {
|
|
@@ -1170,7 +1175,7 @@ function Gt(t) {
|
|
|
1170
1175
|
activeListenerWithCapture: x
|
|
1171
1176
|
};
|
|
1172
1177
|
}
|
|
1173
|
-
function
|
|
1178
|
+
function pe() {
|
|
1174
1179
|
const C = e.zoom;
|
|
1175
1180
|
if (C.enabled) return;
|
|
1176
1181
|
C.enabled = true;
|
|
@@ -1182,7 +1187,7 @@ function Gt(t) {
|
|
|
1182
1187
|
e.wrapperEl.addEventListener(B, T, x);
|
|
1183
1188
|
}), e.wrapperEl.addEventListener("pointermove", _, M);
|
|
1184
1189
|
}
|
|
1185
|
-
function
|
|
1190
|
+
function Ee() {
|
|
1186
1191
|
const C = e.zoom;
|
|
1187
1192
|
if (!C.enabled) return;
|
|
1188
1193
|
C.enabled = false;
|
|
@@ -1195,9 +1200,9 @@ function Gt(t) {
|
|
|
1195
1200
|
}), e.wrapperEl.removeEventListener("pointermove", _, M);
|
|
1196
1201
|
}
|
|
1197
1202
|
s("init", () => {
|
|
1198
|
-
e.params.zoom.enabled &&
|
|
1203
|
+
e.params.zoom.enabled && pe();
|
|
1199
1204
|
}), s("destroy", () => {
|
|
1200
|
-
|
|
1205
|
+
Ee();
|
|
1201
1206
|
}), s("touchStart", (C, x) => {
|
|
1202
1207
|
e.zoom.enabled && $(x);
|
|
1203
1208
|
}), s("touchEnd", (C, x) => {
|
|
@@ -1209,45 +1214,45 @@ function Gt(t) {
|
|
|
1209
1214
|
}), s("slideChange", () => {
|
|
1210
1215
|
e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && Y();
|
|
1211
1216
|
}), Object.assign(e.zoom, {
|
|
1212
|
-
enable:
|
|
1213
|
-
disable:
|
|
1217
|
+
enable: pe,
|
|
1218
|
+
disable: Ee,
|
|
1214
1219
|
in: G,
|
|
1215
|
-
out:
|
|
1220
|
+
out: N,
|
|
1216
1221
|
toggle: K
|
|
1217
1222
|
});
|
|
1218
1223
|
}
|
|
1219
|
-
let
|
|
1220
|
-
function
|
|
1224
|
+
let _e;
|
|
1225
|
+
function Yt() {
|
|
1221
1226
|
const t = k(), e = Z();
|
|
1222
1227
|
return {
|
|
1223
1228
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
1224
1229
|
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
1225
1230
|
};
|
|
1226
1231
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1232
|
+
function lt() {
|
|
1233
|
+
return _e || (_e = Yt()), _e;
|
|
1229
1234
|
}
|
|
1230
|
-
let
|
|
1231
|
-
function
|
|
1235
|
+
let Ge;
|
|
1236
|
+
function Xt(t) {
|
|
1232
1237
|
let {
|
|
1233
1238
|
userAgent: e
|
|
1234
1239
|
} = t === void 0 ? {} : t;
|
|
1235
|
-
const i =
|
|
1240
|
+
const i = lt(), s = k(), n = s.navigator.platform, r = e || s.navigator.userAgent, d = {
|
|
1236
1241
|
ios: false,
|
|
1237
1242
|
android: false
|
|
1238
|
-
}, o = s.screen.width, c = s.screen.height, f =
|
|
1239
|
-
let
|
|
1240
|
-
const m =
|
|
1241
|
-
let a =
|
|
1243
|
+
}, o = s.screen.width, c = s.screen.height, f = r.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
1244
|
+
let p = r.match(/(iPad).*OS\s([\d_]+)/);
|
|
1245
|
+
const m = r.match(/(iPod)(.*OS\s([\d_]+))?/), v = !p && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), w = n === "Win32";
|
|
1246
|
+
let a = n === "MacIntel";
|
|
1242
1247
|
const l = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
1243
|
-
return !
|
|
1248
|
+
return !p && a && i.touch && l.indexOf(`${o}x${c}`) >= 0 && (p = r.match(/(Version)\/([\d.]+)/), p || (p = [0, 1, "13_0_0"]), a = false), f && !w && (d.os = "android", d.android = true), (p || v || m) && (d.os = "ios", d.ios = true), d;
|
|
1244
1249
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return t === void 0 && (t = {}),
|
|
1250
|
+
function ot(t) {
|
|
1251
|
+
return t === void 0 && (t = {}), Ge || (Ge = Xt(t)), Ge;
|
|
1247
1252
|
}
|
|
1248
|
-
let
|
|
1249
|
-
function
|
|
1250
|
-
const t = k(), e =
|
|
1253
|
+
let Be;
|
|
1254
|
+
function Rt() {
|
|
1255
|
+
const t = k(), e = ot();
|
|
1251
1256
|
let i = false;
|
|
1252
1257
|
function s() {
|
|
1253
1258
|
const o = t.navigator.userAgent.toLowerCase();
|
|
@@ -1256,34 +1261,34 @@ function Xt() {
|
|
|
1256
1261
|
if (s()) {
|
|
1257
1262
|
const o = String(t.navigator.userAgent);
|
|
1258
1263
|
if (o.includes("Version/")) {
|
|
1259
|
-
const [c, f] = o.split("Version/")[1].split(" ")[0].split(".").map((
|
|
1264
|
+
const [c, f] = o.split("Version/")[1].split(" ")[0].split(".").map((p) => Number(p));
|
|
1260
1265
|
i = c < 16 || c === 16 && f < 2;
|
|
1261
1266
|
}
|
|
1262
1267
|
}
|
|
1263
|
-
const
|
|
1268
|
+
const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), r = s(), d = r || n && e.ios;
|
|
1264
1269
|
return {
|
|
1265
|
-
isSafari: i ||
|
|
1270
|
+
isSafari: i || r,
|
|
1266
1271
|
needPerspectiveFix: i,
|
|
1267
1272
|
need3dFix: d,
|
|
1268
|
-
isWebView:
|
|
1273
|
+
isWebView: n
|
|
1269
1274
|
};
|
|
1270
1275
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1276
|
+
function dt() {
|
|
1277
|
+
return Be || (Be = Rt()), Be;
|
|
1273
1278
|
}
|
|
1274
|
-
function
|
|
1279
|
+
function Vt(t) {
|
|
1275
1280
|
let {
|
|
1276
1281
|
swiper: e,
|
|
1277
1282
|
on: i,
|
|
1278
1283
|
emit: s
|
|
1279
1284
|
} = t;
|
|
1280
|
-
const
|
|
1281
|
-
let
|
|
1285
|
+
const n = k();
|
|
1286
|
+
let r = null, d = null;
|
|
1282
1287
|
const o = () => {
|
|
1283
1288
|
!e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
|
|
1284
1289
|
}, c = () => {
|
|
1285
|
-
!e || e.destroyed || !e.initialized || (
|
|
1286
|
-
d =
|
|
1290
|
+
!e || e.destroyed || !e.initialized || (r = new ResizeObserver((m) => {
|
|
1291
|
+
d = n.requestAnimationFrame(() => {
|
|
1287
1292
|
const {
|
|
1288
1293
|
width: v,
|
|
1289
1294
|
height: w
|
|
@@ -1292,59 +1297,59 @@ function Rt(t) {
|
|
|
1292
1297
|
m.forEach((S) => {
|
|
1293
1298
|
let {
|
|
1294
1299
|
contentBoxSize: g,
|
|
1295
|
-
contentRect:
|
|
1300
|
+
contentRect: u,
|
|
1296
1301
|
target: h
|
|
1297
1302
|
} = S;
|
|
1298
|
-
h && h !== e.el || (a =
|
|
1303
|
+
h && h !== e.el || (a = u ? u.width : (g[0] || g).inlineSize, l = u ? u.height : (g[0] || g).blockSize);
|
|
1299
1304
|
}), (a !== v || l !== w) && o();
|
|
1300
1305
|
});
|
|
1301
|
-
}),
|
|
1306
|
+
}), r.observe(e.el));
|
|
1302
1307
|
}, f = () => {
|
|
1303
|
-
d &&
|
|
1304
|
-
},
|
|
1308
|
+
d && n.cancelAnimationFrame(d), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
|
|
1309
|
+
}, p = () => {
|
|
1305
1310
|
!e || e.destroyed || !e.initialized || s("orientationchange");
|
|
1306
1311
|
};
|
|
1307
1312
|
i("init", () => {
|
|
1308
|
-
if (e.params.resizeObserver && typeof
|
|
1313
|
+
if (e.params.resizeObserver && typeof n.ResizeObserver < "u") {
|
|
1309
1314
|
c();
|
|
1310
1315
|
return;
|
|
1311
1316
|
}
|
|
1312
|
-
|
|
1317
|
+
n.addEventListener("resize", o), n.addEventListener("orientationchange", p);
|
|
1313
1318
|
}), i("destroy", () => {
|
|
1314
|
-
f(),
|
|
1319
|
+
f(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", p);
|
|
1315
1320
|
});
|
|
1316
1321
|
}
|
|
1317
|
-
function
|
|
1322
|
+
function Wt(t) {
|
|
1318
1323
|
let {
|
|
1319
1324
|
swiper: e,
|
|
1320
1325
|
extendParams: i,
|
|
1321
1326
|
on: s,
|
|
1322
|
-
emit:
|
|
1327
|
+
emit: n
|
|
1323
1328
|
} = t;
|
|
1324
|
-
const
|
|
1329
|
+
const r = [], d = k(), o = function(p, m) {
|
|
1325
1330
|
m === void 0 && (m = {});
|
|
1326
1331
|
const v = d.MutationObserver || d.WebkitMutationObserver, w = new v((a) => {
|
|
1327
1332
|
if (e.__preventObserver__) return;
|
|
1328
1333
|
if (a.length === 1) {
|
|
1329
|
-
|
|
1334
|
+
n("observerUpdate", a[0]);
|
|
1330
1335
|
return;
|
|
1331
1336
|
}
|
|
1332
1337
|
const l = function() {
|
|
1333
|
-
|
|
1338
|
+
n("observerUpdate", a[0]);
|
|
1334
1339
|
};
|
|
1335
1340
|
d.requestAnimationFrame ? d.requestAnimationFrame(l) : d.setTimeout(l, 0);
|
|
1336
1341
|
});
|
|
1337
|
-
w.observe(
|
|
1342
|
+
w.observe(p, {
|
|
1338
1343
|
attributes: typeof m.attributes > "u" ? true : m.attributes,
|
|
1339
1344
|
childList: e.isElement || (typeof m.childList > "u" ? true : m).childList,
|
|
1340
1345
|
characterData: typeof m.characterData > "u" ? true : m.characterData
|
|
1341
|
-
}),
|
|
1346
|
+
}), r.push(w);
|
|
1342
1347
|
}, c = () => {
|
|
1343
1348
|
if (e.params.observer) {
|
|
1344
1349
|
if (e.params.observeParents) {
|
|
1345
|
-
const
|
|
1346
|
-
for (let m = 0; m <
|
|
1347
|
-
o(
|
|
1350
|
+
const p = ne(e.hostEl);
|
|
1351
|
+
for (let m = 0; m < p.length; m += 1)
|
|
1352
|
+
o(p[m]);
|
|
1348
1353
|
}
|
|
1349
1354
|
o(e.hostEl, {
|
|
1350
1355
|
childList: e.params.observeSlideChildren
|
|
@@ -1353,9 +1358,9 @@ function Vt(t) {
|
|
|
1353
1358
|
});
|
|
1354
1359
|
}
|
|
1355
1360
|
}, f = () => {
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
}),
|
|
1361
|
+
r.forEach((p) => {
|
|
1362
|
+
p.disconnect();
|
|
1363
|
+
}), r.splice(0, r.length);
|
|
1359
1364
|
};
|
|
1360
1365
|
i({
|
|
1361
1366
|
observer: false,
|
|
@@ -1363,25 +1368,25 @@ function Vt(t) {
|
|
|
1363
1368
|
observeSlideChildren: false
|
|
1364
1369
|
}), s("init", c), s("destroy", f);
|
|
1365
1370
|
}
|
|
1366
|
-
var
|
|
1371
|
+
var kt = {
|
|
1367
1372
|
on(t, e, i) {
|
|
1368
1373
|
const s = this;
|
|
1369
1374
|
if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
|
|
1370
|
-
const
|
|
1371
|
-
return t.split(" ").forEach((
|
|
1372
|
-
s.eventsListeners[
|
|
1375
|
+
const n = i ? "unshift" : "push";
|
|
1376
|
+
return t.split(" ").forEach((r) => {
|
|
1377
|
+
s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][n](e);
|
|
1373
1378
|
}), s;
|
|
1374
1379
|
},
|
|
1375
1380
|
once(t, e, i) {
|
|
1376
1381
|
const s = this;
|
|
1377
1382
|
if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
|
|
1378
|
-
function
|
|
1379
|
-
s.off(t,
|
|
1380
|
-
for (var
|
|
1383
|
+
function n() {
|
|
1384
|
+
s.off(t, n), n.__emitterProxy && delete n.__emitterProxy;
|
|
1385
|
+
for (var r = arguments.length, d = new Array(r), o = 0; o < r; o++)
|
|
1381
1386
|
d[o] = arguments[o];
|
|
1382
1387
|
e.apply(s, d);
|
|
1383
1388
|
}
|
|
1384
|
-
return
|
|
1389
|
+
return n.__emitterProxy = e, s.on(t, n, i);
|
|
1385
1390
|
},
|
|
1386
1391
|
onAny(t, e) {
|
|
1387
1392
|
const i = this;
|
|
@@ -1398,8 +1403,8 @@ var Wt = {
|
|
|
1398
1403
|
off(t, e) {
|
|
1399
1404
|
const i = this;
|
|
1400
1405
|
return !i.eventsListeners || i.destroyed || !i.eventsListeners || t.split(" ").forEach((s) => {
|
|
1401
|
-
typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((
|
|
1402
|
-
(
|
|
1406
|
+
typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((n, r) => {
|
|
1407
|
+
(n === e || n.__emitterProxy && n.__emitterProxy === e) && i.eventsListeners[s].splice(r, 1);
|
|
1403
1408
|
});
|
|
1404
1409
|
}), i;
|
|
1405
1410
|
},
|
|
@@ -1407,9 +1412,9 @@ var Wt = {
|
|
|
1407
1412
|
const t = this;
|
|
1408
1413
|
if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
|
|
1409
1414
|
let e, i, s;
|
|
1410
|
-
for (var
|
|
1411
|
-
|
|
1412
|
-
return typeof
|
|
1415
|
+
for (var n = arguments.length, r = new Array(n), d = 0; d < n; d++)
|
|
1416
|
+
r[d] = arguments[d];
|
|
1417
|
+
return typeof r[0] == "string" || Array.isArray(r[0]) ? (e = r[0], i = r.slice(1, r.length), s = t) : (e = r[0].events, i = r[0].data, s = r[0].context || t), i.unshift(s), (Array.isArray(e) ? e : e.split(" ")).forEach((c) => {
|
|
1413
1418
|
t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((f) => {
|
|
1414
1419
|
f.apply(s, [c, ...i]);
|
|
1415
1420
|
}), t.eventsListeners && t.eventsListeners[c] && t.eventsListeners[c].forEach((f) => {
|
|
@@ -1418,11 +1423,11 @@ var Wt = {
|
|
|
1418
1423
|
}), t;
|
|
1419
1424
|
}
|
|
1420
1425
|
};
|
|
1421
|
-
function
|
|
1426
|
+
function Nt() {
|
|
1422
1427
|
const t = this;
|
|
1423
1428
|
let e, i;
|
|
1424
1429
|
const s = t.el;
|
|
1425
|
-
typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(
|
|
1430
|
+
typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(re(s, "padding-left") || 0, 10) - parseInt(re(s, "padding-right") || 0, 10), i = i - parseInt(re(s, "padding-top") || 0, 10) - parseInt(re(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
|
|
1426
1431
|
width: e,
|
|
1427
1432
|
height: i,
|
|
1428
1433
|
size: t.isHorizontal() ? e : i
|
|
@@ -1435,40 +1440,40 @@ function Ht() {
|
|
|
1435
1440
|
}
|
|
1436
1441
|
const i = t.params, {
|
|
1437
1442
|
wrapperEl: s,
|
|
1438
|
-
slidesEl:
|
|
1439
|
-
size:
|
|
1443
|
+
slidesEl: n,
|
|
1444
|
+
size: r,
|
|
1440
1445
|
rtlTranslate: d,
|
|
1441
1446
|
wrongRTL: o
|
|
1442
|
-
} = t, c = t.virtual && i.virtual.enabled, f = c ? t.virtual.slides.length : t.slides.length,
|
|
1447
|
+
} = t, c = t.virtual && i.virtual.enabled, f = c ? t.virtual.slides.length : t.slides.length, p = q(n, `.${t.params.slideClass}, swiper-slide`), m = c ? t.virtual.slides.length : p.length;
|
|
1443
1448
|
let v = [];
|
|
1444
1449
|
const w = [], a = [];
|
|
1445
1450
|
let l = i.slidesOffsetBefore;
|
|
1446
1451
|
typeof l == "function" && (l = i.slidesOffsetBefore.call(t));
|
|
1447
1452
|
let S = i.slidesOffsetAfter;
|
|
1448
1453
|
typeof S == "function" && (S = i.slidesOffsetAfter.call(t));
|
|
1449
|
-
const g = t.snapGrid.length,
|
|
1454
|
+
const g = t.snapGrid.length, u = t.slidesGrid.length;
|
|
1450
1455
|
let h = i.spaceBetween, E = -l, b = 0, L = 0;
|
|
1451
|
-
if (typeof
|
|
1456
|
+
if (typeof r > "u")
|
|
1452
1457
|
return;
|
|
1453
|
-
typeof h == "string" && h.indexOf("%") >= 0 ? h = parseFloat(h.replace("%", "")) / 100 *
|
|
1458
|
+
typeof h == "string" && h.indexOf("%") >= 0 ? h = parseFloat(h.replace("%", "")) / 100 * r : typeof h == "string" && (h = parseFloat(h)), t.virtualSize = -h, p.forEach((T) => {
|
|
1454
1459
|
d ? T.style.marginLeft = "" : T.style.marginRight = "", T.style.marginBottom = "", T.style.marginTop = "";
|
|
1455
|
-
}), i.centeredSlides && i.cssMode && (
|
|
1460
|
+
}), i.centeredSlides && i.cssMode && (we(s, "--swiper-centered-offset-before", ""), we(s, "--swiper-centered-offset-after", ""));
|
|
1456
1461
|
const I = i.grid && i.grid.rows > 1 && t.grid;
|
|
1457
|
-
I ? t.grid.initSlides(
|
|
1462
|
+
I ? t.grid.initSlides(p) : t.grid && t.grid.unsetSlides();
|
|
1458
1463
|
let z;
|
|
1459
1464
|
const y = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((T) => typeof i.breakpoints[T].slidesPerView < "u").length > 0;
|
|
1460
1465
|
for (let T = 0; T < m; T += 1) {
|
|
1461
1466
|
z = 0;
|
|
1462
1467
|
let P;
|
|
1463
|
-
if (
|
|
1468
|
+
if (p[T] && (P = p[T]), I && t.grid.updateSlide(T, P, p), !(p[T] && re(P, "display") === "none")) {
|
|
1464
1469
|
if (i.slidesPerView === "auto") {
|
|
1465
|
-
y && (
|
|
1470
|
+
y && (p[T].style[t.getDirectionLabel("width")] = "");
|
|
1466
1471
|
const O = getComputedStyle(P), D = P.style.transform, $ = P.style.webkitTransform;
|
|
1467
1472
|
if (D && (P.style.transform = "none"), $ && (P.style.webkitTransform = "none"), i.roundLengths)
|
|
1468
|
-
z = t.isHorizontal() ?
|
|
1473
|
+
z = t.isHorizontal() ? Ne(P, "width") : Ne(P, "height");
|
|
1469
1474
|
else {
|
|
1470
|
-
const _ = e(O, "width"), A = e(O, "padding-left"), Y = e(O, "padding-right"), X = e(O, "margin-left"), G = e(O, "margin-right"),
|
|
1471
|
-
if (
|
|
1475
|
+
const _ = e(O, "width"), A = e(O, "padding-left"), Y = e(O, "padding-right"), X = e(O, "margin-left"), G = e(O, "margin-right"), N = O.getPropertyValue("box-sizing");
|
|
1476
|
+
if (N && N === "border-box")
|
|
1472
1477
|
z = _ + X + G;
|
|
1473
1478
|
else {
|
|
1474
1479
|
const {
|
|
@@ -1480,17 +1485,17 @@ function Ht() {
|
|
|
1480
1485
|
}
|
|
1481
1486
|
D && (P.style.transform = D), $ && (P.style.webkitTransform = $), i.roundLengths && (z = Math.floor(z));
|
|
1482
1487
|
} else
|
|
1483
|
-
z = (
|
|
1484
|
-
|
|
1488
|
+
z = (r - (i.slidesPerView - 1) * h) / i.slidesPerView, i.roundLengths && (z = Math.floor(z)), p[T] && (p[T].style[t.getDirectionLabel("width")] = `${z}px`);
|
|
1489
|
+
p[T] && (p[T].swiperSlideSize = z), a.push(z), i.centeredSlides ? (E = E + z / 2 + b / 2 + h, b === 0 && T !== 0 && (E = E - r / 2 - h), T === 0 && (E = E - r / 2 - h), Math.abs(E) < 1 / 1e3 && (E = 0), i.roundLengths && (E = Math.floor(E)), L % i.slidesPerGroup === 0 && v.push(E), w.push(E)) : (i.roundLengths && (E = Math.floor(E)), (L - Math.min(t.params.slidesPerGroupSkip, L)) % t.params.slidesPerGroup === 0 && v.push(E), w.push(E), E = E + z + h), t.virtualSize += z + h, b = z, L += 1;
|
|
1485
1490
|
}
|
|
1486
1491
|
}
|
|
1487
|
-
if (t.virtualSize = Math.max(t.virtualSize,
|
|
1492
|
+
if (t.virtualSize = Math.max(t.virtualSize, r) + S, d && o && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + h}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + h}px`), I && t.grid.updateWrapperSize(z, v), !i.centeredSlides) {
|
|
1488
1493
|
const T = [];
|
|
1489
1494
|
for (let P = 0; P < v.length; P += 1) {
|
|
1490
1495
|
let O = v[P];
|
|
1491
|
-
i.roundLengths && (O = Math.floor(O)), v[P] <= t.virtualSize -
|
|
1496
|
+
i.roundLengths && (O = Math.floor(O)), v[P] <= t.virtualSize - r && T.push(O);
|
|
1492
1497
|
}
|
|
1493
|
-
v = T, Math.floor(t.virtualSize -
|
|
1498
|
+
v = T, Math.floor(t.virtualSize - r) - Math.floor(v[v.length - 1]) > 1 && v.push(t.virtualSize - r);
|
|
1494
1499
|
}
|
|
1495
1500
|
if (c && i.loop) {
|
|
1496
1501
|
const T = a[0] + h;
|
|
@@ -1504,7 +1509,7 @@ function Ht() {
|
|
|
1504
1509
|
}
|
|
1505
1510
|
if (v.length === 0 && (v = [0]), h !== 0) {
|
|
1506
1511
|
const T = t.isHorizontal() && d ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
1507
|
-
|
|
1512
|
+
p.filter((P, O) => !i.cssMode || i.loop ? true : O !== p.length - 1).forEach((P) => {
|
|
1508
1513
|
P.style[T] = `${h}px`;
|
|
1509
1514
|
});
|
|
1510
1515
|
}
|
|
@@ -1513,7 +1518,7 @@ function Ht() {
|
|
|
1513
1518
|
a.forEach((O) => {
|
|
1514
1519
|
T += O + (h || 0);
|
|
1515
1520
|
}), T -= h;
|
|
1516
|
-
const P = T >
|
|
1521
|
+
const P = T > r ? T - r : 0;
|
|
1517
1522
|
v = v.map((O) => O <= 0 ? -l : O > P ? P + S : O);
|
|
1518
1523
|
}
|
|
1519
1524
|
if (i.centerInsufficientSlides) {
|
|
@@ -1522,8 +1527,8 @@ function Ht() {
|
|
|
1522
1527
|
T += O + (h || 0);
|
|
1523
1528
|
}), T -= h;
|
|
1524
1529
|
const P = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
|
|
1525
|
-
if (T + P <
|
|
1526
|
-
const O = (
|
|
1530
|
+
if (T + P < r) {
|
|
1531
|
+
const O = (r - T - P) / 2;
|
|
1527
1532
|
v.forEach((D, $) => {
|
|
1528
1533
|
v[$] = D - O;
|
|
1529
1534
|
}), w.forEach((D, $) => {
|
|
@@ -1532,23 +1537,23 @@ function Ht() {
|
|
|
1532
1537
|
}
|
|
1533
1538
|
}
|
|
1534
1539
|
if (Object.assign(t, {
|
|
1535
|
-
slides:
|
|
1540
|
+
slides: p,
|
|
1536
1541
|
snapGrid: v,
|
|
1537
1542
|
slidesGrid: w,
|
|
1538
1543
|
slidesSizesGrid: a
|
|
1539
1544
|
}), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
|
|
1540
|
-
|
|
1545
|
+
we(s, "--swiper-centered-offset-before", `${-v[0]}px`), we(s, "--swiper-centered-offset-after", `${t.size / 2 - a[a.length - 1] / 2}px`);
|
|
1541
1546
|
const T = -t.snapGrid[0], P = -t.slidesGrid[0];
|
|
1542
1547
|
t.snapGrid = t.snapGrid.map((O) => O + T), t.slidesGrid = t.slidesGrid.map((O) => O + P);
|
|
1543
1548
|
}
|
|
1544
|
-
if (m !== f && t.emit("slidesLengthChange"), v.length !== g && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), w.length !==
|
|
1549
|
+
if (m !== f && t.emit("slidesLengthChange"), v.length !== g && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), w.length !== u && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !c && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
|
|
1545
1550
|
const T = `${i.containerModifierClass}backface-hidden`, P = t.el.classList.contains(T);
|
|
1546
1551
|
m <= i.maxBackfaceHiddenSlides ? P || t.el.classList.add(T) : P && t.el.classList.remove(T);
|
|
1547
1552
|
}
|
|
1548
1553
|
}
|
|
1549
|
-
function
|
|
1554
|
+
function Ft(t) {
|
|
1550
1555
|
const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
|
|
1551
|
-
let
|
|
1556
|
+
let n = 0, r;
|
|
1552
1557
|
typeof t == "number" ? e.setTransition(t) : t === true && e.setTransition(e.params.speed);
|
|
1553
1558
|
const d = (o) => s ? e.slides[e.getSlideIndexByData(o)] : e.slides[o];
|
|
1554
1559
|
if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
|
|
@@ -1557,21 +1562,21 @@ function Nt(t) {
|
|
|
1557
1562
|
i.push(o);
|
|
1558
1563
|
});
|
|
1559
1564
|
else
|
|
1560
|
-
for (
|
|
1561
|
-
const o = e.activeIndex +
|
|
1565
|
+
for (r = 0; r < Math.ceil(e.params.slidesPerView); r += 1) {
|
|
1566
|
+
const o = e.activeIndex + r;
|
|
1562
1567
|
if (o > e.slides.length && !s) break;
|
|
1563
1568
|
i.push(d(o));
|
|
1564
1569
|
}
|
|
1565
1570
|
else
|
|
1566
1571
|
i.push(d(e.activeIndex));
|
|
1567
|
-
for (
|
|
1568
|
-
if (typeof i[
|
|
1569
|
-
const o = i[
|
|
1570
|
-
|
|
1572
|
+
for (r = 0; r < i.length; r += 1)
|
|
1573
|
+
if (typeof i[r] < "u") {
|
|
1574
|
+
const o = i[r].offsetHeight;
|
|
1575
|
+
n = o > n ? o : n;
|
|
1571
1576
|
}
|
|
1572
|
-
(
|
|
1577
|
+
(n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
|
|
1573
1578
|
}
|
|
1574
|
-
function
|
|
1579
|
+
function jt() {
|
|
1575
1580
|
const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
1576
1581
|
for (let s = 0; s < e.length; s += 1)
|
|
1577
1582
|
e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
|
|
@@ -1579,166 +1584,166 @@ function Ft() {
|
|
|
1579
1584
|
const Qe = (t, e, i) => {
|
|
1580
1585
|
e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
|
|
1581
1586
|
};
|
|
1582
|
-
function
|
|
1587
|
+
function qt(t) {
|
|
1583
1588
|
t === void 0 && (t = this && this.translate || 0);
|
|
1584
1589
|
const e = this, i = e.params, {
|
|
1585
1590
|
slides: s,
|
|
1586
|
-
rtlTranslate:
|
|
1587
|
-
snapGrid:
|
|
1591
|
+
rtlTranslate: n,
|
|
1592
|
+
snapGrid: r
|
|
1588
1593
|
} = e;
|
|
1589
1594
|
if (s.length === 0) return;
|
|
1590
1595
|
typeof s[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
|
|
1591
1596
|
let d = -t;
|
|
1592
|
-
|
|
1597
|
+
n && (d = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
|
|
1593
1598
|
let o = i.spaceBetween;
|
|
1594
1599
|
typeof o == "string" && o.indexOf("%") >= 0 ? o = parseFloat(o.replace("%", "")) / 100 * e.size : typeof o == "string" && (o = parseFloat(o));
|
|
1595
1600
|
for (let c = 0; c < s.length; c += 1) {
|
|
1596
1601
|
const f = s[c];
|
|
1597
|
-
let
|
|
1598
|
-
i.cssMode && i.centeredSlides && (
|
|
1599
|
-
const m = (d + (i.centeredSlides ? e.minTranslate() : 0) -
|
|
1600
|
-
S && (e.visibleSlides.push(f), e.visibleSlidesIndexes.push(c)), Qe(f, S, i.slideVisibleClass), Qe(f, l, i.slideFullyVisibleClass), f.progress =
|
|
1602
|
+
let p = f.swiperSlideOffset;
|
|
1603
|
+
i.cssMode && i.centeredSlides && (p -= s[0].swiperSlideOffset);
|
|
1604
|
+
const m = (d + (i.centeredSlides ? e.minTranslate() : 0) - p) / (f.swiperSlideSize + o), v = (d - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - p) / (f.swiperSlideSize + o), w = -(d - p), a = w + e.slidesSizesGrid[c], l = w >= 0 && w <= e.size - e.slidesSizesGrid[c], S = w >= 0 && w < e.size - 1 || a > 1 && a <= e.size || w <= 0 && a >= e.size;
|
|
1605
|
+
S && (e.visibleSlides.push(f), e.visibleSlidesIndexes.push(c)), Qe(f, S, i.slideVisibleClass), Qe(f, l, i.slideFullyVisibleClass), f.progress = n ? -m : m, f.originalProgress = n ? -v : v;
|
|
1601
1606
|
}
|
|
1602
1607
|
}
|
|
1603
|
-
function
|
|
1608
|
+
function Ut(t) {
|
|
1604
1609
|
const e = this;
|
|
1605
1610
|
if (typeof t > "u") {
|
|
1606
|
-
const
|
|
1607
|
-
t = e && e.translate && e.translate *
|
|
1611
|
+
const p = e.rtlTranslate ? -1 : 1;
|
|
1612
|
+
t = e && e.translate && e.translate * p || 0;
|
|
1608
1613
|
}
|
|
1609
1614
|
const i = e.params, s = e.maxTranslate() - e.minTranslate();
|
|
1610
1615
|
let {
|
|
1611
|
-
progress:
|
|
1612
|
-
isBeginning:
|
|
1616
|
+
progress: n,
|
|
1617
|
+
isBeginning: r,
|
|
1613
1618
|
isEnd: d,
|
|
1614
1619
|
progressLoop: o
|
|
1615
1620
|
} = e;
|
|
1616
|
-
const c =
|
|
1621
|
+
const c = r, f = d;
|
|
1617
1622
|
if (s === 0)
|
|
1618
|
-
|
|
1623
|
+
n = 0, r = true, d = true;
|
|
1619
1624
|
else {
|
|
1620
|
-
|
|
1621
|
-
const
|
|
1622
|
-
|
|
1625
|
+
n = (t - e.minTranslate()) / s;
|
|
1626
|
+
const p = Math.abs(t - e.minTranslate()) < 1, m = Math.abs(t - e.maxTranslate()) < 1;
|
|
1627
|
+
r = p || n <= 0, d = m || n >= 1, p && (n = 0), m && (n = 1);
|
|
1623
1628
|
}
|
|
1624
1629
|
if (i.loop) {
|
|
1625
|
-
const
|
|
1630
|
+
const p = e.getSlideIndexByData(0), m = e.getSlideIndexByData(e.slides.length - 1), v = e.slidesGrid[p], w = e.slidesGrid[m], a = e.slidesGrid[e.slidesGrid.length - 1], l = Math.abs(t);
|
|
1626
1631
|
l >= v ? o = (l - v) / a : o = (l + a - w) / a, o > 1 && (o -= 1);
|
|
1627
1632
|
}
|
|
1628
1633
|
Object.assign(e, {
|
|
1629
|
-
progress:
|
|
1634
|
+
progress: n,
|
|
1630
1635
|
progressLoop: o,
|
|
1631
|
-
isBeginning:
|
|
1636
|
+
isBeginning: r,
|
|
1632
1637
|
isEnd: d
|
|
1633
|
-
}), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t),
|
|
1638
|
+
}), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), r && !c && e.emit("reachBeginning toEdge"), d && !f && e.emit("reachEnd toEdge"), (c && !r || f && !d) && e.emit("fromEdge"), e.emit("progress", n);
|
|
1634
1639
|
}
|
|
1635
|
-
const
|
|
1640
|
+
const Ye = (t, e, i) => {
|
|
1636
1641
|
e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
|
|
1637
1642
|
};
|
|
1638
|
-
function
|
|
1643
|
+
function Kt() {
|
|
1639
1644
|
const t = this, {
|
|
1640
1645
|
slides: e,
|
|
1641
1646
|
params: i,
|
|
1642
1647
|
slidesEl: s,
|
|
1643
|
-
activeIndex:
|
|
1644
|
-
} = t,
|
|
1645
|
-
let c, f,
|
|
1646
|
-
if (
|
|
1648
|
+
activeIndex: n
|
|
1649
|
+
} = t, r = t.virtual && i.virtual.enabled, d = t.grid && i.grid && i.grid.rows > 1, o = (m) => q(s, `.${i.slideClass}${m}, swiper-slide${m}`)[0];
|
|
1650
|
+
let c, f, p;
|
|
1651
|
+
if (r)
|
|
1647
1652
|
if (i.loop) {
|
|
1648
|
-
let m =
|
|
1653
|
+
let m = n - t.virtual.slidesBefore;
|
|
1649
1654
|
m < 0 && (m = t.virtual.slides.length + m), m >= t.virtual.slides.length && (m -= t.virtual.slides.length), c = o(`[data-swiper-slide-index="${m}"]`);
|
|
1650
1655
|
} else
|
|
1651
|
-
c = o(`[data-swiper-slide-index="${
|
|
1656
|
+
c = o(`[data-swiper-slide-index="${n}"]`);
|
|
1652
1657
|
else
|
|
1653
|
-
d ? (c = e.find((m) => m.column ===
|
|
1654
|
-
c && (d || (
|
|
1655
|
-
|
|
1658
|
+
d ? (c = e.find((m) => m.column === n), p = e.find((m) => m.column === n + 1), f = e.find((m) => m.column === n - 1)) : c = e[n];
|
|
1659
|
+
c && (d || (p = At(c, `.${i.slideClass}, swiper-slide`)[0], i.loop && !p && (p = e[0]), f = Ot(c, `.${i.slideClass}, swiper-slide`)[0], i.loop && !f === 0 && (f = e[e.length - 1]))), e.forEach((m) => {
|
|
1660
|
+
Ye(m, m === c, i.slideActiveClass), Ye(m, m === p, i.slideNextClass), Ye(m, m === f, i.slidePrevClass);
|
|
1656
1661
|
}), t.emitSlidesClasses();
|
|
1657
1662
|
}
|
|
1658
|
-
const
|
|
1663
|
+
const Ce = (t, e) => {
|
|
1659
1664
|
if (!t || t.destroyed || !t.params) return;
|
|
1660
1665
|
const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
|
|
1661
1666
|
if (s) {
|
|
1662
|
-
let
|
|
1663
|
-
!
|
|
1664
|
-
s.shadowRoot && (
|
|
1665
|
-
})),
|
|
1667
|
+
let n = s.querySelector(`.${t.params.lazyPreloaderClass}`);
|
|
1668
|
+
!n && t.isElement && (s.shadowRoot ? n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
|
|
1669
|
+
s.shadowRoot && (n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
|
|
1670
|
+
})), n && n.remove();
|
|
1666
1671
|
}
|
|
1667
|
-
},
|
|
1672
|
+
}, Xe = (t, e) => {
|
|
1668
1673
|
if (!t.slides[e]) return;
|
|
1669
1674
|
const i = t.slides[e].querySelector('[loading="lazy"]');
|
|
1670
1675
|
i && i.removeAttribute("loading");
|
|
1671
|
-
},
|
|
1676
|
+
}, He = (t) => {
|
|
1672
1677
|
if (!t || t.destroyed || !t.params) return;
|
|
1673
1678
|
let e = t.params.lazyPreloadPrevNext;
|
|
1674
1679
|
const i = t.slides.length;
|
|
1675
1680
|
if (!i || !e || e < 0) return;
|
|
1676
1681
|
e = Math.min(e, i);
|
|
1677
|
-
const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView),
|
|
1682
|
+
const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), n = t.activeIndex;
|
|
1678
1683
|
if (t.params.grid && t.params.grid.rows > 1) {
|
|
1679
|
-
const d =
|
|
1684
|
+
const d = n, o = [d - e];
|
|
1680
1685
|
o.push(...Array.from({
|
|
1681
1686
|
length: e
|
|
1682
1687
|
}).map((c, f) => d + s + f)), t.slides.forEach((c, f) => {
|
|
1683
|
-
o.includes(c.column) &&
|
|
1688
|
+
o.includes(c.column) && Xe(t, f);
|
|
1684
1689
|
});
|
|
1685
1690
|
return;
|
|
1686
1691
|
}
|
|
1687
|
-
const
|
|
1692
|
+
const r = n + s - 1;
|
|
1688
1693
|
if (t.params.rewind || t.params.loop)
|
|
1689
|
-
for (let d =
|
|
1694
|
+
for (let d = n - e; d <= r + e; d += 1) {
|
|
1690
1695
|
const o = (d % i + i) % i;
|
|
1691
|
-
(o <
|
|
1696
|
+
(o < n || o > r) && Xe(t, o);
|
|
1692
1697
|
}
|
|
1693
1698
|
else
|
|
1694
|
-
for (let d = Math.max(
|
|
1695
|
-
d !==
|
|
1699
|
+
for (let d = Math.max(n - e, 0); d <= Math.min(r + e, i - 1); d += 1)
|
|
1700
|
+
d !== n && (d > r || d < n) && Xe(t, d);
|
|
1696
1701
|
};
|
|
1697
|
-
function
|
|
1702
|
+
function Zt(t) {
|
|
1698
1703
|
const {
|
|
1699
1704
|
slidesGrid: e,
|
|
1700
1705
|
params: i
|
|
1701
1706
|
} = t, s = t.rtlTranslate ? t.translate : -t.translate;
|
|
1702
|
-
let
|
|
1703
|
-
for (let
|
|
1704
|
-
typeof e[
|
|
1705
|
-
return i.normalizeSlideIndex && (
|
|
1707
|
+
let n;
|
|
1708
|
+
for (let r = 0; r < e.length; r += 1)
|
|
1709
|
+
typeof e[r + 1] < "u" ? s >= e[r] && s < e[r + 1] - (e[r + 1] - e[r]) / 2 ? n = r : s >= e[r] && s < e[r + 1] && (n = r + 1) : s >= e[r] && (n = r);
|
|
1710
|
+
return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
1706
1711
|
}
|
|
1707
|
-
function
|
|
1712
|
+
function Qt(t) {
|
|
1708
1713
|
const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
|
|
1709
1714
|
snapGrid: s,
|
|
1710
|
-
params:
|
|
1711
|
-
activeIndex:
|
|
1715
|
+
params: n,
|
|
1716
|
+
activeIndex: r,
|
|
1712
1717
|
realIndex: d,
|
|
1713
1718
|
snapIndex: o
|
|
1714
1719
|
} = e;
|
|
1715
1720
|
let c = t, f;
|
|
1716
|
-
const
|
|
1721
|
+
const p = (w) => {
|
|
1717
1722
|
let a = w - e.virtual.slidesBefore;
|
|
1718
1723
|
return a < 0 && (a = e.virtual.slides.length + a), a >= e.virtual.slides.length && (a -= e.virtual.slides.length), a;
|
|
1719
1724
|
};
|
|
1720
|
-
if (typeof c > "u" && (c =
|
|
1725
|
+
if (typeof c > "u" && (c = Zt(e)), s.indexOf(i) >= 0)
|
|
1721
1726
|
f = s.indexOf(i);
|
|
1722
1727
|
else {
|
|
1723
|
-
const w = Math.min(
|
|
1724
|
-
f = w + Math.floor((c - w) /
|
|
1728
|
+
const w = Math.min(n.slidesPerGroupSkip, c);
|
|
1729
|
+
f = w + Math.floor((c - w) / n.slidesPerGroup);
|
|
1725
1730
|
}
|
|
1726
|
-
if (f >= s.length && (f = s.length - 1), c ===
|
|
1731
|
+
if (f >= s.length && (f = s.length - 1), c === r && !e.params.loop) {
|
|
1727
1732
|
f !== o && (e.snapIndex = f, e.emit("snapIndexChange"));
|
|
1728
1733
|
return;
|
|
1729
1734
|
}
|
|
1730
|
-
if (c ===
|
|
1731
|
-
e.realIndex =
|
|
1735
|
+
if (c === r && e.params.loop && e.virtual && e.params.virtual.enabled) {
|
|
1736
|
+
e.realIndex = p(c);
|
|
1732
1737
|
return;
|
|
1733
1738
|
}
|
|
1734
|
-
const m = e.grid &&
|
|
1739
|
+
const m = e.grid && n.grid && n.grid.rows > 1;
|
|
1735
1740
|
let v;
|
|
1736
|
-
if (e.virtual &&
|
|
1737
|
-
v =
|
|
1741
|
+
if (e.virtual && n.virtual.enabled && n.loop)
|
|
1742
|
+
v = p(c);
|
|
1738
1743
|
else if (m) {
|
|
1739
1744
|
const w = e.slides.find((l) => l.column === c);
|
|
1740
1745
|
let a = parseInt(w.getAttribute("data-swiper-slide-index"), 10);
|
|
1741
|
-
Number.isNaN(a) && (a = Math.max(e.slides.indexOf(w), 0)), v = Math.floor(a /
|
|
1746
|
+
Number.isNaN(a) && (a = Math.max(e.slides.indexOf(w), 0)), v = Math.floor(a / n.grid.rows);
|
|
1742
1747
|
} else if (e.slides[c]) {
|
|
1743
1748
|
const w = e.slides[c].getAttribute("data-swiper-slide-index");
|
|
1744
1749
|
w ? v = parseInt(w, 10) : v = c;
|
|
@@ -1749,190 +1754,184 @@ function Zt(t) {
|
|
|
1749
1754
|
snapIndex: f,
|
|
1750
1755
|
previousRealIndex: d,
|
|
1751
1756
|
realIndex: v,
|
|
1752
|
-
previousIndex:
|
|
1757
|
+
previousIndex: r,
|
|
1753
1758
|
activeIndex: c
|
|
1754
|
-
}), e.initialized &&
|
|
1759
|
+
}), e.initialized && He(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (d !== v && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
1755
1760
|
}
|
|
1756
|
-
function
|
|
1761
|
+
function Jt(t, e) {
|
|
1757
1762
|
const i = this, s = i.params;
|
|
1758
|
-
let
|
|
1759
|
-
!
|
|
1760
|
-
!
|
|
1763
|
+
let n = t.closest(`.${s.slideClass}, swiper-slide`);
|
|
1764
|
+
!n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((o) => {
|
|
1765
|
+
!n && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (n = o);
|
|
1761
1766
|
});
|
|
1762
|
-
let
|
|
1763
|
-
if (
|
|
1767
|
+
let r = false, d;
|
|
1768
|
+
if (n) {
|
|
1764
1769
|
for (let o = 0; o < i.slides.length; o += 1)
|
|
1765
|
-
if (i.slides[o] ===
|
|
1766
|
-
|
|
1770
|
+
if (i.slides[o] === n) {
|
|
1771
|
+
r = true, d = o;
|
|
1767
1772
|
break;
|
|
1768
1773
|
}
|
|
1769
1774
|
}
|
|
1770
|
-
if (
|
|
1771
|
-
i.clickedSlide =
|
|
1775
|
+
if (n && r)
|
|
1776
|
+
i.clickedSlide = n, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = d;
|
|
1772
1777
|
else {
|
|
1773
1778
|
i.clickedSlide = void 0, i.clickedIndex = void 0;
|
|
1774
1779
|
return;
|
|
1775
1780
|
}
|
|
1776
1781
|
s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
|
|
1777
1782
|
}
|
|
1778
|
-
var
|
|
1779
|
-
updateSize:
|
|
1783
|
+
var ei = {
|
|
1784
|
+
updateSize: Nt,
|
|
1780
1785
|
updateSlides: Ht,
|
|
1781
|
-
updateAutoHeight:
|
|
1782
|
-
updateSlidesOffset:
|
|
1783
|
-
updateSlidesProgress:
|
|
1784
|
-
updateProgress:
|
|
1785
|
-
updateSlidesClasses:
|
|
1786
|
-
updateActiveIndex:
|
|
1787
|
-
updateClickedSlide:
|
|
1786
|
+
updateAutoHeight: Ft,
|
|
1787
|
+
updateSlidesOffset: jt,
|
|
1788
|
+
updateSlidesProgress: qt,
|
|
1789
|
+
updateProgress: Ut,
|
|
1790
|
+
updateSlidesClasses: Kt,
|
|
1791
|
+
updateActiveIndex: Qt,
|
|
1792
|
+
updateClickedSlide: Jt
|
|
1788
1793
|
};
|
|
1789
|
-
function
|
|
1794
|
+
function ti(t) {
|
|
1790
1795
|
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
1791
1796
|
const e = this, {
|
|
1792
1797
|
params: i,
|
|
1793
1798
|
rtlTranslate: s,
|
|
1794
|
-
translate:
|
|
1795
|
-
wrapperEl:
|
|
1799
|
+
translate: n,
|
|
1800
|
+
wrapperEl: r
|
|
1796
1801
|
} = e;
|
|
1797
1802
|
if (i.virtualTranslate)
|
|
1798
|
-
return s ? -
|
|
1803
|
+
return s ? -n : n;
|
|
1799
1804
|
if (i.cssMode)
|
|
1800
|
-
return
|
|
1801
|
-
let d = We(
|
|
1805
|
+
return n;
|
|
1806
|
+
let d = We(r, t);
|
|
1802
1807
|
return d += e.cssOverflowAdjustment(), s && (d = -d), d || 0;
|
|
1803
1808
|
}
|
|
1804
|
-
function
|
|
1809
|
+
function ii(t, e) {
|
|
1805
1810
|
const i = this, {
|
|
1806
1811
|
rtlTranslate: s,
|
|
1807
|
-
params:
|
|
1808
|
-
wrapperEl:
|
|
1812
|
+
params: n,
|
|
1813
|
+
wrapperEl: r,
|
|
1809
1814
|
progress: d
|
|
1810
1815
|
} = i;
|
|
1811
1816
|
let o = 0, c = 0;
|
|
1812
1817
|
const f = 0;
|
|
1813
|
-
i.isHorizontal() ? o = s ? -t : t : c = t,
|
|
1814
|
-
let
|
|
1818
|
+
i.isHorizontal() ? o = s ? -t : t : c = t, n.roundLengths && (o = Math.floor(o), c = Math.floor(c)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? o : c, n.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -o : -c : n.virtualTranslate || (i.isHorizontal() ? o -= i.cssOverflowAdjustment() : c -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${o}px, ${c}px, ${f}px)`);
|
|
1819
|
+
let p;
|
|
1815
1820
|
const m = i.maxTranslate() - i.minTranslate();
|
|
1816
|
-
m === 0 ?
|
|
1821
|
+
m === 0 ? p = 0 : p = (t - i.minTranslate()) / m, p !== d && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
|
|
1817
1822
|
}
|
|
1818
|
-
function
|
|
1823
|
+
function si() {
|
|
1819
1824
|
return -this.snapGrid[0];
|
|
1820
1825
|
}
|
|
1821
|
-
function
|
|
1826
|
+
function ri() {
|
|
1822
1827
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
1823
1828
|
}
|
|
1824
|
-
function ni(t, e, i, s,
|
|
1829
|
+
function ni(t, e, i, s, n) {
|
|
1825
1830
|
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = true), s === void 0 && (s = true);
|
|
1826
|
-
const
|
|
1831
|
+
const r = this, {
|
|
1827
1832
|
params: d,
|
|
1828
1833
|
wrapperEl: o
|
|
1829
|
-
} =
|
|
1830
|
-
if (
|
|
1834
|
+
} = r;
|
|
1835
|
+
if (r.animating && d.preventInteractionOnTransition)
|
|
1831
1836
|
return false;
|
|
1832
|
-
const c =
|
|
1833
|
-
let
|
|
1834
|
-
if (s && t > c ?
|
|
1835
|
-
const m =
|
|
1837
|
+
const c = r.minTranslate(), f = r.maxTranslate();
|
|
1838
|
+
let p;
|
|
1839
|
+
if (s && t > c ? p = c : s && t < f ? p = f : p = t, r.updateProgress(p), d.cssMode) {
|
|
1840
|
+
const m = r.isHorizontal();
|
|
1836
1841
|
if (e === 0)
|
|
1837
|
-
o[m ? "scrollLeft" : "scrollTop"] = -
|
|
1842
|
+
o[m ? "scrollLeft" : "scrollTop"] = -p;
|
|
1838
1843
|
else {
|
|
1839
|
-
if (!
|
|
1844
|
+
if (!r.support.smoothScroll)
|
|
1840
1845
|
return nt({
|
|
1841
|
-
swiper:
|
|
1842
|
-
targetPosition: -
|
|
1846
|
+
swiper: r,
|
|
1847
|
+
targetPosition: -p,
|
|
1843
1848
|
side: m ? "left" : "top"
|
|
1844
1849
|
}), true;
|
|
1845
1850
|
o.scrollTo({
|
|
1846
|
-
[m ? "left" : "top"]: -
|
|
1851
|
+
[m ? "left" : "top"]: -p,
|
|
1847
1852
|
behavior: "smooth"
|
|
1848
1853
|
});
|
|
1849
1854
|
}
|
|
1850
1855
|
return true;
|
|
1851
1856
|
}
|
|
1852
|
-
return e === 0 ? (
|
|
1853
|
-
!
|
|
1854
|
-
}),
|
|
1857
|
+
return e === 0 ? (r.setTransition(0), r.setTranslate(p), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(p), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionStart")), r.animating || (r.animating = true, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(v) {
|
|
1858
|
+
!r || r.destroyed || v.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = false, i && r.emit("transitionEnd"));
|
|
1859
|
+
}), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), true;
|
|
1855
1860
|
}
|
|
1856
|
-
var
|
|
1857
|
-
getTranslate:
|
|
1858
|
-
setTranslate:
|
|
1859
|
-
minTranslate:
|
|
1860
|
-
maxTranslate:
|
|
1861
|
+
var ai = {
|
|
1862
|
+
getTranslate: ti,
|
|
1863
|
+
setTranslate: ii,
|
|
1864
|
+
minTranslate: si,
|
|
1865
|
+
maxTranslate: ri,
|
|
1861
1866
|
translateTo: ni
|
|
1862
1867
|
};
|
|
1863
|
-
function
|
|
1868
|
+
function li(t, e) {
|
|
1864
1869
|
const i = this;
|
|
1865
1870
|
i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
|
|
1866
1871
|
}
|
|
1867
|
-
function
|
|
1872
|
+
function ct(t) {
|
|
1868
1873
|
let {
|
|
1869
1874
|
swiper: e,
|
|
1870
1875
|
runCallbacks: i,
|
|
1871
1876
|
direction: s,
|
|
1872
|
-
step:
|
|
1877
|
+
step: n
|
|
1873
1878
|
} = t;
|
|
1874
1879
|
const {
|
|
1875
|
-
activeIndex:
|
|
1880
|
+
activeIndex: r,
|
|
1876
1881
|
previousIndex: d
|
|
1877
1882
|
} = e;
|
|
1878
1883
|
let o = s;
|
|
1879
|
-
|
|
1880
|
-
if (o === "reset") {
|
|
1881
|
-
e.emit(`slideResetTransition${r}`);
|
|
1882
|
-
return;
|
|
1883
|
-
}
|
|
1884
|
-
e.emit(`slideChangeTransition${r}`), o === "next" ? e.emit(`slideNextTransition${r}`) : e.emit(`slidePrevTransition${r}`);
|
|
1885
|
-
}
|
|
1884
|
+
o || (r > d ? o = "next" : r < d ? o = "prev" : o = "reset"), e.emit(`transition${n}`), i && o === "reset" ? e.emit(`slideResetTransition${n}`) : i && r !== d && (e.emit(`slideChangeTransition${n}`), o === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`));
|
|
1886
1885
|
}
|
|
1887
|
-
function
|
|
1886
|
+
function oi(t, e) {
|
|
1888
1887
|
t === void 0 && (t = true);
|
|
1889
1888
|
const i = this, {
|
|
1890
1889
|
params: s
|
|
1891
1890
|
} = i;
|
|
1892
|
-
s.cssMode || (s.autoHeight && i.updateAutoHeight(),
|
|
1891
|
+
s.cssMode || (s.autoHeight && i.updateAutoHeight(), ct({
|
|
1893
1892
|
swiper: i,
|
|
1894
1893
|
runCallbacks: t,
|
|
1895
1894
|
direction: e,
|
|
1896
1895
|
step: "Start"
|
|
1897
1896
|
}));
|
|
1898
1897
|
}
|
|
1899
|
-
function
|
|
1898
|
+
function di(t, e) {
|
|
1900
1899
|
t === void 0 && (t = true);
|
|
1901
1900
|
const i = this, {
|
|
1902
1901
|
params: s
|
|
1903
1902
|
} = i;
|
|
1904
|
-
i.animating = false, !s.cssMode && (i.setTransition(0),
|
|
1903
|
+
i.animating = false, !s.cssMode && (i.setTransition(0), ct({
|
|
1905
1904
|
swiper: i,
|
|
1906
1905
|
runCallbacks: t,
|
|
1907
1906
|
direction: e,
|
|
1908
1907
|
step: "End"
|
|
1909
1908
|
}));
|
|
1910
1909
|
}
|
|
1911
|
-
var
|
|
1912
|
-
setTransition:
|
|
1913
|
-
transitionStart:
|
|
1914
|
-
transitionEnd:
|
|
1910
|
+
var ci = {
|
|
1911
|
+
setTransition: li,
|
|
1912
|
+
transitionStart: oi,
|
|
1913
|
+
transitionEnd: di
|
|
1915
1914
|
};
|
|
1916
|
-
function
|
|
1915
|
+
function fi(t, e, i, s, n) {
|
|
1917
1916
|
t === void 0 && (t = 0), i === void 0 && (i = true), typeof t == "string" && (t = parseInt(t, 10));
|
|
1918
|
-
const
|
|
1917
|
+
const r = this;
|
|
1919
1918
|
let d = t;
|
|
1920
1919
|
d < 0 && (d = 0);
|
|
1921
1920
|
const {
|
|
1922
1921
|
params: o,
|
|
1923
1922
|
snapGrid: c,
|
|
1924
1923
|
slidesGrid: f,
|
|
1925
|
-
previousIndex:
|
|
1924
|
+
previousIndex: p,
|
|
1926
1925
|
activeIndex: m,
|
|
1927
1926
|
rtlTranslate: v,
|
|
1928
1927
|
wrapperEl: w,
|
|
1929
1928
|
enabled: a
|
|
1930
|
-
} =
|
|
1931
|
-
if (!a && !s && !
|
|
1929
|
+
} = r;
|
|
1930
|
+
if (!a && !s && !n || r.destroyed || r.animating && o.preventInteractionOnTransition)
|
|
1932
1931
|
return false;
|
|
1933
|
-
typeof e > "u" && (e =
|
|
1934
|
-
const l = Math.min(
|
|
1935
|
-
let S = l + Math.floor((d - l) /
|
|
1932
|
+
typeof e > "u" && (e = r.params.speed);
|
|
1933
|
+
const l = Math.min(r.params.slidesPerGroupSkip, d);
|
|
1934
|
+
let S = l + Math.floor((d - l) / r.params.slidesPerGroup);
|
|
1936
1935
|
S >= c.length && (S = c.length - 1);
|
|
1937
1936
|
const g = -c[S];
|
|
1938
1937
|
if (o.normalizeSlideIndex)
|
|
@@ -1940,26 +1939,26 @@ function ci(t, e, i, s, r) {
|
|
|
1940
1939
|
const z = -Math.floor(g * 100), y = Math.floor(f[I] * 100), T = Math.floor(f[I + 1] * 100);
|
|
1941
1940
|
typeof f[I + 1] < "u" ? z >= y && z < T - (T - y) / 2 ? d = I : z >= y && z < T && (d = I + 1) : z >= y && (d = I);
|
|
1942
1941
|
}
|
|
1943
|
-
if (
|
|
1942
|
+
if (r.initialized && d !== m && (!r.allowSlideNext && (v ? g > r.translate && g > r.minTranslate() : g < r.translate && g < r.minTranslate()) || !r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (m || 0) !== d))
|
|
1944
1943
|
return false;
|
|
1945
|
-
d !== (
|
|
1946
|
-
let
|
|
1947
|
-
d > m ?
|
|
1948
|
-
const h =
|
|
1949
|
-
if (!(h &&
|
|
1950
|
-
return
|
|
1944
|
+
d !== (p || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(g);
|
|
1945
|
+
let u;
|
|
1946
|
+
d > m ? u = "next" : d < m ? u = "prev" : u = "reset";
|
|
1947
|
+
const h = r.virtual && r.params.virtual.enabled;
|
|
1948
|
+
if (!(h && n) && (v && -g === r.translate || !v && g === r.translate))
|
|
1949
|
+
return r.updateActiveIndex(d), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(g), u !== "reset" && (r.transitionStart(i, u), r.transitionEnd(i, u)), false;
|
|
1951
1950
|
if (o.cssMode) {
|
|
1952
|
-
const I =
|
|
1951
|
+
const I = r.isHorizontal(), z = v ? g : -g;
|
|
1953
1952
|
if (e === 0)
|
|
1954
|
-
h && (
|
|
1953
|
+
h && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = true), h && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = true, requestAnimationFrame(() => {
|
|
1955
1954
|
w[I ? "scrollLeft" : "scrollTop"] = z;
|
|
1956
1955
|
})) : w[I ? "scrollLeft" : "scrollTop"] = z, h && requestAnimationFrame(() => {
|
|
1957
|
-
|
|
1956
|
+
r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = false;
|
|
1958
1957
|
});
|
|
1959
1958
|
else {
|
|
1960
|
-
if (!
|
|
1959
|
+
if (!r.support.smoothScroll)
|
|
1961
1960
|
return nt({
|
|
1962
|
-
swiper:
|
|
1961
|
+
swiper: r,
|
|
1963
1962
|
targetPosition: z,
|
|
1964
1963
|
side: I ? "left" : "top"
|
|
1965
1964
|
}), true;
|
|
@@ -1970,81 +1969,81 @@ function ci(t, e, i, s, r) {
|
|
|
1970
1969
|
}
|
|
1971
1970
|
return true;
|
|
1972
1971
|
}
|
|
1973
|
-
const L =
|
|
1974
|
-
return h && !
|
|
1975
|
-
!
|
|
1976
|
-
}),
|
|
1972
|
+
const L = dt().isSafari;
|
|
1973
|
+
return h && !n && L && r.isElement && r.virtual.update(false, false, d), r.setTransition(e), r.setTranslate(g), r.updateActiveIndex(d), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, u), e === 0 ? r.transitionEnd(i, u) : r.animating || (r.animating = true, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(z) {
|
|
1974
|
+
!r || r.destroyed || z.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, u));
|
|
1975
|
+
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), true;
|
|
1977
1976
|
}
|
|
1978
|
-
function
|
|
1977
|
+
function ui(t, e, i, s) {
|
|
1979
1978
|
t === void 0 && (t = 0), i === void 0 && (i = true), typeof t == "string" && (t = parseInt(t, 10));
|
|
1980
|
-
const
|
|
1981
|
-
if (
|
|
1982
|
-
typeof e > "u" && (e =
|
|
1983
|
-
const
|
|
1979
|
+
const n = this;
|
|
1980
|
+
if (n.destroyed) return;
|
|
1981
|
+
typeof e > "u" && (e = n.params.speed);
|
|
1982
|
+
const r = n.grid && n.params.grid && n.params.grid.rows > 1;
|
|
1984
1983
|
let d = t;
|
|
1985
|
-
if (
|
|
1986
|
-
if (
|
|
1987
|
-
d = d +
|
|
1984
|
+
if (n.params.loop)
|
|
1985
|
+
if (n.virtual && n.params.virtual.enabled)
|
|
1986
|
+
d = d + n.virtual.slidesBefore;
|
|
1988
1987
|
else {
|
|
1989
1988
|
let o;
|
|
1990
|
-
if (
|
|
1991
|
-
const v = d *
|
|
1992
|
-
o =
|
|
1989
|
+
if (r) {
|
|
1990
|
+
const v = d * n.params.grid.rows;
|
|
1991
|
+
o = n.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === v).column;
|
|
1993
1992
|
} else
|
|
1994
|
-
o =
|
|
1995
|
-
const c =
|
|
1993
|
+
o = n.getSlideIndexByData(d);
|
|
1994
|
+
const c = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
|
|
1996
1995
|
centeredSlides: f
|
|
1997
|
-
} =
|
|
1998
|
-
let
|
|
1999
|
-
|
|
2000
|
-
let m = c - o <
|
|
2001
|
-
if (f && (m = m || o < Math.ceil(
|
|
2002
|
-
const v = f ? o <
|
|
2003
|
-
|
|
1996
|
+
} = n.params;
|
|
1997
|
+
let p = n.params.slidesPerView;
|
|
1998
|
+
p === "auto" ? p = n.slidesPerViewDynamic() : (p = Math.ceil(parseFloat(n.params.slidesPerView, 10)), f && p % 2 === 0 && (p = p + 1));
|
|
1999
|
+
let m = c - o < p;
|
|
2000
|
+
if (f && (m = m || o < Math.ceil(p / 2)), s && f && n.params.slidesPerView !== "auto" && !r && (m = false), m) {
|
|
2001
|
+
const v = f ? o < n.activeIndex ? "prev" : "next" : o - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
|
|
2002
|
+
n.loopFix({
|
|
2004
2003
|
direction: v,
|
|
2005
2004
|
slideTo: true,
|
|
2006
2005
|
activeSlideIndex: v === "next" ? o + 1 : o - c + 1,
|
|
2007
|
-
slideRealIndex: v === "next" ?
|
|
2006
|
+
slideRealIndex: v === "next" ? n.realIndex : void 0
|
|
2008
2007
|
});
|
|
2009
2008
|
}
|
|
2010
|
-
if (
|
|
2011
|
-
const v = d *
|
|
2012
|
-
d =
|
|
2009
|
+
if (r) {
|
|
2010
|
+
const v = d * n.params.grid.rows;
|
|
2011
|
+
d = n.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === v).column;
|
|
2013
2012
|
} else
|
|
2014
|
-
d =
|
|
2013
|
+
d = n.getSlideIndexByData(d);
|
|
2015
2014
|
}
|
|
2016
2015
|
return requestAnimationFrame(() => {
|
|
2017
|
-
|
|
2018
|
-
}),
|
|
2016
|
+
n.slideTo(d, e, i, s);
|
|
2017
|
+
}), n;
|
|
2019
2018
|
}
|
|
2020
|
-
function
|
|
2019
|
+
function pi(t, e, i) {
|
|
2021
2020
|
e === void 0 && (e = true);
|
|
2022
2021
|
const s = this, {
|
|
2023
|
-
enabled:
|
|
2024
|
-
params:
|
|
2022
|
+
enabled: n,
|
|
2023
|
+
params: r,
|
|
2025
2024
|
animating: d
|
|
2026
2025
|
} = s;
|
|
2027
|
-
if (!
|
|
2026
|
+
if (!n || s.destroyed) return s;
|
|
2028
2027
|
typeof t > "u" && (t = s.params.speed);
|
|
2029
|
-
let o =
|
|
2030
|
-
|
|
2031
|
-
const c = s.activeIndex <
|
|
2032
|
-
if (
|
|
2033
|
-
if (d && !f &&
|
|
2028
|
+
let o = r.slidesPerGroup;
|
|
2029
|
+
r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", true), 1));
|
|
2030
|
+
const c = s.activeIndex < r.slidesPerGroupSkip ? 1 : o, f = s.virtual && r.virtual.enabled;
|
|
2031
|
+
if (r.loop) {
|
|
2032
|
+
if (d && !f && r.loopPreventsSliding) return false;
|
|
2034
2033
|
if (s.loopFix({
|
|
2035
2034
|
direction: "next"
|
|
2036
|
-
}), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 &&
|
|
2035
|
+
}), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
|
|
2037
2036
|
return requestAnimationFrame(() => {
|
|
2038
2037
|
s.slideTo(s.activeIndex + c, t, e, i);
|
|
2039
2038
|
}), true;
|
|
2040
2039
|
}
|
|
2041
|
-
return
|
|
2040
|
+
return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + c, t, e, i);
|
|
2042
2041
|
}
|
|
2043
|
-
function
|
|
2042
|
+
function mi(t, e, i) {
|
|
2044
2043
|
e === void 0 && (e = true);
|
|
2045
2044
|
const s = this, {
|
|
2046
|
-
params:
|
|
2047
|
-
snapGrid:
|
|
2045
|
+
params: n,
|
|
2046
|
+
snapGrid: r,
|
|
2048
2047
|
slidesGrid: d,
|
|
2049
2048
|
rtlTranslate: o,
|
|
2050
2049
|
enabled: c,
|
|
@@ -2052,130 +2051,135 @@ function pi(t, e, i) {
|
|
|
2052
2051
|
} = s;
|
|
2053
2052
|
if (!c || s.destroyed) return s;
|
|
2054
2053
|
typeof t > "u" && (t = s.params.speed);
|
|
2055
|
-
const
|
|
2056
|
-
if (
|
|
2057
|
-
if (f && !
|
|
2054
|
+
const p = s.virtual && n.virtual.enabled;
|
|
2055
|
+
if (n.loop) {
|
|
2056
|
+
if (f && !p && n.loopPreventsSliding) return false;
|
|
2058
2057
|
s.loopFix({
|
|
2059
2058
|
direction: "prev"
|
|
2060
2059
|
}), s._clientLeft = s.wrapperEl.clientLeft;
|
|
2061
2060
|
}
|
|
2062
2061
|
const m = o ? s.translate : -s.translate;
|
|
2063
|
-
function v(
|
|
2064
|
-
return
|
|
2062
|
+
function v(u) {
|
|
2063
|
+
return u < 0 ? -Math.floor(Math.abs(u)) : Math.floor(u);
|
|
2065
2064
|
}
|
|
2066
|
-
const w = v(m), a =
|
|
2067
|
-
let S =
|
|
2068
|
-
if (typeof S > "u" && (
|
|
2069
|
-
let
|
|
2070
|
-
|
|
2071
|
-
w >= h && (
|
|
2072
|
-
}), typeof
|
|
2065
|
+
const w = v(m), a = r.map((u) => v(u)), l = n.freeMode && n.freeMode.enabled;
|
|
2066
|
+
let S = r[a.indexOf(w) - 1];
|
|
2067
|
+
if (typeof S > "u" && (n.cssMode || l)) {
|
|
2068
|
+
let u;
|
|
2069
|
+
r.forEach((h, E) => {
|
|
2070
|
+
w >= h && (u = E);
|
|
2071
|
+
}), typeof u < "u" && (S = l ? r[u] : r[u > 0 ? u - 1 : u]);
|
|
2073
2072
|
}
|
|
2074
2073
|
let g = 0;
|
|
2075
|
-
if (typeof S < "u" && (g = d.indexOf(S), g < 0 && (g = s.activeIndex - 1),
|
|
2076
|
-
const
|
|
2077
|
-
return s.slideTo(
|
|
2078
|
-
} else if (
|
|
2074
|
+
if (typeof S < "u" && (g = d.indexOf(S), g < 0 && (g = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (g = g - s.slidesPerViewDynamic("previous", true) + 1, g = Math.max(g, 0))), n.rewind && s.isBeginning) {
|
|
2075
|
+
const u = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
|
|
2076
|
+
return s.slideTo(u, t, e, i);
|
|
2077
|
+
} else if (n.loop && s.activeIndex === 0 && n.cssMode)
|
|
2079
2078
|
return requestAnimationFrame(() => {
|
|
2080
2079
|
s.slideTo(g, t, e, i);
|
|
2081
2080
|
}), true;
|
|
2082
2081
|
return s.slideTo(g, t, e, i);
|
|
2083
2082
|
}
|
|
2084
|
-
function
|
|
2083
|
+
function hi(t, e, i) {
|
|
2085
2084
|
e === void 0 && (e = true);
|
|
2086
2085
|
const s = this;
|
|
2087
2086
|
if (!s.destroyed)
|
|
2088
2087
|
return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
|
|
2089
2088
|
}
|
|
2090
|
-
function
|
|
2089
|
+
function gi(t, e, i, s) {
|
|
2091
2090
|
e === void 0 && (e = true), s === void 0 && (s = 0.5);
|
|
2092
|
-
const
|
|
2093
|
-
if (
|
|
2094
|
-
typeof t > "u" && (t =
|
|
2095
|
-
let
|
|
2096
|
-
const d = Math.min(
|
|
2097
|
-
if (c >=
|
|
2098
|
-
const f =
|
|
2099
|
-
c - f > (
|
|
2091
|
+
const n = this;
|
|
2092
|
+
if (n.destroyed) return;
|
|
2093
|
+
typeof t > "u" && (t = n.params.speed);
|
|
2094
|
+
let r = n.activeIndex;
|
|
2095
|
+
const d = Math.min(n.params.slidesPerGroupSkip, r), o = d + Math.floor((r - d) / n.params.slidesPerGroup), c = n.rtlTranslate ? n.translate : -n.translate;
|
|
2096
|
+
if (c >= n.snapGrid[o]) {
|
|
2097
|
+
const f = n.snapGrid[o], p = n.snapGrid[o + 1];
|
|
2098
|
+
c - f > (p - f) * s && (r += n.params.slidesPerGroup);
|
|
2100
2099
|
} else {
|
|
2101
|
-
const f =
|
|
2102
|
-
c - f <= (
|
|
2100
|
+
const f = n.snapGrid[o - 1], p = n.snapGrid[o];
|
|
2101
|
+
c - f <= (p - f) * s && (r -= n.params.slidesPerGroup);
|
|
2103
2102
|
}
|
|
2104
|
-
return
|
|
2103
|
+
return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, t, e, i);
|
|
2105
2104
|
}
|
|
2106
|
-
function
|
|
2105
|
+
function vi() {
|
|
2107
2106
|
const t = this;
|
|
2108
2107
|
if (t.destroyed) return;
|
|
2109
2108
|
const {
|
|
2110
2109
|
params: e,
|
|
2111
2110
|
slidesEl: i
|
|
2112
2111
|
} = t, s = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
|
|
2113
|
-
let
|
|
2114
|
-
const d = t.isElement ? "swiper-slide" : `.${e.slideClass}
|
|
2112
|
+
let n = t.getSlideIndexWhenGrid(t.clickedIndex), r;
|
|
2113
|
+
const d = t.isElement ? "swiper-slide" : `.${e.slideClass}`, o = t.grid && t.params.grid && t.params.grid.rows > 1;
|
|
2115
2114
|
if (e.loop) {
|
|
2116
2115
|
if (t.animating) return;
|
|
2117
|
-
|
|
2118
|
-
t.slideTo(
|
|
2119
|
-
})) : t.slideTo(
|
|
2120
|
-
t.slideTo(r);
|
|
2121
|
-
})) : t.slideTo(r);
|
|
2116
|
+
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (o ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(q(i, `${d}[data-swiper-slide-index="${r}"]`)[0]), rt(() => {
|
|
2117
|
+
t.slideTo(n);
|
|
2118
|
+
})) : t.slideTo(n);
|
|
2122
2119
|
} else
|
|
2123
|
-
t.slideTo(
|
|
2124
|
-
}
|
|
2125
|
-
var
|
|
2126
|
-
slideTo:
|
|
2127
|
-
slideToLoop:
|
|
2128
|
-
slideNext:
|
|
2129
|
-
slidePrev:
|
|
2130
|
-
slideReset:
|
|
2131
|
-
slideToClosest:
|
|
2132
|
-
slideToClickedSlide:
|
|
2120
|
+
t.slideTo(n);
|
|
2121
|
+
}
|
|
2122
|
+
var wi = {
|
|
2123
|
+
slideTo: fi,
|
|
2124
|
+
slideToLoop: ui,
|
|
2125
|
+
slideNext: pi,
|
|
2126
|
+
slidePrev: mi,
|
|
2127
|
+
slideReset: hi,
|
|
2128
|
+
slideToClosest: gi,
|
|
2129
|
+
slideToClickedSlide: vi
|
|
2133
2130
|
};
|
|
2134
|
-
function
|
|
2131
|
+
function Si(t, e) {
|
|
2135
2132
|
const i = this, {
|
|
2136
2133
|
params: s,
|
|
2137
|
-
slidesEl:
|
|
2134
|
+
slidesEl: n
|
|
2138
2135
|
} = i;
|
|
2139
2136
|
if (!s.loop || i.virtual && i.params.virtual.enabled) return;
|
|
2140
|
-
const
|
|
2141
|
-
q(
|
|
2142
|
-
|
|
2137
|
+
const r = () => {
|
|
2138
|
+
q(n, `.${s.slideClass}, swiper-slide`).forEach((w, a) => {
|
|
2139
|
+
w.setAttribute("data-swiper-slide-index", a);
|
|
2143
2140
|
});
|
|
2144
|
-
}, d =
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2141
|
+
}, d = () => {
|
|
2142
|
+
const v = q(n, `.${s.slideBlankClass}`);
|
|
2143
|
+
v.forEach((w) => {
|
|
2144
|
+
w.remove();
|
|
2145
|
+
}), v.length > 0 && (i.recalcSlides(), i.updateSlides());
|
|
2146
|
+
}, o = i.grid && s.grid && s.grid.rows > 1;
|
|
2147
|
+
s.loopAddBlankSlides && (s.slidesPerGroup > 1 || o) && d();
|
|
2148
|
+
const c = s.slidesPerGroup * (o ? s.grid.rows : 1), f = i.slides.length % c !== 0, p = o && i.slides.length % s.grid.rows !== 0, m = (v) => {
|
|
2149
|
+
for (let w = 0; w < v; w += 1) {
|
|
2150
|
+
const a = i.isElement ? fe("swiper-slide", [s.slideBlankClass]) : fe("div", [s.slideClass, s.slideBlankClass]);
|
|
2151
|
+
i.slidesEl.append(a);
|
|
2148
2152
|
}
|
|
2149
2153
|
};
|
|
2150
|
-
if (
|
|
2154
|
+
if (f) {
|
|
2151
2155
|
if (s.loopAddBlankSlides) {
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2156
|
+
const v = c - i.slides.length % c;
|
|
2157
|
+
m(v), i.recalcSlides(), i.updateSlides();
|
|
2154
2158
|
} else
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
} else if (
|
|
2159
|
+
Pe("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
2160
|
+
r();
|
|
2161
|
+
} else if (p) {
|
|
2158
2162
|
if (s.loopAddBlankSlides) {
|
|
2159
|
-
const
|
|
2160
|
-
|
|
2163
|
+
const v = s.grid.rows - i.slides.length % s.grid.rows;
|
|
2164
|
+
m(v), i.recalcSlides(), i.updateSlides();
|
|
2161
2165
|
} else
|
|
2162
|
-
|
|
2163
|
-
|
|
2166
|
+
Pe("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
2167
|
+
r();
|
|
2164
2168
|
} else
|
|
2165
|
-
|
|
2169
|
+
r();
|
|
2166
2170
|
i.loopFix({
|
|
2167
2171
|
slideRealIndex: t,
|
|
2168
2172
|
direction: s.centeredSlides ? void 0 : "next",
|
|
2169
2173
|
initial: e
|
|
2170
2174
|
});
|
|
2171
2175
|
}
|
|
2172
|
-
function
|
|
2176
|
+
function Ei(t) {
|
|
2173
2177
|
let {
|
|
2174
2178
|
slideRealIndex: e,
|
|
2175
2179
|
slideTo: i = true,
|
|
2176
2180
|
direction: s,
|
|
2177
|
-
setTranslate:
|
|
2178
|
-
activeSlideIndex:
|
|
2181
|
+
setTranslate: n,
|
|
2182
|
+
activeSlideIndex: r,
|
|
2179
2183
|
initial: d,
|
|
2180
2184
|
byController: o,
|
|
2181
2185
|
byMousewheel: c
|
|
@@ -2184,7 +2188,7 @@ function Si(t) {
|
|
|
2184
2188
|
if (!f.params.loop) return;
|
|
2185
2189
|
f.emit("beforeLoopFix");
|
|
2186
2190
|
const {
|
|
2187
|
-
slides:
|
|
2191
|
+
slides: p,
|
|
2188
2192
|
allowSlidePrev: m,
|
|
2189
2193
|
allowSlideNext: v,
|
|
2190
2194
|
slidesEl: w,
|
|
@@ -2199,58 +2203,58 @@ function Si(t) {
|
|
|
2199
2203
|
}
|
|
2200
2204
|
let g = a.slidesPerView;
|
|
2201
2205
|
g === "auto" ? g = f.slidesPerViewDynamic() : (g = Math.ceil(parseFloat(a.slidesPerView, 10)), l && g % 2 === 0 && (g = g + 1));
|
|
2202
|
-
const
|
|
2203
|
-
let h =
|
|
2204
|
-
h %
|
|
2206
|
+
const u = a.slidesPerGroupAuto ? g : a.slidesPerGroup;
|
|
2207
|
+
let h = l ? Math.max(u, Math.ceil(g / 2)) : u;
|
|
2208
|
+
h % u !== 0 && (h += u - h % u), h += a.loopAdditionalSlides, f.loopedSlides = h;
|
|
2205
2209
|
const E = f.grid && a.grid && a.grid.rows > 1;
|
|
2206
|
-
|
|
2207
|
-
const b = [], L = [], I = E ? Math.ceil(
|
|
2210
|
+
p.length < g + h || f.params.effect === "cards" && p.length < g + h * 2 ? Pe("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : E && a.grid.fill === "row" && Pe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
2211
|
+
const b = [], L = [], I = E ? Math.ceil(p.length / a.grid.rows) : p.length, z = d && I - S < g && !l;
|
|
2208
2212
|
let y = z ? S : f.activeIndex;
|
|
2209
|
-
typeof
|
|
2213
|
+
typeof r > "u" ? r = f.getSlideIndex(p.find((A) => A.classList.contains(a.slideActiveClass))) : y = r;
|
|
2210
2214
|
const T = s === "next" || !s, P = s === "prev" || !s;
|
|
2211
2215
|
let O = 0, D = 0;
|
|
2212
|
-
const _ = (E ?
|
|
2216
|
+
const _ = (E ? p[r].column : r) + (l && typeof n > "u" ? -g / 2 + 0.5 : 0);
|
|
2213
2217
|
if (_ < h) {
|
|
2214
|
-
O = Math.max(h - _,
|
|
2218
|
+
O = Math.max(h - _, u);
|
|
2215
2219
|
for (let A = 0; A < h - _; A += 1) {
|
|
2216
2220
|
const Y = A - Math.floor(A / I) * I;
|
|
2217
2221
|
if (E) {
|
|
2218
2222
|
const X = I - Y - 1;
|
|
2219
|
-
for (let G =
|
|
2220
|
-
|
|
2223
|
+
for (let G = p.length - 1; G >= 0; G -= 1)
|
|
2224
|
+
p[G].column === X && b.push(G);
|
|
2221
2225
|
} else
|
|
2222
2226
|
b.push(I - Y - 1);
|
|
2223
2227
|
}
|
|
2224
2228
|
} else if (_ + g > I - h) {
|
|
2225
|
-
D = Math.max(_ - (I - h * 2),
|
|
2229
|
+
D = Math.max(_ - (I - h * 2), u), z && (D = Math.max(D, g - I + S + 1));
|
|
2226
2230
|
for (let A = 0; A < D; A += 1) {
|
|
2227
2231
|
const Y = A - Math.floor(A / I) * I;
|
|
2228
|
-
E ?
|
|
2232
|
+
E ? p.forEach((X, G) => {
|
|
2229
2233
|
X.column === Y && L.push(G);
|
|
2230
2234
|
}) : L.push(Y);
|
|
2231
2235
|
}
|
|
2232
2236
|
}
|
|
2233
2237
|
if (f.__preventObserver__ = true, requestAnimationFrame(() => {
|
|
2234
2238
|
f.__preventObserver__ = false;
|
|
2235
|
-
}), f.params.effect === "cards" &&
|
|
2236
|
-
|
|
2239
|
+
}), f.params.effect === "cards" && p.length < g + h * 2 && (L.includes(r) && L.splice(L.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)), P && b.forEach((A) => {
|
|
2240
|
+
p[A].swiperLoopMoveDOM = true, w.prepend(p[A]), p[A].swiperLoopMoveDOM = false;
|
|
2237
2241
|
}), T && L.forEach((A) => {
|
|
2238
|
-
|
|
2242
|
+
p[A].swiperLoopMoveDOM = true, w.append(p[A]), p[A].swiperLoopMoveDOM = false;
|
|
2239
2243
|
}), f.recalcSlides(), a.slidesPerView === "auto" ? f.updateSlides() : E && (b.length > 0 && P || L.length > 0 && T) && f.slides.forEach((A, Y) => {
|
|
2240
2244
|
f.grid.updateSlide(Y, A, f.slides);
|
|
2241
2245
|
}), a.watchSlidesProgress && f.updateSlidesOffset(), i) {
|
|
2242
2246
|
if (b.length > 0 && P) {
|
|
2243
2247
|
if (typeof e > "u") {
|
|
2244
2248
|
const A = f.slidesGrid[y], X = f.slidesGrid[y + O] - A;
|
|
2245
|
-
c ? f.setTranslate(f.translate - X) : (f.slideTo(y + Math.ceil(O), 0, false, true),
|
|
2246
|
-
} else if (
|
|
2249
|
+
c ? f.setTranslate(f.translate - X) : (f.slideTo(y + Math.ceil(O), 0, false, true), n && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
|
|
2250
|
+
} else if (n) {
|
|
2247
2251
|
const A = E ? b.length / a.grid.rows : b.length;
|
|
2248
2252
|
f.slideTo(f.activeIndex + A, 0, false, true), f.touchEventsData.currentTranslate = f.translate;
|
|
2249
2253
|
}
|
|
2250
2254
|
} else if (L.length > 0 && T)
|
|
2251
2255
|
if (typeof e > "u") {
|
|
2252
2256
|
const A = f.slidesGrid[y], X = f.slidesGrid[y - D] - A;
|
|
2253
|
-
c ? f.setTranslate(f.translate - X) : (f.slideTo(y - D, 0, false, true),
|
|
2257
|
+
c ? f.setTranslate(f.translate - X) : (f.slideTo(y - D, 0, false, true), n && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
|
|
2254
2258
|
} else {
|
|
2255
2259
|
const A = E ? L.length / a.grid.rows : L.length;
|
|
2256
2260
|
f.slideTo(f.activeIndex - A, 0, false, true);
|
|
@@ -2260,8 +2264,8 @@ function Si(t) {
|
|
|
2260
2264
|
const A = {
|
|
2261
2265
|
slideRealIndex: e,
|
|
2262
2266
|
direction: s,
|
|
2263
|
-
setTranslate:
|
|
2264
|
-
activeSlideIndex:
|
|
2267
|
+
setTranslate: n,
|
|
2268
|
+
activeSlideIndex: r,
|
|
2265
2269
|
byController: true
|
|
2266
2270
|
};
|
|
2267
2271
|
Array.isArray(f.controller.control) ? f.controller.control.forEach((Y) => {
|
|
@@ -2276,7 +2280,7 @@ function Si(t) {
|
|
|
2276
2280
|
}
|
|
2277
2281
|
f.emit("loopFix");
|
|
2278
2282
|
}
|
|
2279
|
-
function
|
|
2283
|
+
function bi() {
|
|
2280
2284
|
const t = this, {
|
|
2281
2285
|
params: e,
|
|
2282
2286
|
slidesEl: i
|
|
@@ -2284,21 +2288,21 @@ function Ei() {
|
|
|
2284
2288
|
if (!e.loop || !i || t.virtual && t.params.virtual.enabled) return;
|
|
2285
2289
|
t.recalcSlides();
|
|
2286
2290
|
const s = [];
|
|
2287
|
-
t.slides.forEach((
|
|
2288
|
-
const
|
|
2289
|
-
s[
|
|
2290
|
-
}), t.slides.forEach((
|
|
2291
|
-
|
|
2292
|
-
}), s.forEach((
|
|
2293
|
-
i.append(
|
|
2291
|
+
t.slides.forEach((n) => {
|
|
2292
|
+
const r = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
|
|
2293
|
+
s[r] = n;
|
|
2294
|
+
}), t.slides.forEach((n) => {
|
|
2295
|
+
n.removeAttribute("data-swiper-slide-index");
|
|
2296
|
+
}), s.forEach((n) => {
|
|
2297
|
+
i.append(n);
|
|
2294
2298
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
2295
2299
|
}
|
|
2296
|
-
var
|
|
2297
|
-
loopCreate:
|
|
2298
|
-
loopFix:
|
|
2299
|
-
loopDestroy:
|
|
2300
|
+
var xi = {
|
|
2301
|
+
loopCreate: Si,
|
|
2302
|
+
loopFix: Ei,
|
|
2303
|
+
loopDestroy: bi
|
|
2300
2304
|
};
|
|
2301
|
-
function
|
|
2305
|
+
function yi(t) {
|
|
2302
2306
|
const e = this;
|
|
2303
2307
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
2304
2308
|
const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
@@ -2306,89 +2310,89 @@ function xi(t) {
|
|
|
2306
2310
|
e.__preventObserver__ = false;
|
|
2307
2311
|
});
|
|
2308
2312
|
}
|
|
2309
|
-
function
|
|
2313
|
+
function Ti() {
|
|
2310
2314
|
const t = this;
|
|
2311
2315
|
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = true), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
|
|
2312
2316
|
t.__preventObserver__ = false;
|
|
2313
2317
|
}));
|
|
2314
2318
|
}
|
|
2315
|
-
var
|
|
2316
|
-
setGrabCursor:
|
|
2317
|
-
unsetGrabCursor:
|
|
2319
|
+
var Ci = {
|
|
2320
|
+
setGrabCursor: yi,
|
|
2321
|
+
unsetGrabCursor: Ti
|
|
2318
2322
|
};
|
|
2319
|
-
function
|
|
2323
|
+
function Mi(t, e) {
|
|
2320
2324
|
e === void 0 && (e = this);
|
|
2321
2325
|
function i(s) {
|
|
2322
2326
|
if (!s || s === Z() || s === k()) return null;
|
|
2323
2327
|
s.assignedSlot && (s = s.assignedSlot);
|
|
2324
|
-
const
|
|
2325
|
-
return !
|
|
2328
|
+
const n = s.closest(t);
|
|
2329
|
+
return !n && !s.getRootNode ? null : n || i(s.getRootNode().host);
|
|
2326
2330
|
}
|
|
2327
2331
|
return i(e);
|
|
2328
2332
|
}
|
|
2329
2333
|
function Je(t, e, i) {
|
|
2330
2334
|
const s = k(), {
|
|
2331
|
-
params:
|
|
2332
|
-
} = t,
|
|
2333
|
-
return
|
|
2335
|
+
params: n
|
|
2336
|
+
} = t, r = n.edgeSwipeDetection, d = n.edgeSwipeThreshold;
|
|
2337
|
+
return r && (i <= d || i >= s.innerWidth - d) ? r === "prevent" ? (e.preventDefault(), true) : false : true;
|
|
2334
2338
|
}
|
|
2335
|
-
function
|
|
2339
|
+
function Pi(t) {
|
|
2336
2340
|
const e = this, i = Z();
|
|
2337
2341
|
let s = t;
|
|
2338
2342
|
s.originalEvent && (s = s.originalEvent);
|
|
2339
|
-
const
|
|
2343
|
+
const n = e.touchEventsData;
|
|
2340
2344
|
if (s.type === "pointerdown") {
|
|
2341
|
-
if (
|
|
2345
|
+
if (n.pointerId !== null && n.pointerId !== s.pointerId)
|
|
2342
2346
|
return;
|
|
2343
|
-
|
|
2344
|
-
} else s.type === "touchstart" && s.targetTouches.length === 1 && (
|
|
2347
|
+
n.pointerId = s.pointerId;
|
|
2348
|
+
} else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
|
|
2345
2349
|
if (s.type === "touchstart") {
|
|
2346
2350
|
Je(e, s, s.targetTouches[0].pageX);
|
|
2347
2351
|
return;
|
|
2348
2352
|
}
|
|
2349
2353
|
const {
|
|
2350
|
-
params:
|
|
2354
|
+
params: r,
|
|
2351
2355
|
touches: d,
|
|
2352
2356
|
enabled: o
|
|
2353
2357
|
} = e;
|
|
2354
|
-
if (!o || !
|
|
2358
|
+
if (!o || !r.simulateTouch && s.pointerType === "mouse" || e.animating && r.preventInteractionOnTransition)
|
|
2355
2359
|
return;
|
|
2356
|
-
!e.animating &&
|
|
2360
|
+
!e.animating && r.cssMode && r.loop && e.loopFix();
|
|
2357
2361
|
let c = s.target;
|
|
2358
|
-
if (
|
|
2359
|
-
const f = !!
|
|
2360
|
-
f && s.target && s.target.shadowRoot &&
|
|
2361
|
-
const m =
|
|
2362
|
-
if (
|
|
2362
|
+
if (r.touchEventsTarget === "wrapper" && !It(c, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
|
|
2363
|
+
const f = !!r.noSwipingClass && r.noSwipingClass !== "", p = s.composedPath ? s.composedPath() : s.path;
|
|
2364
|
+
f && s.target && s.target.shadowRoot && p && (c = p[0]);
|
|
2365
|
+
const m = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, v = !!(s.target && s.target.shadowRoot);
|
|
2366
|
+
if (r.noSwiping && (v ? Mi(m, c) : c.closest(m))) {
|
|
2363
2367
|
e.allowClick = true;
|
|
2364
2368
|
return;
|
|
2365
2369
|
}
|
|
2366
|
-
if (
|
|
2370
|
+
if (r.swipeHandler && !c.closest(r.swipeHandler))
|
|
2367
2371
|
return;
|
|
2368
2372
|
d.currentX = s.pageX, d.currentY = s.pageY;
|
|
2369
2373
|
const w = d.currentX, a = d.currentY;
|
|
2370
2374
|
if (!Je(e, s, w))
|
|
2371
2375
|
return;
|
|
2372
|
-
Object.assign(
|
|
2376
|
+
Object.assign(n, {
|
|
2373
2377
|
isTouched: true,
|
|
2374
2378
|
isMoved: false,
|
|
2375
2379
|
allowTouchCallbacks: true,
|
|
2376
2380
|
isScrolling: void 0,
|
|
2377
2381
|
startMoving: void 0
|
|
2378
|
-
}), d.startX = w, d.startY = a,
|
|
2382
|
+
}), d.startX = w, d.startY = a, n.touchStartTime = Me(), e.allowClick = true, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = false);
|
|
2379
2383
|
let l = true;
|
|
2380
|
-
c.matches(
|
|
2381
|
-
const S = l && e.allowTouchMove &&
|
|
2382
|
-
(
|
|
2384
|
+
c.matches(n.focusableElements) && (l = false, c.nodeName === "SELECT" && (n.isTouched = false)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== c && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !c.matches(n.focusableElements)) && i.activeElement.blur();
|
|
2385
|
+
const S = l && e.allowTouchMove && r.touchStartPreventDefault;
|
|
2386
|
+
(r.touchStartForcePreventDefault || S) && !c.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
|
|
2383
2387
|
}
|
|
2384
|
-
function
|
|
2388
|
+
function Li(t) {
|
|
2385
2389
|
const e = Z(), i = this, s = i.touchEventsData, {
|
|
2386
|
-
params:
|
|
2387
|
-
touches:
|
|
2390
|
+
params: n,
|
|
2391
|
+
touches: r,
|
|
2388
2392
|
rtlTranslate: d,
|
|
2389
2393
|
enabled: o
|
|
2390
2394
|
} = i;
|
|
2391
|
-
if (!o || !
|
|
2395
|
+
if (!o || !n.simulateTouch && t.pointerType === "mouse") return;
|
|
2392
2396
|
let c = t;
|
|
2393
2397
|
if (c.originalEvent && (c = c.originalEvent), c.type === "pointermove" && (s.touchId !== null || c.pointerId !== s.pointerId))
|
|
2394
2398
|
return;
|
|
@@ -2401,57 +2405,57 @@ function Pi(t) {
|
|
|
2401
2405
|
s.startMoving && s.isScrolling && i.emit("touchMoveOpposite", c);
|
|
2402
2406
|
return;
|
|
2403
2407
|
}
|
|
2404
|
-
const
|
|
2408
|
+
const p = f.pageX, m = f.pageY;
|
|
2405
2409
|
if (c.preventedByNestedSwiper) {
|
|
2406
|
-
|
|
2410
|
+
r.startX = p, r.startY = m;
|
|
2407
2411
|
return;
|
|
2408
2412
|
}
|
|
2409
2413
|
if (!i.allowTouchMove) {
|
|
2410
|
-
c.target.matches(s.focusableElements) || (i.allowClick = false), s.isTouched && (Object.assign(
|
|
2411
|
-
startX:
|
|
2414
|
+
c.target.matches(s.focusableElements) || (i.allowClick = false), s.isTouched && (Object.assign(r, {
|
|
2415
|
+
startX: p,
|
|
2412
2416
|
startY: m,
|
|
2413
|
-
currentX:
|
|
2417
|
+
currentX: p,
|
|
2414
2418
|
currentY: m
|
|
2415
|
-
}), s.touchStartTime =
|
|
2419
|
+
}), s.touchStartTime = Me());
|
|
2416
2420
|
return;
|
|
2417
2421
|
}
|
|
2418
|
-
if (
|
|
2422
|
+
if (n.touchReleaseOnEdges && !n.loop)
|
|
2419
2423
|
if (i.isVertical()) {
|
|
2420
|
-
if (m <
|
|
2424
|
+
if (m < r.startY && i.translate <= i.maxTranslate() || m > r.startY && i.translate >= i.minTranslate()) {
|
|
2421
2425
|
s.isTouched = false, s.isMoved = false;
|
|
2422
2426
|
return;
|
|
2423
2427
|
}
|
|
2424
2428
|
} else {
|
|
2425
|
-
if (d && (
|
|
2429
|
+
if (d && (p > r.startX && -i.translate <= i.maxTranslate() || p < r.startX && -i.translate >= i.minTranslate()))
|
|
2426
2430
|
return;
|
|
2427
|
-
if (!d && (
|
|
2431
|
+
if (!d && (p < r.startX && i.translate <= i.maxTranslate() || p > r.startX && i.translate >= i.minTranslate()))
|
|
2428
2432
|
return;
|
|
2429
2433
|
}
|
|
2430
2434
|
if (e.activeElement && e.activeElement.matches(s.focusableElements) && e.activeElement !== c.target && c.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && c.target === e.activeElement && c.target.matches(s.focusableElements)) {
|
|
2431
2435
|
s.isMoved = true, i.allowClick = false;
|
|
2432
2436
|
return;
|
|
2433
2437
|
}
|
|
2434
|
-
s.allowTouchCallbacks && i.emit("touchMove", c),
|
|
2435
|
-
const v =
|
|
2438
|
+
s.allowTouchCallbacks && i.emit("touchMove", c), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = p, r.currentY = m;
|
|
2439
|
+
const v = r.currentX - r.startX, w = r.currentY - r.startY;
|
|
2436
2440
|
if (i.params.threshold && Math.sqrt(v ** 2 + w ** 2) < i.params.threshold) return;
|
|
2437
2441
|
if (typeof s.isScrolling > "u") {
|
|
2438
2442
|
let b;
|
|
2439
|
-
i.isHorizontal() &&
|
|
2443
|
+
i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = false : v * v + w * w >= 25 && (b = Math.atan2(Math.abs(w), Math.abs(v)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? b > n.touchAngle : 90 - b > n.touchAngle);
|
|
2440
2444
|
}
|
|
2441
|
-
if (s.isScrolling && i.emit("touchMoveOpposite", c), typeof s.startMoving > "u" && (
|
|
2445
|
+
if (s.isScrolling && i.emit("touchMoveOpposite", c), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = true), s.isScrolling || c.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
|
|
2442
2446
|
s.isTouched = false;
|
|
2443
2447
|
return;
|
|
2444
2448
|
}
|
|
2445
2449
|
if (!s.startMoving)
|
|
2446
2450
|
return;
|
|
2447
|
-
i.allowClick = false, !
|
|
2448
|
-
let a = i.isHorizontal() ? v : w, l = i.isHorizontal() ?
|
|
2449
|
-
|
|
2451
|
+
i.allowClick = false, !n.cssMode && c.cancelable && c.preventDefault(), n.touchMoveStopPropagation && !n.nested && c.stopPropagation();
|
|
2452
|
+
let a = i.isHorizontal() ? v : w, l = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
|
2453
|
+
n.oneWayMovement && (a = Math.abs(a) * (d ? 1 : -1), l = Math.abs(l) * (d ? 1 : -1)), r.diff = a, a *= n.touchRatio, d && (a = -a, l = -l);
|
|
2450
2454
|
const S = i.touchesDirection;
|
|
2451
2455
|
i.swipeDirection = a > 0 ? "prev" : "next", i.touchesDirection = l > 0 ? "prev" : "next";
|
|
2452
|
-
const g = i.params.loop && !
|
|
2456
|
+
const g = i.params.loop && !n.cssMode, u = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
|
|
2453
2457
|
if (!s.isMoved) {
|
|
2454
|
-
if (g &&
|
|
2458
|
+
if (g && u && i.loopFix({
|
|
2455
2459
|
direction: i.swipeDirection
|
|
2456
2460
|
}), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
|
|
2457
2461
|
const b = new window.CustomEvent("transitionend", {
|
|
@@ -2463,50 +2467,50 @@ function Pi(t) {
|
|
|
2463
2467
|
});
|
|
2464
2468
|
i.wrapperEl.dispatchEvent(b);
|
|
2465
2469
|
}
|
|
2466
|
-
s.allowMomentumBounce = false,
|
|
2470
|
+
s.allowMomentumBounce = false, n.grabCursor && (i.allowSlideNext === true || i.allowSlidePrev === true) && i.setGrabCursor(true), i.emit("sliderFirstMove", c);
|
|
2467
2471
|
}
|
|
2468
|
-
if ((/* @__PURE__ */ new Date()).getTime(),
|
|
2469
|
-
Object.assign(
|
|
2470
|
-
startX:
|
|
2472
|
+
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== false && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && g && u && Math.abs(a) >= 1) {
|
|
2473
|
+
Object.assign(r, {
|
|
2474
|
+
startX: p,
|
|
2471
2475
|
startY: m,
|
|
2472
|
-
currentX:
|
|
2476
|
+
currentX: p,
|
|
2473
2477
|
currentY: m,
|
|
2474
2478
|
startTranslate: s.currentTranslate
|
|
2475
2479
|
}), s.loopSwapReset = true, s.startTranslate = s.currentTranslate;
|
|
2476
2480
|
return;
|
|
2477
2481
|
}
|
|
2478
2482
|
i.emit("sliderMove", c), s.isMoved = true, s.currentTranslate = a + s.startTranslate;
|
|
2479
|
-
let h = true, E =
|
|
2480
|
-
if (
|
|
2483
|
+
let h = true, E = n.resistanceRatio;
|
|
2484
|
+
if (n.touchReleaseOnEdges && (E = 0), a > 0 ? (g && u && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
|
|
2481
2485
|
direction: "prev",
|
|
2482
2486
|
setTranslate: true,
|
|
2483
2487
|
activeSlideIndex: 0
|
|
2484
|
-
}), s.currentTranslate > i.minTranslate() && (h = false,
|
|
2488
|
+
}), s.currentTranslate > i.minTranslate() && (h = false, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + a) ** E))) : a < 0 && (g && u && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
|
|
2485
2489
|
direction: "next",
|
|
2486
2490
|
setTranslate: true,
|
|
2487
|
-
activeSlideIndex: i.slides.length - (
|
|
2488
|
-
}), s.currentTranslate < i.maxTranslate() && (h = false,
|
|
2489
|
-
if (Math.abs(a) >
|
|
2491
|
+
activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
|
2492
|
+
}), s.currentTranslate < i.maxTranslate() && (h = false, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - a) ** E))), h && (c.preventedByNestedSwiper = true), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
|
|
2493
|
+
if (Math.abs(a) > n.threshold || s.allowThresholdMove) {
|
|
2490
2494
|
if (!s.allowThresholdMove) {
|
|
2491
|
-
s.allowThresholdMove = true,
|
|
2495
|
+
s.allowThresholdMove = true, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
|
|
2492
2496
|
return;
|
|
2493
2497
|
}
|
|
2494
2498
|
} else {
|
|
2495
2499
|
s.currentTranslate = s.startTranslate;
|
|
2496
2500
|
return;
|
|
2497
2501
|
}
|
|
2498
|
-
!
|
|
2502
|
+
!n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && i.freeMode || n.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
|
|
2499
2503
|
}
|
|
2500
|
-
function
|
|
2504
|
+
function zi(t) {
|
|
2501
2505
|
const e = this, i = e.touchEventsData;
|
|
2502
2506
|
let s = t;
|
|
2503
2507
|
s.originalEvent && (s = s.originalEvent);
|
|
2504
|
-
let
|
|
2508
|
+
let n;
|
|
2505
2509
|
if (s.type === "touchend" || s.type === "touchcancel") {
|
|
2506
|
-
if (
|
|
2510
|
+
if (n = [...s.changedTouches].find((b) => b.identifier === i.touchId), !n || n.identifier !== i.touchId) return;
|
|
2507
2511
|
} else {
|
|
2508
2512
|
if (i.touchId !== null || s.pointerId !== i.pointerId) return;
|
|
2509
|
-
|
|
2513
|
+
n = s;
|
|
2510
2514
|
}
|
|
2511
2515
|
if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (e.browser.isSafari || e.browser.isWebView)))
|
|
2512
2516
|
return;
|
|
@@ -2516,20 +2520,20 @@ function Li(t) {
|
|
|
2516
2520
|
touches: o,
|
|
2517
2521
|
rtlTranslate: c,
|
|
2518
2522
|
slidesGrid: f,
|
|
2519
|
-
enabled:
|
|
2523
|
+
enabled: p
|
|
2520
2524
|
} = e;
|
|
2521
|
-
if (!
|
|
2525
|
+
if (!p || !d.simulateTouch && s.pointerType === "mouse") return;
|
|
2522
2526
|
if (i.allowTouchCallbacks && e.emit("touchEnd", s), i.allowTouchCallbacks = false, !i.isTouched) {
|
|
2523
2527
|
i.isMoved && d.grabCursor && e.setGrabCursor(false), i.isMoved = false, i.startMoving = false;
|
|
2524
2528
|
return;
|
|
2525
2529
|
}
|
|
2526
2530
|
d.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === true || e.allowSlidePrev === true) && e.setGrabCursor(false);
|
|
2527
|
-
const m =
|
|
2531
|
+
const m = Me(), v = m - i.touchStartTime;
|
|
2528
2532
|
if (e.allowClick) {
|
|
2529
2533
|
const b = s.path || s.composedPath && s.composedPath();
|
|
2530
2534
|
e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), v < 300 && m - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
|
|
2531
2535
|
}
|
|
2532
|
-
if (i.lastClickTime =
|
|
2536
|
+
if (i.lastClickTime = Me(), rt(() => {
|
|
2533
2537
|
e.destroyed || (e.allowClick = true);
|
|
2534
2538
|
}), !i.isTouched || !i.isMoved || !e.swipeDirection || o.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
|
|
2535
2539
|
i.isTouched = false, i.isMoved = false, i.startMoving = false;
|
|
@@ -2551,21 +2555,21 @@ function Li(t) {
|
|
|
2551
2555
|
const L = b < d.slidesPerGroupSkip - 1 ? 1 : d.slidesPerGroup;
|
|
2552
2556
|
typeof f[b + L] < "u" ? (a || w >= f[b] && w < f[b + L]) && (l = b, S = f[b + L] - f[b]) : (a || w >= f[b]) && (l = b, S = f[f.length - 1] - f[f.length - 2]);
|
|
2553
2557
|
}
|
|
2554
|
-
let g = null,
|
|
2555
|
-
d.rewind && (e.isBeginning ?
|
|
2558
|
+
let g = null, u = null;
|
|
2559
|
+
d.rewind && (e.isBeginning ? u = d.virtual && d.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (g = 0));
|
|
2556
2560
|
const h = (w - f[l]) / S, E = l < d.slidesPerGroupSkip - 1 ? 1 : d.slidesPerGroup;
|
|
2557
2561
|
if (v > d.longSwipesMs) {
|
|
2558
2562
|
if (!d.longSwipes) {
|
|
2559
2563
|
e.slideTo(e.activeIndex);
|
|
2560
2564
|
return;
|
|
2561
2565
|
}
|
|
2562
|
-
e.swipeDirection === "next" && (h >= d.longSwipesRatio ? e.slideTo(d.rewind && e.isEnd ? g : l + E) : e.slideTo(l)), e.swipeDirection === "prev" && (h > 1 - d.longSwipesRatio ? e.slideTo(l + E) :
|
|
2566
|
+
e.swipeDirection === "next" && (h >= d.longSwipesRatio ? e.slideTo(d.rewind && e.isEnd ? g : l + E) : e.slideTo(l)), e.swipeDirection === "prev" && (h > 1 - d.longSwipesRatio ? e.slideTo(l + E) : u !== null && h < 0 && Math.abs(h) > d.longSwipesRatio ? e.slideTo(u) : e.slideTo(l));
|
|
2563
2567
|
} else {
|
|
2564
2568
|
if (!d.shortSwipes) {
|
|
2565
2569
|
e.slideTo(e.activeIndex);
|
|
2566
2570
|
return;
|
|
2567
2571
|
}
|
|
2568
|
-
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(l + E) : e.slideTo(l) : (e.swipeDirection === "next" && e.slideTo(g !== null ? g : l + E), e.swipeDirection === "prev" && e.slideTo(
|
|
2572
|
+
e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(l + E) : e.slideTo(l) : (e.swipeDirection === "next" && e.slideTo(g !== null ? g : l + E), e.swipeDirection === "prev" && e.slideTo(u !== null ? u : l));
|
|
2569
2573
|
}
|
|
2570
2574
|
}
|
|
2571
2575
|
function et() {
|
|
@@ -2577,20 +2581,20 @@ function et() {
|
|
|
2577
2581
|
e.breakpoints && t.setBreakpoint();
|
|
2578
2582
|
const {
|
|
2579
2583
|
allowSlideNext: s,
|
|
2580
|
-
allowSlidePrev:
|
|
2581
|
-
snapGrid:
|
|
2584
|
+
allowSlidePrev: n,
|
|
2585
|
+
snapGrid: r
|
|
2582
2586
|
} = t, d = t.virtual && t.params.virtual.enabled;
|
|
2583
2587
|
t.allowSlideNext = true, t.allowSlidePrev = true, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
|
|
2584
2588
|
const o = d && e.loop;
|
|
2585
2589
|
(e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !o ? t.slideTo(t.slides.length - 1, 0, false, true) : t.params.loop && !d ? t.slideToLoop(t.realIndex, 0, false, true) : t.slideTo(t.activeIndex, 0, false, true), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
|
|
2586
2590
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
2587
|
-
}, 500)), t.allowSlidePrev =
|
|
2591
|
+
}, 500)), t.allowSlidePrev = n, t.allowSlideNext = s, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
|
|
2588
2592
|
}
|
|
2589
|
-
function
|
|
2593
|
+
function Ii(t) {
|
|
2590
2594
|
const e = this;
|
|
2591
2595
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
2592
2596
|
}
|
|
2593
|
-
function
|
|
2597
|
+
function Oi() {
|
|
2594
2598
|
const t = this, {
|
|
2595
2599
|
wrapperEl: e,
|
|
2596
2600
|
rtlTranslate: i,
|
|
@@ -2598,31 +2602,31 @@ function Ii() {
|
|
|
2598
2602
|
} = t;
|
|
2599
2603
|
if (!s) return;
|
|
2600
2604
|
t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
|
|
2601
|
-
let
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2605
|
+
let n;
|
|
2606
|
+
const r = t.maxTranslate() - t.minTranslate();
|
|
2607
|
+
r === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / r, n !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, false);
|
|
2604
2608
|
}
|
|
2605
|
-
function
|
|
2609
|
+
function Ai(t) {
|
|
2606
2610
|
const e = this;
|
|
2607
|
-
|
|
2611
|
+
Ce(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
2608
2612
|
}
|
|
2609
|
-
function
|
|
2613
|
+
function Di() {
|
|
2610
2614
|
const t = this;
|
|
2611
2615
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = true, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
2612
2616
|
}
|
|
2613
|
-
const
|
|
2617
|
+
const ft = (t, e) => {
|
|
2614
2618
|
const i = Z(), {
|
|
2615
2619
|
params: s,
|
|
2616
|
-
el:
|
|
2617
|
-
wrapperEl:
|
|
2620
|
+
el: n,
|
|
2621
|
+
wrapperEl: r,
|
|
2618
2622
|
device: d
|
|
2619
2623
|
} = t, o = !!s.nested, c = e === "on" ? "addEventListener" : "removeEventListener", f = e;
|
|
2620
|
-
!
|
|
2624
|
+
!n || typeof n == "string" || (i[c]("touchstart", t.onDocumentTouchStart, {
|
|
2621
2625
|
passive: false,
|
|
2622
2626
|
capture: o
|
|
2623
|
-
}),
|
|
2627
|
+
}), n[c]("touchstart", t.onTouchStart, {
|
|
2624
2628
|
passive: false
|
|
2625
|
-
}),
|
|
2629
|
+
}), n[c]("pointerdown", t.onTouchStart, {
|
|
2626
2630
|
passive: false
|
|
2627
2631
|
}), i[c]("touchmove", t.onTouchMove, {
|
|
2628
2632
|
passive: false,
|
|
@@ -2644,57 +2648,57 @@ const ct = (t, e) => {
|
|
|
2644
2648
|
passive: true
|
|
2645
2649
|
}), i[c]("contextmenu", t.onTouchEnd, {
|
|
2646
2650
|
passive: true
|
|
2647
|
-
}), (s.preventClicks || s.preventClicksPropagation) &&
|
|
2651
|
+
}), (s.preventClicks || s.preventClicksPropagation) && n[c]("click", t.onClick, true), s.cssMode && r[c]("scroll", t.onScroll), s.updateOnWindowResize ? t[f](d.ios || d.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", et, true) : t[f]("observerUpdate", et, true), n[c]("load", t.onLoad, {
|
|
2648
2652
|
capture: true
|
|
2649
2653
|
}));
|
|
2650
2654
|
};
|
|
2651
|
-
function
|
|
2655
|
+
function $i() {
|
|
2652
2656
|
const t = this, {
|
|
2653
2657
|
params: e
|
|
2654
2658
|
} = t;
|
|
2655
|
-
t.onTouchStart =
|
|
2659
|
+
t.onTouchStart = Pi.bind(t), t.onTouchMove = Li.bind(t), t.onTouchEnd = zi.bind(t), t.onDocumentTouchStart = Di.bind(t), e.cssMode && (t.onScroll = Oi.bind(t)), t.onClick = Ii.bind(t), t.onLoad = Ai.bind(t), ft(t, "on");
|
|
2656
2660
|
}
|
|
2657
|
-
function
|
|
2658
|
-
|
|
2661
|
+
function _i() {
|
|
2662
|
+
ft(this, "off");
|
|
2659
2663
|
}
|
|
2660
|
-
var
|
|
2661
|
-
attachEvents:
|
|
2662
|
-
detachEvents:
|
|
2664
|
+
var Gi = {
|
|
2665
|
+
attachEvents: $i,
|
|
2666
|
+
detachEvents: _i
|
|
2663
2667
|
};
|
|
2664
2668
|
const tt = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
2665
|
-
function
|
|
2669
|
+
function Bi() {
|
|
2666
2670
|
const t = this, {
|
|
2667
2671
|
realIndex: e,
|
|
2668
2672
|
initialized: i,
|
|
2669
2673
|
params: s,
|
|
2670
|
-
el:
|
|
2671
|
-
} = t,
|
|
2672
|
-
if (!
|
|
2673
|
-
const d = Z(), o = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", c = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : d.querySelector(s.breakpointsBase), f = t.getBreakpoint(
|
|
2674
|
+
el: n
|
|
2675
|
+
} = t, r = s.breakpoints;
|
|
2676
|
+
if (!r || r && Object.keys(r).length === 0) return;
|
|
2677
|
+
const d = Z(), o = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", c = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : d.querySelector(s.breakpointsBase), f = t.getBreakpoint(r, o, c);
|
|
2674
2678
|
if (!f || t.currentBreakpoint === f) return;
|
|
2675
|
-
const m = (f in
|
|
2676
|
-
v && !w ? (
|
|
2679
|
+
const m = (f in r ? r[f] : void 0) || t.originalParams, v = tt(t, s), w = tt(t, m), a = t.params.grabCursor, l = m.grabCursor, S = s.enabled;
|
|
2680
|
+
v && !w ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !v && w && (n.classList.add(`${s.containerModifierClass}grid`), (m.grid.fill && m.grid.fill === "column" || !m.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), a && !l ? t.unsetGrabCursor() : !a && l && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((L) => {
|
|
2677
2681
|
if (typeof m[L] > "u") return;
|
|
2678
2682
|
const I = s[L] && s[L].enabled, z = m[L] && m[L].enabled;
|
|
2679
2683
|
I && !z && t[L].disable(), !I && z && t[L].enable();
|
|
2680
2684
|
});
|
|
2681
|
-
const g = m.direction && m.direction !== s.direction,
|
|
2685
|
+
const g = m.direction && m.direction !== s.direction, u = s.loop && (m.slidesPerView !== s.slidesPerView || g), h = s.loop;
|
|
2682
2686
|
g && i && t.changeDirection(), j(t.params, m);
|
|
2683
2687
|
const E = t.params.enabled, b = t.params.loop;
|
|
2684
2688
|
Object.assign(t, {
|
|
2685
2689
|
allowTouchMove: t.params.allowTouchMove,
|
|
2686
2690
|
allowSlideNext: t.params.allowSlideNext,
|
|
2687
2691
|
allowSlidePrev: t.params.allowSlidePrev
|
|
2688
|
-
}), S && !E ? t.disable() : !S && E && t.enable(), t.currentBreakpoint = f, t.emit("_beforeBreakpoint", m), i && (
|
|
2692
|
+
}), S && !E ? t.disable() : !S && E && t.enable(), t.currentBreakpoint = f, t.emit("_beforeBreakpoint", m), i && (u ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !h && b ? (t.loopCreate(e), t.updateSlides()) : h && !b && t.loopDestroy()), t.emit("breakpoint", m);
|
|
2689
2693
|
}
|
|
2690
|
-
function
|
|
2694
|
+
function Yi(t, e, i) {
|
|
2691
2695
|
if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
|
|
2692
2696
|
let s = false;
|
|
2693
|
-
const
|
|
2697
|
+
const n = k(), r = e === "window" ? n.innerHeight : i.clientHeight, d = Object.keys(t).map((o) => {
|
|
2694
2698
|
if (typeof o == "string" && o.indexOf("@") === 0) {
|
|
2695
2699
|
const c = parseFloat(o.substr(1));
|
|
2696
2700
|
return {
|
|
2697
|
-
value:
|
|
2701
|
+
value: r * c,
|
|
2698
2702
|
point: o
|
|
2699
2703
|
};
|
|
2700
2704
|
}
|
|
@@ -2709,30 +2713,30 @@ function Bi(t, e, i) {
|
|
|
2709
2713
|
point: c,
|
|
2710
2714
|
value: f
|
|
2711
2715
|
} = d[o];
|
|
2712
|
-
e === "window" ?
|
|
2716
|
+
e === "window" ? n.matchMedia(`(min-width: ${f}px)`).matches && (s = c) : f <= i.clientWidth && (s = c);
|
|
2713
2717
|
}
|
|
2714
2718
|
return s || "max";
|
|
2715
2719
|
}
|
|
2716
|
-
var
|
|
2717
|
-
setBreakpoint:
|
|
2718
|
-
getBreakpoint:
|
|
2720
|
+
var Xi = {
|
|
2721
|
+
setBreakpoint: Bi,
|
|
2722
|
+
getBreakpoint: Yi
|
|
2719
2723
|
};
|
|
2720
|
-
function
|
|
2724
|
+
function Ri(t, e) {
|
|
2721
2725
|
const i = [];
|
|
2722
2726
|
return t.forEach((s) => {
|
|
2723
|
-
typeof s == "object" ? Object.keys(s).forEach((
|
|
2724
|
-
s[
|
|
2727
|
+
typeof s == "object" ? Object.keys(s).forEach((n) => {
|
|
2728
|
+
s[n] && i.push(e + n);
|
|
2725
2729
|
}) : typeof s == "string" && i.push(e + s);
|
|
2726
2730
|
}), i;
|
|
2727
2731
|
}
|
|
2728
|
-
function
|
|
2732
|
+
function Vi() {
|
|
2729
2733
|
const t = this, {
|
|
2730
2734
|
classNames: e,
|
|
2731
2735
|
params: i,
|
|
2732
2736
|
rtl: s,
|
|
2733
|
-
el:
|
|
2734
|
-
device:
|
|
2735
|
-
} = t, d =
|
|
2737
|
+
el: n,
|
|
2738
|
+
device: r
|
|
2739
|
+
} = t, d = Ri(["initialized", i.direction, {
|
|
2736
2740
|
"free-mode": t.params.freeMode && i.freeMode.enabled
|
|
2737
2741
|
}, {
|
|
2738
2742
|
autoheight: i.autoHeight
|
|
@@ -2743,9 +2747,9 @@ function Ri() {
|
|
|
2743
2747
|
}, {
|
|
2744
2748
|
"grid-column": i.grid && i.grid.rows > 1 && i.grid.fill === "column"
|
|
2745
2749
|
}, {
|
|
2746
|
-
android:
|
|
2750
|
+
android: r.android
|
|
2747
2751
|
}, {
|
|
2748
|
-
ios:
|
|
2752
|
+
ios: r.ios
|
|
2749
2753
|
}, {
|
|
2750
2754
|
"css-mode": i.cssMode
|
|
2751
2755
|
}, {
|
|
@@ -2753,20 +2757,20 @@ function Ri() {
|
|
|
2753
2757
|
}, {
|
|
2754
2758
|
"watch-progress": i.watchSlidesProgress
|
|
2755
2759
|
}], i.containerModifierClass);
|
|
2756
|
-
e.push(...d),
|
|
2760
|
+
e.push(...d), n.classList.add(...e), t.emitContainerClasses();
|
|
2757
2761
|
}
|
|
2758
|
-
function
|
|
2762
|
+
function Wi() {
|
|
2759
2763
|
const t = this, {
|
|
2760
2764
|
el: e,
|
|
2761
2765
|
classNames: i
|
|
2762
2766
|
} = t;
|
|
2763
2767
|
!e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
|
|
2764
2768
|
}
|
|
2765
|
-
var
|
|
2766
|
-
addClasses:
|
|
2767
|
-
removeClasses:
|
|
2769
|
+
var ki = {
|
|
2770
|
+
addClasses: Vi,
|
|
2771
|
+
removeClasses: Wi
|
|
2768
2772
|
};
|
|
2769
|
-
function
|
|
2773
|
+
function Ni() {
|
|
2770
2774
|
const t = this, {
|
|
2771
2775
|
isLocked: e,
|
|
2772
2776
|
params: i
|
|
@@ -2774,14 +2778,14 @@ function ki() {
|
|
|
2774
2778
|
slidesOffsetBefore: s
|
|
2775
2779
|
} = i;
|
|
2776
2780
|
if (s) {
|
|
2777
|
-
const
|
|
2778
|
-
t.isLocked = t.size >
|
|
2781
|
+
const n = t.slides.length - 1, r = t.slidesGrid[n] + t.slidesSizesGrid[n] + s * 2;
|
|
2782
|
+
t.isLocked = t.size > r;
|
|
2779
2783
|
} else
|
|
2780
2784
|
t.isLocked = t.snapGrid.length === 1;
|
|
2781
2785
|
i.allowSlideNext === true && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === true && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = false), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
|
|
2782
2786
|
}
|
|
2783
2787
|
var Hi = {
|
|
2784
|
-
checkOverflow:
|
|
2788
|
+
checkOverflow: Ni
|
|
2785
2789
|
}, Fe = {
|
|
2786
2790
|
init: true,
|
|
2787
2791
|
direction: "horizontal",
|
|
@@ -2903,64 +2907,64 @@ var Hi = {
|
|
|
2903
2907
|
// Internals
|
|
2904
2908
|
_emitClasses: false
|
|
2905
2909
|
};
|
|
2906
|
-
function
|
|
2910
|
+
function Fi(t, e) {
|
|
2907
2911
|
return function(s) {
|
|
2908
2912
|
s === void 0 && (s = {});
|
|
2909
|
-
const
|
|
2910
|
-
if (typeof
|
|
2913
|
+
const n = Object.keys(s)[0], r = s[n];
|
|
2914
|
+
if (typeof r != "object" || r === null) {
|
|
2911
2915
|
j(e, s);
|
|
2912
2916
|
return;
|
|
2913
2917
|
}
|
|
2914
|
-
if (t[
|
|
2918
|
+
if (t[n] === true && (t[n] = {
|
|
2915
2919
|
enabled: true
|
|
2916
|
-
}),
|
|
2920
|
+
}), n === "navigation" && t[n] && t[n].enabled && !t[n].prevEl && !t[n].nextEl && (t[n].auto = true), ["pagination", "scrollbar"].indexOf(n) >= 0 && t[n] && t[n].enabled && !t[n].el && (t[n].auto = true), !(n in t && "enabled" in r)) {
|
|
2917
2921
|
j(e, s);
|
|
2918
2922
|
return;
|
|
2919
2923
|
}
|
|
2920
|
-
typeof t[
|
|
2924
|
+
typeof t[n] == "object" && !("enabled" in t[n]) && (t[n].enabled = true), t[n] || (t[n] = {
|
|
2921
2925
|
enabled: false
|
|
2922
2926
|
}), j(e, s);
|
|
2923
2927
|
};
|
|
2924
2928
|
}
|
|
2925
|
-
const
|
|
2926
|
-
eventsEmitter:
|
|
2927
|
-
update:
|
|
2928
|
-
translate:
|
|
2929
|
-
transition:
|
|
2930
|
-
slide:
|
|
2931
|
-
loop:
|
|
2932
|
-
grabCursor:
|
|
2933
|
-
events:
|
|
2934
|
-
breakpoints:
|
|
2929
|
+
const Re = {
|
|
2930
|
+
eventsEmitter: kt,
|
|
2931
|
+
update: ei,
|
|
2932
|
+
translate: ai,
|
|
2933
|
+
transition: ci,
|
|
2934
|
+
slide: wi,
|
|
2935
|
+
loop: xi,
|
|
2936
|
+
grabCursor: Ci,
|
|
2937
|
+
events: Gi,
|
|
2938
|
+
breakpoints: Xi,
|
|
2935
2939
|
checkOverflow: Hi,
|
|
2936
|
-
classes:
|
|
2937
|
-
},
|
|
2940
|
+
classes: ki
|
|
2941
|
+
}, Ve = {};
|
|
2938
2942
|
let qe = class J {
|
|
2939
2943
|
constructor() {
|
|
2940
2944
|
let e, i;
|
|
2941
|
-
for (var s = arguments.length,
|
|
2942
|
-
r
|
|
2943
|
-
|
|
2945
|
+
for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
|
|
2946
|
+
n[r] = arguments[r];
|
|
2947
|
+
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i = j({}, i), e && !i.el && (i.el = e);
|
|
2944
2948
|
const d = Z();
|
|
2945
2949
|
if (i.el && typeof i.el == "string" && d.querySelectorAll(i.el).length > 1) {
|
|
2946
|
-
const
|
|
2950
|
+
const p = [];
|
|
2947
2951
|
return d.querySelectorAll(i.el).forEach((m) => {
|
|
2948
2952
|
const v = j({}, i, {
|
|
2949
2953
|
el: m
|
|
2950
2954
|
});
|
|
2951
|
-
|
|
2952
|
-
}),
|
|
2955
|
+
p.push(new J(v));
|
|
2956
|
+
}), p;
|
|
2953
2957
|
}
|
|
2954
2958
|
const o = this;
|
|
2955
|
-
o.__swiper__ = true, o.support =
|
|
2959
|
+
o.__swiper__ = true, o.support = lt(), o.device = ot({
|
|
2956
2960
|
userAgent: i.userAgent
|
|
2957
|
-
}), o.browser =
|
|
2961
|
+
}), o.browser = dt(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], i.modules && Array.isArray(i.modules) && o.modules.push(...i.modules);
|
|
2958
2962
|
const c = {};
|
|
2959
|
-
o.modules.forEach((
|
|
2960
|
-
|
|
2963
|
+
o.modules.forEach((p) => {
|
|
2964
|
+
p({
|
|
2961
2965
|
params: i,
|
|
2962
2966
|
swiper: o,
|
|
2963
|
-
extendParams:
|
|
2967
|
+
extendParams: Fi(i, c),
|
|
2964
2968
|
on: o.on.bind(o),
|
|
2965
2969
|
once: o.once.bind(o),
|
|
2966
2970
|
off: o.off.bind(o),
|
|
@@ -2968,8 +2972,8 @@ let qe = class J {
|
|
|
2968
2972
|
});
|
|
2969
2973
|
});
|
|
2970
2974
|
const f = j({}, Fe, c);
|
|
2971
|
-
return o.params = j({}, f,
|
|
2972
|
-
o.on(
|
|
2975
|
+
return o.params = j({}, f, Ve, i), o.originalParams = j({}, o.params), o.passedParams = j({}, i), o.params && o.params.on && Object.keys(o.params.on).forEach((p) => {
|
|
2976
|
+
o.on(p, o.params.on[p]);
|
|
2973
2977
|
}), o.params && o.params.onAny && o.onAny(o.params.onAny), Object.assign(o, {
|
|
2974
2978
|
enabled: o.params.enabled,
|
|
2975
2979
|
el: e,
|
|
@@ -3059,12 +3063,15 @@ let qe = class J {
|
|
|
3059
3063
|
const {
|
|
3060
3064
|
slidesEl: i,
|
|
3061
3065
|
params: s
|
|
3062
|
-
} = this,
|
|
3063
|
-
return
|
|
3066
|
+
} = this, n = q(i, `.${s.slideClass}, swiper-slide`), r = Le(n[0]);
|
|
3067
|
+
return Le(e) - r;
|
|
3064
3068
|
}
|
|
3065
3069
|
getSlideIndexByData(e) {
|
|
3066
3070
|
return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
|
|
3067
3071
|
}
|
|
3072
|
+
getSlideIndexWhenGrid(e) {
|
|
3073
|
+
return this.grid && this.params.grid && this.params.grid.rows > 1 && (this.params.grid.fill === "column" ? e = Math.floor(e / this.params.grid.rows) : this.params.grid.fill === "row" && (e = e % Math.ceil(this.slides.length / this.params.grid.rows))), e;
|
|
3074
|
+
}
|
|
3068
3075
|
recalcSlides() {
|
|
3069
3076
|
const e = this, {
|
|
3070
3077
|
slidesEl: i,
|
|
@@ -3083,7 +3090,7 @@ let qe = class J {
|
|
|
3083
3090
|
setProgress(e, i) {
|
|
3084
3091
|
const s = this;
|
|
3085
3092
|
e = Math.min(Math.max(e, 0), 1);
|
|
3086
|
-
const
|
|
3093
|
+
const n = s.minTranslate(), d = (s.maxTranslate() - n) * e + n;
|
|
3087
3094
|
s.translateTo(d, typeof i > "u" ? 0 : i), s.updateActiveIndex(), s.updateSlidesClasses();
|
|
3088
3095
|
}
|
|
3089
3096
|
emitContainerClasses() {
|
|
@@ -3101,38 +3108,38 @@ let qe = class J {
|
|
|
3101
3108
|
if (!e.params._emitClasses || !e.el) return;
|
|
3102
3109
|
const i = [];
|
|
3103
3110
|
e.slides.forEach((s) => {
|
|
3104
|
-
const
|
|
3111
|
+
const n = e.getSlideClasses(s);
|
|
3105
3112
|
i.push({
|
|
3106
3113
|
slideEl: s,
|
|
3107
|
-
classNames:
|
|
3108
|
-
}), e.emit("_slideClass", s,
|
|
3114
|
+
classNames: n
|
|
3115
|
+
}), e.emit("_slideClass", s, n);
|
|
3109
3116
|
}), e.emit("_slideClasses", i);
|
|
3110
3117
|
}
|
|
3111
3118
|
slidesPerViewDynamic(e, i) {
|
|
3112
3119
|
e === void 0 && (e = "current"), i === void 0 && (i = false);
|
|
3113
3120
|
const s = this, {
|
|
3114
|
-
params:
|
|
3115
|
-
slides:
|
|
3121
|
+
params: n,
|
|
3122
|
+
slides: r,
|
|
3116
3123
|
slidesGrid: d,
|
|
3117
3124
|
slidesSizesGrid: o,
|
|
3118
3125
|
size: c,
|
|
3119
3126
|
activeIndex: f
|
|
3120
3127
|
} = s;
|
|
3121
|
-
let
|
|
3122
|
-
if (typeof
|
|
3123
|
-
if (
|
|
3124
|
-
let m =
|
|
3125
|
-
for (let w = f + 1; w <
|
|
3126
|
-
|
|
3128
|
+
let p = 1;
|
|
3129
|
+
if (typeof n.slidesPerView == "number") return n.slidesPerView;
|
|
3130
|
+
if (n.centeredSlides) {
|
|
3131
|
+
let m = r[f] ? Math.ceil(r[f].swiperSlideSize) : 0, v;
|
|
3132
|
+
for (let w = f + 1; w < r.length; w += 1)
|
|
3133
|
+
r[w] && !v && (m += Math.ceil(r[w].swiperSlideSize), p += 1, m > c && (v = true));
|
|
3127
3134
|
for (let w = f - 1; w >= 0; w -= 1)
|
|
3128
|
-
|
|
3135
|
+
r[w] && !v && (m += r[w].swiperSlideSize, p += 1, m > c && (v = true));
|
|
3129
3136
|
} else if (e === "current")
|
|
3130
|
-
for (let m = f + 1; m <
|
|
3131
|
-
(i ? d[m] + o[m] - d[f] < c : d[m] - d[f] < c) && (
|
|
3137
|
+
for (let m = f + 1; m < r.length; m += 1)
|
|
3138
|
+
(i ? d[m] + o[m] - d[f] < c : d[m] - d[f] < c) && (p += 1);
|
|
3132
3139
|
else
|
|
3133
3140
|
for (let m = f - 1; m >= 0; m -= 1)
|
|
3134
|
-
d[f] - d[m] < c && (
|
|
3135
|
-
return
|
|
3141
|
+
d[f] - d[m] < c && (p += 1);
|
|
3142
|
+
return p;
|
|
3136
3143
|
}
|
|
3137
3144
|
update() {
|
|
3138
3145
|
const e = this;
|
|
@@ -3142,30 +3149,30 @@ let qe = class J {
|
|
|
3142
3149
|
params: s
|
|
3143
3150
|
} = e;
|
|
3144
3151
|
s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((d) => {
|
|
3145
|
-
d.complete &&
|
|
3152
|
+
d.complete && Ce(e, d);
|
|
3146
3153
|
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
3147
|
-
function
|
|
3154
|
+
function n() {
|
|
3148
3155
|
const d = e.rtlTranslate ? e.translate * -1 : e.translate, o = Math.min(Math.max(d, e.maxTranslate()), e.minTranslate());
|
|
3149
3156
|
e.setTranslate(o), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
3150
3157
|
}
|
|
3151
|
-
let
|
|
3158
|
+
let r;
|
|
3152
3159
|
if (s.freeMode && s.freeMode.enabled && !s.cssMode)
|
|
3153
|
-
|
|
3160
|
+
n(), s.autoHeight && e.updateAutoHeight();
|
|
3154
3161
|
else {
|
|
3155
3162
|
if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) {
|
|
3156
3163
|
const d = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides;
|
|
3157
|
-
|
|
3164
|
+
r = e.slideTo(d.length - 1, 0, false, true);
|
|
3158
3165
|
} else
|
|
3159
|
-
|
|
3160
|
-
|
|
3166
|
+
r = e.slideTo(e.activeIndex, 0, false, true);
|
|
3167
|
+
r || n();
|
|
3161
3168
|
}
|
|
3162
3169
|
s.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
|
|
3163
3170
|
}
|
|
3164
3171
|
changeDirection(e, i) {
|
|
3165
3172
|
i === void 0 && (i = true);
|
|
3166
|
-
const s = this,
|
|
3167
|
-
return e || (e =
|
|
3168
|
-
e === "vertical" ?
|
|
3173
|
+
const s = this, n = s.params.direction;
|
|
3174
|
+
return e || (e = n === "horizontal" ? "vertical" : "horizontal"), e === n || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${n}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((r) => {
|
|
3175
|
+
e === "vertical" ? r.style.width = "" : r.style.height = "";
|
|
3169
3176
|
}), s.emit("changeDirection"), i && s.update()), s;
|
|
3170
3177
|
}
|
|
3171
3178
|
changeLanguageDirection(e) {
|
|
@@ -3179,8 +3186,8 @@ let qe = class J {
|
|
|
3179
3186
|
if (typeof s == "string" && (s = document.querySelector(s)), !s)
|
|
3180
3187
|
return false;
|
|
3181
3188
|
s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = true);
|
|
3182
|
-
const
|
|
3183
|
-
let d = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(
|
|
3189
|
+
const n = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
|
|
3190
|
+
let d = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : q(s, n())[0];
|
|
3184
3191
|
return !d && i.params.createElements && (d = fe("div", i.params.wrapperClass), s.append(d), q(s, `.${i.params.slideClass}`).forEach((o) => {
|
|
3185
3192
|
d.append(o);
|
|
3186
3193
|
})), Object.assign(i, {
|
|
@@ -3190,41 +3197,41 @@ let qe = class J {
|
|
|
3190
3197
|
hostEl: i.isElement ? s.parentNode.host : s,
|
|
3191
3198
|
mounted: true,
|
|
3192
3199
|
// RTL
|
|
3193
|
-
rtl: s.dir.toLowerCase() === "rtl" ||
|
|
3194
|
-
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" ||
|
|
3195
|
-
wrongRTL:
|
|
3200
|
+
rtl: s.dir.toLowerCase() === "rtl" || re(s, "direction") === "rtl",
|
|
3201
|
+
rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || re(s, "direction") === "rtl"),
|
|
3202
|
+
wrongRTL: re(d, "display") === "-webkit-box"
|
|
3196
3203
|
}), true;
|
|
3197
3204
|
}
|
|
3198
3205
|
init(e) {
|
|
3199
3206
|
const i = this;
|
|
3200
3207
|
if (i.initialized || i.mount(e) === false) return i;
|
|
3201
3208
|
i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit, false, true) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, false, true), i.params.loop && i.loopCreate(void 0, true), i.attachEvents();
|
|
3202
|
-
const
|
|
3203
|
-
return i.isElement &&
|
|
3204
|
-
|
|
3205
|
-
|
|
3209
|
+
const n = [...i.el.querySelectorAll('[loading="lazy"]')];
|
|
3210
|
+
return i.isElement && n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
|
|
3211
|
+
r.complete ? Ce(i, r) : r.addEventListener("load", (d) => {
|
|
3212
|
+
Ce(i, d.target);
|
|
3206
3213
|
});
|
|
3207
|
-
}),
|
|
3214
|
+
}), He(i), i.initialized = true, He(i), i.emit("init"), i.emit("afterInit"), i;
|
|
3208
3215
|
}
|
|
3209
3216
|
destroy(e, i) {
|
|
3210
3217
|
e === void 0 && (e = true), i === void 0 && (i = true);
|
|
3211
3218
|
const s = this, {
|
|
3212
|
-
params:
|
|
3213
|
-
el:
|
|
3219
|
+
params: n,
|
|
3220
|
+
el: r,
|
|
3214
3221
|
wrapperEl: d,
|
|
3215
3222
|
slides: o
|
|
3216
3223
|
} = s;
|
|
3217
|
-
return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = false, s.detachEvents(),
|
|
3218
|
-
c.classList.remove(
|
|
3224
|
+
return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = false, s.detachEvents(), n.loop && s.loopDestroy(), i && (s.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), d && d.removeAttribute("style"), o && o.length && o.forEach((c) => {
|
|
3225
|
+
c.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), c.removeAttribute("style"), c.removeAttribute("data-swiper-slide-index");
|
|
3219
3226
|
})), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((c) => {
|
|
3220
3227
|
s.off(c);
|
|
3221
|
-
}), e !== false && (s.el && typeof s.el != "string" && (s.el.swiper = null),
|
|
3228
|
+
}), e !== false && (s.el && typeof s.el != "string" && (s.el.swiper = null), Mt(s)), s.destroyed = true), null;
|
|
3222
3229
|
}
|
|
3223
3230
|
static extendDefaults(e) {
|
|
3224
|
-
j(
|
|
3231
|
+
j(Ve, e);
|
|
3225
3232
|
}
|
|
3226
3233
|
static get extendedDefaults() {
|
|
3227
|
-
return
|
|
3234
|
+
return Ve;
|
|
3228
3235
|
}
|
|
3229
3236
|
static get defaults() {
|
|
3230
3237
|
return Fe;
|
|
@@ -3238,13 +3245,13 @@ let qe = class J {
|
|
|
3238
3245
|
return Array.isArray(e) ? (e.forEach((i) => J.installModule(i)), J) : (J.installModule(e), J);
|
|
3239
3246
|
}
|
|
3240
3247
|
};
|
|
3241
|
-
Object.keys(
|
|
3242
|
-
Object.keys(
|
|
3243
|
-
qe.prototype[e] =
|
|
3248
|
+
Object.keys(Re).forEach((t) => {
|
|
3249
|
+
Object.keys(Re[t]).forEach((e) => {
|
|
3250
|
+
qe.prototype[e] = Re[t][e];
|
|
3244
3251
|
});
|
|
3245
3252
|
});
|
|
3246
|
-
qe.use([
|
|
3247
|
-
const
|
|
3253
|
+
qe.use([Vt, Wt]);
|
|
3254
|
+
const ut = [
|
|
3248
3255
|
"eventsPrefix",
|
|
3249
3256
|
"injectStyles",
|
|
3250
3257
|
"injectStylesUrls",
|
|
@@ -3372,132 +3379,132 @@ function ce(t, e) {
|
|
|
3372
3379
|
typeof t[s] > "u" ? t[s] = e[s] : ae(e[s]) && ae(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : ce(t[s], e[s]) : t[s] = e[s];
|
|
3373
3380
|
});
|
|
3374
3381
|
}
|
|
3375
|
-
function
|
|
3382
|
+
function pt(t) {
|
|
3376
3383
|
return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
|
|
3377
3384
|
}
|
|
3378
|
-
function
|
|
3385
|
+
function mt(t) {
|
|
3379
3386
|
return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
|
|
3380
3387
|
}
|
|
3381
|
-
function
|
|
3388
|
+
function ht(t) {
|
|
3382
3389
|
return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
|
|
3383
3390
|
}
|
|
3384
|
-
function
|
|
3391
|
+
function gt(t) {
|
|
3385
3392
|
t === void 0 && (t = "");
|
|
3386
3393
|
const e = t.split(" ").map((s) => s.trim()).filter((s) => !!s), i = [];
|
|
3387
3394
|
return e.forEach((s) => {
|
|
3388
3395
|
i.indexOf(s) < 0 && i.push(s);
|
|
3389
3396
|
}), i.join(" ");
|
|
3390
3397
|
}
|
|
3391
|
-
function
|
|
3398
|
+
function ji(t) {
|
|
3392
3399
|
return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
|
|
3393
3400
|
}
|
|
3394
|
-
function
|
|
3401
|
+
function qi(t) {
|
|
3395
3402
|
let {
|
|
3396
3403
|
swiper: e,
|
|
3397
3404
|
slides: i,
|
|
3398
3405
|
passedParams: s,
|
|
3399
|
-
changedParams:
|
|
3400
|
-
nextEl:
|
|
3406
|
+
changedParams: n,
|
|
3407
|
+
nextEl: r,
|
|
3401
3408
|
prevEl: d,
|
|
3402
3409
|
scrollbarEl: o,
|
|
3403
3410
|
paginationEl: c
|
|
3404
3411
|
} = t;
|
|
3405
|
-
const f =
|
|
3406
|
-
params:
|
|
3412
|
+
const f = n.filter((y) => y !== "children" && y !== "direction" && y !== "wrapperClass"), {
|
|
3413
|
+
params: p,
|
|
3407
3414
|
pagination: m,
|
|
3408
3415
|
navigation: v,
|
|
3409
3416
|
scrollbar: w,
|
|
3410
3417
|
virtual: a,
|
|
3411
3418
|
thumbs: l
|
|
3412
3419
|
} = e;
|
|
3413
|
-
let S, g,
|
|
3414
|
-
|
|
3420
|
+
let S, g, u, h, E, b, L, I;
|
|
3421
|
+
n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && p.thumbs && (!p.thumbs.swiper || p.thumbs.swiper.destroyed) && (S = true), n.includes("controller") && s.controller && s.controller.control && p.controller && !p.controller.control && (g = true), n.includes("pagination") && s.pagination && (s.pagination.el || c) && (p.pagination || p.pagination === false) && m && !m.el && (u = true), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (p.scrollbar || p.scrollbar === false) && w && !w.el && (h = true), n.includes("navigation") && s.navigation && (s.navigation.prevEl || d) && (s.navigation.nextEl || r) && (p.navigation || p.navigation === false) && v && !v.prevEl && !v.nextEl && (E = true);
|
|
3415
3422
|
const z = (y) => {
|
|
3416
|
-
e[y] && (e[y].destroy(), y === "navigation" ? (e.isElement && (e[y].prevEl.remove(), e[y].nextEl.remove()),
|
|
3423
|
+
e[y] && (e[y].destroy(), y === "navigation" ? (e.isElement && (e[y].prevEl.remove(), e[y].nextEl.remove()), p[y].prevEl = void 0, p[y].nextEl = void 0, e[y].prevEl = void 0, e[y].nextEl = void 0) : (e.isElement && e[y].el.remove(), p[y].el = void 0, e[y].el = void 0));
|
|
3417
3424
|
};
|
|
3418
|
-
|
|
3419
|
-
if (ae(
|
|
3420
|
-
Object.assign(
|
|
3425
|
+
n.includes("loop") && e.isElement && (p.loop && !s.loop ? b = true : !p.loop && s.loop ? L = true : I = true), f.forEach((y) => {
|
|
3426
|
+
if (ae(p[y]) && ae(s[y]))
|
|
3427
|
+
Object.assign(p[y], s[y]), (y === "navigation" || y === "pagination" || y === "scrollbar") && "enabled" in s[y] && !s[y].enabled && z(y);
|
|
3421
3428
|
else {
|
|
3422
3429
|
const T = s[y];
|
|
3423
|
-
(T === true || T === false) && (y === "navigation" || y === "pagination" || y === "scrollbar") ? T === false && z(y) :
|
|
3430
|
+
(T === true || T === false) && (y === "navigation" || y === "pagination" || y === "scrollbar") ? T === false && z(y) : p[y] = s[y];
|
|
3424
3431
|
}
|
|
3425
|
-
}), f.includes("controller") && !g && e.controller && e.controller.control &&
|
|
3432
|
+
}), f.includes("controller") && !g && e.controller && e.controller.control && p.controller && p.controller.control && (e.controller.control = p.controller.control), n.includes("children") && i && a && p.virtual.enabled ? (a.slides = i, a.update(true)) : n.includes("virtual") && a && p.virtual.enabled && (i && (a.slides = i), a.update(true)), n.includes("children") && i && p.loop && (I = true), S && l.init() && l.update(true), g && (e.controller.control = p.controller.control), u && (e.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), e.el.appendChild(c)), c && (p.pagination.el = c), m.init(), m.render(), m.update()), h && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (p.scrollbar.el = o), w.init(), w.updateSize(), w.setTranslate()), E && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), ue(r, e.hostEl.constructor.nextButtonSvg), r.part.add("button-next"), e.el.appendChild(r)), (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-prev"), ue(d, e.hostEl.constructor.prevButtonSvg), d.part.add("button-prev"), e.el.appendChild(d))), r && (p.navigation.nextEl = r), d && (p.navigation.prevEl = d), v.init(), v.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, false), (b || I) && e.loopDestroy(), (L || I) && e.loopCreate(), e.update();
|
|
3426
3433
|
}
|
|
3427
|
-
function
|
|
3434
|
+
function Ui(t, e) {
|
|
3428
3435
|
t === void 0 && (t = {}), e === void 0 && (e = true);
|
|
3429
3436
|
const i = {
|
|
3430
3437
|
on: {}
|
|
3431
|
-
}, s = {},
|
|
3438
|
+
}, s = {}, n = {};
|
|
3432
3439
|
ce(i, Fe), i._emitClasses = true, i.init = false;
|
|
3433
|
-
const
|
|
3440
|
+
const r = {}, d = ut.map((c) => c.replace(/_/, "")), o = Object.assign({}, t);
|
|
3434
3441
|
return Object.keys(o).forEach((c) => {
|
|
3435
|
-
typeof t[c] > "u" || (d.indexOf(c) >= 0 ? ae(t[c]) ? (i[c] = {},
|
|
3442
|
+
typeof t[c] > "u" || (d.indexOf(c) >= 0 ? ae(t[c]) ? (i[c] = {}, n[c] = {}, ce(i[c], t[c]), ce(n[c], t[c])) : (i[c] = t[c], n[c] = t[c]) : c.search(/on[A-Z]/) === 0 && typeof t[c] == "function" ? e ? s[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : i.on[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : r[c] = t[c]);
|
|
3436
3443
|
}), ["navigation", "pagination", "scrollbar"].forEach((c) => {
|
|
3437
3444
|
i[c] === true && (i[c] = {}), i[c] === false && delete i[c];
|
|
3438
3445
|
}), {
|
|
3439
3446
|
params: i,
|
|
3440
|
-
passedParams:
|
|
3441
|
-
rest:
|
|
3447
|
+
passedParams: n,
|
|
3448
|
+
rest: r,
|
|
3442
3449
|
events: s
|
|
3443
3450
|
};
|
|
3444
3451
|
}
|
|
3445
|
-
function
|
|
3452
|
+
function Ki(t, e) {
|
|
3446
3453
|
let {
|
|
3447
3454
|
el: i,
|
|
3448
3455
|
nextEl: s,
|
|
3449
|
-
prevEl:
|
|
3450
|
-
paginationEl:
|
|
3456
|
+
prevEl: n,
|
|
3457
|
+
paginationEl: r,
|
|
3451
3458
|
scrollbarEl: d,
|
|
3452
3459
|
swiper: o
|
|
3453
3460
|
} = t;
|
|
3454
|
-
|
|
3461
|
+
pt(e) && s && n && (o.params.navigation.nextEl = s, o.originalParams.navigation.nextEl = s, o.params.navigation.prevEl = n, o.originalParams.navigation.prevEl = n), mt(e) && r && (o.params.pagination.el = r, o.originalParams.pagination.el = r), ht(e) && d && (o.params.scrollbar.el = d, o.originalParams.scrollbar.el = d), o.init(i);
|
|
3455
3462
|
}
|
|
3456
|
-
function
|
|
3457
|
-
const
|
|
3458
|
-
if (!e) return
|
|
3463
|
+
function Zi(t, e, i, s, n) {
|
|
3464
|
+
const r = [];
|
|
3465
|
+
if (!e) return r;
|
|
3459
3466
|
const d = (c) => {
|
|
3460
|
-
|
|
3467
|
+
r.indexOf(c) < 0 && r.push(c);
|
|
3461
3468
|
};
|
|
3462
3469
|
if (i && s) {
|
|
3463
|
-
const c = s.map(
|
|
3470
|
+
const c = s.map(n), f = i.map(n);
|
|
3464
3471
|
c.join("") !== f.join("") && d("children"), s.length !== i.length && d("children");
|
|
3465
3472
|
}
|
|
3466
|
-
return
|
|
3473
|
+
return ut.filter((c) => c[0] === "_").map((c) => c.replace(/_/, "")).forEach((c) => {
|
|
3467
3474
|
if (c in t && c in e)
|
|
3468
3475
|
if (ae(t[c]) && ae(e[c])) {
|
|
3469
|
-
const f = Object.keys(t[c]),
|
|
3470
|
-
f.length !==
|
|
3476
|
+
const f = Object.keys(t[c]), p = Object.keys(e[c]);
|
|
3477
|
+
f.length !== p.length ? d(c) : (f.forEach((m) => {
|
|
3471
3478
|
t[c][m] !== e[c][m] && d(c);
|
|
3472
|
-
}),
|
|
3479
|
+
}), p.forEach((m) => {
|
|
3473
3480
|
t[c][m] !== e[c][m] && d(c);
|
|
3474
3481
|
}));
|
|
3475
3482
|
} else t[c] !== e[c] && d(c);
|
|
3476
|
-
}),
|
|
3483
|
+
}), r;
|
|
3477
3484
|
}
|
|
3478
|
-
const
|
|
3479
|
-
!t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
|
|
3485
|
+
const Qi = (t) => {
|
|
3486
|
+
!t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
|
|
3480
3487
|
};
|
|
3481
|
-
function
|
|
3482
|
-
return
|
|
3488
|
+
function ze() {
|
|
3489
|
+
return ze = Object.assign ? Object.assign.bind() : function(t) {
|
|
3483
3490
|
for (var e = 1; e < arguments.length; e++) {
|
|
3484
3491
|
var i = arguments[e];
|
|
3485
3492
|
for (var s in i)
|
|
3486
3493
|
Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
|
|
3487
3494
|
}
|
|
3488
3495
|
return t;
|
|
3489
|
-
},
|
|
3496
|
+
}, ze.apply(this, arguments);
|
|
3490
3497
|
}
|
|
3491
|
-
function
|
|
3498
|
+
function vt(t) {
|
|
3492
3499
|
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
3493
3500
|
}
|
|
3494
|
-
function
|
|
3501
|
+
function wt(t) {
|
|
3495
3502
|
const e = [];
|
|
3496
3503
|
return V.Children.toArray(t).forEach((i) => {
|
|
3497
|
-
|
|
3504
|
+
vt(i) ? e.push(i) : i.props && i.props.children && wt(i.props.children).forEach((s) => e.push(s));
|
|
3498
3505
|
}), e;
|
|
3499
3506
|
}
|
|
3500
|
-
function
|
|
3507
|
+
function Ji(t) {
|
|
3501
3508
|
const e = [], i = {
|
|
3502
3509
|
"container-start": [],
|
|
3503
3510
|
"container-end": [],
|
|
@@ -3505,13 +3512,13 @@ function Qi(t) {
|
|
|
3505
3512
|
"wrapper-end": []
|
|
3506
3513
|
};
|
|
3507
3514
|
return V.Children.toArray(t).forEach((s) => {
|
|
3508
|
-
if (
|
|
3515
|
+
if (vt(s))
|
|
3509
3516
|
e.push(s);
|
|
3510
3517
|
else if (s.props && s.props.slot && i[s.props.slot])
|
|
3511
3518
|
i[s.props.slot].push(s);
|
|
3512
3519
|
else if (s.props && s.props.children) {
|
|
3513
|
-
const
|
|
3514
|
-
|
|
3520
|
+
const n = wt(s.props.children);
|
|
3521
|
+
n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
|
|
3515
3522
|
} else
|
|
3516
3523
|
i["container-end"].push(s);
|
|
3517
3524
|
}), {
|
|
@@ -3519,53 +3526,53 @@ function Qi(t) {
|
|
|
3519
3526
|
slots: i
|
|
3520
3527
|
};
|
|
3521
3528
|
}
|
|
3522
|
-
function
|
|
3529
|
+
function es(t, e, i) {
|
|
3523
3530
|
if (!i) return null;
|
|
3524
|
-
const s = (
|
|
3525
|
-
let m =
|
|
3526
|
-
return
|
|
3527
|
-
},
|
|
3531
|
+
const s = (p) => {
|
|
3532
|
+
let m = p;
|
|
3533
|
+
return p < 0 ? m = e.length + p : m >= e.length && (m = m - e.length), m;
|
|
3534
|
+
}, n = t.isHorizontal() ? {
|
|
3528
3535
|
[t.rtlTranslate ? "right" : "left"]: `${i.offset}px`
|
|
3529
3536
|
} : {
|
|
3530
3537
|
top: `${i.offset}px`
|
|
3531
3538
|
}, {
|
|
3532
|
-
from:
|
|
3539
|
+
from: r,
|
|
3533
3540
|
to: d
|
|
3534
3541
|
} = i, o = t.params.loop ? -e.length : 0, c = t.params.loop ? e.length * 2 : e.length, f = [];
|
|
3535
|
-
for (let
|
|
3536
|
-
|
|
3537
|
-
return f.map((
|
|
3542
|
+
for (let p = o; p < c; p += 1)
|
|
3543
|
+
p >= r && p <= d && f.push(e[s(p)]);
|
|
3544
|
+
return f.map((p, m) => /* @__PURE__ */ V.cloneElement(p, {
|
|
3538
3545
|
swiper: t,
|
|
3539
|
-
style:
|
|
3540
|
-
key:
|
|
3546
|
+
style: n,
|
|
3547
|
+
key: p.props.virtualIndex || p.key || `slide-${m}`
|
|
3541
3548
|
}));
|
|
3542
3549
|
}
|
|
3543
|
-
function
|
|
3550
|
+
function Se(t, e) {
|
|
3544
3551
|
return typeof window > "u" ? R.useEffect(t, e) : R.useLayoutEffect(t, e);
|
|
3545
3552
|
}
|
|
3546
|
-
const it = /* @__PURE__ */ R.createContext(null),
|
|
3553
|
+
const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createContext(null), St = /* @__PURE__ */ R.forwardRef(function(t, e) {
|
|
3547
3554
|
let {
|
|
3548
3555
|
className: i,
|
|
3549
3556
|
tag: s = "div",
|
|
3550
|
-
wrapperTag:
|
|
3551
|
-
children:
|
|
3557
|
+
wrapperTag: n = "div",
|
|
3558
|
+
children: r,
|
|
3552
3559
|
onSwiper: d,
|
|
3553
3560
|
...o
|
|
3554
3561
|
} = t === void 0 ? {} : t, c = false;
|
|
3555
|
-
const [f,
|
|
3562
|
+
const [f, p] = R.useState("swiper"), [m, v] = R.useState(null), [w, a] = R.useState(false), l = R.useRef(false), S = R.useRef(null), g = R.useRef(null), u = R.useRef(null), h = R.useRef(null), E = R.useRef(null), b = R.useRef(null), L = R.useRef(null), I = R.useRef(null), {
|
|
3556
3563
|
params: z,
|
|
3557
3564
|
passedParams: y,
|
|
3558
3565
|
rest: T,
|
|
3559
3566
|
events: P
|
|
3560
|
-
} =
|
|
3567
|
+
} = Ui(o), {
|
|
3561
3568
|
slides: O,
|
|
3562
3569
|
slots: D
|
|
3563
|
-
} =
|
|
3570
|
+
} = Ji(r), $ = () => {
|
|
3564
3571
|
a(!w);
|
|
3565
3572
|
};
|
|
3566
3573
|
Object.assign(z.on, {
|
|
3567
|
-
_containerClasses(G,
|
|
3568
|
-
|
|
3574
|
+
_containerClasses(G, N) {
|
|
3575
|
+
p(N);
|
|
3569
3576
|
}
|
|
3570
3577
|
});
|
|
3571
3578
|
const _ = () => {
|
|
@@ -3575,13 +3582,13 @@ const it = /* @__PURE__ */ R.createContext(null), es = /* @__PURE__ */ R.createC
|
|
|
3575
3582
|
};
|
|
3576
3583
|
if (delete G.wrapperClass, g.current = new qe(G), g.current.virtual && g.current.params.virtual.enabled) {
|
|
3577
3584
|
g.current.virtual.slides = O;
|
|
3578
|
-
const
|
|
3585
|
+
const N = {
|
|
3579
3586
|
cache: false,
|
|
3580
3587
|
slides: O,
|
|
3581
3588
|
renderExternal: v,
|
|
3582
3589
|
renderExternalUpdate: false
|
|
3583
3590
|
};
|
|
3584
|
-
ce(g.current.params.virtual,
|
|
3591
|
+
ce(g.current.params.virtual, N), ce(g.current.originalParams.virtual, N);
|
|
3585
3592
|
}
|
|
3586
3593
|
};
|
|
3587
3594
|
S.current || _(), g.current && g.current.on("_beforeBreakpoint", $);
|
|
@@ -3598,9 +3605,9 @@ const it = /* @__PURE__ */ R.createContext(null), es = /* @__PURE__ */ R.createC
|
|
|
3598
3605
|
g.current && g.current.off("_beforeBreakpoint", $);
|
|
3599
3606
|
}), R.useEffect(() => {
|
|
3600
3607
|
!l.current && g.current && (g.current.emitSlidesClasses(), l.current = true);
|
|
3601
|
-
}),
|
|
3608
|
+
}), Se(() => {
|
|
3602
3609
|
if (e && (e.current = S.current), !!S.current)
|
|
3603
|
-
return g.current.destroyed && _(),
|
|
3610
|
+
return g.current.destroyed && _(), Ki({
|
|
3604
3611
|
el: S.current,
|
|
3605
3612
|
nextEl: E.current,
|
|
3606
3613
|
prevEl: b.current,
|
|
@@ -3610,10 +3617,10 @@ const it = /* @__PURE__ */ R.createContext(null), es = /* @__PURE__ */ R.createC
|
|
|
3610
3617
|
}, z), d && !g.current.destroyed && d(g.current), () => {
|
|
3611
3618
|
g.current && !g.current.destroyed && g.current.destroy(true, false);
|
|
3612
3619
|
};
|
|
3613
|
-
}, []),
|
|
3620
|
+
}, []), Se(() => {
|
|
3614
3621
|
A();
|
|
3615
|
-
const G =
|
|
3616
|
-
return
|
|
3622
|
+
const G = Zi(y, u.current, O, h.current, (N) => N.key);
|
|
3623
|
+
return u.current = y, h.current = O, G.length && g.current && !g.current.destroyed && qi({
|
|
3617
3624
|
swiper: g.current,
|
|
3618
3625
|
slides: O,
|
|
3619
3626
|
passedParams: y,
|
|
@@ -3625,123 +3632,123 @@ const it = /* @__PURE__ */ R.createContext(null), es = /* @__PURE__ */ R.createC
|
|
|
3625
3632
|
}), () => {
|
|
3626
3633
|
Y();
|
|
3627
3634
|
};
|
|
3628
|
-
}),
|
|
3629
|
-
|
|
3635
|
+
}), Se(() => {
|
|
3636
|
+
Qi(g.current);
|
|
3630
3637
|
}, [m]);
|
|
3631
3638
|
function X() {
|
|
3632
|
-
return z.virtual ?
|
|
3639
|
+
return z.virtual ? es(g.current, O, m) : O.map((G, N) => /* @__PURE__ */ V.cloneElement(G, {
|
|
3633
3640
|
swiper: g.current,
|
|
3634
|
-
swiperSlideIndex:
|
|
3641
|
+
swiperSlideIndex: N
|
|
3635
3642
|
}));
|
|
3636
3643
|
}
|
|
3637
|
-
return /* @__PURE__ */ V.createElement(s,
|
|
3644
|
+
return /* @__PURE__ */ V.createElement(s, ze({
|
|
3638
3645
|
ref: S,
|
|
3639
|
-
className:
|
|
3640
|
-
}, T), /* @__PURE__ */ V.createElement(
|
|
3646
|
+
className: gt(`${f}${i ? ` ${i}` : ""}`)
|
|
3647
|
+
}, T), /* @__PURE__ */ V.createElement(ts.Provider, {
|
|
3641
3648
|
value: g.current
|
|
3642
|
-
}, D["container-start"], /* @__PURE__ */ V.createElement(
|
|
3643
|
-
className:
|
|
3644
|
-
}, D["wrapper-start"], X(), D["wrapper-end"]),
|
|
3649
|
+
}, D["container-start"], /* @__PURE__ */ V.createElement(n, {
|
|
3650
|
+
className: ji(z.wrapperClass)
|
|
3651
|
+
}, D["wrapper-start"], X(), D["wrapper-end"]), pt(z) && /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement("div", {
|
|
3645
3652
|
ref: b,
|
|
3646
3653
|
className: "swiper-button-prev"
|
|
3647
3654
|
}), /* @__PURE__ */ V.createElement("div", {
|
|
3648
3655
|
ref: E,
|
|
3649
3656
|
className: "swiper-button-next"
|
|
3650
|
-
})),
|
|
3657
|
+
})), ht(z) && /* @__PURE__ */ V.createElement("div", {
|
|
3651
3658
|
ref: I,
|
|
3652
3659
|
className: "swiper-scrollbar"
|
|
3653
|
-
}),
|
|
3660
|
+
}), mt(z) && /* @__PURE__ */ V.createElement("div", {
|
|
3654
3661
|
ref: L,
|
|
3655
3662
|
className: "swiper-pagination"
|
|
3656
3663
|
}), D["container-end"]));
|
|
3657
3664
|
});
|
|
3658
|
-
|
|
3659
|
-
const
|
|
3665
|
+
St.displayName = "Swiper";
|
|
3666
|
+
const Et = /* @__PURE__ */ R.forwardRef(function(t, e) {
|
|
3660
3667
|
let {
|
|
3661
3668
|
tag: i = "div",
|
|
3662
3669
|
children: s,
|
|
3663
|
-
className:
|
|
3664
|
-
swiper:
|
|
3670
|
+
className: n = "",
|
|
3671
|
+
swiper: r,
|
|
3665
3672
|
zoom: d,
|
|
3666
3673
|
lazy: o,
|
|
3667
3674
|
virtualIndex: c,
|
|
3668
3675
|
swiperSlideIndex: f,
|
|
3669
|
-
...
|
|
3676
|
+
...p
|
|
3670
3677
|
} = t === void 0 ? {} : t;
|
|
3671
3678
|
const m = R.useRef(null), [v, w] = R.useState("swiper-slide"), [a, l] = R.useState(false);
|
|
3672
3679
|
function S(E, b, L) {
|
|
3673
3680
|
b === m.current && w(L);
|
|
3674
3681
|
}
|
|
3675
|
-
|
|
3676
|
-
if (typeof f < "u" && (m.current.swiperSlideIndex = f), e && (e.current = m.current), !(!m.current || !
|
|
3677
|
-
if (
|
|
3682
|
+
Se(() => {
|
|
3683
|
+
if (typeof f < "u" && (m.current.swiperSlideIndex = f), e && (e.current = m.current), !(!m.current || !r)) {
|
|
3684
|
+
if (r.destroyed) {
|
|
3678
3685
|
v !== "swiper-slide" && w("swiper-slide");
|
|
3679
3686
|
return;
|
|
3680
3687
|
}
|
|
3681
|
-
return
|
|
3682
|
-
|
|
3688
|
+
return r.on("_slideClass", S), () => {
|
|
3689
|
+
r && r.off("_slideClass", S);
|
|
3683
3690
|
};
|
|
3684
3691
|
}
|
|
3685
|
-
}),
|
|
3686
|
-
|
|
3687
|
-
}, [
|
|
3692
|
+
}), Se(() => {
|
|
3693
|
+
r && m.current && !r.destroyed && w(r.getSlideClasses(m.current));
|
|
3694
|
+
}, [r]);
|
|
3688
3695
|
const g = {
|
|
3689
3696
|
isActive: v.indexOf("swiper-slide-active") >= 0,
|
|
3690
3697
|
isVisible: v.indexOf("swiper-slide-visible") >= 0,
|
|
3691
3698
|
isPrev: v.indexOf("swiper-slide-prev") >= 0,
|
|
3692
3699
|
isNext: v.indexOf("swiper-slide-next") >= 0
|
|
3693
|
-
},
|
|
3700
|
+
}, u = () => typeof s == "function" ? s(g) : s, h = () => {
|
|
3694
3701
|
l(true);
|
|
3695
3702
|
};
|
|
3696
|
-
return /* @__PURE__ */ V.createElement(i,
|
|
3703
|
+
return /* @__PURE__ */ V.createElement(i, ze({
|
|
3697
3704
|
ref: m,
|
|
3698
|
-
className:
|
|
3705
|
+
className: gt(`${v}${n ? ` ${n}` : ""}`),
|
|
3699
3706
|
"data-swiper-slide-index": c,
|
|
3700
3707
|
onLoad: h
|
|
3701
|
-
},
|
|
3708
|
+
}, p), d && /* @__PURE__ */ V.createElement(it.Provider, {
|
|
3702
3709
|
value: g
|
|
3703
3710
|
}, /* @__PURE__ */ V.createElement("div", {
|
|
3704
3711
|
className: "swiper-zoom-container",
|
|
3705
3712
|
"data-swiper-zoom": typeof d == "number" ? d : void 0
|
|
3706
|
-
},
|
|
3713
|
+
}, u(), o && !a && /* @__PURE__ */ V.createElement("div", {
|
|
3707
3714
|
className: "swiper-lazy-preloader"
|
|
3708
3715
|
}))), !d && /* @__PURE__ */ V.createElement(it.Provider, {
|
|
3709
3716
|
value: g
|
|
3710
|
-
},
|
|
3717
|
+
}, u(), o && !a && /* @__PURE__ */ V.createElement("div", {
|
|
3711
3718
|
className: "swiper-lazy-preloader"
|
|
3712
3719
|
})));
|
|
3713
3720
|
});
|
|
3714
|
-
|
|
3715
|
-
const
|
|
3716
|
-
const e =
|
|
3721
|
+
Et.displayName = "SwiperSlide";
|
|
3722
|
+
const as = (t) => {
|
|
3723
|
+
const e = bt.c(26), {
|
|
3717
3724
|
className: i,
|
|
3718
3725
|
children: s,
|
|
3719
|
-
height:
|
|
3720
|
-
forceKeyboardNavigation:
|
|
3721
|
-
} = t, d =
|
|
3722
|
-
let
|
|
3723
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
3726
|
+
height: n,
|
|
3727
|
+
forceKeyboardNavigation: r
|
|
3728
|
+
} = t, d = r === void 0 ? false : r, o = V.useRef(null), [c, f] = V.useState(false);
|
|
3729
|
+
let p;
|
|
3730
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
|
|
3724
3731
|
var _a, _b;
|
|
3725
3732
|
document.fullscreenElement ? (_a = o.current) == null ? void 0 : _a.swiper.keyboard.enable() : (_b = o.current) == null ? void 0 : _b.swiper.keyboard.disable(), f(!!document.fullscreenElement);
|
|
3726
|
-
}, e[0] =
|
|
3733
|
+
}, e[0] = p) : p = e[0], xt(document, "fullscreenchange", p);
|
|
3727
3734
|
let m;
|
|
3728
|
-
e[1] !== c ? (m = [c], e[1] = c, e[2] = m) : m = e[2], R.useEffect(
|
|
3735
|
+
e[1] !== c ? (m = [c], e[1] = c, e[2] = m) : m = e[2], R.useEffect(ss, m);
|
|
3729
3736
|
let v;
|
|
3730
3737
|
e[3] !== i ? (v = Ke("relative w-full border rounded bg-background mo-slides-theme prose-slides", i), e[3] = i, e[4] = v) : v = e[4];
|
|
3731
|
-
const w = c ? "100%" :
|
|
3738
|
+
const w = c ? "100%" : n || "550px";
|
|
3732
3739
|
let a;
|
|
3733
3740
|
e[5] !== w ? (a = {
|
|
3734
3741
|
height: w
|
|
3735
3742
|
}, e[5] = w, e[6] = a) : a = e[6];
|
|
3736
3743
|
let l, S;
|
|
3737
|
-
e[7] === Symbol.for("react.memo_cache_sentinel") ? (l = [
|
|
3744
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (l = [Dt, $t, Gt, Bt, _t], S = {
|
|
3738
3745
|
maxRatio: 5
|
|
3739
3746
|
}, e[7] = l, e[8] = S) : (l = e[7], S = e[8]);
|
|
3740
3747
|
const g = c || d;
|
|
3741
|
-
let
|
|
3742
|
-
e[9] !== g ? (
|
|
3748
|
+
let u;
|
|
3749
|
+
e[9] !== g ? (u = {
|
|
3743
3750
|
enabled: g
|
|
3744
|
-
}, e[9] = g, e[10] =
|
|
3751
|
+
}, e[9] = g, e[10] = u) : u = e[10];
|
|
3745
3752
|
let h;
|
|
3746
3753
|
e[11] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
3747
3754
|
clickable: true
|
|
@@ -3749,7 +3756,7 @@ const rs = (t) => {
|
|
|
3749
3756
|
let E;
|
|
3750
3757
|
if (e[12] !== s || e[13] !== c) {
|
|
3751
3758
|
let y;
|
|
3752
|
-
e[15] !== c ? (y = (T, P) => T == null ? null : /* @__PURE__ */
|
|
3759
|
+
e[15] !== c ? (y = (T, P) => T == null ? null : /* @__PURE__ */ ge.jsx(Et, { children: /* @__PURE__ */ ge.jsx("div", { onKeyDown: rs, className: Ke("h-full w-full flex box-border overflow-y-auto overflow-x-hidden", c ? "p-20" : "p-6"), children: /* @__PURE__ */ ge.jsx("div", { className: "mo-slide-content", children: T }) }) }, P), e[15] = c, e[16] = y) : y = e[16], E = V.Children.map(s, y), e[12] = s, e[13] = c, e[14] = E;
|
|
3753
3760
|
} else
|
|
3754
3761
|
E = e[14];
|
|
3755
3762
|
let b;
|
|
@@ -3761,22 +3768,22 @@ const rs = (t) => {
|
|
|
3761
3768
|
}, e[17] = b) : b = e[17];
|
|
3762
3769
|
const L = c ? "Exit Fullscreen" : "Fullscreen";
|
|
3763
3770
|
let I;
|
|
3764
|
-
e[18] !== L ? (I = /* @__PURE__ */
|
|
3771
|
+
e[18] !== L ? (I = /* @__PURE__ */ ge.jsx(yt, { variant: "link", size: "sm", "data-testid": "marimo-plugin-slides-fullscreen", onClick: b, className: "absolute bottom-0 right-0 z-10 mx-1 mb-0", children: L }), e[18] = L, e[19] = I) : I = e[19];
|
|
3765
3772
|
let z;
|
|
3766
|
-
return e[20] !==
|
|
3773
|
+
return e[20] !== u || e[21] !== E || e[22] !== I || e[23] !== v || e[24] !== a ? (z = /* @__PURE__ */ ge.jsxs(St, { ref: o, className: v, spaceBetween: 50, style: a, slidesPerView: 1, modules: l, zoom: S, simulateTouch: false, keyboard: u, navigation: true, pagination: h, virtual: true, speed: 1, children: [
|
|
3767
3774
|
E,
|
|
3768
3775
|
I
|
|
3769
|
-
] }), e[20] =
|
|
3776
|
+
] }), e[20] = u, e[21] = E, e[22] = I, e[23] = v, e[24] = a, e[25] = z) : z = e[25], z;
|
|
3770
3777
|
};
|
|
3771
|
-
function
|
|
3778
|
+
function is() {
|
|
3772
3779
|
window.dispatchEvent(new Event("resize"));
|
|
3773
3780
|
}
|
|
3774
|
-
function
|
|
3775
|
-
requestAnimationFrame(
|
|
3781
|
+
function ss() {
|
|
3782
|
+
requestAnimationFrame(is);
|
|
3776
3783
|
}
|
|
3777
|
-
function
|
|
3784
|
+
function rs(t) {
|
|
3778
3785
|
t.target instanceof HTMLElement && t.target.tagName.toLocaleLowerCase().startsWith("marimo-") && t.stopPropagation();
|
|
3779
3786
|
}
|
|
3780
3787
|
export {
|
|
3781
|
-
|
|
3788
|
+
as as default
|
|
3782
3789
|
};
|