@streamlayer/react 1.20.5 → 1.20.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/advertisement.js +29 -29
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +4 -4
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters2.js +7 -7
- 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/provider.js +15 -39
- package/lib/cjs/useStreamLayerApp2.js +16 -17
- package/lib/classic/cjs/advertisement.js +29 -29
- package/lib/classic/cjs/bet-pack.js +4 -4
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +10 -34
- package/lib/classic/cjs/useStreamLayerApp2.js +16 -17
- package/lib/classic/es/advertisement.js +2193 -2265
- package/lib/classic/es/bet-pack.js +14 -12
- package/lib/classic/es/index.js +16 -11
- package/lib/classic/es/insight.js +35 -30
- package/lib/classic/es/notification.js +108 -103
- package/lib/classic/es/pause-ad.js +91 -87
- package/lib/classic/es/points.js +28 -23
- package/lib/classic/es/provider.js +4285 -10085
- package/lib/classic/es/useStreamLayerApp.js +1 -1
- package/lib/classic/es/useStreamLayerApp2.js +3111 -5772
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +35 -60
- package/lib/dist/es/gamification-feature2.js +112 -105
- package/lib/dist/es/index.js +12 -7
- package/lib/dist/es/masters.js +9909 -18734
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +2193 -2265
- package/lib/es/index.js +16 -11
- package/lib/es/index2.js +12 -10
- package/lib/es/insight.js +35 -30
- package/lib/es/masters2.js +28 -25
- package/lib/es/notification.js +135 -130
- package/lib/es/pause-ad.js +91 -87
- package/lib/es/points.js +28 -23
- package/lib/es/provider.js +4302 -10466
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/es/useStreamLayerApp2.js +3111 -5772
- package/lib/style.css +1 -1
- package/package.json +15 -15
package/lib/es/index.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as p, a as y, b as L, h as c, u as f, d as u, c as D } from "./provider.js";
|
|
2
|
+
import "nanostores";
|
|
2
3
|
import "react/jsx-runtime";
|
|
3
4
|
import "react";
|
|
4
|
-
import
|
|
5
|
+
import "@nanostores/react";
|
|
6
|
+
import "lodash.throttle";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "react-countup";
|
|
9
|
+
import { StreamLayerSDKNotification as d, StreamLayerSDKNotificationUI as h } from "./notification.js";
|
|
5
10
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
p as StreamLayerProvider,
|
|
12
|
+
y as StreamLayerSDKEvent,
|
|
13
|
+
d as StreamLayerSDKNotification,
|
|
14
|
+
h as StreamLayerSDKNotificationUI,
|
|
15
|
+
L as StreamLayerSDKReact,
|
|
16
|
+
c as StreamLayerThemeProvider,
|
|
17
|
+
f as useStreamLayer,
|
|
18
|
+
u as useStreamLayerTheme,
|
|
19
|
+
D as useStreamLayerUI
|
|
15
20
|
};
|
package/lib/es/index2.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import { s as _, B as te,
|
|
3
|
-
import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as X, useLayoutEffect as
|
|
4
|
-
import {
|
|
2
|
+
import { s as _, B as te, o as ft, p as ht, f as Se, j as gt, n as Ee } from "./provider.js";
|
|
3
|
+
import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as X, useLayoutEffect as vt, createContext as Ve, useMemo as He, useCallback as Re, memo as wt } from "react";
|
|
4
|
+
import { ConnectError as bt, Code as yt } from "@connectrpc/connect";
|
|
5
|
+
import St from "lodash.throttle";
|
|
6
|
+
import { S as qe } from "./useStreamLayerApp2.js";
|
|
5
7
|
function _e(t) {
|
|
6
8
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
7
9
|
}
|
|
@@ -2613,7 +2615,7 @@ function Xs(t, e, s) {
|
|
|
2613
2615
|
}));
|
|
2614
2616
|
}
|
|
2615
2617
|
function ee(t, e) {
|
|
2616
|
-
return typeof window > "u" ? X(t, e) :
|
|
2618
|
+
return typeof window > "u" ? X(t, e) : vt(t, e);
|
|
2617
2619
|
}
|
|
2618
2620
|
const De = /* @__PURE__ */ Ve(null), Us = /* @__PURE__ */ Ve(null), lt = /* @__PURE__ */ Ae(function(t, e) {
|
|
2619
2621
|
let {
|
|
@@ -3237,7 +3239,7 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3237
3239
|
e.closeQuestion();
|
|
3238
3240
|
}, [u, f] = W(1.1);
|
|
3239
3241
|
return X(() => {
|
|
3240
|
-
const g =
|
|
3242
|
+
const g = St(() => {
|
|
3241
3243
|
var h;
|
|
3242
3244
|
const b = (h = l.current) == null ? void 0 : h.size;
|
|
3243
3245
|
if (!b)
|
|
@@ -3281,7 +3283,7 @@ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3281
3283
|
{
|
|
3282
3284
|
onEvent: n,
|
|
3283
3285
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3284
|
-
description: l instanceof
|
|
3286
|
+
description: l instanceof bt && l.code !== yt.InvalidArgument ? `The event ID was not
|
|
3285
3287
|
specified or is invalid.` : `The server is unable to
|
|
3286
3288
|
handle this request.`
|
|
3287
3289
|
}
|
|
@@ -3308,7 +3310,7 @@ handle this request.`
|
|
|
3308
3310
|
name: "BetPackContainer",
|
|
3309
3311
|
class: "b18vssq2",
|
|
3310
3312
|
propsAsIs: !1
|
|
3311
|
-
}), ie = "slBetPackCb", xr =
|
|
3313
|
+
}), ie = "slBetPackCb", xr = gt("betPack-ui"), Tr = (t, e = {}) => {
|
|
3312
3314
|
var s, r;
|
|
3313
3315
|
const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
|
|
3314
3316
|
xr.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" }));
|
|
@@ -3350,7 +3352,7 @@ handle this request.`
|
|
|
3350
3352
|
name: "SlideSwitchButton",
|
|
3351
3353
|
class: "spp13y7",
|
|
3352
3354
|
propsAsIs: !1
|
|
3353
|
-
}),
|
|
3355
|
+
}), Hr = Ae(({ sdk: t, onEvent: e, close: s }, r) => {
|
|
3354
3356
|
const [n, i] = W(), [l, a] = W(), o = Re(
|
|
3355
3357
|
(c) => {
|
|
3356
3358
|
if (c.type === "slBetPackReady") {
|
|
@@ -3395,7 +3397,7 @@ handle this request.`
|
|
|
3395
3397
|
description: `You are not authorized to
|
|
3396
3398
|
view this resource.`
|
|
3397
3399
|
}
|
|
3398
|
-
) : /* @__PURE__ */ P(Le, {}), Gr =
|
|
3400
|
+
) : /* @__PURE__ */ P(Le, {}), Gr = wt(({ sdk: t, swipeable: e = !0, onEvent: s = Cr, overlay: r }) => {
|
|
3399
3401
|
const n = Se(t.featuresList.getStore()), i = He(() => t.getFeature(qe.GAMES), [n]), l = Se(t.getUserStore());
|
|
3400
3402
|
return X(() => (t.writeOverlaySessionId(), () => {
|
|
3401
3403
|
t.writeOverlaySessionId("");
|
|
@@ -3409,5 +3411,5 @@ view this resource.`
|
|
|
3409
3411
|
});
|
|
3410
3412
|
export {
|
|
3411
3413
|
Gr as Q,
|
|
3412
|
-
|
|
3414
|
+
Hr as n
|
|
3413
3415
|
};
|
package/lib/es/insight.js
CHANGED
|
@@ -1,35 +1,40 @@
|
|
|
1
|
-
import { jsx as u, jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as u, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as l, useEffect as h } from "react";
|
|
3
|
+
import "@nanostores/react";
|
|
4
|
+
import "nanostores";
|
|
5
|
+
import { f as m, s as f, T as S, u as I, d as g, h as v, a as k } from "./provider.js";
|
|
6
|
+
import "lodash.throttle";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "react-countup";
|
|
4
9
|
import { S as y } from "./useStreamLayerApp2.js";
|
|
5
|
-
const Q = () => S,
|
|
10
|
+
const Q = () => S, L = /* @__PURE__ */ f(Q())({
|
|
6
11
|
name: "QuestionWrap",
|
|
7
12
|
class: "q10hhsxv",
|
|
8
13
|
propsAsIs: !0
|
|
9
|
-
}),
|
|
14
|
+
}), b = ({
|
|
10
15
|
gamification: e,
|
|
11
16
|
sdk: n,
|
|
12
17
|
persistent: i,
|
|
13
|
-
skipAutoClose:
|
|
14
|
-
hideHeader:
|
|
18
|
+
skipAutoClose: o,
|
|
19
|
+
hideHeader: a,
|
|
15
20
|
insightId: t
|
|
16
21
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
return
|
|
22
|
+
const s = l(""), p = m(e.openedQuestion.$store);
|
|
23
|
+
return h(() => t ? (!i || e.isOpenedQuestion(t) || (s.current = t, e.getFeedItem(t).then((r) => {
|
|
19
24
|
var d;
|
|
20
|
-
|
|
25
|
+
s.current === t && ((d = r == null ? void 0 : r.attributes) == null ? void 0 : d.attributes.case) === "insight" && e.openQuestion(t, r);
|
|
21
26
|
})), () => {
|
|
22
|
-
|
|
27
|
+
s.current = "";
|
|
23
28
|
}) : (e.activeQuestionId.subscribe(({
|
|
24
|
-
data:
|
|
29
|
+
data: r
|
|
25
30
|
}) => {
|
|
26
31
|
var d;
|
|
27
|
-
|
|
32
|
+
r && ((d = r.feedItem) == null ? void 0 : d.type) === "insight" && (!i || e.isOpenedQuestion(r.feedItem.id) || (s.current = r.feedItem.id, e.openQuestion(r.feedItem.id, r.feedItem))), !r && s.current && (e.closeQuestion(s.current), s.current = "");
|
|
28
33
|
}), () => {
|
|
29
|
-
}), [e, i, t]),
|
|
34
|
+
}), [e, i, t]), p ? /* @__PURE__ */ u(L, {
|
|
30
35
|
sdk: n,
|
|
31
|
-
skipAutoClose:
|
|
32
|
-
hideHeader:
|
|
36
|
+
skipAutoClose: o,
|
|
37
|
+
hideHeader: a,
|
|
33
38
|
gamification: e,
|
|
34
39
|
hideSponsor: !0
|
|
35
40
|
}) : null;
|
|
@@ -37,42 +42,42 @@ const Q = () => S, b = /* @__PURE__ */ f(Q())({
|
|
|
37
42
|
sdk: e,
|
|
38
43
|
persistent: n,
|
|
39
44
|
skipAutoClose: i,
|
|
40
|
-
insightId:
|
|
41
|
-
hideHeader:
|
|
45
|
+
insightId: o,
|
|
46
|
+
hideHeader: a
|
|
42
47
|
}) => {
|
|
43
48
|
if (!m(e.featuresList.getStore()))
|
|
44
49
|
return null;
|
|
45
50
|
const t = e.getFeature(y.GAMES);
|
|
46
|
-
return t ? /* @__PURE__ */ u(
|
|
47
|
-
insightId:
|
|
51
|
+
return t ? /* @__PURE__ */ u(b, {
|
|
52
|
+
insightId: o,
|
|
48
53
|
sdk: e,
|
|
49
54
|
persistent: n,
|
|
50
|
-
hideHeader:
|
|
55
|
+
hideHeader: a,
|
|
51
56
|
gamification: t,
|
|
52
57
|
skipAutoClose: i
|
|
53
58
|
}) : null;
|
|
54
|
-
},
|
|
59
|
+
}, j = ({
|
|
55
60
|
event: e,
|
|
56
61
|
theme: n,
|
|
57
62
|
hideHeader: i,
|
|
58
|
-
skipAutoClose:
|
|
59
|
-
persistent:
|
|
63
|
+
skipAutoClose: o,
|
|
64
|
+
persistent: a
|
|
60
65
|
}) => {
|
|
61
|
-
const t = I(),
|
|
62
|
-
return t ? /* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */ u(v, { customTheme: n ??
|
|
66
|
+
const t = I(), s = g();
|
|
67
|
+
return t ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: [
|
|
68
|
+
/* @__PURE__ */ u(v, { customTheme: n ?? s.theme, themeMode: s.themeMode, children: /* @__PURE__ */ u(
|
|
64
69
|
A,
|
|
65
70
|
{
|
|
66
|
-
skipAutoClose:
|
|
71
|
+
skipAutoClose: o,
|
|
67
72
|
sdk: t,
|
|
68
73
|
hideHeader: i,
|
|
69
|
-
persistent:
|
|
74
|
+
persistent: a
|
|
70
75
|
}
|
|
71
76
|
) }),
|
|
72
77
|
e !== void 0 && /* @__PURE__ */ u(k, { event: e })
|
|
73
78
|
] }) : null;
|
|
74
79
|
};
|
|
75
80
|
export {
|
|
76
|
-
|
|
81
|
+
j as StreamLayerSDKInsight,
|
|
77
82
|
A as StreamLayerSDKInsightUI
|
|
78
83
|
};
|
package/lib/es/masters2.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { jsx as s, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { s as c,
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { s as c, k as Y, f as m, A as N, F as a2, v as l2, w as d2, x as c2, z as p2, p as C2, C as u2, D as m2, G as f2, H as h2, I as j, J as P, n as A, B as X, K as g2, L as v2, M as E2, e as L2, N as w, P as M, Q as S2, R as _2, U as T2, V as b, W as z, r as J, X as e2, m as F, Y as N2, S as I2, a as b2, Z as R2, _ as A2 } from "./provider.js";
|
|
3
|
+
import V from "lodash.throttle";
|
|
4
|
+
import { useRef as I, useState as _, useEffect as v, createContext as y2, useContext as n2, lazy as k2, useMemo as y, Suspense as w2, forwardRef as x2, useLayoutEffect as D2, useCallback as $, Component as F2 } from "react";
|
|
5
|
+
import { n as O2 } from "./index2.js";
|
|
6
|
+
import "nanostores";
|
|
7
|
+
import { Q as B2, S as k } from "./useStreamLayerApp2.js";
|
|
8
|
+
import { createPortal as V2 } from "react-dom";
|
|
6
9
|
const $2 = /* @__PURE__ */ c("div")({
|
|
7
10
|
name: "SDKContainer",
|
|
8
11
|
class: "s8zgqze",
|
|
@@ -97,7 +100,7 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
97
100
|
});
|
|
98
101
|
}
|
|
99
102
|
return t;
|
|
100
|
-
}, i2 =
|
|
103
|
+
}, i2 = y2({
|
|
101
104
|
sdk: null
|
|
102
105
|
}), U = () => n2(i2), Z2 = /* @__PURE__ */ c("div")({
|
|
103
106
|
name: "QuestionContainer",
|
|
@@ -144,7 +147,7 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
144
147
|
return /* @__PURE__ */ h(Z2, {
|
|
145
148
|
children: [/* @__PURE__ */ s(l2, {
|
|
146
149
|
close: n.closeQuestion,
|
|
147
|
-
type: ((e = t.attributes) == null ? void 0 : e.type) ||
|
|
150
|
+
type: ((e = t.attributes) == null ? void 0 : e.type) || B2.UNSET,
|
|
148
151
|
mastersApp: !0
|
|
149
152
|
}), o === "question" && /* @__PURE__ */ s(Y2, {
|
|
150
153
|
vote: n.submitAnswer,
|
|
@@ -178,7 +181,7 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
178
181
|
name: "OpenedContainer",
|
|
179
182
|
class: "o1seszvt",
|
|
180
183
|
propsAsIs: !0
|
|
181
|
-
}),
|
|
184
|
+
}), r1 = ({
|
|
182
185
|
gamification: n,
|
|
183
186
|
className: e
|
|
184
187
|
}) => /* @__PURE__ */ s(e0, {
|
|
@@ -216,10 +219,10 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
216
219
|
})
|
|
217
220
|
})
|
|
218
221
|
});
|
|
219
|
-
}, o0 =
|
|
222
|
+
}, o0 = k2(() => import("./gamification-feature2.js")), r0 = ({ sdk: n, feature: e, className: t }) => {
|
|
220
223
|
const i = y(() => e && e.featureConfig.get().type === k.GAMES ? /* @__PURE__ */ s(Q2, { className: t, sdk: n, feature: e, children: /* @__PURE__ */ s(o0, { className: t, gamification: e }) }) : null, [n, e, t]);
|
|
221
224
|
return /* @__PURE__ */ s(
|
|
222
|
-
|
|
225
|
+
w2,
|
|
223
226
|
{
|
|
224
227
|
fallback: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
|
|
225
228
|
children: i
|
|
@@ -246,7 +249,7 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
246
249
|
name: "Title",
|
|
247
250
|
class: "t1bqnx9c",
|
|
248
251
|
propsAsIs: !1
|
|
249
|
-
}), p0 = "hlc2pcy", C0 =
|
|
252
|
+
}), p0 = "hlc2pcy", C0 = x2(({
|
|
250
253
|
className: n
|
|
251
254
|
}, e) => /* @__PURE__ */ h(l0, {
|
|
252
255
|
className: A(n, p0),
|
|
@@ -408,7 +411,7 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
408
411
|
} = m(a, {
|
|
409
412
|
keys: ["screen"]
|
|
410
413
|
});
|
|
411
|
-
(r = l == null ? void 0 : l.titleCard) != null && r.media && (l.titleCard.media.sponsorLogo = T0),
|
|
414
|
+
(r = l == null ? void 0 : l.titleCard) != null && r.media && (l.titleCard.media.sponsorLogo = T0), D2(() => {
|
|
412
415
|
var L;
|
|
413
416
|
t(((L = d.current) == null ? void 0 : L.getBoundingClientRect().height) || 0);
|
|
414
417
|
}, [t]);
|
|
@@ -567,8 +570,8 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
567
570
|
a.get().sdkInDesktopView || d ? f < 50 && e(null) : f > -50 && e(null);
|
|
568
571
|
}, [f, a, e, d]);
|
|
569
572
|
const E = a.get().sdkInDesktopView ? t : i;
|
|
570
|
-
return !n || !E.current ? null :
|
|
571
|
-
title: n.type === w.QUESTION_RESOLVED ? "Prediction result" : `New ${((C =
|
|
573
|
+
return !n || !E.current ? null : V2(/* @__PURE__ */ s(O0, {
|
|
574
|
+
title: n.type === w.QUESTION_RESOLVED ? "Prediction result" : `New ${((C = _2[(l = n.data) == null ? void 0 : l.questionType]) == null ? void 0 : C.label) || "notification"}`,
|
|
572
575
|
onClick: () => {
|
|
573
576
|
var S;
|
|
574
577
|
a.get().sdkInDesktopView ? (S = o.current) == null || S.scrollTo({
|
|
@@ -662,7 +665,7 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
662
665
|
};
|
|
663
666
|
}, [e, n]), [e];
|
|
664
667
|
}, G0 = {
|
|
665
|
-
...
|
|
668
|
+
...T2,
|
|
666
669
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
667
670
|
// @ts-expect-error
|
|
668
671
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
@@ -747,7 +750,7 @@ const $2 = /* @__PURE__ */ c("div")({
|
|
|
747
750
|
--header-offset: 0px;
|
|
748
751
|
`}`;
|
|
749
752
|
const z0 = "m1ojpy2l", K0 = ({ children: n, style: e }) => /* @__PURE__ */ s("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ s("div", { className: A("masters-theme", z0), style: e, children: n }) }), q0 = ({ sdk: n, className: e }) => {
|
|
750
|
-
const [, t] =
|
|
753
|
+
const [, t] = N2(n);
|
|
751
754
|
return /* @__PURE__ */ s(r0, { className: e, feature: t, sdk: n });
|
|
752
755
|
}, Q0 = ({ sdk: n, className: e, appNode: t, responsiveStore: i, useContainer: o }) => {
|
|
753
756
|
const a = m(n.featuresList.getStore());
|
|
@@ -768,7 +771,7 @@ const z0 = "m1ojpy2l", K0 = ({ children: n, style: e }) => /* @__PURE__ */ s("di
|
|
|
768
771
|
}) : null;
|
|
769
772
|
}, Z0 = (n) => {
|
|
770
773
|
const e = I(null);
|
|
771
|
-
return J(e, { enabled: !0, event: "click", listener: e2 }), /* @__PURE__ */ s(
|
|
774
|
+
return J(e, { enabled: !0, event: "click", listener: e2 }), /* @__PURE__ */ s(O2, { ref: e, ...n });
|
|
772
775
|
}, W0 = ({ sdk: n, useContainer: e }) => {
|
|
773
776
|
const t = I(null), i = m(n.status), o = m(n.sdkStore.slStreamId), a = I(null), [r] = U0(t), [d, l] = q2(t, r, e), C = i === "ready" && !!o.data;
|
|
774
777
|
return v(() => {
|
|
@@ -825,8 +828,8 @@ const z0 = "m1ojpy2l", K0 = ({ children: n, style: e }) => /* @__PURE__ */ s("di
|
|
|
825
828
|
),
|
|
826
829
|
!i && /* @__PURE__ */ s(W0, { sdk: n, useContainer: t })
|
|
827
830
|
] });
|
|
828
|
-
},
|
|
829
|
-
|
|
831
|
+
}, a1 = ({ sdkKey: n, plugins: e, children: t, event: i, onDeepLinkHandled: o, videoPlayerController: a, production: r = !0 }) => /* @__PURE__ */ h(
|
|
832
|
+
I2,
|
|
830
833
|
{
|
|
831
834
|
sdkKey: n,
|
|
832
835
|
plugins: e,
|
|
@@ -838,7 +841,7 @@ const z0 = "m1ojpy2l", K0 = ({ children: n, style: e }) => /* @__PURE__ */ s("di
|
|
|
838
841
|
skipOnboarding: !0,
|
|
839
842
|
hideFriends: !0,
|
|
840
843
|
children: [
|
|
841
|
-
/* @__PURE__ */ s(
|
|
844
|
+
/* @__PURE__ */ s(b2, { event: i }),
|
|
842
845
|
t
|
|
843
846
|
]
|
|
844
847
|
}
|
|
@@ -846,10 +849,10 @@ const z0 = "m1ojpy2l", K0 = ({ children: n, style: e }) => /* @__PURE__ */ s("di
|
|
|
846
849
|
betPack: n,
|
|
847
850
|
useContainer: e
|
|
848
851
|
}) => {
|
|
849
|
-
const { sdk: t, status: i } = n2(
|
|
850
|
-
return i ===
|
|
852
|
+
const { sdk: t, status: i } = n2(R2);
|
|
853
|
+
return i === A2.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : t ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(K0, { style: { height: "100%" }, children: /* @__PURE__ */ s(Y0, { sdk: t, betPack: n, useContainer: e }) }) }) : null;
|
|
851
854
|
};
|
|
852
|
-
class
|
|
855
|
+
class l1 extends F2 {
|
|
853
856
|
constructor(e) {
|
|
854
857
|
super(e), this.state = { hasError: !1 };
|
|
855
858
|
}
|
|
@@ -864,7 +867,7 @@ class o1 extends O2 {
|
|
|
864
867
|
}
|
|
865
868
|
}
|
|
866
869
|
export {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
+
r1 as C,
|
|
871
|
+
a1 as M,
|
|
872
|
+
l1 as a
|
|
870
873
|
};
|