@streamlayer/react 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/pause-ad.d.ts +38 -0
- package/lib/cjs/advertisement.js +38 -42
- package/lib/cjs/index-l-eyvmpL.js +5 -0
- package/lib/cjs/index2.js +3 -3
- package/lib/cjs/pause-ad.js +1 -0
- package/lib/cjs/provider.js +23 -23
- package/lib/cjs/useStreamLayerApp2.js +1 -1
- package/lib/cjs/vast-client.min-B0NUra1B.js +1 -0
- package/lib/classic/app/pause-ad.d.ts +38 -0
- package/lib/classic/cjs/advertisement.js +38 -42
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/index-l-eyvmpL.js +5 -0
- package/lib/classic/cjs/pause-ad.js +1 -0
- package/lib/classic/cjs/provider.js +17 -17
- package/lib/classic/cjs/useStreamLayerApp2.js +1 -1
- package/lib/classic/cjs/vast-client.min-B0NUra1B.js +1 -0
- package/lib/classic/es/advertisement.js +10211 -15019
- package/lib/classic/es/bet-pack.js +291 -304
- package/lib/classic/es/index-l-eyvmpL.js +3758 -0
- package/lib/classic/es/index.js +3 -3
- package/lib/classic/es/notification.js +1 -1
- package/lib/classic/es/pause-ad.js +250 -0
- package/lib/classic/es/provider.js +6776 -6354
- package/lib/classic/es/useStreamLayerApp2.js +1 -1
- package/lib/classic/es/vast-client.min-B0NUra1B.js +1060 -0
- package/lib/dist/cjs/masters.js +22 -22
- package/lib/dist/es/masters.js +2815 -2828
- package/lib/es/advertisement.js +10211 -15019
- package/lib/es/index-l-eyvmpL.js +3758 -0
- package/lib/es/index.js +1 -1
- package/lib/es/index2.js +275 -288
- package/lib/es/masters2.js +1 -1
- package/lib/es/notification.js +53 -53
- package/lib/es/pause-ad.js +250 -0
- package/lib/es/provider.js +5871 -5414
- package/lib/es/useStreamLayerApp2.js +1 -1
- package/lib/es/vast-client.min-B0NUra1B.js +1060 -0
- package/package.json +24 -14
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import { s as _, B as te,
|
|
3
|
-
import $, {
|
|
4
|
-
import { C as
|
|
5
|
-
function
|
|
6
|
-
let r = new Set(e).add(void 0);
|
|
7
|
-
return t.listen((n, i, l) => {
|
|
8
|
-
r.has(l) && s(n, i, l);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function kt(t, e = {}) {
|
|
12
|
-
let s = Le(
|
|
13
|
-
(n) => e.keys ? Mt(t, e.keys, n) : t.listen(n),
|
|
14
|
-
[e.keys, t]
|
|
15
|
-
), r = t.get.bind(t);
|
|
16
|
-
return Et(s, r, r);
|
|
17
|
-
}
|
|
18
|
-
function $e(t) {
|
|
2
|
+
import { s as _, B as te, k as vt, l as gt, a as Se, q as wt, c as bt, j as Ee, u as yt, e as St } from "./provider.js";
|
|
3
|
+
import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as Y, useLayoutEffect as Et, createContext as He, useMemo as Re, useCallback as qe, memo as xt } from "react";
|
|
4
|
+
import { C as Tt, a as Ct, S as We } from "./useStreamLayerApp2.js";
|
|
5
|
+
function _e(t) {
|
|
19
6
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
20
7
|
}
|
|
21
8
|
function Oe(t, e) {
|
|
22
9
|
t === void 0 && (t = {}), e === void 0 && (e = {});
|
|
23
10
|
const s = ["__proto__", "constructor", "prototype"];
|
|
24
11
|
Object.keys(e).filter((r) => s.indexOf(r) < 0).forEach((r) => {
|
|
25
|
-
typeof t[r] > "u" ? t[r] = e[r] :
|
|
12
|
+
typeof t[r] > "u" ? t[r] = e[r] : _e(e[r]) && _e(t[r]) && Object.keys(e[r]).length > 0 && Oe(t[r], e[r]);
|
|
26
13
|
});
|
|
27
14
|
}
|
|
28
15
|
const Ye = {
|
|
@@ -84,7 +71,7 @@ function K() {
|
|
|
84
71
|
const t = typeof document < "u" ? document : {};
|
|
85
72
|
return Oe(t, Ye), t;
|
|
86
73
|
}
|
|
87
|
-
const
|
|
74
|
+
const Pt = {
|
|
88
75
|
document: Ye,
|
|
89
76
|
navigator: {
|
|
90
77
|
userAgent: ""
|
|
@@ -144,12 +131,12 @@ const It = {
|
|
|
144
131
|
};
|
|
145
132
|
function B() {
|
|
146
133
|
const t = typeof window < "u" ? window : {};
|
|
147
|
-
return Oe(t,
|
|
134
|
+
return Oe(t, Pt), t;
|
|
148
135
|
}
|
|
149
|
-
function
|
|
136
|
+
function Mt(t) {
|
|
150
137
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
151
138
|
}
|
|
152
|
-
function
|
|
139
|
+
function kt(t) {
|
|
153
140
|
const e = t;
|
|
154
141
|
Object.keys(e).forEach((s) => {
|
|
155
142
|
try {
|
|
@@ -162,35 +149,35 @@ function At(t) {
|
|
|
162
149
|
}
|
|
163
150
|
});
|
|
164
151
|
}
|
|
165
|
-
function
|
|
152
|
+
function xe(t, e) {
|
|
166
153
|
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
167
154
|
}
|
|
168
155
|
function le() {
|
|
169
156
|
return Date.now();
|
|
170
157
|
}
|
|
171
|
-
function
|
|
158
|
+
function It(t) {
|
|
172
159
|
const e = B();
|
|
173
160
|
let s;
|
|
174
161
|
return e.getComputedStyle && (s = e.getComputedStyle(t, null)), !s && t.currentStyle && (s = t.currentStyle), s || (s = t.style), s;
|
|
175
162
|
}
|
|
176
|
-
function
|
|
163
|
+
function Lt(t, e) {
|
|
177
164
|
e === void 0 && (e = "x");
|
|
178
165
|
const s = B();
|
|
179
166
|
let r, n, i;
|
|
180
|
-
const l =
|
|
167
|
+
const l = It(t);
|
|
181
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;
|
|
182
169
|
}
|
|
183
170
|
function se(t) {
|
|
184
171
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
185
172
|
}
|
|
186
|
-
function
|
|
173
|
+
function At(t) {
|
|
187
174
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
188
175
|
}
|
|
189
176
|
function N() {
|
|
190
177
|
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
191
178
|
for (let s = 1; s < arguments.length; s += 1) {
|
|
192
179
|
const r = s < 0 || arguments.length <= s ? void 0 : arguments[s];
|
|
193
|
-
if (r != null && !
|
|
180
|
+
if (r != null && !At(r)) {
|
|
194
181
|
const n = Object.keys(Object(r)).filter((i) => e.indexOf(i) < 0);
|
|
195
182
|
for (let i = 0, l = n.length; i < l; i += 1) {
|
|
196
183
|
const a = n[i], o = Object.getOwnPropertyDescriptor(r, a);
|
|
@@ -236,7 +223,7 @@ function H(t, e) {
|
|
|
236
223
|
const s = B(), r = [...t.children];
|
|
237
224
|
return s.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((n) => n.matches(e)) : r;
|
|
238
225
|
}
|
|
239
|
-
function
|
|
226
|
+
function Ot(t, e) {
|
|
240
227
|
const s = [e];
|
|
241
228
|
for (; s.length > 0; ) {
|
|
242
229
|
const r = s.shift();
|
|
@@ -245,10 +232,10 @@ function $t(t, e) {
|
|
|
245
232
|
s.push(...r.children, ...r.shadowRoot ? r.shadowRoot.children : [], ...r.assignedElements ? r.assignedElements() : []);
|
|
246
233
|
}
|
|
247
234
|
}
|
|
248
|
-
function
|
|
235
|
+
function zt(t, e) {
|
|
249
236
|
const s = B();
|
|
250
237
|
let r = e.contains(t);
|
|
251
|
-
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 = Ot(t, e))), r;
|
|
252
239
|
}
|
|
253
240
|
function oe(t) {
|
|
254
241
|
try {
|
|
@@ -260,9 +247,9 @@ function oe(t) {
|
|
|
260
247
|
function de(t, e) {
|
|
261
248
|
e === void 0 && (e = []);
|
|
262
249
|
const s = document.createElement(t);
|
|
263
|
-
return s.classList.add(...Array.isArray(e) ? e :
|
|
250
|
+
return s.classList.add(...Array.isArray(e) ? e : Mt(e)), s;
|
|
264
251
|
}
|
|
265
|
-
function
|
|
252
|
+
function _t(t, e) {
|
|
266
253
|
const s = [];
|
|
267
254
|
for (; t.previousElementSibling; ) {
|
|
268
255
|
const r = t.previousElementSibling;
|
|
@@ -270,7 +257,7 @@ function Bt(t, e) {
|
|
|
270
257
|
}
|
|
271
258
|
return s;
|
|
272
259
|
}
|
|
273
|
-
function
|
|
260
|
+
function $t(t, e) {
|
|
274
261
|
const s = [];
|
|
275
262
|
for (; t.nextElementSibling; ) {
|
|
276
263
|
const r = t.nextElementSibling;
|
|
@@ -296,7 +283,7 @@ function Ue(t, e) {
|
|
|
296
283
|
e ? r.matches(e) && s.push(r) : s.push(r), r = r.parentElement;
|
|
297
284
|
return s;
|
|
298
285
|
}
|
|
299
|
-
function
|
|
286
|
+
function Te(t, e, s) {
|
|
300
287
|
const r = B();
|
|
301
288
|
return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
302
289
|
}
|
|
@@ -304,7 +291,7 @@ function R(t) {
|
|
|
304
291
|
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
305
292
|
}
|
|
306
293
|
let fe;
|
|
307
|
-
function
|
|
294
|
+
function Gt() {
|
|
308
295
|
const t = B(), e = K();
|
|
309
296
|
return {
|
|
310
297
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
@@ -312,10 +299,10 @@ function Dt() {
|
|
|
312
299
|
};
|
|
313
300
|
}
|
|
314
301
|
function Qe() {
|
|
315
|
-
return fe || (fe =
|
|
302
|
+
return fe || (fe = Gt()), fe;
|
|
316
303
|
}
|
|
317
304
|
let he;
|
|
318
|
-
function
|
|
305
|
+
function Bt(t) {
|
|
319
306
|
let {
|
|
320
307
|
userAgent: e
|
|
321
308
|
} = t === void 0 ? {} : t;
|
|
@@ -330,10 +317,10 @@ function Ft(t) {
|
|
|
330
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;
|
|
331
318
|
}
|
|
332
319
|
function Ke(t) {
|
|
333
|
-
return t === void 0 && (t = {}), he || (he =
|
|
320
|
+
return t === void 0 && (t = {}), he || (he = Bt(t)), he;
|
|
334
321
|
}
|
|
335
322
|
let ve;
|
|
336
|
-
function
|
|
323
|
+
function Nt() {
|
|
337
324
|
const t = B(), e = Ke();
|
|
338
325
|
let s = !1;
|
|
339
326
|
function r() {
|
|
@@ -356,9 +343,9 @@ function Vt() {
|
|
|
356
343
|
};
|
|
357
344
|
}
|
|
358
345
|
function Je() {
|
|
359
|
-
return ve || (ve =
|
|
346
|
+
return ve || (ve = Nt()), ve;
|
|
360
347
|
}
|
|
361
|
-
function
|
|
348
|
+
function Dt(t) {
|
|
362
349
|
let {
|
|
363
350
|
swiper: e,
|
|
364
351
|
on: s,
|
|
@@ -401,7 +388,7 @@ function jt(t) {
|
|
|
401
388
|
c(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", d);
|
|
402
389
|
});
|
|
403
390
|
}
|
|
404
|
-
function
|
|
391
|
+
function Ft(t) {
|
|
405
392
|
let {
|
|
406
393
|
swiper: e,
|
|
407
394
|
extendParams: s,
|
|
@@ -450,7 +437,7 @@ function Ht(t) {
|
|
|
450
437
|
observeSlideChildren: !1
|
|
451
438
|
}), r("init", o), r("destroy", c);
|
|
452
439
|
}
|
|
453
|
-
var
|
|
440
|
+
var jt = {
|
|
454
441
|
on(t, e, s) {
|
|
455
442
|
const r = this;
|
|
456
443
|
if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
|
|
@@ -505,7 +492,7 @@ var Rt = {
|
|
|
505
492
|
}), t;
|
|
506
493
|
}
|
|
507
494
|
};
|
|
508
|
-
function
|
|
495
|
+
function Vt() {
|
|
509
496
|
const t = this;
|
|
510
497
|
let e, s;
|
|
511
498
|
const r = t.el;
|
|
@@ -515,7 +502,7 @@ function qt() {
|
|
|
515
502
|
size: t.isHorizontal() ? e : s
|
|
516
503
|
}));
|
|
517
504
|
}
|
|
518
|
-
function
|
|
505
|
+
function Ht() {
|
|
519
506
|
const t = this;
|
|
520
507
|
function e(E, x) {
|
|
521
508
|
return parseFloat(E.getPropertyValue(t.getDirectionLabel(x)) || 0);
|
|
@@ -552,17 +539,17 @@ function Wt() {
|
|
|
552
539
|
S && (d[E].style[t.getDirectionLabel("width")] = "");
|
|
553
540
|
const k = getComputedStyle(x), L = x.style.transform, O = x.style.webkitTransform;
|
|
554
541
|
if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
|
|
555
|
-
I = t.isHorizontal() ?
|
|
542
|
+
I = t.isHorizontal() ? Te(x, "width") : Te(x, "height");
|
|
556
543
|
else {
|
|
557
|
-
const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"),
|
|
558
|
-
if (
|
|
559
|
-
I = C +
|
|
544
|
+
const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), j = e(k, "margin-left"), G = e(k, "margin-right"), V = k.getPropertyValue("box-sizing");
|
|
545
|
+
if (V && V === "border-box")
|
|
546
|
+
I = C + j + G;
|
|
560
547
|
else {
|
|
561
548
|
const {
|
|
562
549
|
clientWidth: ft,
|
|
563
550
|
offsetWidth: ht
|
|
564
551
|
} = x;
|
|
565
|
-
I = C + z + U +
|
|
552
|
+
I = C + z + U + j + G + (ht - ft);
|
|
566
553
|
}
|
|
567
554
|
}
|
|
568
555
|
L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
|
|
@@ -633,7 +620,7 @@ function Wt() {
|
|
|
633
620
|
u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
|
|
634
621
|
}
|
|
635
622
|
}
|
|
636
|
-
function
|
|
623
|
+
function Rt(t) {
|
|
637
624
|
const e = this, s = [], r = e.virtual && e.params.virtual.enabled;
|
|
638
625
|
let n = 0, i;
|
|
639
626
|
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
@@ -658,15 +645,15 @@ function Yt(t) {
|
|
|
658
645
|
}
|
|
659
646
|
(n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
|
|
660
647
|
}
|
|
661
|
-
function
|
|
648
|
+
function qt() {
|
|
662
649
|
const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
663
650
|
for (let r = 0; r < e.length; r += 1)
|
|
664
651
|
e[r].swiperSlideOffset = (t.isHorizontal() ? e[r].offsetLeft : e[r].offsetTop) - s - t.cssOverflowAdjustment();
|
|
665
652
|
}
|
|
666
|
-
const
|
|
653
|
+
const $e = (t, e, s) => {
|
|
667
654
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
668
655
|
};
|
|
669
|
-
function
|
|
656
|
+
function Wt(t) {
|
|
670
657
|
t === void 0 && (t = this && this.translate || 0);
|
|
671
658
|
const e = this, s = e.params, {
|
|
672
659
|
slides: r,
|
|
@@ -684,10 +671,10 @@ function Ut(t) {
|
|
|
684
671
|
let d = c.swiperSlideOffset;
|
|
685
672
|
s.cssMode && s.centeredSlides && (d -= r[0].swiperSlideOffset);
|
|
686
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;
|
|
687
|
-
M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)),
|
|
674
|
+
M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), $e(c, M, s.slideVisibleClass), $e(c, b, s.slideFullyVisibleClass), c.progress = n ? -u : u, c.originalProgress = n ? -f : f;
|
|
688
675
|
}
|
|
689
676
|
}
|
|
690
|
-
function
|
|
677
|
+
function Yt(t) {
|
|
691
678
|
const e = this;
|
|
692
679
|
if (typeof t > "u") {
|
|
693
680
|
const d = e.rtlTranslate ? -1 : 1;
|
|
@@ -722,7 +709,7 @@ function Qt(t) {
|
|
|
722
709
|
const ge = (t, e, s) => {
|
|
723
710
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
724
711
|
};
|
|
725
|
-
function
|
|
712
|
+
function Xt() {
|
|
726
713
|
const t = this, {
|
|
727
714
|
slides: e,
|
|
728
715
|
params: s,
|
|
@@ -738,7 +725,7 @@ function Kt() {
|
|
|
738
725
|
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
739
726
|
else
|
|
740
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];
|
|
741
|
-
o && (l || (d =
|
|
728
|
+
o && (l || (d = $t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = _t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
|
|
742
729
|
ge(u, u === o, s.slideActiveClass), ge(u, u === d, s.slideNextClass), ge(u, u === c, s.slidePrevClass);
|
|
743
730
|
}), t.emitSlidesClasses();
|
|
744
731
|
}
|
|
@@ -755,7 +742,7 @@ const ne = (t, e) => {
|
|
|
755
742
|
if (!t.slides[e]) return;
|
|
756
743
|
const s = t.slides[e].querySelector('[loading="lazy"]');
|
|
757
744
|
s && s.removeAttribute("loading");
|
|
758
|
-
},
|
|
745
|
+
}, Ce = (t) => {
|
|
759
746
|
if (!t || t.destroyed || !t.params) return;
|
|
760
747
|
let e = t.params.lazyPreloadPrevNext;
|
|
761
748
|
const s = t.slides.length;
|
|
@@ -781,7 +768,7 @@ const ne = (t, e) => {
|
|
|
781
768
|
for (let l = Math.max(n - e, 0); l <= Math.min(i + e, s - 1); l += 1)
|
|
782
769
|
l !== n && (l > i || l < n) && we(t, l);
|
|
783
770
|
};
|
|
784
|
-
function
|
|
771
|
+
function Ut(t) {
|
|
785
772
|
const {
|
|
786
773
|
slidesGrid: e,
|
|
787
774
|
params: s
|
|
@@ -791,7 +778,7 @@ function Jt(t) {
|
|
|
791
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);
|
|
792
779
|
return s.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
793
780
|
}
|
|
794
|
-
function
|
|
781
|
+
function Qt(t) {
|
|
795
782
|
const e = this, s = e.rtlTranslate ? e.translate : -e.translate, {
|
|
796
783
|
snapGrid: r,
|
|
797
784
|
params: n,
|
|
@@ -804,7 +791,7 @@ function Zt(t) {
|
|
|
804
791
|
let h = v - e.virtual.slidesBefore;
|
|
805
792
|
return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
|
|
806
793
|
};
|
|
807
|
-
if (typeof o > "u" && (o =
|
|
794
|
+
if (typeof o > "u" && (o = Ut(e)), r.indexOf(s) >= 0)
|
|
808
795
|
c = r.indexOf(s);
|
|
809
796
|
else {
|
|
810
797
|
const v = Math.min(n.slidesPerGroupSkip, o);
|
|
@@ -838,9 +825,9 @@ function Zt(t) {
|
|
|
838
825
|
realIndex: f,
|
|
839
826
|
previousIndex: i,
|
|
840
827
|
activeIndex: o
|
|
841
|
-
}), e.initialized &&
|
|
828
|
+
}), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== f && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
842
829
|
}
|
|
843
|
-
function
|
|
830
|
+
function Kt(t, e) {
|
|
844
831
|
const s = this, r = s.params;
|
|
845
832
|
let n = t.closest(`.${r.slideClass}, swiper-slide`);
|
|
846
833
|
!n && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
|
|
@@ -862,18 +849,18 @@ function es(t, e) {
|
|
|
862
849
|
}
|
|
863
850
|
r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
864
851
|
}
|
|
865
|
-
var
|
|
866
|
-
updateSize:
|
|
867
|
-
updateSlides:
|
|
868
|
-
updateAutoHeight:
|
|
869
|
-
updateSlidesOffset:
|
|
870
|
-
updateSlidesProgress:
|
|
871
|
-
updateProgress:
|
|
872
|
-
updateSlidesClasses:
|
|
873
|
-
updateActiveIndex:
|
|
874
|
-
updateClickedSlide:
|
|
852
|
+
var Jt = {
|
|
853
|
+
updateSize: Vt,
|
|
854
|
+
updateSlides: Ht,
|
|
855
|
+
updateAutoHeight: Rt,
|
|
856
|
+
updateSlidesOffset: qt,
|
|
857
|
+
updateSlidesProgress: Wt,
|
|
858
|
+
updateProgress: Yt,
|
|
859
|
+
updateSlidesClasses: Xt,
|
|
860
|
+
updateActiveIndex: Qt,
|
|
861
|
+
updateClickedSlide: Kt
|
|
875
862
|
};
|
|
876
|
-
function
|
|
863
|
+
function Zt(t) {
|
|
877
864
|
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
878
865
|
const e = this, {
|
|
879
866
|
params: s,
|
|
@@ -885,10 +872,10 @@ function ss(t) {
|
|
|
885
872
|
return r ? -n : n;
|
|
886
873
|
if (s.cssMode)
|
|
887
874
|
return n;
|
|
888
|
-
let l =
|
|
875
|
+
let l = Lt(i, t);
|
|
889
876
|
return l += e.cssOverflowAdjustment(), r && (l = -l), l || 0;
|
|
890
877
|
}
|
|
891
|
-
function
|
|
878
|
+
function es(t, e) {
|
|
892
879
|
const s = this, {
|
|
893
880
|
rtlTranslate: r,
|
|
894
881
|
params: n,
|
|
@@ -902,13 +889,13 @@ function rs(t, e) {
|
|
|
902
889
|
const u = s.maxTranslate() - s.minTranslate();
|
|
903
890
|
u === 0 ? d = 0 : d = (t - s.minTranslate()) / u, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
|
|
904
891
|
}
|
|
905
|
-
function
|
|
892
|
+
function ts() {
|
|
906
893
|
return -this.snapGrid[0];
|
|
907
894
|
}
|
|
908
|
-
function
|
|
895
|
+
function ss() {
|
|
909
896
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
910
897
|
}
|
|
911
|
-
function
|
|
898
|
+
function rs(t, e, s, r, n) {
|
|
912
899
|
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), s === void 0 && (s = !0), r === void 0 && (r = !0);
|
|
913
900
|
const i = this, {
|
|
914
901
|
params: l,
|
|
@@ -940,14 +927,14 @@ function as(t, e, s, r, n) {
|
|
|
940
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"));
|
|
941
928
|
}), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
|
|
942
929
|
}
|
|
943
|
-
var
|
|
944
|
-
getTranslate:
|
|
945
|
-
setTranslate:
|
|
946
|
-
minTranslate:
|
|
947
|
-
maxTranslate:
|
|
948
|
-
translateTo:
|
|
930
|
+
var is = {
|
|
931
|
+
getTranslate: Zt,
|
|
932
|
+
setTranslate: es,
|
|
933
|
+
minTranslate: ts,
|
|
934
|
+
maxTranslate: ss,
|
|
935
|
+
translateTo: rs
|
|
949
936
|
};
|
|
950
|
-
function
|
|
937
|
+
function ns(t, e) {
|
|
951
938
|
const s = this;
|
|
952
939
|
s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${t}ms`, s.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), s.emit("setTransition", t, e);
|
|
953
940
|
}
|
|
@@ -971,7 +958,7 @@ function Ze(t) {
|
|
|
971
958
|
e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
|
|
972
959
|
}
|
|
973
960
|
}
|
|
974
|
-
function
|
|
961
|
+
function as(t, e) {
|
|
975
962
|
t === void 0 && (t = !0);
|
|
976
963
|
const s = this, {
|
|
977
964
|
params: r
|
|
@@ -983,7 +970,7 @@ function ds(t, e) {
|
|
|
983
970
|
step: "Start"
|
|
984
971
|
}));
|
|
985
972
|
}
|
|
986
|
-
function
|
|
973
|
+
function ls(t, e) {
|
|
987
974
|
t === void 0 && (t = !0);
|
|
988
975
|
const s = this, {
|
|
989
976
|
params: r
|
|
@@ -995,12 +982,12 @@ function cs(t, e) {
|
|
|
995
982
|
step: "End"
|
|
996
983
|
}));
|
|
997
984
|
}
|
|
998
|
-
var
|
|
999
|
-
setTransition:
|
|
1000
|
-
transitionStart:
|
|
1001
|
-
transitionEnd:
|
|
985
|
+
var os = {
|
|
986
|
+
setTransition: ns,
|
|
987
|
+
transitionStart: as,
|
|
988
|
+
transitionEnd: ls
|
|
1002
989
|
};
|
|
1003
|
-
function
|
|
990
|
+
function ds(t, e, s, r, n) {
|
|
1004
991
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1005
992
|
const i = this;
|
|
1006
993
|
let l = t;
|
|
@@ -1062,7 +1049,7 @@ function us(t, e, s, r, n) {
|
|
|
1062
1049
|
!i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, p));
|
|
1063
1050
|
}), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
|
|
1064
1051
|
}
|
|
1065
|
-
function
|
|
1052
|
+
function cs(t, e, s, r) {
|
|
1066
1053
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1067
1054
|
const n = this;
|
|
1068
1055
|
if (n.destroyed) return;
|
|
@@ -1104,7 +1091,7 @@ function ms(t, e, s, r) {
|
|
|
1104
1091
|
n.slideTo(l, e, s, r);
|
|
1105
1092
|
}), n;
|
|
1106
1093
|
}
|
|
1107
|
-
function
|
|
1094
|
+
function ps(t, e, s) {
|
|
1108
1095
|
e === void 0 && (e = !0);
|
|
1109
1096
|
const r = this, {
|
|
1110
1097
|
enabled: n,
|
|
@@ -1127,7 +1114,7 @@ function fs(t, e, s) {
|
|
|
1127
1114
|
}
|
|
1128
1115
|
return i.rewind && r.isEnd ? r.slideTo(0, t, e, s) : r.slideTo(r.activeIndex + o, t, e, s);
|
|
1129
1116
|
}
|
|
1130
|
-
function
|
|
1117
|
+
function us(t, e, s) {
|
|
1131
1118
|
e === void 0 && (e = !0);
|
|
1132
1119
|
const r = this, {
|
|
1133
1120
|
params: n,
|
|
@@ -1168,13 +1155,13 @@ function hs(t, e, s) {
|
|
|
1168
1155
|
}), !0;
|
|
1169
1156
|
return r.slideTo(w, t, e, s);
|
|
1170
1157
|
}
|
|
1171
|
-
function
|
|
1158
|
+
function ms(t, e, s) {
|
|
1172
1159
|
e === void 0 && (e = !0);
|
|
1173
1160
|
const r = this;
|
|
1174
1161
|
if (!r.destroyed)
|
|
1175
1162
|
return typeof t > "u" && (t = r.params.speed), r.slideTo(r.activeIndex, t, e, s);
|
|
1176
1163
|
}
|
|
1177
|
-
function
|
|
1164
|
+
function fs(t, e, s, r) {
|
|
1178
1165
|
e === void 0 && (e = !0), r === void 0 && (r = 0.5);
|
|
1179
1166
|
const n = this;
|
|
1180
1167
|
if (n.destroyed) return;
|
|
@@ -1190,7 +1177,7 @@ function gs(t, e, s, r) {
|
|
|
1190
1177
|
}
|
|
1191
1178
|
return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
|
|
1192
1179
|
}
|
|
1193
|
-
function
|
|
1180
|
+
function hs() {
|
|
1194
1181
|
const t = this;
|
|
1195
1182
|
if (t.destroyed) return;
|
|
1196
1183
|
const {
|
|
@@ -1201,24 +1188,24 @@ function ws() {
|
|
|
1201
1188
|
const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
|
|
1202
1189
|
if (e.loop) {
|
|
1203
1190
|
if (t.animating) return;
|
|
1204
|
-
i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]),
|
|
1191
|
+
i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), xe(() => {
|
|
1205
1192
|
t.slideTo(n);
|
|
1206
|
-
})) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]),
|
|
1193
|
+
})) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), xe(() => {
|
|
1207
1194
|
t.slideTo(n);
|
|
1208
1195
|
})) : t.slideTo(n);
|
|
1209
1196
|
} else
|
|
1210
1197
|
t.slideTo(n);
|
|
1211
1198
|
}
|
|
1212
|
-
var
|
|
1213
|
-
slideTo:
|
|
1214
|
-
slideToLoop:
|
|
1215
|
-
slideNext:
|
|
1216
|
-
slidePrev:
|
|
1217
|
-
slideReset:
|
|
1218
|
-
slideToClosest:
|
|
1219
|
-
slideToClickedSlide:
|
|
1199
|
+
var vs = {
|
|
1200
|
+
slideTo: ds,
|
|
1201
|
+
slideToLoop: cs,
|
|
1202
|
+
slideNext: ps,
|
|
1203
|
+
slidePrev: us,
|
|
1204
|
+
slideReset: ms,
|
|
1205
|
+
slideToClosest: fs,
|
|
1206
|
+
slideToClickedSlide: hs
|
|
1220
1207
|
};
|
|
1221
|
-
function
|
|
1208
|
+
function gs(t, e) {
|
|
1222
1209
|
const s = this, {
|
|
1223
1210
|
params: r,
|
|
1224
1211
|
slidesEl: n
|
|
@@ -1256,7 +1243,7 @@ function ys(t, e) {
|
|
|
1256
1243
|
initial: e
|
|
1257
1244
|
});
|
|
1258
1245
|
}
|
|
1259
|
-
function
|
|
1246
|
+
function ws(t) {
|
|
1260
1247
|
let {
|
|
1261
1248
|
slideRealIndex: e,
|
|
1262
1249
|
slideTo: s = !0,
|
|
@@ -1303,8 +1290,8 @@ function Ss(t) {
|
|
|
1303
1290
|
const z = C - Math.floor(C / A) * A;
|
|
1304
1291
|
if (g) {
|
|
1305
1292
|
const U = A - z - 1;
|
|
1306
|
-
for (let
|
|
1307
|
-
d[
|
|
1293
|
+
for (let j = d.length - 1; j >= 0; j -= 1)
|
|
1294
|
+
d[j].column === U && y.push(j);
|
|
1308
1295
|
} else
|
|
1309
1296
|
y.push(A - z - 1);
|
|
1310
1297
|
}
|
|
@@ -1312,8 +1299,8 @@ function Ss(t) {
|
|
|
1312
1299
|
L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
|
|
1313
1300
|
for (let C = 0; C < L; C += 1) {
|
|
1314
1301
|
const z = C - Math.floor(C / A) * A;
|
|
1315
|
-
g ? d.forEach((U,
|
|
1316
|
-
U.column === z && T.push(
|
|
1302
|
+
g ? d.forEach((U, j) => {
|
|
1303
|
+
U.column === z && T.push(j);
|
|
1317
1304
|
}) : T.push(z);
|
|
1318
1305
|
}
|
|
1319
1306
|
}
|
|
@@ -1363,7 +1350,7 @@ function Ss(t) {
|
|
|
1363
1350
|
}
|
|
1364
1351
|
c.emit("loopFix");
|
|
1365
1352
|
}
|
|
1366
|
-
function
|
|
1353
|
+
function bs() {
|
|
1367
1354
|
const t = this, {
|
|
1368
1355
|
params: e,
|
|
1369
1356
|
slidesEl: s
|
|
@@ -1380,12 +1367,12 @@ function Es() {
|
|
|
1380
1367
|
s.append(n);
|
|
1381
1368
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1382
1369
|
}
|
|
1383
|
-
var
|
|
1384
|
-
loopCreate:
|
|
1385
|
-
loopFix:
|
|
1386
|
-
loopDestroy:
|
|
1370
|
+
var ys = {
|
|
1371
|
+
loopCreate: gs,
|
|
1372
|
+
loopFix: ws,
|
|
1373
|
+
loopDestroy: bs
|
|
1387
1374
|
};
|
|
1388
|
-
function
|
|
1375
|
+
function Ss(t) {
|
|
1389
1376
|
const e = this;
|
|
1390
1377
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
1391
1378
|
const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
@@ -1393,17 +1380,17 @@ function Ts(t) {
|
|
|
1393
1380
|
e.__preventObserver__ = !1;
|
|
1394
1381
|
});
|
|
1395
1382
|
}
|
|
1396
|
-
function
|
|
1383
|
+
function Es() {
|
|
1397
1384
|
const t = this;
|
|
1398
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(() => {
|
|
1399
1386
|
t.__preventObserver__ = !1;
|
|
1400
1387
|
}));
|
|
1401
1388
|
}
|
|
1402
|
-
var
|
|
1403
|
-
setGrabCursor:
|
|
1404
|
-
unsetGrabCursor:
|
|
1389
|
+
var xs = {
|
|
1390
|
+
setGrabCursor: Ss,
|
|
1391
|
+
unsetGrabCursor: Es
|
|
1405
1392
|
};
|
|
1406
|
-
function
|
|
1393
|
+
function Ts(t, e) {
|
|
1407
1394
|
e === void 0 && (e = this);
|
|
1408
1395
|
function s(r) {
|
|
1409
1396
|
if (!r || r === K() || r === B()) return null;
|
|
@@ -1413,13 +1400,13 @@ function Ms(t, e) {
|
|
|
1413
1400
|
}
|
|
1414
1401
|
return s(e);
|
|
1415
1402
|
}
|
|
1416
|
-
function
|
|
1403
|
+
function Ge(t, e, s) {
|
|
1417
1404
|
const r = B(), {
|
|
1418
1405
|
params: n
|
|
1419
1406
|
} = t, i = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
|
|
1420
1407
|
return i && (s <= l || s >= r.innerWidth - l) ? i === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1421
1408
|
}
|
|
1422
|
-
function
|
|
1409
|
+
function Cs(t) {
|
|
1423
1410
|
const e = this, s = K();
|
|
1424
1411
|
let r = t;
|
|
1425
1412
|
r.originalEvent && (r = r.originalEvent);
|
|
@@ -1430,7 +1417,7 @@ function ks(t) {
|
|
|
1430
1417
|
n.pointerId = r.pointerId;
|
|
1431
1418
|
} else r.type === "touchstart" && r.targetTouches.length === 1 && (n.touchId = r.targetTouches[0].identifier);
|
|
1432
1419
|
if (r.type === "touchstart") {
|
|
1433
|
-
|
|
1420
|
+
Ge(e, r, r.targetTouches[0].pageX);
|
|
1434
1421
|
return;
|
|
1435
1422
|
}
|
|
1436
1423
|
const {
|
|
@@ -1442,11 +1429,11 @@ function ks(t) {
|
|
|
1442
1429
|
return;
|
|
1443
1430
|
!e.animating && i.cssMode && i.loop && e.loopFix();
|
|
1444
1431
|
let o = r.target;
|
|
1445
|
-
if (i.touchEventsTarget === "wrapper" && !
|
|
1432
|
+
if (i.touchEventsTarget === "wrapper" && !zt(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
|
|
1446
1433
|
const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
|
|
1447
1434
|
c && r.target && r.target.shadowRoot && d && (o = d[0]);
|
|
1448
1435
|
const u = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(r.target && r.target.shadowRoot);
|
|
1449
|
-
if (i.noSwiping && (f ?
|
|
1436
|
+
if (i.noSwiping && (f ? Ts(u, o) : o.closest(u))) {
|
|
1450
1437
|
e.allowClick = !0;
|
|
1451
1438
|
return;
|
|
1452
1439
|
}
|
|
@@ -1454,7 +1441,7 @@ function ks(t) {
|
|
|
1454
1441
|
return;
|
|
1455
1442
|
l.currentX = r.pageX, l.currentY = r.pageY;
|
|
1456
1443
|
const v = l.currentX, h = l.currentY;
|
|
1457
|
-
if (!
|
|
1444
|
+
if (!Ge(e, r, v))
|
|
1458
1445
|
return;
|
|
1459
1446
|
Object.assign(n, {
|
|
1460
1447
|
isTouched: !0,
|
|
@@ -1468,7 +1455,7 @@ function ks(t) {
|
|
|
1468
1455
|
const M = b && e.allowTouchMove && i.touchStartPreventDefault;
|
|
1469
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);
|
|
1470
1457
|
}
|
|
1471
|
-
function
|
|
1458
|
+
function Ps(t) {
|
|
1472
1459
|
const e = K(), s = this, r = s.touchEventsData, {
|
|
1473
1460
|
params: n,
|
|
1474
1461
|
touches: i,
|
|
@@ -1582,7 +1569,7 @@ function Is(t) {
|
|
|
1582
1569
|
}
|
|
1583
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));
|
|
1584
1571
|
}
|
|
1585
|
-
function
|
|
1572
|
+
function Ms(t) {
|
|
1586
1573
|
const e = this, s = e.touchEventsData;
|
|
1587
1574
|
let r = t;
|
|
1588
1575
|
r.originalEvent && (r = r.originalEvent);
|
|
@@ -1614,7 +1601,7 @@ function Ls(t) {
|
|
|
1614
1601
|
const g = r.path || r.composedPath && r.composedPath();
|
|
1615
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);
|
|
1616
1603
|
}
|
|
1617
|
-
if (s.lastClickTime = le(),
|
|
1604
|
+
if (s.lastClickTime = le(), xe(() => {
|
|
1618
1605
|
e.destroyed || (e.allowClick = !0);
|
|
1619
1606
|
}), !s.isTouched || !s.isMoved || !e.swipeDirection || l.diff === 0 && !s.loopSwapReset || s.currentTranslate === s.startTranslate && !s.loopSwapReset) {
|
|
1620
1607
|
s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
|
|
@@ -1653,7 +1640,7 @@ function Ls(t) {
|
|
|
1653
1640
|
e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(h + m) : e.slideTo(h) : (e.swipeDirection === "next" && e.slideTo(M !== null ? M : h + m), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : h));
|
|
1654
1641
|
}
|
|
1655
1642
|
}
|
|
1656
|
-
function
|
|
1643
|
+
function Be() {
|
|
1657
1644
|
const t = this, {
|
|
1658
1645
|
params: e,
|
|
1659
1646
|
el: s
|
|
@@ -1671,11 +1658,11 @@ function Ne() {
|
|
|
1671
1658
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
1672
1659
|
}, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
|
|
1673
1660
|
}
|
|
1674
|
-
function
|
|
1661
|
+
function ks(t) {
|
|
1675
1662
|
const e = this;
|
|
1676
1663
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1677
1664
|
}
|
|
1678
|
-
function
|
|
1665
|
+
function Is() {
|
|
1679
1666
|
const t = this, {
|
|
1680
1667
|
wrapperEl: e,
|
|
1681
1668
|
rtlTranslate: s,
|
|
@@ -1687,11 +1674,11 @@ function Os() {
|
|
|
1687
1674
|
const i = t.maxTranslate() - t.minTranslate();
|
|
1688
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);
|
|
1689
1676
|
}
|
|
1690
|
-
function
|
|
1677
|
+
function Ls(t) {
|
|
1691
1678
|
const e = this;
|
|
1692
1679
|
ne(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
1693
1680
|
}
|
|
1694
|
-
function
|
|
1681
|
+
function As() {
|
|
1695
1682
|
const t = this;
|
|
1696
1683
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1697
1684
|
}
|
|
@@ -1729,25 +1716,25 @@ const et = (t, e) => {
|
|
|
1729
1716
|
passive: !0
|
|
1730
1717
|
}), s[o]("contextmenu", t.onTouchEnd, {
|
|
1731
1718
|
passive: !0
|
|
1732
|
-
}), (r.preventClicks || r.preventClicksPropagation) && n[o]("click", t.onClick, !0), r.cssMode && i[o]("scroll", t.onScroll), r.updateOnWindowResize ? t[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate",
|
|
1719
|
+
}), (r.preventClicks || r.preventClicksPropagation) && n[o]("click", t.onClick, !0), r.cssMode && i[o]("scroll", t.onScroll), r.updateOnWindowResize ? t[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Be, !0) : t[c]("observerUpdate", Be, !0), n[o]("load", t.onLoad, {
|
|
1733
1720
|
capture: !0
|
|
1734
1721
|
}));
|
|
1735
1722
|
};
|
|
1736
|
-
function
|
|
1723
|
+
function Os() {
|
|
1737
1724
|
const t = this, {
|
|
1738
1725
|
params: e
|
|
1739
1726
|
} = t;
|
|
1740
|
-
t.onTouchStart =
|
|
1727
|
+
t.onTouchStart = Cs.bind(t), t.onTouchMove = Ps.bind(t), t.onTouchEnd = Ms.bind(t), t.onDocumentTouchStart = As.bind(t), e.cssMode && (t.onScroll = Is.bind(t)), t.onClick = ks.bind(t), t.onLoad = Ls.bind(t), et(t, "on");
|
|
1741
1728
|
}
|
|
1742
|
-
function
|
|
1729
|
+
function zs() {
|
|
1743
1730
|
et(this, "off");
|
|
1744
1731
|
}
|
|
1745
|
-
var
|
|
1746
|
-
attachEvents:
|
|
1747
|
-
detachEvents:
|
|
1732
|
+
var _s = {
|
|
1733
|
+
attachEvents: Os,
|
|
1734
|
+
detachEvents: zs
|
|
1748
1735
|
};
|
|
1749
|
-
const
|
|
1750
|
-
function
|
|
1736
|
+
const Ne = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1737
|
+
function $s() {
|
|
1751
1738
|
const t = this, {
|
|
1752
1739
|
realIndex: e,
|
|
1753
1740
|
initialized: s,
|
|
@@ -1757,7 +1744,7 @@ function Ns() {
|
|
|
1757
1744
|
if (!i || i && Object.keys(i).length === 0) return;
|
|
1758
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);
|
|
1759
1746
|
if (!c || t.currentBreakpoint === c) return;
|
|
1760
|
-
const d = (c in i ? i[c] : void 0) || t.originalParams, u =
|
|
1747
|
+
const d = (c in i ? i[c] : void 0) || t.originalParams, u = Ne(t, r), f = Ne(t, d), v = t.params.grabCursor, h = d.grabCursor, b = r.enabled;
|
|
1761
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) => {
|
|
1762
1749
|
if (typeof d[y] > "u") return;
|
|
1763
1750
|
const T = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
|
|
@@ -1772,7 +1759,7 @@ function Ns() {
|
|
|
1772
1759
|
allowSlidePrev: t.params.allowSlidePrev
|
|
1773
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);
|
|
1774
1761
|
}
|
|
1775
|
-
function
|
|
1762
|
+
function Gs(t, e, s) {
|
|
1776
1763
|
if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
|
|
1777
1764
|
let r = !1;
|
|
1778
1765
|
const n = B(), i = e === "window" ? n.innerHeight : s.clientHeight, l = Object.keys(t).map((a) => {
|
|
@@ -1798,11 +1785,11 @@ function Ds(t, e, s) {
|
|
|
1798
1785
|
}
|
|
1799
1786
|
return r || "max";
|
|
1800
1787
|
}
|
|
1801
|
-
var
|
|
1802
|
-
setBreakpoint:
|
|
1803
|
-
getBreakpoint:
|
|
1788
|
+
var Bs = {
|
|
1789
|
+
setBreakpoint: $s,
|
|
1790
|
+
getBreakpoint: Gs
|
|
1804
1791
|
};
|
|
1805
|
-
function
|
|
1792
|
+
function Ns(t, e) {
|
|
1806
1793
|
const s = [];
|
|
1807
1794
|
return t.forEach((r) => {
|
|
1808
1795
|
typeof r == "object" ? Object.keys(r).forEach((n) => {
|
|
@@ -1810,14 +1797,14 @@ function Vs(t, e) {
|
|
|
1810
1797
|
}) : typeof r == "string" && s.push(e + r);
|
|
1811
1798
|
}), s;
|
|
1812
1799
|
}
|
|
1813
|
-
function
|
|
1800
|
+
function Ds() {
|
|
1814
1801
|
const t = this, {
|
|
1815
1802
|
classNames: e,
|
|
1816
1803
|
params: s,
|
|
1817
1804
|
rtl: r,
|
|
1818
1805
|
el: n,
|
|
1819
1806
|
device: i
|
|
1820
|
-
} = t, l =
|
|
1807
|
+
} = t, l = Ns(["initialized", s.direction, {
|
|
1821
1808
|
"free-mode": t.params.freeMode && s.freeMode.enabled
|
|
1822
1809
|
}, {
|
|
1823
1810
|
autoheight: s.autoHeight
|
|
@@ -1840,18 +1827,18 @@ function js() {
|
|
|
1840
1827
|
}], s.containerModifierClass);
|
|
1841
1828
|
e.push(...l), n.classList.add(...e), t.emitContainerClasses();
|
|
1842
1829
|
}
|
|
1843
|
-
function
|
|
1830
|
+
function Fs() {
|
|
1844
1831
|
const t = this, {
|
|
1845
1832
|
el: e,
|
|
1846
1833
|
classNames: s
|
|
1847
1834
|
} = t;
|
|
1848
1835
|
!e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
|
|
1849
1836
|
}
|
|
1850
|
-
var
|
|
1851
|
-
addClasses:
|
|
1852
|
-
removeClasses:
|
|
1837
|
+
var js = {
|
|
1838
|
+
addClasses: Ds,
|
|
1839
|
+
removeClasses: Fs
|
|
1853
1840
|
};
|
|
1854
|
-
function
|
|
1841
|
+
function Vs() {
|
|
1855
1842
|
const t = this, {
|
|
1856
1843
|
isLocked: e,
|
|
1857
1844
|
params: s
|
|
@@ -1865,9 +1852,9 @@ function qs() {
|
|
|
1865
1852
|
t.isLocked = t.snapGrid.length === 1;
|
|
1866
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");
|
|
1867
1854
|
}
|
|
1868
|
-
var
|
|
1869
|
-
checkOverflow:
|
|
1870
|
-
},
|
|
1855
|
+
var Hs = {
|
|
1856
|
+
checkOverflow: Vs
|
|
1857
|
+
}, Pe = {
|
|
1871
1858
|
init: !0,
|
|
1872
1859
|
direction: "horizontal",
|
|
1873
1860
|
oneWayMovement: !1,
|
|
@@ -1988,7 +1975,7 @@ var Ws = {
|
|
|
1988
1975
|
// Internals
|
|
1989
1976
|
_emitClasses: !1
|
|
1990
1977
|
};
|
|
1991
|
-
function
|
|
1978
|
+
function Rs(t, e) {
|
|
1992
1979
|
return function(s) {
|
|
1993
1980
|
s === void 0 && (s = {});
|
|
1994
1981
|
const r = Object.keys(s)[0], n = s[r];
|
|
@@ -2008,17 +1995,17 @@ function Ys(t, e) {
|
|
|
2008
1995
|
};
|
|
2009
1996
|
}
|
|
2010
1997
|
const be = {
|
|
2011
|
-
eventsEmitter:
|
|
2012
|
-
update:
|
|
2013
|
-
translate:
|
|
2014
|
-
transition:
|
|
2015
|
-
slide:
|
|
2016
|
-
loop:
|
|
2017
|
-
grabCursor:
|
|
2018
|
-
events:
|
|
2019
|
-
breakpoints:
|
|
2020
|
-
checkOverflow:
|
|
2021
|
-
classes:
|
|
1998
|
+
eventsEmitter: jt,
|
|
1999
|
+
update: Jt,
|
|
2000
|
+
translate: is,
|
|
2001
|
+
transition: os,
|
|
2002
|
+
slide: vs,
|
|
2003
|
+
loop: ys,
|
|
2004
|
+
grabCursor: xs,
|
|
2005
|
+
events: _s,
|
|
2006
|
+
breakpoints: Bs,
|
|
2007
|
+
checkOverflow: Hs,
|
|
2008
|
+
classes: js
|
|
2022
2009
|
}, ye = {};
|
|
2023
2010
|
let ze = class q {
|
|
2024
2011
|
constructor() {
|
|
@@ -2045,14 +2032,14 @@ let ze = class q {
|
|
|
2045
2032
|
d({
|
|
2046
2033
|
params: s,
|
|
2047
2034
|
swiper: a,
|
|
2048
|
-
extendParams:
|
|
2035
|
+
extendParams: Rs(s, o),
|
|
2049
2036
|
on: a.on.bind(a),
|
|
2050
2037
|
once: a.once.bind(a),
|
|
2051
2038
|
off: a.off.bind(a),
|
|
2052
2039
|
emit: a.emit.bind(a)
|
|
2053
2040
|
});
|
|
2054
2041
|
});
|
|
2055
|
-
const c = N({},
|
|
2042
|
+
const c = N({}, Pe, o);
|
|
2056
2043
|
return a.params = N({}, c, ye, s), a.originalParams = N({}, a.params), a.passedParams = N({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
|
|
2057
2044
|
a.on(d, a.params.on[d]);
|
|
2058
2045
|
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
@@ -2289,7 +2276,7 @@ let ze = class q {
|
|
|
2289
2276
|
n.complete ? ne(s, n) : n.addEventListener("load", (i) => {
|
|
2290
2277
|
ne(s, i.target);
|
|
2291
2278
|
});
|
|
2292
|
-
}),
|
|
2279
|
+
}), Ce(s), s.initialized = !0, Ce(s), s.emit("init"), s.emit("afterInit"), s;
|
|
2293
2280
|
}
|
|
2294
2281
|
destroy(e, s) {
|
|
2295
2282
|
e === void 0 && (e = !0), s === void 0 && (s = !0);
|
|
@@ -2303,7 +2290,7 @@ let ze = class q {
|
|
|
2303
2290
|
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2304
2291
|
})), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
|
|
2305
2292
|
r.off(o);
|
|
2306
|
-
}), 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), kt(r)), r.destroyed = !0), null;
|
|
2307
2294
|
}
|
|
2308
2295
|
static extendDefaults(e) {
|
|
2309
2296
|
N(ye, e);
|
|
@@ -2312,7 +2299,7 @@ let ze = class q {
|
|
|
2312
2299
|
return ye;
|
|
2313
2300
|
}
|
|
2314
2301
|
static get defaults() {
|
|
2315
|
-
return
|
|
2302
|
+
return Pe;
|
|
2316
2303
|
}
|
|
2317
2304
|
static installModule(e) {
|
|
2318
2305
|
q.prototype.__modules__ || (q.prototype.__modules__ = []);
|
|
@@ -2328,7 +2315,7 @@ Object.keys(be).forEach((t) => {
|
|
|
2328
2315
|
ze.prototype[e] = be[t][e];
|
|
2329
2316
|
});
|
|
2330
2317
|
});
|
|
2331
|
-
ze.use([
|
|
2318
|
+
ze.use([Dt, Ft]);
|
|
2332
2319
|
const tt = [
|
|
2333
2320
|
"eventsPrefix",
|
|
2334
2321
|
"injectStyles",
|
|
@@ -2473,10 +2460,10 @@ function nt(t) {
|
|
|
2473
2460
|
s.indexOf(r) < 0 && s.push(r);
|
|
2474
2461
|
}), s.join(" ");
|
|
2475
2462
|
}
|
|
2476
|
-
function
|
|
2463
|
+
function qs(t) {
|
|
2477
2464
|
return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
|
|
2478
2465
|
}
|
|
2479
|
-
function
|
|
2466
|
+
function Ws(t) {
|
|
2480
2467
|
let {
|
|
2481
2468
|
swiper: e,
|
|
2482
2469
|
slides: s,
|
|
@@ -2509,12 +2496,12 @@ function Us(t) {
|
|
|
2509
2496
|
}
|
|
2510
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();
|
|
2511
2498
|
}
|
|
2512
|
-
function
|
|
2499
|
+
function Ys(t, e) {
|
|
2513
2500
|
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2514
2501
|
const s = {
|
|
2515
2502
|
on: {}
|
|
2516
2503
|
}, r = {}, n = {};
|
|
2517
|
-
J(s,
|
|
2504
|
+
J(s, Pe), s._emitClasses = !0, s.init = !1;
|
|
2518
2505
|
const i = {}, l = tt.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
|
|
2519
2506
|
return Object.keys(a).forEach((o) => {
|
|
2520
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]);
|
|
@@ -2527,7 +2514,7 @@ function Qs(t, e) {
|
|
|
2527
2514
|
events: r
|
|
2528
2515
|
};
|
|
2529
2516
|
}
|
|
2530
|
-
function
|
|
2517
|
+
function Xs(t, e) {
|
|
2531
2518
|
let {
|
|
2532
2519
|
el: s,
|
|
2533
2520
|
nextEl: r,
|
|
@@ -2538,7 +2525,7 @@ function Ks(t, e) {
|
|
|
2538
2525
|
} = t;
|
|
2539
2526
|
st(e) && r && n && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), rt(e) && i && (a.params.pagination.el = i, a.originalParams.pagination.el = i), it(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(s);
|
|
2540
2527
|
}
|
|
2541
|
-
function
|
|
2528
|
+
function Us(t, e, s, r, n) {
|
|
2542
2529
|
const i = [];
|
|
2543
2530
|
if (!e) return i;
|
|
2544
2531
|
const l = (a) => {
|
|
@@ -2560,7 +2547,7 @@ function Js(t, e, s, r, n) {
|
|
|
2560
2547
|
} else t[a] !== e[a] && l(a);
|
|
2561
2548
|
}), i;
|
|
2562
2549
|
}
|
|
2563
|
-
const
|
|
2550
|
+
const Qs = (t) => {
|
|
2564
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());
|
|
2565
2552
|
};
|
|
2566
2553
|
function pe() {
|
|
@@ -2582,7 +2569,7 @@ function lt(t) {
|
|
|
2582
2569
|
at(s) ? e.push(s) : s.props && s.props.children && lt(s.props.children).forEach((r) => e.push(r));
|
|
2583
2570
|
}), e;
|
|
2584
2571
|
}
|
|
2585
|
-
function
|
|
2572
|
+
function Ks(t) {
|
|
2586
2573
|
const e = [], s = {
|
|
2587
2574
|
"container-start": [],
|
|
2588
2575
|
"container-end": [],
|
|
@@ -2604,7 +2591,7 @@ function er(t) {
|
|
|
2604
2591
|
slots: s
|
|
2605
2592
|
};
|
|
2606
2593
|
}
|
|
2607
|
-
function
|
|
2594
|
+
function Js(t, e, s) {
|
|
2608
2595
|
if (!s) return null;
|
|
2609
2596
|
const r = (d) => {
|
|
2610
2597
|
let u = d;
|
|
@@ -2626,9 +2613,9 @@ function tr(t, e, s) {
|
|
|
2626
2613
|
}));
|
|
2627
2614
|
}
|
|
2628
2615
|
function ee(t, e) {
|
|
2629
|
-
return typeof window > "u" ? Y(t, e) :
|
|
2616
|
+
return typeof window > "u" ? Y(t, e) : Et(t, e);
|
|
2630
2617
|
}
|
|
2631
|
-
const
|
|
2618
|
+
const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__PURE__ */ Ae(function(t, e) {
|
|
2632
2619
|
let {
|
|
2633
2620
|
className: s,
|
|
2634
2621
|
tag: r = "div",
|
|
@@ -2642,15 +2629,15 @@ const Fe = /* @__PURE__ */ Re(null), sr = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2642
2629
|
passedParams: S,
|
|
2643
2630
|
rest: E,
|
|
2644
2631
|
events: x
|
|
2645
|
-
} =
|
|
2632
|
+
} = Ys(a), {
|
|
2646
2633
|
slides: k,
|
|
2647
2634
|
slots: L
|
|
2648
|
-
} =
|
|
2635
|
+
} = Ks(i), O = () => {
|
|
2649
2636
|
h(!v);
|
|
2650
2637
|
};
|
|
2651
2638
|
Object.assign(I.on, {
|
|
2652
|
-
_containerClasses(G,
|
|
2653
|
-
d(
|
|
2639
|
+
_containerClasses(G, V) {
|
|
2640
|
+
d(V);
|
|
2654
2641
|
}
|
|
2655
2642
|
});
|
|
2656
2643
|
const C = () => {
|
|
@@ -2660,13 +2647,13 @@ const Fe = /* @__PURE__ */ Re(null), sr = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2660
2647
|
};
|
|
2661
2648
|
if (delete G.wrapperClass, w.current = new ze(G), w.current.virtual && w.current.params.virtual.enabled) {
|
|
2662
2649
|
w.current.virtual.slides = k;
|
|
2663
|
-
const
|
|
2650
|
+
const V = {
|
|
2664
2651
|
cache: !1,
|
|
2665
2652
|
slides: k,
|
|
2666
2653
|
renderExternal: f,
|
|
2667
2654
|
renderExternalUpdate: !1
|
|
2668
2655
|
};
|
|
2669
|
-
J(w.current.params.virtual,
|
|
2656
|
+
J(w.current.params.virtual, V), J(w.current.originalParams.virtual, V);
|
|
2670
2657
|
}
|
|
2671
2658
|
};
|
|
2672
2659
|
M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
|
|
@@ -2685,7 +2672,7 @@ const Fe = /* @__PURE__ */ Re(null), sr = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2685
2672
|
!b.current && w.current && (w.current.emitSlidesClasses(), b.current = !0);
|
|
2686
2673
|
}), ee(() => {
|
|
2687
2674
|
if (e && (e.current = M.current), !!M.current)
|
|
2688
|
-
return w.current.destroyed && C(),
|
|
2675
|
+
return w.current.destroyed && C(), Xs({
|
|
2689
2676
|
el: M.current,
|
|
2690
2677
|
nextEl: g.current,
|
|
2691
2678
|
prevEl: y.current,
|
|
@@ -2697,8 +2684,8 @@ const Fe = /* @__PURE__ */ Re(null), sr = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2697
2684
|
};
|
|
2698
2685
|
}, []), ee(() => {
|
|
2699
2686
|
z();
|
|
2700
|
-
const G =
|
|
2701
|
-
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed &&
|
|
2687
|
+
const G = Us(S, p.current, k, m.current, (V) => V.key);
|
|
2688
|
+
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Ws({
|
|
2702
2689
|
swiper: w.current,
|
|
2703
2690
|
slides: k,
|
|
2704
2691
|
passedParams: S,
|
|
@@ -2711,22 +2698,22 @@ const Fe = /* @__PURE__ */ Re(null), sr = /* @__PURE__ */ Re(null), ot = /* @__P
|
|
|
2711
2698
|
U();
|
|
2712
2699
|
};
|
|
2713
2700
|
}), ee(() => {
|
|
2714
|
-
|
|
2701
|
+
Qs(w.current);
|
|
2715
2702
|
}, [u]);
|
|
2716
|
-
function
|
|
2717
|
-
return I.virtual ?
|
|
2703
|
+
function j() {
|
|
2704
|
+
return I.virtual ? Js(w.current, k, u) : k.map((G, V) => /* @__PURE__ */ $.cloneElement(G, {
|
|
2718
2705
|
swiper: w.current,
|
|
2719
|
-
swiperSlideIndex:
|
|
2706
|
+
swiperSlideIndex: V
|
|
2720
2707
|
}));
|
|
2721
2708
|
}
|
|
2722
2709
|
return /* @__PURE__ */ $.createElement(r, pe({
|
|
2723
2710
|
ref: M,
|
|
2724
2711
|
className: nt(`${c}${s ? ` ${s}` : ""}`)
|
|
2725
|
-
}, E), /* @__PURE__ */ $.createElement(
|
|
2712
|
+
}, E), /* @__PURE__ */ $.createElement(Zs.Provider, {
|
|
2726
2713
|
value: w.current
|
|
2727
2714
|
}, L["container-start"], /* @__PURE__ */ $.createElement(n, {
|
|
2728
|
-
className:
|
|
2729
|
-
}, L["wrapper-start"],
|
|
2715
|
+
className: qs(I.wrapperClass)
|
|
2716
|
+
}, L["wrapper-start"], j(), L["wrapper-end"]), st(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
|
|
2730
2717
|
ref: y,
|
|
2731
2718
|
className: "swiper-button-prev"
|
|
2732
2719
|
}), /* @__PURE__ */ $.createElement("div", {
|
|
@@ -2783,36 +2770,36 @@ const ae = /* @__PURE__ */ Ae(function(t, e) {
|
|
|
2783
2770
|
className: nt(`${f}${n ? ` ${n}` : ""}`),
|
|
2784
2771
|
"data-swiper-slide-index": o,
|
|
2785
2772
|
onLoad: m
|
|
2786
|
-
}, d), l && /* @__PURE__ */ $.createElement(
|
|
2773
|
+
}, d), l && /* @__PURE__ */ $.createElement(De.Provider, {
|
|
2787
2774
|
value: w
|
|
2788
2775
|
}, /* @__PURE__ */ $.createElement("div", {
|
|
2789
2776
|
className: "swiper-zoom-container",
|
|
2790
2777
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
2791
2778
|
}, p(), a && !h && /* @__PURE__ */ $.createElement("div", {
|
|
2792
2779
|
className: "swiper-lazy-preloader"
|
|
2793
|
-
}))), !l && /* @__PURE__ */ $.createElement(
|
|
2780
|
+
}))), !l && /* @__PURE__ */ $.createElement(De.Provider, {
|
|
2794
2781
|
value: w
|
|
2795
2782
|
}, p(), a && !h && /* @__PURE__ */ $.createElement("div", {
|
|
2796
2783
|
className: "swiper-lazy-preloader"
|
|
2797
2784
|
})));
|
|
2798
2785
|
});
|
|
2799
2786
|
ae.displayName = "SwiperSlide";
|
|
2800
|
-
const
|
|
2787
|
+
const er = () => ot, tr = /* @__PURE__ */ _(er())({
|
|
2801
2788
|
name: "Carousel",
|
|
2802
2789
|
class: "c1f9jjsn",
|
|
2803
2790
|
propsAsIs: !0
|
|
2804
|
-
}),
|
|
2791
|
+
}), Me = /* @__PURE__ */ _("div")({
|
|
2805
2792
|
name: "ScreenWrap",
|
|
2806
2793
|
class: "s25r51y",
|
|
2807
2794
|
propsAsIs: !1
|
|
2808
|
-
}),
|
|
2795
|
+
}), sr = () => te, rr = /* @__PURE__ */ _(sr())({
|
|
2809
2796
|
name: "SponsorIconI",
|
|
2810
2797
|
class: "s1lvrmx8",
|
|
2811
2798
|
propsAsIs: !0
|
|
2812
2799
|
}), dt = ({
|
|
2813
2800
|
style: t,
|
|
2814
2801
|
className: e
|
|
2815
|
-
}) => /* @__PURE__ */ P(
|
|
2802
|
+
}) => /* @__PURE__ */ P(rr, {
|
|
2816
2803
|
className: e,
|
|
2817
2804
|
style: t,
|
|
2818
2805
|
name: "icon-masters-logo"
|
|
@@ -2824,7 +2811,7 @@ const rr = () => ot, ir = /* @__PURE__ */ _(rr())({
|
|
|
2824
2811
|
name: "ScreenTitle",
|
|
2825
2812
|
class: "s14qstuv",
|
|
2826
2813
|
propsAsIs: !1
|
|
2827
|
-
}),
|
|
2814
|
+
}), ke = /* @__PURE__ */ _("div")({
|
|
2828
2815
|
name: "ScreenDescription",
|
|
2829
2816
|
class: "s14mdh2e",
|
|
2830
2817
|
propsAsIs: !1
|
|
@@ -2832,50 +2819,50 @@ const rr = () => ot, ir = /* @__PURE__ */ _(rr())({
|
|
|
2832
2819
|
name: "ScreenButton",
|
|
2833
2820
|
class: "sqtjig9",
|
|
2834
2821
|
propsAsIs: !1
|
|
2835
|
-
}),
|
|
2822
|
+
}), ir = /* @__PURE__ */ _("div")({
|
|
2836
2823
|
name: "EmergencyContainer",
|
|
2837
2824
|
class: "e1f9mu2m",
|
|
2838
2825
|
propsAsIs: !1
|
|
2839
|
-
}),
|
|
2826
|
+
}), nr = /* @__PURE__ */ _("div")({
|
|
2840
2827
|
name: "EmergencyScreenTitle",
|
|
2841
2828
|
class: "e1n10yo1",
|
|
2842
2829
|
propsAsIs: !1
|
|
2843
|
-
}),
|
|
2830
|
+
}), ar = /* @__PURE__ */ _("div")({
|
|
2844
2831
|
name: "EmergencyScreenDescription",
|
|
2845
2832
|
class: "e1xecypc",
|
|
2846
2833
|
propsAsIs: !1
|
|
2847
|
-
}),
|
|
2834
|
+
}), lr = () => ue, or = /* @__PURE__ */ _(lr())({
|
|
2848
2835
|
name: "EmergencyScreenButton",
|
|
2849
2836
|
class: "e1k6zoyu",
|
|
2850
2837
|
propsAsIs: !0
|
|
2851
|
-
}),
|
|
2838
|
+
}), Ie = ({ actionFn: t, description: e, className: s, onEvent: r }) => (Y(() => {
|
|
2852
2839
|
r({ type: "slBetPackReady" });
|
|
2853
|
-
}, [r]), /* @__PURE__ */ F(
|
|
2854
|
-
/* @__PURE__ */ P(
|
|
2855
|
-
/* @__PURE__ */ P(
|
|
2856
|
-
/* @__PURE__ */ P(
|
|
2857
|
-
] })),
|
|
2840
|
+
}, [r]), /* @__PURE__ */ F(ir, { className: s, children: [
|
|
2841
|
+
/* @__PURE__ */ P(nr, { children: "Something went wrong." }),
|
|
2842
|
+
/* @__PURE__ */ P(ar, { children: e }),
|
|
2843
|
+
/* @__PURE__ */ P(or, { onClick: t, children: "Try again" })
|
|
2844
|
+
] })), dr = /* @__PURE__ */ _("div")({
|
|
2858
2845
|
name: "ScreenContainerBox",
|
|
2859
2846
|
class: "s28ooi9",
|
|
2860
2847
|
propsAsIs: !1
|
|
2861
|
-
}), me = ({ children: t }) => /* @__PURE__ */ P(
|
|
2848
|
+
}), me = ({ children: t }) => /* @__PURE__ */ P(dr, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), cr = /* @__PURE__ */ _("img")({
|
|
2862
2849
|
name: "EndScreenMedia",
|
|
2863
2850
|
class: "e8s3kc9",
|
|
2864
2851
|
propsAsIs: !1
|
|
2865
|
-
}),
|
|
2852
|
+
}), pr = () => dt, ur = /* @__PURE__ */ _(pr())({
|
|
2866
2853
|
name: "EndScreenSponsorIcon",
|
|
2867
2854
|
class: "e1uswib2",
|
|
2868
2855
|
propsAsIs: !0
|
|
2869
|
-
}),
|
|
2856
|
+
}), mr = ({ onEvent: t, height: e }) => {
|
|
2870
2857
|
const [s, r] = W(
|
|
2871
2858
|
0
|
|
2872
2859
|
/* FIRST */
|
|
2873
2860
|
);
|
|
2874
|
-
return s === 0 ? /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(
|
|
2875
|
-
/* @__PURE__ */ P(
|
|
2861
|
+
return s === 0 ? /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Me, { children: [
|
|
2862
|
+
/* @__PURE__ */ P(ur, {}),
|
|
2876
2863
|
/* @__PURE__ */ F(ct, { children: [
|
|
2877
2864
|
/* @__PURE__ */ P(pt, { children: "Great picks!" }),
|
|
2878
|
-
/* @__PURE__ */ P(
|
|
2865
|
+
/* @__PURE__ */ P(ke, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
|
|
2879
2866
|
] }),
|
|
2880
2867
|
/* @__PURE__ */ P(
|
|
2881
2868
|
ue,
|
|
@@ -2891,44 +2878,44 @@ const rr = () => ot, ir = /* @__PURE__ */ _(rr())({
|
|
|
2891
2878
|
children: "Continue"
|
|
2892
2879
|
}
|
|
2893
2880
|
)
|
|
2894
|
-
] }) }, "end") : /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(
|
|
2895
|
-
/* @__PURE__ */ P(
|
|
2896
|
-
/* @__PURE__ */ P(
|
|
2881
|
+
] }) }, "end") : /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Me, { children: [
|
|
2882
|
+
/* @__PURE__ */ P(cr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
|
|
2883
|
+
/* @__PURE__ */ P(ke, { children: "Look for more live match insights, predictions and more." }),
|
|
2897
2884
|
/* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
2898
2885
|
] }) }, "end");
|
|
2899
|
-
},
|
|
2886
|
+
}, fr = /* @__PURE__ */ _("div")({
|
|
2900
2887
|
name: "Container",
|
|
2901
2888
|
class: "cv31tt7",
|
|
2902
2889
|
propsAsIs: !1
|
|
2903
|
-
}),
|
|
2890
|
+
}), Le = ({
|
|
2904
2891
|
className: t
|
|
2905
|
-
}) => /* @__PURE__ */ P(
|
|
2892
|
+
}) => /* @__PURE__ */ P(fr, {
|
|
2906
2893
|
className: t,
|
|
2907
2894
|
children: /* @__PURE__ */ P(vt, {})
|
|
2908
|
-
}),
|
|
2909
|
-
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null,
|
|
2895
|
+
}), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(gt, { close: () => {
|
|
2896
|
+
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, vr = /* @__PURE__ */ _("span")({
|
|
2910
2897
|
name: "NextButton",
|
|
2911
2898
|
class: "n991vvm",
|
|
2912
2899
|
propsAsIs: !1
|
|
2913
|
-
}),
|
|
2900
|
+
}), gr = () => te, wr = /* @__PURE__ */ _(gr())({
|
|
2914
2901
|
name: "IconArrowRight",
|
|
2915
2902
|
class: "inbj36g",
|
|
2916
2903
|
propsAsIs: !0
|
|
2917
|
-
}),
|
|
2904
|
+
}), br = /* @__PURE__ */ _("div")({
|
|
2918
2905
|
name: "StartScreenSponsor",
|
|
2919
2906
|
class: "szrvgt",
|
|
2920
2907
|
propsAsIs: !1
|
|
2921
|
-
}),
|
|
2908
|
+
}), yr = /* @__PURE__ */ _("div")({
|
|
2922
2909
|
name: "StartScreenNote",
|
|
2923
2910
|
class: "swqs2ju",
|
|
2924
2911
|
propsAsIs: !1
|
|
2925
|
-
}),
|
|
2912
|
+
}), Sr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2926
2913
|
/* @__PURE__ */ P(dt, {}),
|
|
2927
2914
|
/* @__PURE__ */ F(ct, { children: [
|
|
2928
|
-
/* @__PURE__ */ P(
|
|
2915
|
+
/* @__PURE__ */ P(br, { children: "FEATURED GROUPS+" }),
|
|
2929
2916
|
/* @__PURE__ */ P(pt, { children: "The First Five" })
|
|
2930
2917
|
] }),
|
|
2931
|
-
/* @__PURE__ */ P(
|
|
2918
|
+
/* @__PURE__ */ P(ke, { children: "Tee off with these five initial predictions for today’s play." }),
|
|
2932
2919
|
/* @__PURE__ */ F(
|
|
2933
2920
|
ue,
|
|
2934
2921
|
{
|
|
@@ -2939,13 +2926,13 @@ const rr = () => ot, ir = /* @__PURE__ */ _(rr())({
|
|
|
2939
2926
|
},
|
|
2940
2927
|
children: [
|
|
2941
2928
|
t ? `${t} questions available` : "See all questions",
|
|
2942
|
-
/* @__PURE__ */ P(
|
|
2929
|
+
/* @__PURE__ */ P(vr, { children: /* @__PURE__ */ P(wr, { name: "iconArrowRight" }) })
|
|
2943
2930
|
]
|
|
2944
2931
|
}
|
|
2945
2932
|
),
|
|
2946
|
-
/* @__PURE__ */ P(
|
|
2933
|
+
/* @__PURE__ */ P(yr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
|
|
2947
2934
|
] }) }, "start");
|
|
2948
|
-
function
|
|
2935
|
+
function Er(t, e, s, r) {
|
|
2949
2936
|
return t.params.createElements && Object.keys(r).forEach((n) => {
|
|
2950
2937
|
if (!s[n] && s.auto === !0) {
|
|
2951
2938
|
let i = H(t.el, `.${r[n]}`)[0];
|
|
@@ -2956,7 +2943,7 @@ function Cr(t, e, s, r) {
|
|
|
2956
2943
|
function Z(t) {
|
|
2957
2944
|
return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
2958
2945
|
}
|
|
2959
|
-
function
|
|
2946
|
+
function xr(t) {
|
|
2960
2947
|
let {
|
|
2961
2948
|
swiper: e,
|
|
2962
2949
|
extendParams: s,
|
|
@@ -3038,7 +3025,7 @@ function Pr(t) {
|
|
|
3038
3025
|
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) {
|
|
3039
3026
|
const S = e.pagination.bullets;
|
|
3040
3027
|
let E, x, k;
|
|
3041
|
-
if (m.dynamicBullets && (l =
|
|
3028
|
+
if (m.dynamicBullets && (l = Te(S[0], e.isHorizontal() ? "width" : "height"), g.forEach((L) => {
|
|
3042
3029
|
L.style[e.isHorizontal() ? "width" : "height"] = `${l * (m.dynamicMainBullets + 4)}px`;
|
|
3043
3030
|
}), 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) => {
|
|
3044
3031
|
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();
|
|
@@ -3101,7 +3088,7 @@ function Pr(t) {
|
|
|
3101
3088
|
}), p.type !== "custom" && n("paginationRender", g[0]);
|
|
3102
3089
|
}
|
|
3103
3090
|
function h() {
|
|
3104
|
-
e.params.pagination =
|
|
3091
|
+
e.params.pagination = Er(e, e.originalParams.pagination, e.params.pagination, {
|
|
3105
3092
|
el: "swiper-pagination"
|
|
3106
3093
|
});
|
|
3107
3094
|
const p = e.params.pagination;
|
|
@@ -3177,14 +3164,14 @@ function Pr(t) {
|
|
|
3177
3164
|
destroy: b
|
|
3178
3165
|
});
|
|
3179
3166
|
}
|
|
3180
|
-
const
|
|
3181
|
-
const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } =
|
|
3167
|
+
const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
|
|
3168
|
+
const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } = Re(() => {
|
|
3182
3169
|
const v = t ? Object.values(t) : [];
|
|
3183
3170
|
return {
|
|
3184
3171
|
listOfQuestions: v,
|
|
3185
3172
|
countQuestionsAvailable: v.filter(({ marketClosed: h }) => !h).length
|
|
3186
3173
|
};
|
|
3187
|
-
}, [t]), c =
|
|
3174
|
+
}, [t]), c = qe(
|
|
3188
3175
|
async (v, h) => {
|
|
3189
3176
|
try {
|
|
3190
3177
|
await e.betPackVote(v, h), s({
|
|
@@ -3262,7 +3249,7 @@ const Mr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3262
3249
|
window.removeEventListener("resize", v);
|
|
3263
3250
|
};
|
|
3264
3251
|
}, []), /* @__PURE__ */ F(
|
|
3265
|
-
|
|
3252
|
+
tr,
|
|
3266
3253
|
{
|
|
3267
3254
|
slidesPerView: u,
|
|
3268
3255
|
spaceBetween: 12,
|
|
@@ -3272,7 +3259,7 @@ const Mr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3272
3259
|
pagination: {
|
|
3273
3260
|
clickable: !0
|
|
3274
3261
|
},
|
|
3275
|
-
modules: [
|
|
3262
|
+
modules: [xr],
|
|
3276
3263
|
onSlideChange: d,
|
|
3277
3264
|
onBeforeSlideChangeStart: () => {
|
|
3278
3265
|
i.current && clearTimeout(i.current);
|
|
@@ -3281,25 +3268,25 @@ const Mr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3281
3268
|
l.current = v;
|
|
3282
3269
|
},
|
|
3283
3270
|
children: [
|
|
3284
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(
|
|
3285
|
-
a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(
|
|
3286
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(
|
|
3271
|
+
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(Sr, { sliderRef: l, countQuestionsAvailable: o }) }),
|
|
3272
|
+
a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(hr, { question: v, vote: c }) }, v.id) }) : null),
|
|
3273
|
+
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(mr, { onEvent: s }) })
|
|
3287
3274
|
]
|
|
3288
3275
|
}
|
|
3289
3276
|
);
|
|
3290
|
-
},
|
|
3291
|
-
const i =
|
|
3292
|
-
return a || !Object.hasOwn(i, "data") ? /* @__PURE__ */ P(
|
|
3293
|
-
|
|
3277
|
+
}, Cr = ({ gamification: t, autoplay: e, overlay: s, swipeable: r, onEvent: n }) => {
|
|
3278
|
+
const i = Se(t.betPack.getStore()), { error: l, loading: a, data: o } = i;
|
|
3279
|
+
return a || !Object.hasOwn(i, "data") ? /* @__PURE__ */ P(Le, {}) : l ? /* @__PURE__ */ P(
|
|
3280
|
+
Ie,
|
|
3294
3281
|
{
|
|
3295
3282
|
onEvent: n,
|
|
3296
3283
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3297
|
-
description: l instanceof
|
|
3284
|
+
description: l instanceof Tt && l.code !== Ct.InvalidArgument ? `The event ID was not
|
|
3298
3285
|
specified or is invalid.` : `The server is unable to
|
|
3299
3286
|
handle this request.`
|
|
3300
3287
|
}
|
|
3301
3288
|
) : !o || !o.timestamp || !o.data || !Object.keys(o.data).length ? /* @__PURE__ */ P(
|
|
3302
|
-
|
|
3289
|
+
Ie,
|
|
3303
3290
|
{
|
|
3304
3291
|
onEvent: n,
|
|
3305
3292
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
@@ -3307,7 +3294,7 @@ handle this request.`
|
|
|
3307
3294
|
load the questions.`
|
|
3308
3295
|
}
|
|
3309
3296
|
) : /* @__PURE__ */ P(
|
|
3310
|
-
|
|
3297
|
+
Tr,
|
|
3311
3298
|
{
|
|
3312
3299
|
data: o.data,
|
|
3313
3300
|
gamification: t,
|
|
@@ -3317,45 +3304,45 @@ handle this request.`
|
|
|
3317
3304
|
overlay: s
|
|
3318
3305
|
}
|
|
3319
3306
|
);
|
|
3320
|
-
},
|
|
3307
|
+
}, Pr = /* @__PURE__ */ _("div")({
|
|
3321
3308
|
name: "BetPackContainer",
|
|
3322
3309
|
class: "b18vssq2",
|
|
3323
3310
|
propsAsIs: !1
|
|
3324
|
-
}), ie = "slBetPackCb",
|
|
3311
|
+
}), ie = "slBetPackCb", Mr = bt("betPack-ui"), kr = (t, e = {}) => {
|
|
3325
3312
|
var s, r;
|
|
3326
3313
|
const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
|
|
3327
|
-
|
|
3328
|
-
},
|
|
3329
|
-
|
|
3330
|
-
},
|
|
3314
|
+
Mr.debug({ id: ie, type: t, ...l }), (s = window.top) == null || s.postMessage({ id: ie, type: t, ...l }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...l }), (r = window.slBetPackCb) != null && r.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...l, from: "base" }));
|
|
3315
|
+
}, Ir = (t) => {
|
|
3316
|
+
kr(t.type, t.payload);
|
|
3317
|
+
}, Lr = /* @__PURE__ */ _("div")({
|
|
3331
3318
|
name: "Container",
|
|
3332
3319
|
class: "c1mj28sn",
|
|
3333
3320
|
propsAsIs: !1
|
|
3334
|
-
}),
|
|
3321
|
+
}), Ar = /* @__PURE__ */ _("button")({
|
|
3335
3322
|
name: "CloseButton",
|
|
3336
3323
|
class: "coc9f01",
|
|
3337
3324
|
propsAsIs: !1
|
|
3338
|
-
}),
|
|
3325
|
+
}), Fe = "b590k5k", Or = () => te, ut = /* @__PURE__ */ _(Or())({
|
|
3339
3326
|
name: "IconArrowPrev",
|
|
3340
3327
|
class: "i1tkem14",
|
|
3341
3328
|
propsAsIs: !0
|
|
3342
|
-
}),
|
|
3329
|
+
}), zr = () => ut, _r = /* @__PURE__ */ _(zr())({
|
|
3343
3330
|
name: "IconArrowNext",
|
|
3344
3331
|
class: "i175qlj5",
|
|
3345
3332
|
propsAsIs: !0
|
|
3346
|
-
}),
|
|
3333
|
+
}), $r = /* @__PURE__ */ _("div")({
|
|
3347
3334
|
name: "Header",
|
|
3348
3335
|
class: "h1foi3kz",
|
|
3349
3336
|
propsAsIs: !1
|
|
3350
|
-
}),
|
|
3337
|
+
}), Gr = /* @__PURE__ */ _("div")({
|
|
3351
3338
|
name: "HeaderTitle",
|
|
3352
3339
|
class: "hc2d48a",
|
|
3353
3340
|
propsAsIs: !1
|
|
3354
|
-
}),
|
|
3341
|
+
}), Br = /* @__PURE__ */ _("div")({
|
|
3355
3342
|
name: "Main",
|
|
3356
3343
|
class: "mgfyjlp",
|
|
3357
3344
|
propsAsIs: !1
|
|
3358
|
-
}),
|
|
3345
|
+
}), Nr = /* @__PURE__ */ _("div")({
|
|
3359
3346
|
name: "Footer",
|
|
3360
3347
|
class: "f1vakhu9",
|
|
3361
3348
|
propsAsIs: !1
|
|
@@ -3365,7 +3352,7 @@ handle this request.`
|
|
|
3365
3352
|
propsAsIs: !1
|
|
3366
3353
|
});
|
|
3367
3354
|
Ae(({ sdk: t, onEvent: e, close: s }, r) => {
|
|
3368
|
-
const [n, i] = W(), [l, a] = W(), o =
|
|
3355
|
+
const [n, i] = W(), [l, a] = W(), o = qe(
|
|
3369
3356
|
(c) => {
|
|
3370
3357
|
if (c.type === "slBetPackReady") {
|
|
3371
3358
|
const { next: d, prev: u, current: f, canNext: v, canPrev: h } = c.payload || {};
|
|
@@ -3387,52 +3374,52 @@ Ae(({ sdk: t, onEvent: e, close: s }, r) => {
|
|
|
3387
3374
|
var c;
|
|
3388
3375
|
const d = t.getFeature(We.GAMES);
|
|
3389
3376
|
d && ((c = d.betPack) == null || c.off());
|
|
3390
|
-
}, [t]), /* @__PURE__ */ F(
|
|
3391
|
-
/* @__PURE__ */ F(
|
|
3392
|
-
/* @__PURE__ */ F(
|
|
3377
|
+
}, [t]), /* @__PURE__ */ F(Lr, { ref: r, children: [
|
|
3378
|
+
/* @__PURE__ */ F($r, { children: [
|
|
3379
|
+
/* @__PURE__ */ F(Gr, { children: [
|
|
3393
3380
|
/* @__PURE__ */ P(te, { name: "fgIcon" }),
|
|
3394
3381
|
"Featured Groups+"
|
|
3395
3382
|
] }),
|
|
3396
|
-
/* @__PURE__ */ P(
|
|
3383
|
+
/* @__PURE__ */ P(Ar, { "data-a": "intr", onClick: s, children: /* @__PURE__ */ P(te, { name: "icon-close-btn-gray" }) })
|
|
3397
3384
|
] }),
|
|
3398
|
-
/* @__PURE__ */ P(
|
|
3399
|
-
/* @__PURE__ */ F(
|
|
3400
|
-
/* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(ut, { "data-a": "intr", name: "iconArrowPrev", className:
|
|
3401
|
-
/* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(
|
|
3385
|
+
/* @__PURE__ */ P(Br, { children: /* @__PURE__ */ P(mt, { sdk: t, onEvent: o, overlay: !0 }) }),
|
|
3386
|
+
/* @__PURE__ */ F(Nr, { children: [
|
|
3387
|
+
/* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(ut, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canPrev) && Fe) }) }),
|
|
3388
|
+
/* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(_r, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canNext) && Fe) }) })
|
|
3402
3389
|
] })
|
|
3403
3390
|
] });
|
|
3404
3391
|
});
|
|
3405
|
-
const
|
|
3406
|
-
|
|
3392
|
+
const Dr = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n }) => t.data ? e ? /* @__PURE__ */ P(Cr, { overlay: s, gamification: e, onEvent: n, swipeable: r }) : /* @__PURE__ */ P(Le, {}) : t.error && !t.loading ? /* @__PURE__ */ P(
|
|
3393
|
+
Ie,
|
|
3407
3394
|
{
|
|
3408
3395
|
onEvent: n,
|
|
3409
3396
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3410
3397
|
description: `You are not authorized to
|
|
3411
3398
|
view this resource.`
|
|
3412
3399
|
}
|
|
3413
|
-
) : /* @__PURE__ */ P(
|
|
3414
|
-
const n =
|
|
3400
|
+
) : /* @__PURE__ */ P(Le, {}), mt = xt(({ sdk: t, swipeable: e = !0, onEvent: s = Ir, overlay: r }) => {
|
|
3401
|
+
const n = Se(t.featuresList.getStore()), i = Re(() => t.getFeature(We.GAMES), [n]), l = Se(t.getUserStore());
|
|
3415
3402
|
return Y(() => (t.writeOverlaySessionId(), () => {
|
|
3416
3403
|
t.writeOverlaySessionId("");
|
|
3417
3404
|
}), []), /* @__PURE__ */ P(
|
|
3418
|
-
|
|
3405
|
+
Pr,
|
|
3419
3406
|
{
|
|
3420
|
-
className:
|
|
3421
|
-
children: /* @__PURE__ */ P(
|
|
3407
|
+
className: Ee("SL-BetPack", r && "SL-BetPack--overlay", !r && "SL-BetPack--standalone"),
|
|
3408
|
+
children: /* @__PURE__ */ P(Dr, { overlay: r, user: l, gamification: i, onEvent: s, swipeable: e })
|
|
3422
3409
|
}
|
|
3423
3410
|
);
|
|
3424
|
-
}),
|
|
3411
|
+
}), Ve = (t) => {
|
|
3425
3412
|
const e = t.target;
|
|
3426
3413
|
e instanceof Element && e.getAttribute("data-a") === "intr" && St.emit("interactions", {
|
|
3427
3414
|
action: "tap",
|
|
3428
3415
|
payload: {}
|
|
3429
3416
|
});
|
|
3430
|
-
},
|
|
3417
|
+
}, Rr = () => {
|
|
3431
3418
|
const t = yt();
|
|
3432
|
-
return Y(() => (document == null || document.addEventListener("click",
|
|
3433
|
-
document == null || document.removeEventListener("click",
|
|
3419
|
+
return Y(() => (document == null || document.addEventListener("click", Ve), () => {
|
|
3420
|
+
document == null || document.removeEventListener("click", Ve);
|
|
3434
3421
|
}), []), t ? /* @__PURE__ */ P(mt, { sdk: t }) : null;
|
|
3435
3422
|
};
|
|
3436
3423
|
export {
|
|
3437
|
-
|
|
3424
|
+
Rr as BetPackProvider
|
|
3438
3425
|
};
|