@streamlayer/react 1.14.7 → 1.15.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/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 +16 -16
- package/lib/cjs/useStreamLayerApp2.js +5 -5
- 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 +16 -16
- package/lib/classic/cjs/useStreamLayerApp2.js +5 -5
- package/lib/classic/es/advertisement.js +6 -6
- package/lib/classic/es/bet-pack.js +20 -11
- package/lib/classic/es/index.js +1 -1
- package/lib/classic/es/index2.js +389 -385
- package/lib/classic/es/masters2.js +32 -32
- package/lib/classic/es/notification.js +65 -64
- package/lib/classic/es/points.js +18 -12
- package/lib/classic/es/provider.js +2446 -2421
- package/lib/classic/es/useStreamLayerApp2.js +253 -251
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/masters.js +30 -30
- package/lib/dist/es/gamification-feature2.js +91 -89
- package/lib/dist/es/masters.js +5373 -5338
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +6 -6
- package/lib/es/bet-pack.js +20 -11
- package/lib/es/index.js +1 -1
- package/lib/es/index2.js +389 -385
- package/lib/es/masters2.js +32 -32
- package/lib/es/notification.js +65 -64
- package/lib/es/points.js +18 -12
- package/lib/es/provider.js +2443 -2418
- package/lib/es/useStreamLayerApp2.js +253 -251
- package/lib/style.css +1 -1
- package/package.json +14 -14
package/lib/classic/es/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import { s as _, k as
|
|
3
|
-
import $, { forwardRef as Le, useState as W, useRef as D, useEffect as
|
|
4
|
-
import { C 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
|
+
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;
|
|
7
7
|
}
|
|
@@ -67,11 +67,11 @@ 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
|
}
|
|
74
|
-
const
|
|
74
|
+
const xt = {
|
|
75
75
|
document: qe,
|
|
76
76
|
navigator: {
|
|
77
77
|
userAgent: ""
|
|
@@ -131,12 +131,12 @@ const Et = {
|
|
|
131
131
|
};
|
|
132
132
|
function N() {
|
|
133
133
|
const t = typeof window < "u" ? window : {};
|
|
134
|
-
return Oe(t,
|
|
134
|
+
return Oe(t, xt), t;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Tt(t) {
|
|
137
137
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Ct(t) {
|
|
140
140
|
const e = t;
|
|
141
141
|
Object.keys(e).forEach((s) => {
|
|
142
142
|
try {
|
|
@@ -155,29 +155,29 @@ function Ee(t, e) {
|
|
|
155
155
|
function le() {
|
|
156
156
|
return Date.now();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Pt(t) {
|
|
159
159
|
const e = N();
|
|
160
160
|
let s;
|
|
161
161
|
return e.getComputedStyle && (s = e.getComputedStyle(t, null)), !s && t.currentStyle && (s = t.currentStyle), s || (s = t.style), s;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Mt(t, e) {
|
|
164
164
|
e === void 0 && (e = "x");
|
|
165
165
|
const s = N();
|
|
166
166
|
let r, n, i;
|
|
167
|
-
const l =
|
|
167
|
+
const l = Pt(t);
|
|
168
168
|
return s.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), i = new s.WebKitCSSMatrix(n === "none" ? "" : n)) : (i = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = i.toString().split(",")), e === "x" && (s.WebKitCSSMatrix ? n = i.m41 : r.length === 16 ? n = parseFloat(r[12]) : n = parseFloat(r[4])), e === "y" && (s.WebKitCSSMatrix ? n = i.m42 : r.length === 16 ? n = parseFloat(r[13]) : n = parseFloat(r[5])), n || 0;
|
|
169
169
|
}
|
|
170
170
|
function se(t) {
|
|
171
171
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function kt(t) {
|
|
174
174
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
175
175
|
}
|
|
176
176
|
function B() {
|
|
177
177
|
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
178
178
|
for (let s = 1; s < arguments.length; s += 1) {
|
|
179
179
|
const r = s < 0 || arguments.length <= s ? void 0 : arguments[s];
|
|
180
|
-
if (r != null && !
|
|
180
|
+
if (r != null && !kt(r)) {
|
|
181
181
|
const n = Object.keys(Object(r)).filter((i) => e.indexOf(i) < 0);
|
|
182
182
|
for (let i = 0, l = n.length; i < l; i += 1) {
|
|
183
183
|
const a = n[i], o = Object.getOwnPropertyDescriptor(r, a);
|
|
@@ -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)) {
|
|
@@ -223,7 +223,7 @@ function H(t, e) {
|
|
|
223
223
|
const s = N(), r = [...t.children];
|
|
224
224
|
return s.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((n) => n.matches(e)) : r;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function It(t, e) {
|
|
227
227
|
const s = [e];
|
|
228
228
|
for (; s.length > 0; ) {
|
|
229
229
|
const r = s.shift();
|
|
@@ -232,10 +232,10 @@ function kt(t, e) {
|
|
|
232
232
|
s.push(...r.children, ...r.shadowRoot ? r.shadowRoot.children : [], ...r.assignedElements ? r.assignedElements() : []);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Lt(t, e) {
|
|
236
236
|
const s = N();
|
|
237
237
|
let r = e.contains(t);
|
|
238
|
-
return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r =
|
|
238
|
+
return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r = It(t, e))), r;
|
|
239
239
|
}
|
|
240
240
|
function oe(t) {
|
|
241
241
|
try {
|
|
@@ -247,9 +247,9 @@ function oe(t) {
|
|
|
247
247
|
function de(t, e) {
|
|
248
248
|
e === void 0 && (e = []);
|
|
249
249
|
const s = document.createElement(t);
|
|
250
|
-
return s.classList.add(...Array.isArray(e) ? e :
|
|
250
|
+
return s.classList.add(...Array.isArray(e) ? e : Tt(e)), s;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function At(t, e) {
|
|
253
253
|
const s = [];
|
|
254
254
|
for (; t.previousElementSibling; ) {
|
|
255
255
|
const r = t.previousElementSibling;
|
|
@@ -257,7 +257,7 @@ function Lt(t, e) {
|
|
|
257
257
|
}
|
|
258
258
|
return s;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ot(t, e) {
|
|
261
261
|
const s = [];
|
|
262
262
|
for (; t.nextElementSibling; ) {
|
|
263
263
|
const r = t.nextElementSibling;
|
|
@@ -291,18 +291,18 @@ function R(t) {
|
|
|
291
291
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
292
292
|
}
|
|
293
293
|
let fe;
|
|
294
|
-
function
|
|
295
|
-
const t = N(), e =
|
|
294
|
+
function zt() {
|
|
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)
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
function Xe() {
|
|
302
|
-
return fe || (fe =
|
|
302
|
+
return fe || (fe = zt()), fe;
|
|
303
303
|
}
|
|
304
304
|
let he;
|
|
305
|
-
function
|
|
305
|
+
function _t(t) {
|
|
306
306
|
let {
|
|
307
307
|
userAgent: e
|
|
308
308
|
} = t === void 0 ? {} : t;
|
|
@@ -311,16 +311,16 @@ function zt(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
|
-
return t === void 0 && (t = {}), he || (he =
|
|
320
|
+
return t === void 0 && (t = {}), he || (he = _t(t)), he;
|
|
321
321
|
}
|
|
322
|
-
let
|
|
323
|
-
function
|
|
322
|
+
let ve;
|
|
323
|
+
function $t() {
|
|
324
324
|
const t = N(), e = Ue();
|
|
325
325
|
let s = !1;
|
|
326
326
|
function r() {
|
|
@@ -343,9 +343,9 @@ function _t() {
|
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
function Qe() {
|
|
346
|
-
return
|
|
346
|
+
return ve || (ve = $t()), ve;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Gt(t) {
|
|
349
349
|
let {
|
|
350
350
|
swiper: e,
|
|
351
351
|
on: s,
|
|
@@ -360,9 +360,9 @@ function $t(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 $t(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 = () => {
|
|
@@ -388,7 +388,7 @@ function $t(t) {
|
|
|
388
388
|
c(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", d);
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Nt(t) {
|
|
392
392
|
let {
|
|
393
393
|
swiper: e,
|
|
394
394
|
extendParams: s,
|
|
@@ -397,7 +397,7 @@ function Gt(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 Gt(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) {
|
|
@@ -437,7 +437,7 @@ function Gt(t) {
|
|
|
437
437
|
observeSlideChildren: !1
|
|
438
438
|
}), r("init", o), r("destroy", c);
|
|
439
439
|
}
|
|
440
|
-
var
|
|
440
|
+
var Bt = {
|
|
441
441
|
on(t, e, s) {
|
|
442
442
|
const r = this;
|
|
443
443
|
if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
|
|
@@ -492,7 +492,7 @@ var Nt = {
|
|
|
492
492
|
}), t;
|
|
493
493
|
}
|
|
494
494
|
};
|
|
495
|
-
function
|
|
495
|
+
function Dt() {
|
|
496
496
|
const t = this;
|
|
497
497
|
let e, s;
|
|
498
498
|
const r = t.el;
|
|
@@ -502,7 +502,7 @@ function Bt() {
|
|
|
502
502
|
size: t.isHorizontal() ? e : s
|
|
503
503
|
}));
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Ft() {
|
|
506
506
|
const t = this;
|
|
507
507
|
function e(E, x) {
|
|
508
508
|
return parseFloat(E.getPropertyValue(t.getDirectionLabel(x)) || 0);
|
|
@@ -515,13 +515,13 @@ function Dt() {
|
|
|
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 Dt() {
|
|
|
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 Dt() {
|
|
|
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,27 +600,27 @@ function Dt() {
|
|
|
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
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function jt(t) {
|
|
624
624
|
const e = this, s = [], r = e.virtual && e.params.virtual.enabled;
|
|
625
625
|
let n = 0, i;
|
|
626
626
|
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
@@ -645,7 +645,7 @@ function Ft(t) {
|
|
|
645
645
|
}
|
|
646
646
|
(n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Vt() {
|
|
649
649
|
const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
650
650
|
for (let r = 0; r < e.length; r += 1)
|
|
651
651
|
e[r].swiperSlideOffset = (t.isHorizontal() ? e[r].offsetLeft : e[r].offsetTop) - s - t.cssOverflowAdjustment();
|
|
@@ -653,7 +653,7 @@ function jt() {
|
|
|
653
653
|
const Ge = (t, e, s) => {
|
|
654
654
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
655
655
|
};
|
|
656
|
-
function
|
|
656
|
+
function Ht(t) {
|
|
657
657
|
t === void 0 && (t = this && this.translate || 0);
|
|
658
658
|
const e = this, s = e.params, {
|
|
659
659
|
slides: r,
|
|
@@ -670,11 +670,11 @@ function Vt(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
|
}
|
|
677
|
-
function
|
|
677
|
+
function Rt(t) {
|
|
678
678
|
const e = this;
|
|
679
679
|
if (typeof t > "u") {
|
|
680
680
|
const d = e.rtlTranslate ? -1 : 1;
|
|
@@ -696,8 +696,8 @@ function Ht(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,10 +706,10 @@ function Ht(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
|
-
function
|
|
712
|
+
function qt() {
|
|
713
713
|
const t = this, {
|
|
714
714
|
slides: e,
|
|
715
715
|
params: s,
|
|
@@ -725,8 +725,8 @@ function Rt() {
|
|
|
725
725
|
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
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
|
-
o && (l || (d =
|
|
729
|
-
|
|
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
|
+
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) => {
|
|
@@ -768,7 +768,7 @@ const ne = (t, e) => {
|
|
|
768
768
|
for (let l = Math.max(n - e, 0); l <= Math.min(i + e, s - 1); l += 1)
|
|
769
769
|
l !== n && (l > i || l < n) && we(t, l);
|
|
770
770
|
};
|
|
771
|
-
function
|
|
771
|
+
function Wt(t) {
|
|
772
772
|
const {
|
|
773
773
|
slidesGrid: e,
|
|
774
774
|
params: s
|
|
@@ -778,7 +778,7 @@ function qt(t) {
|
|
|
778
778
|
typeof e[i + 1] < "u" ? r >= e[i] && r < e[i + 1] - (e[i + 1] - e[i]) / 2 ? n = i : r >= e[i] && r < e[i + 1] && (n = i + 1) : r >= e[i] && (n = i);
|
|
779
779
|
return s.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Yt(t) {
|
|
782
782
|
const e = this, s = e.rtlTranslate ? e.translate : -e.translate, {
|
|
783
783
|
snapGrid: r,
|
|
784
784
|
params: n,
|
|
@@ -787,15 +787,15 @@ function Wt(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
|
-
if (typeof o > "u" && (o =
|
|
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 Wt(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, {
|
|
@@ -827,7 +827,7 @@ function Wt(t) {
|
|
|
827
827
|
activeIndex: o
|
|
828
828
|
}), e.initialized && Te(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== f && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Xt(t, e) {
|
|
831
831
|
const s = this, r = s.params;
|
|
832
832
|
let n = t.closest(`.${r.slideClass}, swiper-slide`);
|
|
833
833
|
!n && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
|
|
@@ -849,18 +849,18 @@ function Yt(t, e) {
|
|
|
849
849
|
}
|
|
850
850
|
r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
851
851
|
}
|
|
852
|
-
var
|
|
853
|
-
updateSize:
|
|
854
|
-
updateSlides:
|
|
855
|
-
updateAutoHeight:
|
|
856
|
-
updateSlidesOffset:
|
|
857
|
-
updateSlidesProgress:
|
|
858
|
-
updateProgress:
|
|
859
|
-
updateSlidesClasses:
|
|
860
|
-
updateActiveIndex:
|
|
861
|
-
updateClickedSlide:
|
|
852
|
+
var Ut = {
|
|
853
|
+
updateSize: Dt,
|
|
854
|
+
updateSlides: Ft,
|
|
855
|
+
updateAutoHeight: jt,
|
|
856
|
+
updateSlidesOffset: Vt,
|
|
857
|
+
updateSlidesProgress: Ht,
|
|
858
|
+
updateProgress: Rt,
|
|
859
|
+
updateSlidesClasses: qt,
|
|
860
|
+
updateActiveIndex: Yt,
|
|
861
|
+
updateClickedSlide: Xt
|
|
862
862
|
};
|
|
863
|
-
function
|
|
863
|
+
function Qt(t) {
|
|
864
864
|
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
865
865
|
const e = this, {
|
|
866
866
|
params: s,
|
|
@@ -872,10 +872,10 @@ function Ut(t) {
|
|
|
872
872
|
return r ? -n : n;
|
|
873
873
|
if (s.cssMode)
|
|
874
874
|
return n;
|
|
875
|
-
let l =
|
|
875
|
+
let l = Mt(i, t);
|
|
876
876
|
return l += e.cssOverflowAdjustment(), r && (l = -l), l || 0;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Kt(t, e) {
|
|
879
879
|
const s = this, {
|
|
880
880
|
rtlTranslate: r,
|
|
881
881
|
params: n,
|
|
@@ -889,13 +889,13 @@ function Qt(t, e) {
|
|
|
889
889
|
const u = s.maxTranslate() - s.minTranslate();
|
|
890
890
|
u === 0 ? d = 0 : d = (t - s.minTranslate()) / u, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Jt() {
|
|
893
893
|
return -this.snapGrid[0];
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Zt() {
|
|
896
896
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function es(t, e, s, r, n) {
|
|
899
899
|
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), s === void 0 && (s = !0), r === void 0 && (r = !0);
|
|
900
900
|
const i = this, {
|
|
901
901
|
params: l,
|
|
@@ -927,14 +927,14 @@ function Zt(t, e, s, r, n) {
|
|
|
927
927
|
!i || i.destroyed || u.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
|
|
928
928
|
}), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
|
|
929
929
|
}
|
|
930
|
-
var
|
|
931
|
-
getTranslate:
|
|
932
|
-
setTranslate:
|
|
933
|
-
minTranslate:
|
|
934
|
-
maxTranslate:
|
|
935
|
-
translateTo:
|
|
930
|
+
var ts = {
|
|
931
|
+
getTranslate: Qt,
|
|
932
|
+
setTranslate: Kt,
|
|
933
|
+
minTranslate: Jt,
|
|
934
|
+
maxTranslate: Zt,
|
|
935
|
+
translateTo: es
|
|
936
936
|
};
|
|
937
|
-
function
|
|
937
|
+
function ss(t, e) {
|
|
938
938
|
const s = this;
|
|
939
939
|
s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${t}ms`, s.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), s.emit("setTransition", t, e);
|
|
940
940
|
}
|
|
@@ -958,7 +958,7 @@ function Ke(t) {
|
|
|
958
958
|
e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function rs(t, e) {
|
|
962
962
|
t === void 0 && (t = !0);
|
|
963
963
|
const s = this, {
|
|
964
964
|
params: r
|
|
@@ -970,7 +970,7 @@ function ss(t, e) {
|
|
|
970
970
|
step: "Start"
|
|
971
971
|
}));
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function is(t, e) {
|
|
974
974
|
t === void 0 && (t = !0);
|
|
975
975
|
const s = this, {
|
|
976
976
|
params: r
|
|
@@ -982,12 +982,12 @@ function rs(t, e) {
|
|
|
982
982
|
step: "End"
|
|
983
983
|
}));
|
|
984
984
|
}
|
|
985
|
-
var
|
|
986
|
-
setTransition:
|
|
987
|
-
transitionStart:
|
|
988
|
-
transitionEnd:
|
|
985
|
+
var ns = {
|
|
986
|
+
setTransition: ss,
|
|
987
|
+
transitionStart: rs,
|
|
988
|
+
transitionEnd: is
|
|
989
989
|
};
|
|
990
|
-
function
|
|
990
|
+
function as(t, e, s, r, n) {
|
|
991
991
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
992
992
|
const i = this;
|
|
993
993
|
let l = t;
|
|
@@ -999,7 +999,7 @@ function ns(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 ns(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,19 +1037,19 @@ function ns(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
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function ls(t, e, s, r) {
|
|
1053
1053
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1054
1054
|
const n = this;
|
|
1055
1055
|
if (n.destroyed) return;
|
|
@@ -1063,7 +1063,7 @@ function as(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 as(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
|
}
|
|
@@ -1091,7 +1091,7 @@ function as(t, e, s, r) {
|
|
|
1091
1091
|
n.slideTo(l, e, s, r);
|
|
1092
1092
|
}), n;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function os(t, e, s) {
|
|
1095
1095
|
e === void 0 && (e = !0);
|
|
1096
1096
|
const r = this, {
|
|
1097
1097
|
enabled: n,
|
|
@@ -1114,7 +1114,7 @@ function ls(t, e, s) {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
return i.rewind && r.isEnd ? r.slideTo(0, t, e, s) : r.slideTo(r.activeIndex + o, t, e, s);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function ds(t, e, s) {
|
|
1118
1118
|
e === void 0 && (e = !0);
|
|
1119
1119
|
const r = this, {
|
|
1120
1120
|
params: n,
|
|
@@ -1137,12 +1137,12 @@ function os(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;
|
|
@@ -1155,13 +1155,13 @@ function os(t, e, s) {
|
|
|
1155
1155
|
}), !0;
|
|
1156
1156
|
return r.slideTo(w, t, e, s);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function cs(t, e, s) {
|
|
1159
1159
|
e === void 0 && (e = !0);
|
|
1160
1160
|
const r = this;
|
|
1161
1161
|
if (!r.destroyed)
|
|
1162
1162
|
return typeof t > "u" && (t = r.params.speed), r.slideTo(r.activeIndex, t, e, s);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function ps(t, e, s, r) {
|
|
1165
1165
|
e === void 0 && (e = !0), r === void 0 && (r = 0.5);
|
|
1166
1166
|
const n = this;
|
|
1167
1167
|
if (n.destroyed) return;
|
|
@@ -1177,7 +1177,7 @@ function cs(t, e, s, r) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function us() {
|
|
1181
1181
|
const t = this;
|
|
1182
1182
|
if (t.destroyed) return;
|
|
1183
1183
|
const {
|
|
@@ -1196,16 +1196,16 @@ function ps() {
|
|
|
1196
1196
|
} else
|
|
1197
1197
|
t.slideTo(n);
|
|
1198
1198
|
}
|
|
1199
|
-
var
|
|
1200
|
-
slideTo:
|
|
1201
|
-
slideToLoop:
|
|
1202
|
-
slideNext:
|
|
1203
|
-
slidePrev:
|
|
1204
|
-
slideReset:
|
|
1205
|
-
slideToClosest:
|
|
1206
|
-
slideToClickedSlide:
|
|
1199
|
+
var ms = {
|
|
1200
|
+
slideTo: as,
|
|
1201
|
+
slideToLoop: ls,
|
|
1202
|
+
slideNext: os,
|
|
1203
|
+
slidePrev: ds,
|
|
1204
|
+
slideReset: cs,
|
|
1205
|
+
slideToClosest: ps,
|
|
1206
|
+
slideToClickedSlide: us
|
|
1207
1207
|
};
|
|
1208
|
-
function
|
|
1208
|
+
function fs(t, e) {
|
|
1209
1209
|
const s = this, {
|
|
1210
1210
|
params: r,
|
|
1211
1211
|
slidesEl: n
|
|
@@ -1217,8 +1217,8 @@ function ms(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) {
|
|
@@ -1243,7 +1243,7 @@ function ms(t, e) {
|
|
|
1243
1243
|
initial: e
|
|
1244
1244
|
});
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function hs(t) {
|
|
1247
1247
|
let {
|
|
1248
1248
|
slideRealIndex: e,
|
|
1249
1249
|
slideTo: s = !0,
|
|
@@ -1261,7 +1261,7 @@ function fs(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 fs(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 fs(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 fs(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 fs(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 fs(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 fs(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
|
|
@@ -1368,11 +1368,11 @@ function hs() {
|
|
|
1368
1368
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1369
1369
|
}
|
|
1370
1370
|
var gs = {
|
|
1371
|
-
loopCreate:
|
|
1372
|
-
loopFix:
|
|
1373
|
-
loopDestroy:
|
|
1371
|
+
loopCreate: fs,
|
|
1372
|
+
loopFix: hs,
|
|
1373
|
+
loopDestroy: vs
|
|
1374
1374
|
};
|
|
1375
|
-
function
|
|
1375
|
+
function ws(t) {
|
|
1376
1376
|
const e = this;
|
|
1377
1377
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
1378
1378
|
const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
@@ -1380,20 +1380,20 @@ function vs(t) {
|
|
|
1380
1380
|
e.__preventObserver__ = !1;
|
|
1381
1381
|
});
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function bs() {
|
|
1384
1384
|
const t = this;
|
|
1385
1385
|
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
|
|
1386
1386
|
t.__preventObserver__ = !1;
|
|
1387
1387
|
}));
|
|
1388
1388
|
}
|
|
1389
|
-
var
|
|
1390
|
-
setGrabCursor:
|
|
1391
|
-
unsetGrabCursor:
|
|
1389
|
+
var ys = {
|
|
1390
|
+
setGrabCursor: ws,
|
|
1391
|
+
unsetGrabCursor: bs
|
|
1392
1392
|
};
|
|
1393
|
-
function
|
|
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);
|
|
@@ -1406,8 +1406,8 @@ function Ne(t, e, s) {
|
|
|
1406
1406
|
} = t, i = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
|
|
1407
1407
|
return i && (s <= l || s >= r.innerWidth - l) ? i === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1410
|
-
const e = this, s =
|
|
1409
|
+
function Es(t) {
|
|
1410
|
+
const e = this, s = K();
|
|
1411
1411
|
let r = t;
|
|
1412
1412
|
r.originalEvent && (r = r.originalEvent);
|
|
1413
1413
|
const n = e.touchEventsData;
|
|
@@ -1429,19 +1429,19 @@ function Ss(t) {
|
|
|
1429
1429
|
return;
|
|
1430
1430
|
!e.animating && i.cssMode && i.loop && e.loopFix();
|
|
1431
1431
|
let o = r.target;
|
|
1432
|
-
if (i.touchEventsTarget === "wrapper" && !
|
|
1432
|
+
if (i.touchEventsTarget === "wrapper" && !Lt(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
|
|
1433
1433
|
const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
|
|
1434
1434
|
c && r.target && r.target.shadowRoot && d && (o = d[0]);
|
|
1435
1435
|
const u = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(r.target && r.target.shadowRoot);
|
|
1436
|
-
if (i.noSwiping && (f ?
|
|
1436
|
+
if (i.noSwiping && (f ? Ss(u, o) : o.closest(u))) {
|
|
1437
1437
|
e.allowClick = !0;
|
|
1438
1438
|
return;
|
|
1439
1439
|
}
|
|
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 Ss(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
|
-
function
|
|
1459
|
-
const e =
|
|
1458
|
+
function xs(t) {
|
|
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 Es(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 Es(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 Es(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;
|
|
@@ -1569,13 +1569,13 @@ function Es(t) {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
!n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && s.freeMode || n.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(r.currentTranslate), s.setTranslate(r.currentTranslate));
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Ts(t) {
|
|
1573
1573
|
const e = this, s = e.touchEventsData;
|
|
1574
1574
|
let r = 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 xs(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 xs(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));
|
|
@@ -1658,11 +1658,11 @@ function Be() {
|
|
|
1658
1658
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
1659
1659
|
}, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function Cs(t) {
|
|
1662
1662
|
const e = this;
|
|
1663
1663
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function Ps() {
|
|
1666
1666
|
const t = this, {
|
|
1667
1667
|
wrapperEl: e,
|
|
1668
1668
|
rtlTranslate: s,
|
|
@@ -1674,16 +1674,16 @@ function Cs() {
|
|
|
1674
1674
|
const i = t.maxTranslate() - t.minTranslate();
|
|
1675
1675
|
i === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / i, n !== t.progress && t.updateProgress(s ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Ms(t) {
|
|
1678
1678
|
const e = this;
|
|
1679
1679
|
ne(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function ks() {
|
|
1682
1682
|
const t = this;
|
|
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,
|
|
@@ -1720,21 +1720,21 @@ const Je = (t, e) => {
|
|
|
1720
1720
|
capture: !0
|
|
1721
1721
|
}));
|
|
1722
1722
|
};
|
|
1723
|
-
function
|
|
1723
|
+
function Is() {
|
|
1724
1724
|
const t = this, {
|
|
1725
1725
|
params: e
|
|
1726
1726
|
} = t;
|
|
1727
|
-
t.onTouchStart =
|
|
1727
|
+
t.onTouchStart = Es.bind(t), t.onTouchMove = xs.bind(t), t.onTouchEnd = Ts.bind(t), t.onDocumentTouchStart = ks.bind(t), e.cssMode && (t.onScroll = Ps.bind(t)), t.onClick = Cs.bind(t), t.onLoad = Ms.bind(t), Je(t, "on");
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function Ls() {
|
|
1730
1730
|
Je(this, "off");
|
|
1731
1731
|
}
|
|
1732
|
-
var
|
|
1733
|
-
attachEvents:
|
|
1734
|
-
detachEvents:
|
|
1732
|
+
var As = {
|
|
1733
|
+
attachEvents: Is,
|
|
1734
|
+
detachEvents: Ls
|
|
1735
1735
|
};
|
|
1736
1736
|
const De = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1737
|
-
function
|
|
1737
|
+
function Os() {
|
|
1738
1738
|
const t = this, {
|
|
1739
1739
|
realIndex: e,
|
|
1740
1740
|
initialized: s,
|
|
@@ -1742,24 +1742,24 @@ function As() {
|
|
|
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
|
-
function
|
|
1762
|
+
function zs(t, e, s) {
|
|
1763
1763
|
if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
|
|
1764
1764
|
let r = !1;
|
|
1765
1765
|
const n = N(), i = e === "window" ? n.innerHeight : s.clientHeight, l = Object.keys(t).map((a) => {
|
|
@@ -1785,11 +1785,11 @@ function Os(t, e, s) {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
return r || "max";
|
|
1787
1787
|
}
|
|
1788
|
-
var
|
|
1789
|
-
setBreakpoint:
|
|
1790
|
-
getBreakpoint:
|
|
1788
|
+
var _s = {
|
|
1789
|
+
setBreakpoint: Os,
|
|
1790
|
+
getBreakpoint: zs
|
|
1791
1791
|
};
|
|
1792
|
-
function
|
|
1792
|
+
function $s(t, e) {
|
|
1793
1793
|
const s = [];
|
|
1794
1794
|
return t.forEach((r) => {
|
|
1795
1795
|
typeof r == "object" ? Object.keys(r).forEach((n) => {
|
|
@@ -1797,14 +1797,14 @@ function _s(t, e) {
|
|
|
1797
1797
|
}) : typeof r == "string" && s.push(e + r);
|
|
1798
1798
|
}), s;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function Gs() {
|
|
1801
1801
|
const t = this, {
|
|
1802
1802
|
classNames: e,
|
|
1803
1803
|
params: s,
|
|
1804
1804
|
rtl: r,
|
|
1805
1805
|
el: n,
|
|
1806
1806
|
device: i
|
|
1807
|
-
} = t, l =
|
|
1807
|
+
} = t, l = $s(["initialized", s.direction, {
|
|
1808
1808
|
"free-mode": t.params.freeMode && s.freeMode.enabled
|
|
1809
1809
|
}, {
|
|
1810
1810
|
autoheight: s.autoHeight
|
|
@@ -1827,18 +1827,18 @@ function $s() {
|
|
|
1827
1827
|
}], s.containerModifierClass);
|
|
1828
1828
|
e.push(...l), n.classList.add(...e), t.emitContainerClasses();
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function Ns() {
|
|
1831
1831
|
const t = this, {
|
|
1832
1832
|
el: e,
|
|
1833
1833
|
classNames: s
|
|
1834
1834
|
} = t;
|
|
1835
1835
|
!e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
|
|
1836
1836
|
}
|
|
1837
|
-
var
|
|
1838
|
-
addClasses:
|
|
1839
|
-
removeClasses:
|
|
1837
|
+
var Bs = {
|
|
1838
|
+
addClasses: Gs,
|
|
1839
|
+
removeClasses: Ns
|
|
1840
1840
|
};
|
|
1841
|
-
function
|
|
1841
|
+
function Ds() {
|
|
1842
1842
|
const t = this, {
|
|
1843
1843
|
isLocked: e,
|
|
1844
1844
|
params: s
|
|
@@ -1852,8 +1852,8 @@ function Bs() {
|
|
|
1852
1852
|
t.isLocked = t.snapGrid.length === 1;
|
|
1853
1853
|
s.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), s.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
|
|
1854
1854
|
}
|
|
1855
|
-
var
|
|
1856
|
-
checkOverflow:
|
|
1855
|
+
var Fs = {
|
|
1856
|
+
checkOverflow: Ds
|
|
1857
1857
|
}, Ce = {
|
|
1858
1858
|
init: !0,
|
|
1859
1859
|
direction: "horizontal",
|
|
@@ -1975,7 +1975,7 @@ var Ds = {
|
|
|
1975
1975
|
// Internals
|
|
1976
1976
|
_emitClasses: !1
|
|
1977
1977
|
};
|
|
1978
|
-
function
|
|
1978
|
+
function js(t, e) {
|
|
1979
1979
|
return function(s) {
|
|
1980
1980
|
s === void 0 && (s = {});
|
|
1981
1981
|
const r = Object.keys(s)[0], n = s[r];
|
|
@@ -1995,17 +1995,17 @@ function Fs(t, e) {
|
|
|
1995
1995
|
};
|
|
1996
1996
|
}
|
|
1997
1997
|
const be = {
|
|
1998
|
-
eventsEmitter:
|
|
1999
|
-
update:
|
|
2000
|
-
translate:
|
|
2001
|
-
transition:
|
|
2002
|
-
slide:
|
|
1998
|
+
eventsEmitter: Bt,
|
|
1999
|
+
update: Ut,
|
|
2000
|
+
translate: ts,
|
|
2001
|
+
transition: ns,
|
|
2002
|
+
slide: ms,
|
|
2003
2003
|
loop: gs,
|
|
2004
|
-
grabCursor:
|
|
2005
|
-
events:
|
|
2006
|
-
breakpoints:
|
|
2007
|
-
checkOverflow:
|
|
2008
|
-
classes:
|
|
2004
|
+
grabCursor: ys,
|
|
2005
|
+
events: As,
|
|
2006
|
+
breakpoints: _s,
|
|
2007
|
+
checkOverflow: Fs,
|
|
2008
|
+
classes: Bs
|
|
2009
2009
|
}, ye = {};
|
|
2010
2010
|
let ze = class q {
|
|
2011
2011
|
constructor() {
|
|
@@ -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) => {
|
|
@@ -2032,7 +2032,7 @@ let ze = class q {
|
|
|
2032
2032
|
d({
|
|
2033
2033
|
params: s,
|
|
2034
2034
|
swiper: a,
|
|
2035
|
-
extendParams:
|
|
2035
|
+
extendParams: js(s, o),
|
|
2036
2036
|
on: a.on.bind(a),
|
|
2037
2037
|
once: a.once.bind(a),
|
|
2038
2038
|
off: a.off.bind(a),
|
|
@@ -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);
|
|
@@ -2290,7 +2290,7 @@ let ze = class q {
|
|
|
2290
2290
|
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2291
2291
|
})), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
|
|
2292
2292
|
r.off(o);
|
|
2293
|
-
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null),
|
|
2293
|
+
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), Ct(r)), r.destroyed = !0), null;
|
|
2294
2294
|
}
|
|
2295
2295
|
static extendDefaults(e) {
|
|
2296
2296
|
B(ye, e);
|
|
@@ -2315,7 +2315,7 @@ Object.keys(be).forEach((t) => {
|
|
|
2315
2315
|
ze.prototype[e] = be[t][e];
|
|
2316
2316
|
});
|
|
2317
2317
|
});
|
|
2318
|
-
ze.use([
|
|
2318
|
+
ze.use([Gt, Nt]);
|
|
2319
2319
|
const Ze = [
|
|
2320
2320
|
"eventsPrefix",
|
|
2321
2321
|
"injectStyles",
|
|
@@ -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) {
|
|
@@ -2460,10 +2460,10 @@ function rt(t) {
|
|
|
2460
2460
|
s.indexOf(r) < 0 && s.push(r);
|
|
2461
2461
|
}), s.join(" ");
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function Vs(t) {
|
|
2464
2464
|
return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2466
|
+
function Hs(t) {
|
|
2467
2467
|
let {
|
|
2468
2468
|
swiper: e,
|
|
2469
2469
|
slides: s,
|
|
@@ -2478,33 +2478,33 @@ function Vs(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
|
-
function
|
|
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
|
}), {
|
|
@@ -2514,7 +2514,7 @@ function Hs(t, e) {
|
|
|
2514
2514
|
events: r
|
|
2515
2515
|
};
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function qs(t, e) {
|
|
2518
2518
|
let {
|
|
2519
2519
|
el: s,
|
|
2520
2520
|
nextEl: r,
|
|
@@ -2525,7 +2525,7 @@ function Rs(t, e) {
|
|
|
2525
2525
|
} = t;
|
|
2526
2526
|
et(e) && r && n && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), tt(e) && i && (a.params.pagination.el = i, a.originalParams.pagination.el = i), st(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(s);
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function Ws(t, e, s, r, n) {
|
|
2529
2529
|
const i = [];
|
|
2530
2530
|
if (!e) return i;
|
|
2531
2531
|
const l = (a) => {
|
|
@@ -2537,7 +2537,7 @@ function qs(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);
|
|
@@ -2547,7 +2547,7 @@ function qs(t, e, s, r, n) {
|
|
|
2547
2547
|
} else t[a] !== e[a] && l(a);
|
|
2548
2548
|
}), i;
|
|
2549
2549
|
}
|
|
2550
|
-
const
|
|
2550
|
+
const Ys = (t) => {
|
|
2551
2551
|
!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());
|
|
2552
2552
|
};
|
|
2553
2553
|
function pe() {
|
|
@@ -2569,7 +2569,7 @@ function nt(t) {
|
|
|
2569
2569
|
it(s) ? e.push(s) : s.props && s.props.children && nt(s.props.children).forEach((r) => e.push(r));
|
|
2570
2570
|
}), e;
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function Xs(t) {
|
|
2573
2573
|
const e = [], s = {
|
|
2574
2574
|
"container-start": [],
|
|
2575
2575
|
"container-end": [],
|
|
@@ -2591,7 +2591,7 @@ function Ys(t) {
|
|
|
2591
2591
|
slots: s
|
|
2592
2592
|
};
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2594
|
+
function Us(t, e, s) {
|
|
2595
2595
|
if (!s) return null;
|
|
2596
2596
|
const r = (d) => {
|
|
2597
2597
|
let u = d;
|
|
@@ -2612,10 +2612,10 @@ function Xs(t, e, s) {
|
|
|
2612
2612
|
key: d.props.virtualIndex || d.key || `slide-${u}`
|
|
2613
2613
|
}));
|
|
2614
2614
|
}
|
|
2615
|
-
function
|
|
2616
|
-
return typeof window > "u" ?
|
|
2615
|
+
function ee(t, e) {
|
|
2616
|
+
return typeof window > "u" ? U(t, e) : gt(t, e);
|
|
2617
2617
|
}
|
|
2618
|
-
const Fe = /* @__PURE__ */ He(null),
|
|
2618
|
+
const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__PURE__ */ Le(function(t, e) {
|
|
2619
2619
|
let {
|
|
2620
2620
|
className: s,
|
|
2621
2621
|
tag: r = "div",
|
|
@@ -2624,16 +2624,16 @@ const Fe = /* @__PURE__ */ He(null), Us = /* @__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,
|
|
2631
2631
|
events: x
|
|
2632
|
-
} =
|
|
2632
|
+
} = Rs(a), {
|
|
2633
2633
|
slides: k,
|
|
2634
2634
|
slots: L
|
|
2635
|
-
} =
|
|
2636
|
-
h(!
|
|
2635
|
+
} = Xs(i), O = () => {
|
|
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), Us = /* @__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), Us = /* @__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
|
-
return w.current.destroyed && C(),
|
|
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,
|
|
@@ -2682,26 +2682,26 @@ const Fe = /* @__PURE__ */ He(null), Us = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2682
2682
|
}, I), l && !w.current.destroyed && l(w.current), () => {
|
|
2683
2683
|
w.current && !w.current.destroyed && w.current.destroy(!0, !1);
|
|
2684
2684
|
};
|
|
2685
|
-
}, []),
|
|
2685
|
+
}, []), ee(() => {
|
|
2686
2686
|
z();
|
|
2687
|
-
const G =
|
|
2688
|
-
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed &&
|
|
2687
|
+
const G = Ws(S, p.current, k, m.current, (V) => V.key);
|
|
2688
|
+
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Hs({
|
|
2689
2689
|
swiper: w.current,
|
|
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
|
|
2697
2697
|
}), () => {
|
|
2698
2698
|
X();
|
|
2699
2699
|
};
|
|
2700
|
-
}),
|
|
2701
|
-
|
|
2700
|
+
}), ee(() => {
|
|
2701
|
+
Ys(w.current);
|
|
2702
2702
|
}, [u]);
|
|
2703
2703
|
function j() {
|
|
2704
|
-
return I.virtual ?
|
|
2704
|
+
return I.virtual ? Us(w.current, k, u) : k.map((G, V) => /* @__PURE__ */ $.cloneElement(G, {
|
|
2705
2705
|
swiper: w.current,
|
|
2706
2706
|
swiperSlideIndex: V
|
|
2707
2707
|
}));
|
|
@@ -2709,15 +2709,15 @@ const Fe = /* @__PURE__ */ He(null), Us = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2709
2709
|
return /* @__PURE__ */ $.createElement(r, pe({
|
|
2710
2710
|
ref: M,
|
|
2711
2711
|
className: rt(`${c}${s ? ` ${s}` : ""}`)
|
|
2712
|
-
}, E), /* @__PURE__ */ $.createElement(
|
|
2712
|
+
}, E), /* @__PURE__ */ $.createElement(Qs.Provider, {
|
|
2713
2713
|
value: w.current
|
|
2714
2714
|
}, L["container-start"], /* @__PURE__ */ $.createElement(n, {
|
|
2715
|
-
className:
|
|
2715
|
+
className: Vs(I.wrapperClass)
|
|
2716
2716
|
}, L["wrapper-start"], j(), L["wrapper-end"]), et(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
|
|
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,22 +2740,22 @@ 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), () => {
|
|
2754
2754
|
i && i.off("_slideClass", M);
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
|
-
}),
|
|
2758
|
-
i && u.current && !i.destroyed &&
|
|
2757
|
+
}), ee(() => {
|
|
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,
|
|
@@ -2784,7 +2784,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2784
2784
|
})));
|
|
2785
2785
|
});
|
|
2786
2786
|
ae.displayName = "SwiperSlide";
|
|
2787
|
-
const
|
|
2787
|
+
const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
2788
2788
|
name: "Carousel",
|
|
2789
2789
|
class: "c1f9jjsn",
|
|
2790
2790
|
propsAsIs: !0
|
|
@@ -2792,14 +2792,14 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2792
2792
|
name: "ScreenWrap",
|
|
2793
2793
|
class: "s25r51y",
|
|
2794
2794
|
propsAsIs: !1
|
|
2795
|
-
}),
|
|
2795
|
+
}), Zs = () => te, er = /* @__PURE__ */ _(Zs())({
|
|
2796
2796
|
name: "SponsorIconI",
|
|
2797
2797
|
class: "s1lvrmx8",
|
|
2798
2798
|
propsAsIs: !0
|
|
2799
2799
|
}), lt = ({
|
|
2800
2800
|
style: t,
|
|
2801
2801
|
className: e
|
|
2802
|
-
}) => /* @__PURE__ */ P(
|
|
2802
|
+
}) => /* @__PURE__ */ P(er, {
|
|
2803
2803
|
className: e,
|
|
2804
2804
|
style: t,
|
|
2805
2805
|
name: "icon-masters-logo"
|
|
@@ -2819,47 +2819,47 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2819
2819
|
name: "ScreenButton",
|
|
2820
2820
|
class: "sqtjig9",
|
|
2821
2821
|
propsAsIs: !1
|
|
2822
|
-
}),
|
|
2822
|
+
}), tr = /* @__PURE__ */ _("div")({
|
|
2823
2823
|
name: "EmergencyContainer",
|
|
2824
2824
|
class: "e1f9mu2m",
|
|
2825
2825
|
propsAsIs: !1
|
|
2826
|
-
}),
|
|
2826
|
+
}), sr = /* @__PURE__ */ _("div")({
|
|
2827
2827
|
name: "EmergencyScreenTitle",
|
|
2828
2828
|
class: "e1n10yo1",
|
|
2829
2829
|
propsAsIs: !1
|
|
2830
|
-
}),
|
|
2830
|
+
}), rr = /* @__PURE__ */ _("div")({
|
|
2831
2831
|
name: "EmergencyScreenDescription",
|
|
2832
2832
|
class: "e1xecypc",
|
|
2833
2833
|
propsAsIs: !1
|
|
2834
|
-
}),
|
|
2834
|
+
}), ir = () => ue, nr = /* @__PURE__ */ _(ir())({
|
|
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
|
-
}, [r]), /* @__PURE__ */ F(
|
|
2841
|
-
/* @__PURE__ */ P(
|
|
2842
|
-
/* @__PURE__ */ P(
|
|
2843
|
-
/* @__PURE__ */ P(
|
|
2844
|
-
] })),
|
|
2840
|
+
}, [r]), /* @__PURE__ */ F(tr, { className: s, children: [
|
|
2841
|
+
/* @__PURE__ */ P(sr, { children: "Something went wrong." }),
|
|
2842
|
+
/* @__PURE__ */ P(rr, { children: e }),
|
|
2843
|
+
/* @__PURE__ */ P(nr, { onClick: t, children: "Try again" })
|
|
2844
|
+
] })), ar = /* @__PURE__ */ _("div")({
|
|
2845
2845
|
name: "ScreenContainerBox",
|
|
2846
2846
|
class: "s28ooi9",
|
|
2847
2847
|
propsAsIs: !1
|
|
2848
|
-
}), me = ({ children: t }) => /* @__PURE__ */ P(
|
|
2848
|
+
}), me = ({ children: t }) => /* @__PURE__ */ P(ar, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), lr = /* @__PURE__ */ _("img")({
|
|
2849
2849
|
name: "EndScreenMedia",
|
|
2850
2850
|
class: "e8s3kc9",
|
|
2851
2851
|
propsAsIs: !1
|
|
2852
|
-
}),
|
|
2852
|
+
}), or = () => lt, dr = /* @__PURE__ */ _(or())({
|
|
2853
2853
|
name: "EndScreenSponsorIcon",
|
|
2854
2854
|
class: "e1uswib2",
|
|
2855
2855
|
propsAsIs: !0
|
|
2856
|
-
}),
|
|
2856
|
+
}), cr = ({ onEvent: t, height: e }) => {
|
|
2857
2857
|
const [s, r] = W(
|
|
2858
2858
|
0
|
|
2859
2859
|
/* FIRST */
|
|
2860
2860
|
);
|
|
2861
2861
|
return s === 0 ? /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
|
|
2862
|
-
/* @__PURE__ */ P(
|
|
2862
|
+
/* @__PURE__ */ P(dr, {}),
|
|
2863
2863
|
/* @__PURE__ */ F(ot, { children: [
|
|
2864
2864
|
/* @__PURE__ */ P(dt, { children: "Great picks!" }),
|
|
2865
2865
|
/* @__PURE__ */ P(Me, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
|
|
@@ -2867,6 +2867,7 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2867
2867
|
/* @__PURE__ */ P(
|
|
2868
2868
|
ue,
|
|
2869
2869
|
{
|
|
2870
|
+
"data-a": "intr",
|
|
2870
2871
|
onClick: () => {
|
|
2871
2872
|
r(
|
|
2872
2873
|
1
|
|
@@ -2878,11 +2879,11 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2878
2879
|
}
|
|
2879
2880
|
)
|
|
2880
2881
|
] }) }, "end") : /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
|
|
2881
|
-
/* @__PURE__ */ P(
|
|
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",
|
|
2887
2888
|
class: "cv31tt7",
|
|
2888
2889
|
propsAsIs: !1
|
|
@@ -2890,34 +2891,35 @@ const Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
2890
2891
|
className: t
|
|
2891
2892
|
}) => /* @__PURE__ */ P(pr, {
|
|
2892
2893
|
className: t,
|
|
2893
|
-
children: /* @__PURE__ */ P(
|
|
2894
|
-
}), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(
|
|
2894
|
+
children: /* @__PURE__ */ P(mt, {})
|
|
2895
|
+
}), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(ft, { close: () => {
|
|
2895
2896
|
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, mr = /* @__PURE__ */ _("span")({
|
|
2896
2897
|
name: "NextButton",
|
|
2897
2898
|
class: "n991vvm",
|
|
2898
2899
|
propsAsIs: !1
|
|
2899
|
-
}), fr = () =>
|
|
2900
|
+
}), fr = () => te, hr = /* @__PURE__ */ _(fr())({
|
|
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 Qs = () => at, Ks = /* @__PURE__ */ _(Qs())({
|
|
|
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);
|
|
@@ -2941,7 +2943,7 @@ function yr(t, e = {}) {
|
|
|
2941
2943
|
(n) => e.keys ? br(t, e.keys, n) : t.listen(n),
|
|
2942
2944
|
[e.keys, t]
|
|
2943
2945
|
), r = t.get.bind(t);
|
|
2944
|
-
return
|
|
2946
|
+
return wt(s, r, r);
|
|
2945
2947
|
}
|
|
2946
2948
|
function Sr(t, e, s, r) {
|
|
2947
2949
|
return t.params.createElements && Object.keys(r).forEach((n) => {
|
|
@@ -2951,7 +2953,7 @@ function Sr(t, e, s, r) {
|
|
|
2951
2953
|
}
|
|
2952
2954
|
}), s;
|
|
2953
2955
|
}
|
|
2954
|
-
function
|
|
2956
|
+
function Z(t) {
|
|
2955
2957
|
return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
2956
2958
|
}
|
|
2957
2959
|
function Er(t) {
|
|
@@ -3003,45 +3005,45 @@ 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";
|
|
3015
3017
|
}
|
|
3016
3018
|
function u(p) {
|
|
3017
|
-
const m = p.target.closest(
|
|
3019
|
+
const m = p.target.closest(Z(e.params.pagination.bulletClass));
|
|
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,29 +3066,29 @@ function Er(t) {
|
|
|
3064
3066
|
});
|
|
3065
3067
|
}
|
|
3066
3068
|
}
|
|
3067
|
-
|
|
3068
|
-
if (m.type === "fraction" && (S.querySelectorAll(
|
|
3069
|
+
g.forEach((S, E) => {
|
|
3070
|
+
if (m.type === "fraction" && (S.querySelectorAll(Z(m.currentClass)).forEach((x) => {
|
|
3069
3071
|
x.textContent = m.formatFractionCurrent(y + 1);
|
|
3070
|
-
}), S.querySelectorAll(
|
|
3072
|
+
}), S.querySelectorAll(Z(m.totalClass)).forEach((x) => {
|
|
3071
3073
|
x.textContent = m.formatFractionTotal(I);
|
|
3072
3074
|
})), m.type === "progressbar") {
|
|
3073
3075
|
let x;
|
|
3074
3076
|
m.progressbarOpposite ? x = e.isHorizontal() ? "vertical" : "horizontal" : x = e.isHorizontal() ? "horizontal" : "vertical";
|
|
3075
3077
|
const k = (y + 1) / I;
|
|
3076
3078
|
let L = 1, O = 1;
|
|
3077
|
-
x === "horizontal" ? L = k : O = k, S.querySelectorAll(
|
|
3079
|
+
x === "horizontal" ? L = k : O = k, S.querySelectorAll(Z(m.progressbarFillClass)).forEach((C) => {
|
|
3078
3080
|
C.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, C.style.transitionDuration = `${e.params.speed}ms`;
|
|
3079
3081
|
});
|
|
3080
3082
|
}
|
|
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 = [],
|
|
3098
|
-
p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(
|
|
3099
|
-
}), p.type !== "custom" && n("paginationRender",
|
|
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) => {
|
|
3100
|
+
p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(Z(p.bulletClass)));
|
|
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,11 +3258,11 @@ 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,
|
|
3264
3266
|
{
|
|
3265
3267
|
slidesPerView: u,
|
|
3266
3268
|
spaceBetween: 12,
|
|
@@ -3275,13 +3277,13 @@ 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((
|
|
3284
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(
|
|
3285
|
+
a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(ur, { question: v, vote: c }) }, v.id) }) : null),
|
|
3286
|
+
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(cr, { onEvent: s }) })
|
|
3285
3287
|
]
|
|
3286
3288
|
}
|
|
3287
3289
|
);
|
|
@@ -3292,7 +3294,7 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3292
3294
|
{
|
|
3293
3295
|
onEvent: n,
|
|
3294
3296
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3295
|
-
description: l instanceof
|
|
3297
|
+
description: l instanceof yt && l.code !== St.InvalidArgument ? `The event ID was not
|
|
3296
3298
|
specified or is invalid.` : `The server is unable to
|
|
3297
3299
|
handle this request.`
|
|
3298
3300
|
}
|
|
@@ -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" }));
|
|
@@ -3333,7 +3335,7 @@ handle this request.`
|
|
|
3333
3335
|
name: "CloseButton",
|
|
3334
3336
|
class: "coc9f01",
|
|
3335
3337
|
propsAsIs: !1
|
|
3336
|
-
}), je = "b590k5k", Ar = () =>
|
|
3338
|
+
}), je = "b590k5k", Ar = () => te, ct = /* @__PURE__ */ _(Ar())({
|
|
3337
3339
|
name: "IconArrowPrev",
|
|
3338
3340
|
class: "i1tkem14",
|
|
3339
3341
|
propsAsIs: !0
|
|
@@ -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") {
|
|
@@ -3383,15 +3385,15 @@ handle this request.`
|
|
|
3383
3385
|
return /* @__PURE__ */ F(Ir, { ref: r, children: [
|
|
3384
3386
|
/* @__PURE__ */ F(_r, { children: [
|
|
3385
3387
|
/* @__PURE__ */ F($r, { children: [
|
|
3386
|
-
/* @__PURE__ */ P(
|
|
3388
|
+
/* @__PURE__ */ P(te, { name: "fgIcon" }),
|
|
3387
3389
|
"Featured Groups+"
|
|
3388
3390
|
] }),
|
|
3389
|
-
/* @__PURE__ */ P(Lr, { onClick: s, children: /* @__PURE__ */ P(
|
|
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(
|
|
@@ -3402,9 +3404,11 @@ handle this request.`
|
|
|
3402
3404
|
description: `You are not authorized to
|
|
3403
3405
|
view this resource.`
|
|
3404
3406
|
}
|
|
3405
|
-
) : /* @__PURE__ */ P(Ie, {}), Dr =
|
|
3406
|
-
const n = _e(t.featuresList.getStore()), i = Re(() => t.getFeature(
|
|
3407
|
-
return
|
|
3407
|
+
) : /* @__PURE__ */ P(Ie, {}), Dr = bt(({ sdk: t, swipeable: e = !0, onEvent: s = kr, overlay: r }) => {
|
|
3408
|
+
const n = _e(t.featuresList.getStore()), i = Re(() => t.getFeature(Et.GAMES), [n]), l = _e(t.getUserStore());
|
|
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
|
};
|