@streamlayer/react 1.23.1 → 1.24.0
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/lib/app/masters.d.ts +0 -1
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +33 -53
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/cjs/index-ByUNFvMk.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -4
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -1
- package/lib/cjs/index14.js +4 -1
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +2 -2
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index4.js +3 -3
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +7 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +5 -10
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +4 -9
- package/lib/cjs/sl-types.js +1 -15
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/theme.js +1 -17
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +15 -15
- package/lib/cjs/utils.js +8 -8
- package/lib/classic/app/masters.d.ts +0 -1
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +33 -53
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +3 -3
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -1
- package/lib/classic/cjs/index7.js +7 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +4 -9
- package/lib/classic/cjs/sl-types.js +1 -15
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
- package/lib/classic/cjs/utils.js +8 -8
- package/lib/classic/es/Question.js +216 -220
- package/lib/classic/es/advertisement.js +14665 -15122
- package/lib/classic/es/analytics.js +9 -9
- package/lib/classic/es/auth.js +1 -1
- package/lib/classic/es/bet-pack.js +637 -650
- package/lib/classic/es/feature.js +29 -33
- package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
- package/lib/classic/es/index-ByUNFvMk.js +3775 -0
- package/lib/classic/es/index.js +13 -16
- package/lib/classic/es/index10.js +2587 -82
- package/lib/classic/es/index11.js +306 -2344
- package/lib/classic/es/index12.js +103 -101
- package/lib/classic/es/index13.js +449 -464
- package/lib/classic/es/index2.js +1244 -1268
- package/lib/classic/es/index3.js +10 -10
- package/lib/classic/es/index4.js +4 -283
- package/lib/classic/es/index5.js +4 -5
- package/lib/classic/es/index6.js +285 -5
- package/lib/classic/es/index7.js +179 -5
- package/lib/classic/es/index8.js +5 -9
- package/lib/classic/es/index9.js +7 -315
- package/lib/classic/es/insight.js +39 -41
- package/lib/classic/es/notification.js +3 -3
- package/lib/classic/es/notification2.js +513 -528
- package/lib/classic/es/pause-ad.js +116 -116
- package/lib/classic/es/points.js +33 -34
- package/lib/classic/es/polymarket.js +1049 -1102
- package/lib/classic/es/sl-types.js +115 -217
- package/lib/classic/es/useStreamLayerApp.js +1 -1
- package/lib/classic/es/useStreamLayerApp2.js +6485 -6405
- package/lib/classic/es/utils.js +6 -6
- package/lib/classic/source.css +110 -0
- package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +34 -42
- package/lib/dist/es/index-ByUNFvMk.js +3775 -0
- package/lib/dist/es/index.js +7 -11
- package/lib/dist/es/masters.js +13506 -12760
- package/lib/dist/index.d.ts +5 -5
- package/lib/dist/source.css +64 -0
- package/lib/es/Question.js +99 -101
- package/lib/es/advertisement.js +14665 -15122
- package/lib/es/analytics.js +29 -29
- package/lib/es/auth.js +1 -1
- package/lib/es/bet-pack.js +12 -11
- package/lib/es/feature.js +29 -33
- package/lib/es/hooks-n9ax4LRT.js +97 -0
- package/lib/es/index-ByUNFvMk.js +3775 -0
- package/lib/es/index.js +13 -16
- package/lib/es/index10.js +7 -263
- package/lib/es/index11.js +172 -822
- package/lib/es/index12.js +2587 -178
- package/lib/es/index13.js +248 -302
- package/lib/es/index14.js +815 -82
- package/lib/es/index15.js +306 -2344
- package/lib/es/index16.js +451 -454
- package/lib/es/index2.js +737 -757
- package/lib/es/index4.js +626 -639
- package/lib/es/index5.js +10 -10
- package/lib/es/index6.js +5 -285
- package/lib/es/index7.js +7 -5
- package/lib/es/index8.js +283 -5
- package/lib/es/index9.js +179 -8
- package/lib/es/insight.js +39 -41
- package/lib/es/masters.js +4 -5
- package/lib/es/masters2.js +408 -441
- package/lib/es/notification.js +469 -484
- package/lib/es/pause-ad.js +116 -116
- package/lib/es/points.js +42 -43
- package/lib/es/polymarket.js +1049 -1102
- package/lib/es/sl-types.js +114 -235
- package/lib/es/storage.js +22 -22
- package/lib/es/theme.js +3 -44
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/es/useStreamLayerApp2.js +6485 -6405
- package/lib/es/utils.js +6 -6
- package/lib/source.css +120 -0
- package/lib/style.css +1 -1
- package/package.json +15 -15
- package/lib/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/cjs/index-eShKGO10.js +0 -5
- package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/classic/cjs/index-eShKGO10.js +0 -5
- package/lib/classic/es/hooks-WfHlJH12.js +0 -98
- package/lib/classic/es/index-eShKGO10.js +0 -3757
- package/lib/dist/cjs/index-eShKGO10.js +0 -5
- package/lib/dist/es/index-eShKGO10.js +0 -3757
- package/lib/dist/style.css +0 -1
- package/lib/es/hooks-WfHlJH12.js +0 -98
- package/lib/es/index-eShKGO10.js +0 -3757
package/lib/es/index4.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
2
|
import { s as _, u as Se, c as Ee } from "./sl-types.js";
|
|
3
|
-
import $, { forwardRef as Ae,
|
|
4
|
-
import
|
|
5
|
-
import { B as te } from "./
|
|
6
|
-
import { d as
|
|
7
|
-
import {
|
|
8
|
-
import { e as
|
|
3
|
+
import $, { forwardRef as Ae, useRef as D, useState as W, useEffect as X, useLayoutEffect as mt, createContext as je, useMemo as He, useCallback as Re, memo as ht } from "react";
|
|
4
|
+
import gt from "lodash.throttle";
|
|
5
|
+
import { B as te } from "./index8.js";
|
|
6
|
+
import { d as vt } from "./index9.js";
|
|
7
|
+
import { Q as wt } from "./index14.js";
|
|
8
|
+
import { e as yt, f as bt, S as qe } from "./useStreamLayerApp2.js";
|
|
9
9
|
import { c as St } from "./feature.js";
|
|
10
10
|
function _e(t) {
|
|
11
11
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
@@ -138,10 +138,10 @@ function N() {
|
|
|
138
138
|
const t = typeof window < "u" ? window : {};
|
|
139
139
|
return Oe(t, Et), t;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Tt(t) {
|
|
142
142
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function xt(t) {
|
|
145
145
|
const e = t;
|
|
146
146
|
Object.keys(e).forEach((s) => {
|
|
147
147
|
try {
|
|
@@ -154,7 +154,7 @@ function Tt(t) {
|
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Te(t, e) {
|
|
158
158
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
159
159
|
}
|
|
160
160
|
function le() {
|
|
@@ -205,23 +205,23 @@ function Ye(t) {
|
|
|
205
205
|
let l = null, a;
|
|
206
206
|
const o = e.params.speed;
|
|
207
207
|
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
208
|
-
const c = s > i ? "next" : "prev", d = (
|
|
208
|
+
const c = s > i ? "next" : "prev", d = (h, g) => c === "next" && h >= g || c === "prev" && h <= g, p = () => {
|
|
209
209
|
a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
|
|
210
|
-
const
|
|
211
|
-
let
|
|
212
|
-
if (d(
|
|
213
|
-
[r]:
|
|
214
|
-
}), d(
|
|
210
|
+
const h = Math.max(Math.min((a - l) / o, 1), 0), g = 0.5 - Math.cos(h * Math.PI) / 2;
|
|
211
|
+
let m = i + g * (s - i);
|
|
212
|
+
if (d(m, s) && (m = s), e.wrapperEl.scrollTo({
|
|
213
|
+
[r]: m
|
|
214
|
+
}), d(m, s)) {
|
|
215
215
|
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
216
216
|
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
217
|
-
[r]:
|
|
217
|
+
[r]: m
|
|
218
218
|
});
|
|
219
219
|
}), n.cancelAnimationFrame(e.cssModeFrameID);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
e.cssModeFrameID = n.requestAnimationFrame(
|
|
222
|
+
e.cssModeFrameID = n.requestAnimationFrame(p);
|
|
223
223
|
};
|
|
224
|
-
|
|
224
|
+
p();
|
|
225
225
|
}
|
|
226
226
|
function H(t, e) {
|
|
227
227
|
e === void 0 && (e = "");
|
|
@@ -252,7 +252,7 @@ function oe(t) {
|
|
|
252
252
|
function de(t, e) {
|
|
253
253
|
e === void 0 && (e = []);
|
|
254
254
|
const s = document.createElement(t);
|
|
255
|
-
return s.classList.add(...Array.isArray(e) ? e :
|
|
255
|
+
return s.classList.add(...Array.isArray(e) ? e : Tt(e)), s;
|
|
256
256
|
}
|
|
257
257
|
function Lt(t, e) {
|
|
258
258
|
const s = [];
|
|
@@ -288,14 +288,14 @@ function Xe(t, e) {
|
|
|
288
288
|
e ? r.matches(e) && s.push(r) : s.push(r), r = r.parentElement;
|
|
289
289
|
return s;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function xe(t, e, s) {
|
|
292
292
|
const r = N();
|
|
293
293
|
return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
294
294
|
}
|
|
295
295
|
function R(t) {
|
|
296
296
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
297
297
|
}
|
|
298
|
-
let
|
|
298
|
+
let me;
|
|
299
299
|
function Ot() {
|
|
300
300
|
const t = N(), e = K();
|
|
301
301
|
return {
|
|
@@ -304,7 +304,7 @@ function Ot() {
|
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
function Ue() {
|
|
307
|
-
return
|
|
307
|
+
return me || (me = Ot()), me;
|
|
308
308
|
}
|
|
309
309
|
let he;
|
|
310
310
|
function zt(t) {
|
|
@@ -316,15 +316,15 @@ function zt(t) {
|
|
|
316
316
|
android: !1
|
|
317
317
|
}, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
318
318
|
let d = i.match(/(iPad).*OS\s([\d_]+)/);
|
|
319
|
-
const
|
|
320
|
-
let
|
|
321
|
-
const
|
|
322
|
-
return !d &&
|
|
319
|
+
const p = i.match(/(iPod)(.*OS\s([\d_]+))?/), h = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), g = n === "Win32";
|
|
320
|
+
let m = n === "MacIntel";
|
|
321
|
+
const T = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
322
|
+
return !d && m && s.touch && T.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), m = !1), c && !g && (l.os = "android", l.android = !0), (d || h || p) && (l.os = "ios", l.ios = !0), l;
|
|
323
323
|
}
|
|
324
324
|
function Qe(t) {
|
|
325
325
|
return t === void 0 && (t = {}), he || (he = zt(t)), he;
|
|
326
326
|
}
|
|
327
|
-
let
|
|
327
|
+
let ge;
|
|
328
328
|
function _t() {
|
|
329
329
|
const t = N(), e = Qe();
|
|
330
330
|
let s = !1;
|
|
@@ -348,7 +348,7 @@ function _t() {
|
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
350
|
function Ke() {
|
|
351
|
-
return
|
|
351
|
+
return ge || (ge = _t()), ge;
|
|
352
352
|
}
|
|
353
353
|
function $t(t) {
|
|
354
354
|
let {
|
|
@@ -361,21 +361,21 @@ function $t(t) {
|
|
|
361
361
|
const a = () => {
|
|
362
362
|
!e || e.destroyed || !e.initialized || (r("beforeResize"), r("resize"));
|
|
363
363
|
}, o = () => {
|
|
364
|
-
!e || e.destroyed || !e.initialized || (i = new ResizeObserver((
|
|
364
|
+
!e || e.destroyed || !e.initialized || (i = new ResizeObserver((p) => {
|
|
365
365
|
l = n.requestAnimationFrame(() => {
|
|
366
366
|
const {
|
|
367
|
-
width:
|
|
368
|
-
height:
|
|
367
|
+
width: h,
|
|
368
|
+
height: g
|
|
369
369
|
} = e;
|
|
370
|
-
let
|
|
371
|
-
|
|
370
|
+
let m = h, T = g;
|
|
371
|
+
p.forEach((M) => {
|
|
372
372
|
let {
|
|
373
373
|
contentBoxSize: w,
|
|
374
|
-
contentRect:
|
|
375
|
-
target:
|
|
374
|
+
contentRect: u,
|
|
375
|
+
target: f
|
|
376
376
|
} = M;
|
|
377
|
-
|
|
378
|
-
}), (
|
|
377
|
+
f && f !== e.el || (m = u ? u.width : (w[0] || w).inlineSize, T = u ? u.height : (w[0] || w).blockSize);
|
|
378
|
+
}), (m !== h || T !== g) && a();
|
|
379
379
|
});
|
|
380
380
|
}), i.observe(e.el));
|
|
381
381
|
}, c = () => {
|
|
@@ -400,30 +400,30 @@ function Gt(t) {
|
|
|
400
400
|
on: r,
|
|
401
401
|
emit: n
|
|
402
402
|
} = t;
|
|
403
|
-
const i = [], l = N(), a = function(d,
|
|
404
|
-
|
|
405
|
-
const
|
|
403
|
+
const i = [], l = N(), a = function(d, p) {
|
|
404
|
+
p === void 0 && (p = {});
|
|
405
|
+
const h = l.MutationObserver || l.WebkitMutationObserver, g = new h((m) => {
|
|
406
406
|
if (e.__preventObserver__) return;
|
|
407
|
-
if (
|
|
408
|
-
n("observerUpdate",
|
|
407
|
+
if (m.length === 1) {
|
|
408
|
+
n("observerUpdate", m[0]);
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
|
-
const
|
|
412
|
-
n("observerUpdate",
|
|
411
|
+
const T = function() {
|
|
412
|
+
n("observerUpdate", m[0]);
|
|
413
413
|
};
|
|
414
|
-
l.requestAnimationFrame ? l.requestAnimationFrame(
|
|
414
|
+
l.requestAnimationFrame ? l.requestAnimationFrame(T) : l.setTimeout(T, 0);
|
|
415
415
|
});
|
|
416
|
-
|
|
417
|
-
attributes: typeof
|
|
418
|
-
childList: e.isElement || (typeof
|
|
419
|
-
characterData: typeof
|
|
420
|
-
}), i.push(
|
|
416
|
+
g.observe(d, {
|
|
417
|
+
attributes: typeof p.attributes > "u" ? !0 : p.attributes,
|
|
418
|
+
childList: e.isElement || (typeof p.childList > "u" ? !0 : p).childList,
|
|
419
|
+
characterData: typeof p.characterData > "u" ? !0 : p.characterData
|
|
420
|
+
}), i.push(g);
|
|
421
421
|
}, o = () => {
|
|
422
422
|
if (e.params.observer) {
|
|
423
423
|
if (e.params.observeParents) {
|
|
424
424
|
const d = Xe(e.hostEl);
|
|
425
|
-
for (let
|
|
426
|
-
a(d[
|
|
425
|
+
for (let p = 0; p < d.length; p += 1)
|
|
426
|
+
a(d[p]);
|
|
427
427
|
}
|
|
428
428
|
a(e.hostEl, {
|
|
429
429
|
childList: e.params.observeSlideChildren
|
|
@@ -509,8 +509,8 @@ function Bt() {
|
|
|
509
509
|
}
|
|
510
510
|
function Dt() {
|
|
511
511
|
const t = this;
|
|
512
|
-
function e(
|
|
513
|
-
return parseFloat(
|
|
512
|
+
function e(S, E) {
|
|
513
|
+
return parseFloat(S.getPropertyValue(t.getDirectionLabel(E)) || 0);
|
|
514
514
|
}
|
|
515
515
|
const s = t.params, {
|
|
516
516
|
wrapperEl: r,
|
|
@@ -518,111 +518,111 @@ function Dt() {
|
|
|
518
518
|
size: i,
|
|
519
519
|
rtlTranslate: l,
|
|
520
520
|
wrongRTL: a
|
|
521
|
-
} = t, o = t.virtual && s.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = H(n, `.${t.params.slideClass}, swiper-slide`),
|
|
522
|
-
let
|
|
523
|
-
const
|
|
524
|
-
let
|
|
525
|
-
typeof
|
|
521
|
+
} = t, o = t.virtual && s.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = H(n, `.${t.params.slideClass}, swiper-slide`), p = o ? t.virtual.slides.length : d.length;
|
|
522
|
+
let h = [];
|
|
523
|
+
const g = [], m = [];
|
|
524
|
+
let T = s.slidesOffsetBefore;
|
|
525
|
+
typeof T == "function" && (T = s.slidesOffsetBefore.call(t));
|
|
526
526
|
let M = s.slidesOffsetAfter;
|
|
527
527
|
typeof M == "function" && (M = s.slidesOffsetAfter.call(t));
|
|
528
|
-
const w = t.snapGrid.length,
|
|
529
|
-
let
|
|
528
|
+
const w = t.snapGrid.length, u = t.slidesGrid.length;
|
|
529
|
+
let f = s.spaceBetween, v = -T, y = 0, C = 0;
|
|
530
530
|
if (typeof i > "u")
|
|
531
531
|
return;
|
|
532
|
-
typeof
|
|
533
|
-
l ?
|
|
532
|
+
typeof f == "string" && f.indexOf("%") >= 0 ? f = parseFloat(f.replace("%", "")) / 100 * i : typeof f == "string" && (f = parseFloat(f)), t.virtualSize = -f, d.forEach((S) => {
|
|
533
|
+
l ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
|
|
534
534
|
}), s.centeredSlides && s.cssMode && (re(r, "--swiper-centered-offset-before", ""), re(r, "--swiper-centered-offset-after", ""));
|
|
535
535
|
const A = s.grid && s.grid.rows > 1 && t.grid;
|
|
536
536
|
A ? t.grid.initSlides(d) : t.grid && t.grid.unsetSlides();
|
|
537
537
|
let I;
|
|
538
|
-
const
|
|
539
|
-
for (let
|
|
538
|
+
const b = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((S) => typeof s.breakpoints[S].slidesPerView < "u").length > 0;
|
|
539
|
+
for (let S = 0; S < p; S += 1) {
|
|
540
540
|
I = 0;
|
|
541
|
-
let
|
|
542
|
-
if (d[
|
|
541
|
+
let E;
|
|
542
|
+
if (d[S] && (E = d[S]), A && t.grid.updateSlide(S, E, d), !(d[S] && Y(E, "display") === "none")) {
|
|
543
543
|
if (s.slidesPerView === "auto") {
|
|
544
|
-
|
|
545
|
-
const k = getComputedStyle(
|
|
546
|
-
if (L && (
|
|
547
|
-
I = t.isHorizontal() ?
|
|
544
|
+
b && (d[S].style[t.getDirectionLabel("width")] = "");
|
|
545
|
+
const k = getComputedStyle(E), L = E.style.transform, O = E.style.webkitTransform;
|
|
546
|
+
if (L && (E.style.transform = "none"), O && (E.style.webkitTransform = "none"), s.roundLengths)
|
|
547
|
+
I = t.isHorizontal() ? xe(E, "width") : xe(E, "height");
|
|
548
548
|
else {
|
|
549
|
-
const
|
|
549
|
+
const x = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
|
|
550
550
|
if (j && j === "border-box")
|
|
551
|
-
I =
|
|
551
|
+
I = x + V + G;
|
|
552
552
|
else {
|
|
553
553
|
const {
|
|
554
|
-
clientWidth:
|
|
555
|
-
offsetWidth:
|
|
556
|
-
} =
|
|
557
|
-
I =
|
|
554
|
+
clientWidth: pt,
|
|
555
|
+
offsetWidth: ft
|
|
556
|
+
} = E;
|
|
557
|
+
I = x + z + U + V + G + (ft - pt);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
L && (
|
|
560
|
+
L && (E.style.transform = L), O && (E.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
|
|
561
561
|
} else
|
|
562
|
-
I = (i - (s.slidesPerView - 1) *
|
|
563
|
-
d[
|
|
562
|
+
I = (i - (s.slidesPerView - 1) * f) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[S] && (d[S].style[t.getDirectionLabel("width")] = `${I}px`);
|
|
563
|
+
d[S] && (d[S].swiperSlideSize = I), m.push(I), s.centeredSlides ? (v = v + I / 2 + y / 2 + f, y === 0 && S !== 0 && (v = v - i / 2 - f), S === 0 && (v = v - i / 2 - f), Math.abs(v) < 1 / 1e3 && (v = 0), s.roundLengths && (v = Math.floor(v)), C % s.slidesPerGroup === 0 && h.push(v), g.push(v)) : (s.roundLengths && (v = Math.floor(v)), (C - Math.min(t.params.slidesPerGroupSkip, C)) % t.params.slidesPerGroup === 0 && h.push(v), g.push(v), v = v + I + f), t.virtualSize += I + f, y = I, C += 1;
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
if (t.virtualSize = Math.max(t.virtualSize, i) + M, l && a && (s.effect === "slide" || s.effect === "coverflow") && (r.style.width = `${t.virtualSize +
|
|
567
|
-
const
|
|
568
|
-
for (let
|
|
569
|
-
let k =
|
|
570
|
-
s.roundLengths && (k = Math.floor(k)),
|
|
566
|
+
if (t.virtualSize = Math.max(t.virtualSize, i) + M, l && a && (s.effect === "slide" || s.effect === "coverflow") && (r.style.width = `${t.virtualSize + f}px`), s.setWrapperSize && (r.style[t.getDirectionLabel("width")] = `${t.virtualSize + f}px`), A && t.grid.updateWrapperSize(I, h), !s.centeredSlides) {
|
|
567
|
+
const S = [];
|
|
568
|
+
for (let E = 0; E < h.length; E += 1) {
|
|
569
|
+
let k = h[E];
|
|
570
|
+
s.roundLengths && (k = Math.floor(k)), h[E] <= t.virtualSize - i && S.push(k);
|
|
571
571
|
}
|
|
572
|
-
|
|
572
|
+
h = S, Math.floor(t.virtualSize - i) - Math.floor(h[h.length - 1]) > 1 && h.push(t.virtualSize - i);
|
|
573
573
|
}
|
|
574
574
|
if (o && s.loop) {
|
|
575
|
-
const
|
|
575
|
+
const S = m[0] + f;
|
|
576
576
|
if (s.slidesPerGroup > 1) {
|
|
577
|
-
const
|
|
578
|
-
for (let L = 0; L <
|
|
579
|
-
|
|
577
|
+
const E = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), k = S * s.slidesPerGroup;
|
|
578
|
+
for (let L = 0; L < E; L += 1)
|
|
579
|
+
h.push(h[h.length - 1] + k);
|
|
580
580
|
}
|
|
581
|
-
for (let
|
|
582
|
-
s.slidesPerGroup === 1 &&
|
|
581
|
+
for (let E = 0; E < t.virtual.slidesBefore + t.virtual.slidesAfter; E += 1)
|
|
582
|
+
s.slidesPerGroup === 1 && h.push(h[h.length - 1] + S), g.push(g[g.length - 1] + S), t.virtualSize += S;
|
|
583
583
|
}
|
|
584
|
-
if (
|
|
585
|
-
const
|
|
586
|
-
d.filter((
|
|
587
|
-
|
|
584
|
+
if (h.length === 0 && (h = [0]), f !== 0) {
|
|
585
|
+
const S = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
586
|
+
d.filter((E, k) => !s.cssMode || s.loop ? !0 : k !== d.length - 1).forEach((E) => {
|
|
587
|
+
E.style[S] = `${f}px`;
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
590
|
if (s.centeredSlides && s.centeredSlidesBounds) {
|
|
591
|
-
let
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}),
|
|
595
|
-
const
|
|
596
|
-
|
|
591
|
+
let S = 0;
|
|
592
|
+
m.forEach((k) => {
|
|
593
|
+
S += k + (f || 0);
|
|
594
|
+
}), S -= f;
|
|
595
|
+
const E = S > i ? S - i : 0;
|
|
596
|
+
h = h.map((k) => k <= 0 ? -T : k > E ? E + M : k);
|
|
597
597
|
}
|
|
598
598
|
if (s.centerInsufficientSlides) {
|
|
599
|
-
let
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}),
|
|
603
|
-
const
|
|
604
|
-
if (
|
|
605
|
-
const k = (i -
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}),
|
|
609
|
-
|
|
599
|
+
let S = 0;
|
|
600
|
+
m.forEach((k) => {
|
|
601
|
+
S += k + (f || 0);
|
|
602
|
+
}), S -= f;
|
|
603
|
+
const E = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
|
|
604
|
+
if (S + E < i) {
|
|
605
|
+
const k = (i - S - E) / 2;
|
|
606
|
+
h.forEach((L, O) => {
|
|
607
|
+
h[O] = L - k;
|
|
608
|
+
}), g.forEach((L, O) => {
|
|
609
|
+
g[O] = L + k;
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
if (Object.assign(t, {
|
|
614
614
|
slides: d,
|
|
615
|
-
snapGrid:
|
|
616
|
-
slidesGrid:
|
|
617
|
-
slidesSizesGrid:
|
|
615
|
+
snapGrid: h,
|
|
616
|
+
slidesGrid: g,
|
|
617
|
+
slidesSizesGrid: m
|
|
618
618
|
}), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
|
|
619
|
-
re(r, "--swiper-centered-offset-before", `${-
|
|
620
|
-
const
|
|
621
|
-
t.snapGrid = t.snapGrid.map((k) => k +
|
|
619
|
+
re(r, "--swiper-centered-offset-before", `${-h[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - m[m.length - 1] / 2}px`);
|
|
620
|
+
const S = -t.snapGrid[0], E = -t.slidesGrid[0];
|
|
621
|
+
t.snapGrid = t.snapGrid.map((k) => k + S), t.slidesGrid = t.slidesGrid.map((k) => k + E);
|
|
622
622
|
}
|
|
623
|
-
if (
|
|
624
|
-
const
|
|
625
|
-
|
|
623
|
+
if (p !== c && t.emit("slidesLengthChange"), h.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), g.length !== u && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
|
|
624
|
+
const S = `${s.containerModifierClass}backface-hidden`, E = t.el.classList.contains(S);
|
|
625
|
+
p <= s.maxBackfaceHiddenSlides ? E || t.el.classList.add(S) : E && t.el.classList.remove(S);
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
function Ft(t) {
|
|
@@ -675,8 +675,8 @@ function jt(t) {
|
|
|
675
675
|
const c = r[o];
|
|
676
676
|
let d = c.swiperSlideOffset;
|
|
677
677
|
s.cssMode && s.centeredSlides && (d -= r[0].swiperSlideOffset);
|
|
678
|
-
const
|
|
679
|
-
M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), $e(c, M, s.slideVisibleClass), $e(c,
|
|
678
|
+
const p = (l + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), h = (l - i[0] + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), g = -(l - d), m = g + e.slidesSizesGrid[o], T = g >= 0 && g <= e.size - e.slidesSizesGrid[o], M = g >= 0 && g < e.size - 1 || m > 1 && m <= e.size || g <= 0 && m >= e.size;
|
|
679
|
+
M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), $e(c, M, s.slideVisibleClass), $e(c, T, s.slideFullyVisibleClass), c.progress = n ? -p : p, c.originalProgress = n ? -h : h;
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
function Ht(t) {
|
|
@@ -697,12 +697,12 @@ function Ht(t) {
|
|
|
697
697
|
n = 0, i = !0, l = !0;
|
|
698
698
|
else {
|
|
699
699
|
n = (t - e.minTranslate()) / r;
|
|
700
|
-
const d = Math.abs(t - e.minTranslate()) < 1,
|
|
701
|
-
i = d || n <= 0, l =
|
|
700
|
+
const d = Math.abs(t - e.minTranslate()) < 1, p = Math.abs(t - e.maxTranslate()) < 1;
|
|
701
|
+
i = d || n <= 0, l = p || n >= 1, d && (n = 0), p && (n = 1);
|
|
702
702
|
}
|
|
703
703
|
if (s.loop) {
|
|
704
|
-
const d = e.getSlideIndexByData(0),
|
|
705
|
-
|
|
704
|
+
const d = e.getSlideIndexByData(0), p = e.getSlideIndexByData(e.slides.length - 1), h = e.slidesGrid[d], g = e.slidesGrid[p], m = e.slidesGrid[e.slidesGrid.length - 1], T = Math.abs(t);
|
|
705
|
+
T >= h ? a = (T - h) / m : a = (T + m - g) / m, a > 1 && (a -= 1);
|
|
706
706
|
}
|
|
707
707
|
Object.assign(e, {
|
|
708
708
|
progress: n,
|
|
@@ -711,7 +711,7 @@ function Ht(t) {
|
|
|
711
711
|
isEnd: l
|
|
712
712
|
}), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && e.updateSlidesProgress(t), i && !o && e.emit("reachBeginning toEdge"), l && !c && e.emit("reachEnd toEdge"), (o && !i || c && !l) && e.emit("fromEdge"), e.emit("progress", n);
|
|
713
713
|
}
|
|
714
|
-
const
|
|
714
|
+
const ve = (t, e, s) => {
|
|
715
715
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
716
716
|
};
|
|
717
717
|
function Rt() {
|
|
@@ -720,18 +720,18 @@ function Rt() {
|
|
|
720
720
|
params: s,
|
|
721
721
|
slidesEl: r,
|
|
722
722
|
activeIndex: n
|
|
723
|
-
} = t, i = t.virtual && s.virtual.enabled, l = t.grid && s.grid && s.grid.rows > 1, a = (
|
|
723
|
+
} = t, i = t.virtual && s.virtual.enabled, l = t.grid && s.grid && s.grid.rows > 1, a = (p) => H(r, `.${s.slideClass}${p}, swiper-slide${p}`)[0];
|
|
724
724
|
let o, c, d;
|
|
725
725
|
if (i)
|
|
726
726
|
if (s.loop) {
|
|
727
|
-
let
|
|
728
|
-
|
|
727
|
+
let p = n - t.virtual.slidesBefore;
|
|
728
|
+
p < 0 && (p = t.virtual.slides.length + p), p >= t.virtual.slides.length && (p -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${p}"]`);
|
|
729
729
|
} else
|
|
730
730
|
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
731
731
|
else
|
|
732
|
-
l ? (o = e.find((
|
|
733
|
-
o && (l || (d = At(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = Lt(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((
|
|
734
|
-
|
|
732
|
+
l ? (o = e.find((p) => p.column === n), d = e.find((p) => p.column === n + 1), c = e.find((p) => p.column === n - 1)) : o = e[n];
|
|
733
|
+
o && (l || (d = At(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = Lt(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((p) => {
|
|
734
|
+
ve(p, p === o, s.slideActiveClass), ve(p, p === d, s.slideNextClass), ve(p, p === c, s.slidePrevClass);
|
|
735
735
|
}), t.emitSlidesClasses();
|
|
736
736
|
}
|
|
737
737
|
const ne = (t, e) => {
|
|
@@ -792,15 +792,15 @@ function Wt(t) {
|
|
|
792
792
|
snapIndex: a
|
|
793
793
|
} = e;
|
|
794
794
|
let o = t, c;
|
|
795
|
-
const d = (
|
|
796
|
-
let
|
|
797
|
-
return
|
|
795
|
+
const d = (g) => {
|
|
796
|
+
let m = g - e.virtual.slidesBefore;
|
|
797
|
+
return m < 0 && (m = e.virtual.slides.length + m), m >= e.virtual.slides.length && (m -= e.virtual.slides.length), m;
|
|
798
798
|
};
|
|
799
799
|
if (typeof o > "u" && (o = qt(e)), r.indexOf(s) >= 0)
|
|
800
800
|
c = r.indexOf(s);
|
|
801
801
|
else {
|
|
802
|
-
const
|
|
803
|
-
c =
|
|
802
|
+
const g = Math.min(n.slidesPerGroupSkip, o);
|
|
803
|
+
c = g + Math.floor((o - g) / n.slidesPerGroup);
|
|
804
804
|
}
|
|
805
805
|
if (c >= r.length && (c = r.length - 1), o === i && !e.params.loop) {
|
|
806
806
|
c !== a && (e.snapIndex = c, e.emit("snapIndexChange"));
|
|
@@ -810,27 +810,27 @@ function Wt(t) {
|
|
|
810
810
|
e.realIndex = d(o);
|
|
811
811
|
return;
|
|
812
812
|
}
|
|
813
|
-
const
|
|
814
|
-
let
|
|
813
|
+
const p = e.grid && n.grid && n.grid.rows > 1;
|
|
814
|
+
let h;
|
|
815
815
|
if (e.virtual && n.virtual.enabled && n.loop)
|
|
816
|
-
|
|
817
|
-
else if (
|
|
818
|
-
const
|
|
819
|
-
let
|
|
820
|
-
Number.isNaN(
|
|
816
|
+
h = d(o);
|
|
817
|
+
else if (p) {
|
|
818
|
+
const g = e.slides.find((T) => T.column === o);
|
|
819
|
+
let m = parseInt(g.getAttribute("data-swiper-slide-index"), 10);
|
|
820
|
+
Number.isNaN(m) && (m = Math.max(e.slides.indexOf(g), 0)), h = Math.floor(m / n.grid.rows);
|
|
821
821
|
} else if (e.slides[o]) {
|
|
822
|
-
const
|
|
823
|
-
|
|
822
|
+
const g = e.slides[o].getAttribute("data-swiper-slide-index");
|
|
823
|
+
g ? h = parseInt(g, 10) : h = o;
|
|
824
824
|
} else
|
|
825
|
-
|
|
825
|
+
h = o;
|
|
826
826
|
Object.assign(e, {
|
|
827
827
|
previousSnapIndex: a,
|
|
828
828
|
snapIndex: c,
|
|
829
829
|
previousRealIndex: l,
|
|
830
|
-
realIndex:
|
|
830
|
+
realIndex: h,
|
|
831
831
|
previousIndex: i,
|
|
832
832
|
activeIndex: o
|
|
833
|
-
}), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !==
|
|
833
|
+
}), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== h && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
834
834
|
}
|
|
835
835
|
function Yt(t, e) {
|
|
836
836
|
const s = this, r = s.params;
|
|
@@ -891,8 +891,8 @@ function Qt(t, e) {
|
|
|
891
891
|
const c = 0;
|
|
892
892
|
s.isHorizontal() ? a = r ? -t : t : o = t, n.roundLengths && (a = Math.floor(a), o = Math.floor(o)), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? a : o, n.cssMode ? i[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -a : -o : n.virtualTranslate || (s.isHorizontal() ? a -= s.cssOverflowAdjustment() : o -= s.cssOverflowAdjustment(), i.style.transform = `translate3d(${a}px, ${o}px, ${c}px)`);
|
|
893
893
|
let d;
|
|
894
|
-
const
|
|
895
|
-
|
|
894
|
+
const p = s.maxTranslate() - s.minTranslate();
|
|
895
|
+
p === 0 ? d = 0 : d = (t - s.minTranslate()) / p, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
|
|
896
896
|
}
|
|
897
897
|
function Kt() {
|
|
898
898
|
return -this.snapGrid[0];
|
|
@@ -911,25 +911,25 @@ function Zt(t, e, s, r, n) {
|
|
|
911
911
|
const o = i.minTranslate(), c = i.maxTranslate();
|
|
912
912
|
let d;
|
|
913
913
|
if (r && t > o ? d = o : r && t < c ? d = c : d = t, i.updateProgress(d), l.cssMode) {
|
|
914
|
-
const
|
|
914
|
+
const p = i.isHorizontal();
|
|
915
915
|
if (e === 0)
|
|
916
|
-
a[
|
|
916
|
+
a[p ? "scrollLeft" : "scrollTop"] = -d;
|
|
917
917
|
else {
|
|
918
918
|
if (!i.support.smoothScroll)
|
|
919
919
|
return Ye({
|
|
920
920
|
swiper: i,
|
|
921
921
|
targetPosition: -d,
|
|
922
|
-
side:
|
|
922
|
+
side: p ? "left" : "top"
|
|
923
923
|
}), !0;
|
|
924
924
|
a.scrollTo({
|
|
925
|
-
[
|
|
925
|
+
[p ? "left" : "top"]: -d,
|
|
926
926
|
behavior: "smooth"
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
929
|
return !0;
|
|
930
930
|
}
|
|
931
|
-
return e === 0 ? (i.setTransition(0), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionEnd"))) : (i.setTransition(e), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionStart")), i.animating || (i.animating = !0, i.onTranslateToWrapperTransitionEnd || (i.onTranslateToWrapperTransitionEnd = function(
|
|
932
|
-
!i || i.destroyed ||
|
|
931
|
+
return e === 0 ? (i.setTransition(0), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionEnd"))) : (i.setTransition(e), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionStart")), i.animating || (i.animating = !0, i.onTranslateToWrapperTransitionEnd || (i.onTranslateToWrapperTransitionEnd = function(p) {
|
|
932
|
+
!i || i.destroyed || p.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
|
|
933
933
|
}), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
|
|
934
934
|
}
|
|
935
935
|
var es = {
|
|
@@ -1002,56 +1002,56 @@ function ns(t, e, s, r, n) {
|
|
|
1002
1002
|
snapGrid: o,
|
|
1003
1003
|
slidesGrid: c,
|
|
1004
1004
|
previousIndex: d,
|
|
1005
|
-
activeIndex:
|
|
1006
|
-
rtlTranslate:
|
|
1007
|
-
wrapperEl:
|
|
1008
|
-
enabled:
|
|
1005
|
+
activeIndex: p,
|
|
1006
|
+
rtlTranslate: h,
|
|
1007
|
+
wrapperEl: g,
|
|
1008
|
+
enabled: m
|
|
1009
1009
|
} = i;
|
|
1010
|
-
if (!
|
|
1010
|
+
if (!m && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
|
|
1011
1011
|
return !1;
|
|
1012
1012
|
typeof e > "u" && (e = i.params.speed);
|
|
1013
|
-
const
|
|
1014
|
-
let M =
|
|
1013
|
+
const T = Math.min(i.params.slidesPerGroupSkip, l);
|
|
1014
|
+
let M = T + Math.floor((l - T) / i.params.slidesPerGroup);
|
|
1015
1015
|
M >= o.length && (M = o.length - 1);
|
|
1016
1016
|
const w = -o[M];
|
|
1017
1017
|
if (a.normalizeSlideIndex)
|
|
1018
1018
|
for (let y = 0; y < c.length; y += 1) {
|
|
1019
|
-
const
|
|
1020
|
-
typeof c[y + 1] < "u" ?
|
|
1019
|
+
const C = -Math.floor(w * 100), A = Math.floor(c[y] * 100), I = Math.floor(c[y + 1] * 100);
|
|
1020
|
+
typeof c[y + 1] < "u" ? C >= A && C < I - (I - A) / 2 ? l = y : C >= A && C < I && (l = y + 1) : C >= A && (l = y);
|
|
1021
1021
|
}
|
|
1022
|
-
if (i.initialized && l !==
|
|
1022
|
+
if (i.initialized && l !== p && (!i.allowSlideNext && (h ? w > i.translate && w > i.minTranslate() : w < i.translate && w < i.minTranslate()) || !i.allowSlidePrev && w > i.translate && w > i.maxTranslate() && (p || 0) !== l))
|
|
1023
1023
|
return !1;
|
|
1024
1024
|
l !== (d || 0) && s && i.emit("beforeSlideChangeStart"), i.updateProgress(w);
|
|
1025
|
-
let
|
|
1026
|
-
l >
|
|
1027
|
-
const
|
|
1028
|
-
if (!(
|
|
1029
|
-
return i.updateActiveIndex(l), a.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), a.effect !== "slide" && i.setTranslate(w),
|
|
1025
|
+
let u;
|
|
1026
|
+
l > p ? u = "next" : l < p ? u = "prev" : u = "reset";
|
|
1027
|
+
const f = i.virtual && i.params.virtual.enabled;
|
|
1028
|
+
if (!(f && n) && (h && -w === i.translate || !h && w === i.translate))
|
|
1029
|
+
return i.updateActiveIndex(l), a.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), a.effect !== "slide" && i.setTranslate(w), u !== "reset" && (i.transitionStart(s, u), i.transitionEnd(s, u)), !1;
|
|
1030
1030
|
if (a.cssMode) {
|
|
1031
|
-
const y = i.isHorizontal(),
|
|
1031
|
+
const y = i.isHorizontal(), C = h ? w : -w;
|
|
1032
1032
|
if (e === 0)
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
})) :
|
|
1033
|
+
f && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), f && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1034
|
+
g[y ? "scrollLeft" : "scrollTop"] = C;
|
|
1035
|
+
})) : g[y ? "scrollLeft" : "scrollTop"] = C, f && requestAnimationFrame(() => {
|
|
1036
1036
|
i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
|
|
1037
1037
|
});
|
|
1038
1038
|
else {
|
|
1039
1039
|
if (!i.support.smoothScroll)
|
|
1040
1040
|
return Ye({
|
|
1041
1041
|
swiper: i,
|
|
1042
|
-
targetPosition:
|
|
1042
|
+
targetPosition: C,
|
|
1043
1043
|
side: y ? "left" : "top"
|
|
1044
1044
|
}), !0;
|
|
1045
|
-
|
|
1046
|
-
[y ? "left" : "top"]:
|
|
1045
|
+
g.scrollTo({
|
|
1046
|
+
[y ? "left" : "top"]: C,
|
|
1047
1047
|
behavior: "smooth"
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
1050
|
return !0;
|
|
1051
1051
|
}
|
|
1052
|
-
const
|
|
1053
|
-
return
|
|
1054
|
-
!i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s,
|
|
1052
|
+
const v = Ke().isSafari;
|
|
1053
|
+
return f && !n && v && i.isElement && i.virtual.update(!1, !1, l), i.setTransition(e), i.setTranslate(w), i.updateActiveIndex(l), i.updateSlidesClasses(), i.emit("beforeTransitionStart", e, r), i.transitionStart(s, u), e === 0 ? i.transitionEnd(s, u) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(y) {
|
|
1054
|
+
!i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, u));
|
|
1055
1055
|
}), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
|
|
1056
1056
|
}
|
|
1057
1057
|
function as(t, e, s, r) {
|
|
@@ -1067,8 +1067,8 @@ function as(t, e, s, r) {
|
|
|
1067
1067
|
else {
|
|
1068
1068
|
let a;
|
|
1069
1069
|
if (i) {
|
|
1070
|
-
const
|
|
1071
|
-
a = n.slides.find((
|
|
1070
|
+
const h = l * n.params.grid.rows;
|
|
1071
|
+
a = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
|
|
1072
1072
|
} else
|
|
1073
1073
|
a = n.getSlideIndexByData(l);
|
|
1074
1074
|
const o = i ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
|
|
@@ -1076,19 +1076,19 @@ function as(t, e, s, r) {
|
|
|
1076
1076
|
} = n.params;
|
|
1077
1077
|
let d = n.params.slidesPerView;
|
|
1078
1078
|
d === "auto" ? d = n.slidesPerViewDynamic() : (d = Math.ceil(parseFloat(n.params.slidesPerView, 10)), c && d % 2 === 0 && (d = d + 1));
|
|
1079
|
-
let
|
|
1080
|
-
if (c && (
|
|
1081
|
-
const
|
|
1079
|
+
let p = o - a < d;
|
|
1080
|
+
if (c && (p = p || a < Math.ceil(d / 2)), r && c && n.params.slidesPerView !== "auto" && !i && (p = !1), p) {
|
|
1081
|
+
const h = c ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
|
|
1082
1082
|
n.loopFix({
|
|
1083
|
-
direction:
|
|
1083
|
+
direction: h,
|
|
1084
1084
|
slideTo: !0,
|
|
1085
|
-
activeSlideIndex:
|
|
1086
|
-
slideRealIndex:
|
|
1085
|
+
activeSlideIndex: h === "next" ? a + 1 : a - o + 1,
|
|
1086
|
+
slideRealIndex: h === "next" ? n.realIndex : void 0
|
|
1087
1087
|
});
|
|
1088
1088
|
}
|
|
1089
1089
|
if (i) {
|
|
1090
|
-
const
|
|
1091
|
-
l = n.slides.find((
|
|
1090
|
+
const h = l * n.params.grid.rows;
|
|
1091
|
+
l = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
|
|
1092
1092
|
} else
|
|
1093
1093
|
l = n.getSlideIndexByData(l);
|
|
1094
1094
|
}
|
|
@@ -1138,22 +1138,22 @@ function os(t, e, s) {
|
|
|
1138
1138
|
direction: "prev"
|
|
1139
1139
|
}), r._clientLeft = r.wrapperEl.clientLeft;
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1142
|
-
function
|
|
1143
|
-
return
|
|
1141
|
+
const p = a ? r.translate : -r.translate;
|
|
1142
|
+
function h(u) {
|
|
1143
|
+
return u < 0 ? -Math.floor(Math.abs(u)) : Math.floor(u);
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1146
|
-
let M = i[
|
|
1147
|
-
if (typeof M > "u" && (n.cssMode ||
|
|
1148
|
-
let
|
|
1149
|
-
i.forEach((
|
|
1150
|
-
|
|
1151
|
-
}), typeof
|
|
1145
|
+
const g = h(p), m = i.map((u) => h(u)), T = n.freeMode && n.freeMode.enabled;
|
|
1146
|
+
let M = i[m.indexOf(g) - 1];
|
|
1147
|
+
if (typeof M > "u" && (n.cssMode || T)) {
|
|
1148
|
+
let u;
|
|
1149
|
+
i.forEach((f, v) => {
|
|
1150
|
+
g >= f && (u = v);
|
|
1151
|
+
}), typeof u < "u" && (M = T ? i[u] : i[u > 0 ? u - 1 : u]);
|
|
1152
1152
|
}
|
|
1153
1153
|
let w = 0;
|
|
1154
1154
|
if (typeof M < "u" && (w = l.indexOf(M), w < 0 && (w = r.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (w = w - r.slidesPerViewDynamic("previous", !0) + 1, w = Math.max(w, 0))), n.rewind && r.isBeginning) {
|
|
1155
|
-
const
|
|
1156
|
-
return r.slideTo(
|
|
1155
|
+
const u = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
|
|
1156
|
+
return r.slideTo(u, t, e, s);
|
|
1157
1157
|
} else if (n.loop && r.activeIndex === 0 && n.cssMode)
|
|
1158
1158
|
return requestAnimationFrame(() => {
|
|
1159
1159
|
r.slideTo(w, t, e, s);
|
|
@@ -1182,7 +1182,7 @@ function cs(t, e, s, r) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function us() {
|
|
1186
1186
|
const t = this;
|
|
1187
1187
|
if (t.destroyed) return;
|
|
1188
1188
|
const {
|
|
@@ -1193,50 +1193,50 @@ function ps() {
|
|
|
1193
1193
|
const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
|
|
1194
1194
|
if (e.loop) {
|
|
1195
1195
|
if (t.animating) return;
|
|
1196
|
-
i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]),
|
|
1196
|
+
i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), Te(() => {
|
|
1197
1197
|
t.slideTo(n);
|
|
1198
|
-
})) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]),
|
|
1198
|
+
})) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), Te(() => {
|
|
1199
1199
|
t.slideTo(n);
|
|
1200
1200
|
})) : t.slideTo(n);
|
|
1201
1201
|
} else
|
|
1202
1202
|
t.slideTo(n);
|
|
1203
1203
|
}
|
|
1204
|
-
var
|
|
1204
|
+
var ps = {
|
|
1205
1205
|
slideTo: ns,
|
|
1206
1206
|
slideToLoop: as,
|
|
1207
1207
|
slideNext: ls,
|
|
1208
1208
|
slidePrev: os,
|
|
1209
1209
|
slideReset: ds,
|
|
1210
1210
|
slideToClosest: cs,
|
|
1211
|
-
slideToClickedSlide:
|
|
1211
|
+
slideToClickedSlide: us
|
|
1212
1212
|
};
|
|
1213
|
-
function
|
|
1213
|
+
function fs(t, e) {
|
|
1214
1214
|
const s = this, {
|
|
1215
1215
|
params: r,
|
|
1216
1216
|
slidesEl: n
|
|
1217
1217
|
} = s;
|
|
1218
1218
|
if (!r.loop || s.virtual && s.params.virtual.enabled) return;
|
|
1219
1219
|
const i = () => {
|
|
1220
|
-
H(n, `.${r.slideClass}, swiper-slide`).forEach((
|
|
1221
|
-
|
|
1220
|
+
H(n, `.${r.slideClass}, swiper-slide`).forEach((p, h) => {
|
|
1221
|
+
p.setAttribute("data-swiper-slide-index", h);
|
|
1222
1222
|
});
|
|
1223
|
-
}, l = s.grid && r.grid && r.grid.rows > 1, a = r.slidesPerGroup * (l ? r.grid.rows : 1), o = s.slides.length % a !== 0, c = l && s.slides.length % r.grid.rows !== 0, d = (
|
|
1224
|
-
for (let
|
|
1225
|
-
const
|
|
1226
|
-
s.slidesEl.append(
|
|
1223
|
+
}, l = s.grid && r.grid && r.grid.rows > 1, a = r.slidesPerGroup * (l ? r.grid.rows : 1), o = s.slides.length % a !== 0, c = l && s.slides.length % r.grid.rows !== 0, d = (p) => {
|
|
1224
|
+
for (let h = 0; h < p; h += 1) {
|
|
1225
|
+
const g = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
|
|
1226
|
+
s.slidesEl.append(g);
|
|
1227
1227
|
}
|
|
1228
1228
|
};
|
|
1229
1229
|
if (o) {
|
|
1230
1230
|
if (r.loopAddBlankSlides) {
|
|
1231
|
-
const
|
|
1232
|
-
d(
|
|
1231
|
+
const p = a - s.slides.length % a;
|
|
1232
|
+
d(p), s.recalcSlides(), s.updateSlides();
|
|
1233
1233
|
} else
|
|
1234
1234
|
oe("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)");
|
|
1235
1235
|
i();
|
|
1236
1236
|
} else if (c) {
|
|
1237
1237
|
if (r.loopAddBlankSlides) {
|
|
1238
|
-
const
|
|
1239
|
-
d(
|
|
1238
|
+
const p = r.grid.rows - s.slides.length % r.grid.rows;
|
|
1239
|
+
d(p), s.recalcSlides(), s.updateSlides();
|
|
1240
1240
|
} else
|
|
1241
1241
|
oe("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)");
|
|
1242
1242
|
i();
|
|
@@ -1248,7 +1248,7 @@ function ms(t, e) {
|
|
|
1248
1248
|
initial: e
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function ms(t) {
|
|
1252
1252
|
let {
|
|
1253
1253
|
slideRealIndex: e,
|
|
1254
1254
|
slideTo: s = !0,
|
|
@@ -1264,79 +1264,79 @@ function fs(t) {
|
|
|
1264
1264
|
c.emit("beforeLoopFix");
|
|
1265
1265
|
const {
|
|
1266
1266
|
slides: d,
|
|
1267
|
-
allowSlidePrev:
|
|
1268
|
-
allowSlideNext:
|
|
1269
|
-
slidesEl:
|
|
1270
|
-
params:
|
|
1267
|
+
allowSlidePrev: p,
|
|
1268
|
+
allowSlideNext: h,
|
|
1269
|
+
slidesEl: g,
|
|
1270
|
+
params: m
|
|
1271
1271
|
} = c, {
|
|
1272
|
-
centeredSlides:
|
|
1272
|
+
centeredSlides: T,
|
|
1273
1273
|
initialSlide: M
|
|
1274
|
-
} =
|
|
1275
|
-
if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual &&
|
|
1276
|
-
s && (!
|
|
1274
|
+
} = m;
|
|
1275
|
+
if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual && m.virtual.enabled) {
|
|
1276
|
+
s && (!m.centeredSlides && c.snapIndex === 0 ? c.slideTo(c.virtual.slides.length, 0, !1, !0) : m.centeredSlides && c.snapIndex < m.slidesPerView ? c.slideTo(c.virtual.slides.length + c.snapIndex, 0, !1, !0) : c.snapIndex === c.snapGrid.length - 1 && c.slideTo(c.virtual.slidesBefore, 0, !1, !0)), c.allowSlidePrev = p, c.allowSlideNext = h, c.emit("loopFix");
|
|
1277
1277
|
return;
|
|
1278
1278
|
}
|
|
1279
|
-
let w =
|
|
1280
|
-
w === "auto" ? w = c.slidesPerViewDynamic() : (w = Math.ceil(parseFloat(
|
|
1281
|
-
const
|
|
1282
|
-
let
|
|
1283
|
-
|
|
1284
|
-
const
|
|
1285
|
-
d.length < w +
|
|
1286
|
-
const y = [],
|
|
1287
|
-
let
|
|
1288
|
-
typeof i > "u" ? i = c.getSlideIndex(d.find((
|
|
1289
|
-
const
|
|
1279
|
+
let w = m.slidesPerView;
|
|
1280
|
+
w === "auto" ? w = c.slidesPerViewDynamic() : (w = Math.ceil(parseFloat(m.slidesPerView, 10)), T && w % 2 === 0 && (w = w + 1));
|
|
1281
|
+
const u = m.slidesPerGroupAuto ? w : m.slidesPerGroup;
|
|
1282
|
+
let f = u;
|
|
1283
|
+
f % u !== 0 && (f += u - f % u), f += m.loopAdditionalSlides, c.loopedSlides = f;
|
|
1284
|
+
const v = c.grid && m.grid && m.grid.rows > 1;
|
|
1285
|
+
d.length < w + f || c.params.effect === "cards" && d.length < w + f * 2 ? oe("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") : v && m.grid.fill === "row" && oe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1286
|
+
const y = [], C = [], A = v ? Math.ceil(d.length / m.grid.rows) : d.length, I = l && A - M < w && !T;
|
|
1287
|
+
let b = I ? M : c.activeIndex;
|
|
1288
|
+
typeof i > "u" ? i = c.getSlideIndex(d.find((x) => x.classList.contains(m.slideActiveClass))) : b = i;
|
|
1289
|
+
const S = r === "next" || !r, E = r === "prev" || !r;
|
|
1290
1290
|
let k = 0, L = 0;
|
|
1291
|
-
const O = (
|
|
1292
|
-
if (O <
|
|
1293
|
-
k = Math.max(
|
|
1294
|
-
for (let
|
|
1295
|
-
const z =
|
|
1296
|
-
if (
|
|
1291
|
+
const O = (v ? d[i].column : i) + (T && typeof n > "u" ? -w / 2 + 0.5 : 0);
|
|
1292
|
+
if (O < f) {
|
|
1293
|
+
k = Math.max(f - O, u);
|
|
1294
|
+
for (let x = 0; x < f - O; x += 1) {
|
|
1295
|
+
const z = x - Math.floor(x / A) * A;
|
|
1296
|
+
if (v) {
|
|
1297
1297
|
const U = A - z - 1;
|
|
1298
1298
|
for (let V = d.length - 1; V >= 0; V -= 1)
|
|
1299
1299
|
d[V].column === U && y.push(V);
|
|
1300
1300
|
} else
|
|
1301
1301
|
y.push(A - z - 1);
|
|
1302
1302
|
}
|
|
1303
|
-
} else if (O + w > A -
|
|
1304
|
-
L = Math.max(O - (A -
|
|
1305
|
-
for (let
|
|
1306
|
-
const z =
|
|
1307
|
-
|
|
1308
|
-
U.column === z &&
|
|
1309
|
-
}) :
|
|
1303
|
+
} else if (O + w > A - f) {
|
|
1304
|
+
L = Math.max(O - (A - f * 2), u), I && (L = Math.max(L, w - A + M + 1));
|
|
1305
|
+
for (let x = 0; x < L; x += 1) {
|
|
1306
|
+
const z = x - Math.floor(x / A) * A;
|
|
1307
|
+
v ? d.forEach((U, V) => {
|
|
1308
|
+
U.column === z && C.push(V);
|
|
1309
|
+
}) : C.push(z);
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
if (c.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1313
1313
|
c.__preventObserver__ = !1;
|
|
1314
|
-
}), c.params.effect === "cards" && d.length < w +
|
|
1315
|
-
d[
|
|
1316
|
-
}),
|
|
1317
|
-
d[
|
|
1318
|
-
}), c.recalcSlides(),
|
|
1319
|
-
c.grid.updateSlide(z,
|
|
1320
|
-
}),
|
|
1321
|
-
if (y.length > 0 &&
|
|
1314
|
+
}), c.params.effect === "cards" && d.length < w + f * 2 && (C.includes(i) && C.splice(C.indexOf(i), 1), y.includes(i) && y.splice(y.indexOf(i), 1)), E && y.forEach((x) => {
|
|
1315
|
+
d[x].swiperLoopMoveDOM = !0, g.prepend(d[x]), d[x].swiperLoopMoveDOM = !1;
|
|
1316
|
+
}), S && C.forEach((x) => {
|
|
1317
|
+
d[x].swiperLoopMoveDOM = !0, g.append(d[x]), d[x].swiperLoopMoveDOM = !1;
|
|
1318
|
+
}), c.recalcSlides(), m.slidesPerView === "auto" ? c.updateSlides() : v && (y.length > 0 && E || C.length > 0 && S) && c.slides.forEach((x, z) => {
|
|
1319
|
+
c.grid.updateSlide(z, x, c.slides);
|
|
1320
|
+
}), m.watchSlidesProgress && c.updateSlidesOffset(), s) {
|
|
1321
|
+
if (y.length > 0 && E) {
|
|
1322
1322
|
if (typeof e > "u") {
|
|
1323
|
-
const
|
|
1324
|
-
o ? c.setTranslate(c.translate - z) : (c.slideTo(
|
|
1323
|
+
const x = c.slidesGrid[b], z = c.slidesGrid[b + k] - x;
|
|
1324
|
+
o ? c.setTranslate(c.translate - z) : (c.slideTo(b + Math.ceil(k), 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
|
|
1325
1325
|
} else if (n) {
|
|
1326
|
-
const
|
|
1327
|
-
c.slideTo(c.activeIndex +
|
|
1326
|
+
const x = v ? y.length / m.grid.rows : y.length;
|
|
1327
|
+
c.slideTo(c.activeIndex + x, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
|
|
1328
1328
|
}
|
|
1329
|
-
} else if (
|
|
1329
|
+
} else if (C.length > 0 && S)
|
|
1330
1330
|
if (typeof e > "u") {
|
|
1331
|
-
const
|
|
1332
|
-
o ? c.setTranslate(c.translate - z) : (c.slideTo(
|
|
1331
|
+
const x = c.slidesGrid[b], z = c.slidesGrid[b - L] - x;
|
|
1332
|
+
o ? c.setTranslate(c.translate - z) : (c.slideTo(b - L, 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
|
|
1333
1333
|
} else {
|
|
1334
|
-
const
|
|
1335
|
-
c.slideTo(c.activeIndex -
|
|
1334
|
+
const x = v ? C.length / m.grid.rows : C.length;
|
|
1335
|
+
c.slideTo(c.activeIndex - x, 0, !1, !0);
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
if (c.allowSlidePrev =
|
|
1339
|
-
const
|
|
1338
|
+
if (c.allowSlidePrev = p, c.allowSlideNext = h, c.controller && c.controller.control && !a) {
|
|
1339
|
+
const x = {
|
|
1340
1340
|
slideRealIndex: e,
|
|
1341
1341
|
direction: r,
|
|
1342
1342
|
setTranslate: n,
|
|
@@ -1345,12 +1345,12 @@ function fs(t) {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
Array.isArray(c.controller.control) ? c.controller.control.forEach((z) => {
|
|
1347
1347
|
!z.destroyed && z.params.loop && z.loopFix({
|
|
1348
|
-
...
|
|
1349
|
-
slideTo: z.params.slidesPerView ===
|
|
1348
|
+
...x,
|
|
1349
|
+
slideTo: z.params.slidesPerView === m.slidesPerView ? s : !1
|
|
1350
1350
|
});
|
|
1351
1351
|
}) : c.controller.control instanceof c.constructor && c.controller.control.params.loop && c.controller.control.loopFix({
|
|
1352
|
-
...
|
|
1353
|
-
slideTo: c.controller.control.params.slidesPerView ===
|
|
1352
|
+
...x,
|
|
1353
|
+
slideTo: c.controller.control.params.slidesPerView === m.slidesPerView ? s : !1
|
|
1354
1354
|
});
|
|
1355
1355
|
}
|
|
1356
1356
|
c.emit("loopFix");
|
|
@@ -1372,12 +1372,12 @@ function hs() {
|
|
|
1372
1372
|
s.append(n);
|
|
1373
1373
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1374
1374
|
}
|
|
1375
|
-
var
|
|
1376
|
-
loopCreate:
|
|
1377
|
-
loopFix:
|
|
1375
|
+
var gs = {
|
|
1376
|
+
loopCreate: fs,
|
|
1377
|
+
loopFix: ms,
|
|
1378
1378
|
loopDestroy: hs
|
|
1379
1379
|
};
|
|
1380
|
-
function
|
|
1380
|
+
function vs(t) {
|
|
1381
1381
|
const e = this;
|
|
1382
1382
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
1383
1383
|
const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
@@ -1391,11 +1391,11 @@ function ws() {
|
|
|
1391
1391
|
t.__preventObserver__ = !1;
|
|
1392
1392
|
}));
|
|
1393
1393
|
}
|
|
1394
|
-
var
|
|
1395
|
-
setGrabCursor:
|
|
1394
|
+
var ys = {
|
|
1395
|
+
setGrabCursor: vs,
|
|
1396
1396
|
unsetGrabCursor: ws
|
|
1397
1397
|
};
|
|
1398
|
-
function
|
|
1398
|
+
function bs(t, e) {
|
|
1399
1399
|
e === void 0 && (e = this);
|
|
1400
1400
|
function s(r) {
|
|
1401
1401
|
if (!r || r === K() || r === N()) return null;
|
|
@@ -1437,16 +1437,16 @@ function Ss(t) {
|
|
|
1437
1437
|
if (i.touchEventsTarget === "wrapper" && !It(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
|
|
1438
1438
|
const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
|
|
1439
1439
|
c && r.target && r.target.shadowRoot && d && (o = d[0]);
|
|
1440
|
-
const
|
|
1441
|
-
if (i.noSwiping && (
|
|
1440
|
+
const p = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, h = !!(r.target && r.target.shadowRoot);
|
|
1441
|
+
if (i.noSwiping && (h ? bs(p, o) : o.closest(p))) {
|
|
1442
1442
|
e.allowClick = !0;
|
|
1443
1443
|
return;
|
|
1444
1444
|
}
|
|
1445
1445
|
if (i.swipeHandler && !o.closest(i.swipeHandler))
|
|
1446
1446
|
return;
|
|
1447
1447
|
l.currentX = r.pageX, l.currentY = r.pageY;
|
|
1448
|
-
const
|
|
1449
|
-
if (!Ge(e, r,
|
|
1448
|
+
const g = l.currentX, m = l.currentY;
|
|
1449
|
+
if (!Ge(e, r, g))
|
|
1450
1450
|
return;
|
|
1451
1451
|
Object.assign(n, {
|
|
1452
1452
|
isTouched: !0,
|
|
@@ -1454,10 +1454,10 @@ function Ss(t) {
|
|
|
1454
1454
|
allowTouchCallbacks: !0,
|
|
1455
1455
|
isScrolling: void 0,
|
|
1456
1456
|
startMoving: void 0
|
|
1457
|
-
}), l.startX =
|
|
1458
|
-
let
|
|
1459
|
-
o.matches(n.focusableElements) && (
|
|
1460
|
-
const M =
|
|
1457
|
+
}), l.startX = g, l.startY = m, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
|
|
1458
|
+
let T = !0;
|
|
1459
|
+
o.matches(n.focusableElements) && (T = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), s.activeElement && s.activeElement.matches(n.focusableElements) && s.activeElement !== o && (r.pointerType === "mouse" || r.pointerType !== "mouse" && !o.matches(n.focusableElements)) && s.activeElement.blur();
|
|
1460
|
+
const M = T && e.allowTouchMove && i.touchStartPreventDefault;
|
|
1461
1461
|
(i.touchStartForcePreventDefault || M) && !o.isContentEditable && r.preventDefault(), i.freeMode && i.freeMode.enabled && e.freeMode && e.animating && !i.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", r);
|
|
1462
1462
|
}
|
|
1463
1463
|
function Es(t) {
|
|
@@ -1473,30 +1473,30 @@ function Es(t) {
|
|
|
1473
1473
|
return;
|
|
1474
1474
|
let c;
|
|
1475
1475
|
if (o.type === "touchmove") {
|
|
1476
|
-
if (c = [...o.changedTouches].find((
|
|
1476
|
+
if (c = [...o.changedTouches].find((y) => y.identifier === r.touchId), !c || c.identifier !== r.touchId) return;
|
|
1477
1477
|
} else
|
|
1478
1478
|
c = o;
|
|
1479
1479
|
if (!r.isTouched) {
|
|
1480
1480
|
r.startMoving && r.isScrolling && s.emit("touchMoveOpposite", o);
|
|
1481
1481
|
return;
|
|
1482
1482
|
}
|
|
1483
|
-
const d = c.pageX,
|
|
1483
|
+
const d = c.pageX, p = c.pageY;
|
|
1484
1484
|
if (o.preventedByNestedSwiper) {
|
|
1485
|
-
i.startX = d, i.startY =
|
|
1485
|
+
i.startX = d, i.startY = p;
|
|
1486
1486
|
return;
|
|
1487
1487
|
}
|
|
1488
1488
|
if (!s.allowTouchMove) {
|
|
1489
1489
|
o.target.matches(r.focusableElements) || (s.allowClick = !1), r.isTouched && (Object.assign(i, {
|
|
1490
1490
|
startX: d,
|
|
1491
|
-
startY:
|
|
1491
|
+
startY: p,
|
|
1492
1492
|
currentX: d,
|
|
1493
|
-
currentY:
|
|
1493
|
+
currentY: p
|
|
1494
1494
|
}), r.touchStartTime = le());
|
|
1495
1495
|
return;
|
|
1496
1496
|
}
|
|
1497
1497
|
if (n.touchReleaseOnEdges && !n.loop) {
|
|
1498
1498
|
if (s.isVertical()) {
|
|
1499
|
-
if (
|
|
1499
|
+
if (p < i.startY && s.translate <= s.maxTranslate() || p > i.startY && s.translate >= s.minTranslate()) {
|
|
1500
1500
|
r.isTouched = !1, r.isMoved = !1;
|
|
1501
1501
|
return;
|
|
1502
1502
|
}
|
|
@@ -1507,12 +1507,12 @@ function Es(t) {
|
|
|
1507
1507
|
r.isMoved = !0, s.allowClick = !1;
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
1510
|
-
r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY =
|
|
1511
|
-
const
|
|
1512
|
-
if (s.params.threshold && Math.sqrt(
|
|
1510
|
+
r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = p;
|
|
1511
|
+
const h = i.currentX - i.startX, g = i.currentY - i.startY;
|
|
1512
|
+
if (s.params.threshold && Math.sqrt(h ** 2 + g ** 2) < s.params.threshold) return;
|
|
1513
1513
|
if (typeof r.isScrolling > "u") {
|
|
1514
|
-
let
|
|
1515
|
-
s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 :
|
|
1514
|
+
let y;
|
|
1515
|
+
s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : h * h + g * g >= 25 && (y = Math.atan2(Math.abs(g), Math.abs(h)) * 180 / Math.PI, r.isScrolling = s.isHorizontal() ? y > n.touchAngle : 90 - y > n.touchAngle);
|
|
1516
1516
|
}
|
|
1517
1517
|
if (r.isScrolling && s.emit("touchMoveOpposite", o), typeof r.startMoving > "u" && (i.currentX !== i.startX || i.currentY !== i.startY) && (r.startMoving = !0), r.isScrolling || o.type === "touchmove" && r.preventTouchMoveFromPointerMove) {
|
|
1518
1518
|
r.isTouched = !1;
|
|
@@ -1521,49 +1521,48 @@ function Es(t) {
|
|
|
1521
1521
|
if (!r.startMoving)
|
|
1522
1522
|
return;
|
|
1523
1523
|
s.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
|
|
1524
|
-
let
|
|
1525
|
-
n.oneWayMovement && (
|
|
1524
|
+
let m = s.isHorizontal() ? h : g, T = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
|
|
1525
|
+
n.oneWayMovement && (m = Math.abs(m) * (l ? 1 : -1), T = Math.abs(T) * (l ? 1 : -1)), i.diff = m, m *= n.touchRatio, l && (m = -m, T = -T);
|
|
1526
1526
|
const M = s.touchesDirection;
|
|
1527
|
-
s.swipeDirection =
|
|
1528
|
-
const w = s.params.loop && !n.cssMode,
|
|
1527
|
+
s.swipeDirection = m > 0 ? "prev" : "next", s.touchesDirection = T > 0 ? "prev" : "next";
|
|
1528
|
+
const w = s.params.loop && !n.cssMode, u = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
|
|
1529
1529
|
if (!r.isMoved) {
|
|
1530
|
-
if (w &&
|
|
1530
|
+
if (w && u && s.loopFix({
|
|
1531
1531
|
direction: s.swipeDirection
|
|
1532
1532
|
}), r.startTranslate = s.getTranslate(), s.setTransition(0), s.animating) {
|
|
1533
|
-
const
|
|
1533
|
+
const y = new window.CustomEvent("transitionend", {
|
|
1534
1534
|
bubbles: !0,
|
|
1535
1535
|
cancelable: !0,
|
|
1536
1536
|
detail: {
|
|
1537
1537
|
bySwiperTouchMove: !0
|
|
1538
1538
|
}
|
|
1539
1539
|
});
|
|
1540
|
-
s.wrapperEl.dispatchEvent(
|
|
1540
|
+
s.wrapperEl.dispatchEvent(y);
|
|
1541
1541
|
}
|
|
1542
1542
|
r.allowMomentumBounce = !1, n.grabCursor && (s.allowSlideNext === !0 || s.allowSlidePrev === !0) && s.setGrabCursor(!0), s.emit("sliderFirstMove", o);
|
|
1543
1543
|
}
|
|
1544
|
-
|
|
1545
|
-
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && M !== s.touchesDirection && w && p && Math.abs(h) >= 1) {
|
|
1544
|
+
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && M !== s.touchesDirection && w && u && Math.abs(m) >= 1) {
|
|
1546
1545
|
Object.assign(i, {
|
|
1547
1546
|
startX: d,
|
|
1548
|
-
startY:
|
|
1547
|
+
startY: p,
|
|
1549
1548
|
currentX: d,
|
|
1550
|
-
currentY:
|
|
1549
|
+
currentY: p,
|
|
1551
1550
|
startTranslate: r.currentTranslate
|
|
1552
1551
|
}), r.loopSwapReset = !0, r.startTranslate = r.currentTranslate;
|
|
1553
1552
|
return;
|
|
1554
1553
|
}
|
|
1555
|
-
s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate =
|
|
1556
|
-
let
|
|
1557
|
-
if (n.touchReleaseOnEdges && (
|
|
1554
|
+
s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = m + r.startTranslate;
|
|
1555
|
+
let f = !0, v = n.resistanceRatio;
|
|
1556
|
+
if (n.touchReleaseOnEdges && (v = 0), m > 0 ? (w && u && r.allowThresholdMove && r.currentTranslate > (n.centeredSlides ? s.minTranslate() - s.slidesSizesGrid[s.activeIndex + 1] - (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.activeIndex + 1] + s.params.spaceBetween : 0) - s.params.spaceBetween : s.minTranslate()) && s.loopFix({
|
|
1558
1557
|
direction: "prev",
|
|
1559
1558
|
setTranslate: !0,
|
|
1560
1559
|
activeSlideIndex: 0
|
|
1561
|
-
}), r.currentTranslate > s.minTranslate() && (
|
|
1560
|
+
}), r.currentTranslate > s.minTranslate() && (f = !1, n.resistance && (r.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + r.startTranslate + m) ** v))) : m < 0 && (w && u && r.allowThresholdMove && r.currentTranslate < (n.centeredSlides ? s.maxTranslate() + s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween + (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween : 0) : s.maxTranslate()) && s.loopFix({
|
|
1562
1561
|
direction: "next",
|
|
1563
1562
|
setTranslate: !0,
|
|
1564
1563
|
activeSlideIndex: s.slides.length - (n.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
|
1565
|
-
}), r.currentTranslate < s.maxTranslate() && (
|
|
1566
|
-
if (Math.abs(
|
|
1564
|
+
}), r.currentTranslate < s.maxTranslate() && (f = !1, n.resistance && (r.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - r.startTranslate - m) ** v))), f && (o.preventedByNestedSwiper = !0), !s.allowSlideNext && s.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && s.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && !s.allowSlideNext && (r.currentTranslate = r.startTranslate), n.threshold > 0)
|
|
1565
|
+
if (Math.abs(m) > n.threshold || r.allowThresholdMove) {
|
|
1567
1566
|
if (!r.allowThresholdMove) {
|
|
1568
1567
|
r.allowThresholdMove = !0, i.startX = i.currentX, i.startY = i.currentY, r.currentTranslate = r.startTranslate, i.diff = s.isHorizontal() ? i.currentX - i.startX : i.currentY - i.startY;
|
|
1569
1568
|
return;
|
|
@@ -1574,13 +1573,13 @@ function Es(t) {
|
|
|
1574
1573
|
}
|
|
1575
1574
|
!n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && s.freeMode || n.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(r.currentTranslate), s.setTranslate(r.currentTranslate));
|
|
1576
1575
|
}
|
|
1577
|
-
function
|
|
1576
|
+
function Ts(t) {
|
|
1578
1577
|
const e = this, s = e.touchEventsData;
|
|
1579
1578
|
let r = t;
|
|
1580
1579
|
r.originalEvent && (r = r.originalEvent);
|
|
1581
1580
|
let n;
|
|
1582
1581
|
if (r.type === "touchend" || r.type === "touchcancel") {
|
|
1583
|
-
if (n = [...r.changedTouches].find((
|
|
1582
|
+
if (n = [...r.changedTouches].find((v) => v.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
|
|
1584
1583
|
} else {
|
|
1585
1584
|
if (s.touchId !== null || r.pointerId !== s.pointerId) return;
|
|
1586
1585
|
n = r;
|
|
@@ -1601,48 +1600,48 @@ function xs(t) {
|
|
|
1601
1600
|
return;
|
|
1602
1601
|
}
|
|
1603
1602
|
i.grabCursor && s.isMoved && s.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
1604
|
-
const d = le(),
|
|
1603
|
+
const d = le(), p = d - s.touchStartTime;
|
|
1605
1604
|
if (e.allowClick) {
|
|
1606
|
-
const
|
|
1607
|
-
e.updateClickedSlide(
|
|
1605
|
+
const v = r.path || r.composedPath && r.composedPath();
|
|
1606
|
+
e.updateClickedSlide(v && v[0] || r.target, v), e.emit("tap click", r), p < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
|
|
1608
1607
|
}
|
|
1609
|
-
if (s.lastClickTime = le(),
|
|
1608
|
+
if (s.lastClickTime = le(), Te(() => {
|
|
1610
1609
|
e.destroyed || (e.allowClick = !0);
|
|
1611
1610
|
}), !s.isTouched || !s.isMoved || !e.swipeDirection || l.diff === 0 && !s.loopSwapReset || s.currentTranslate === s.startTranslate && !s.loopSwapReset) {
|
|
1612
1611
|
s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
|
|
1613
1612
|
return;
|
|
1614
1613
|
}
|
|
1615
1614
|
s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
|
|
1616
|
-
let
|
|
1617
|
-
if (i.followFinger ?
|
|
1615
|
+
let h;
|
|
1616
|
+
if (i.followFinger ? h = a ? e.translate : -e.translate : h = -s.currentTranslate, i.cssMode)
|
|
1618
1617
|
return;
|
|
1619
1618
|
if (i.freeMode && i.freeMode.enabled) {
|
|
1620
1619
|
e.freeMode.onTouchEnd({
|
|
1621
|
-
currentPos:
|
|
1620
|
+
currentPos: h
|
|
1622
1621
|
});
|
|
1623
1622
|
return;
|
|
1624
1623
|
}
|
|
1625
|
-
const
|
|
1626
|
-
let
|
|
1627
|
-
for (let
|
|
1628
|
-
const y =
|
|
1629
|
-
typeof o[
|
|
1624
|
+
const g = h >= -e.maxTranslate() && !e.params.loop;
|
|
1625
|
+
let m = 0, T = e.slidesSizesGrid[0];
|
|
1626
|
+
for (let v = 0; v < o.length; v += v < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
|
|
1627
|
+
const y = v < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
1628
|
+
typeof o[v + y] < "u" ? (g || h >= o[v] && h < o[v + y]) && (m = v, T = o[v + y] - o[v]) : (g || h >= o[v]) && (m = v, T = o[o.length - 1] - o[o.length - 2]);
|
|
1630
1629
|
}
|
|
1631
1630
|
let M = null, w = null;
|
|
1632
1631
|
i.rewind && (e.isBeginning ? w = i.virtual && i.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (M = 0));
|
|
1633
|
-
const
|
|
1634
|
-
if (
|
|
1632
|
+
const u = (h - o[m]) / T, f = m < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
1633
|
+
if (p > i.longSwipesMs) {
|
|
1635
1634
|
if (!i.longSwipes) {
|
|
1636
1635
|
e.slideTo(e.activeIndex);
|
|
1637
1636
|
return;
|
|
1638
1637
|
}
|
|
1639
|
-
e.swipeDirection === "next" && (
|
|
1638
|
+
e.swipeDirection === "next" && (u >= i.longSwipesRatio ? e.slideTo(i.rewind && e.isEnd ? M : m + f) : e.slideTo(m)), e.swipeDirection === "prev" && (u > 1 - i.longSwipesRatio ? e.slideTo(m + f) : w !== null && u < 0 && Math.abs(u) > i.longSwipesRatio ? e.slideTo(w) : e.slideTo(m));
|
|
1640
1639
|
} else {
|
|
1641
1640
|
if (!i.shortSwipes) {
|
|
1642
1641
|
e.slideTo(e.activeIndex);
|
|
1643
1642
|
return;
|
|
1644
1643
|
}
|
|
1645
|
-
e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(
|
|
1644
|
+
e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(m + f) : e.slideTo(m) : (e.swipeDirection === "next" && e.slideTo(M !== null ? M : m + f), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : m));
|
|
1646
1645
|
}
|
|
1647
1646
|
}
|
|
1648
1647
|
function Ne() {
|
|
@@ -1663,7 +1662,7 @@ function Ne() {
|
|
|
1663
1662
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
1664
1663
|
}, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
|
|
1665
1664
|
}
|
|
1666
|
-
function
|
|
1665
|
+
function xs(t) {
|
|
1667
1666
|
const e = this;
|
|
1668
1667
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1669
1668
|
}
|
|
@@ -1729,7 +1728,7 @@ function ks() {
|
|
|
1729
1728
|
const t = this, {
|
|
1730
1729
|
params: e
|
|
1731
1730
|
} = t;
|
|
1732
|
-
t.onTouchStart = Ss.bind(t), t.onTouchMove = Es.bind(t), t.onTouchEnd =
|
|
1731
|
+
t.onTouchStart = Ss.bind(t), t.onTouchMove = Es.bind(t), t.onTouchEnd = Ts.bind(t), t.onDocumentTouchStart = Ms.bind(t), e.cssMode && (t.onScroll = Cs.bind(t)), t.onClick = xs.bind(t), t.onLoad = Ps.bind(t), Ze(t, "on");
|
|
1733
1732
|
}
|
|
1734
1733
|
function Is() {
|
|
1735
1734
|
Ze(this, "off");
|
|
@@ -1749,20 +1748,20 @@ function As() {
|
|
|
1749
1748
|
if (!i || i && Object.keys(i).length === 0) return;
|
|
1750
1749
|
const l = K(), a = r.breakpointsBase === "window" || !r.breakpointsBase ? r.breakpointsBase : "container", o = ["window", "container"].includes(r.breakpointsBase) || !r.breakpointsBase ? t.el : l.querySelector(r.breakpointsBase), c = t.getBreakpoint(i, a, o);
|
|
1751
1750
|
if (!c || t.currentBreakpoint === c) return;
|
|
1752
|
-
const d = (c in i ? i[c] : void 0) || t.originalParams,
|
|
1753
|
-
|
|
1751
|
+
const d = (c in i ? i[c] : void 0) || t.originalParams, p = Be(t, r), h = Be(t, d), g = t.params.grabCursor, m = d.grabCursor, T = r.enabled;
|
|
1752
|
+
p && !h ? (n.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), t.emitContainerClasses()) : !p && h && (n.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && n.classList.add(`${r.containerModifierClass}grid-column`), t.emitContainerClasses()), g && !m ? t.unsetGrabCursor() : !g && m && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => {
|
|
1754
1753
|
if (typeof d[y] > "u") return;
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1754
|
+
const C = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
|
|
1755
|
+
C && !A && t[y].disable(), !C && A && t[y].enable();
|
|
1757
1756
|
});
|
|
1758
|
-
const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M),
|
|
1757
|
+
const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), u = r.loop;
|
|
1759
1758
|
M && s && t.changeDirection(), B(t.params, d);
|
|
1760
|
-
const
|
|
1759
|
+
const f = t.params.enabled, v = t.params.loop;
|
|
1761
1760
|
Object.assign(t, {
|
|
1762
1761
|
allowTouchMove: t.params.allowTouchMove,
|
|
1763
1762
|
allowSlideNext: t.params.allowSlideNext,
|
|
1764
1763
|
allowSlidePrev: t.params.allowSlidePrev
|
|
1765
|
-
}),
|
|
1764
|
+
}), T && !f ? t.disable() : !T && f && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !u && v ? (t.loopCreate(e), t.updateSlides()) : u && !v && t.loopDestroy()), t.emit("breakpoint", d);
|
|
1766
1765
|
}
|
|
1767
1766
|
function Os(t, e, s) {
|
|
1768
1767
|
if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
|
|
@@ -1999,19 +1998,19 @@ function Fs(t, e) {
|
|
|
1999
1998
|
}), B(e, s);
|
|
2000
1999
|
};
|
|
2001
2000
|
}
|
|
2002
|
-
const
|
|
2001
|
+
const ye = {
|
|
2003
2002
|
eventsEmitter: Nt,
|
|
2004
2003
|
update: Xt,
|
|
2005
2004
|
translate: es,
|
|
2006
2005
|
transition: is,
|
|
2007
|
-
slide:
|
|
2008
|
-
loop:
|
|
2009
|
-
grabCursor:
|
|
2006
|
+
slide: ps,
|
|
2007
|
+
loop: gs,
|
|
2008
|
+
grabCursor: ys,
|
|
2010
2009
|
events: Ls,
|
|
2011
2010
|
breakpoints: zs,
|
|
2012
2011
|
checkOverflow: Ds,
|
|
2013
2012
|
classes: Ns
|
|
2014
|
-
},
|
|
2013
|
+
}, be = {};
|
|
2015
2014
|
let ze = class q {
|
|
2016
2015
|
constructor() {
|
|
2017
2016
|
let e, s;
|
|
@@ -2021,11 +2020,11 @@ let ze = class q {
|
|
|
2021
2020
|
const l = K();
|
|
2022
2021
|
if (s.el && typeof s.el == "string" && l.querySelectorAll(s.el).length > 1) {
|
|
2023
2022
|
const d = [];
|
|
2024
|
-
return l.querySelectorAll(s.el).forEach((
|
|
2025
|
-
const
|
|
2026
|
-
el:
|
|
2023
|
+
return l.querySelectorAll(s.el).forEach((p) => {
|
|
2024
|
+
const h = B({}, s, {
|
|
2025
|
+
el: p
|
|
2027
2026
|
});
|
|
2028
|
-
d.push(new q(
|
|
2027
|
+
d.push(new q(h));
|
|
2029
2028
|
}), d;
|
|
2030
2029
|
}
|
|
2031
2030
|
const a = this;
|
|
@@ -2045,7 +2044,7 @@ let ze = class q {
|
|
|
2045
2044
|
});
|
|
2046
2045
|
});
|
|
2047
2046
|
const c = B({}, Pe, o);
|
|
2048
|
-
return a.params = B({}, c,
|
|
2047
|
+
return a.params = B({}, c, be, s), a.originalParams = B({}, a.params), a.passedParams = B({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
|
|
2049
2048
|
a.on(d, a.params.on[d]);
|
|
2050
2049
|
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
2051
2050
|
enabled: a.params.enabled,
|
|
@@ -2198,17 +2197,17 @@ let ze = class q {
|
|
|
2198
2197
|
let d = 1;
|
|
2199
2198
|
if (typeof n.slidesPerView == "number") return n.slidesPerView;
|
|
2200
2199
|
if (n.centeredSlides) {
|
|
2201
|
-
let
|
|
2202
|
-
for (let
|
|
2203
|
-
i[
|
|
2204
|
-
for (let
|
|
2205
|
-
i[
|
|
2200
|
+
let p = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, h;
|
|
2201
|
+
for (let g = c + 1; g < i.length; g += 1)
|
|
2202
|
+
i[g] && !h && (p += Math.ceil(i[g].swiperSlideSize), d += 1, p > o && (h = !0));
|
|
2203
|
+
for (let g = c - 1; g >= 0; g -= 1)
|
|
2204
|
+
i[g] && !h && (p += i[g].swiperSlideSize, d += 1, p > o && (h = !0));
|
|
2206
2205
|
} else if (e === "current")
|
|
2207
|
-
for (let
|
|
2208
|
-
(s ? l[
|
|
2206
|
+
for (let p = c + 1; p < i.length; p += 1)
|
|
2207
|
+
(s ? l[p] + a[p] - l[c] < o : l[p] - l[c] < o) && (d += 1);
|
|
2209
2208
|
else
|
|
2210
|
-
for (let
|
|
2211
|
-
l[c] - l[
|
|
2209
|
+
for (let p = c - 1; p >= 0; p -= 1)
|
|
2210
|
+
l[c] - l[p] < o && (d += 1);
|
|
2212
2211
|
return d;
|
|
2213
2212
|
}
|
|
2214
2213
|
update() {
|
|
@@ -2295,13 +2294,13 @@ let ze = class q {
|
|
|
2295
2294
|
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2296
2295
|
})), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
|
|
2297
2296
|
r.off(o);
|
|
2298
|
-
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null),
|
|
2297
|
+
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), xt(r)), r.destroyed = !0), null;
|
|
2299
2298
|
}
|
|
2300
2299
|
static extendDefaults(e) {
|
|
2301
|
-
B(
|
|
2300
|
+
B(be, e);
|
|
2302
2301
|
}
|
|
2303
2302
|
static get extendedDefaults() {
|
|
2304
|
-
return
|
|
2303
|
+
return be;
|
|
2305
2304
|
}
|
|
2306
2305
|
static get defaults() {
|
|
2307
2306
|
return Pe;
|
|
@@ -2315,9 +2314,9 @@ let ze = class q {
|
|
|
2315
2314
|
return Array.isArray(e) ? (e.forEach((s) => q.installModule(s)), q) : (q.installModule(e), q);
|
|
2316
2315
|
}
|
|
2317
2316
|
};
|
|
2318
|
-
Object.keys(
|
|
2319
|
-
Object.keys(
|
|
2320
|
-
ze.prototype[e] =
|
|
2317
|
+
Object.keys(ye).forEach((t) => {
|
|
2318
|
+
Object.keys(ye[t]).forEach((e) => {
|
|
2319
|
+
ze.prototype[e] = ye[t][e];
|
|
2321
2320
|
});
|
|
2322
2321
|
});
|
|
2323
2322
|
ze.use([$t, Gt]);
|
|
@@ -2479,27 +2478,27 @@ function js(t) {
|
|
|
2479
2478
|
scrollbarEl: a,
|
|
2480
2479
|
paginationEl: o
|
|
2481
2480
|
} = t;
|
|
2482
|
-
const c = n.filter((
|
|
2481
|
+
const c = n.filter((b) => b !== "children" && b !== "direction" && b !== "wrapperClass"), {
|
|
2483
2482
|
params: d,
|
|
2484
|
-
pagination:
|
|
2485
|
-
navigation:
|
|
2486
|
-
scrollbar:
|
|
2487
|
-
virtual:
|
|
2488
|
-
thumbs:
|
|
2483
|
+
pagination: p,
|
|
2484
|
+
navigation: h,
|
|
2485
|
+
scrollbar: g,
|
|
2486
|
+
virtual: m,
|
|
2487
|
+
thumbs: T
|
|
2489
2488
|
} = e;
|
|
2490
|
-
let M, w,
|
|
2491
|
-
n.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (M = !0), n.includes("controller") && r.controller && r.controller.control && d.controller && !d.controller.control && (w = !0), n.includes("pagination") && r.pagination && (r.pagination.el || o) && (d.pagination || d.pagination === !1) &&
|
|
2492
|
-
const I = (
|
|
2493
|
-
e[
|
|
2489
|
+
let M, w, u, f, v, y, C, A;
|
|
2490
|
+
n.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (M = !0), n.includes("controller") && r.controller && r.controller.control && d.controller && !d.controller.control && (w = !0), n.includes("pagination") && r.pagination && (r.pagination.el || o) && (d.pagination || d.pagination === !1) && p && !p.el && (u = !0), n.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) && g && !g.el && (f = !0), n.includes("navigation") && r.navigation && (r.navigation.prevEl || l) && (r.navigation.nextEl || i) && (d.navigation || d.navigation === !1) && h && !h.prevEl && !h.nextEl && (v = !0);
|
|
2491
|
+
const I = (b) => {
|
|
2492
|
+
e[b] && (e[b].destroy(), b === "navigation" ? (e.isElement && (e[b].prevEl.remove(), e[b].nextEl.remove()), d[b].prevEl = void 0, d[b].nextEl = void 0, e[b].prevEl = void 0, e[b].nextEl = void 0) : (e.isElement && e[b].el.remove(), d[b].el = void 0, e[b].el = void 0));
|
|
2494
2493
|
};
|
|
2495
|
-
n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ?
|
|
2496
|
-
if (Q(d[
|
|
2497
|
-
Object.assign(d[
|
|
2494
|
+
n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ? C = !0 : A = !0), c.forEach((b) => {
|
|
2495
|
+
if (Q(d[b]) && Q(r[b]))
|
|
2496
|
+
Object.assign(d[b], r[b]), (b === "navigation" || b === "pagination" || b === "scrollbar") && "enabled" in r[b] && !r[b].enabled && I(b);
|
|
2498
2497
|
else {
|
|
2499
|
-
const
|
|
2500
|
-
(
|
|
2498
|
+
const S = r[b];
|
|
2499
|
+
(S === !0 || S === !1) && (b === "navigation" || b === "pagination" || b === "scrollbar") ? S === !1 && I(b) : d[b] = r[b];
|
|
2501
2500
|
}
|
|
2502
|
-
}), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s &&
|
|
2501
|
+
}), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && m && d.virtual.enabled ? (m.slides = s, m.update(!0)) : n.includes("virtual") && m && d.virtual.enabled && (s && (m.slides = s), m.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && T.init() && T.update(!0), w && (e.controller.control = d.controller.control), u && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (d.pagination.el = o), p.init(), p.render(), p.update()), f && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (d.scrollbar.el = a), g.init(), g.updateSize(), g.setTranslate()), v && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), i.innerHTML = e.hostEl.constructor.nextButtonSvg, i.part.add("button-next"), e.el.appendChild(i)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), i && (d.navigation.nextEl = i), l && (d.navigation.prevEl = l), h.init(), h.update()), n.includes("allowSlideNext") && (e.allowSlideNext = r.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = r.allowSlidePrev), n.includes("direction") && e.changeDirection(r.direction, !1), (y || A) && e.loopDestroy(), (C || A) && e.loopCreate(), e.update();
|
|
2503
2502
|
}
|
|
2504
2503
|
function Hs(t, e) {
|
|
2505
2504
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
@@ -2555,15 +2554,15 @@ function qs(t, e, s, r, n) {
|
|
|
2555
2554
|
const Ws = (t) => {
|
|
2556
2555
|
!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());
|
|
2557
2556
|
};
|
|
2558
|
-
function
|
|
2559
|
-
return
|
|
2557
|
+
function ue() {
|
|
2558
|
+
return ue = Object.assign ? Object.assign.bind() : function(t) {
|
|
2560
2559
|
for (var e = 1; e < arguments.length; e++) {
|
|
2561
2560
|
var s = arguments[e];
|
|
2562
2561
|
for (var r in s)
|
|
2563
2562
|
Object.prototype.hasOwnProperty.call(s, r) && (t[r] = s[r]);
|
|
2564
2563
|
}
|
|
2565
2564
|
return t;
|
|
2566
|
-
},
|
|
2565
|
+
}, ue.apply(this, arguments);
|
|
2567
2566
|
}
|
|
2568
2567
|
function nt(t) {
|
|
2569
2568
|
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
@@ -2599,8 +2598,8 @@ function Ys(t) {
|
|
|
2599
2598
|
function Xs(t, e, s) {
|
|
2600
2599
|
if (!s) return null;
|
|
2601
2600
|
const r = (d) => {
|
|
2602
|
-
let
|
|
2603
|
-
return d < 0 ?
|
|
2601
|
+
let p = d;
|
|
2602
|
+
return d < 0 ? p = e.length + d : p >= e.length && (p = p - e.length), p;
|
|
2604
2603
|
}, n = t.isHorizontal() ? {
|
|
2605
2604
|
[t.rtlTranslate ? "right" : "left"]: `${s.offset}px`
|
|
2606
2605
|
} : {
|
|
@@ -2611,14 +2610,14 @@ function Xs(t, e, s) {
|
|
|
2611
2610
|
} = s, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, c = [];
|
|
2612
2611
|
for (let d = a; d < o; d += 1)
|
|
2613
2612
|
d >= i && d <= l && c.push(e[r(d)]);
|
|
2614
|
-
return c.map((d,
|
|
2613
|
+
return c.map((d, p) => /* @__PURE__ */ $.cloneElement(d, {
|
|
2615
2614
|
swiper: t,
|
|
2616
2615
|
style: n,
|
|
2617
|
-
key: d.props.virtualIndex || d.key || `slide-${
|
|
2616
|
+
key: d.props.virtualIndex || d.key || `slide-${p}`
|
|
2618
2617
|
}));
|
|
2619
2618
|
}
|
|
2620
2619
|
function ee(t, e) {
|
|
2621
|
-
return typeof window > "u" ? X(t, e) :
|
|
2620
|
+
return typeof window > "u" ? X(t, e) : mt(t, e);
|
|
2622
2621
|
}
|
|
2623
2622
|
const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__PURE__ */ Ae(function(t, e) {
|
|
2624
2623
|
let {
|
|
@@ -2629,24 +2628,24 @@ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__P
|
|
|
2629
2628
|
onSwiper: l,
|
|
2630
2629
|
...a
|
|
2631
2630
|
} = t === void 0 ? {} : t, o = !1;
|
|
2632
|
-
const [c, d] = W("swiper"), [
|
|
2631
|
+
const [c, d] = W("swiper"), [p, h] = W(null), [g, m] = W(!1), T = D(!1), M = D(null), w = D(null), u = D(null), f = D(null), v = D(null), y = D(null), C = D(null), A = D(null), {
|
|
2633
2632
|
params: I,
|
|
2634
|
-
passedParams:
|
|
2635
|
-
rest:
|
|
2636
|
-
events:
|
|
2633
|
+
passedParams: b,
|
|
2634
|
+
rest: S,
|
|
2635
|
+
events: E
|
|
2637
2636
|
} = Hs(a), {
|
|
2638
2637
|
slides: k,
|
|
2639
2638
|
slots: L
|
|
2640
2639
|
} = Ys(i), O = () => {
|
|
2641
|
-
|
|
2640
|
+
m(!g);
|
|
2642
2641
|
};
|
|
2643
2642
|
Object.assign(I.on, {
|
|
2644
2643
|
_containerClasses(G, j) {
|
|
2645
2644
|
d(j);
|
|
2646
2645
|
}
|
|
2647
2646
|
});
|
|
2648
|
-
const
|
|
2649
|
-
Object.assign(I.on,
|
|
2647
|
+
const x = () => {
|
|
2648
|
+
Object.assign(I.on, E), o = !0;
|
|
2650
2649
|
const G = {
|
|
2651
2650
|
...I
|
|
2652
2651
|
};
|
|
@@ -2655,33 +2654,33 @@ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__P
|
|
|
2655
2654
|
const j = {
|
|
2656
2655
|
cache: !1,
|
|
2657
2656
|
slides: k,
|
|
2658
|
-
renderExternal:
|
|
2657
|
+
renderExternal: h,
|
|
2659
2658
|
renderExternalUpdate: !1
|
|
2660
2659
|
};
|
|
2661
2660
|
J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
|
|
2662
2661
|
}
|
|
2663
2662
|
};
|
|
2664
|
-
M.current ||
|
|
2663
|
+
M.current || x(), w.current && w.current.on("_beforeBreakpoint", O);
|
|
2665
2664
|
const z = () => {
|
|
2666
|
-
o || !
|
|
2667
|
-
w.current.on(G,
|
|
2665
|
+
o || !E || !w.current || Object.keys(E).forEach((G) => {
|
|
2666
|
+
w.current.on(G, E[G]);
|
|
2668
2667
|
});
|
|
2669
2668
|
}, U = () => {
|
|
2670
|
-
!
|
|
2671
|
-
w.current.off(G,
|
|
2669
|
+
!E || !w.current || Object.keys(E).forEach((G) => {
|
|
2670
|
+
w.current.off(G, E[G]);
|
|
2672
2671
|
});
|
|
2673
2672
|
};
|
|
2674
2673
|
X(() => () => {
|
|
2675
2674
|
w.current && w.current.off("_beforeBreakpoint", O);
|
|
2676
2675
|
}), X(() => {
|
|
2677
|
-
!
|
|
2676
|
+
!T.current && w.current && (w.current.emitSlidesClasses(), T.current = !0);
|
|
2678
2677
|
}), ee(() => {
|
|
2679
2678
|
if (e && (e.current = M.current), !!M.current)
|
|
2680
|
-
return w.current.destroyed &&
|
|
2679
|
+
return w.current.destroyed && x(), Rs({
|
|
2681
2680
|
el: M.current,
|
|
2682
|
-
nextEl:
|
|
2681
|
+
nextEl: v.current,
|
|
2683
2682
|
prevEl: y.current,
|
|
2684
|
-
paginationEl:
|
|
2683
|
+
paginationEl: C.current,
|
|
2685
2684
|
scrollbarEl: A.current,
|
|
2686
2685
|
swiper: w.current
|
|
2687
2686
|
}, I), l && !w.current.destroyed && l(w.current), () => {
|
|
@@ -2689,32 +2688,32 @@ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__P
|
|
|
2689
2688
|
};
|
|
2690
2689
|
}, []), ee(() => {
|
|
2691
2690
|
z();
|
|
2692
|
-
const G = qs(
|
|
2693
|
-
return
|
|
2691
|
+
const G = qs(b, u.current, k, f.current, (j) => j.key);
|
|
2692
|
+
return u.current = b, f.current = k, G.length && w.current && !w.current.destroyed && js({
|
|
2694
2693
|
swiper: w.current,
|
|
2695
2694
|
slides: k,
|
|
2696
|
-
passedParams:
|
|
2695
|
+
passedParams: b,
|
|
2697
2696
|
changedParams: G,
|
|
2698
|
-
nextEl:
|
|
2697
|
+
nextEl: v.current,
|
|
2699
2698
|
prevEl: y.current,
|
|
2700
2699
|
scrollbarEl: A.current,
|
|
2701
|
-
paginationEl:
|
|
2700
|
+
paginationEl: C.current
|
|
2702
2701
|
}), () => {
|
|
2703
2702
|
U();
|
|
2704
2703
|
};
|
|
2705
2704
|
}), ee(() => {
|
|
2706
2705
|
Ws(w.current);
|
|
2707
|
-
}, [
|
|
2706
|
+
}, [p]);
|
|
2708
2707
|
function V() {
|
|
2709
|
-
return I.virtual ? Xs(w.current, k,
|
|
2708
|
+
return I.virtual ? Xs(w.current, k, p) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
|
|
2710
2709
|
swiper: w.current,
|
|
2711
2710
|
swiperSlideIndex: j
|
|
2712
2711
|
}));
|
|
2713
2712
|
}
|
|
2714
|
-
return /* @__PURE__ */ $.createElement(r,
|
|
2713
|
+
return /* @__PURE__ */ $.createElement(r, ue({
|
|
2715
2714
|
ref: M,
|
|
2716
2715
|
className: it(`${c}${s ? ` ${s}` : ""}`)
|
|
2717
|
-
},
|
|
2716
|
+
}, S), /* @__PURE__ */ $.createElement(Us.Provider, {
|
|
2718
2717
|
value: w.current
|
|
2719
2718
|
}, L["container-start"], /* @__PURE__ */ $.createElement(n, {
|
|
2720
2719
|
className: Vs(I.wrapperClass)
|
|
@@ -2722,13 +2721,13 @@ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__P
|
|
|
2722
2721
|
ref: y,
|
|
2723
2722
|
className: "swiper-button-prev"
|
|
2724
2723
|
}), /* @__PURE__ */ $.createElement("div", {
|
|
2725
|
-
ref:
|
|
2724
|
+
ref: v,
|
|
2726
2725
|
className: "swiper-button-next"
|
|
2727
2726
|
})), rt(I) && /* @__PURE__ */ $.createElement("div", {
|
|
2728
2727
|
ref: A,
|
|
2729
2728
|
className: "swiper-scrollbar"
|
|
2730
2729
|
}), st(I) && /* @__PURE__ */ $.createElement("div", {
|
|
2731
|
-
ref:
|
|
2730
|
+
ref: C,
|
|
2732
2731
|
className: "swiper-pagination"
|
|
2733
2732
|
}), L["container-end"]));
|
|
2734
2733
|
});
|
|
@@ -2745,14 +2744,14 @@ const ae = /* @__PURE__ */ Ae(function(t, e) {
|
|
|
2745
2744
|
swiperSlideIndex: c,
|
|
2746
2745
|
...d
|
|
2747
2746
|
} = t === void 0 ? {} : t;
|
|
2748
|
-
const
|
|
2749
|
-
function M(
|
|
2750
|
-
y ===
|
|
2747
|
+
const p = D(null), [h, g] = W("swiper-slide"), [m, T] = W(!1);
|
|
2748
|
+
function M(v, y, C) {
|
|
2749
|
+
y === p.current && g(C);
|
|
2751
2750
|
}
|
|
2752
2751
|
ee(() => {
|
|
2753
|
-
if (typeof c < "u" && (
|
|
2752
|
+
if (typeof c < "u" && (p.current.swiperSlideIndex = c), e && (e.current = p.current), !(!p.current || !i)) {
|
|
2754
2753
|
if (i.destroyed) {
|
|
2755
|
-
|
|
2754
|
+
h !== "swiper-slide" && g("swiper-slide");
|
|
2756
2755
|
return;
|
|
2757
2756
|
}
|
|
2758
2757
|
return i.on("_slideClass", M), () => {
|
|
@@ -2760,31 +2759,31 @@ const ae = /* @__PURE__ */ Ae(function(t, e) {
|
|
|
2760
2759
|
};
|
|
2761
2760
|
}
|
|
2762
2761
|
}), ee(() => {
|
|
2763
|
-
i &&
|
|
2762
|
+
i && p.current && !i.destroyed && g(i.getSlideClasses(p.current));
|
|
2764
2763
|
}, [i]);
|
|
2765
2764
|
const w = {
|
|
2766
|
-
isActive:
|
|
2767
|
-
isVisible:
|
|
2768
|
-
isPrev:
|
|
2769
|
-
isNext:
|
|
2770
|
-
},
|
|
2771
|
-
|
|
2765
|
+
isActive: h.indexOf("swiper-slide-active") >= 0,
|
|
2766
|
+
isVisible: h.indexOf("swiper-slide-visible") >= 0,
|
|
2767
|
+
isPrev: h.indexOf("swiper-slide-prev") >= 0,
|
|
2768
|
+
isNext: h.indexOf("swiper-slide-next") >= 0
|
|
2769
|
+
}, u = () => typeof r == "function" ? r(w) : r, f = () => {
|
|
2770
|
+
T(!0);
|
|
2772
2771
|
};
|
|
2773
|
-
return /* @__PURE__ */ $.createElement(s,
|
|
2774
|
-
ref:
|
|
2775
|
-
className: it(`${
|
|
2772
|
+
return /* @__PURE__ */ $.createElement(s, ue({
|
|
2773
|
+
ref: p,
|
|
2774
|
+
className: it(`${h}${n ? ` ${n}` : ""}`),
|
|
2776
2775
|
"data-swiper-slide-index": o,
|
|
2777
|
-
onLoad:
|
|
2776
|
+
onLoad: f
|
|
2778
2777
|
}, d), l && /* @__PURE__ */ $.createElement(De.Provider, {
|
|
2779
2778
|
value: w
|
|
2780
2779
|
}, /* @__PURE__ */ $.createElement("div", {
|
|
2781
2780
|
className: "swiper-zoom-container",
|
|
2782
2781
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
2783
|
-
},
|
|
2782
|
+
}, u(), a && !m && /* @__PURE__ */ $.createElement("div", {
|
|
2784
2783
|
className: "swiper-lazy-preloader"
|
|
2785
2784
|
}))), !l && /* @__PURE__ */ $.createElement(De.Provider, {
|
|
2786
2785
|
value: w
|
|
2787
|
-
},
|
|
2786
|
+
}, u(), a && !m && /* @__PURE__ */ $.createElement("div", {
|
|
2788
2787
|
className: "swiper-lazy-preloader"
|
|
2789
2788
|
})));
|
|
2790
2789
|
});
|
|
@@ -2820,7 +2819,7 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2820
2819
|
name: "ScreenDescription",
|
|
2821
2820
|
class: "s14mdh2e",
|
|
2822
2821
|
propsAsIs: !1
|
|
2823
|
-
}),
|
|
2822
|
+
}), pe = /* @__PURE__ */ _("button")({
|
|
2824
2823
|
name: "ScreenButton",
|
|
2825
2824
|
class: "sqtjig9",
|
|
2826
2825
|
propsAsIs: !1
|
|
@@ -2836,7 +2835,7 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2836
2835
|
name: "EmergencyScreenDescription",
|
|
2837
2836
|
class: "e1xecypc",
|
|
2838
2837
|
propsAsIs: !1
|
|
2839
|
-
}), rr = () =>
|
|
2838
|
+
}), rr = () => pe, ir = /* @__PURE__ */ _(rr())({
|
|
2840
2839
|
name: "EmergencyScreenButton",
|
|
2841
2840
|
class: "e1k6zoyu",
|
|
2842
2841
|
propsAsIs: !0
|
|
@@ -2850,7 +2849,7 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2850
2849
|
name: "ScreenContainerBox",
|
|
2851
2850
|
class: "s28ooi9",
|
|
2852
2851
|
propsAsIs: !1
|
|
2853
|
-
}),
|
|
2852
|
+
}), fe = ({ children: t }) => /* @__PURE__ */ P(nr, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), ar = /* @__PURE__ */ _("img")({
|
|
2854
2853
|
name: "EndScreenMedia",
|
|
2855
2854
|
class: "e8s3kc9",
|
|
2856
2855
|
propsAsIs: !1
|
|
@@ -2863,14 +2862,14 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2863
2862
|
0
|
|
2864
2863
|
/* FIRST */
|
|
2865
2864
|
);
|
|
2866
|
-
return e === 0 ? /* @__PURE__ */ P(
|
|
2865
|
+
return e === 0 ? /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2867
2866
|
/* @__PURE__ */ P(or, {}),
|
|
2868
2867
|
/* @__PURE__ */ F(dt, { children: [
|
|
2869
2868
|
/* @__PURE__ */ P(ct, { children: "Great picks!" }),
|
|
2870
2869
|
/* @__PURE__ */ P(ke, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
|
|
2871
2870
|
] }),
|
|
2872
2871
|
/* @__PURE__ */ P(
|
|
2873
|
-
|
|
2872
|
+
pe,
|
|
2874
2873
|
{
|
|
2875
2874
|
"data-a": "intr",
|
|
2876
2875
|
onClick: () => {
|
|
@@ -2883,10 +2882,10 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2883
2882
|
children: "Continue"
|
|
2884
2883
|
}
|
|
2885
2884
|
)
|
|
2886
|
-
] }) }, "end") : /* @__PURE__ */ P(
|
|
2885
|
+
] }) }, "end") : /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2887
2886
|
/* @__PURE__ */ P(ar, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
|
|
2888
2887
|
/* @__PURE__ */ P(ke, { children: "Look for more live match insights, predictions and more." }),
|
|
2889
|
-
/* @__PURE__ */ P(
|
|
2888
|
+
/* @__PURE__ */ P(pe, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
2890
2889
|
] }) }, "end");
|
|
2891
2890
|
}, cr = /* @__PURE__ */ _("div")({
|
|
2892
2891
|
name: "Container",
|
|
@@ -2896,13 +2895,13 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2896
2895
|
className: t
|
|
2897
2896
|
}) => /* @__PURE__ */ P(cr, {
|
|
2898
2897
|
className: t,
|
|
2899
|
-
children: /* @__PURE__ */ P(
|
|
2900
|
-
}),
|
|
2901
|
-
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null,
|
|
2898
|
+
children: /* @__PURE__ */ P(vt, {})
|
|
2899
|
+
}), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(wt, { close: () => {
|
|
2900
|
+
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, pr = /* @__PURE__ */ _("span")({
|
|
2902
2901
|
name: "NextButton",
|
|
2903
2902
|
class: "n991vvm",
|
|
2904
2903
|
propsAsIs: !1
|
|
2905
|
-
}),
|
|
2904
|
+
}), fr = () => te, mr = /* @__PURE__ */ _(fr())({
|
|
2906
2905
|
name: "IconArrowRight",
|
|
2907
2906
|
class: "inbj36g",
|
|
2908
2907
|
propsAsIs: !0
|
|
@@ -2910,11 +2909,11 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2910
2909
|
name: "StartScreenSponsor",
|
|
2911
2910
|
class: "szrvgt",
|
|
2912
2911
|
propsAsIs: !1
|
|
2913
|
-
}),
|
|
2912
|
+
}), gr = /* @__PURE__ */ _("div")({
|
|
2914
2913
|
name: "StartScreenNote",
|
|
2915
2914
|
class: "swqs2ju",
|
|
2916
2915
|
propsAsIs: !1
|
|
2917
|
-
}),
|
|
2916
|
+
}), vr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2918
2917
|
/* @__PURE__ */ P(ot, {}),
|
|
2919
2918
|
/* @__PURE__ */ F(dt, { children: [
|
|
2920
2919
|
/* @__PURE__ */ P(hr, { children: "FEATURED GROUPS+" }),
|
|
@@ -2922,20 +2921,19 @@ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2922
2921
|
] }),
|
|
2923
2922
|
/* @__PURE__ */ P(ke, { children: "Tee off with these five initial predictions for today’s play." }),
|
|
2924
2923
|
/* @__PURE__ */ F(
|
|
2925
|
-
|
|
2924
|
+
pe,
|
|
2926
2925
|
{
|
|
2927
2926
|
"data-a": "intr",
|
|
2928
2927
|
onClick: () => {
|
|
2929
|
-
|
|
2930
|
-
(s = e.current) == null || s.slideNext();
|
|
2928
|
+
e.current?.slideNext();
|
|
2931
2929
|
},
|
|
2932
2930
|
children: [
|
|
2933
2931
|
t ? `${t} questions available` : "See all questions",
|
|
2934
|
-
/* @__PURE__ */ P(
|
|
2932
|
+
/* @__PURE__ */ P(pr, { children: /* @__PURE__ */ P(mr, { name: "iconArrowRight" }) })
|
|
2935
2933
|
]
|
|
2936
2934
|
}
|
|
2937
2935
|
),
|
|
2938
|
-
/* @__PURE__ */ P(
|
|
2936
|
+
/* @__PURE__ */ P(gr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
|
|
2939
2937
|
] }) }, "start");
|
|
2940
2938
|
function wr(t, e, s, r) {
|
|
2941
2939
|
return t.params.createElements && Object.keys(r).forEach((n) => {
|
|
@@ -2948,7 +2946,7 @@ function wr(t, e, s, r) {
|
|
|
2948
2946
|
function Z(t) {
|
|
2949
2947
|
return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
2950
2948
|
}
|
|
2951
|
-
function
|
|
2949
|
+
function yr(t) {
|
|
2952
2950
|
let {
|
|
2953
2951
|
swiper: e,
|
|
2954
2952
|
extendParams: s,
|
|
@@ -2971,8 +2969,8 @@ function br(t) {
|
|
|
2971
2969
|
// 'bullets' or 'progressbar' or 'fraction' or 'custom'
|
|
2972
2970
|
dynamicBullets: !1,
|
|
2973
2971
|
dynamicMainBullets: 1,
|
|
2974
|
-
formatFractionCurrent: (
|
|
2975
|
-
formatFractionTotal: (
|
|
2972
|
+
formatFractionCurrent: (u) => u,
|
|
2973
|
+
formatFractionTotal: (u) => u,
|
|
2976
2974
|
bulletClass: `${i}-bullet`,
|
|
2977
2975
|
bulletActiveClass: `${i}-bullet-active`,
|
|
2978
2976
|
modifierClass: `${i}-`,
|
|
@@ -2995,201 +2993,200 @@ function br(t) {
|
|
|
2995
2993
|
function o() {
|
|
2996
2994
|
return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
2997
2995
|
}
|
|
2998
|
-
function c(
|
|
2996
|
+
function c(u, f) {
|
|
2999
2997
|
const {
|
|
3000
|
-
bulletActiveClass:
|
|
2998
|
+
bulletActiveClass: v
|
|
3001
2999
|
} = e.params.pagination;
|
|
3002
|
-
|
|
3000
|
+
u && (u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${v}-${f}`), u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${v}-${f}-${f}`)));
|
|
3003
3001
|
}
|
|
3004
|
-
function d(
|
|
3005
|
-
if (
|
|
3002
|
+
function d(u, f, v) {
|
|
3003
|
+
if (u = u % v, f = f % v, f === u + 1)
|
|
3006
3004
|
return "next";
|
|
3007
|
-
if (
|
|
3005
|
+
if (f === u - 1)
|
|
3008
3006
|
return "previous";
|
|
3009
3007
|
}
|
|
3010
|
-
function u
|
|
3011
|
-
const
|
|
3012
|
-
if (!
|
|
3008
|
+
function p(u) {
|
|
3009
|
+
const f = u.target.closest(Z(e.params.pagination.bulletClass));
|
|
3010
|
+
if (!f)
|
|
3013
3011
|
return;
|
|
3014
|
-
|
|
3015
|
-
const
|
|
3012
|
+
u.preventDefault();
|
|
3013
|
+
const v = ce(f) * e.params.slidesPerGroup;
|
|
3016
3014
|
if (e.params.loop) {
|
|
3017
|
-
if (e.realIndex ===
|
|
3018
|
-
const y = d(e.realIndex,
|
|
3019
|
-
y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(
|
|
3015
|
+
if (e.realIndex === v) return;
|
|
3016
|
+
const y = d(e.realIndex, v, e.slides.length);
|
|
3017
|
+
y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(v);
|
|
3020
3018
|
} else
|
|
3021
|
-
e.slideTo(
|
|
3019
|
+
e.slideTo(v);
|
|
3022
3020
|
}
|
|
3023
|
-
function
|
|
3024
|
-
const
|
|
3021
|
+
function h() {
|
|
3022
|
+
const u = e.rtl, f = e.params.pagination;
|
|
3025
3023
|
if (o()) return;
|
|
3026
|
-
let
|
|
3027
|
-
|
|
3028
|
-
let y,
|
|
3024
|
+
let v = e.pagination.el;
|
|
3025
|
+
v = R(v);
|
|
3026
|
+
let y, C;
|
|
3029
3027
|
const A = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, I = e.params.loop ? Math.ceil(A / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
3030
|
-
if (e.params.loop ? (
|
|
3031
|
-
const
|
|
3032
|
-
let
|
|
3033
|
-
if (
|
|
3034
|
-
L.style[e.isHorizontal() ? "width" : "height"] = `${l * (
|
|
3035
|
-
}),
|
|
3036
|
-
const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((
|
|
3028
|
+
if (e.params.loop ? (C = e.previousRealIndex || 0, y = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, C = e.previousSnapIndex) : (C = e.previousIndex || 0, y = e.activeIndex || 0), f.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
3029
|
+
const b = e.pagination.bullets;
|
|
3030
|
+
let S, E, k;
|
|
3031
|
+
if (f.dynamicBullets && (l = xe(b[0], e.isHorizontal() ? "width" : "height"), v.forEach((L) => {
|
|
3032
|
+
L.style[e.isHorizontal() ? "width" : "height"] = `${l * (f.dynamicMainBullets + 4)}px`;
|
|
3033
|
+
}), f.dynamicMainBullets > 1 && C !== void 0 && (a += y - (C || 0), a > f.dynamicMainBullets - 1 ? a = f.dynamicMainBullets - 1 : a < 0 && (a = 0)), S = Math.max(y - a, 0), E = S + (Math.min(b.length, f.dynamicMainBullets) - 1), k = (E + S) / 2), b.forEach((L) => {
|
|
3034
|
+
const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((x) => `${f.bulletActiveClass}${x}`)].map((x) => typeof x == "string" && x.includes(" ") ? x.split(" ") : x).flat();
|
|
3037
3035
|
L.classList.remove(...O);
|
|
3038
|
-
}),
|
|
3039
|
-
|
|
3036
|
+
}), v.length > 1)
|
|
3037
|
+
b.forEach((L) => {
|
|
3040
3038
|
const O = ce(L);
|
|
3041
|
-
O === y ? L.classList.add(...
|
|
3039
|
+
O === y ? L.classList.add(...f.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), f.dynamicBullets && (O >= S && O <= E && L.classList.add(...`${f.bulletActiveClass}-main`.split(" ")), O === S && c(L, "prev"), O === E && c(L, "next"));
|
|
3042
3040
|
});
|
|
3043
3041
|
else {
|
|
3044
|
-
const L =
|
|
3045
|
-
if (L && L.classList.add(...
|
|
3046
|
-
O.setAttribute("part",
|
|
3047
|
-
}),
|
|
3048
|
-
const O = S
|
|
3049
|
-
for (let z =
|
|
3050
|
-
|
|
3051
|
-
c(O, "prev"), c(
|
|
3042
|
+
const L = b[y];
|
|
3043
|
+
if (L && L.classList.add(...f.bulletActiveClass.split(" ")), e.isElement && b.forEach((O, x) => {
|
|
3044
|
+
O.setAttribute("part", x === y ? "bullet-active" : "bullet");
|
|
3045
|
+
}), f.dynamicBullets) {
|
|
3046
|
+
const O = b[S], x = b[E];
|
|
3047
|
+
for (let z = S; z <= E; z += 1)
|
|
3048
|
+
b[z] && b[z].classList.add(...`${f.bulletActiveClass}-main`.split(" "));
|
|
3049
|
+
c(O, "prev"), c(x, "next");
|
|
3052
3050
|
}
|
|
3053
3051
|
}
|
|
3054
|
-
if (
|
|
3055
|
-
const L = Math.min(
|
|
3056
|
-
|
|
3057
|
-
z.style[e.isHorizontal() ?
|
|
3052
|
+
if (f.dynamicBullets) {
|
|
3053
|
+
const L = Math.min(b.length, f.dynamicMainBullets + 4), O = (l * L - l) / 2 - k * l, x = u ? "right" : "left";
|
|
3054
|
+
b.forEach((z) => {
|
|
3055
|
+
z.style[e.isHorizontal() ? x : "top"] = `${O}px`;
|
|
3058
3056
|
});
|
|
3059
3057
|
}
|
|
3060
3058
|
}
|
|
3061
|
-
|
|
3062
|
-
if (
|
|
3063
|
-
|
|
3064
|
-
}),
|
|
3065
|
-
|
|
3066
|
-
})),
|
|
3067
|
-
let
|
|
3068
|
-
|
|
3059
|
+
v.forEach((b, S) => {
|
|
3060
|
+
if (f.type === "fraction" && (b.querySelectorAll(Z(f.currentClass)).forEach((E) => {
|
|
3061
|
+
E.textContent = f.formatFractionCurrent(y + 1);
|
|
3062
|
+
}), b.querySelectorAll(Z(f.totalClass)).forEach((E) => {
|
|
3063
|
+
E.textContent = f.formatFractionTotal(I);
|
|
3064
|
+
})), f.type === "progressbar") {
|
|
3065
|
+
let E;
|
|
3066
|
+
f.progressbarOpposite ? E = e.isHorizontal() ? "vertical" : "horizontal" : E = e.isHorizontal() ? "horizontal" : "vertical";
|
|
3069
3067
|
const k = (y + 1) / I;
|
|
3070
3068
|
let L = 1, O = 1;
|
|
3071
|
-
|
|
3072
|
-
|
|
3069
|
+
E === "horizontal" ? L = k : O = k, b.querySelectorAll(Z(f.progressbarFillClass)).forEach((x) => {
|
|
3070
|
+
x.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, x.style.transitionDuration = `${e.params.speed}ms`;
|
|
3073
3071
|
});
|
|
3074
3072
|
}
|
|
3075
|
-
|
|
3073
|
+
f.type === "custom" && f.renderCustom ? (b.innerHTML = f.renderCustom(e, y + 1, I), S === 0 && n("paginationRender", b)) : (S === 0 && n("paginationRender", b), n("paginationUpdate", b)), e.params.watchOverflow && e.enabled && b.classList[e.isLocked ? "add" : "remove"](f.lockClass);
|
|
3076
3074
|
});
|
|
3077
3075
|
}
|
|
3078
|
-
function
|
|
3079
|
-
const
|
|
3076
|
+
function g() {
|
|
3077
|
+
const u = e.params.pagination;
|
|
3080
3078
|
if (o()) return;
|
|
3081
|
-
const
|
|
3082
|
-
let
|
|
3083
|
-
|
|
3079
|
+
const f = 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;
|
|
3080
|
+
let v = e.pagination.el;
|
|
3081
|
+
v = R(v);
|
|
3084
3082
|
let y = "";
|
|
3085
|
-
if (
|
|
3086
|
-
let
|
|
3087
|
-
e.params.freeMode && e.params.freeMode.enabled &&
|
|
3088
|
-
for (let A = 0; A <
|
|
3089
|
-
|
|
3083
|
+
if (u.type === "bullets") {
|
|
3084
|
+
let C = e.params.loop ? Math.ceil(f / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
3085
|
+
e.params.freeMode && e.params.freeMode.enabled && C > f && (C = f);
|
|
3086
|
+
for (let A = 0; A < C; A += 1)
|
|
3087
|
+
u.renderBullet ? y += u.renderBullet.call(e, A, u.bulletClass) : y += `<${u.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${u.bulletClass}"></${u.bulletElement}>`;
|
|
3090
3088
|
}
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
}),
|
|
3089
|
+
u.type === "fraction" && (u.renderFraction ? y = u.renderFraction.call(e, u.currentClass, u.totalClass) : y = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? y = u.renderProgressbar.call(e, u.progressbarFillClass) : y = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((C) => {
|
|
3090
|
+
u.type !== "custom" && (C.innerHTML = y || ""), u.type === "bullets" && e.pagination.bullets.push(...C.querySelectorAll(Z(u.bulletClass)));
|
|
3091
|
+
}), u.type !== "custom" && n("paginationRender", v[0]);
|
|
3094
3092
|
}
|
|
3095
|
-
function
|
|
3093
|
+
function m() {
|
|
3096
3094
|
e.params.pagination = wr(e, e.originalParams.pagination, e.params.pagination, {
|
|
3097
3095
|
el: "swiper-pagination"
|
|
3098
3096
|
});
|
|
3099
|
-
const
|
|
3100
|
-
if (!
|
|
3101
|
-
let
|
|
3102
|
-
typeof
|
|
3103
|
-
el:
|
|
3104
|
-
}),
|
|
3105
|
-
|
|
3097
|
+
const u = e.params.pagination;
|
|
3098
|
+
if (!u.el) return;
|
|
3099
|
+
let f;
|
|
3100
|
+
typeof u.el == "string" && e.isElement && (f = e.el.querySelector(u.el)), !f && typeof u.el == "string" && (f = [...document.querySelectorAll(u.el)]), f || (f = u.el), !(!f || f.length === 0) && (e.params.uniqueNavElements && typeof u.el == "string" && Array.isArray(f) && f.length > 1 && (f = [...e.el.querySelectorAll(u.el)], f.length > 1 && (f = f.find((v) => Xe(v, ".swiper")[0] === e.el))), Array.isArray(f) && f.length === 1 && (f = f[0]), Object.assign(e.pagination, {
|
|
3101
|
+
el: f
|
|
3102
|
+
}), f = R(f), f.forEach((v) => {
|
|
3103
|
+
u.type === "bullets" && u.clickable && v.classList.add(...(u.clickableClass || "").split(" ")), v.classList.add(u.modifierClass + u.type), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.type === "bullets" && u.dynamicBullets && (v.classList.add(`${u.modifierClass}${u.type}-dynamic`), a = 0, u.dynamicMainBullets < 1 && (u.dynamicMainBullets = 1)), u.type === "progressbar" && u.progressbarOpposite && v.classList.add(u.progressbarOppositeClass), u.clickable && v.addEventListener("click", p), e.enabled || v.classList.add(u.lockClass);
|
|
3106
3104
|
}));
|
|
3107
3105
|
}
|
|
3108
|
-
function
|
|
3109
|
-
const
|
|
3106
|
+
function T() {
|
|
3107
|
+
const u = e.params.pagination;
|
|
3110
3108
|
if (o()) return;
|
|
3111
|
-
let
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
})), e.pagination.bullets && e.pagination.bullets.forEach((
|
|
3109
|
+
let f = e.pagination.el;
|
|
3110
|
+
f && (f = R(f), f.forEach((v) => {
|
|
3111
|
+
v.classList.remove(u.hiddenClass), v.classList.remove(u.modifierClass + u.type), v.classList.remove(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.clickable && (v.classList.remove(...(u.clickableClass || "").split(" ")), v.removeEventListener("click", p));
|
|
3112
|
+
})), e.pagination.bullets && e.pagination.bullets.forEach((v) => v.classList.remove(...u.bulletActiveClass.split(" ")));
|
|
3115
3113
|
}
|
|
3116
3114
|
r("changeDirection", () => {
|
|
3117
3115
|
if (!e.pagination || !e.pagination.el) return;
|
|
3118
|
-
const
|
|
3116
|
+
const u = e.params.pagination;
|
|
3119
3117
|
let {
|
|
3120
|
-
el:
|
|
3118
|
+
el: f
|
|
3121
3119
|
} = e.pagination;
|
|
3122
|
-
|
|
3123
|
-
|
|
3120
|
+
f = R(f), f.forEach((v) => {
|
|
3121
|
+
v.classList.remove(u.horizontalClass, u.verticalClass), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
|
|
3124
3122
|
});
|
|
3125
3123
|
}), r("init", () => {
|
|
3126
|
-
e.params.pagination.enabled === !1 ? w() : (
|
|
3124
|
+
e.params.pagination.enabled === !1 ? w() : (m(), g(), h());
|
|
3127
3125
|
}), r("activeIndexChange", () => {
|
|
3128
|
-
typeof e.snapIndex > "u" &&
|
|
3126
|
+
typeof e.snapIndex > "u" && h();
|
|
3129
3127
|
}), r("snapIndexChange", () => {
|
|
3130
|
-
|
|
3128
|
+
h();
|
|
3131
3129
|
}), r("snapGridLengthChange", () => {
|
|
3132
|
-
|
|
3130
|
+
g(), h();
|
|
3133
3131
|
}), r("destroy", () => {
|
|
3134
|
-
|
|
3132
|
+
T();
|
|
3135
3133
|
}), r("enable disable", () => {
|
|
3136
3134
|
let {
|
|
3137
|
-
el:
|
|
3135
|
+
el: u
|
|
3138
3136
|
} = e.pagination;
|
|
3139
|
-
|
|
3137
|
+
u && (u = R(u), u.forEach((f) => f.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
|
|
3140
3138
|
}), r("lock unlock", () => {
|
|
3141
|
-
|
|
3142
|
-
}), r("click", (
|
|
3143
|
-
const
|
|
3144
|
-
if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !
|
|
3145
|
-
if (e.navigation && (e.navigation.nextEl &&
|
|
3146
|
-
const
|
|
3147
|
-
n(
|
|
3139
|
+
h();
|
|
3140
|
+
}), r("click", (u, f) => {
|
|
3141
|
+
const v = f.target, y = R(e.pagination.el);
|
|
3142
|
+
if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
|
|
3143
|
+
if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
|
|
3144
|
+
const C = y[0].classList.contains(e.params.pagination.hiddenClass);
|
|
3145
|
+
n(C === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
|
|
3148
3146
|
}
|
|
3149
3147
|
});
|
|
3150
3148
|
const M = () => {
|
|
3151
3149
|
e.el.classList.remove(e.params.pagination.paginationDisabledClass);
|
|
3152
3150
|
let {
|
|
3153
|
-
el:
|
|
3151
|
+
el: u
|
|
3154
3152
|
} = e.pagination;
|
|
3155
|
-
|
|
3153
|
+
u && (u = R(u), u.forEach((f) => f.classList.remove(e.params.pagination.paginationDisabledClass))), m(), g(), h();
|
|
3156
3154
|
}, w = () => {
|
|
3157
3155
|
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
3158
3156
|
let {
|
|
3159
|
-
el:
|
|
3157
|
+
el: u
|
|
3160
3158
|
} = e.pagination;
|
|
3161
|
-
|
|
3159
|
+
u && (u = R(u), u.forEach((f) => f.classList.add(e.params.pagination.paginationDisabledClass))), T();
|
|
3162
3160
|
};
|
|
3163
3161
|
Object.assign(e.pagination, {
|
|
3164
3162
|
enable: M,
|
|
3165
3163
|
disable: w,
|
|
3166
|
-
render:
|
|
3167
|
-
update:
|
|
3168
|
-
init:
|
|
3169
|
-
destroy:
|
|
3164
|
+
render: g,
|
|
3165
|
+
update: h,
|
|
3166
|
+
init: m,
|
|
3167
|
+
destroy: T
|
|
3170
3168
|
});
|
|
3171
3169
|
}
|
|
3172
|
-
const
|
|
3170
|
+
const br = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
|
|
3173
3171
|
const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } = He(() => {
|
|
3174
|
-
const
|
|
3172
|
+
const g = t ? Object.values(t) : [];
|
|
3175
3173
|
return {
|
|
3176
|
-
listOfQuestions:
|
|
3177
|
-
countQuestionsAvailable:
|
|
3174
|
+
listOfQuestions: g,
|
|
3175
|
+
countQuestionsAvailable: g.filter(({ marketClosed: m }) => !m).length
|
|
3178
3176
|
};
|
|
3179
3177
|
}, [t]), c = Re(
|
|
3180
|
-
async (
|
|
3178
|
+
async (g, m) => {
|
|
3181
3179
|
try {
|
|
3182
|
-
await e.betPackVote(
|
|
3180
|
+
await e.betPackVote(g, m), s({
|
|
3183
3181
|
type: "slVoted",
|
|
3184
3182
|
payload: {
|
|
3185
|
-
questionId:
|
|
3186
|
-
answerId:
|
|
3183
|
+
questionId: g,
|
|
3184
|
+
answerId: m
|
|
3187
3185
|
}
|
|
3188
3186
|
});
|
|
3189
3187
|
} finally {
|
|
3190
3188
|
i.current && clearTimeout(i.current), n && (i.current = setTimeout(() => {
|
|
3191
|
-
|
|
3192
|
-
(b = l.current) == null || b.slideNext();
|
|
3189
|
+
l.current?.slideNext();
|
|
3193
3190
|
}, 2e3));
|
|
3194
3191
|
}
|
|
3195
3192
|
},
|
|
@@ -3198,14 +3195,8 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3198
3195
|
X(() => (s({
|
|
3199
3196
|
type: "slBetPackReady",
|
|
3200
3197
|
payload: {
|
|
3201
|
-
next: () =>
|
|
3202
|
-
|
|
3203
|
-
return (v = l.current) == null ? void 0 : v.slideNext();
|
|
3204
|
-
},
|
|
3205
|
-
prev: () => {
|
|
3206
|
-
var v;
|
|
3207
|
-
return (v = l.current) == null ? void 0 : v.slidePrev();
|
|
3208
|
-
},
|
|
3198
|
+
next: () => l.current?.slideNext(),
|
|
3199
|
+
prev: () => l.current?.slidePrev(),
|
|
3209
3200
|
current: 0,
|
|
3210
3201
|
canNext: !0,
|
|
3211
3202
|
canPrev: !1
|
|
@@ -3213,25 +3204,24 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3213
3204
|
}), () => {
|
|
3214
3205
|
i.current && clearTimeout(i.current);
|
|
3215
3206
|
}), [s]);
|
|
3216
|
-
const d = (
|
|
3217
|
-
|
|
3218
|
-
const b = v.realIndex;
|
|
3207
|
+
const d = (g) => {
|
|
3208
|
+
const m = g.realIndex;
|
|
3219
3209
|
if (s({
|
|
3220
3210
|
type: "slBetPackChangeCard",
|
|
3221
3211
|
payload: {
|
|
3222
|
-
current:
|
|
3223
|
-
canNext:
|
|
3224
|
-
canPrev:
|
|
3212
|
+
current: m,
|
|
3213
|
+
canNext: m < Object.keys(t).length + 1,
|
|
3214
|
+
canPrev: m >= 1
|
|
3225
3215
|
}
|
|
3226
|
-
}),
|
|
3227
|
-
e.openQuestion(a[
|
|
3216
|
+
}), m !== 0 && m !== Object.keys(t).length + 1 && a[m - 1]?.id) {
|
|
3217
|
+
e.openQuestion(a[m - 1].id, {
|
|
3228
3218
|
openedFrom: "bet-pack",
|
|
3229
3219
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3230
3220
|
// @ts-expect-error
|
|
3231
3221
|
attributes: {
|
|
3232
|
-
id: a[
|
|
3233
|
-
type: a[
|
|
3234
|
-
status: a[
|
|
3222
|
+
id: a[m - 1].id,
|
|
3223
|
+
type: a[m - 1].type,
|
|
3224
|
+
status: a[m - 1].status,
|
|
3235
3225
|
attributes: {
|
|
3236
3226
|
case: void 0
|
|
3237
3227
|
}
|
|
@@ -3240,23 +3230,22 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3240
3230
|
return;
|
|
3241
3231
|
}
|
|
3242
3232
|
e.closeQuestion();
|
|
3243
|
-
}, [
|
|
3233
|
+
}, [p, h] = W(1.1);
|
|
3244
3234
|
return X(() => {
|
|
3245
|
-
const
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
if (!b)
|
|
3235
|
+
const g = gt(() => {
|
|
3236
|
+
const m = l.current?.size;
|
|
3237
|
+
if (!m)
|
|
3249
3238
|
return;
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3239
|
+
const T = 1 + 30 / (m / 100) / 100 * 2;
|
|
3240
|
+
h(Math.ceil(T * 1e3) / 1e3);
|
|
3252
3241
|
}, 200);
|
|
3253
|
-
return window.addEventListener("resize",
|
|
3254
|
-
window.removeEventListener("resize",
|
|
3242
|
+
return window.addEventListener("resize", g), g(), () => {
|
|
3243
|
+
window.removeEventListener("resize", g);
|
|
3255
3244
|
};
|
|
3256
3245
|
}, []), /* @__PURE__ */ F(
|
|
3257
3246
|
Ks,
|
|
3258
3247
|
{
|
|
3259
|
-
slidesPerView:
|
|
3248
|
+
slidesPerView: p,
|
|
3260
3249
|
spaceBetween: 12,
|
|
3261
3250
|
centeredSlides: !0,
|
|
3262
3251
|
centerInsufficientSlides: !0,
|
|
@@ -3264,17 +3253,17 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3264
3253
|
pagination: {
|
|
3265
3254
|
clickable: !0
|
|
3266
3255
|
},
|
|
3267
|
-
modules: [
|
|
3256
|
+
modules: [yr],
|
|
3268
3257
|
onSlideChange: d,
|
|
3269
3258
|
onBeforeSlideChangeStart: () => {
|
|
3270
3259
|
i.current && clearTimeout(i.current);
|
|
3271
3260
|
},
|
|
3272
|
-
onSwiper: (
|
|
3273
|
-
l.current =
|
|
3261
|
+
onSwiper: (g) => {
|
|
3262
|
+
l.current = g;
|
|
3274
3263
|
},
|
|
3275
3264
|
children: [
|
|
3276
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(
|
|
3277
|
-
a.map((
|
|
3265
|
+
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(vr, { sliderRef: l, countQuestionsAvailable: o }) }),
|
|
3266
|
+
a.map((g) => g ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ P(ur, { question: g, vote: c }) }, g.id) }) : null),
|
|
3278
3267
|
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(dr, { onEvent: s }) })
|
|
3279
3268
|
]
|
|
3280
3269
|
}
|
|
@@ -3286,7 +3275,7 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3286
3275
|
{
|
|
3287
3276
|
onEvent: n,
|
|
3288
3277
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3289
|
-
description: l instanceof
|
|
3278
|
+
description: l instanceof yt && l.code !== bt.InvalidArgument ? `The event ID was not
|
|
3290
3279
|
specified or is invalid.` : `The server is unable to
|
|
3291
3280
|
handle this request.`
|
|
3292
3281
|
}
|
|
@@ -3299,7 +3288,7 @@ handle this request.`
|
|
|
3299
3288
|
load the questions.`
|
|
3300
3289
|
}
|
|
3301
3290
|
) : /* @__PURE__ */ P(
|
|
3302
|
-
|
|
3291
|
+
br,
|
|
3303
3292
|
{
|
|
3304
3293
|
data: o.data,
|
|
3305
3294
|
gamification: t,
|
|
@@ -3313,12 +3302,11 @@ handle this request.`
|
|
|
3313
3302
|
name: "BetPackContainer",
|
|
3314
3303
|
class: "b18vssq2",
|
|
3315
3304
|
propsAsIs: !1
|
|
3316
|
-
}), ie = "slBetPackCb",
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
xr.debug({ id: ie, type: t, ...l }), (s = window.top) == null || s.postMessage({ id: ie, type: t, ...l }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...l }), (r = window.slBetPackCb) != null && r.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...l, from: "base" }));
|
|
3305
|
+
}), ie = "slBetPackCb", Tr = St("betPack-ui"), xr = (t, e = {}) => {
|
|
3306
|
+
const { questionId: s, answerId: r } = e, n = { questionId: s, answerId: r };
|
|
3307
|
+
Tr.debug({ id: ie, type: t, ...n }), window.top?.postMessage({ id: ie, type: t, ...n }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...n }), window.slBetPackCb?.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...n, from: "base" }));
|
|
3320
3308
|
}, Cr = (t) => {
|
|
3321
|
-
|
|
3309
|
+
xr(t.type, t.payload);
|
|
3322
3310
|
}, Pr = /* @__PURE__ */ _("div")({
|
|
3323
3311
|
name: "Container",
|
|
3324
3312
|
class: "c1mj28sn",
|
|
@@ -3327,11 +3315,11 @@ handle this request.`
|
|
|
3327
3315
|
name: "CloseButton",
|
|
3328
3316
|
class: "coc9f01",
|
|
3329
3317
|
propsAsIs: !1
|
|
3330
|
-
}), Fe = "b590k5k", kr = () => te,
|
|
3318
|
+
}), Fe = "b590k5k", kr = () => te, ut = /* @__PURE__ */ _(kr())({
|
|
3331
3319
|
name: "IconArrowPrev",
|
|
3332
3320
|
class: "i1tkem14",
|
|
3333
3321
|
propsAsIs: !0
|
|
3334
|
-
}), Ir = () =>
|
|
3322
|
+
}), Ir = () => ut, Lr = /* @__PURE__ */ _(Ir())({
|
|
3335
3323
|
name: "IconArrowNext",
|
|
3336
3324
|
class: "i175qlj5",
|
|
3337
3325
|
propsAsIs: !0
|
|
@@ -3359,25 +3347,24 @@ handle this request.`
|
|
|
3359
3347
|
const [n, i] = W(), [l, a] = W(), o = Re(
|
|
3360
3348
|
(c) => {
|
|
3361
3349
|
if (c.type === "slBetPackReady") {
|
|
3362
|
-
const { next: d, prev:
|
|
3363
|
-
i({ next: d, prev:
|
|
3364
|
-
current:
|
|
3365
|
-
canPrev:
|
|
3366
|
-
canNext:
|
|
3350
|
+
const { next: d, prev: p, current: h, canNext: g, canPrev: m } = c.payload || {};
|
|
3351
|
+
i({ next: d, prev: p }), a((T) => ({
|
|
3352
|
+
current: T?.current ? T?.current : h,
|
|
3353
|
+
canPrev: T?.current ? T?.canPrev : m,
|
|
3354
|
+
canNext: g
|
|
3367
3355
|
}));
|
|
3368
3356
|
}
|
|
3369
3357
|
if (c.type === "slBetPackChangeCard") {
|
|
3370
|
-
const { current: d, canNext:
|
|
3371
|
-
a({ current: d, canNext:
|
|
3358
|
+
const { current: d, canNext: p, canPrev: h } = c.payload || {};
|
|
3359
|
+
a({ current: d, canNext: p, canPrev: h });
|
|
3372
3360
|
}
|
|
3373
|
-
e
|
|
3361
|
+
e?.(c);
|
|
3374
3362
|
},
|
|
3375
3363
|
[e]
|
|
3376
3364
|
);
|
|
3377
3365
|
return X(() => () => {
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
d && ((c = d.betPack) == null || c.off());
|
|
3366
|
+
const c = t.getFeature(qe.GAMES);
|
|
3367
|
+
c && c.betPack?.off();
|
|
3381
3368
|
}, [t]), /* @__PURE__ */ F(Pr, { ref: r, children: [
|
|
3382
3369
|
/* @__PURE__ */ F(Ar, { children: [
|
|
3383
3370
|
/* @__PURE__ */ F(Or, { children: [
|
|
@@ -3388,8 +3375,8 @@ handle this request.`
|
|
|
3388
3375
|
] }),
|
|
3389
3376
|
/* @__PURE__ */ P(zr, { children: /* @__PURE__ */ P(Gr, { sdk: t, onEvent: o, overlay: !0 }) }),
|
|
3390
3377
|
/* @__PURE__ */ F(_r, { children: [
|
|
3391
|
-
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n
|
|
3392
|
-
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n
|
|
3378
|
+
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n?.prev, disabled: !l?.canPrev, children: /* @__PURE__ */ P(ut, { "data-a": "intr", name: "iconArrowPrev", className: Ee(l?.canPrev && Fe) }) }),
|
|
3379
|
+
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n?.next, disabled: !l?.canNext, children: /* @__PURE__ */ P(Lr, { "data-a": "intr", name: "iconArrowPrev", className: Ee(l?.canNext && Fe) }) })
|
|
3393
3380
|
] })
|
|
3394
3381
|
] });
|
|
3395
3382
|
}), $r = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n }) => t.data ? e ? /* @__PURE__ */ P(Sr, { overlay: s, gamification: e, onEvent: n, swipeable: r }) : /* @__PURE__ */ P(Le, {}) : t.error && !t.loading ? /* @__PURE__ */ P(
|
|
@@ -3413,6 +3400,6 @@ view this resource.`
|
|
|
3413
3400
|
);
|
|
3414
3401
|
});
|
|
3415
3402
|
export {
|
|
3416
|
-
Gr as
|
|
3417
|
-
Wr as
|
|
3403
|
+
Gr as D,
|
|
3404
|
+
Wr as a
|
|
3418
3405
|
};
|