@streamlayer/react 1.21.3 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/masters.d.ts +2 -5
- package/lib/app/pause-ad.d.ts +1 -10
- package/lib/app/useStreamLayerApp.d.ts +1 -23
- package/lib/cjs/Question.js +1 -0
- package/lib/cjs/advertisement.js +40 -40
- package/lib/cjs/analytics.js +1 -0
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -0
- package/lib/cjs/index11.js +4 -0
- package/lib/cjs/index12.js +1 -0
- package/lib/cjs/index13.js +1 -0
- package/lib/cjs/index14.js +1 -0
- package/lib/cjs/index15.js +1 -0
- package/lib/cjs/index16.js +5 -0
- package/lib/cjs/index2.js +1 -5
- package/lib/cjs/index3.js +1 -0
- package/lib/cjs/index4.js +5 -0
- package/lib/cjs/index5.js +1 -0
- package/lib/cjs/index6.js +1 -0
- package/lib/cjs/index7.js +5 -0
- package/lib/cjs/index8.js +1 -0
- package/lib/cjs/index9.js +1 -0
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +6 -6
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/sl-types.js +15 -0
- package/lib/cjs/storage.js +1 -0
- package/lib/cjs/theme.js +17 -0
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +17 -16
- package/lib/cjs/utils.js +47 -0
- package/lib/cjs/vast-client.min.js +1 -0
- package/lib/classic/app/masters.d.ts +2 -5
- package/lib/classic/app/pause-ad.d.ts +1 -10
- package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
- package/lib/classic/cjs/Question.js +1 -0
- package/lib/classic/cjs/advertisement.js +40 -40
- package/lib/classic/cjs/analytics.js +1 -0
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +4 -4
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -0
- package/lib/classic/cjs/index11.js +1 -0
- package/lib/classic/cjs/index12.js +1 -0
- package/lib/classic/cjs/index13.js +4 -0
- package/lib/classic/cjs/index2.js +5 -0
- package/lib/classic/cjs/index3.js +1 -0
- package/lib/classic/cjs/index4.js +1 -0
- package/lib/classic/cjs/index5.js +1 -0
- package/lib/classic/cjs/index6.js +5 -0
- package/lib/classic/cjs/index7.js +1 -0
- package/lib/classic/cjs/index8.js +1 -0
- package/lib/classic/cjs/index9.js +1 -0
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -0
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/sl-types.js +15 -0
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -16
- package/lib/classic/cjs/utils.js +47 -0
- package/lib/classic/cjs/vast-client.min.js +1 -0
- package/lib/classic/es/Question.js +392 -0
- package/lib/classic/es/advertisement.js +10375 -10374
- package/lib/classic/es/analytics.js +28 -0
- package/lib/classic/es/auth.js +4 -4
- package/lib/classic/es/bet-pack.js +55 -51
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/hooks-B0Qttldg.js +98 -0
- package/lib/classic/es/index-DSi8Qgfs.js +65 -0
- package/lib/classic/es/index.js +14 -15
- package/lib/classic/es/index10.js +87 -0
- package/lib/classic/es/index11.js +2355 -0
- package/lib/classic/es/index12.js +183 -0
- package/lib/classic/es/index13.js +835 -0
- package/lib/classic/es/index2.js +2621 -0
- package/lib/classic/es/index3.js +64 -0
- package/lib/classic/es/index4.js +19 -0
- package/lib/classic/es/index5.js +285 -0
- package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
- package/lib/classic/es/index7.js +7 -0
- package/lib/classic/es/index8.js +11 -0
- package/lib/classic/es/index9.js +319 -0
- package/lib/classic/es/insight.js +31 -32
- package/lib/classic/es/notification.js +7 -1006
- package/lib/classic/es/notification2.js +1117 -0
- package/lib/classic/es/pause-ad.js +139 -138
- package/lib/classic/es/points.js +39 -38
- package/lib/classic/es/sl-types.js +258 -0
- package/lib/classic/es/useStreamLayerApp.js +1 -2
- package/lib/classic/es/useStreamLayerApp2.js +4798 -2735
- package/lib/classic/es/utils.js +76 -0
- package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
- package/lib/classic/index.d.ts +5 -13
- package/lib/classic/masters.d.ts +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +34 -33
- package/lib/dist/es/index.js +2 -2
- package/lib/dist/es/masters.js +10563 -8870
- package/lib/dist/index.d.ts +1332 -0
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +136 -0
- package/lib/es/advertisement.js +10375 -10374
- package/lib/es/analytics.js +28 -0
- package/lib/es/auth.js +4 -4
- package/lib/es/bet-pack.js +7 -6
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/hooks-B0Qttldg.js +98 -0
- package/lib/es/index-DSi8Qgfs.js +65 -0
- package/lib/es/index.js +13 -14
- package/lib/es/index10.js +267 -0
- package/lib/es/index11.js +835 -0
- package/lib/es/index12.js +183 -0
- package/lib/es/index13.js +319 -0
- package/lib/es/index14.js +87 -0
- package/lib/es/index15.js +2355 -0
- package/lib/es/index16.js +1254 -0
- package/lib/es/index2.js +1349 -3364
- package/lib/es/index3.js +64 -0
- package/lib/es/index4.js +3418 -0
- package/lib/es/index5.js +19 -0
- package/lib/es/index6.js +285 -0
- package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
- package/lib/es/index8.js +7 -0
- package/lib/es/index9.js +11 -0
- package/lib/es/insight.js +31 -32
- package/lib/es/masters.js +6 -5
- package/lib/es/masters2.js +189 -176
- package/lib/es/notification.js +141 -136
- package/lib/es/pause-ad.js +140 -139
- package/lib/es/points.js +40 -38
- package/lib/es/sl-types.js +277 -0
- package/lib/es/storage.js +113 -0
- package/lib/es/theme.js +47 -0
- package/lib/es/useStreamLayerApp.js +1 -2
- package/lib/es/useStreamLayerApp2.js +4798 -2735
- package/lib/es/utils.js +76 -0
- package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
- package/lib/index.d.ts +5 -13
- package/lib/masters.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +16 -51
- package/lib/app/event.d.ts +0 -6
- package/lib/app/provider.d.ts +0 -49
- package/lib/cjs/index-l-eyvmpL.js +0 -5
- package/lib/cjs/provider.js +0 -84
- package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/app/event.d.ts +0 -6
- package/lib/classic/app/provider.d.ts +0 -49
- package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
- package/lib/classic/cjs/provider.js +0 -68
- package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/es/provider.js +0 -7619
- package/lib/dist/cjs/gamification-feature2.js +0 -1
- package/lib/dist/es/gamification-feature2.js +0 -285
- package/lib/es/provider.js +0 -7695
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useEffect as l } from "react";
|
|
2
|
+
import { e as i } from "./index3.js";
|
|
3
|
+
import { A as s } from "./sl-types.js";
|
|
4
|
+
const u = (e) => [(t) => (...n) => (e && i.emit(e == null ? void 0 : e.type, e), t ? t(n) : null)], p = (e) => {
|
|
5
|
+
const t = e.target;
|
|
6
|
+
t instanceof HTMLAnchorElement && t.target === "_blank" && t.getAttribute("data-a") === "web-link" && i.emit("poll", {
|
|
7
|
+
action: "navigated",
|
|
8
|
+
payload: {}
|
|
9
|
+
}), t instanceof Element && t.getAttribute("data-a") === "intr" && i.emit("interactions", {
|
|
10
|
+
action: "tap",
|
|
11
|
+
payload: {}
|
|
12
|
+
});
|
|
13
|
+
}, f = (e, t) => {
|
|
14
|
+
const n = window.innerWidth < s.xl;
|
|
15
|
+
l(() => {
|
|
16
|
+
const a = n && t.useDomNode ? document : e.current, o = (r) => {
|
|
17
|
+
t.listener(r, e);
|
|
18
|
+
};
|
|
19
|
+
return t.enabled && (a == null || a.addEventListener(t.event, o)), () => {
|
|
20
|
+
a == null || a.removeEventListener(t.event, o);
|
|
21
|
+
};
|
|
22
|
+
}, [n, t.enabled, t.listener]);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
p as A,
|
|
26
|
+
f as b,
|
|
27
|
+
u as f
|
|
28
|
+
};
|
package/lib/classic/es/auth.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useEffect as o } from "react";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
const r =
|
|
2
|
+
import { B as f } from "./hooks-B0Qttldg.js";
|
|
3
|
+
const p = ({ token: t, schema: i }) => {
|
|
4
|
+
const r = f();
|
|
5
5
|
return o(() => {
|
|
6
6
|
t && i && r && r.authorizationBypass(i, t), r && (r.withAuth = !0);
|
|
7
7
|
}, [t, i, r]), null;
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
p as StreamLayerLogin
|
|
11
11
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { c as vt, e as gt } from "./index3.js";
|
|
3
|
+
import { s as _, u as Se, c as Ee } from "./sl-types.js";
|
|
4
|
+
import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as Y, useLayoutEffect as wt, createContext as He, useMemo as Re, useCallback as qe, memo as bt } from "react";
|
|
5
|
+
import yt from "lodash.throttle";
|
|
6
|
+
import { B as te } from "./index5.js";
|
|
7
|
+
import { d as St } from "./index10.js";
|
|
8
|
+
import { e as Et } from "./index13.js";
|
|
9
|
+
import { d as xt, e as Tt, S as We } from "./useStreamLayerApp2.js";
|
|
10
|
+
import { B as Ct } from "./hooks-B0Qttldg.js";
|
|
7
11
|
function _e(t) {
|
|
8
12
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
9
13
|
}
|
|
@@ -439,7 +443,7 @@ function Ft(t) {
|
|
|
439
443
|
observeSlideChildren: !1
|
|
440
444
|
}), r("init", o), r("destroy", c);
|
|
441
445
|
}
|
|
442
|
-
var
|
|
446
|
+
var Vt = {
|
|
443
447
|
on(t, e, s) {
|
|
444
448
|
const r = this;
|
|
445
449
|
if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
|
|
@@ -494,7 +498,7 @@ var jt = {
|
|
|
494
498
|
}), t;
|
|
495
499
|
}
|
|
496
500
|
};
|
|
497
|
-
function
|
|
501
|
+
function jt() {
|
|
498
502
|
const t = this;
|
|
499
503
|
let e, s;
|
|
500
504
|
const r = t.el;
|
|
@@ -543,15 +547,15 @@ function Ht() {
|
|
|
543
547
|
if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
|
|
544
548
|
I = t.isHorizontal() ? Te(x, "width") : Te(x, "height");
|
|
545
549
|
else {
|
|
546
|
-
const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"),
|
|
547
|
-
if (
|
|
548
|
-
I = C +
|
|
550
|
+
const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
|
|
551
|
+
if (j && j === "border-box")
|
|
552
|
+
I = C + V + G;
|
|
549
553
|
else {
|
|
550
554
|
const {
|
|
551
555
|
clientWidth: ft,
|
|
552
556
|
offsetWidth: ht
|
|
553
557
|
} = x;
|
|
554
|
-
I = C + z + U +
|
|
558
|
+
I = C + z + U + V + G + (ht - ft);
|
|
555
559
|
}
|
|
556
560
|
}
|
|
557
561
|
L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
|
|
@@ -852,7 +856,7 @@ function Kt(t, e) {
|
|
|
852
856
|
r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
853
857
|
}
|
|
854
858
|
var Jt = {
|
|
855
|
-
updateSize:
|
|
859
|
+
updateSize: jt,
|
|
856
860
|
updateSlides: Ht,
|
|
857
861
|
updateAutoHeight: Rt,
|
|
858
862
|
updateSlidesOffset: qt,
|
|
@@ -1292,8 +1296,8 @@ function ws(t) {
|
|
|
1292
1296
|
const z = C - Math.floor(C / A) * A;
|
|
1293
1297
|
if (g) {
|
|
1294
1298
|
const U = A - z - 1;
|
|
1295
|
-
for (let
|
|
1296
|
-
d[
|
|
1299
|
+
for (let V = d.length - 1; V >= 0; V -= 1)
|
|
1300
|
+
d[V].column === U && y.push(V);
|
|
1297
1301
|
} else
|
|
1298
1302
|
y.push(A - z - 1);
|
|
1299
1303
|
}
|
|
@@ -1301,8 +1305,8 @@ function ws(t) {
|
|
|
1301
1305
|
L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
|
|
1302
1306
|
for (let C = 0; C < L; C += 1) {
|
|
1303
1307
|
const z = C - Math.floor(C / A) * A;
|
|
1304
|
-
g ? d.forEach((U,
|
|
1305
|
-
U.column === z && T.push(
|
|
1308
|
+
g ? d.forEach((U, V) => {
|
|
1309
|
+
U.column === z && T.push(V);
|
|
1306
1310
|
}) : T.push(z);
|
|
1307
1311
|
}
|
|
1308
1312
|
}
|
|
@@ -1836,11 +1840,11 @@ function Fs() {
|
|
|
1836
1840
|
} = t;
|
|
1837
1841
|
!e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
|
|
1838
1842
|
}
|
|
1839
|
-
var
|
|
1843
|
+
var Vs = {
|
|
1840
1844
|
addClasses: Ds,
|
|
1841
1845
|
removeClasses: Fs
|
|
1842
1846
|
};
|
|
1843
|
-
function
|
|
1847
|
+
function js() {
|
|
1844
1848
|
const t = this, {
|
|
1845
1849
|
isLocked: e,
|
|
1846
1850
|
params: s
|
|
@@ -1855,7 +1859,7 @@ function Vs() {
|
|
|
1855
1859
|
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");
|
|
1856
1860
|
}
|
|
1857
1861
|
var Hs = {
|
|
1858
|
-
checkOverflow:
|
|
1862
|
+
checkOverflow: js
|
|
1859
1863
|
}, Pe = {
|
|
1860
1864
|
init: !0,
|
|
1861
1865
|
direction: "horizontal",
|
|
@@ -1997,7 +2001,7 @@ function Rs(t, e) {
|
|
|
1997
2001
|
};
|
|
1998
2002
|
}
|
|
1999
2003
|
const be = {
|
|
2000
|
-
eventsEmitter:
|
|
2004
|
+
eventsEmitter: Vt,
|
|
2001
2005
|
update: Jt,
|
|
2002
2006
|
translate: is,
|
|
2003
2007
|
transition: os,
|
|
@@ -2007,7 +2011,7 @@ const be = {
|
|
|
2007
2011
|
events: _s,
|
|
2008
2012
|
breakpoints: Bs,
|
|
2009
2013
|
checkOverflow: Hs,
|
|
2010
|
-
classes:
|
|
2014
|
+
classes: Vs
|
|
2011
2015
|
}, ye = {};
|
|
2012
2016
|
let ze = class q {
|
|
2013
2017
|
constructor() {
|
|
@@ -2615,7 +2619,7 @@ function Js(t, e, s) {
|
|
|
2615
2619
|
}));
|
|
2616
2620
|
}
|
|
2617
2621
|
function ee(t, e) {
|
|
2618
|
-
return typeof window > "u" ? Y(t, e) :
|
|
2622
|
+
return typeof window > "u" ? Y(t, e) : wt(t, e);
|
|
2619
2623
|
}
|
|
2620
2624
|
const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__PURE__ */ Ae(function(t, e) {
|
|
2621
2625
|
let {
|
|
@@ -2638,8 +2642,8 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
|
|
|
2638
2642
|
h(!v);
|
|
2639
2643
|
};
|
|
2640
2644
|
Object.assign(I.on, {
|
|
2641
|
-
_containerClasses(G,
|
|
2642
|
-
d(
|
|
2645
|
+
_containerClasses(G, j) {
|
|
2646
|
+
d(j);
|
|
2643
2647
|
}
|
|
2644
2648
|
});
|
|
2645
2649
|
const C = () => {
|
|
@@ -2649,13 +2653,13 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
|
|
|
2649
2653
|
};
|
|
2650
2654
|
if (delete G.wrapperClass, w.current = new ze(G), w.current.virtual && w.current.params.virtual.enabled) {
|
|
2651
2655
|
w.current.virtual.slides = k;
|
|
2652
|
-
const
|
|
2656
|
+
const j = {
|
|
2653
2657
|
cache: !1,
|
|
2654
2658
|
slides: k,
|
|
2655
2659
|
renderExternal: f,
|
|
2656
2660
|
renderExternalUpdate: !1
|
|
2657
2661
|
};
|
|
2658
|
-
J(w.current.params.virtual,
|
|
2662
|
+
J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
|
|
2659
2663
|
}
|
|
2660
2664
|
};
|
|
2661
2665
|
M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
|
|
@@ -2686,7 +2690,7 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
|
|
|
2686
2690
|
};
|
|
2687
2691
|
}, []), ee(() => {
|
|
2688
2692
|
z();
|
|
2689
|
-
const G = Us(S, p.current, k, m.current, (
|
|
2693
|
+
const G = Us(S, p.current, k, m.current, (j) => j.key);
|
|
2690
2694
|
return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Ws({
|
|
2691
2695
|
swiper: w.current,
|
|
2692
2696
|
slides: k,
|
|
@@ -2702,10 +2706,10 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
|
|
|
2702
2706
|
}), ee(() => {
|
|
2703
2707
|
Qs(w.current);
|
|
2704
2708
|
}, [u]);
|
|
2705
|
-
function
|
|
2706
|
-
return I.virtual ? Js(w.current, k, u) : k.map((G,
|
|
2709
|
+
function V() {
|
|
2710
|
+
return I.virtual ? Js(w.current, k, u) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
|
|
2707
2711
|
swiper: w.current,
|
|
2708
|
-
swiperSlideIndex:
|
|
2712
|
+
swiperSlideIndex: j
|
|
2709
2713
|
}));
|
|
2710
2714
|
}
|
|
2711
2715
|
return /* @__PURE__ */ $.createElement(r, pe({
|
|
@@ -2715,7 +2719,7 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
|
|
|
2715
2719
|
value: w.current
|
|
2716
2720
|
}, L["container-start"], /* @__PURE__ */ $.createElement(n, {
|
|
2717
2721
|
className: qs(I.wrapperClass)
|
|
2718
|
-
}, L["wrapper-start"],
|
|
2722
|
+
}, L["wrapper-start"], V(), L["wrapper-end"]), st(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
|
|
2719
2723
|
ref: y,
|
|
2720
2724
|
className: "swiper-button-prev"
|
|
2721
2725
|
}), /* @__PURE__ */ $.createElement("div", {
|
|
@@ -2855,12 +2859,12 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
|
|
|
2855
2859
|
name: "EndScreenSponsorIcon",
|
|
2856
2860
|
class: "e1uswib2",
|
|
2857
2861
|
propsAsIs: !0
|
|
2858
|
-
}), mr = ({ onEvent: t
|
|
2859
|
-
const [
|
|
2862
|
+
}), mr = ({ onEvent: t }) => {
|
|
2863
|
+
const [e, s] = W(
|
|
2860
2864
|
0
|
|
2861
2865
|
/* FIRST */
|
|
2862
2866
|
);
|
|
2863
|
-
return
|
|
2867
|
+
return e === 0 ? /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2864
2868
|
/* @__PURE__ */ P(ur, {}),
|
|
2865
2869
|
/* @__PURE__ */ F(ct, { children: [
|
|
2866
2870
|
/* @__PURE__ */ P(pt, { children: "Great picks!" }),
|
|
@@ -2871,7 +2875,7 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
|
|
|
2871
2875
|
{
|
|
2872
2876
|
"data-a": "intr",
|
|
2873
2877
|
onClick: () => {
|
|
2874
|
-
|
|
2878
|
+
s(
|
|
2875
2879
|
1
|
|
2876
2880
|
/* LAST */
|
|
2877
2881
|
);
|
|
@@ -2880,7 +2884,7 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
|
|
|
2880
2884
|
children: "Continue"
|
|
2881
2885
|
}
|
|
2882
2886
|
)
|
|
2883
|
-
] }) }, "end") : /* @__PURE__ */ P(me, {
|
|
2887
|
+
] }) }, "end") : /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2884
2888
|
/* @__PURE__ */ P(cr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
|
|
2885
2889
|
/* @__PURE__ */ P(ke, { children: "Look for more live match insights, predictions and more." }),
|
|
2886
2890
|
/* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
@@ -2893,8 +2897,8 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
|
|
|
2893
2897
|
className: t
|
|
2894
2898
|
}) => /* @__PURE__ */ P(fr, {
|
|
2895
2899
|
className: t,
|
|
2896
|
-
children: /* @__PURE__ */ P(
|
|
2897
|
-
}), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(
|
|
2900
|
+
children: /* @__PURE__ */ P(St, {})
|
|
2901
|
+
}), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(Et, { close: () => {
|
|
2898
2902
|
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, vr = /* @__PURE__ */ _("span")({
|
|
2899
2903
|
name: "NextButton",
|
|
2900
2904
|
class: "n991vvm",
|
|
@@ -3239,7 +3243,7 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3239
3243
|
e.closeQuestion();
|
|
3240
3244
|
}, [u, f] = W(1.1);
|
|
3241
3245
|
return Y(() => {
|
|
3242
|
-
const v =
|
|
3246
|
+
const v = yt(() => {
|
|
3243
3247
|
var h;
|
|
3244
3248
|
const b = (h = l.current) == null ? void 0 : h.size;
|
|
3245
3249
|
if (!b)
|
|
@@ -3310,7 +3314,7 @@ handle this request.`
|
|
|
3310
3314
|
name: "BetPackContainer",
|
|
3311
3315
|
class: "b18vssq2",
|
|
3312
3316
|
propsAsIs: !1
|
|
3313
|
-
}), ie = "slBetPackCb", Mr =
|
|
3317
|
+
}), ie = "slBetPackCb", Mr = vt("betPack-ui"), kr = (t, e = {}) => {
|
|
3314
3318
|
var s, r;
|
|
3315
3319
|
const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
|
|
3316
3320
|
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" }));
|
|
@@ -3348,7 +3352,7 @@ handle this request.`
|
|
|
3348
3352
|
name: "Footer",
|
|
3349
3353
|
class: "f1vakhu9",
|
|
3350
3354
|
propsAsIs: !1
|
|
3351
|
-
}),
|
|
3355
|
+
}), Ve = /* @__PURE__ */ _("button")({
|
|
3352
3356
|
name: "SlideSwitchButton",
|
|
3353
3357
|
class: "spp13y7",
|
|
3354
3358
|
propsAsIs: !1
|
|
@@ -3386,8 +3390,8 @@ Ae(({ sdk: t, onEvent: e, close: s }, r) => {
|
|
|
3386
3390
|
] }),
|
|
3387
3391
|
/* @__PURE__ */ P(Br, { children: /* @__PURE__ */ P(mt, { sdk: t, onEvent: o, overlay: !0 }) }),
|
|
3388
3392
|
/* @__PURE__ */ F(Nr, { children: [
|
|
3389
|
-
/* @__PURE__ */ P(
|
|
3390
|
-
/* @__PURE__ */ P(
|
|
3393
|
+
/* @__PURE__ */ P(Ve, { "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) }) }),
|
|
3394
|
+
/* @__PURE__ */ P(Ve, { "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) }) })
|
|
3391
3395
|
] })
|
|
3392
3396
|
] });
|
|
3393
3397
|
});
|
|
@@ -3399,7 +3403,7 @@ const Dr = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n })
|
|
|
3399
3403
|
description: `You are not authorized to
|
|
3400
3404
|
view this resource.`
|
|
3401
3405
|
}
|
|
3402
|
-
) : /* @__PURE__ */ P(Le, {}), mt =
|
|
3406
|
+
) : /* @__PURE__ */ P(Le, {}), mt = bt(({ sdk: t, swipeable: e = !0, onEvent: s = Ir, overlay: r }) => {
|
|
3403
3407
|
const n = Se(t.featuresList.getStore()), i = Re(() => t.getFeature(We.GAMES), [n]), l = Se(t.getUserStore());
|
|
3404
3408
|
return Y(() => (t.writeOverlaySessionId(), () => {
|
|
3405
3409
|
t.writeOverlaySessionId("");
|
|
@@ -3410,18 +3414,18 @@ view this resource.`
|
|
|
3410
3414
|
children: /* @__PURE__ */ P(Dr, { overlay: r, user: l, gamification: i, onEvent: s, swipeable: e })
|
|
3411
3415
|
}
|
|
3412
3416
|
);
|
|
3413
|
-
}),
|
|
3417
|
+
}), je = (t) => {
|
|
3414
3418
|
const e = t.target;
|
|
3415
|
-
e instanceof Element && e.getAttribute("data-a") === "intr" &&
|
|
3419
|
+
e instanceof Element && e.getAttribute("data-a") === "intr" && gt.emit("interactions", {
|
|
3416
3420
|
action: "tap",
|
|
3417
3421
|
payload: {}
|
|
3418
3422
|
});
|
|
3419
|
-
},
|
|
3420
|
-
const t =
|
|
3421
|
-
return Y(() => (document == null || document.addEventListener("click",
|
|
3422
|
-
document == null || document.removeEventListener("click",
|
|
3423
|
+
}, Qr = () => {
|
|
3424
|
+
const t = Ct();
|
|
3425
|
+
return Y(() => (document == null || document.addEventListener("click", je), () => {
|
|
3426
|
+
document == null || document.removeEventListener("click", je);
|
|
3423
3427
|
}), []), t ? /* @__PURE__ */ P(mt, { sdk: t }) : null;
|
|
3424
3428
|
};
|
|
3425
3429
|
export {
|
|
3426
|
-
|
|
3430
|
+
Qr as BetPackProvider
|
|
3427
3431
|
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createContext as P, useEffect as s, useRef as g, useMemo as w, useContext as u, useState as h } from "react";
|
|
2
|
+
import { jsxs as N, jsx as O } from "react/jsx-runtime";
|
|
3
|
+
import { $ as T } from "./useStreamLayerApp2.js";
|
|
4
|
+
const L = ({
|
|
5
|
+
event: e,
|
|
6
|
+
internal: r
|
|
7
|
+
}) => {
|
|
8
|
+
const n = H(), o = j();
|
|
9
|
+
return s(() => (n && (e && (n.createEventSession(e, r), o && (o.current = e)), !e && o != null && o.current && (n.createEventSession("", r), o.current = "")), () => {
|
|
10
|
+
n && n.disableApp();
|
|
11
|
+
}), [e, r, o, n]), null;
|
|
12
|
+
};
|
|
13
|
+
var x = /* @__PURE__ */ ((e) => (e[e.UNSET = 0] = "UNSET", e[e.CONNECTED = 1] = "CONNECTED", e[e.READY = 2] = "READY", e))(x || {});
|
|
14
|
+
const M = {
|
|
15
|
+
status: 0,
|
|
16
|
+
sdk: null
|
|
17
|
+
}, d = P(M), U = ({
|
|
18
|
+
sdkKey: e,
|
|
19
|
+
theme: r,
|
|
20
|
+
themeMode: n,
|
|
21
|
+
plugins: o,
|
|
22
|
+
children: a,
|
|
23
|
+
event: m,
|
|
24
|
+
production: y = !0,
|
|
25
|
+
autoEnable: E = !0,
|
|
26
|
+
withAdNotification: C,
|
|
27
|
+
withAd: S = !0,
|
|
28
|
+
betPack: c = !1,
|
|
29
|
+
hideFriends: f,
|
|
30
|
+
skipOnboarding: p,
|
|
31
|
+
friendsTab: v = "enabled",
|
|
32
|
+
onDeepLinkHandled: i,
|
|
33
|
+
videoPlayerController: l,
|
|
34
|
+
onContentActivate: A,
|
|
35
|
+
containerId: b,
|
|
36
|
+
webOS: D
|
|
37
|
+
}) => {
|
|
38
|
+
const t = T({
|
|
39
|
+
sdkKey: e,
|
|
40
|
+
plugins: o,
|
|
41
|
+
production: y,
|
|
42
|
+
autoEnable: E,
|
|
43
|
+
onDeepLinkHandled: i,
|
|
44
|
+
videoPlayerController: l,
|
|
45
|
+
onContentActivate: A,
|
|
46
|
+
hideFriends: f,
|
|
47
|
+
skipOnboarding: p,
|
|
48
|
+
withAdNotification: C,
|
|
49
|
+
withAd: S,
|
|
50
|
+
friendsTab: v,
|
|
51
|
+
betPack: c,
|
|
52
|
+
webOS: D
|
|
53
|
+
}), k = g(""), K = w(() => t ? { sdk: t, status: 2, event: k } : { status: 1, sdk: null, event: k }, [t]);
|
|
54
|
+
return s(() => {
|
|
55
|
+
t && (t.options.setKey("friendsTab", v), t.options.setKey("theme", r), t.options.setKey("themeMode", n), t.options.setKey("skipOnboarding", p), t.options.setKey("betPack", c), t.options.setKey("containerId", b));
|
|
56
|
+
}, [t, v, r, n, p, c, b]), s(() => () => {
|
|
57
|
+
i && (t == null || t.removeDeepLinkHandler(i)), l && (t == null || t.removeVideoPlayerController(l));
|
|
58
|
+
}, [t]), s(() => {
|
|
59
|
+
localStorage.getItem("SL_DEBUG") && console.log("StreamLayerProvider mounted with props:", {
|
|
60
|
+
sdkKey: !!e,
|
|
61
|
+
onDeepLinkHandled: !!i,
|
|
62
|
+
videoPlayerController: !!l
|
|
63
|
+
});
|
|
64
|
+
}, [e, i, l]), /* @__PURE__ */ N(d.Provider, { value: K, children: [
|
|
65
|
+
m !== void 0 && /* @__PURE__ */ O(L, { event: m }),
|
|
66
|
+
a
|
|
67
|
+
] });
|
|
68
|
+
}, H = () => {
|
|
69
|
+
const { sdk: e } = u(d);
|
|
70
|
+
return e;
|
|
71
|
+
}, j = () => {
|
|
72
|
+
const { event: e } = u(d);
|
|
73
|
+
return e;
|
|
74
|
+
}, Y = () => {
|
|
75
|
+
const { sdk: e } = u(d), [r, n] = h({});
|
|
76
|
+
return s(() => {
|
|
77
|
+
var o;
|
|
78
|
+
return e != null && e.options ? (o = e == null ? void 0 : e.options) == null ? void 0 : o.subscribe((a) => {
|
|
79
|
+
n({ theme: a.theme, themeMode: a.themeMode });
|
|
80
|
+
}) : () => {
|
|
81
|
+
};
|
|
82
|
+
}, [e == null ? void 0 : e.options]), r;
|
|
83
|
+
}, B = () => {
|
|
84
|
+
const { sdk: e } = u(d), [r, n] = h({});
|
|
85
|
+
return s(() => e != null && e.uiState ? e == null ? void 0 : e.uiState.subscribe((o) => {
|
|
86
|
+
n({ ...o });
|
|
87
|
+
}) : () => {
|
|
88
|
+
}, [e == null ? void 0 : e.uiState]), r;
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
H as B,
|
|
92
|
+
B as F,
|
|
93
|
+
x as Y,
|
|
94
|
+
d as c,
|
|
95
|
+
L as j,
|
|
96
|
+
U as q,
|
|
97
|
+
Y as z
|
|
98
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
let n = [], f = 0;
|
|
2
|
+
const r = 4;
|
|
3
|
+
let s = (o) => {
|
|
4
|
+
let l = [], e = {
|
|
5
|
+
get() {
|
|
6
|
+
return e.lc || e.listen(() => {
|
|
7
|
+
})(), e.value;
|
|
8
|
+
},
|
|
9
|
+
lc: 0,
|
|
10
|
+
listen(t) {
|
|
11
|
+
return e.lc = l.push(t), () => {
|
|
12
|
+
for (let i = f + r; i < n.length; )
|
|
13
|
+
n[i] === t ? n.splice(i, r) : i += r;
|
|
14
|
+
let u = l.indexOf(t);
|
|
15
|
+
~u && (l.splice(u, 1), --e.lc || e.off());
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
notify(t, u) {
|
|
19
|
+
let i = !n.length;
|
|
20
|
+
for (let v of l)
|
|
21
|
+
n.push(
|
|
22
|
+
v,
|
|
23
|
+
e.value,
|
|
24
|
+
t,
|
|
25
|
+
u
|
|
26
|
+
);
|
|
27
|
+
if (i) {
|
|
28
|
+
for (f = 0; f < n.length; f += r)
|
|
29
|
+
n[f](
|
|
30
|
+
n[f + 1],
|
|
31
|
+
n[f + 2],
|
|
32
|
+
n[f + 3]
|
|
33
|
+
);
|
|
34
|
+
n.length = 0;
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
/* It will be called on last listener unsubscribing.
|
|
38
|
+
We will redefine it in onMount and onStop. */
|
|
39
|
+
off() {
|
|
40
|
+
},
|
|
41
|
+
set(t) {
|
|
42
|
+
let u = e.value;
|
|
43
|
+
u !== t && (e.value = t, e.notify(u));
|
|
44
|
+
},
|
|
45
|
+
subscribe(t) {
|
|
46
|
+
let u = e.listen(t);
|
|
47
|
+
return t(e.value), u;
|
|
48
|
+
},
|
|
49
|
+
value: o
|
|
50
|
+
};
|
|
51
|
+
return e;
|
|
52
|
+
}, a = (o = {}) => {
|
|
53
|
+
let l = s(o);
|
|
54
|
+
return l.setKey = function(e, t) {
|
|
55
|
+
let u = l.value;
|
|
56
|
+
typeof t > "u" && e in l.value ? (l.value = { ...l.value }, delete l.value[e], l.notify(u, e)) : l.value[e] !== t && (l.value = {
|
|
57
|
+
...l.value,
|
|
58
|
+
[e]: t
|
|
59
|
+
}, l.notify(u, e));
|
|
60
|
+
}, l;
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
s as a,
|
|
64
|
+
a as i
|
|
65
|
+
};
|
package/lib/classic/es/index.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { S as s, a as y, b as L, h as p, u as c, d as f, c as u } from "./provider.js";
|
|
2
|
-
import "nanostores";
|
|
3
|
-
import "react/jsx-runtime";
|
|
4
1
|
import "react";
|
|
5
|
-
import "
|
|
6
|
-
import "react-
|
|
7
|
-
import "
|
|
8
|
-
import {
|
|
2
|
+
import { q as o, j as S, B as s, z as i, F as y } from "./hooks-B0Qttldg.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "./useStreamLayerApp2.js";
|
|
5
|
+
import { h as p } from "./index7.js";
|
|
6
|
+
import { b as K } from "./index2.js";
|
|
7
|
+
import { a as D, K as c } from "./notification2.js";
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
o as StreamLayerProvider,
|
|
10
|
+
S as StreamLayerSDKEvent,
|
|
11
|
+
D as StreamLayerSDKNotification,
|
|
12
|
+
c as StreamLayerSDKNotificationUI,
|
|
13
|
+
K as StreamLayerSDKReact,
|
|
15
14
|
p as StreamLayerThemeProvider,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
s as useStreamLayer,
|
|
16
|
+
i as useStreamLayerTheme,
|
|
17
|
+
y as useStreamLayerUI
|
|
19
18
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { d as x } from "./index11.js";
|
|
3
|
+
import { useEffect as h, useState as d, useCallback as p } from "react";
|
|
4
|
+
import { s as f, N as O, I as k, O as y, S as E } from "./sl-types.js";
|
|
5
|
+
import { CountdownCircleTimer as g } from "react-countdown-circle-timer";
|
|
6
|
+
import { B as P } from "./index5.js";
|
|
7
|
+
const v = (i) => {
|
|
8
|
+
const { Component: o, options: t, customOptions: s, autoFocus: r, ...l } = i, e = x.useFocusable({
|
|
9
|
+
...t,
|
|
10
|
+
...s,
|
|
11
|
+
onEnterPress: () => {
|
|
12
|
+
var a;
|
|
13
|
+
return (a = i.onClick) == null ? void 0 : a.call(i, { currentTarget: e.ref.current, stopPropagation: () => {
|
|
14
|
+
} });
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return h(() => {
|
|
18
|
+
r && e.focusSelf();
|
|
19
|
+
}, []), /* @__PURE__ */ n(o, { ...l, ...e, "data-is-with-focus": "true" });
|
|
20
|
+
};
|
|
21
|
+
function B(i, o) {
|
|
22
|
+
return ({ webos: t, options: s, ...r }) => t ? /* @__PURE__ */ n(v, { Component: i, options: o, customOptions: s, ...r }) : /* @__PURE__ */ n(i, { ...r });
|
|
23
|
+
}
|
|
24
|
+
const w = [10, 10, 1, 0], I = /* @__PURE__ */ f("div")({
|
|
25
|
+
name: "RemainingTimeCircle",
|
|
26
|
+
class: "r165427",
|
|
27
|
+
propsAsIs: !1
|
|
28
|
+
}), S = /* @__PURE__ */ f("div")({
|
|
29
|
+
name: "RemainingTime",
|
|
30
|
+
class: "r17garf3",
|
|
31
|
+
propsAsIs: !1
|
|
32
|
+
}), b = y, c = O, u = E, F = ({
|
|
33
|
+
className: i,
|
|
34
|
+
duration: o = 30,
|
|
35
|
+
onTimerExpired: t,
|
|
36
|
+
isPlaying: s = !0
|
|
37
|
+
}) => /* @__PURE__ */ n(g, {
|
|
38
|
+
isPlaying: s,
|
|
39
|
+
strokeWidth: 0,
|
|
40
|
+
duration: o,
|
|
41
|
+
colors: c,
|
|
42
|
+
size: 24,
|
|
43
|
+
onComplete: t,
|
|
44
|
+
children: ({
|
|
45
|
+
remainingTime: r
|
|
46
|
+
}) => /* @__PURE__ */ n(S, {
|
|
47
|
+
className: i,
|
|
48
|
+
children: o === 0 ? 0 : r
|
|
49
|
+
})
|
|
50
|
+
}), j = ({
|
|
51
|
+
isPlaying: i = !0,
|
|
52
|
+
duration: o = 30,
|
|
53
|
+
onTimerExpired: t
|
|
54
|
+
}) => {
|
|
55
|
+
const [s, r] = d(o > 10 ? b : c), [l, e] = d(2);
|
|
56
|
+
h(() => {
|
|
57
|
+
o === 0 && (e(0), r(u));
|
|
58
|
+
}, [o]);
|
|
59
|
+
const a = ({
|
|
60
|
+
remainingTime: m
|
|
61
|
+
}) => /* @__PURE__ */ n(I, {
|
|
62
|
+
children: o === 0 ? 0 : m
|
|
63
|
+
}), C = p(() => {
|
|
64
|
+
t == null || t(), r(u);
|
|
65
|
+
}, [t, r]), T = p((m) => {
|
|
66
|
+
m === 10 && r(c);
|
|
67
|
+
}, [r]);
|
|
68
|
+
return /* @__PURE__ */ n(g, {
|
|
69
|
+
isPlaying: i,
|
|
70
|
+
duration: o,
|
|
71
|
+
colors: k,
|
|
72
|
+
colorsTime: w,
|
|
73
|
+
size: 32,
|
|
74
|
+
strokeWidth: l,
|
|
75
|
+
trailStrokeWidth: 2,
|
|
76
|
+
trailColor: s,
|
|
77
|
+
onComplete: C,
|
|
78
|
+
onUpdate: T,
|
|
79
|
+
children: a
|
|
80
|
+
});
|
|
81
|
+
}, G = ({ height: i = "37px", width: o = "37px" }) => /* @__PURE__ */ n("div", { style: { height: i, width: o }, children: /* @__PURE__ */ n(P, { name: "loader" }) });
|
|
82
|
+
export {
|
|
83
|
+
F as G,
|
|
84
|
+
j as L,
|
|
85
|
+
B as O,
|
|
86
|
+
G as d
|
|
87
|
+
};
|