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