@streamlayer/react 1.14.8 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/bet-pack.d.ts +1 -11
- package/lib/cjs/advertisement.js +2 -2
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/index2.js +3 -3
- package/lib/cjs/masters2.js +2 -2
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +13 -13
- package/lib/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/app/bet-pack.d.ts +1 -11
- package/lib/classic/cjs/advertisement.js +2 -2
- package/lib/classic/cjs/bet-pack.js +1 -1
- package/lib/classic/cjs/index2.js +3 -3
- package/lib/classic/cjs/masters2.js +2 -2
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +10 -10
- package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/es/advertisement.js +5 -5
- package/lib/classic/es/bet-pack.js +16 -11
- package/lib/classic/es/index2.js +198 -194
- package/lib/classic/es/masters2.js +18 -18
- package/lib/classic/es/notification.js +49 -48
- package/lib/classic/es/points.js +18 -12
- package/lib/classic/es/provider.js +405 -390
- package/lib/classic/es/useStreamLayerApp2.js +535 -515
- package/lib/classic/masters.d.ts +1 -2
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +32 -32
- package/lib/dist/es/gamification-feature2.js +91 -89
- package/lib/dist/es/index.js +7 -8
- package/lib/dist/es/masters.js +3114 -3067
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +5 -5
- package/lib/es/bet-pack.js +16 -11
- package/lib/es/index2.js +198 -194
- package/lib/es/masters2.js +18 -18
- package/lib/es/notification.js +49 -48
- package/lib/es/points.js +18 -12
- package/lib/es/provider.js +405 -390
- package/lib/es/useStreamLayerApp2.js +535 -515
- package/lib/masters.d.ts +1 -2
- package/lib/style.css +1 -1
- package/package.json +14 -14
package/lib/classic/es/index2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import { s as _, k as te, f as mt, g as ft, i as ht, j as
|
|
3
|
-
import $, { forwardRef as Le, useState as W, useRef as D, useEffect as
|
|
2
|
+
import { s as _, k as te, f as mt, g as ft, i as ht, j as vt, l as Se, a as _e } from "./provider.js";
|
|
3
|
+
import $, { forwardRef as Le, useState as W, useRef as D, useEffect as U, useLayoutEffect as gt, createContext as He, useCallback as Ae, useSyncExternalStore as wt, useMemo as Re, memo as bt } from "react";
|
|
4
4
|
import { C as yt, a as St, S as Et } from "./useStreamLayerApp2.js";
|
|
5
5
|
function $e(t) {
|
|
6
6
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
@@ -67,7 +67,7 @@ const qe = {
|
|
|
67
67
|
search: ""
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
function
|
|
70
|
+
function K() {
|
|
71
71
|
const t = typeof document < "u" ? document : {};
|
|
72
72
|
return Oe(t, qe), t;
|
|
73
73
|
}
|
|
@@ -200,10 +200,10 @@ function We(t) {
|
|
|
200
200
|
let l = null, a;
|
|
201
201
|
const o = e.params.speed;
|
|
202
202
|
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
203
|
-
const c = s > i ? "next" : "prev", d = (f,
|
|
203
|
+
const c = s > i ? "next" : "prev", d = (f, v) => c === "next" && f >= v || c === "prev" && f <= v, u = () => {
|
|
204
204
|
a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
|
|
205
|
-
const f = Math.max(Math.min((a - l) / o, 1), 0),
|
|
206
|
-
let h = i +
|
|
205
|
+
const f = Math.max(Math.min((a - l) / o, 1), 0), v = 0.5 - Math.cos(f * Math.PI) / 2;
|
|
206
|
+
let h = i + v * (s - i);
|
|
207
207
|
if (d(h, s) && (h = s), e.wrapperEl.scrollTo({
|
|
208
208
|
[r]: h
|
|
209
209
|
}), d(h, s)) {
|
|
@@ -292,7 +292,7 @@ function R(t) {
|
|
|
292
292
|
}
|
|
293
293
|
let fe;
|
|
294
294
|
function zt() {
|
|
295
|
-
const t = N(), e =
|
|
295
|
+
const t = N(), e = K();
|
|
296
296
|
return {
|
|
297
297
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
298
298
|
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
@@ -311,15 +311,15 @@ function _t(t) {
|
|
|
311
311
|
android: !1
|
|
312
312
|
}, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
313
313
|
let d = i.match(/(iPad).*OS\s([\d_]+)/);
|
|
314
|
-
const u = i.match(/(iPod)(.*OS\s([\d_]+))?/), f = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),
|
|
314
|
+
const u = i.match(/(iPod)(.*OS\s([\d_]+))?/), f = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), v = n === "Win32";
|
|
315
315
|
let h = n === "MacIntel";
|
|
316
316
|
const b = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
317
|
-
return !d && h && s.touch && b.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), h = !1), c && !
|
|
317
|
+
return !d && h && s.touch && b.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), h = !1), c && !v && (l.os = "android", l.android = !0), (d || f || u) && (l.os = "ios", l.ios = !0), l;
|
|
318
318
|
}
|
|
319
319
|
function Ue(t) {
|
|
320
320
|
return t === void 0 && (t = {}), he || (he = _t(t)), he;
|
|
321
321
|
}
|
|
322
|
-
let
|
|
322
|
+
let ve;
|
|
323
323
|
function $t() {
|
|
324
324
|
const t = N(), e = Ue();
|
|
325
325
|
let s = !1;
|
|
@@ -343,7 +343,7 @@ function $t() {
|
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
function Qe() {
|
|
346
|
-
return
|
|
346
|
+
return ve || (ve = $t()), ve;
|
|
347
347
|
}
|
|
348
348
|
function Gt(t) {
|
|
349
349
|
let {
|
|
@@ -360,9 +360,9 @@ function Gt(t) {
|
|
|
360
360
|
l = n.requestAnimationFrame(() => {
|
|
361
361
|
const {
|
|
362
362
|
width: f,
|
|
363
|
-
height:
|
|
363
|
+
height: v
|
|
364
364
|
} = e;
|
|
365
|
-
let h = f, b =
|
|
365
|
+
let h = f, b = v;
|
|
366
366
|
u.forEach((M) => {
|
|
367
367
|
let {
|
|
368
368
|
contentBoxSize: w,
|
|
@@ -370,7 +370,7 @@ function Gt(t) {
|
|
|
370
370
|
target: m
|
|
371
371
|
} = M;
|
|
372
372
|
m && m !== e.el || (h = p ? p.width : (w[0] || w).inlineSize, b = p ? p.height : (w[0] || w).blockSize);
|
|
373
|
-
}), (h !== f || b !==
|
|
373
|
+
}), (h !== f || b !== v) && a();
|
|
374
374
|
});
|
|
375
375
|
}), i.observe(e.el));
|
|
376
376
|
}, c = () => {
|
|
@@ -397,7 +397,7 @@ function Nt(t) {
|
|
|
397
397
|
} = t;
|
|
398
398
|
const i = [], l = N(), a = function(d, u) {
|
|
399
399
|
u === void 0 && (u = {});
|
|
400
|
-
const f = l.MutationObserver || l.WebkitMutationObserver,
|
|
400
|
+
const f = l.MutationObserver || l.WebkitMutationObserver, v = new f((h) => {
|
|
401
401
|
if (e.__preventObserver__) return;
|
|
402
402
|
if (h.length === 1) {
|
|
403
403
|
n("observerUpdate", h[0]);
|
|
@@ -408,11 +408,11 @@ function Nt(t) {
|
|
|
408
408
|
};
|
|
409
409
|
l.requestAnimationFrame ? l.requestAnimationFrame(b) : l.setTimeout(b, 0);
|
|
410
410
|
});
|
|
411
|
-
|
|
411
|
+
v.observe(d, {
|
|
412
412
|
attributes: typeof u.attributes > "u" ? !0 : u.attributes,
|
|
413
413
|
childList: e.isElement || (typeof u.childList > "u" ? !0 : u).childList,
|
|
414
414
|
characterData: typeof u.characterData > "u" ? !0 : u.characterData
|
|
415
|
-
}), i.push(
|
|
415
|
+
}), i.push(v);
|
|
416
416
|
}, o = () => {
|
|
417
417
|
if (e.params.observer) {
|
|
418
418
|
if (e.params.observeParents) {
|
|
@@ -515,13 +515,13 @@ function Ft() {
|
|
|
515
515
|
wrongRTL: a
|
|
516
516
|
} = t, o = t.virtual && s.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = H(n, `.${t.params.slideClass}, swiper-slide`), u = o ? t.virtual.slides.length : d.length;
|
|
517
517
|
let f = [];
|
|
518
|
-
const
|
|
518
|
+
const v = [], h = [];
|
|
519
519
|
let b = s.slidesOffsetBefore;
|
|
520
520
|
typeof b == "function" && (b = s.slidesOffsetBefore.call(t));
|
|
521
521
|
let M = s.slidesOffsetAfter;
|
|
522
522
|
typeof M == "function" && (M = s.slidesOffsetAfter.call(t));
|
|
523
523
|
const w = t.snapGrid.length, p = t.slidesGrid.length;
|
|
524
|
-
let m = s.spaceBetween,
|
|
524
|
+
let m = s.spaceBetween, g = -b, y = 0, T = 0;
|
|
525
525
|
if (typeof i > "u")
|
|
526
526
|
return;
|
|
527
527
|
typeof m == "string" && m.indexOf("%") >= 0 ? m = parseFloat(m.replace("%", "")) / 100 * i : typeof m == "string" && (m = parseFloat(m)), t.virtualSize = -m, d.forEach((E) => {
|
|
@@ -555,7 +555,7 @@ function Ft() {
|
|
|
555
555
|
L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
|
|
556
556
|
} else
|
|
557
557
|
I = (i - (s.slidesPerView - 1) * m) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[E] && (d[E].style[t.getDirectionLabel("width")] = `${I}px`);
|
|
558
|
-
d[E] && (d[E].swiperSlideSize = I), h.push(I), s.centeredSlides ? (
|
|
558
|
+
d[E] && (d[E].swiperSlideSize = I), h.push(I), s.centeredSlides ? (g = g + I / 2 + y / 2 + m, y === 0 && E !== 0 && (g = g - i / 2 - m), E === 0 && (g = g - i / 2 - m), Math.abs(g) < 1 / 1e3 && (g = 0), s.roundLengths && (g = Math.floor(g)), T % s.slidesPerGroup === 0 && f.push(g), v.push(g)) : (s.roundLengths && (g = Math.floor(g)), (T - Math.min(t.params.slidesPerGroupSkip, T)) % t.params.slidesPerGroup === 0 && f.push(g), v.push(g), g = g + I + m), t.virtualSize += I + m, y = I, T += 1;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
if (t.virtualSize = Math.max(t.virtualSize, i) + M, l && a && (s.effect === "slide" || s.effect === "coverflow") && (r.style.width = `${t.virtualSize + m}px`), s.setWrapperSize && (r.style[t.getDirectionLabel("width")] = `${t.virtualSize + m}px`), A && t.grid.updateWrapperSize(I, f), !s.centeredSlides) {
|
|
@@ -574,7 +574,7 @@ function Ft() {
|
|
|
574
574
|
f.push(f[f.length - 1] + k);
|
|
575
575
|
}
|
|
576
576
|
for (let x = 0; x < t.virtual.slidesBefore + t.virtual.slidesAfter; x += 1)
|
|
577
|
-
s.slidesPerGroup === 1 && f.push(f[f.length - 1] + E),
|
|
577
|
+
s.slidesPerGroup === 1 && f.push(f[f.length - 1] + E), v.push(v[v.length - 1] + E), t.virtualSize += E;
|
|
578
578
|
}
|
|
579
579
|
if (f.length === 0 && (f = [0]), m !== 0) {
|
|
580
580
|
const E = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
@@ -600,22 +600,22 @@ function Ft() {
|
|
|
600
600
|
const k = (i - E - x) / 2;
|
|
601
601
|
f.forEach((L, O) => {
|
|
602
602
|
f[O] = L - k;
|
|
603
|
-
}),
|
|
604
|
-
|
|
603
|
+
}), v.forEach((L, O) => {
|
|
604
|
+
v[O] = L + k;
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
if (Object.assign(t, {
|
|
609
609
|
slides: d,
|
|
610
610
|
snapGrid: f,
|
|
611
|
-
slidesGrid:
|
|
611
|
+
slidesGrid: v,
|
|
612
612
|
slidesSizesGrid: h
|
|
613
613
|
}), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
|
|
614
614
|
re(r, "--swiper-centered-offset-before", `${-f[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - h[h.length - 1] / 2}px`);
|
|
615
615
|
const E = -t.snapGrid[0], x = -t.slidesGrid[0];
|
|
616
616
|
t.snapGrid = t.snapGrid.map((k) => k + E), t.slidesGrid = t.slidesGrid.map((k) => k + x);
|
|
617
617
|
}
|
|
618
|
-
if (u !== c && t.emit("slidesLengthChange"), f.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")),
|
|
618
|
+
if (u !== c && t.emit("slidesLengthChange"), f.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), v.length !== p && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
|
|
619
619
|
const E = `${s.containerModifierClass}backface-hidden`, x = t.el.classList.contains(E);
|
|
620
620
|
u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
|
|
621
621
|
}
|
|
@@ -670,7 +670,7 @@ function Ht(t) {
|
|
|
670
670
|
const c = r[o];
|
|
671
671
|
let d = c.swiperSlideOffset;
|
|
672
672
|
s.cssMode && s.centeredSlides && (d -= r[0].swiperSlideOffset);
|
|
673
|
-
const u = (l + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), f = (l - i[0] + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a),
|
|
673
|
+
const u = (l + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), f = (l - i[0] + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), v = -(l - d), h = v + e.slidesSizesGrid[o], b = v >= 0 && v <= e.size - e.slidesSizesGrid[o], M = v >= 0 && v < e.size - 1 || h > 1 && h <= e.size || v <= 0 && h >= e.size;
|
|
674
674
|
M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), Ge(c, M, s.slideVisibleClass), Ge(c, b, s.slideFullyVisibleClass), c.progress = n ? -u : u, c.originalProgress = n ? -f : f;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
@@ -696,8 +696,8 @@ function Rt(t) {
|
|
|
696
696
|
i = d || n <= 0, l = u || n >= 1, d && (n = 0), u && (n = 1);
|
|
697
697
|
}
|
|
698
698
|
if (s.loop) {
|
|
699
|
-
const d = e.getSlideIndexByData(0), u = e.getSlideIndexByData(e.slides.length - 1), f = e.slidesGrid[d],
|
|
700
|
-
b >= f ? a = (b - f) / h : a = (b + h -
|
|
699
|
+
const d = e.getSlideIndexByData(0), u = e.getSlideIndexByData(e.slides.length - 1), f = e.slidesGrid[d], v = e.slidesGrid[u], h = e.slidesGrid[e.slidesGrid.length - 1], b = Math.abs(t);
|
|
700
|
+
b >= f ? a = (b - f) / h : a = (b + h - v) / h, a > 1 && (a -= 1);
|
|
701
701
|
}
|
|
702
702
|
Object.assign(e, {
|
|
703
703
|
progress: n,
|
|
@@ -706,7 +706,7 @@ function Rt(t) {
|
|
|
706
706
|
isEnd: l
|
|
707
707
|
}), (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);
|
|
708
708
|
}
|
|
709
|
-
const
|
|
709
|
+
const ge = (t, e, s) => {
|
|
710
710
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
711
711
|
};
|
|
712
712
|
function qt() {
|
|
@@ -726,7 +726,7 @@ function qt() {
|
|
|
726
726
|
else
|
|
727
727
|
l ? (o = e.find((u) => u.column === n), d = e.find((u) => u.column === n + 1), c = e.find((u) => u.column === n - 1)) : o = e[n];
|
|
728
728
|
o && (l || (d = Ot(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = At(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
|
|
729
|
-
|
|
729
|
+
ge(u, u === o, s.slideActiveClass), ge(u, u === d, s.slideNextClass), ge(u, u === c, s.slidePrevClass);
|
|
730
730
|
}), t.emitSlidesClasses();
|
|
731
731
|
}
|
|
732
732
|
const ne = (t, e) => {
|
|
@@ -787,15 +787,15 @@ function Yt(t) {
|
|
|
787
787
|
snapIndex: a
|
|
788
788
|
} = e;
|
|
789
789
|
let o = t, c;
|
|
790
|
-
const d = (
|
|
791
|
-
let h =
|
|
790
|
+
const d = (v) => {
|
|
791
|
+
let h = v - e.virtual.slidesBefore;
|
|
792
792
|
return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
|
|
793
793
|
};
|
|
794
794
|
if (typeof o > "u" && (o = Wt(e)), r.indexOf(s) >= 0)
|
|
795
795
|
c = r.indexOf(s);
|
|
796
796
|
else {
|
|
797
|
-
const
|
|
798
|
-
c =
|
|
797
|
+
const v = Math.min(n.slidesPerGroupSkip, o);
|
|
798
|
+
c = v + Math.floor((o - v) / n.slidesPerGroup);
|
|
799
799
|
}
|
|
800
800
|
if (c >= r.length && (c = r.length - 1), o === i && !e.params.loop) {
|
|
801
801
|
c !== a && (e.snapIndex = c, e.emit("snapIndexChange"));
|
|
@@ -810,12 +810,12 @@ function Yt(t) {
|
|
|
810
810
|
if (e.virtual && n.virtual.enabled && n.loop)
|
|
811
811
|
f = d(o);
|
|
812
812
|
else if (u) {
|
|
813
|
-
const
|
|
814
|
-
let h = parseInt(
|
|
815
|
-
Number.isNaN(h) && (h = Math.max(e.slides.indexOf(
|
|
813
|
+
const v = e.slides.find((b) => b.column === o);
|
|
814
|
+
let h = parseInt(v.getAttribute("data-swiper-slide-index"), 10);
|
|
815
|
+
Number.isNaN(h) && (h = Math.max(e.slides.indexOf(v), 0)), f = Math.floor(h / n.grid.rows);
|
|
816
816
|
} else if (e.slides[o]) {
|
|
817
|
-
const
|
|
818
|
-
|
|
817
|
+
const v = e.slides[o].getAttribute("data-swiper-slide-index");
|
|
818
|
+
v ? f = parseInt(v, 10) : f = o;
|
|
819
819
|
} else
|
|
820
820
|
f = o;
|
|
821
821
|
Object.assign(e, {
|
|
@@ -999,7 +999,7 @@ function as(t, e, s, r, n) {
|
|
|
999
999
|
previousIndex: d,
|
|
1000
1000
|
activeIndex: u,
|
|
1001
1001
|
rtlTranslate: f,
|
|
1002
|
-
wrapperEl:
|
|
1002
|
+
wrapperEl: v,
|
|
1003
1003
|
enabled: h
|
|
1004
1004
|
} = i;
|
|
1005
1005
|
if (!h && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
|
|
@@ -1026,8 +1026,8 @@ function as(t, e, s, r, n) {
|
|
|
1026
1026
|
const y = i.isHorizontal(), T = f ? w : -w;
|
|
1027
1027
|
if (e === 0)
|
|
1028
1028
|
m && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), m && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1029
|
-
|
|
1030
|
-
})) :
|
|
1029
|
+
v[y ? "scrollLeft" : "scrollTop"] = T;
|
|
1030
|
+
})) : v[y ? "scrollLeft" : "scrollTop"] = T, m && requestAnimationFrame(() => {
|
|
1031
1031
|
i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
|
|
1032
1032
|
});
|
|
1033
1033
|
else {
|
|
@@ -1037,15 +1037,15 @@ function as(t, e, s, r, n) {
|
|
|
1037
1037
|
targetPosition: T,
|
|
1038
1038
|
side: y ? "left" : "top"
|
|
1039
1039
|
}), !0;
|
|
1040
|
-
|
|
1040
|
+
v.scrollTo({
|
|
1041
1041
|
[y ? "left" : "top"]: T,
|
|
1042
1042
|
behavior: "smooth"
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
1045
|
return !0;
|
|
1046
1046
|
}
|
|
1047
|
-
const
|
|
1048
|
-
return m && !n &&
|
|
1047
|
+
const g = Qe().isSafari;
|
|
1048
|
+
return m && !n && g && 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, p), e === 0 ? i.transitionEnd(s, p) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(y) {
|
|
1049
1049
|
!i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, p));
|
|
1050
1050
|
}), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
|
|
1051
1051
|
}
|
|
@@ -1063,7 +1063,7 @@ function ls(t, e, s, r) {
|
|
|
1063
1063
|
let a;
|
|
1064
1064
|
if (i) {
|
|
1065
1065
|
const f = l * n.params.grid.rows;
|
|
1066
|
-
a = n.slides.find((
|
|
1066
|
+
a = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
|
|
1067
1067
|
} else
|
|
1068
1068
|
a = n.getSlideIndexByData(l);
|
|
1069
1069
|
const o = i ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
|
|
@@ -1083,7 +1083,7 @@ function ls(t, e, s, r) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
if (i) {
|
|
1085
1085
|
const f = l * n.params.grid.rows;
|
|
1086
|
-
l = n.slides.find((
|
|
1086
|
+
l = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
|
|
1087
1087
|
} else
|
|
1088
1088
|
l = n.getSlideIndexByData(l);
|
|
1089
1089
|
}
|
|
@@ -1137,12 +1137,12 @@ function ds(t, e, s) {
|
|
|
1137
1137
|
function f(p) {
|
|
1138
1138
|
return p < 0 ? -Math.floor(Math.abs(p)) : Math.floor(p);
|
|
1139
1139
|
}
|
|
1140
|
-
const
|
|
1141
|
-
let M = i[h.indexOf(
|
|
1140
|
+
const v = f(u), h = i.map((p) => f(p)), b = n.freeMode && n.freeMode.enabled;
|
|
1141
|
+
let M = i[h.indexOf(v) - 1];
|
|
1142
1142
|
if (typeof M > "u" && (n.cssMode || b)) {
|
|
1143
1143
|
let p;
|
|
1144
|
-
i.forEach((m,
|
|
1145
|
-
|
|
1144
|
+
i.forEach((m, g) => {
|
|
1145
|
+
v >= m && (p = g);
|
|
1146
1146
|
}), typeof p < "u" && (M = b ? i[p] : i[p > 0 ? p - 1 : p]);
|
|
1147
1147
|
}
|
|
1148
1148
|
let w = 0;
|
|
@@ -1217,8 +1217,8 @@ function fs(t, e) {
|
|
|
1217
1217
|
});
|
|
1218
1218
|
}, 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 = (u) => {
|
|
1219
1219
|
for (let f = 0; f < u; f += 1) {
|
|
1220
|
-
const
|
|
1221
|
-
s.slidesEl.append(
|
|
1220
|
+
const v = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
|
|
1221
|
+
s.slidesEl.append(v);
|
|
1222
1222
|
}
|
|
1223
1223
|
};
|
|
1224
1224
|
if (o) {
|
|
@@ -1261,7 +1261,7 @@ function hs(t) {
|
|
|
1261
1261
|
slides: d,
|
|
1262
1262
|
allowSlidePrev: u,
|
|
1263
1263
|
allowSlideNext: f,
|
|
1264
|
-
slidesEl:
|
|
1264
|
+
slidesEl: v,
|
|
1265
1265
|
params: h
|
|
1266
1266
|
} = c, {
|
|
1267
1267
|
centeredSlides: b,
|
|
@@ -1276,19 +1276,19 @@ function hs(t) {
|
|
|
1276
1276
|
const p = h.slidesPerGroupAuto ? w : h.slidesPerGroup;
|
|
1277
1277
|
let m = p;
|
|
1278
1278
|
m % p !== 0 && (m += p - m % p), m += h.loopAdditionalSlides, c.loopedSlides = m;
|
|
1279
|
-
const
|
|
1280
|
-
d.length < w + m || c.params.effect === "cards" && d.length < w + m * 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") :
|
|
1281
|
-
const y = [], T = [], A =
|
|
1279
|
+
const g = c.grid && h.grid && h.grid.rows > 1;
|
|
1280
|
+
d.length < w + m || c.params.effect === "cards" && d.length < w + m * 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") : g && h.grid.fill === "row" && oe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1281
|
+
const y = [], T = [], A = g ? Math.ceil(d.length / h.grid.rows) : d.length, I = l && A - M < w && !b;
|
|
1282
1282
|
let S = I ? M : c.activeIndex;
|
|
1283
1283
|
typeof i > "u" ? i = c.getSlideIndex(d.find((C) => C.classList.contains(h.slideActiveClass))) : S = i;
|
|
1284
1284
|
const E = r === "next" || !r, x = r === "prev" || !r;
|
|
1285
1285
|
let k = 0, L = 0;
|
|
1286
|
-
const O = (
|
|
1286
|
+
const O = (g ? d[i].column : i) + (b && typeof n > "u" ? -w / 2 + 0.5 : 0);
|
|
1287
1287
|
if (O < m) {
|
|
1288
1288
|
k = Math.max(m - O, p);
|
|
1289
1289
|
for (let C = 0; C < m - O; C += 1) {
|
|
1290
1290
|
const z = C - Math.floor(C / A) * A;
|
|
1291
|
-
if (
|
|
1291
|
+
if (g) {
|
|
1292
1292
|
const X = A - z - 1;
|
|
1293
1293
|
for (let j = d.length - 1; j >= 0; j -= 1)
|
|
1294
1294
|
d[j].column === X && y.push(j);
|
|
@@ -1299,7 +1299,7 @@ function hs(t) {
|
|
|
1299
1299
|
L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
|
|
1300
1300
|
for (let C = 0; C < L; C += 1) {
|
|
1301
1301
|
const z = C - Math.floor(C / A) * A;
|
|
1302
|
-
|
|
1302
|
+
g ? d.forEach((X, j) => {
|
|
1303
1303
|
X.column === z && T.push(j);
|
|
1304
1304
|
}) : T.push(z);
|
|
1305
1305
|
}
|
|
@@ -1307,10 +1307,10 @@ function hs(t) {
|
|
|
1307
1307
|
if (c.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1308
1308
|
c.__preventObserver__ = !1;
|
|
1309
1309
|
}), c.params.effect === "cards" && d.length < w + m * 2 && (T.includes(i) && T.splice(T.indexOf(i), 1), y.includes(i) && y.splice(y.indexOf(i), 1)), x && y.forEach((C) => {
|
|
1310
|
-
d[C].swiperLoopMoveDOM = !0,
|
|
1310
|
+
d[C].swiperLoopMoveDOM = !0, v.prepend(d[C]), d[C].swiperLoopMoveDOM = !1;
|
|
1311
1311
|
}), E && T.forEach((C) => {
|
|
1312
|
-
d[C].swiperLoopMoveDOM = !0,
|
|
1313
|
-
}), c.recalcSlides(), h.slidesPerView === "auto" ? c.updateSlides() :
|
|
1312
|
+
d[C].swiperLoopMoveDOM = !0, v.append(d[C]), d[C].swiperLoopMoveDOM = !1;
|
|
1313
|
+
}), c.recalcSlides(), h.slidesPerView === "auto" ? c.updateSlides() : g && (y.length > 0 && x || T.length > 0 && E) && c.slides.forEach((C, z) => {
|
|
1314
1314
|
c.grid.updateSlide(z, C, c.slides);
|
|
1315
1315
|
}), h.watchSlidesProgress && c.updateSlidesOffset(), s) {
|
|
1316
1316
|
if (y.length > 0 && x) {
|
|
@@ -1318,7 +1318,7 @@ function hs(t) {
|
|
|
1318
1318
|
const C = c.slidesGrid[S], z = c.slidesGrid[S + k] - C;
|
|
1319
1319
|
o ? c.setTranslate(c.translate - z) : (c.slideTo(S + Math.ceil(k), 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
|
|
1320
1320
|
} else if (n) {
|
|
1321
|
-
const C =
|
|
1321
|
+
const C = g ? y.length / h.grid.rows : y.length;
|
|
1322
1322
|
c.slideTo(c.activeIndex + C, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
|
|
1323
1323
|
}
|
|
1324
1324
|
} else if (T.length > 0 && E)
|
|
@@ -1326,7 +1326,7 @@ function hs(t) {
|
|
|
1326
1326
|
const C = c.slidesGrid[S], z = c.slidesGrid[S - L] - C;
|
|
1327
1327
|
o ? c.setTranslate(c.translate - z) : (c.slideTo(S - L, 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
|
|
1328
1328
|
} else {
|
|
1329
|
-
const C =
|
|
1329
|
+
const C = g ? T.length / h.grid.rows : T.length;
|
|
1330
1330
|
c.slideTo(c.activeIndex - C, 0, !1, !0);
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
@@ -1350,7 +1350,7 @@ function hs(t) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
c.emit("loopFix");
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function vs() {
|
|
1354
1354
|
const t = this, {
|
|
1355
1355
|
params: e,
|
|
1356
1356
|
slidesEl: s
|
|
@@ -1367,10 +1367,10 @@ function gs() {
|
|
|
1367
1367
|
s.append(n);
|
|
1368
1368
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1369
1369
|
}
|
|
1370
|
-
var
|
|
1370
|
+
var gs = {
|
|
1371
1371
|
loopCreate: fs,
|
|
1372
1372
|
loopFix: hs,
|
|
1373
|
-
loopDestroy:
|
|
1373
|
+
loopDestroy: vs
|
|
1374
1374
|
};
|
|
1375
1375
|
function ws(t) {
|
|
1376
1376
|
const e = this;
|
|
@@ -1393,7 +1393,7 @@ var ys = {
|
|
|
1393
1393
|
function Ss(t, e) {
|
|
1394
1394
|
e === void 0 && (e = this);
|
|
1395
1395
|
function s(r) {
|
|
1396
|
-
if (!r || r ===
|
|
1396
|
+
if (!r || r === K() || r === N()) return null;
|
|
1397
1397
|
r.assignedSlot && (r = r.assignedSlot);
|
|
1398
1398
|
const n = r.closest(t);
|
|
1399
1399
|
return !n && !r.getRootNode ? null : n || s(r.getRootNode().host);
|
|
@@ -1407,7 +1407,7 @@ function Ne(t, e, s) {
|
|
|
1407
1407
|
return i && (s <= l || s >= r.innerWidth - l) ? i === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1408
1408
|
}
|
|
1409
1409
|
function Es(t) {
|
|
1410
|
-
const e = this, s =
|
|
1410
|
+
const e = this, s = K();
|
|
1411
1411
|
let r = t;
|
|
1412
1412
|
r.originalEvent && (r = r.originalEvent);
|
|
1413
1413
|
const n = e.touchEventsData;
|
|
@@ -1440,8 +1440,8 @@ function Es(t) {
|
|
|
1440
1440
|
if (i.swipeHandler && !o.closest(i.swipeHandler))
|
|
1441
1441
|
return;
|
|
1442
1442
|
l.currentX = r.pageX, l.currentY = r.pageY;
|
|
1443
|
-
const
|
|
1444
|
-
if (!Ne(e, r,
|
|
1443
|
+
const v = l.currentX, h = l.currentY;
|
|
1444
|
+
if (!Ne(e, r, v))
|
|
1445
1445
|
return;
|
|
1446
1446
|
Object.assign(n, {
|
|
1447
1447
|
isTouched: !0,
|
|
@@ -1449,14 +1449,14 @@ function Es(t) {
|
|
|
1449
1449
|
allowTouchCallbacks: !0,
|
|
1450
1450
|
isScrolling: void 0,
|
|
1451
1451
|
startMoving: void 0
|
|
1452
|
-
}), l.startX =
|
|
1452
|
+
}), l.startX = v, l.startY = h, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
|
|
1453
1453
|
let b = !0;
|
|
1454
1454
|
o.matches(n.focusableElements) && (b = !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();
|
|
1455
1455
|
const M = b && e.allowTouchMove && i.touchStartPreventDefault;
|
|
1456
1456
|
(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);
|
|
1457
1457
|
}
|
|
1458
1458
|
function xs(t) {
|
|
1459
|
-
const e =
|
|
1459
|
+
const e = K(), s = this, r = s.touchEventsData, {
|
|
1460
1460
|
params: n,
|
|
1461
1461
|
touches: i,
|
|
1462
1462
|
rtlTranslate: l,
|
|
@@ -1503,11 +1503,11 @@ function xs(t) {
|
|
|
1503
1503
|
return;
|
|
1504
1504
|
}
|
|
1505
1505
|
r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = u;
|
|
1506
|
-
const f = i.currentX - i.startX,
|
|
1507
|
-
if (s.params.threshold && Math.sqrt(f ** 2 +
|
|
1506
|
+
const f = i.currentX - i.startX, v = i.currentY - i.startY;
|
|
1507
|
+
if (s.params.threshold && Math.sqrt(f ** 2 + v ** 2) < s.params.threshold) return;
|
|
1508
1508
|
if (typeof r.isScrolling > "u") {
|
|
1509
1509
|
let T;
|
|
1510
|
-
s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : f * f +
|
|
1510
|
+
s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : f * f + v * v >= 25 && (T = Math.atan2(Math.abs(v), Math.abs(f)) * 180 / Math.PI, r.isScrolling = s.isHorizontal() ? T > n.touchAngle : 90 - T > n.touchAngle);
|
|
1511
1511
|
}
|
|
1512
1512
|
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) {
|
|
1513
1513
|
r.isTouched = !1;
|
|
@@ -1516,7 +1516,7 @@ function xs(t) {
|
|
|
1516
1516
|
if (!r.startMoving)
|
|
1517
1517
|
return;
|
|
1518
1518
|
s.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
|
|
1519
|
-
let h = s.isHorizontal() ? f :
|
|
1519
|
+
let h = s.isHorizontal() ? f : v, b = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
|
|
1520
1520
|
n.oneWayMovement && (h = Math.abs(h) * (l ? 1 : -1), b = Math.abs(b) * (l ? 1 : -1)), i.diff = h, h *= n.touchRatio, l && (h = -h, b = -b);
|
|
1521
1521
|
const M = s.touchesDirection;
|
|
1522
1522
|
s.swipeDirection = h > 0 ? "prev" : "next", s.touchesDirection = b > 0 ? "prev" : "next";
|
|
@@ -1548,16 +1548,16 @@ function xs(t) {
|
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
1550
1550
|
s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = h + r.startTranslate;
|
|
1551
|
-
let
|
|
1551
|
+
let g = !0, y = n.resistanceRatio;
|
|
1552
1552
|
if (n.touchReleaseOnEdges && (y = 0), h > 0 ? (w && p && !m && 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({
|
|
1553
1553
|
direction: "prev",
|
|
1554
1554
|
setTranslate: !0,
|
|
1555
1555
|
activeSlideIndex: 0
|
|
1556
|
-
}), r.currentTranslate > s.minTranslate() && (
|
|
1556
|
+
}), r.currentTranslate > s.minTranslate() && (g = !1, n.resistance && (r.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + r.startTranslate + h) ** y))) : h < 0 && (w && p && !m && 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({
|
|
1557
1557
|
direction: "next",
|
|
1558
1558
|
setTranslate: !0,
|
|
1559
1559
|
activeSlideIndex: s.slides.length - (n.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
|
1560
|
-
}), r.currentTranslate < s.maxTranslate() && (
|
|
1560
|
+
}), r.currentTranslate < s.maxTranslate() && (g = !1, n.resistance && (r.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - r.startTranslate - h) ** y))), g && (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)
|
|
1561
1561
|
if (Math.abs(h) > n.threshold || r.allowThresholdMove) {
|
|
1562
1562
|
if (!r.allowThresholdMove) {
|
|
1563
1563
|
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;
|
|
@@ -1575,7 +1575,7 @@ function Ts(t) {
|
|
|
1575
1575
|
r.originalEvent && (r = r.originalEvent);
|
|
1576
1576
|
let n;
|
|
1577
1577
|
if (r.type === "touchend" || r.type === "touchcancel") {
|
|
1578
|
-
if (n = [...r.changedTouches].find((
|
|
1578
|
+
if (n = [...r.changedTouches].find((g) => g.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
|
|
1579
1579
|
} else {
|
|
1580
1580
|
if (s.touchId !== null || r.pointerId !== s.pointerId) return;
|
|
1581
1581
|
n = r;
|
|
@@ -1598,8 +1598,8 @@ function Ts(t) {
|
|
|
1598
1598
|
i.grabCursor && s.isMoved && s.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
1599
1599
|
const d = le(), u = d - s.touchStartTime;
|
|
1600
1600
|
if (e.allowClick) {
|
|
1601
|
-
const
|
|
1602
|
-
e.updateClickedSlide(
|
|
1601
|
+
const g = r.path || r.composedPath && r.composedPath();
|
|
1602
|
+
e.updateClickedSlide(g && g[0] || r.target, g), e.emit("tap click", r), u < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
|
|
1603
1603
|
}
|
|
1604
1604
|
if (s.lastClickTime = le(), Ee(() => {
|
|
1605
1605
|
e.destroyed || (e.allowClick = !0);
|
|
@@ -1617,11 +1617,11 @@ function Ts(t) {
|
|
|
1617
1617
|
});
|
|
1618
1618
|
return;
|
|
1619
1619
|
}
|
|
1620
|
-
const
|
|
1620
|
+
const v = f >= -e.maxTranslate() && !e.params.loop;
|
|
1621
1621
|
let h = 0, b = e.slidesSizesGrid[0];
|
|
1622
|
-
for (let
|
|
1623
|
-
const y =
|
|
1624
|
-
typeof o[
|
|
1622
|
+
for (let g = 0; g < o.length; g += g < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
|
|
1623
|
+
const y = g < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
1624
|
+
typeof o[g + y] < "u" ? (v || f >= o[g] && f < o[g + y]) && (h = g, b = o[g + y] - o[g]) : (v || f >= o[g]) && (h = g, b = o[o.length - 1] - o[o.length - 2]);
|
|
1625
1625
|
}
|
|
1626
1626
|
let M = null, w = null;
|
|
1627
1627
|
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));
|
|
@@ -1683,7 +1683,7 @@ function ks() {
|
|
|
1683
1683
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1684
1684
|
}
|
|
1685
1685
|
const Je = (t, e) => {
|
|
1686
|
-
const s =
|
|
1686
|
+
const s = K(), {
|
|
1687
1687
|
params: r,
|
|
1688
1688
|
el: n,
|
|
1689
1689
|
wrapperEl: i,
|
|
@@ -1742,22 +1742,22 @@ function Os() {
|
|
|
1742
1742
|
el: n
|
|
1743
1743
|
} = t, i = r.breakpoints;
|
|
1744
1744
|
if (!i || i && Object.keys(i).length === 0) return;
|
|
1745
|
-
const l =
|
|
1745
|
+
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);
|
|
1746
1746
|
if (!c || t.currentBreakpoint === c) return;
|
|
1747
|
-
const d = (c in i ? i[c] : void 0) || t.originalParams, u = De(t, r), f = De(t, d),
|
|
1748
|
-
u && !f ? (n.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), t.emitContainerClasses()) : !u && f && (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()),
|
|
1747
|
+
const d = (c in i ? i[c] : void 0) || t.originalParams, u = De(t, r), f = De(t, d), v = t.params.grabCursor, h = d.grabCursor, b = r.enabled;
|
|
1748
|
+
u && !f ? (n.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), t.emitContainerClasses()) : !u && f && (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()), v && !h ? t.unsetGrabCursor() : !v && h && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => {
|
|
1749
1749
|
if (typeof d[y] > "u") return;
|
|
1750
1750
|
const T = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
|
|
1751
1751
|
T && !A && t[y].disable(), !T && A && t[y].enable();
|
|
1752
1752
|
});
|
|
1753
1753
|
const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), p = r.loop;
|
|
1754
1754
|
M && s && t.changeDirection(), B(t.params, d);
|
|
1755
|
-
const m = t.params.enabled,
|
|
1755
|
+
const m = t.params.enabled, g = t.params.loop;
|
|
1756
1756
|
Object.assign(t, {
|
|
1757
1757
|
allowTouchMove: t.params.allowTouchMove,
|
|
1758
1758
|
allowSlideNext: t.params.allowSlideNext,
|
|
1759
1759
|
allowSlidePrev: t.params.allowSlidePrev
|
|
1760
|
-
}), b && !m ? t.disable() : !b && m && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !p &&
|
|
1760
|
+
}), b && !m ? t.disable() : !b && m && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !p && g ? (t.loopCreate(e), t.updateSlides()) : p && !g && t.loopDestroy()), t.emit("breakpoint", d);
|
|
1761
1761
|
}
|
|
1762
1762
|
function zs(t, e, s) {
|
|
1763
1763
|
if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
|
|
@@ -2000,7 +2000,7 @@ const be = {
|
|
|
2000
2000
|
translate: ts,
|
|
2001
2001
|
transition: ns,
|
|
2002
2002
|
slide: ms,
|
|
2003
|
-
loop:
|
|
2003
|
+
loop: gs,
|
|
2004
2004
|
grabCursor: ys,
|
|
2005
2005
|
events: As,
|
|
2006
2006
|
breakpoints: _s,
|
|
@@ -2013,7 +2013,7 @@ let ze = class q {
|
|
|
2013
2013
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
2014
2014
|
n[i] = arguments[i];
|
|
2015
2015
|
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? s = n[0] : [e, s] = n, s || (s = {}), s = B({}, s), e && !s.el && (s.el = e);
|
|
2016
|
-
const l =
|
|
2016
|
+
const l = K();
|
|
2017
2017
|
if (s.el && typeof s.el == "string" && l.querySelectorAll(s.el).length > 1) {
|
|
2018
2018
|
const d = [];
|
|
2019
2019
|
return l.querySelectorAll(s.el).forEach((u) => {
|
|
@@ -2194,10 +2194,10 @@ let ze = class q {
|
|
|
2194
2194
|
if (typeof n.slidesPerView == "number") return n.slidesPerView;
|
|
2195
2195
|
if (n.centeredSlides) {
|
|
2196
2196
|
let u = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, f;
|
|
2197
|
-
for (let
|
|
2198
|
-
i[
|
|
2199
|
-
for (let
|
|
2200
|
-
i[
|
|
2197
|
+
for (let v = c + 1; v < i.length; v += 1)
|
|
2198
|
+
i[v] && !f && (u += Math.ceil(i[v].swiperSlideSize), d += 1, u > o && (f = !0));
|
|
2199
|
+
for (let v = c - 1; v >= 0; v -= 1)
|
|
2200
|
+
i[v] && !f && (u += i[v].swiperSlideSize, d += 1, u > o && (f = !0));
|
|
2201
2201
|
} else if (e === "current")
|
|
2202
2202
|
for (let u = c + 1; u < i.length; u += 1)
|
|
2203
2203
|
(s ? l[u] + a[u] - l[c] < o : l[u] - l[c] < o) && (d += 1);
|
|
@@ -2435,13 +2435,13 @@ const Ze = [
|
|
|
2435
2435
|
"zoom",
|
|
2436
2436
|
"control"
|
|
2437
2437
|
];
|
|
2438
|
-
function
|
|
2438
|
+
function Q(t) {
|
|
2439
2439
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2441
|
+
function J(t, e) {
|
|
2442
2442
|
const s = ["__proto__", "constructor", "prototype"];
|
|
2443
2443
|
Object.keys(e).filter((r) => s.indexOf(r) < 0).forEach((r) => {
|
|
2444
|
-
typeof t[r] > "u" ? t[r] = e[r] :
|
|
2444
|
+
typeof t[r] > "u" ? t[r] = e[r] : Q(e[r]) && Q(t[r]) && Object.keys(e[r]).length > 0 ? e[r].__swiper__ ? t[r] = e[r] : J(t[r], e[r]) : t[r] = e[r];
|
|
2445
2445
|
});
|
|
2446
2446
|
}
|
|
2447
2447
|
function et(t) {
|
|
@@ -2478,33 +2478,33 @@ function Hs(t) {
|
|
|
2478
2478
|
params: d,
|
|
2479
2479
|
pagination: u,
|
|
2480
2480
|
navigation: f,
|
|
2481
|
-
scrollbar:
|
|
2481
|
+
scrollbar: v,
|
|
2482
2482
|
virtual: h,
|
|
2483
2483
|
thumbs: b
|
|
2484
2484
|
} = e;
|
|
2485
|
-
let M, w, p, m,
|
|
2486
|
-
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) && u && !u.el && (p = !0), n.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) &&
|
|
2485
|
+
let M, w, p, m, g, y, T, A;
|
|
2486
|
+
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) && u && !u.el && (p = !0), n.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) && v && !v.el && (m = !0), n.includes("navigation") && r.navigation && (r.navigation.prevEl || l) && (r.navigation.nextEl || i) && (d.navigation || d.navigation === !1) && f && !f.prevEl && !f.nextEl && (g = !0);
|
|
2487
2487
|
const I = (S) => {
|
|
2488
2488
|
e[S] && (e[S].destroy(), S === "navigation" ? (e.isElement && (e[S].prevEl.remove(), e[S].nextEl.remove()), d[S].prevEl = void 0, d[S].nextEl = void 0, e[S].prevEl = void 0, e[S].nextEl = void 0) : (e.isElement && e[S].el.remove(), d[S].el = void 0, e[S].el = void 0));
|
|
2489
2489
|
};
|
|
2490
2490
|
n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ? T = !0 : A = !0), c.forEach((S) => {
|
|
2491
|
-
if (
|
|
2491
|
+
if (Q(d[S]) && Q(r[S]))
|
|
2492
2492
|
Object.assign(d[S], r[S]), (S === "navigation" || S === "pagination" || S === "scrollbar") && "enabled" in r[S] && !r[S].enabled && I(S);
|
|
2493
2493
|
else {
|
|
2494
2494
|
const E = r[S];
|
|
2495
2495
|
(E === !0 || E === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? E === !1 && I(S) : d[S] = r[S];
|
|
2496
2496
|
}
|
|
2497
|
-
}), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && h && d.virtual.enabled ? (h.slides = s, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (s && (h.slides = s), h.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && b.init() && b.update(!0), w && (e.controller.control = d.controller.control), p && (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), u.init(), u.render(), u.update()), m && (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),
|
|
2497
|
+
}), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && h && d.virtual.enabled ? (h.slides = s, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (s && (h.slides = s), h.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && b.init() && b.update(!0), w && (e.controller.control = d.controller.control), p && (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), u.init(), u.render(), u.update()), m && (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), v.init(), v.updateSize(), v.setTranslate()), g && (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), f.init(), f.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(), (T || A) && e.loopCreate(), e.update();
|
|
2498
2498
|
}
|
|
2499
2499
|
function Rs(t, e) {
|
|
2500
2500
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2501
2501
|
const s = {
|
|
2502
2502
|
on: {}
|
|
2503
2503
|
}, r = {}, n = {};
|
|
2504
|
-
|
|
2504
|
+
J(s, Ce), s._emitClasses = !0, s.init = !1;
|
|
2505
2505
|
const i = {}, l = Ze.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
|
|
2506
2506
|
return Object.keys(a).forEach((o) => {
|
|
2507
|
-
typeof t[o] > "u" || (l.indexOf(o) >= 0 ?
|
|
2507
|
+
typeof t[o] > "u" || (l.indexOf(o) >= 0 ? Q(t[o]) ? (s[o] = {}, n[o] = {}, J(s[o], t[o]), J(n[o], t[o])) : (s[o] = t[o], n[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? e ? r[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : s.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : i[o] = t[o]);
|
|
2508
2508
|
}), ["navigation", "pagination", "scrollbar"].forEach((o) => {
|
|
2509
2509
|
s[o] === !0 && (s[o] = {}), s[o] === !1 && delete s[o];
|
|
2510
2510
|
}), {
|
|
@@ -2537,7 +2537,7 @@ function Ws(t, e, s, r, n) {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
return Ze.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
|
2539
2539
|
if (a in t && a in e)
|
|
2540
|
-
if (
|
|
2540
|
+
if (Q(t[a]) && Q(e[a])) {
|
|
2541
2541
|
const o = Object.keys(t[a]), c = Object.keys(e[a]);
|
|
2542
2542
|
o.length !== c.length ? l(a) : (o.forEach((d) => {
|
|
2543
2543
|
t[a][d] !== e[a][d] && l(a);
|
|
@@ -2613,7 +2613,7 @@ function Us(t, e, s) {
|
|
|
2613
2613
|
}));
|
|
2614
2614
|
}
|
|
2615
2615
|
function ee(t, e) {
|
|
2616
|
-
return typeof window > "u" ?
|
|
2616
|
+
return typeof window > "u" ? U(t, e) : gt(t, e);
|
|
2617
2617
|
}
|
|
2618
2618
|
const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__PURE__ */ Le(function(t, e) {
|
|
2619
2619
|
let {
|
|
@@ -2624,7 +2624,7 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2624
2624
|
onSwiper: l,
|
|
2625
2625
|
...a
|
|
2626
2626
|
} = t === void 0 ? {} : t, o = !1;
|
|
2627
|
-
const [c, d] = W("swiper"), [u, f] = W(null), [
|
|
2627
|
+
const [c, d] = W("swiper"), [u, f] = W(null), [v, h] = W(!1), b = D(!1), M = D(null), w = D(null), p = D(null), m = D(null), g = D(null), y = D(null), T = D(null), A = D(null), {
|
|
2628
2628
|
params: I,
|
|
2629
2629
|
passedParams: S,
|
|
2630
2630
|
rest: E,
|
|
@@ -2633,7 +2633,7 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2633
2633
|
slides: k,
|
|
2634
2634
|
slots: L
|
|
2635
2635
|
} = Xs(i), O = () => {
|
|
2636
|
-
h(!
|
|
2636
|
+
h(!v);
|
|
2637
2637
|
};
|
|
2638
2638
|
Object.assign(I.on, {
|
|
2639
2639
|
_containerClasses(G, V) {
|
|
@@ -2653,7 +2653,7 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2653
2653
|
renderExternal: f,
|
|
2654
2654
|
renderExternalUpdate: !1
|
|
2655
2655
|
};
|
|
2656
|
-
|
|
2656
|
+
J(w.current.params.virtual, V), J(w.current.originalParams.virtual, V);
|
|
2657
2657
|
}
|
|
2658
2658
|
};
|
|
2659
2659
|
M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
|
|
@@ -2666,15 +2666,15 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2666
2666
|
w.current.off(G, x[G]);
|
|
2667
2667
|
});
|
|
2668
2668
|
};
|
|
2669
|
-
|
|
2669
|
+
U(() => () => {
|
|
2670
2670
|
w.current && w.current.off("_beforeBreakpoint", O);
|
|
2671
|
-
}),
|
|
2671
|
+
}), U(() => {
|
|
2672
2672
|
!b.current && w.current && (w.current.emitSlidesClasses(), b.current = !0);
|
|
2673
2673
|
}), ee(() => {
|
|
2674
2674
|
if (e && (e.current = M.current), !!M.current)
|
|
2675
2675
|
return w.current.destroyed && C(), qs({
|
|
2676
2676
|
el: M.current,
|
|
2677
|
-
nextEl:
|
|
2677
|
+
nextEl: g.current,
|
|
2678
2678
|
prevEl: y.current,
|
|
2679
2679
|
paginationEl: T.current,
|
|
2680
2680
|
scrollbarEl: A.current,
|
|
@@ -2690,7 +2690,7 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2690
2690
|
slides: k,
|
|
2691
2691
|
passedParams: S,
|
|
2692
2692
|
changedParams: G,
|
|
2693
|
-
nextEl:
|
|
2693
|
+
nextEl: g.current,
|
|
2694
2694
|
prevEl: y.current,
|
|
2695
2695
|
scrollbarEl: A.current,
|
|
2696
2696
|
paginationEl: T.current
|
|
@@ -2717,7 +2717,7 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2717
2717
|
ref: y,
|
|
2718
2718
|
className: "swiper-button-prev"
|
|
2719
2719
|
}), /* @__PURE__ */ $.createElement("div", {
|
|
2720
|
-
ref:
|
|
2720
|
+
ref: g,
|
|
2721
2721
|
className: "swiper-button-next"
|
|
2722
2722
|
})), st(I) && /* @__PURE__ */ $.createElement("div", {
|
|
2723
2723
|
ref: A,
|
|
@@ -2740,14 +2740,14 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2740
2740
|
swiperSlideIndex: c,
|
|
2741
2741
|
...d
|
|
2742
2742
|
} = t === void 0 ? {} : t;
|
|
2743
|
-
const u = D(null), [f,
|
|
2744
|
-
function M(
|
|
2745
|
-
y === u.current &&
|
|
2743
|
+
const u = D(null), [f, v] = W("swiper-slide"), [h, b] = W(!1);
|
|
2744
|
+
function M(g, y, T) {
|
|
2745
|
+
y === u.current && v(T);
|
|
2746
2746
|
}
|
|
2747
2747
|
ee(() => {
|
|
2748
2748
|
if (typeof c < "u" && (u.current.swiperSlideIndex = c), e && (e.current = u.current), !(!u.current || !i)) {
|
|
2749
2749
|
if (i.destroyed) {
|
|
2750
|
-
f !== "swiper-slide" &&
|
|
2750
|
+
f !== "swiper-slide" && v("swiper-slide");
|
|
2751
2751
|
return;
|
|
2752
2752
|
}
|
|
2753
2753
|
return i.on("_slideClass", M), () => {
|
|
@@ -2755,7 +2755,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
2757
|
}), ee(() => {
|
|
2758
|
-
i && u.current && !i.destroyed &&
|
|
2758
|
+
i && u.current && !i.destroyed && v(i.getSlideClasses(u.current));
|
|
2759
2759
|
}, [i]);
|
|
2760
2760
|
const w = {
|
|
2761
2761
|
isActive: f.indexOf("swiper-slide-active") >= 0,
|
|
@@ -2835,7 +2835,7 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2835
2835
|
name: "EmergencyScreenButton",
|
|
2836
2836
|
class: "e1k6zoyu",
|
|
2837
2837
|
propsAsIs: !0
|
|
2838
|
-
}), ke = ({ actionFn: t, description: e, className: s, onEvent: r }) => (
|
|
2838
|
+
}), ke = ({ actionFn: t, description: e, className: s, onEvent: r }) => (U(() => {
|
|
2839
2839
|
r({ type: "slBetPackReady" });
|
|
2840
2840
|
}, [r]), /* @__PURE__ */ F(tr, { className: s, children: [
|
|
2841
2841
|
/* @__PURE__ */ P(sr, { children: "Something went wrong." }),
|
|
@@ -2867,6 +2867,7 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2867
2867
|
/* @__PURE__ */ P(
|
|
2868
2868
|
ue,
|
|
2869
2869
|
{
|
|
2870
|
+
"data-a": "intr",
|
|
2870
2871
|
onClick: () => {
|
|
2871
2872
|
r(
|
|
2872
2873
|
1
|
|
@@ -2880,7 +2881,7 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2880
2881
|
] }) }, "end") : /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
|
|
2881
2882
|
/* @__PURE__ */ P(lr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
|
|
2882
2883
|
/* @__PURE__ */ P(Me, { children: "Look for more live match insights, predictions and more." }),
|
|
2883
|
-
/* @__PURE__ */ P(ue, { onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
2884
|
+
/* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
2884
2885
|
] }) }, "end");
|
|
2885
2886
|
}, pr = /* @__PURE__ */ _("div")({
|
|
2886
2887
|
name: "Container",
|
|
@@ -2900,24 +2901,25 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2900
2901
|
name: "IconArrowRight",
|
|
2901
2902
|
class: "inbj36g",
|
|
2902
2903
|
propsAsIs: !0
|
|
2903
|
-
}),
|
|
2904
|
+
}), vr = /* @__PURE__ */ _("div")({
|
|
2904
2905
|
name: "StartScreenSponsor",
|
|
2905
2906
|
class: "szrvgt",
|
|
2906
2907
|
propsAsIs: !1
|
|
2907
|
-
}),
|
|
2908
|
+
}), gr = /* @__PURE__ */ _("div")({
|
|
2908
2909
|
name: "StartScreenNote",
|
|
2909
2910
|
class: "swqs2ju",
|
|
2910
2911
|
propsAsIs: !1
|
|
2911
2912
|
}), wr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Pe, { children: [
|
|
2912
2913
|
/* @__PURE__ */ P(lt, {}),
|
|
2913
2914
|
/* @__PURE__ */ F(ot, { children: [
|
|
2914
|
-
/* @__PURE__ */ P(
|
|
2915
|
+
/* @__PURE__ */ P(vr, { children: "FEATURED GROUPS+" }),
|
|
2915
2916
|
/* @__PURE__ */ P(dt, { children: "The First Five" })
|
|
2916
2917
|
] }),
|
|
2917
2918
|
/* @__PURE__ */ P(Me, { children: "Tee off with these five initial predictions for today’s play." }),
|
|
2918
2919
|
/* @__PURE__ */ F(
|
|
2919
2920
|
ue,
|
|
2920
2921
|
{
|
|
2922
|
+
"data-a": "intr",
|
|
2921
2923
|
onClick: () => {
|
|
2922
2924
|
var s;
|
|
2923
2925
|
(s = e.current) == null || s.slideNext();
|
|
@@ -2928,7 +2930,7 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2928
2930
|
]
|
|
2929
2931
|
}
|
|
2930
2932
|
),
|
|
2931
|
-
/* @__PURE__ */ P(
|
|
2933
|
+
/* @__PURE__ */ P(gr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
|
|
2932
2934
|
] }) }, "start");
|
|
2933
2935
|
function br(t, e, s) {
|
|
2934
2936
|
let r = new Set(e).add(void 0);
|
|
@@ -3003,12 +3005,12 @@ function Er(t) {
|
|
|
3003
3005
|
}
|
|
3004
3006
|
function c(p, m) {
|
|
3005
3007
|
const {
|
|
3006
|
-
bulletActiveClass:
|
|
3008
|
+
bulletActiveClass: g
|
|
3007
3009
|
} = e.params.pagination;
|
|
3008
|
-
p && (p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${
|
|
3010
|
+
p && (p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${g}-${m}`), p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && p.classList.add(`${g}-${m}-${m}`)));
|
|
3009
3011
|
}
|
|
3010
|
-
function d(p, m,
|
|
3011
|
-
if (p = p %
|
|
3012
|
+
function d(p, m, g) {
|
|
3013
|
+
if (p = p % g, m = m % g, m === p + 1)
|
|
3012
3014
|
return "next";
|
|
3013
3015
|
if (m === p - 1)
|
|
3014
3016
|
return "previous";
|
|
@@ -3018,30 +3020,30 @@ function Er(t) {
|
|
|
3018
3020
|
if (!m)
|
|
3019
3021
|
return;
|
|
3020
3022
|
p.preventDefault();
|
|
3021
|
-
const
|
|
3023
|
+
const g = ce(m) * e.params.slidesPerGroup;
|
|
3022
3024
|
if (e.params.loop) {
|
|
3023
|
-
if (e.realIndex ===
|
|
3024
|
-
const y = d(e.realIndex,
|
|
3025
|
-
y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(
|
|
3025
|
+
if (e.realIndex === g) return;
|
|
3026
|
+
const y = d(e.realIndex, g, e.slides.length);
|
|
3027
|
+
y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(g);
|
|
3026
3028
|
} else
|
|
3027
|
-
e.slideTo(
|
|
3029
|
+
e.slideTo(g);
|
|
3028
3030
|
}
|
|
3029
3031
|
function f() {
|
|
3030
3032
|
const p = e.rtl, m = e.params.pagination;
|
|
3031
3033
|
if (o()) return;
|
|
3032
|
-
let
|
|
3033
|
-
|
|
3034
|
+
let g = e.pagination.el;
|
|
3035
|
+
g = R(g);
|
|
3034
3036
|
let y, T;
|
|
3035
3037
|
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;
|
|
3036
3038
|
if (e.params.loop ? (T = e.previousRealIndex || 0, y = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, T = e.previousSnapIndex) : (T = e.previousIndex || 0, y = e.activeIndex || 0), m.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
3037
3039
|
const S = e.pagination.bullets;
|
|
3038
3040
|
let E, x, k;
|
|
3039
|
-
if (m.dynamicBullets && (l = xe(S[0], e.isHorizontal() ? "width" : "height"),
|
|
3041
|
+
if (m.dynamicBullets && (l = xe(S[0], e.isHorizontal() ? "width" : "height"), g.forEach((L) => {
|
|
3040
3042
|
L.style[e.isHorizontal() ? "width" : "height"] = `${l * (m.dynamicMainBullets + 4)}px`;
|
|
3041
3043
|
}), m.dynamicMainBullets > 1 && T !== void 0 && (a += y - (T || 0), a > m.dynamicMainBullets - 1 ? a = m.dynamicMainBullets - 1 : a < 0 && (a = 0)), E = Math.max(y - a, 0), x = E + (Math.min(S.length, m.dynamicMainBullets) - 1), k = (x + E) / 2), S.forEach((L) => {
|
|
3042
3044
|
const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((C) => `${m.bulletActiveClass}${C}`)].map((C) => typeof C == "string" && C.includes(" ") ? C.split(" ") : C).flat();
|
|
3043
3045
|
L.classList.remove(...O);
|
|
3044
|
-
}),
|
|
3046
|
+
}), g.length > 1)
|
|
3045
3047
|
S.forEach((L) => {
|
|
3046
3048
|
const O = ce(L);
|
|
3047
3049
|
O === y ? L.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), m.dynamicBullets && (O >= E && O <= x && L.classList.add(...`${m.bulletActiveClass}-main`.split(" ")), O === E && c(L, "prev"), O === x && c(L, "next"));
|
|
@@ -3064,7 +3066,7 @@ function Er(t) {
|
|
|
3064
3066
|
});
|
|
3065
3067
|
}
|
|
3066
3068
|
}
|
|
3067
|
-
|
|
3069
|
+
g.forEach((S, E) => {
|
|
3068
3070
|
if (m.type === "fraction" && (S.querySelectorAll(Z(m.currentClass)).forEach((x) => {
|
|
3069
3071
|
x.textContent = m.formatFractionCurrent(y + 1);
|
|
3070
3072
|
}), S.querySelectorAll(Z(m.totalClass)).forEach((x) => {
|
|
@@ -3081,12 +3083,12 @@ function Er(t) {
|
|
|
3081
3083
|
m.type === "custom" && m.renderCustom ? (S.innerHTML = m.renderCustom(e, y + 1, I), E === 0 && n("paginationRender", S)) : (E === 0 && n("paginationRender", S), n("paginationUpdate", S)), e.params.watchOverflow && e.enabled && S.classList[e.isLocked ? "add" : "remove"](m.lockClass);
|
|
3082
3084
|
});
|
|
3083
3085
|
}
|
|
3084
|
-
function
|
|
3086
|
+
function v() {
|
|
3085
3087
|
const p = e.params.pagination;
|
|
3086
3088
|
if (o()) return;
|
|
3087
3089
|
const m = 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;
|
|
3088
|
-
let
|
|
3089
|
-
|
|
3090
|
+
let g = e.pagination.el;
|
|
3091
|
+
g = R(g);
|
|
3090
3092
|
let y = "";
|
|
3091
3093
|
if (p.type === "bullets") {
|
|
3092
3094
|
let T = e.params.loop ? Math.ceil(m / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
@@ -3094,9 +3096,9 @@ function Er(t) {
|
|
|
3094
3096
|
for (let A = 0; A < T; A += 1)
|
|
3095
3097
|
p.renderBullet ? y += p.renderBullet.call(e, A, p.bulletClass) : y += `<${p.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}"></${p.bulletElement}>`;
|
|
3096
3098
|
}
|
|
3097
|
-
p.type === "fraction" && (p.renderFraction ? y = p.renderFraction.call(e, p.currentClass, p.totalClass) : y = `<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`), p.type === "progressbar" && (p.renderProgressbar ? y = p.renderProgressbar.call(e, p.progressbarFillClass) : y = `<span class="${p.progressbarFillClass}"></span>`), e.pagination.bullets = [],
|
|
3099
|
+
p.type === "fraction" && (p.renderFraction ? y = p.renderFraction.call(e, p.currentClass, p.totalClass) : y = `<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`), p.type === "progressbar" && (p.renderProgressbar ? y = p.renderProgressbar.call(e, p.progressbarFillClass) : y = `<span class="${p.progressbarFillClass}"></span>`), e.pagination.bullets = [], g.forEach((T) => {
|
|
3098
3100
|
p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(Z(p.bulletClass)));
|
|
3099
|
-
}), p.type !== "custom" && n("paginationRender",
|
|
3101
|
+
}), p.type !== "custom" && n("paginationRender", g[0]);
|
|
3100
3102
|
}
|
|
3101
3103
|
function h() {
|
|
3102
3104
|
e.params.pagination = Sr(e, e.originalParams.pagination, e.params.pagination, {
|
|
@@ -3105,19 +3107,19 @@ function Er(t) {
|
|
|
3105
3107
|
const p = e.params.pagination;
|
|
3106
3108
|
if (!p.el) return;
|
|
3107
3109
|
let m;
|
|
3108
|
-
typeof p.el == "string" && e.isElement && (m = e.el.querySelector(p.el)), !m && typeof p.el == "string" && (m = [...document.querySelectorAll(p.el)]), m || (m = p.el), !(!m || m.length === 0) && (e.params.uniqueNavElements && typeof p.el == "string" && Array.isArray(m) && m.length > 1 && (m = [...e.el.querySelectorAll(p.el)], m.length > 1 && (m = m.find((
|
|
3110
|
+
typeof p.el == "string" && e.isElement && (m = e.el.querySelector(p.el)), !m && typeof p.el == "string" && (m = [...document.querySelectorAll(p.el)]), m || (m = p.el), !(!m || m.length === 0) && (e.params.uniqueNavElements && typeof p.el == "string" && Array.isArray(m) && m.length > 1 && (m = [...e.el.querySelectorAll(p.el)], m.length > 1 && (m = m.find((g) => Ye(g, ".swiper")[0] === e.el))), Array.isArray(m) && m.length === 1 && (m = m[0]), Object.assign(e.pagination, {
|
|
3109
3111
|
el: m
|
|
3110
|
-
}), m = R(m), m.forEach((
|
|
3111
|
-
p.type === "bullets" && p.clickable &&
|
|
3112
|
+
}), m = R(m), m.forEach((g) => {
|
|
3113
|
+
p.type === "bullets" && p.clickable && g.classList.add(...(p.clickableClass || "").split(" ")), g.classList.add(p.modifierClass + p.type), g.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.type === "bullets" && p.dynamicBullets && (g.classList.add(`${p.modifierClass}${p.type}-dynamic`), a = 0, p.dynamicMainBullets < 1 && (p.dynamicMainBullets = 1)), p.type === "progressbar" && p.progressbarOpposite && g.classList.add(p.progressbarOppositeClass), p.clickable && g.addEventListener("click", u), e.enabled || g.classList.add(p.lockClass);
|
|
3112
3114
|
}));
|
|
3113
3115
|
}
|
|
3114
3116
|
function b() {
|
|
3115
3117
|
const p = e.params.pagination;
|
|
3116
3118
|
if (o()) return;
|
|
3117
3119
|
let m = e.pagination.el;
|
|
3118
|
-
m && (m = R(m), m.forEach((
|
|
3119
|
-
|
|
3120
|
-
})), e.pagination.bullets && e.pagination.bullets.forEach((
|
|
3120
|
+
m && (m = R(m), m.forEach((g) => {
|
|
3121
|
+
g.classList.remove(p.hiddenClass), g.classList.remove(p.modifierClass + p.type), g.classList.remove(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.clickable && (g.classList.remove(...(p.clickableClass || "").split(" ")), g.removeEventListener("click", u));
|
|
3122
|
+
})), e.pagination.bullets && e.pagination.bullets.forEach((g) => g.classList.remove(...p.bulletActiveClass.split(" ")));
|
|
3121
3123
|
}
|
|
3122
3124
|
r("changeDirection", () => {
|
|
3123
3125
|
if (!e.pagination || !e.pagination.el) return;
|
|
@@ -3125,17 +3127,17 @@ function Er(t) {
|
|
|
3125
3127
|
let {
|
|
3126
3128
|
el: m
|
|
3127
3129
|
} = e.pagination;
|
|
3128
|
-
m = R(m), m.forEach((
|
|
3129
|
-
|
|
3130
|
+
m = R(m), m.forEach((g) => {
|
|
3131
|
+
g.classList.remove(p.horizontalClass, p.verticalClass), g.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
|
|
3130
3132
|
});
|
|
3131
3133
|
}), r("init", () => {
|
|
3132
|
-
e.params.pagination.enabled === !1 ? w() : (h(),
|
|
3134
|
+
e.params.pagination.enabled === !1 ? w() : (h(), v(), f());
|
|
3133
3135
|
}), r("activeIndexChange", () => {
|
|
3134
3136
|
typeof e.snapIndex > "u" && f();
|
|
3135
3137
|
}), r("snapIndexChange", () => {
|
|
3136
3138
|
f();
|
|
3137
3139
|
}), r("snapGridLengthChange", () => {
|
|
3138
|
-
|
|
3140
|
+
v(), f();
|
|
3139
3141
|
}), r("destroy", () => {
|
|
3140
3142
|
b();
|
|
3141
3143
|
}), r("enable disable", () => {
|
|
@@ -3146,9 +3148,9 @@ function Er(t) {
|
|
|
3146
3148
|
}), r("lock unlock", () => {
|
|
3147
3149
|
f();
|
|
3148
3150
|
}), r("click", (p, m) => {
|
|
3149
|
-
const
|
|
3150
|
-
if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !
|
|
3151
|
-
if (e.navigation && (e.navigation.nextEl &&
|
|
3151
|
+
const g = m.target, y = R(e.pagination.el);
|
|
3152
|
+
if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !g.classList.contains(e.params.pagination.bulletClass)) {
|
|
3153
|
+
if (e.navigation && (e.navigation.nextEl && g === e.navigation.nextEl || e.navigation.prevEl && g === e.navigation.prevEl)) return;
|
|
3152
3154
|
const T = y[0].classList.contains(e.params.pagination.hiddenClass);
|
|
3153
3155
|
n(T === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
|
|
3154
3156
|
}
|
|
@@ -3158,7 +3160,7 @@ function Er(t) {
|
|
|
3158
3160
|
let {
|
|
3159
3161
|
el: p
|
|
3160
3162
|
} = e.pagination;
|
|
3161
|
-
p && (p = R(p), p.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), h(),
|
|
3163
|
+
p && (p = R(p), p.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), h(), v(), f();
|
|
3162
3164
|
}, w = () => {
|
|
3163
3165
|
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
3164
3166
|
let {
|
|
@@ -3169,7 +3171,7 @@ function Er(t) {
|
|
|
3169
3171
|
Object.assign(e.pagination, {
|
|
3170
3172
|
enable: M,
|
|
3171
3173
|
disable: w,
|
|
3172
|
-
render:
|
|
3174
|
+
render: v,
|
|
3173
3175
|
update: f,
|
|
3174
3176
|
init: h,
|
|
3175
3177
|
destroy: b
|
|
@@ -3177,18 +3179,18 @@ function Er(t) {
|
|
|
3177
3179
|
}
|
|
3178
3180
|
const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
|
|
3179
3181
|
const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } = Re(() => {
|
|
3180
|
-
const
|
|
3182
|
+
const v = t ? Object.values(t) : [];
|
|
3181
3183
|
return {
|
|
3182
|
-
listOfQuestions:
|
|
3183
|
-
countQuestionsAvailable:
|
|
3184
|
+
listOfQuestions: v,
|
|
3185
|
+
countQuestionsAvailable: v.filter(({ marketClosed: h }) => !h).length
|
|
3184
3186
|
};
|
|
3185
3187
|
}, [t]), c = Ae(
|
|
3186
|
-
async (
|
|
3188
|
+
async (v, h) => {
|
|
3187
3189
|
try {
|
|
3188
|
-
await e.betPackVote(
|
|
3190
|
+
await e.betPackVote(v, h), s({
|
|
3189
3191
|
type: "slVoted",
|
|
3190
3192
|
payload: {
|
|
3191
|
-
questionId:
|
|
3193
|
+
questionId: v,
|
|
3192
3194
|
answerId: h
|
|
3193
3195
|
}
|
|
3194
3196
|
});
|
|
@@ -3201,16 +3203,16 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3201
3203
|
},
|
|
3202
3204
|
[e, s, n]
|
|
3203
3205
|
);
|
|
3204
|
-
|
|
3206
|
+
U(() => (s({
|
|
3205
3207
|
type: "slBetPackReady",
|
|
3206
3208
|
payload: {
|
|
3207
3209
|
next: () => {
|
|
3208
|
-
var
|
|
3209
|
-
return (
|
|
3210
|
+
var v;
|
|
3211
|
+
return (v = l.current) == null ? void 0 : v.slideNext();
|
|
3210
3212
|
},
|
|
3211
3213
|
prev: () => {
|
|
3212
|
-
var
|
|
3213
|
-
return (
|
|
3214
|
+
var v;
|
|
3215
|
+
return (v = l.current) == null ? void 0 : v.slidePrev();
|
|
3214
3216
|
},
|
|
3215
3217
|
current: 0,
|
|
3216
3218
|
canNext: !0,
|
|
@@ -3219,9 +3221,9 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3219
3221
|
}), () => {
|
|
3220
3222
|
i.current && clearTimeout(i.current);
|
|
3221
3223
|
}), [s]);
|
|
3222
|
-
const d = (
|
|
3224
|
+
const d = (v) => {
|
|
3223
3225
|
var h;
|
|
3224
|
-
const b =
|
|
3226
|
+
const b = v.realIndex;
|
|
3225
3227
|
if (s({
|
|
3226
3228
|
type: "slBetPackChangeCard",
|
|
3227
3229
|
payload: {
|
|
@@ -3247,8 +3249,8 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3247
3249
|
}
|
|
3248
3250
|
e.closeQuestion();
|
|
3249
3251
|
}, [u, f] = W(1.1);
|
|
3250
|
-
return
|
|
3251
|
-
const
|
|
3252
|
+
return U(() => {
|
|
3253
|
+
const v = ht(() => {
|
|
3252
3254
|
var h;
|
|
3253
3255
|
const b = (h = l.current) == null ? void 0 : h.size;
|
|
3254
3256
|
if (!b)
|
|
@@ -3256,8 +3258,8 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3256
3258
|
const M = 1 + 30 / (b / 100) / 100 * 2;
|
|
3257
3259
|
f(Math.ceil(M * 1e3) / 1e3);
|
|
3258
3260
|
}, 200);
|
|
3259
|
-
return window.addEventListener("resize",
|
|
3260
|
-
window.removeEventListener("resize",
|
|
3261
|
+
return window.addEventListener("resize", v), v(), () => {
|
|
3262
|
+
window.removeEventListener("resize", v);
|
|
3261
3263
|
};
|
|
3262
3264
|
}, []), /* @__PURE__ */ F(
|
|
3263
3265
|
Js,
|
|
@@ -3275,12 +3277,12 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3275
3277
|
onBeforeSlideChangeStart: () => {
|
|
3276
3278
|
i.current && clearTimeout(i.current);
|
|
3277
3279
|
},
|
|
3278
|
-
onSwiper: (
|
|
3279
|
-
l.current =
|
|
3280
|
+
onSwiper: (v) => {
|
|
3281
|
+
l.current = v;
|
|
3280
3282
|
},
|
|
3281
3283
|
children: [
|
|
3282
3284
|
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(wr, { sliderRef: l, countQuestionsAvailable: o }) }),
|
|
3283
|
-
a.map((
|
|
3285
|
+
a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(ur, { question: v, vote: c }) }, v.id) }) : null),
|
|
3284
3286
|
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(cr, { onEvent: s }) })
|
|
3285
3287
|
]
|
|
3286
3288
|
}
|
|
@@ -3319,7 +3321,7 @@ handle this request.`
|
|
|
3319
3321
|
name: "BetPackContainer",
|
|
3320
3322
|
class: "b18vssq2",
|
|
3321
3323
|
propsAsIs: !1
|
|
3322
|
-
}), ie = "slBetPackCb", Pr =
|
|
3324
|
+
}), ie = "slBetPackCb", Pr = vt("betPack-ui"), Mr = (t, e = {}) => {
|
|
3323
3325
|
var s, r;
|
|
3324
3326
|
const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
|
|
3325
3327
|
Pr.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" }));
|
|
@@ -3365,11 +3367,11 @@ handle this request.`
|
|
|
3365
3367
|
const [n, i] = W(), [l, a] = W(), o = Ae(
|
|
3366
3368
|
(c) => {
|
|
3367
3369
|
if (c.type === "slBetPackReady") {
|
|
3368
|
-
const { next: d, prev: u, current: f, canNext:
|
|
3370
|
+
const { next: d, prev: u, current: f, canNext: v, canPrev: h } = c.payload || {};
|
|
3369
3371
|
i({ next: d, prev: u }), a((b) => ({
|
|
3370
3372
|
current: b != null && b.current ? b == null ? void 0 : b.current : f,
|
|
3371
3373
|
canPrev: b != null && b.current ? b == null ? void 0 : b.canPrev : h,
|
|
3372
|
-
canNext:
|
|
3374
|
+
canNext: v
|
|
3373
3375
|
}));
|
|
3374
3376
|
}
|
|
3375
3377
|
if (c.type === "slBetPackChangeCard") {
|
|
@@ -3386,12 +3388,12 @@ handle this request.`
|
|
|
3386
3388
|
/* @__PURE__ */ P(te, { name: "fgIcon" }),
|
|
3387
3389
|
"Featured Groups+"
|
|
3388
3390
|
] }),
|
|
3389
|
-
/* @__PURE__ */ P(Lr, { onClick: s, children: /* @__PURE__ */ P(te, { name: "icon-close-btn-gray" }) })
|
|
3391
|
+
/* @__PURE__ */ P(Lr, { "data-a": "intr", onClick: s, children: /* @__PURE__ */ P(te, { name: "icon-close-btn-gray" }) })
|
|
3390
3392
|
] }),
|
|
3391
3393
|
/* @__PURE__ */ P(Gr, { children: /* @__PURE__ */ P(Dr, { sdk: t, onEvent: o, overlay: !0 }) }),
|
|
3392
3394
|
/* @__PURE__ */ F(Nr, { children: [
|
|
3393
|
-
/* @__PURE__ */ P(Ve, { onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(ct, { name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canPrev) && je) }) }),
|
|
3394
|
-
/* @__PURE__ */ P(Ve, { onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(zr, { name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canNext) && je) }) })
|
|
3395
|
+
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(ct, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canPrev) && je) }) }),
|
|
3396
|
+
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(zr, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canNext) && je) }) })
|
|
3395
3397
|
] })
|
|
3396
3398
|
] });
|
|
3397
3399
|
}), Br = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n }) => t.data ? e ? /* @__PURE__ */ P(Tr, { overlay: s, gamification: e, onEvent: n, swipeable: r }) : /* @__PURE__ */ P(Ie, {}) : t.error && !t.loading ? /* @__PURE__ */ P(
|
|
@@ -3404,7 +3406,9 @@ view this resource.`
|
|
|
3404
3406
|
}
|
|
3405
3407
|
) : /* @__PURE__ */ P(Ie, {}), Dr = bt(({ sdk: t, swipeable: e = !0, onEvent: s = kr, overlay: r }) => {
|
|
3406
3408
|
const n = _e(t.featuresList.getStore()), i = Re(() => t.getFeature(Et.GAMES), [n]), l = _e(t.getUserStore());
|
|
3407
|
-
return
|
|
3409
|
+
return U(() => (t.writeOverlaySessionId(), () => {
|
|
3410
|
+
t.writeOverlaySessionId("");
|
|
3411
|
+
}), []), /* @__PURE__ */ P(
|
|
3408
3412
|
Cr,
|
|
3409
3413
|
{
|
|
3410
3414
|
className: Se("SL-BetPack", r && "SL-BetPack--overlay", !r && "SL-BetPack--standalone"),
|
|
@@ -3413,6 +3417,6 @@ view this resource.`
|
|
|
3413
3417
|
);
|
|
3414
3418
|
});
|
|
3415
3419
|
export {
|
|
3416
|
-
Dr as
|
|
3417
|
-
Rr as
|
|
3420
|
+
Dr as Q,
|
|
3421
|
+
Rr as n
|
|
3418
3422
|
};
|