@streamlayer/react 1.15.1 → 1.15.3
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/index2.js +3 -3
- package/lib/cjs/provider.js +16 -16
- package/lib/cjs/useStreamLayerApp2.js +11 -11
- package/lib/classic/cjs/index2.js +3 -3
- package/lib/classic/cjs/provider.js +16 -16
- package/lib/classic/cjs/useStreamLayerApp2.js +11 -11
- package/lib/classic/es/index2.js +89 -85
- package/lib/classic/es/provider.js +1952 -1956
- package/lib/classic/es/useStreamLayerApp2.js +3991 -4161
- package/lib/dist/cjs/masters.js +31 -31
- package/lib/dist/es/masters.js +7428 -7598
- package/lib/es/index2.js +89 -85
- package/lib/es/provider.js +1949 -1953
- package/lib/es/useStreamLayerApp2.js +3991 -4161
- package/package.json +14 -14
package/lib/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 te, f 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 ft, g as ht, i as vt, j as gt, l as Se, a as _e } from "./provider.js";
|
|
3
|
+
import $, { forwardRef as Le, useState as W, useRef as D, useEffect as X, useLayoutEffect as wt, createContext as He, useCallback as Ae, useSyncExternalStore as bt, useMemo as Re, memo as yt } from "react";
|
|
4
|
+
import { C as St, a as Et, S as qe } from "./useStreamLayerApp2.js";
|
|
5
5
|
function $e(t) {
|
|
6
6
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
7
7
|
}
|
|
@@ -12,7 +12,7 @@ function Oe(t, e) {
|
|
|
12
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]);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const We = {
|
|
16
16
|
body: {},
|
|
17
17
|
addEventListener() {
|
|
18
18
|
},
|
|
@@ -69,10 +69,10 @@ const qe = {
|
|
|
69
69
|
};
|
|
70
70
|
function K() {
|
|
71
71
|
const t = typeof document < "u" ? document : {};
|
|
72
|
-
return Oe(t,
|
|
72
|
+
return Oe(t, We), t;
|
|
73
73
|
}
|
|
74
74
|
const xt = {
|
|
75
|
-
document:
|
|
75
|
+
document: We,
|
|
76
76
|
navigator: {
|
|
77
77
|
userAgent: ""
|
|
78
78
|
},
|
|
@@ -190,7 +190,7 @@ function B() {
|
|
|
190
190
|
function re(t, e, s) {
|
|
191
191
|
t.style.setProperty(e, s);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Ye(t) {
|
|
194
194
|
let {
|
|
195
195
|
swiper: e,
|
|
196
196
|
targetPosition: s,
|
|
@@ -276,7 +276,7 @@ function ce(t) {
|
|
|
276
276
|
return s;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Xe(t, e) {
|
|
280
280
|
const s = [];
|
|
281
281
|
let r = t.parentElement;
|
|
282
282
|
for (; r; )
|
|
@@ -298,7 +298,7 @@ function zt() {
|
|
|
298
298
|
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Ue() {
|
|
302
302
|
return fe || (fe = zt()), fe;
|
|
303
303
|
}
|
|
304
304
|
let he;
|
|
@@ -306,7 +306,7 @@ function _t(t) {
|
|
|
306
306
|
let {
|
|
307
307
|
userAgent: e
|
|
308
308
|
} = t === void 0 ? {} : t;
|
|
309
|
-
const s =
|
|
309
|
+
const s = Ue(), r = N(), n = r.navigator.platform, i = e || r.navigator.userAgent, l = {
|
|
310
310
|
ios: !1,
|
|
311
311
|
android: !1
|
|
312
312
|
}, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
@@ -316,12 +316,12 @@ function _t(t) {
|
|
|
316
316
|
const b = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
317
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
|
-
function
|
|
319
|
+
function Qe(t) {
|
|
320
320
|
return t === void 0 && (t = {}), he || (he = _t(t)), he;
|
|
321
321
|
}
|
|
322
322
|
let ve;
|
|
323
323
|
function $t() {
|
|
324
|
-
const t = N(), e =
|
|
324
|
+
const t = N(), e = Qe();
|
|
325
325
|
let s = !1;
|
|
326
326
|
function r() {
|
|
327
327
|
const a = t.navigator.userAgent.toLowerCase();
|
|
@@ -342,7 +342,7 @@ function $t() {
|
|
|
342
342
|
isWebView: n
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Ke() {
|
|
346
346
|
return ve || (ve = $t()), ve;
|
|
347
347
|
}
|
|
348
348
|
function Gt(t) {
|
|
@@ -416,7 +416,7 @@ function Nt(t) {
|
|
|
416
416
|
}, o = () => {
|
|
417
417
|
if (e.params.observer) {
|
|
418
418
|
if (e.params.observeParents) {
|
|
419
|
-
const d =
|
|
419
|
+
const d = Xe(e.hostEl);
|
|
420
420
|
for (let u = 0; u < d.length; u += 1)
|
|
421
421
|
a(d[u]);
|
|
422
422
|
}
|
|
@@ -541,15 +541,15 @@ function Ft() {
|
|
|
541
541
|
if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
|
|
542
542
|
I = t.isHorizontal() ? xe(x, "width") : xe(x, "height");
|
|
543
543
|
else {
|
|
544
|
-
const C = e(k, "width"), z = e(k, "padding-left"),
|
|
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
545
|
if (V && V === "border-box")
|
|
546
546
|
I = C + j + G;
|
|
547
547
|
else {
|
|
548
548
|
const {
|
|
549
|
-
clientWidth:
|
|
550
|
-
offsetWidth:
|
|
549
|
+
clientWidth: ut,
|
|
550
|
+
offsetWidth: mt
|
|
551
551
|
} = x;
|
|
552
|
-
I = C + z +
|
|
552
|
+
I = C + z + U + j + G + (mt - ut);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
|
|
@@ -911,7 +911,7 @@ function es(t, e, s, r, n) {
|
|
|
911
911
|
a[u ? "scrollLeft" : "scrollTop"] = -d;
|
|
912
912
|
else {
|
|
913
913
|
if (!i.support.smoothScroll)
|
|
914
|
-
return
|
|
914
|
+
return Ye({
|
|
915
915
|
swiper: i,
|
|
916
916
|
targetPosition: -d,
|
|
917
917
|
side: u ? "left" : "top"
|
|
@@ -938,7 +938,7 @@ 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
|
}
|
|
941
|
-
function
|
|
941
|
+
function Je(t) {
|
|
942
942
|
let {
|
|
943
943
|
swiper: e,
|
|
944
944
|
runCallbacks: s,
|
|
@@ -963,7 +963,7 @@ function rs(t, e) {
|
|
|
963
963
|
const s = this, {
|
|
964
964
|
params: r
|
|
965
965
|
} = s;
|
|
966
|
-
r.cssMode || (r.autoHeight && s.updateAutoHeight(),
|
|
966
|
+
r.cssMode || (r.autoHeight && s.updateAutoHeight(), Je({
|
|
967
967
|
swiper: s,
|
|
968
968
|
runCallbacks: t,
|
|
969
969
|
direction: e,
|
|
@@ -975,7 +975,7 @@ function is(t, e) {
|
|
|
975
975
|
const s = this, {
|
|
976
976
|
params: r
|
|
977
977
|
} = s;
|
|
978
|
-
s.animating = !1, !r.cssMode && (s.setTransition(0),
|
|
978
|
+
s.animating = !1, !r.cssMode && (s.setTransition(0), Je({
|
|
979
979
|
swiper: s,
|
|
980
980
|
runCallbacks: t,
|
|
981
981
|
direction: e,
|
|
@@ -1032,7 +1032,7 @@ function as(t, e, s, r, n) {
|
|
|
1032
1032
|
});
|
|
1033
1033
|
else {
|
|
1034
1034
|
if (!i.support.smoothScroll)
|
|
1035
|
-
return
|
|
1035
|
+
return Ye({
|
|
1036
1036
|
swiper: i,
|
|
1037
1037
|
targetPosition: T,
|
|
1038
1038
|
side: y ? "left" : "top"
|
|
@@ -1044,7 +1044,7 @@ function as(t, e, s, r, n) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
return !0;
|
|
1046
1046
|
}
|
|
1047
|
-
const g =
|
|
1047
|
+
const g = Ke().isSafari;
|
|
1048
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;
|
|
@@ -1289,9 +1289,9 @@ function hs(t) {
|
|
|
1289
1289
|
for (let C = 0; C < m - O; C += 1) {
|
|
1290
1290
|
const z = C - Math.floor(C / A) * A;
|
|
1291
1291
|
if (g) {
|
|
1292
|
-
const
|
|
1292
|
+
const U = A - z - 1;
|
|
1293
1293
|
for (let j = d.length - 1; j >= 0; j -= 1)
|
|
1294
|
-
d[j].column ===
|
|
1294
|
+
d[j].column === U && y.push(j);
|
|
1295
1295
|
} else
|
|
1296
1296
|
y.push(A - z - 1);
|
|
1297
1297
|
}
|
|
@@ -1299,8 +1299,8 @@ function hs(t) {
|
|
|
1299
1299
|
L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
|
|
1300
1300
|
for (let C = 0; C < L; C += 1) {
|
|
1301
1301
|
const z = C - Math.floor(C / A) * A;
|
|
1302
|
-
g ? d.forEach((
|
|
1303
|
-
|
|
1302
|
+
g ? d.forEach((U, j) => {
|
|
1303
|
+
U.column === z && T.push(j);
|
|
1304
1304
|
}) : T.push(z);
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
@@ -1682,7 +1682,7 @@ 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
|
-
const
|
|
1685
|
+
const Ze = (t, e) => {
|
|
1686
1686
|
const s = K(), {
|
|
1687
1687
|
params: r,
|
|
1688
1688
|
el: n,
|
|
@@ -1724,10 +1724,10 @@ function Is() {
|
|
|
1724
1724
|
const t = this, {
|
|
1725
1725
|
params: e
|
|
1726
1726
|
} = t;
|
|
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),
|
|
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), Ze(t, "on");
|
|
1728
1728
|
}
|
|
1729
1729
|
function Ls() {
|
|
1730
|
-
|
|
1730
|
+
Ze(this, "off");
|
|
1731
1731
|
}
|
|
1732
1732
|
var As = {
|
|
1733
1733
|
attachEvents: Is,
|
|
@@ -2024,9 +2024,9 @@ let ze = class q {
|
|
|
2024
2024
|
}), d;
|
|
2025
2025
|
}
|
|
2026
2026
|
const a = this;
|
|
2027
|
-
a.__swiper__ = !0, a.support =
|
|
2027
|
+
a.__swiper__ = !0, a.support = Ue(), a.device = Qe({
|
|
2028
2028
|
userAgent: s.userAgent
|
|
2029
|
-
}), a.browser =
|
|
2029
|
+
}), a.browser = Ke(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], s.modules && Array.isArray(s.modules) && a.modules.push(...s.modules);
|
|
2030
2030
|
const o = {};
|
|
2031
2031
|
a.modules.forEach((d) => {
|
|
2032
2032
|
d({
|
|
@@ -2316,7 +2316,7 @@ Object.keys(be).forEach((t) => {
|
|
|
2316
2316
|
});
|
|
2317
2317
|
});
|
|
2318
2318
|
ze.use([Gt, Nt]);
|
|
2319
|
-
const
|
|
2319
|
+
const et = [
|
|
2320
2320
|
"eventsPrefix",
|
|
2321
2321
|
"injectStyles",
|
|
2322
2322
|
"injectStylesUrls",
|
|
@@ -2444,16 +2444,16 @@ function J(t, e) {
|
|
|
2444
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
|
-
function
|
|
2447
|
+
function tt(t) {
|
|
2448
2448
|
return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2450
|
+
function st(t) {
|
|
2451
2451
|
return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function rt(t) {
|
|
2454
2454
|
return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function it(t) {
|
|
2457
2457
|
t === void 0 && (t = "");
|
|
2458
2458
|
const e = t.split(" ").map((r) => r.trim()).filter((r) => !!r), s = [];
|
|
2459
2459
|
return e.forEach((r) => {
|
|
@@ -2502,7 +2502,7 @@ function Rs(t, e) {
|
|
|
2502
2502
|
on: {}
|
|
2503
2503
|
}, r = {}, n = {};
|
|
2504
2504
|
J(s, Ce), s._emitClasses = !0, s.init = !1;
|
|
2505
|
-
const i = {}, l =
|
|
2505
|
+
const i = {}, l = et.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
|
|
2506
2506
|
return Object.keys(a).forEach((o) => {
|
|
2507
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) => {
|
|
@@ -2523,7 +2523,7 @@ function qs(t, e) {
|
|
|
2523
2523
|
scrollbarEl: l,
|
|
2524
2524
|
swiper: a
|
|
2525
2525
|
} = t;
|
|
2526
|
-
|
|
2526
|
+
tt(e) && r && n && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), st(e) && i && (a.params.pagination.el = i, a.originalParams.pagination.el = i), rt(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(s);
|
|
2527
2527
|
}
|
|
2528
2528
|
function Ws(t, e, s, r, n) {
|
|
2529
2529
|
const i = [];
|
|
@@ -2535,7 +2535,7 @@ function Ws(t, e, s, r, n) {
|
|
|
2535
2535
|
const a = r.map(n), o = s.map(n);
|
|
2536
2536
|
a.join("") !== o.join("") && l("children"), r.length !== s.length && l("children");
|
|
2537
2537
|
}
|
|
2538
|
-
return
|
|
2538
|
+
return et.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
|
2539
2539
|
if (a in t && a in e)
|
|
2540
2540
|
if (Q(t[a]) && Q(e[a])) {
|
|
2541
2541
|
const o = Object.keys(t[a]), c = Object.keys(e[a]);
|
|
@@ -2560,13 +2560,13 @@ function pe() {
|
|
|
2560
2560
|
return t;
|
|
2561
2561
|
}, pe.apply(this, arguments);
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function nt(t) {
|
|
2564
2564
|
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2566
|
+
function at(t) {
|
|
2567
2567
|
const e = [];
|
|
2568
2568
|
return $.Children.toArray(t).forEach((s) => {
|
|
2569
|
-
|
|
2569
|
+
nt(s) ? e.push(s) : s.props && s.props.children && at(s.props.children).forEach((r) => e.push(r));
|
|
2570
2570
|
}), e;
|
|
2571
2571
|
}
|
|
2572
2572
|
function Xs(t) {
|
|
@@ -2577,12 +2577,12 @@ function Xs(t) {
|
|
|
2577
2577
|
"wrapper-end": []
|
|
2578
2578
|
};
|
|
2579
2579
|
return $.Children.toArray(t).forEach((r) => {
|
|
2580
|
-
if (
|
|
2580
|
+
if (nt(r))
|
|
2581
2581
|
e.push(r);
|
|
2582
2582
|
else if (r.props && r.props.slot && s[r.props.slot])
|
|
2583
2583
|
s[r.props.slot].push(r);
|
|
2584
2584
|
else if (r.props && r.props.children) {
|
|
2585
|
-
const n =
|
|
2585
|
+
const n = at(r.props.children);
|
|
2586
2586
|
n.length > 0 ? n.forEach((i) => e.push(i)) : s["container-end"].push(r);
|
|
2587
2587
|
} else
|
|
2588
2588
|
s["container-end"].push(r);
|
|
@@ -2613,9 +2613,9 @@ function Us(t, e, s) {
|
|
|
2613
2613
|
}));
|
|
2614
2614
|
}
|
|
2615
2615
|
function ee(t, e) {
|
|
2616
|
-
return typeof window > "u" ?
|
|
2616
|
+
return typeof window > "u" ? X(t, e) : wt(t, e);
|
|
2617
2617
|
}
|
|
2618
|
-
const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null),
|
|
2618
|
+
const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__PURE__ */ Le(function(t, e) {
|
|
2619
2619
|
let {
|
|
2620
2620
|
className: s,
|
|
2621
2621
|
tag: r = "div",
|
|
@@ -2661,14 +2661,14 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2661
2661
|
o || !x || !w.current || Object.keys(x).forEach((G) => {
|
|
2662
2662
|
w.current.on(G, x[G]);
|
|
2663
2663
|
});
|
|
2664
|
-
},
|
|
2664
|
+
}, U = () => {
|
|
2665
2665
|
!x || !w.current || Object.keys(x).forEach((G) => {
|
|
2666
2666
|
w.current.off(G, x[G]);
|
|
2667
2667
|
});
|
|
2668
2668
|
};
|
|
2669
|
-
|
|
2669
|
+
X(() => () => {
|
|
2670
2670
|
w.current && w.current.off("_beforeBreakpoint", O);
|
|
2671
|
-
}),
|
|
2671
|
+
}), X(() => {
|
|
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)
|
|
@@ -2695,7 +2695,7 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2695
2695
|
scrollbarEl: A.current,
|
|
2696
2696
|
paginationEl: T.current
|
|
2697
2697
|
}), () => {
|
|
2698
|
-
|
|
2698
|
+
U();
|
|
2699
2699
|
};
|
|
2700
2700
|
}), ee(() => {
|
|
2701
2701
|
Ys(w.current);
|
|
@@ -2708,26 +2708,26 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), at = /* @__P
|
|
|
2708
2708
|
}
|
|
2709
2709
|
return /* @__PURE__ */ $.createElement(r, pe({
|
|
2710
2710
|
ref: M,
|
|
2711
|
-
className:
|
|
2711
|
+
className: it(`${c}${s ? ` ${s}` : ""}`)
|
|
2712
2712
|
}, E), /* @__PURE__ */ $.createElement(Qs.Provider, {
|
|
2713
2713
|
value: w.current
|
|
2714
2714
|
}, L["container-start"], /* @__PURE__ */ $.createElement(n, {
|
|
2715
2715
|
className: Vs(I.wrapperClass)
|
|
2716
|
-
}, L["wrapper-start"], j(), L["wrapper-end"]),
|
|
2716
|
+
}, L["wrapper-start"], j(), L["wrapper-end"]), tt(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
|
|
2717
2717
|
ref: y,
|
|
2718
2718
|
className: "swiper-button-prev"
|
|
2719
2719
|
}), /* @__PURE__ */ $.createElement("div", {
|
|
2720
2720
|
ref: g,
|
|
2721
2721
|
className: "swiper-button-next"
|
|
2722
|
-
})),
|
|
2722
|
+
})), rt(I) && /* @__PURE__ */ $.createElement("div", {
|
|
2723
2723
|
ref: A,
|
|
2724
2724
|
className: "swiper-scrollbar"
|
|
2725
|
-
}),
|
|
2725
|
+
}), st(I) && /* @__PURE__ */ $.createElement("div", {
|
|
2726
2726
|
ref: T,
|
|
2727
2727
|
className: "swiper-pagination"
|
|
2728
2728
|
}), L["container-end"]));
|
|
2729
2729
|
});
|
|
2730
|
-
|
|
2730
|
+
lt.displayName = "Swiper";
|
|
2731
2731
|
const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
2732
2732
|
let {
|
|
2733
2733
|
tag: s = "div",
|
|
@@ -2767,7 +2767,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2767
2767
|
};
|
|
2768
2768
|
return /* @__PURE__ */ $.createElement(s, pe({
|
|
2769
2769
|
ref: u,
|
|
2770
|
-
className:
|
|
2770
|
+
className: it(`${f}${n ? ` ${n}` : ""}`),
|
|
2771
2771
|
"data-swiper-slide-index": o,
|
|
2772
2772
|
onLoad: m
|
|
2773
2773
|
}, d), l && /* @__PURE__ */ $.createElement(Fe.Provider, {
|
|
@@ -2784,7 +2784,7 @@ const ae = /* @__PURE__ */ Le(function(t, e) {
|
|
|
2784
2784
|
})));
|
|
2785
2785
|
});
|
|
2786
2786
|
ae.displayName = "SwiperSlide";
|
|
2787
|
-
const Ks = () =>
|
|
2787
|
+
const Ks = () => lt, Js = /* @__PURE__ */ _(Ks())({
|
|
2788
2788
|
name: "Carousel",
|
|
2789
2789
|
class: "c1f9jjsn",
|
|
2790
2790
|
propsAsIs: !0
|
|
@@ -2796,18 +2796,18 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2796
2796
|
name: "SponsorIconI",
|
|
2797
2797
|
class: "s1lvrmx8",
|
|
2798
2798
|
propsAsIs: !0
|
|
2799
|
-
}),
|
|
2799
|
+
}), ot = ({
|
|
2800
2800
|
style: t,
|
|
2801
2801
|
className: e
|
|
2802
2802
|
}) => /* @__PURE__ */ P(er, {
|
|
2803
2803
|
className: e,
|
|
2804
2804
|
style: t,
|
|
2805
2805
|
name: "icon-masters-logo"
|
|
2806
|
-
}),
|
|
2806
|
+
}), dt = /* @__PURE__ */ _("div")({
|
|
2807
2807
|
name: "ScreenTextBlock",
|
|
2808
2808
|
class: "s11xps29",
|
|
2809
2809
|
propsAsIs: !1
|
|
2810
|
-
}),
|
|
2810
|
+
}), ct = /* @__PURE__ */ _("div")({
|
|
2811
2811
|
name: "ScreenTitle",
|
|
2812
2812
|
class: "s14qstuv",
|
|
2813
2813
|
propsAsIs: !1
|
|
@@ -2835,7 +2835,7 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2835
2835
|
name: "EmergencyScreenButton",
|
|
2836
2836
|
class: "e1k6zoyu",
|
|
2837
2837
|
propsAsIs: !0
|
|
2838
|
-
}), ke = ({ actionFn: t, description: e, className: s, onEvent: r }) => (
|
|
2838
|
+
}), ke = ({ actionFn: t, description: e, className: s, onEvent: r }) => (X(() => {
|
|
2839
2839
|
r({ type: "slBetPackReady" });
|
|
2840
2840
|
}, [r]), /* @__PURE__ */ F(tr, { className: s, children: [
|
|
2841
2841
|
/* @__PURE__ */ P(sr, { children: "Something went wrong." }),
|
|
@@ -2849,7 +2849,7 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2849
2849
|
name: "EndScreenMedia",
|
|
2850
2850
|
class: "e8s3kc9",
|
|
2851
2851
|
propsAsIs: !1
|
|
2852
|
-
}), or = () =>
|
|
2852
|
+
}), or = () => ot, dr = /* @__PURE__ */ _(or())({
|
|
2853
2853
|
name: "EndScreenSponsorIcon",
|
|
2854
2854
|
class: "e1uswib2",
|
|
2855
2855
|
propsAsIs: !0
|
|
@@ -2860,8 +2860,8 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2860
2860
|
);
|
|
2861
2861
|
return s === 0 ? /* @__PURE__ */ P(me, { height: e, children: /* @__PURE__ */ F(Pe, { children: [
|
|
2862
2862
|
/* @__PURE__ */ P(dr, {}),
|
|
2863
|
-
/* @__PURE__ */ F(
|
|
2864
|
-
/* @__PURE__ */ P(
|
|
2863
|
+
/* @__PURE__ */ F(dt, { children: [
|
|
2864
|
+
/* @__PURE__ */ P(ct, { children: "Great picks!" }),
|
|
2865
2865
|
/* @__PURE__ */ P(Me, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
|
|
2866
2866
|
] }),
|
|
2867
2867
|
/* @__PURE__ */ P(
|
|
@@ -2891,8 +2891,8 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2891
2891
|
className: t
|
|
2892
2892
|
}) => /* @__PURE__ */ P(pr, {
|
|
2893
2893
|
className: t,
|
|
2894
|
-
children: /* @__PURE__ */ P(
|
|
2895
|
-
}), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(
|
|
2894
|
+
children: /* @__PURE__ */ P(ft, {})
|
|
2895
|
+
}), ur = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(ht, { close: () => {
|
|
2896
2896
|
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, mr = /* @__PURE__ */ _("span")({
|
|
2897
2897
|
name: "NextButton",
|
|
2898
2898
|
class: "n991vvm",
|
|
@@ -2910,10 +2910,10 @@ const Ks = () => at, Js = /* @__PURE__ */ _(Ks())({
|
|
|
2910
2910
|
class: "swqs2ju",
|
|
2911
2911
|
propsAsIs: !1
|
|
2912
2912
|
}), wr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Pe, { children: [
|
|
2913
|
-
/* @__PURE__ */ P(
|
|
2914
|
-
/* @__PURE__ */ F(
|
|
2913
|
+
/* @__PURE__ */ P(ot, {}),
|
|
2914
|
+
/* @__PURE__ */ F(dt, { children: [
|
|
2915
2915
|
/* @__PURE__ */ P(vr, { children: "FEATURED GROUPS+" }),
|
|
2916
|
-
/* @__PURE__ */ P(
|
|
2916
|
+
/* @__PURE__ */ P(ct, { children: "The First Five" })
|
|
2917
2917
|
] }),
|
|
2918
2918
|
/* @__PURE__ */ P(Me, { children: "Tee off with these five initial predictions for today’s play." }),
|
|
2919
2919
|
/* @__PURE__ */ F(
|
|
@@ -2943,7 +2943,7 @@ function yr(t, e = {}) {
|
|
|
2943
2943
|
(n) => e.keys ? br(t, e.keys, n) : t.listen(n),
|
|
2944
2944
|
[e.keys, t]
|
|
2945
2945
|
), r = t.get.bind(t);
|
|
2946
|
-
return
|
|
2946
|
+
return bt(s, r, r);
|
|
2947
2947
|
}
|
|
2948
2948
|
function Sr(t, e, s, r) {
|
|
2949
2949
|
return t.params.createElements && Object.keys(r).forEach((n) => {
|
|
@@ -3107,7 +3107,7 @@ function Er(t) {
|
|
|
3107
3107
|
const p = e.params.pagination;
|
|
3108
3108
|
if (!p.el) return;
|
|
3109
3109
|
let m;
|
|
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) =>
|
|
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) => Xe(g, ".swiper")[0] === e.el))), Array.isArray(m) && m.length === 1 && (m = m[0]), Object.assign(e.pagination, {
|
|
3111
3111
|
el: m
|
|
3112
3112
|
}), m = R(m), m.forEach((g) => {
|
|
3113
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);
|
|
@@ -3203,7 +3203,7 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3203
3203
|
},
|
|
3204
3204
|
[e, s, n]
|
|
3205
3205
|
);
|
|
3206
|
-
|
|
3206
|
+
X(() => (s({
|
|
3207
3207
|
type: "slBetPackReady",
|
|
3208
3208
|
payload: {
|
|
3209
3209
|
next: () => {
|
|
@@ -3249,8 +3249,8 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3249
3249
|
}
|
|
3250
3250
|
e.closeQuestion();
|
|
3251
3251
|
}, [u, f] = W(1.1);
|
|
3252
|
-
return
|
|
3253
|
-
const v =
|
|
3252
|
+
return X(() => {
|
|
3253
|
+
const v = vt(() => {
|
|
3254
3254
|
var h;
|
|
3255
3255
|
const b = (h = l.current) == null ? void 0 : h.size;
|
|
3256
3256
|
if (!b)
|
|
@@ -3294,7 +3294,7 @@ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3294
3294
|
{
|
|
3295
3295
|
onEvent: n,
|
|
3296
3296
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3297
|
-
description: l instanceof
|
|
3297
|
+
description: l instanceof St && l.code !== Et.InvalidArgument ? `The event ID was not
|
|
3298
3298
|
specified or is invalid.` : `The server is unable to
|
|
3299
3299
|
handle this request.`
|
|
3300
3300
|
}
|
|
@@ -3321,7 +3321,7 @@ handle this request.`
|
|
|
3321
3321
|
name: "BetPackContainer",
|
|
3322
3322
|
class: "b18vssq2",
|
|
3323
3323
|
propsAsIs: !1
|
|
3324
|
-
}), ie = "slBetPackCb", Pr =
|
|
3324
|
+
}), ie = "slBetPackCb", Pr = gt("betPack-ui"), Mr = (t, e = {}) => {
|
|
3325
3325
|
var s, r;
|
|
3326
3326
|
const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
|
|
3327
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" }));
|
|
@@ -3335,11 +3335,11 @@ handle this request.`
|
|
|
3335
3335
|
name: "CloseButton",
|
|
3336
3336
|
class: "coc9f01",
|
|
3337
3337
|
propsAsIs: !1
|
|
3338
|
-
}), je = "b590k5k", Ar = () => te,
|
|
3338
|
+
}), je = "b590k5k", Ar = () => te, pt = /* @__PURE__ */ _(Ar())({
|
|
3339
3339
|
name: "IconArrowPrev",
|
|
3340
3340
|
class: "i1tkem14",
|
|
3341
3341
|
propsAsIs: !0
|
|
3342
|
-
}), Or = () =>
|
|
3342
|
+
}), Or = () => pt, zr = /* @__PURE__ */ _(Or())({
|
|
3343
3343
|
name: "IconArrowNext",
|
|
3344
3344
|
class: "i175qlj5",
|
|
3345
3345
|
propsAsIs: !0
|
|
@@ -3382,7 +3382,11 @@ handle this request.`
|
|
|
3382
3382
|
},
|
|
3383
3383
|
[e]
|
|
3384
3384
|
);
|
|
3385
|
-
return
|
|
3385
|
+
return X(() => () => {
|
|
3386
|
+
var c;
|
|
3387
|
+
const d = t.getFeature(qe.GAMES);
|
|
3388
|
+
d && ((c = d.betPack) == null || c.off());
|
|
3389
|
+
}, [t]), /* @__PURE__ */ F(Ir, { ref: r, children: [
|
|
3386
3390
|
/* @__PURE__ */ F(_r, { children: [
|
|
3387
3391
|
/* @__PURE__ */ F($r, { children: [
|
|
3388
3392
|
/* @__PURE__ */ P(te, { name: "fgIcon" }),
|
|
@@ -3392,7 +3396,7 @@ handle this request.`
|
|
|
3392
3396
|
] }),
|
|
3393
3397
|
/* @__PURE__ */ P(Gr, { children: /* @__PURE__ */ P(Dr, { sdk: t, onEvent: o, overlay: !0 }) }),
|
|
3394
3398
|
/* @__PURE__ */ F(Nr, { children: [
|
|
3395
|
-
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(
|
|
3399
|
+
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(pt, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canPrev) && je) }) }),
|
|
3396
3400
|
/* @__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) }) })
|
|
3397
3401
|
] })
|
|
3398
3402
|
] });
|
|
@@ -3404,9 +3408,9 @@ handle this request.`
|
|
|
3404
3408
|
description: `You are not authorized to
|
|
3405
3409
|
view this resource.`
|
|
3406
3410
|
}
|
|
3407
|
-
) : /* @__PURE__ */ P(Ie, {}), Dr =
|
|
3408
|
-
const n = _e(t.featuresList.getStore()), i = Re(() => t.getFeature(
|
|
3409
|
-
return
|
|
3411
|
+
) : /* @__PURE__ */ P(Ie, {}), Dr = yt(({ sdk: t, swipeable: e = !0, onEvent: s = kr, overlay: r }) => {
|
|
3412
|
+
const n = _e(t.featuresList.getStore()), i = Re(() => t.getFeature(qe.GAMES), [n]), l = _e(t.getUserStore());
|
|
3413
|
+
return X(() => (t.writeOverlaySessionId(), () => {
|
|
3410
3414
|
t.writeOverlaySessionId("");
|
|
3411
3415
|
}), []), /* @__PURE__ */ P(
|
|
3412
3416
|
Cr,
|