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