@streamlayer/react 1.22.3 → 1.23.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/pause-ad.d.ts +2 -4
- package/lib/app/polymarket.d.ts +7 -0
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +44 -40
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -0
- package/lib/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/cjs/index-eShKGO10.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index16.js +2 -2
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +1 -1
- package/lib/cjs/index7.js +1 -5
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +5 -5
- 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/polymarket.js +19 -0
- package/lib/cjs/useStreamLayerApp2.js +17 -17
- package/lib/classic/app/pause-ad.d.ts +2 -4
- package/lib/classic/app/polymarket.d.ts +7 -0
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +44 -40
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/feature.js +1 -0
- package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/classic/cjs/index-eShKGO10.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +1 -1
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -5
- package/lib/classic/cjs/index9.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +19 -0
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -17
- package/lib/classic/es/Question.js +50 -50
- package/lib/classic/es/advertisement.js +15547 -10742
- package/lib/classic/es/analytics.js +74 -18
- package/lib/classic/es/auth.js +1 -1
- package/lib/classic/es/bet-pack.js +19 -18
- package/lib/classic/es/feature.js +63 -0
- package/lib/classic/es/hooks-WfHlJH12.js +98 -0
- package/lib/classic/es/index-eShKGO10.js +3757 -0
- package/lib/classic/es/index.js +1 -1
- package/lib/classic/es/index10.js +1 -1
- package/lib/classic/es/index11.js +767 -755
- package/lib/classic/es/index12.js +1 -1
- package/lib/classic/es/index13.js +2 -2
- package/lib/classic/es/index2.js +125 -125
- package/lib/classic/es/index3.js +16 -61
- package/lib/classic/es/index4.js +282 -16
- package/lib/classic/es/index5.js +4 -283
- package/lib/classic/es/index6.js +5 -3758
- package/lib/classic/es/index9.js +1 -1
- package/lib/classic/es/insight.js +1 -1
- package/lib/classic/es/notification.js +1 -1
- package/lib/classic/es/notification2.js +476 -451
- package/lib/classic/es/pause-ad.js +174 -208
- package/lib/classic/es/points.js +16 -15
- package/lib/classic/es/polymarket.js +6670 -0
- package/lib/classic/es/useStreamLayerApp2.js +5088 -4030
- package/lib/dist/cjs/index-eShKGO10.js +5 -0
- package/lib/dist/cjs/masters.js +36 -36
- package/lib/dist/es/index-eShKGO10.js +3757 -0
- package/lib/dist/es/masters.js +9243 -8192
- package/lib/dist/index.d.ts +30 -7
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +3 -3
- package/lib/es/advertisement.js +15547 -10742
- package/lib/es/analytics.js +74 -18
- package/lib/es/auth.js +1 -1
- package/lib/es/bet-pack.js +1 -1
- package/lib/es/feature.js +63 -0
- package/lib/es/hooks-WfHlJH12.js +98 -0
- package/lib/es/index-eShKGO10.js +3757 -0
- package/lib/es/index.js +1 -1
- package/lib/es/index10.js +9 -9
- package/lib/es/index16.js +2 -2
- package/lib/es/index2.js +118 -118
- package/lib/es/index3.js +3 -61
- package/lib/es/index4.js +1 -1
- package/lib/es/index7.js +5 -3758
- package/lib/es/insight.js +1 -1
- package/lib/es/masters.js +1 -1
- package/lib/es/masters2.js +23 -23
- package/lib/es/notification.js +450 -425
- package/lib/es/pause-ad.js +174 -208
- package/lib/es/points.js +5 -4
- package/lib/es/polymarket.js +6670 -0
- package/lib/es/useStreamLayerApp2.js +5088 -4030
- package/lib/style.css +1 -1
- package/package.json +27 -17
- package/lib/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/cjs/index-DSi8Qgfs.js +0 -1
- package/lib/cjs/vast-client.min.js +0 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/classic/cjs/index-DSi8Qgfs.js +0 -1
- package/lib/classic/cjs/vast-client.min.js +0 -1
- package/lib/classic/es/hooks-B0Qttldg.js +0 -98
- package/lib/classic/es/index-DSi8Qgfs.js +0 -65
- package/lib/classic/es/vast-client.min.js +0 -1060
- package/lib/es/hooks-B0Qttldg.js +0 -98
- package/lib/es/index-DSi8Qgfs.js +0 -65
- package/lib/es/vast-client.min.js +0 -1060
package/lib/es/index2.js
CHANGED
|
@@ -1,72 +1,73 @@
|
|
|
1
1
|
var Ce = Object.defineProperty;
|
|
2
2
|
var Ee = (e, t, n) => t in e ? Ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var k = (e, t, n) => Ee(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { useState as S, useEffect as y, useRef as
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as i, jsxs as f, Fragment as
|
|
7
|
-
import { I as _e, S as N, f as
|
|
4
|
+
import { useState as S, useEffect as y, useRef as x, PureComponent as Re, useCallback as j, lazy as xe, useMemo as w, Suspense as Le, forwardRef as be, useLayoutEffect as De, useContext as Y } from "react";
|
|
5
|
+
import { i as Z, F as Te, z as Oe, Y as X } from "./hooks-WfHlJH12.js";
|
|
6
|
+
import { jsx as i, jsxs as f, Fragment as L } from "react/jsx-runtime";
|
|
7
|
+
import { I as _e, S as N, f as R, h as ee, Q as V } from "./useStreamLayerApp2.js";
|
|
8
8
|
import { h as Me } from "./index8.js";
|
|
9
|
-
import { A as
|
|
10
|
-
import { l as Be, a as Fe, m as ze, d as Pe, n as Ve, C as qe, S as je, b as Ke, f as
|
|
11
|
-
import { M as
|
|
9
|
+
import { A as T, u as v, s as u, b as Ue, c as C, a as z } from "./sl-types.js";
|
|
10
|
+
import { l as Be, a as Fe, m as ze, d as Pe, n as Ve, C as qe, S as je, b as Ke, f as G, p as Qe, c as Ge } from "./index11.js";
|
|
11
|
+
import { M as We, a as He, k as Je, z as ke, c as ye, T as Ne, I as Ye, t as Ze, f as Xe, w as te, D as et, p as tt } from "./index16.js";
|
|
12
12
|
import K from "lodash.throttle";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { F as it, c as U, e as at } from "./index3.js";
|
|
13
|
+
import { f as Se, a as nt, b as st, A as ot } from "./analytics.js";
|
|
14
|
+
import { m as B } from "./theme.js";
|
|
15
|
+
import { F as it, c as M } from "./feature.js";
|
|
17
16
|
import "nanostores";
|
|
18
|
-
import { p as
|
|
19
|
-
import { y as
|
|
17
|
+
import { p as W, h as at, e as rt } from "./Question.js";
|
|
18
|
+
import { y as lt } from "./index10.js";
|
|
20
19
|
import { B as D } from "./index6.js";
|
|
21
|
-
import
|
|
22
|
-
import { I as
|
|
20
|
+
import dt from "react-infinite-scroller";
|
|
21
|
+
import { I as ct, s as pt, e as ut } from "./index12.js";
|
|
23
22
|
import "uuid";
|
|
24
23
|
import "@nanostores/query";
|
|
25
24
|
import "./storage.js";
|
|
26
|
-
import
|
|
25
|
+
import "./index7.js";
|
|
26
|
+
import { createPortal as mt } from "react-dom";
|
|
27
|
+
import { e as ht } from "./index3.js";
|
|
27
28
|
import "./notification.js";
|
|
28
|
-
const ne = Object.keys(
|
|
29
|
+
const ne = Object.keys(T), se = () => {
|
|
29
30
|
const e = window.innerWidth;
|
|
30
31
|
let t = "sm";
|
|
31
32
|
for (let n = ne.length - 1; n > 0; n--) {
|
|
32
33
|
const o = ne[n];
|
|
33
|
-
if (!(e <
|
|
34
|
+
if (!(e < T[o]) && e >= T[o]) {
|
|
34
35
|
t = o;
|
|
35
36
|
break;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
40
|
name: t,
|
|
40
|
-
size:
|
|
41
|
+
size: T[t]
|
|
41
42
|
};
|
|
42
43
|
}, oe = (e) => {
|
|
43
44
|
var t;
|
|
44
45
|
return (((t = e.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) < -68;
|
|
45
|
-
},
|
|
46
|
+
}, P = () => window.matchMedia("(orientation: landscape)").matches, vt = (e) => {
|
|
46
47
|
const [t] = S(() => Se({
|
|
47
48
|
screen: se(),
|
|
48
49
|
sdkInView: oe(e),
|
|
49
|
-
sdkInDesktopView:
|
|
50
|
+
sdkInDesktopView: P()
|
|
50
51
|
}));
|
|
51
52
|
return y(() => {
|
|
52
53
|
const n = K(() => {
|
|
53
54
|
t.setKey("sdkInView", oe(e));
|
|
54
55
|
}, 200), o = K(() => {
|
|
55
56
|
const s = se();
|
|
56
|
-
t.setKey("screen", s), t.setKey("sdkInDesktopView",
|
|
57
|
+
t.setKey("screen", s), t.setKey("sdkInDesktopView", P());
|
|
57
58
|
}, 200);
|
|
58
59
|
return window.addEventListener("scroll", n), window.addEventListener("resize", o), () => {
|
|
59
60
|
window.removeEventListener("scroll", n), window.removeEventListener("resize", o);
|
|
60
61
|
};
|
|
61
62
|
}, [t, e]), [t];
|
|
62
63
|
}, H = (e, t, n) => {
|
|
63
|
-
const o = t >=
|
|
64
|
+
const o = t >= T.lg && t < T.xl ? 75 : 52;
|
|
64
65
|
e.current && window.scrollTo({
|
|
65
66
|
top: e.current.offsetTop - o,
|
|
66
67
|
...n
|
|
67
68
|
});
|
|
68
69
|
}, ft = 15, gt = (e, t) => {
|
|
69
|
-
const n =
|
|
70
|
+
const n = x(null), o = x(0), [s] = S(
|
|
70
71
|
Se({
|
|
71
72
|
scrollPosition: 0,
|
|
72
73
|
tabsShown: !0,
|
|
@@ -74,7 +75,7 @@ const ne = Object.keys(O), se = () => {
|
|
|
74
75
|
})
|
|
75
76
|
), r = v(t);
|
|
76
77
|
return y(() => {
|
|
77
|
-
const l =
|
|
78
|
+
const l = P() ? n.current : window;
|
|
78
79
|
if (!l)
|
|
79
80
|
return () => {
|
|
80
81
|
};
|
|
@@ -84,7 +85,7 @@ const ne = Object.keys(O), se = () => {
|
|
|
84
85
|
if (!m)
|
|
85
86
|
return;
|
|
86
87
|
let p = 0;
|
|
87
|
-
|
|
88
|
+
P() ? p = m.scrollTop : p = ((c = e.current) == null ? void 0 : c.getBoundingClientRect().y) || 0;
|
|
88
89
|
const h = o.current - p;
|
|
89
90
|
if (ft > Math.abs(h))
|
|
90
91
|
return;
|
|
@@ -146,7 +147,7 @@ const ne = Object.keys(O), se = () => {
|
|
|
146
147
|
class: "tspsaas",
|
|
147
148
|
propsAsIs: !1
|
|
148
149
|
});
|
|
149
|
-
var
|
|
150
|
+
var _ = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(_ || {});
|
|
150
151
|
const ie = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ i(yt, { "data-a": "intr", onClick: n, "data-selected": t, children: /* @__PURE__ */ i(Nt, { "data-a": "intr", children: e }) }), St = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ i(bt, { children: /* @__PURE__ */ f(kt, { "data-position": e === "home" ? "left" : "right", children: [
|
|
151
152
|
/* @__PURE__ */ i(ie, { title: "Home", active: e === "home", onClick: () => t(
|
|
152
153
|
"home"
|
|
@@ -187,7 +188,7 @@ const ie = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ i(yt, { "dat
|
|
|
187
188
|
name: "ArrowInviteIcon",
|
|
188
189
|
class: "awohrz6",
|
|
189
190
|
propsAsIs: !0
|
|
190
|
-
}),
|
|
191
|
+
}), Dt = ({ title: e, description: t, onClick: n, className: o }) => {
|
|
191
192
|
const [s] = nt({
|
|
192
193
|
type: "invitation",
|
|
193
194
|
action: "sent",
|
|
@@ -204,7 +205,7 @@ const ie = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ i(yt, { "dat
|
|
|
204
205
|
/* @__PURE__ */ i(Lt, { name: "icon-copy" })
|
|
205
206
|
] });
|
|
206
207
|
};
|
|
207
|
-
function
|
|
208
|
+
function Tt(e) {
|
|
208
209
|
var t = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, o = e.startIndex, s = e.stopIndex;
|
|
209
210
|
return !(o > n || s < t);
|
|
210
211
|
}
|
|
@@ -310,7 +311,7 @@ var _t = function(e, t) {
|
|
|
310
311
|
for (var s = this, r = this.props.loadMoreItems || this.props.loadMoreRows, l = function(c) {
|
|
311
312
|
var m = o[c], p = o[c + 1], h = r(m, p);
|
|
312
313
|
h != null && h.then(function() {
|
|
313
|
-
if (
|
|
314
|
+
if (Tt({
|
|
314
315
|
lastRenderedStartIndex: s._lastRenderedStartIndex,
|
|
315
316
|
lastRenderedStopIndex: s._lastRenderedStopIndex,
|
|
316
317
|
startIndex: m,
|
|
@@ -358,7 +359,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
358
359
|
name: "CurrentUserBadge",
|
|
359
360
|
class: "c17uc4zr",
|
|
360
361
|
propsAsIs: !0
|
|
361
|
-
}),
|
|
362
|
+
}), Gt = ({
|
|
362
363
|
friendsRank: e,
|
|
363
364
|
avatar: t,
|
|
364
365
|
name: n,
|
|
@@ -369,14 +370,14 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
369
370
|
}) => /* @__PURE__ */ f(Bt, { "data-name": o, style: l, children: [
|
|
370
371
|
/* @__PURE__ */ i(Ft, { children: e || 0 }),
|
|
371
372
|
/* @__PURE__ */ f(Vt, { children: [
|
|
372
|
-
t ? /* @__PURE__ */ i(zt, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ i(Pt, { children:
|
|
373
|
+
t ? /* @__PURE__ */ i(zt, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ i(Pt, { children: ct(n || "") }),
|
|
373
374
|
/* @__PURE__ */ f(qt, { children: [
|
|
374
375
|
/* @__PURE__ */ i(jt, { children: n || "" }),
|
|
375
376
|
r && /* @__PURE__ */ i(Qt, { name: "icon-star" })
|
|
376
377
|
] })
|
|
377
378
|
] }),
|
|
378
|
-
/* @__PURE__ */ i("div", { children:
|
|
379
|
-
] }),
|
|
379
|
+
/* @__PURE__ */ i("div", { children: pt(s) })
|
|
380
|
+
] }), Wt = /* @__PURE__ */ u("div")({
|
|
380
381
|
name: "Container",
|
|
381
382
|
class: "c16btbfp",
|
|
382
383
|
propsAsIs: !1
|
|
@@ -392,16 +393,16 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
392
393
|
const a = d.target.getAttribute("data-name");
|
|
393
394
|
a && n(a);
|
|
394
395
|
}, [n]);
|
|
395
|
-
return /* @__PURE__ */ i(
|
|
396
|
+
return /* @__PURE__ */ i(dt, {
|
|
396
397
|
loadMore: o,
|
|
397
398
|
initialLoad: !1,
|
|
398
399
|
hasMore: r,
|
|
399
400
|
useWindow: !1,
|
|
400
401
|
getScrollParent: () => s.current,
|
|
401
|
-
children: /* @__PURE__ */ i(
|
|
402
|
+
children: /* @__PURE__ */ i(Wt, {
|
|
402
403
|
"data-a": "intr",
|
|
403
404
|
onClick: l,
|
|
404
|
-
children: e.map((d) => /* @__PURE__ */ i(
|
|
405
|
+
children: e.map((d) => /* @__PURE__ */ i(Gt, {
|
|
405
406
|
...d,
|
|
406
407
|
isCurrentUser: !!t && t === d.userId
|
|
407
408
|
}, d.userId))
|
|
@@ -414,7 +415,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
414
415
|
}), Yt = ({
|
|
415
416
|
deepLink: e
|
|
416
417
|
}) => /* @__PURE__ */ i(Jt, {
|
|
417
|
-
children: /* @__PURE__ */ i(
|
|
418
|
+
children: /* @__PURE__ */ i(We, {
|
|
418
419
|
inviteLink: e,
|
|
419
420
|
inviteCardTitle: "It’s More Fun With Friends",
|
|
420
421
|
inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
|
|
@@ -429,7 +430,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
429
430
|
scrollStore: n,
|
|
430
431
|
leaderboardList: o
|
|
431
432
|
}) => {
|
|
432
|
-
const s =
|
|
433
|
+
const s = x(null), {
|
|
433
434
|
data: r,
|
|
434
435
|
hasMore: l,
|
|
435
436
|
loading: d,
|
|
@@ -439,7 +440,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
439
440
|
} = v(e.deepLink.$store), [m, p] = He(s);
|
|
440
441
|
return !r.length && !d ? /* @__PURE__ */ i(Yt, {
|
|
441
442
|
deepLink: c
|
|
442
|
-
}) : /* @__PURE__ */ f(
|
|
443
|
+
}) : /* @__PURE__ */ f(L, {
|
|
443
444
|
children: [/* @__PURE__ */ i(Ht, {
|
|
444
445
|
items: r,
|
|
445
446
|
scrollNode: t,
|
|
@@ -450,7 +451,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
450
451
|
currentUserId: e.currentUserId.get()
|
|
451
452
|
}, a), c && /* @__PURE__ */ i(Zt, {
|
|
452
453
|
ref: s,
|
|
453
|
-
children: /* @__PURE__ */ i(
|
|
454
|
+
children: /* @__PURE__ */ i(Dt, {
|
|
454
455
|
"data-a": "intr",
|
|
455
456
|
onClick: () => m(c),
|
|
456
457
|
title: "Invite Friends",
|
|
@@ -468,7 +469,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
468
469
|
scrollNode: t,
|
|
469
470
|
scrollStore: n
|
|
470
471
|
}) : null, tn = ({ store: e, openQuestion: t }) => {
|
|
471
|
-
const { sdk: n } =
|
|
472
|
+
const { sdk: n } = W(), o = v(e);
|
|
472
473
|
return /* @__PURE__ */ i(Je, { openQuestion: t, questions: o.data, controlVideo: n == null ? void 0 : n.controlVideoPlayer });
|
|
473
474
|
}, nn = ({ userSummary: e }) => {
|
|
474
475
|
var t;
|
|
@@ -482,10 +483,10 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
482
483
|
};
|
|
483
484
|
}, [e]), /* @__PURE__ */ i(ke, { loading: !(n != null && n.summary), ...n == null ? void 0 : n.summary, successRate: (t = n == null ? void 0 : n.percentage) == null ? void 0 : t.correct });
|
|
484
485
|
}, sn = ({ gamification: e, className: t, scrollStore: n, scrollNode: o, appNode: s, style: r, responsiveStore: l }) => {
|
|
485
|
-
const { tabsShown: d } = v(n, { keys: ["tabsShown"] }), a = v(e.friendsTabEnabled), [c, m] = S(
|
|
486
|
+
const { tabsShown: d } = v(n, { keys: ["tabsShown"] }), a = v(e.friendsTabEnabled), [c, m] = S(_.HOME), [, p] = Ue(), { sdkInDesktopView: h, screen: g } = v(l, { keys: ["sdkInDesktopView"] }), b = (I) => {
|
|
486
487
|
p(() => {
|
|
487
|
-
var
|
|
488
|
-
m(I), h === !1 && (((
|
|
488
|
+
var U;
|
|
489
|
+
m(I), h === !1 && (((U = s.current) == null ? void 0 : U.getBoundingClientRect().y) || 0) < 0 && H(s, g.size, { behavior: "instant" });
|
|
489
490
|
});
|
|
490
491
|
};
|
|
491
492
|
y(() => n.subscribe((I) => {
|
|
@@ -495,10 +496,10 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
495
496
|
}
|
|
496
497
|
l.get().sdkInDesktopView ? n.setKey("tabsShown", I.scrollDirection === "backward") : n.setKey("tabsShown", I.scrollDirection === "forward");
|
|
497
498
|
}), [n, l]), y(() => {
|
|
498
|
-
a || m(
|
|
499
|
+
a || m(_.HOME);
|
|
499
500
|
}, [a]);
|
|
500
501
|
let $ = "0px";
|
|
501
|
-
return h ? $ = d ? "0px" : "calc(0px - var(--header-height))" : $ = d ? "var(--header-height)" : "0px", /* @__PURE__ */ f(Be, { className:
|
|
502
|
+
return h ? $ = d ? "0px" : "calc(0px - var(--header-height))" : $ = d ? "var(--header-height)" : "0px", /* @__PURE__ */ f(Be, { className: C(t, "SL-Tabs", "sl-hide-on-modal"), style: r, children: [
|
|
502
503
|
a && /* @__PURE__ */ i(
|
|
503
504
|
Fe,
|
|
504
505
|
{
|
|
@@ -508,13 +509,13 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
508
509
|
children: /* @__PURE__ */ i(St, { activePage: c, toggleActivePage: b })
|
|
509
510
|
}
|
|
510
511
|
),
|
|
511
|
-
c ===
|
|
512
|
+
c === _.HOME && /* @__PURE__ */ f(L, { children: [
|
|
512
513
|
/* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Pe, { children: /* @__PURE__ */ i(nn, { userSummary: e.userSummary }) }) }),
|
|
513
514
|
/* @__PURE__ */ i(Ve, { style: { flex: 1 }, children: /* @__PURE__ */ i(tn, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
|
|
514
515
|
] }),
|
|
515
|
-
c ===
|
|
516
|
+
c === _.LEADERBOARD && /* @__PURE__ */ i(qe, { children: /* @__PURE__ */ i(en, { scrollStore: n, scrollNode: o, gamification: e }) })
|
|
516
517
|
] });
|
|
517
|
-
}, on = () =>
|
|
518
|
+
}, on = () => G, re = /* @__PURE__ */ u(on())({
|
|
518
519
|
name: "OpenedContainer",
|
|
519
520
|
class: "ouvguos",
|
|
520
521
|
propsAsIs: !0
|
|
@@ -528,7 +529,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
528
529
|
}) => {
|
|
529
530
|
const n = e + t;
|
|
530
531
|
return n === 0 ? 0 : Math.round(e / n * 100);
|
|
531
|
-
},
|
|
532
|
+
}, Ps = ({
|
|
532
533
|
gamification: e,
|
|
533
534
|
scrollStore: t,
|
|
534
535
|
className: n,
|
|
@@ -552,7 +553,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
552
553
|
}) => {
|
|
553
554
|
const {
|
|
554
555
|
topNavigation: l
|
|
555
|
-
} =
|
|
556
|
+
} = W(), d = v(e.openedQuestionId), a = v(e.openedQuestion.$store), c = v(e.openedUser || ye(void 0)), {
|
|
556
557
|
sdkInDesktopView: m
|
|
557
558
|
} = v(r, {
|
|
558
559
|
keys: ["sdkInDesktopView"]
|
|
@@ -563,20 +564,20 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
563
564
|
if (!d && !c)
|
|
564
565
|
return null;
|
|
565
566
|
const g = a ? /* @__PURE__ */ i(re, {
|
|
566
|
-
className:
|
|
567
|
+
className: C(o, !l && le),
|
|
567
568
|
hiding: p,
|
|
568
569
|
onAnimationEnd: h,
|
|
569
|
-
children: /* @__PURE__ */ i(
|
|
570
|
+
children: /* @__PURE__ */ i(at, {
|
|
570
571
|
muted: t,
|
|
571
572
|
sdk: n,
|
|
572
573
|
gamification: e
|
|
573
574
|
})
|
|
574
575
|
}) : c ? /* @__PURE__ */ i(re, {
|
|
575
|
-
className:
|
|
576
|
+
className: C(o, !l && le),
|
|
576
577
|
hiding: p,
|
|
577
578
|
onAnimationEnd: h,
|
|
578
579
|
children: /* @__PURE__ */ f(an, {
|
|
579
|
-
children: [/* @__PURE__ */ i(
|
|
580
|
+
children: [/* @__PURE__ */ i(lt, {
|
|
580
581
|
label: "Friend's Rank",
|
|
581
582
|
close: e.closeUser
|
|
582
583
|
}), /* @__PURE__ */ i(Ke, {
|
|
@@ -593,7 +594,7 @@ const Bt = /* @__PURE__ */ u("div")({
|
|
|
593
594
|
children: g
|
|
594
595
|
});
|
|
595
596
|
}, dn = xe(() => import("./gamification-feature.js")), cn = ({ sdk: e, feature: t, className: n, scrollStore: o, appNode: s, scrollNode: r, responsiveStore: l }) => {
|
|
596
|
-
const d =
|
|
597
|
+
const d = w(() => t && t.featureConfig.get().type === N.GAMES ? /* @__PURE__ */ i(It, { className: n, sdk: e, feature: t, children: /* @__PURE__ */ i(
|
|
597
598
|
dn,
|
|
598
599
|
{
|
|
599
600
|
appNode: s,
|
|
@@ -663,9 +664,9 @@ var de;
|
|
|
663
664
|
(function(e) {
|
|
664
665
|
e.Init = "init", e.Ready = "ready", e.Connecting = "connecting", e.Connected = "connected", e.Disconnected = "disconnected", e.Failed = "failed", e.Reconnect = "reconnect", e.Reconnecting = "reconnecting";
|
|
665
666
|
})(de || (de = {}));
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
667
|
+
M("grpc:stream");
|
|
668
|
+
R.Unknown, R.Internal, R.DeadlineExceeded, R.ResourceExhausted, R.FailedPrecondition, R.Unavailable, R.DataLoss;
|
|
669
|
+
M("grpc:retry");
|
|
669
670
|
ee(10, { description: "Number of attempts to retry" }), ee(3e4, { description: "Max delay between retries in milliseconds" });
|
|
670
671
|
var A;
|
|
671
672
|
(function(e) {
|
|
@@ -714,16 +715,15 @@ var he;
|
|
|
714
715
|
(function(e) {
|
|
715
716
|
e.UNKNOWN = "unknown", e.ALREADY_VOTED = "already_voted";
|
|
716
717
|
})(he || (he = {}));
|
|
717
|
-
|
|
718
|
-
|
|
718
|
+
M("deep_link");
|
|
719
|
+
M("bypass");
|
|
719
720
|
new hn();
|
|
720
|
-
|
|
721
|
-
w.FACTOID + "", w.POLL + "", w.TRIVIA + "", w.PREDICTION + "", w.TWEET + "";
|
|
721
|
+
M("video_player");
|
|
722
722
|
var ve;
|
|
723
723
|
(function(e) {
|
|
724
724
|
e.Unset = "unset", e.Required = "required", e.Optional = "optional", e.Completed = "completed", e.Disabled = "disabled", e.Unavailable = "unavailable";
|
|
725
725
|
})(ve || (ve = {}));
|
|
726
|
-
|
|
726
|
+
V.POLL, V.PREDICTION, V.TRIVIA;
|
|
727
727
|
const vn = {
|
|
728
728
|
[N.GAMES]: !0
|
|
729
729
|
}, fn = /* @__PURE__ */ u("div")({
|
|
@@ -756,18 +756,18 @@ const vn = {
|
|
|
756
756
|
name: "ButtonLabel",
|
|
757
757
|
class: "b40tuix",
|
|
758
758
|
propsAsIs: !1
|
|
759
|
-
}), Nn = "s14xk0af", Sn = "ha3mg7c", $n = "h103yr45",
|
|
759
|
+
}), Nn = "s14xk0af", Sn = "ha3mg7c", $n = "h103yr45", F = ({ disabled: e, active: t, onClick: n, label: o, icon: s, id: r }) => /* @__PURE__ */ i(
|
|
760
760
|
bn,
|
|
761
761
|
{
|
|
762
762
|
onClick: n,
|
|
763
763
|
"data-a": "intr",
|
|
764
764
|
disabled: e,
|
|
765
|
-
className:
|
|
765
|
+
className: C(
|
|
766
766
|
t && Nn,
|
|
767
767
|
!t && (r === "channels" || r === "featuredGroups") && Sn,
|
|
768
768
|
!t && r === "leaderboard" && $n
|
|
769
769
|
),
|
|
770
|
-
children: /* @__PURE__ */ f(
|
|
770
|
+
children: /* @__PURE__ */ f(L, { children: [
|
|
771
771
|
s && /* @__PURE__ */ i(kn, { children: s }),
|
|
772
772
|
/* @__PURE__ */ i(yn, { children: o })
|
|
773
773
|
] })
|
|
@@ -792,7 +792,7 @@ const vn = {
|
|
|
792
792
|
name: "CloseIcon",
|
|
793
793
|
class: "clqia8k",
|
|
794
794
|
propsAsIs: !0
|
|
795
|
-
}),
|
|
795
|
+
}), Dn = () => D, Tn = /* @__PURE__ */ u(Dn())({
|
|
796
796
|
name: "DashboardIcon",
|
|
797
797
|
class: "df5w958",
|
|
798
798
|
propsAsIs: !0
|
|
@@ -804,10 +804,10 @@ const vn = {
|
|
|
804
804
|
e.closeFeature();
|
|
805
805
|
};
|
|
806
806
|
return /* @__PURE__ */ f($e, {
|
|
807
|
-
className:
|
|
807
|
+
className: C(t, On),
|
|
808
808
|
children: [/* @__PURE__ */ f(Cn, {
|
|
809
809
|
children: [/* @__PURE__ */ f(En, {
|
|
810
|
-
children: [/* @__PURE__ */ i(
|
|
810
|
+
children: [/* @__PURE__ */ i(Tn, {
|
|
811
811
|
name: "dashboard"
|
|
812
812
|
}), "Dashboard"]
|
|
813
813
|
}), /* @__PURE__ */ i(Rn, {
|
|
@@ -825,10 +825,10 @@ const vn = {
|
|
|
825
825
|
sdk: e,
|
|
826
826
|
className: t
|
|
827
827
|
}, n) => {
|
|
828
|
-
const o = v(e.sdkStore.organizationSettings), s = v(e.sdkStore.streamSettings), r = v(e.getActiveFeature()), l =
|
|
828
|
+
const o = v(e.sdkStore.organizationSettings), s = v(e.sdkStore.streamSettings), r = v(e.getActiveFeature()), l = w(() => {
|
|
829
829
|
const a = (s == null ? void 0 : s.data) || (o == null ? void 0 : o.data);
|
|
830
830
|
return a != null && a.overlays ? a.overlays : [];
|
|
831
|
-
}, [o, s]), d =
|
|
831
|
+
}, [o, s]), d = w(() => [...l.filter(({
|
|
832
832
|
enableSdkButton: a,
|
|
833
833
|
type: c
|
|
834
834
|
}) => c === N.GAMES || a).map((a) => ({
|
|
@@ -846,12 +846,12 @@ const vn = {
|
|
|
846
846
|
return /* @__PURE__ */ f($e, {
|
|
847
847
|
className: t,
|
|
848
848
|
children: [d.length !== 0 && /* @__PURE__ */ i(fe, {
|
|
849
|
-
children: [/* @__PURE__ */ i(
|
|
849
|
+
children: [/* @__PURE__ */ i(F, {
|
|
850
850
|
id: "Channels",
|
|
851
851
|
onClick: () => e.closeFeature(),
|
|
852
852
|
label: "Channels",
|
|
853
853
|
active: r === 0
|
|
854
|
-
}, "Channels"), ...d.map((a) => a.id === N.GAMES ? /* @__PURE__ */ i(
|
|
854
|
+
}, "Channels"), ...d.map((a) => a.id === N.GAMES ? /* @__PURE__ */ i(F, {
|
|
855
855
|
...a,
|
|
856
856
|
active: a.id === r,
|
|
857
857
|
label: "StreamLayer +",
|
|
@@ -860,13 +860,13 @@ const vn = {
|
|
|
860
860
|
name: "icon-btn-feature-groups",
|
|
861
861
|
"data-selected": a.id === r
|
|
862
862
|
})
|
|
863
|
-
}, a.id) : /* @__PURE__ */ i(
|
|
863
|
+
}, a.id) : /* @__PURE__ */ i(F, {
|
|
864
864
|
...a,
|
|
865
865
|
icon: void 0,
|
|
866
866
|
active: a.id === r
|
|
867
867
|
}, a.id))]
|
|
868
868
|
}), !d.length && /* @__PURE__ */ i(fe, {
|
|
869
|
-
children: [/* @__PURE__ */ i(
|
|
869
|
+
children: [/* @__PURE__ */ i(F, {
|
|
870
870
|
id: "empty",
|
|
871
871
|
label: "No Features...",
|
|
872
872
|
active: !1,
|
|
@@ -927,7 +927,7 @@ const vn = {
|
|
|
927
927
|
}, Q = [{
|
|
928
928
|
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",
|
|
929
929
|
tagline: "",
|
|
930
|
-
headline: /* @__PURE__ */ f(
|
|
930
|
+
headline: /* @__PURE__ */ f(L, {
|
|
931
931
|
children: ["Welcome to ", /* @__PURE__ */ i("br", {}), " Live Challenge"]
|
|
932
932
|
})
|
|
933
933
|
}, {
|
|
@@ -936,11 +936,11 @@ const vn = {
|
|
|
936
936
|
}, {
|
|
937
937
|
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_3.png",
|
|
938
938
|
headline: "Win points and play against friends."
|
|
939
|
-
}],
|
|
939
|
+
}], Gn = /* @__PURE__ */ u("div")({
|
|
940
940
|
name: "OnboardingContainer",
|
|
941
941
|
class: "o1xni1kr",
|
|
942
942
|
propsAsIs: !1
|
|
943
|
-
}),
|
|
943
|
+
}), Wn = () => G, Hn = /* @__PURE__ */ u(Wn())({
|
|
944
944
|
name: "OnboardingNotificationContainer",
|
|
945
945
|
class: "o1vnouv7",
|
|
946
946
|
propsAsIs: !0
|
|
@@ -964,21 +964,21 @@ const vn = {
|
|
|
964
964
|
var d, a, c, m, p, h, g;
|
|
965
965
|
const b = v(o.friends ? o.friends.getStore() : ye({
|
|
966
966
|
data: []
|
|
967
|
-
})), [$, I] = S(void 0),
|
|
968
|
-
var
|
|
967
|
+
})), [$, I] = S(void 0), U = w(() => {
|
|
968
|
+
var E, O;
|
|
969
969
|
const J = r.getInviter();
|
|
970
|
-
return J ? (
|
|
970
|
+
return J ? (O = (E = b.data) == null ? void 0 : E.find(({
|
|
971
971
|
slId: we
|
|
972
|
-
}) => we === J)) == null ? void 0 :
|
|
972
|
+
}) => we === J)) == null ? void 0 : O.name : "";
|
|
973
973
|
}, [b.data, r]);
|
|
974
974
|
return y(() => {
|
|
975
|
-
const
|
|
976
|
-
|
|
975
|
+
const E = e.$store.subscribe((O) => {
|
|
976
|
+
O && I(O.data);
|
|
977
977
|
});
|
|
978
978
|
return () => {
|
|
979
|
-
|
|
979
|
+
E();
|
|
980
980
|
};
|
|
981
|
-
}, [e.$store]), /* @__PURE__ */ f(
|
|
981
|
+
}, [e.$store]), /* @__PURE__ */ f(Gn, {
|
|
982
982
|
children: [/* @__PURE__ */ i(Ze, {
|
|
983
983
|
loading: s,
|
|
984
984
|
rules: [{
|
|
@@ -1002,12 +1002,12 @@ const vn = {
|
|
|
1002
1002
|
inviteCardSubtext: (h = t.inviteCard) == null ? void 0 : h.subtext,
|
|
1003
1003
|
inviteCardBtnLabel: (g = t.inviteCard) == null ? void 0 : g.buttonLabel,
|
|
1004
1004
|
onClose: () => {
|
|
1005
|
-
var
|
|
1006
|
-
(
|
|
1005
|
+
var E;
|
|
1006
|
+
(E = n.close) == null || E.call(n);
|
|
1007
1007
|
},
|
|
1008
1008
|
gamification: o,
|
|
1009
1009
|
sdk: r,
|
|
1010
|
-
inviterName:
|
|
1010
|
+
inviterName: U
|
|
1011
1011
|
}), l && /* @__PURE__ */ i(Jn, {})]
|
|
1012
1012
|
});
|
|
1013
1013
|
}, Zn = ({
|
|
@@ -1019,14 +1019,14 @@ const vn = {
|
|
|
1019
1019
|
sdkInDesktopView: r,
|
|
1020
1020
|
responsiveStore: l
|
|
1021
1021
|
}) => {
|
|
1022
|
-
const d =
|
|
1022
|
+
const d = x(null), a = t.data.onboarding, [c, m] = S(a == null ? void 0 : a.instantOpen), p = e.getFeature(N.GAMES), h = w(() => Q == null ? void 0 : Q.map(({
|
|
1023
1023
|
graphicSrc: I
|
|
1024
1024
|
}) => I), []), {
|
|
1025
1025
|
screen: g
|
|
1026
1026
|
} = v(l, {
|
|
1027
1027
|
keys: ["screen"]
|
|
1028
1028
|
});
|
|
1029
|
-
|
|
1029
|
+
De(() => {
|
|
1030
1030
|
var I;
|
|
1031
1031
|
n(((I = d.current) == null ? void 0 : I.getBoundingClientRect().height) || 0);
|
|
1032
1032
|
}, [n]);
|
|
@@ -1048,7 +1048,7 @@ const vn = {
|
|
|
1048
1048
|
renderToNode: s,
|
|
1049
1049
|
sdk: e
|
|
1050
1050
|
})
|
|
1051
|
-
}) : /* @__PURE__ */ f(
|
|
1051
|
+
}) : /* @__PURE__ */ f(L, {
|
|
1052
1052
|
children: [/* @__PURE__ */ i(Ie, {
|
|
1053
1053
|
ref: d,
|
|
1054
1054
|
style: {
|
|
@@ -1079,7 +1079,7 @@ const vn = {
|
|
|
1079
1079
|
})
|
|
1080
1080
|
})]
|
|
1081
1081
|
});
|
|
1082
|
-
}, Xn = () =>
|
|
1082
|
+
}, Xn = () => G, es = /* @__PURE__ */ u(Xn())({
|
|
1083
1083
|
name: "Container",
|
|
1084
1084
|
class: "c8ol1ve",
|
|
1085
1085
|
propsAsIs: !0
|
|
@@ -1100,7 +1100,7 @@ const vn = {
|
|
|
1100
1100
|
class: "p1lha68t",
|
|
1101
1101
|
propsAsIs: !0
|
|
1102
1102
|
}), as = (e) => {
|
|
1103
|
-
const [t, n] = S(0), o =
|
|
1103
|
+
const [t, n] = S(0), o = x(null), s = w(() => new ResizeObserver((d) => {
|
|
1104
1104
|
window.requestAnimationFrame(() => {
|
|
1105
1105
|
var a;
|
|
1106
1106
|
if (Array.isArray(d)) {
|
|
@@ -1139,9 +1139,9 @@ const vn = {
|
|
|
1139
1139
|
keys: ["sdkInDesktopView"]
|
|
1140
1140
|
}), {
|
|
1141
1141
|
sdk: a
|
|
1142
|
-
} =
|
|
1142
|
+
} = W(), [c, m, p] = as(t.id);
|
|
1143
1143
|
let h = m;
|
|
1144
|
-
return s || (h = "auto"), t.type ===
|
|
1144
|
+
return s || (h = "auto"), t.type === z.QUESTION ? /* @__PURE__ */ f(L, {
|
|
1145
1145
|
children: [/* @__PURE__ */ i(ns, {
|
|
1146
1146
|
ref: c,
|
|
1147
1147
|
children: /* @__PURE__ */ i(te, {
|
|
@@ -1162,7 +1162,7 @@ const vn = {
|
|
|
1162
1162
|
})
|
|
1163
1163
|
}), /* @__PURE__ */ i(ss, {}, t.id)]
|
|
1164
1164
|
})]
|
|
1165
|
-
}) : t.type ===
|
|
1165
|
+
}) : t.type === z.QUESTION_RESOLVED && (l = (r = t.data) == null ? void 0 : r.question) != null && l.predictionResult ? /* @__PURE__ */ i(et, {
|
|
1166
1166
|
style: {
|
|
1167
1167
|
height: t.hiding ? 0 : m
|
|
1168
1168
|
},
|
|
@@ -1170,7 +1170,7 @@ const vn = {
|
|
|
1170
1170
|
close: t.close,
|
|
1171
1171
|
hiding: t.hiding,
|
|
1172
1172
|
...t.data.question
|
|
1173
|
-
}) : t.type ===
|
|
1173
|
+
}) : t.type === z.ONBOARDING ? /* @__PURE__ */ i(Zn, {
|
|
1174
1174
|
style: {
|
|
1175
1175
|
height: t.hiding ? 0 : h
|
|
1176
1176
|
},
|
|
@@ -1205,8 +1205,8 @@ const vn = {
|
|
|
1205
1205
|
r.get().sdkInDesktopView ? p < 50 && t(null) : p > -50 && t(null);
|
|
1206
1206
|
}, [p, r, t]);
|
|
1207
1207
|
const h = r.get().sdkInDesktopView ? n : o;
|
|
1208
|
-
return !e || !h.current ? null :
|
|
1209
|
-
title: e.type ===
|
|
1208
|
+
return !e || !h.current ? null : mt(/* @__PURE__ */ i(is, {
|
|
1209
|
+
title: e.type === z.QUESTION_RESOLVED ? "Prediction result" : `New ${((a = ut[(d = e.data) == null ? void 0 : d.questionType]) == null ? void 0 : a.label) || "notification"}`,
|
|
1210
1210
|
"data-a": "intr",
|
|
1211
1211
|
onClick: () => {
|
|
1212
1212
|
var g;
|
|
@@ -1217,7 +1217,7 @@ const vn = {
|
|
|
1217
1217
|
behavior: "smooth"
|
|
1218
1218
|
}), t(null);
|
|
1219
1219
|
},
|
|
1220
|
-
className:
|
|
1220
|
+
className: C(m && ls, "sl-pill-button")
|
|
1221
1221
|
}), h.current);
|
|
1222
1222
|
}, cs = ({
|
|
1223
1223
|
sdk: e,
|
|
@@ -1228,9 +1228,9 @@ const vn = {
|
|
|
1228
1228
|
scrollStore: r,
|
|
1229
1229
|
hasActiveFeature: l
|
|
1230
1230
|
}) => {
|
|
1231
|
-
const [d] = S(e.getNotificationsStore()), a = v(d), [c, m] = S(null), p =
|
|
1231
|
+
const [d] = S(e.getNotificationsStore()), a = v(d), [c, m] = S(null), p = w(() => e.getActiveNotification(), [e, a]);
|
|
1232
1232
|
return y(() => {
|
|
1233
|
-
p &&
|
|
1233
|
+
p && ht.emit("notification", {
|
|
1234
1234
|
action: "rendered",
|
|
1235
1235
|
payload: {
|
|
1236
1236
|
questionId: p.data.questionId,
|
|
@@ -1247,7 +1247,7 @@ const vn = {
|
|
|
1247
1247
|
}));
|
|
1248
1248
|
}, [p]), y(() => {
|
|
1249
1249
|
p || m(null);
|
|
1250
|
-
}, [p]), /* @__PURE__ */ f(
|
|
1250
|
+
}, [p]), /* @__PURE__ */ f(L, {
|
|
1251
1251
|
children: [!c && p && /* @__PURE__ */ i(rs, {
|
|
1252
1252
|
appNode: s,
|
|
1253
1253
|
sdk: e,
|
|
@@ -1319,7 +1319,7 @@ const vn = {
|
|
|
1319
1319
|
muted: t,
|
|
1320
1320
|
topNavigation: n
|
|
1321
1321
|
}) => {
|
|
1322
|
-
const [o, s] = S(!0), r =
|
|
1322
|
+
const [o, s] = S(!0), r = x(null), l = v(e.uiState), d = x(null), [a] = vt(r), [c, m] = gt(r, a), {
|
|
1323
1323
|
sdkReady: p,
|
|
1324
1324
|
activeFeature: h,
|
|
1325
1325
|
isLogged: g
|
|
@@ -1329,13 +1329,13 @@ const vn = {
|
|
|
1329
1329
|
event: "click",
|
|
1330
1330
|
listener: ot
|
|
1331
1331
|
});
|
|
1332
|
-
const $ =
|
|
1332
|
+
const $ = w(() => ({
|
|
1333
1333
|
sdk: e,
|
|
1334
1334
|
topNavigation: n
|
|
1335
1335
|
}), [e, n]);
|
|
1336
1336
|
return y(() => {
|
|
1337
1337
|
import("./gamification-feature.js");
|
|
1338
|
-
}, []), /* @__PURE__ */ i(
|
|
1338
|
+
}, []), /* @__PURE__ */ i(rt.Provider, {
|
|
1339
1339
|
value: $,
|
|
1340
1340
|
children: /* @__PURE__ */ f(Qe, {
|
|
1341
1341
|
ref: (I) => {
|
|
@@ -1343,14 +1343,14 @@ const vn = {
|
|
|
1343
1343
|
},
|
|
1344
1344
|
className: n ? "" : "c10llmat",
|
|
1345
1345
|
children: [b && n && l.app && /* @__PURE__ */ i(Mn, {
|
|
1346
|
-
className:
|
|
1346
|
+
className: C(B, "sl-hide-on-modal"),
|
|
1347
1347
|
sdk: e,
|
|
1348
1348
|
ref: d
|
|
1349
1349
|
}), b && !n && !!h && l.app && /* @__PURE__ */ i(_n, {
|
|
1350
|
-
className:
|
|
1350
|
+
className: C(B, "sl-hide-on-modal"),
|
|
1351
1351
|
sdk: e,
|
|
1352
1352
|
ref: d
|
|
1353
|
-
}), /* @__PURE__ */ f(
|
|
1353
|
+
}), /* @__PURE__ */ f(Ge, {
|
|
1354
1354
|
className: "sl-hide-on-modal",
|
|
1355
1355
|
ref: c,
|
|
1356
1356
|
"data-nav": (!!h && b).toString(),
|
|
@@ -1367,13 +1367,13 @@ const vn = {
|
|
|
1367
1367
|
responsiveStore: a,
|
|
1368
1368
|
scrollNode: c,
|
|
1369
1369
|
appNode: r,
|
|
1370
|
-
className:
|
|
1370
|
+
className: B,
|
|
1371
1371
|
sdk: e
|
|
1372
1372
|
}), b && o && /* @__PURE__ */ i(ms, {
|
|
1373
1373
|
muted: t,
|
|
1374
1374
|
responsiveStore: a,
|
|
1375
1375
|
appNode: r,
|
|
1376
|
-
className:
|
|
1376
|
+
className: B,
|
|
1377
1377
|
sdk: e
|
|
1378
1378
|
})]
|
|
1379
1379
|
}), b && !g && o && l.app && /* @__PURE__ */ i("div", {
|
|
@@ -1388,13 +1388,13 @@ const vn = {
|
|
|
1388
1388
|
})]
|
|
1389
1389
|
})
|
|
1390
1390
|
});
|
|
1391
|
-
},
|
|
1392
|
-
const { sdk: r, status: l } = Y(Z), d =
|
|
1391
|
+
}, Vs = ({ event: e, topNavigation: t, theme: n, muted: o, withSidebarNotification: s = !0 }) => {
|
|
1392
|
+
const { sdk: r, status: l } = Y(Z), d = Te(), a = Oe(), { event: c } = Y(Z);
|
|
1393
1393
|
if (l === X.UNSET)
|
|
1394
1394
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
1395
1395
|
return l === X.CONNECTED ? /* @__PURE__ */ i("div", { className: "StreamLayerSDK", children: "wait" }) : r === null ? /* @__PURE__ */ i("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !d.app && !d.appNotification && !d.appSidebar || !d.app && !d.appSidebar && d.appNotification && !s ? null : /* @__PURE__ */ i("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ i(Me, { customTheme: n ?? a.theme, themeMode: a.themeMode, children: /* @__PURE__ */ i(hs, { sdk: r, muted: o, event: (c == null ? void 0 : c.current) || e, topNavigation: t }) }) });
|
|
1396
1396
|
};
|
|
1397
1397
|
export {
|
|
1398
|
-
|
|
1399
|
-
|
|
1398
|
+
Ps as B,
|
|
1399
|
+
Vs as b
|
|
1400
1400
|
};
|