@streamlayer/react 1.23.2 → 1.24.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 +0 -1
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +203 -28
- 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 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/cjs/index-ByUNFvMk.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -3
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -3
- package/lib/cjs/index14.js +4 -1
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +5 -3
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +5 -3
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +7 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +8 -1
- 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 +14 -9
- package/lib/cjs/sl-types.js +1 -1
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/theme.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +17 -3
- package/lib/cjs/utils.js +47 -1
- package/lib/classic/app/masters.d.ts +0 -1
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +203 -28
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +5 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/classic/cjs/index-ByUNFvMk.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 +4 -3
- package/lib/classic/cjs/index2.js +5 -3
- 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 -1
- package/lib/classic/cjs/index7.js +7 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -3
- 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 +14 -9
- package/lib/classic/cjs/sl-types.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -3
- package/lib/classic/cjs/utils.js +47 -1
- package/lib/classic/es/Question.js +258 -275
- package/lib/classic/es/advertisement.js +22128 -38694
- package/lib/classic/es/analytics.js +55 -57
- package/lib/classic/es/auth.js +8 -14
- package/lib/classic/es/bet-pack.js +2413 -2455
- package/lib/classic/es/feature.js +46 -95
- package/lib/classic/es/gamification-feature.js +2 -2
- package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
- package/lib/classic/es/index-ByUNFvMk.js +3775 -0
- package/lib/classic/es/index.js +13 -16
- package/lib/classic/es/index10.js +2587 -83
- package/lib/classic/es/index11.js +305 -3087
- package/lib/classic/es/index12.js +121 -124
- package/lib/classic/es/index13.js +559 -589
- package/lib/classic/es/index2.js +1755 -2114
- package/lib/classic/es/index3.js +13 -13
- package/lib/classic/es/index4.js +4 -283
- package/lib/classic/es/index5.js +5 -5
- package/lib/classic/es/index6.js +285 -10
- package/lib/classic/es/index7.js +179 -6
- package/lib/classic/es/index8.js +5 -10
- package/lib/classic/es/index9.js +8 -318
- package/lib/classic/es/insight.js +54 -61
- package/lib/classic/es/notification.js +5 -5
- package/lib/classic/es/notification2.js +730 -787
- package/lib/classic/es/pause-ad.js +168 -191
- package/lib/classic/es/points.js +47 -55
- package/lib/classic/es/polymarket.js +4058 -4289
- package/lib/classic/es/sl-types.js +128 -298
- package/lib/classic/es/useStreamLayerApp.js +2 -2
- package/lib/classic/es/useStreamLayerApp2.js +9090 -11121
- package/lib/classic/es/utils.js +28 -28
- package/lib/classic/index.d.ts +0 -1
- package/lib/classic/source.css +110 -0
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +69 -3
- package/lib/dist/es/gamification-feature.js +2 -2
- package/lib/dist/es/index-ByUNFvMk.js +3775 -0
- package/lib/dist/es/index.js +7 -10
- package/lib/dist/es/masters.js +16944 -19645
- package/lib/dist/index.d.ts +7 -17
- package/lib/dist/source.css +64 -0
- package/lib/es/Question.js +101 -105
- package/lib/es/advertisement.js +22128 -38694
- package/lib/es/analytics.js +55 -57
- package/lib/es/auth.js +8 -14
- package/lib/es/bet-pack.js +18 -29
- package/lib/es/feature.js +46 -95
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/gamification-feature2.js +2 -2
- package/lib/es/hooks-n9ax4LRT.js +97 -0
- package/lib/es/index-ByUNFvMk.js +3775 -0
- package/lib/es/index.js +13 -17
- package/lib/es/index10.js +8 -274
- package/lib/es/index11.js +172 -837
- package/lib/es/index12.js +2587 -183
- package/lib/es/index13.js +258 -314
- package/lib/es/index14.js +813 -81
- package/lib/es/index15.js +305 -3087
- package/lib/es/index16.js +803 -1005
- package/lib/es/index2.js +980 -1133
- package/lib/es/index3.js +4 -3
- package/lib/es/index4.js +2401 -2431
- package/lib/es/index5.js +13 -13
- package/lib/es/index6.js +5 -285
- package/lib/es/index7.js +7 -10
- package/lib/es/index8.js +283 -5
- package/lib/es/index9.js +180 -10
- package/lib/es/insight.js +54 -61
- package/lib/es/masters.js +5 -7
- package/lib/es/masters2.js +538 -708
- package/lib/es/notification.js +663 -719
- package/lib/es/pause-ad.js +168 -191
- package/lib/es/points.js +48 -56
- package/lib/es/polymarket.js +4058 -4289
- package/lib/es/sl-types.js +128 -317
- package/lib/es/storage.js +74 -75
- package/lib/es/theme.js +3 -190
- package/lib/es/useStreamLayerApp.js +2 -2
- package/lib/es/useStreamLayerApp2.js +9090 -11121
- package/lib/es/utils.js +28 -28
- package/lib/index.d.ts +0 -1
- package/lib/source.css +120 -0
- package/lib/style.css +1 -1
- package/package.json +23 -26
- package/lib/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/cjs/index-eShKGO10.js +0 -1
- package/lib/cjs/style.css +0 -1
- package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/classic/cjs/index-eShKGO10.js +0 -1
- package/lib/classic/cjs/style.css +0 -1
- package/lib/classic/es/hooks-WfHlJH12.js +0 -98
- package/lib/classic/es/index-eShKGO10.js +0 -3757
- package/lib/classic/style.css +0 -1
- package/lib/dist/cjs/index-eShKGO10.js +0 -1
- package/lib/dist/es/index-eShKGO10.js +0 -3757
- package/lib/dist/style.css +0 -1
- package/lib/es/hooks-WfHlJH12.js +0 -98
- package/lib/es/index-eShKGO10.js +0 -3757
package/lib/es/notification.js
CHANGED
|
@@ -1,1079 +1,1023 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { h as
|
|
3
|
-
import { useState, useRef, useEffect
|
|
4
|
-
import { s as
|
|
5
|
-
import { e as
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { h as us } from "./index7.js";
|
|
3
|
+
import { useState as I, useRef as Q, useEffect as $, useCallback as As, useMemo as fs } from "react";
|
|
4
|
+
import { s as e, c as hs, u as Is, N as M } from "./sl-types.js";
|
|
5
|
+
import { e as $s } from "./index3.js";
|
|
6
6
|
import "./feature.js";
|
|
7
|
-
import { x as
|
|
8
|
-
import { D as
|
|
9
|
-
import { B as
|
|
10
|
-
import { d
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
const
|
|
7
|
+
import { x as W } from "./storage.js";
|
|
8
|
+
import { D as vs, j as gs, e as K, o as ws } from "./index11.js";
|
|
9
|
+
import { B as A } from "./index8.js";
|
|
10
|
+
import { d, Q as f, a as G, N as x, S as bs, A as R } from "./useStreamLayerApp2.js";
|
|
11
|
+
import { b as S } from "./index9.js";
|
|
12
|
+
import { F as Ts, y as ys } from "./index15.js";
|
|
13
|
+
import { p as Cs } from "./index5.js";
|
|
14
|
+
import { Y as Ns, _ as ks, q as qs } from "./hooks-n9ax4LRT.js";
|
|
15
|
+
const w = /* @__PURE__ */ e("div")({
|
|
16
16
|
name: "Media",
|
|
17
17
|
class: "m1bcvojl",
|
|
18
|
-
propsAsIs:
|
|
19
|
-
}),
|
|
18
|
+
propsAsIs: !1
|
|
19
|
+
}), xs = () => w, Es = /* @__PURE__ */ e(xs())({
|
|
20
20
|
name: "MediaImgBottom",
|
|
21
21
|
class: "m58gin0",
|
|
22
|
-
propsAsIs:
|
|
23
|
-
}),
|
|
22
|
+
propsAsIs: !0
|
|
23
|
+
}), Ss = () => w, q = /* @__PURE__ */ e(Ss())({
|
|
24
24
|
name: "MediaImgSolid",
|
|
25
25
|
class: "m1atm8do",
|
|
26
|
-
propsAsIs:
|
|
27
|
-
}),
|
|
26
|
+
propsAsIs: !0
|
|
27
|
+
}), Ds = () => w, Ls = /* @__PURE__ */ e(Ds())({
|
|
28
28
|
name: "MediaImgRounded",
|
|
29
29
|
class: "myx3xoi",
|
|
30
|
-
propsAsIs:
|
|
31
|
-
}),
|
|
30
|
+
propsAsIs: !0
|
|
31
|
+
}), Ms = () => w, Rs = /* @__PURE__ */ e(Ms())({
|
|
32
32
|
name: "MediaImgCentered",
|
|
33
33
|
class: "m1bwv0gx",
|
|
34
|
-
propsAsIs:
|
|
35
|
-
}),
|
|
34
|
+
propsAsIs: !0
|
|
35
|
+
}), js = () => w, Os = /* @__PURE__ */ e(js())({
|
|
36
36
|
name: "MediaImgInsight",
|
|
37
37
|
class: "mntjanp",
|
|
38
|
-
propsAsIs:
|
|
39
|
-
}),
|
|
38
|
+
propsAsIs: !0
|
|
39
|
+
}), Bs = /* @__PURE__ */ e("div")({
|
|
40
40
|
name: "VideoIcon",
|
|
41
41
|
class: "v1kofb47",
|
|
42
|
-
propsAsIs:
|
|
43
|
-
}),
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
},
|
|
51
|
-
src:
|
|
52
|
-
imageMode:
|
|
53
|
-
withVideo:
|
|
54
|
-
fromInsight:
|
|
42
|
+
propsAsIs: !1
|
|
43
|
+
}), Ps = {
|
|
44
|
+
[d.UNSET]: q,
|
|
45
|
+
[d.NONE]: q,
|
|
46
|
+
[d.ROUNDED]: Ls,
|
|
47
|
+
[d.CENTERED]: Rs,
|
|
48
|
+
[d.TRANSPARENT]: Es,
|
|
49
|
+
[d.SOLID]: q
|
|
50
|
+
}, j = ({
|
|
51
|
+
src: n,
|
|
52
|
+
imageMode: o = d.UNSET,
|
|
53
|
+
withVideo: i,
|
|
54
|
+
fromInsight: a
|
|
55
55
|
}) => {
|
|
56
|
-
if (
|
|
56
|
+
if (o === d.NONE)
|
|
57
57
|
return null;
|
|
58
|
-
const
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
children: [/* @__PURE__ */
|
|
61
|
-
src:
|
|
58
|
+
const r = a ? Os : Ps[o];
|
|
59
|
+
return /* @__PURE__ */ l(r, {
|
|
60
|
+
children: [/* @__PURE__ */ s("img", {
|
|
61
|
+
src: n,
|
|
62
62
|
alt: ""
|
|
63
|
-
}),
|
|
64
|
-
children: /* @__PURE__ */
|
|
63
|
+
}), i && /* @__PURE__ */ s(Bs, {
|
|
64
|
+
children: /* @__PURE__ */ s(A, {
|
|
65
65
|
name: "icon-play"
|
|
66
66
|
})
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
|
-
}
|
|
70
|
-
const i$8 = /* @__PURE__ */ styled_default("div")({
|
|
69
|
+
}, zs = /* @__PURE__ */ e("div")({
|
|
71
70
|
name: "NotificationContent",
|
|
72
71
|
class: "nuraq9m",
|
|
73
|
-
propsAsIs:
|
|
74
|
-
}),
|
|
72
|
+
propsAsIs: !1
|
|
73
|
+
}), Us = /* @__PURE__ */ e("div")({
|
|
75
74
|
name: "NotificationContainer",
|
|
76
75
|
class: "ns1nzpg",
|
|
77
|
-
propsAsIs:
|
|
78
|
-
}),
|
|
76
|
+
propsAsIs: !1
|
|
77
|
+
}), X = /* @__PURE__ */ e("div")({
|
|
79
78
|
name: "Body",
|
|
80
79
|
class: "b1j59nzs",
|
|
81
|
-
propsAsIs:
|
|
82
|
-
}),
|
|
80
|
+
propsAsIs: !1
|
|
81
|
+
}), Fs = /* @__PURE__ */ e("div")({
|
|
83
82
|
name: "Title",
|
|
84
83
|
class: "t9vmnpp",
|
|
85
|
-
propsAsIs:
|
|
86
|
-
}),
|
|
84
|
+
propsAsIs: !1
|
|
85
|
+
}), Vs = /* @__PURE__ */ e("button")({
|
|
87
86
|
name: "Button",
|
|
88
87
|
class: "b14ivj5k",
|
|
89
|
-
propsAsIs:
|
|
90
|
-
}),
|
|
88
|
+
propsAsIs: !1
|
|
89
|
+
}), Ys = () => A, _s = /* @__PURE__ */ e(Ys())({
|
|
91
90
|
name: "StyledChevronRight",
|
|
92
91
|
class: "s1atci8n",
|
|
93
|
-
propsAsIs:
|
|
94
|
-
})
|
|
95
|
-
const a$a = /* @__PURE__ */ styled_default("div")({
|
|
92
|
+
propsAsIs: !0
|
|
93
|
+
}), Qs = /* @__PURE__ */ e("div")({
|
|
96
94
|
name: "QuoteWrap",
|
|
97
95
|
class: "q4w8jgs",
|
|
98
|
-
propsAsIs:
|
|
99
|
-
}),
|
|
96
|
+
propsAsIs: !1
|
|
97
|
+
}), Ws = /* @__PURE__ */ e("blockquote")({
|
|
100
98
|
name: "Quote",
|
|
101
99
|
class: "qaa0kez",
|
|
102
|
-
propsAsIs:
|
|
103
|
-
}),
|
|
100
|
+
propsAsIs: !1
|
|
101
|
+
}), Ks = /* @__PURE__ */ e("div")({
|
|
104
102
|
name: "Body",
|
|
105
103
|
class: "b1wvd52w",
|
|
106
|
-
propsAsIs:
|
|
107
|
-
}),
|
|
104
|
+
propsAsIs: !1
|
|
105
|
+
}), Gs = /* @__PURE__ */ e("div")({
|
|
108
106
|
name: "Container",
|
|
109
107
|
class: "ccvukea",
|
|
110
|
-
propsAsIs:
|
|
111
|
-
})
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
] });
|
|
128
|
-
};
|
|
129
|
-
const F$1 = ({ title: t2, questionType: n2, questionTypeData: r2 }) => /* @__PURE__ */ jsxs(r$8, { children: [
|
|
130
|
-
/* @__PURE__ */ jsx(
|
|
131
|
-
x$4,
|
|
108
|
+
propsAsIs: !1
|
|
109
|
+
}), Xs = ({ image: n, tweet: o, account: i, accountVerified: a, body: r, title: t }) => /* @__PURE__ */ l(Gs, { children: [
|
|
110
|
+
t && /* @__PURE__ */ s(Qs, { children: /* @__PURE__ */ s(Ws, { children: t }) }),
|
|
111
|
+
/* @__PURE__ */ s(
|
|
112
|
+
vs,
|
|
113
|
+
{
|
|
114
|
+
image: n,
|
|
115
|
+
name: o?.meta?.accountName,
|
|
116
|
+
userName: i,
|
|
117
|
+
verified: a,
|
|
118
|
+
createdTweet: o?.date
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ s(Ks, { children: gs(r) })
|
|
122
|
+
] }), Zs = ({ title: n, questionType: o, questionTypeData: i }) => /* @__PURE__ */ l(X, { children: [
|
|
123
|
+
/* @__PURE__ */ s(
|
|
124
|
+
W,
|
|
132
125
|
{
|
|
133
|
-
questionTypeData:
|
|
134
|
-
questionType:
|
|
135
|
-
questionStatus:
|
|
126
|
+
questionTypeData: i,
|
|
127
|
+
questionType: o,
|
|
128
|
+
questionStatus: G.UNSET
|
|
136
129
|
}
|
|
137
130
|
),
|
|
138
|
-
|
|
139
|
-
] }),
|
|
140
|
-
} }) }) : null,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
if (!d2 || !r2 || !r2.notification)
|
|
131
|
+
n && /* @__PURE__ */ s(Fs, { children: n })
|
|
132
|
+
] }), Hs = ({ tweet: n }) => n ? /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(Xs, { ...n, controlVideo: () => {
|
|
133
|
+
} }) }) : null, Js = ({ action: n, questionType: o, inApp: i, insight: a, tweet: r }) => {
|
|
134
|
+
const t = K[o], p = ws[o];
|
|
135
|
+
if (!t || !i || !i.notification)
|
|
144
136
|
return null;
|
|
145
|
-
const { title:
|
|
146
|
-
let
|
|
147
|
-
|
|
148
|
-
const
|
|
149
|
-
return /* @__PURE__ */
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
137
|
+
const { title: c, image: m, imageMode: u } = i.notification;
|
|
138
|
+
let h = m;
|
|
139
|
+
o === f.TWEET && r?.tweetMedia && (h = r.tweetMedia.image), u === d.NONE && (h = "");
|
|
140
|
+
const g = i.useMediaFromContent && a?.image, b = o === f.TWEET && r?.tweetMedia?.video || o === f.FACTOID && a?.video;
|
|
141
|
+
return /* @__PURE__ */ s(Us, { "data-a": "intr", className: "SL_InApp", onClick: n, children: /* @__PURE__ */ l(zs, { style: h ? {} : { paddingLeft: "1.5rem" }, children: [
|
|
142
|
+
h && !g && /* @__PURE__ */ s(j, { src: h, imageMode: u, withVideo: !!b }),
|
|
143
|
+
g && /* @__PURE__ */ s(j, { src: g, fromInsight: !0, withVideo: !!b }),
|
|
144
|
+
o === f.TWEET ? /* @__PURE__ */ s(Hs, { tweet: r }) : /* @__PURE__ */ s(Zs, { questionTypeData: t, questionType: o, title: c }),
|
|
145
|
+
/* @__PURE__ */ s(Vs, { name: "inapp-button", children: p || "Open" }),
|
|
146
|
+
/* @__PURE__ */ s(_s, { name: "chevronRight" })
|
|
155
147
|
] }) });
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}) => n2 || "transparent", m$3 = /* @__PURE__ */ styled_default("div")({
|
|
148
|
+
}, se = () => ({
|
|
149
|
+
color: n
|
|
150
|
+
}) => n || "transparent", O = /* @__PURE__ */ e("div")({
|
|
160
151
|
name: "MediaComponentWrap",
|
|
161
152
|
class: "mek728j",
|
|
162
|
-
propsAsIs:
|
|
153
|
+
propsAsIs: !1,
|
|
163
154
|
vars: {
|
|
164
|
-
"mek728j-0": [
|
|
155
|
+
"mek728j-0": [se()]
|
|
165
156
|
}
|
|
166
|
-
}),
|
|
157
|
+
}), v = /* @__PURE__ */ e("div")({
|
|
167
158
|
name: "Media",
|
|
168
159
|
class: "m461t56",
|
|
169
|
-
propsAsIs:
|
|
170
|
-
}),
|
|
160
|
+
propsAsIs: !1
|
|
161
|
+
}), ee = () => v, ne = /* @__PURE__ */ e(ee())({
|
|
171
162
|
name: "MediaImgBottom",
|
|
172
163
|
class: "m22bh04",
|
|
173
|
-
propsAsIs:
|
|
174
|
-
}),
|
|
164
|
+
propsAsIs: !0
|
|
165
|
+
}), oe = () => v, te = /* @__PURE__ */ e(oe())({
|
|
175
166
|
name: "MediaVideo",
|
|
176
167
|
class: "m17u1e34",
|
|
177
|
-
propsAsIs:
|
|
178
|
-
}),
|
|
168
|
+
propsAsIs: !0
|
|
169
|
+
}), ae = () => v, ie = /* @__PURE__ */ e(ae())({
|
|
179
170
|
name: "MediaImgContentMedia",
|
|
180
171
|
class: "m4j3eds",
|
|
181
|
-
propsAsIs:
|
|
182
|
-
}),
|
|
172
|
+
propsAsIs: !0
|
|
173
|
+
}), re = () => v, ce = /* @__PURE__ */ e(re())({
|
|
183
174
|
name: "MediaImgSolid",
|
|
184
175
|
class: "m1lp3swr",
|
|
185
|
-
propsAsIs:
|
|
186
|
-
}),
|
|
176
|
+
propsAsIs: !0
|
|
177
|
+
}), le = () => v, pe = /* @__PURE__ */ e(le())({
|
|
187
178
|
name: "MediaImgRounded",
|
|
188
179
|
class: "mc7lij",
|
|
189
|
-
propsAsIs:
|
|
190
|
-
}),
|
|
180
|
+
propsAsIs: !0
|
|
181
|
+
}), de = () => v, me = /* @__PURE__ */ e(de())({
|
|
191
182
|
name: "MediaImgCentered",
|
|
192
183
|
class: "mwwaw7o",
|
|
193
|
-
propsAsIs:
|
|
194
|
-
}),
|
|
184
|
+
propsAsIs: !0
|
|
185
|
+
}), ue = () => v, E = /* @__PURE__ */ e(ue())({
|
|
195
186
|
name: "MediaNone",
|
|
196
187
|
class: "mqfzyyr",
|
|
197
|
-
propsAsIs:
|
|
198
|
-
}),
|
|
199
|
-
[
|
|
200
|
-
[
|
|
201
|
-
[
|
|
202
|
-
[
|
|
203
|
-
[
|
|
204
|
-
[
|
|
205
|
-
},
|
|
206
|
-
src:
|
|
207
|
-
imageMode:
|
|
208
|
-
withVideo:
|
|
209
|
-
color:
|
|
210
|
-
useContentMedia:
|
|
211
|
-
thumbnailUrl:
|
|
188
|
+
propsAsIs: !0
|
|
189
|
+
}), Ae = "v170mtgf", fe = {
|
|
190
|
+
[d.UNSET]: E,
|
|
191
|
+
[d.NONE]: E,
|
|
192
|
+
[d.ROUNDED]: pe,
|
|
193
|
+
[d.CENTERED]: me,
|
|
194
|
+
[d.TRANSPARENT]: ne,
|
|
195
|
+
[d.SOLID]: ce
|
|
196
|
+
}, B = ({
|
|
197
|
+
src: n,
|
|
198
|
+
imageMode: o = d.UNSET,
|
|
199
|
+
withVideo: i,
|
|
200
|
+
color: a,
|
|
201
|
+
useContentMedia: r,
|
|
202
|
+
thumbnailUrl: t
|
|
212
203
|
}) => {
|
|
213
|
-
if (!
|
|
214
|
-
return /* @__PURE__ */
|
|
215
|
-
color:
|
|
216
|
-
children: /* @__PURE__ */
|
|
204
|
+
if (!n)
|
|
205
|
+
return /* @__PURE__ */ s(O, {
|
|
206
|
+
color: a,
|
|
207
|
+
children: /* @__PURE__ */ s(E, {})
|
|
217
208
|
});
|
|
218
|
-
const
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
color:
|
|
221
|
-
children:
|
|
222
|
-
children: /* @__PURE__ */
|
|
223
|
-
className:
|
|
224
|
-
source:
|
|
225
|
-
poster:
|
|
209
|
+
const p = r === x.ENABLED ? ie : fe[o];
|
|
210
|
+
return /* @__PURE__ */ s(O, {
|
|
211
|
+
color: a,
|
|
212
|
+
children: i ? /* @__PURE__ */ s(te, {
|
|
213
|
+
children: /* @__PURE__ */ s(Ts, {
|
|
214
|
+
className: Ae,
|
|
215
|
+
source: n,
|
|
216
|
+
poster: t || ""
|
|
226
217
|
})
|
|
227
|
-
}) : /* @__PURE__ */
|
|
228
|
-
children: /* @__PURE__ */
|
|
229
|
-
src:
|
|
218
|
+
}) : /* @__PURE__ */ s(p, {
|
|
219
|
+
children: /* @__PURE__ */ s("img", {
|
|
220
|
+
src: n,
|
|
230
221
|
alt: ""
|
|
231
222
|
})
|
|
232
223
|
})
|
|
233
224
|
});
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}) => s2 ? "0px" : "1rem", _ = /* @__PURE__ */ styled_default("div")({
|
|
225
|
+
}, he = () => ({
|
|
226
|
+
withoutPadding: n
|
|
227
|
+
}) => n ? "0px" : "1rem", Z = /* @__PURE__ */ e("div")({
|
|
238
228
|
name: "NotificationContent",
|
|
239
229
|
class: "n1p3bk1c",
|
|
240
|
-
propsAsIs:
|
|
230
|
+
propsAsIs: !1,
|
|
241
231
|
vars: {
|
|
242
|
-
"n1p3bk1c-0": [
|
|
232
|
+
"n1p3bk1c-0": [he()]
|
|
243
233
|
}
|
|
244
|
-
}),
|
|
234
|
+
}), Ie = /* @__PURE__ */ e("div")({
|
|
245
235
|
name: "MainContent",
|
|
246
236
|
class: "m1g211mu",
|
|
247
|
-
propsAsIs:
|
|
248
|
-
}),
|
|
237
|
+
propsAsIs: !1
|
|
238
|
+
}), $e = () => A, ve = /* @__PURE__ */ e($e())({
|
|
249
239
|
name: "StyledChevronRight",
|
|
250
240
|
class: "sx1hq4c",
|
|
251
|
-
propsAsIs:
|
|
252
|
-
}),
|
|
241
|
+
propsAsIs: !0
|
|
242
|
+
}), H = /* @__PURE__ */ e("div")({
|
|
253
243
|
name: "NotificationContainer",
|
|
254
244
|
class: "n1fcriet",
|
|
255
|
-
propsAsIs:
|
|
256
|
-
}),
|
|
257
|
-
questionType:
|
|
258
|
-
}) =>
|
|
259
|
-
webos:
|
|
260
|
-
}) =>
|
|
261
|
-
imageMode:
|
|
262
|
-
webos:
|
|
263
|
-
}) =>
|
|
245
|
+
propsAsIs: !1
|
|
246
|
+
}), ge = () => ({
|
|
247
|
+
questionType: n
|
|
248
|
+
}) => n === f.FACTOID ? "7.3rem" : "4.5rem", we = () => ({
|
|
249
|
+
webos: n
|
|
250
|
+
}) => n ? "11px 0px 8px 0px" : "11px 0px", be = () => ({
|
|
251
|
+
imageMode: n,
|
|
252
|
+
webos: o
|
|
253
|
+
}) => o ? "330px" : n === d.SOLID ? "310px" : n === d.CENTERED || n === d.ROUNDED || n === d.TRANSPARENT ? "370px" : "430px", Te = /* @__PURE__ */ e("div")({
|
|
264
254
|
name: "Body",
|
|
265
255
|
class: "b1byyovs",
|
|
266
|
-
propsAsIs:
|
|
256
|
+
propsAsIs: !1,
|
|
267
257
|
vars: {
|
|
268
|
-
"b1byyovs-0": [
|
|
269
|
-
"b1byyovs-1": [
|
|
270
|
-
"b1byyovs-2": [
|
|
258
|
+
"b1byyovs-0": [ge()],
|
|
259
|
+
"b1byyovs-1": [we()],
|
|
260
|
+
"b1byyovs-2": [be()]
|
|
271
261
|
}
|
|
272
|
-
}),
|
|
273
|
-
webos:
|
|
274
|
-
}) =>
|
|
275
|
-
webos:
|
|
276
|
-
}) =>
|
|
277
|
-
webos:
|
|
278
|
-
}) =>
|
|
279
|
-
webos:
|
|
280
|
-
}) =>
|
|
262
|
+
}), ye = () => ({
|
|
263
|
+
webos: n
|
|
264
|
+
}) => n ? "0.85rem" : "1.033rem", Ce = () => ({
|
|
265
|
+
webos: n
|
|
266
|
+
}) => n ? "0.95rem" : "1.25rem", Ne = () => ({
|
|
267
|
+
webos: n
|
|
268
|
+
}) => n ? "4.7rem" : "2.25rem", ke = () => ({
|
|
269
|
+
webos: n
|
|
270
|
+
}) => n ? "pre-wrap" : "nowrap", qe = /* @__PURE__ */ e("div")({
|
|
281
271
|
name: "Title",
|
|
282
272
|
class: "t1y5k5id",
|
|
283
|
-
propsAsIs:
|
|
273
|
+
propsAsIs: !1,
|
|
284
274
|
vars: {
|
|
285
|
-
"t1y5k5id-0": [
|
|
286
|
-
"t1y5k5id-1": [
|
|
287
|
-
"t1y5k5id-2": [
|
|
288
|
-
"t1y5k5id-3": [
|
|
275
|
+
"t1y5k5id-0": [ye()],
|
|
276
|
+
"t1y5k5id-1": [Ce()],
|
|
277
|
+
"t1y5k5id-2": [Ne()],
|
|
278
|
+
"t1y5k5id-3": [ke()]
|
|
289
279
|
}
|
|
290
|
-
}),
|
|
280
|
+
}), xe = /* @__PURE__ */ e("div")({
|
|
291
281
|
name: "Description",
|
|
292
282
|
class: "dw9eb7l",
|
|
293
|
-
propsAsIs:
|
|
294
|
-
}),
|
|
283
|
+
propsAsIs: !1
|
|
284
|
+
}), Ee = /* @__PURE__ */ e("div")({
|
|
295
285
|
name: "LogoImgContainer",
|
|
296
286
|
class: "ldu8wgy",
|
|
297
|
-
propsAsIs:
|
|
298
|
-
}),
|
|
287
|
+
propsAsIs: !1
|
|
288
|
+
}), J = /* @__PURE__ */ e("img")({
|
|
299
289
|
name: "LogoImg",
|
|
300
290
|
class: "ln4a3eh",
|
|
301
|
-
propsAsIs:
|
|
302
|
-
}),
|
|
291
|
+
propsAsIs: !1
|
|
292
|
+
}), Se = () => H, De = /* @__PURE__ */ e(Se())({
|
|
303
293
|
name: "NotificationInterstitialContainer",
|
|
304
294
|
class: "no2k63v",
|
|
305
|
-
propsAsIs:
|
|
306
|
-
}),
|
|
295
|
+
propsAsIs: !0
|
|
296
|
+
}), Le = /* @__PURE__ */ e("div")({
|
|
307
297
|
name: "TVButtons",
|
|
308
298
|
class: "th9nn6a",
|
|
309
|
-
propsAsIs:
|
|
310
|
-
}),
|
|
299
|
+
propsAsIs: !1
|
|
300
|
+
}), ss = /* @__PURE__ */ e("button")({
|
|
311
301
|
name: "TVButton",
|
|
312
302
|
class: "t1eee77p",
|
|
313
|
-
propsAsIs:
|
|
314
|
-
}),
|
|
303
|
+
propsAsIs: !1
|
|
304
|
+
}), Me = () => ss, Re = /* @__PURE__ */ e(Me())({
|
|
315
305
|
name: "DismissButton",
|
|
316
306
|
class: "ds000hw",
|
|
317
|
-
propsAsIs:
|
|
318
|
-
}),
|
|
307
|
+
propsAsIs: !0
|
|
308
|
+
}), je = () => ss, Oe = /* @__PURE__ */ e(je())({
|
|
319
309
|
name: "AnswerButton",
|
|
320
310
|
class: "a1nz9hoe",
|
|
321
|
-
propsAsIs:
|
|
322
|
-
})
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
x$4,
|
|
311
|
+
propsAsIs: !0
|
|
312
|
+
}), Be = ({ title: n, questionType: o, questionTypeData: i, description: a, imageMode: r, webos: t }) => /* @__PURE__ */ l(Te, { imageMode: r, questionType: o, webos: t, children: [
|
|
313
|
+
/* @__PURE__ */ s(
|
|
314
|
+
W,
|
|
326
315
|
{
|
|
327
|
-
questionTypeData:
|
|
328
|
-
questionType:
|
|
329
|
-
questionStatus:
|
|
316
|
+
questionTypeData: i,
|
|
317
|
+
questionType: o,
|
|
318
|
+
questionStatus: G.UNSET
|
|
330
319
|
}
|
|
331
320
|
),
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
] }),
|
|
335
|
-
className:
|
|
336
|
-
sponsorLogo:
|
|
337
|
-
onClick:
|
|
338
|
-
webos:
|
|
339
|
-
}) => /* @__PURE__ */
|
|
340
|
-
|
|
321
|
+
n && /* @__PURE__ */ s(qe, { webos: t, children: n }),
|
|
322
|
+
a && /* @__PURE__ */ s(xe, { children: a })
|
|
323
|
+
] }), Pe = S(De), ze = S(Re), Ue = S(Oe), Fe = ({
|
|
324
|
+
className: n,
|
|
325
|
+
sponsorLogo: o,
|
|
326
|
+
onClick: i,
|
|
327
|
+
webos: a
|
|
328
|
+
}) => /* @__PURE__ */ s(
|
|
329
|
+
Pe,
|
|
341
330
|
{
|
|
342
|
-
className:
|
|
343
|
-
autoFocus:
|
|
344
|
-
webos:
|
|
345
|
-
onClick:
|
|
346
|
-
"data-webos":
|
|
347
|
-
children: /* @__PURE__ */
|
|
331
|
+
className: n,
|
|
332
|
+
autoFocus: !0,
|
|
333
|
+
webos: a,
|
|
334
|
+
onClick: i,
|
|
335
|
+
"data-webos": a,
|
|
336
|
+
children: /* @__PURE__ */ s(Z, { withoutPadding: !0, children: /* @__PURE__ */ s(J, { src: o }) })
|
|
348
337
|
}
|
|
349
|
-
),
|
|
350
|
-
action:
|
|
351
|
-
close:
|
|
352
|
-
questionType:
|
|
353
|
-
inApp:
|
|
354
|
-
insight:
|
|
355
|
-
color:
|
|
356
|
-
webos:
|
|
357
|
-
className:
|
|
338
|
+
), Ve = ({
|
|
339
|
+
action: n,
|
|
340
|
+
close: o,
|
|
341
|
+
questionType: i,
|
|
342
|
+
inApp: a,
|
|
343
|
+
insight: r,
|
|
344
|
+
color: t,
|
|
345
|
+
webos: p,
|
|
346
|
+
className: c
|
|
358
347
|
}) => {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
if (!T$12 || !o2 || !o2.notification)
|
|
348
|
+
const [m, u] = I(!1), h = Q();
|
|
349
|
+
$(() => (a?.sponsorLogo && (u(!0), h.current = setTimeout(() => {
|
|
350
|
+
u(!1);
|
|
351
|
+
}, 5e3)), () => clearTimeout(h.current)), [a?.sponsorLogo]);
|
|
352
|
+
const g = K[i];
|
|
353
|
+
if (!g || !a || !a.notification)
|
|
366
354
|
return null;
|
|
367
|
-
const { title:
|
|
368
|
-
return
|
|
369
|
-
|
|
355
|
+
const { title: b, image: ls, imageMode: y, useContentMedia: C } = a.notification, ps = i === f.FACTOID ? r?.heading : b, ds = i === f.FACTOID ? r?.body : "", ms = ls, N = i === f.FACTOID && r?.video?.url && a?.isVideo && C === x.ENABLED, k = C === x.ENABLED ? N ? r?.video?.url : r?.image : "";
|
|
356
|
+
return a?.sponsorLogo && m ? /* @__PURE__ */ s(
|
|
357
|
+
Fe,
|
|
370
358
|
{
|
|
371
|
-
className:
|
|
372
|
-
sponsorLogo:
|
|
373
|
-
webos:
|
|
374
|
-
onClick: () =>
|
|
359
|
+
className: c,
|
|
360
|
+
sponsorLogo: a?.sponsorLogo,
|
|
361
|
+
webos: p,
|
|
362
|
+
onClick: () => u(!1)
|
|
375
363
|
}
|
|
376
|
-
) : /* @__PURE__ */
|
|
377
|
-
|
|
364
|
+
) : /* @__PURE__ */ l(
|
|
365
|
+
H,
|
|
378
366
|
{
|
|
379
367
|
"data-a": "intr",
|
|
380
|
-
className:
|
|
381
|
-
onClick: (
|
|
382
|
-
|
|
368
|
+
className: hs("SL_InApp", c),
|
|
369
|
+
onClick: (T) => {
|
|
370
|
+
p || n?.(T);
|
|
383
371
|
},
|
|
384
|
-
"data-is-insight":
|
|
385
|
-
"data-webos":
|
|
372
|
+
"data-is-insight": i === f.FACTOID,
|
|
373
|
+
"data-webos": p,
|
|
386
374
|
children: [
|
|
387
|
-
|
|
388
|
-
/* @__PURE__ */
|
|
389
|
-
/* @__PURE__ */
|
|
390
|
-
!
|
|
391
|
-
|
|
392
|
-
|
|
375
|
+
a?.sponsorLogo && /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s(J, { src: a?.sponsorLogo }) }),
|
|
376
|
+
/* @__PURE__ */ l(Z, { children: [
|
|
377
|
+
/* @__PURE__ */ l(Ie, { children: [
|
|
378
|
+
!k && /* @__PURE__ */ s(B, { src: ms, imageMode: y, withVideo: !!N, color: t }),
|
|
379
|
+
k && /* @__PURE__ */ s(
|
|
380
|
+
B,
|
|
393
381
|
{
|
|
394
|
-
src:
|
|
395
|
-
imageMode:
|
|
396
|
-
withVideo: !!
|
|
397
|
-
color:
|
|
398
|
-
useContentMedia:
|
|
399
|
-
thumbnailUrl:
|
|
382
|
+
src: k,
|
|
383
|
+
imageMode: y,
|
|
384
|
+
withVideo: !!N,
|
|
385
|
+
color: t,
|
|
386
|
+
useContentMedia: C,
|
|
387
|
+
thumbnailUrl: r?.video?.thumbnailUrl
|
|
400
388
|
}
|
|
401
389
|
),
|
|
402
|
-
/* @__PURE__ */
|
|
403
|
-
|
|
390
|
+
/* @__PURE__ */ s(
|
|
391
|
+
Be,
|
|
404
392
|
{
|
|
405
|
-
questionTypeData:
|
|
406
|
-
questionType:
|
|
407
|
-
title:
|
|
408
|
-
description:
|
|
409
|
-
imageMode:
|
|
410
|
-
webos:
|
|
393
|
+
questionTypeData: g,
|
|
394
|
+
questionType: i,
|
|
395
|
+
title: ps,
|
|
396
|
+
description: ds,
|
|
397
|
+
imageMode: y,
|
|
398
|
+
webos: p
|
|
411
399
|
}
|
|
412
400
|
)
|
|
413
401
|
] }),
|
|
414
|
-
!
|
|
415
|
-
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
|
|
402
|
+
!p && /* @__PURE__ */ s(ve, { name: "chevronRight" }),
|
|
403
|
+
p && /* @__PURE__ */ l(Le, { children: [
|
|
404
|
+
/* @__PURE__ */ s(
|
|
405
|
+
ze,
|
|
418
406
|
{
|
|
419
|
-
webos:
|
|
407
|
+
webos: !0,
|
|
420
408
|
"data-close-btn": "true",
|
|
421
|
-
onClick: (
|
|
422
|
-
|
|
409
|
+
onClick: (T) => {
|
|
410
|
+
T.stopPropagation(), o?.(T);
|
|
423
411
|
},
|
|
424
412
|
children: "Dismiss"
|
|
425
413
|
}
|
|
426
414
|
),
|
|
427
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ s(Ue, { webos: !0, autoFocus: !0, onClick: n, children: "Answer" })
|
|
428
416
|
] })
|
|
429
417
|
] })
|
|
430
418
|
]
|
|
431
419
|
}
|
|
432
420
|
);
|
|
433
|
-
}
|
|
434
|
-
const p$7 = /* @__PURE__ */ styled_default("div")({
|
|
421
|
+
}, Ye = /* @__PURE__ */ e("div")({
|
|
435
422
|
name: "NotificationContainer",
|
|
436
423
|
class: "n11jcrxe",
|
|
437
|
-
propsAsIs:
|
|
438
|
-
}),
|
|
424
|
+
propsAsIs: !1
|
|
425
|
+
}), P = /* @__PURE__ */ e("img")({
|
|
439
426
|
name: "Icon",
|
|
440
427
|
class: "i1vmpt6u",
|
|
441
|
-
propsAsIs:
|
|
442
|
-
}),
|
|
428
|
+
propsAsIs: !1
|
|
429
|
+
}), _e = /* @__PURE__ */ e("div")({
|
|
443
430
|
name: "IconContainer",
|
|
444
431
|
class: "i180665s",
|
|
445
|
-
propsAsIs:
|
|
446
|
-
}),
|
|
432
|
+
propsAsIs: !1
|
|
433
|
+
}), Qe = () => A, We = /* @__PURE__ */ e(Qe())({
|
|
447
434
|
name: "TitleIcon",
|
|
448
435
|
class: "t16zzzei",
|
|
449
|
-
propsAsIs:
|
|
450
|
-
}),
|
|
436
|
+
propsAsIs: !0
|
|
437
|
+
}), Ke = () => ys, Ge = /* @__PURE__ */ e(Ke())({
|
|
451
438
|
name: "Close",
|
|
452
439
|
class: "c1sur0q2",
|
|
453
|
-
propsAsIs:
|
|
454
|
-
}),
|
|
440
|
+
propsAsIs: !0
|
|
441
|
+
}), Xe = /* @__PURE__ */ e("div")({
|
|
455
442
|
name: "Body",
|
|
456
443
|
class: "bai9j52",
|
|
457
|
-
propsAsIs:
|
|
458
|
-
}),
|
|
444
|
+
propsAsIs: !1
|
|
445
|
+
}), Ze = /* @__PURE__ */ e("div")({
|
|
459
446
|
name: "Title",
|
|
460
447
|
class: "t1bnt25p",
|
|
461
|
-
propsAsIs:
|
|
462
|
-
}),
|
|
448
|
+
propsAsIs: !1
|
|
449
|
+
}), He = /* @__PURE__ */ e("div")({
|
|
463
450
|
name: "Description",
|
|
464
451
|
class: "dmixjec",
|
|
465
|
-
propsAsIs:
|
|
466
|
-
}),
|
|
452
|
+
propsAsIs: !1
|
|
453
|
+
}), Je = /* @__PURE__ */ e("button")({
|
|
467
454
|
name: "Button",
|
|
468
455
|
class: "b1ubkw1q",
|
|
469
|
-
propsAsIs:
|
|
470
|
-
})
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
/* @__PURE__ */ jsx(r$6, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
|
|
487
|
-
/* @__PURE__ */ jsx(
|
|
488
|
-
r$6,
|
|
489
|
-
{
|
|
490
|
-
className: "on-dark",
|
|
491
|
-
src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification-dark.png"
|
|
492
|
-
}
|
|
493
|
-
)
|
|
494
|
-
] }),
|
|
495
|
-
/* @__PURE__ */ jsxs(f, { children: [
|
|
496
|
-
/* @__PURE__ */ jsxs(d$1, { children: [
|
|
497
|
-
/* @__PURE__ */ jsx(m$1, { name: "icon-trophy-solid" }),
|
|
498
|
-
(n2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : n2.title
|
|
499
|
-
] }),
|
|
500
|
-
/* @__PURE__ */ jsxs(u$3, { children: [
|
|
501
|
-
/* @__PURE__ */ jsx("span", { children: (c2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : c2.subtitle }),
|
|
502
|
-
/* @__PURE__ */ jsx(A$1, { name: "inapp-button", children: "Play Now" })
|
|
503
|
-
] })
|
|
504
|
-
] }),
|
|
505
|
-
/* @__PURE__ */ jsx(
|
|
506
|
-
I$1,
|
|
456
|
+
propsAsIs: !1
|
|
457
|
+
}), sn = ({
|
|
458
|
+
open: n,
|
|
459
|
+
close: o,
|
|
460
|
+
...i
|
|
461
|
+
}) => /* @__PURE__ */ l(
|
|
462
|
+
Ye,
|
|
463
|
+
{
|
|
464
|
+
"data-a": "intr",
|
|
465
|
+
onClick: () => {
|
|
466
|
+
n?.(), i && i.markIstantOpen();
|
|
467
|
+
},
|
|
468
|
+
children: [
|
|
469
|
+
/* @__PURE__ */ l(_e, { children: [
|
|
470
|
+
/* @__PURE__ */ s(P, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
|
|
471
|
+
/* @__PURE__ */ s(
|
|
472
|
+
P,
|
|
507
473
|
{
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
}
|
|
474
|
+
className: "on-dark",
|
|
475
|
+
src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification-dark.png"
|
|
511
476
|
}
|
|
512
477
|
)
|
|
513
|
-
]
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
}
|
|
517
|
-
|
|
478
|
+
] }),
|
|
479
|
+
/* @__PURE__ */ l(Xe, { children: [
|
|
480
|
+
/* @__PURE__ */ l(Ze, { children: [
|
|
481
|
+
/* @__PURE__ */ s(We, { name: "icon-trophy-solid" }),
|
|
482
|
+
i?.titleCard?.title
|
|
483
|
+
] }),
|
|
484
|
+
/* @__PURE__ */ l(He, { children: [
|
|
485
|
+
/* @__PURE__ */ s("span", { children: i?.titleCard?.subtitle }),
|
|
486
|
+
/* @__PURE__ */ s(Je, { name: "inapp-button", children: "Play Now" })
|
|
487
|
+
] })
|
|
488
|
+
] }),
|
|
489
|
+
/* @__PURE__ */ s(
|
|
490
|
+
Ge,
|
|
491
|
+
{
|
|
492
|
+
close: (a) => {
|
|
493
|
+
a?.stopPropagation(), o?.();
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
)
|
|
497
|
+
]
|
|
498
|
+
}
|
|
499
|
+
), en = /* @__PURE__ */ e("div")({
|
|
518
500
|
name: "Container",
|
|
519
501
|
class: "cef8huz",
|
|
520
|
-
propsAsIs:
|
|
521
|
-
}),
|
|
502
|
+
propsAsIs: !1
|
|
503
|
+
}), nn = () => A, on = /* @__PURE__ */ e(nn())({
|
|
522
504
|
name: "CheckIcon",
|
|
523
505
|
class: "c1mo15kk",
|
|
524
|
-
propsAsIs:
|
|
525
|
-
}),
|
|
506
|
+
propsAsIs: !0
|
|
507
|
+
}), tn = () => A, an = /* @__PURE__ */ e(tn())({
|
|
526
508
|
name: "PredictionIcon",
|
|
527
509
|
class: "p16zkqnm",
|
|
528
|
-
propsAsIs:
|
|
529
|
-
}),
|
|
510
|
+
propsAsIs: !0
|
|
511
|
+
}), rn = /* @__PURE__ */ e("div")({
|
|
530
512
|
name: "PredictionIconContainer",
|
|
531
513
|
class: "pjszi7a",
|
|
532
|
-
propsAsIs:
|
|
533
|
-
}),
|
|
514
|
+
propsAsIs: !1
|
|
515
|
+
}), cn = /* @__PURE__ */ e("div")({
|
|
534
516
|
name: "BodyContainer",
|
|
535
517
|
class: "bftbmo3",
|
|
536
|
-
propsAsIs:
|
|
537
|
-
}),
|
|
518
|
+
propsAsIs: !1
|
|
519
|
+
}), ln = /* @__PURE__ */ e("div")({
|
|
538
520
|
name: "Body",
|
|
539
521
|
class: "barrbyu",
|
|
540
|
-
propsAsIs:
|
|
541
|
-
}),
|
|
522
|
+
propsAsIs: !1
|
|
523
|
+
}), pn = /* @__PURE__ */ e("div")({
|
|
542
524
|
name: "Subtitle",
|
|
543
525
|
class: "sz7237i",
|
|
544
|
-
propsAsIs:
|
|
545
|
-
}),
|
|
546
|
-
step:
|
|
547
|
-
children:
|
|
548
|
-
answer:
|
|
549
|
-
state:
|
|
526
|
+
propsAsIs: !1
|
|
527
|
+
}), dn = ({
|
|
528
|
+
step: n,
|
|
529
|
+
children: o,
|
|
530
|
+
answer: i,
|
|
531
|
+
state: a = "pending"
|
|
550
532
|
}) => {
|
|
551
|
-
const [
|
|
533
|
+
const [r, t] = I(0), [p] = I(() => new ResizeObserver((m) => {
|
|
552
534
|
window.requestAnimationFrame(() => {
|
|
553
|
-
|
|
554
|
-
I2(((c2 = (t2 = n2 == null ? void 0 : n2[0]) == null ? void 0 : t2.contentRect) == null ? void 0 : c2.width) ?? 0);
|
|
535
|
+
t(m?.[0]?.contentRect?.width ?? 0);
|
|
555
536
|
});
|
|
556
|
-
})),
|
|
557
|
-
|
|
558
|
-
}, [
|
|
559
|
-
return
|
|
560
|
-
|
|
561
|
-
}, [
|
|
562
|
-
children: [/* @__PURE__ */
|
|
563
|
-
children: /* @__PURE__ */
|
|
537
|
+
})), c = As((m) => {
|
|
538
|
+
m ? p.observe(m) : p.disconnect();
|
|
539
|
+
}, [p]);
|
|
540
|
+
return $(() => () => {
|
|
541
|
+
p.disconnect();
|
|
542
|
+
}, [p]), /* @__PURE__ */ l(en, {
|
|
543
|
+
children: [/* @__PURE__ */ s(rn, {
|
|
544
|
+
children: /* @__PURE__ */ s(an, {
|
|
564
545
|
name: "icon-prediction"
|
|
565
546
|
})
|
|
566
|
-
}), /* @__PURE__ */
|
|
547
|
+
}), /* @__PURE__ */ s(cn, {
|
|
567
548
|
style: {
|
|
568
|
-
minWidth: `${
|
|
549
|
+
minWidth: `${r}px`
|
|
569
550
|
},
|
|
570
|
-
children: /* @__PURE__ */
|
|
571
|
-
children:
|
|
572
|
-
},
|
|
573
|
-
}), /* @__PURE__ */
|
|
574
|
-
ref:
|
|
575
|
-
className:
|
|
576
|
-
children: /* @__PURE__ */
|
|
577
|
-
children: [/* @__PURE__ */
|
|
551
|
+
children: /* @__PURE__ */ s(ln, {
|
|
552
|
+
children: o
|
|
553
|
+
}, n)
|
|
554
|
+
}), /* @__PURE__ */ s(pn, {
|
|
555
|
+
ref: c,
|
|
556
|
+
className: a,
|
|
557
|
+
children: /* @__PURE__ */ l("div", {
|
|
558
|
+
children: [/* @__PURE__ */ s(on, {
|
|
578
559
|
name: "icon-check"
|
|
579
|
-
}), "Your Pick: ",
|
|
560
|
+
}), "Your Pick: ", i]
|
|
580
561
|
})
|
|
581
562
|
})]
|
|
582
563
|
});
|
|
583
|
-
}
|
|
584
|
-
const i$6 = /* @__PURE__ */ styled_default("div")({
|
|
564
|
+
}, mn = /* @__PURE__ */ e("div")({
|
|
585
565
|
name: "Container",
|
|
586
566
|
class: "ckyzolp",
|
|
587
|
-
propsAsIs:
|
|
588
|
-
}),
|
|
567
|
+
propsAsIs: !1
|
|
568
|
+
}), D = /* @__PURE__ */ e("div")({
|
|
589
569
|
name: "Line",
|
|
590
570
|
class: "l16t1zr7",
|
|
591
|
-
propsAsIs:
|
|
592
|
-
}),
|
|
571
|
+
propsAsIs: !1
|
|
572
|
+
}), un = () => D, An = /* @__PURE__ */ e(un())({
|
|
593
573
|
name: "Line1",
|
|
594
574
|
class: "le78kvg",
|
|
595
|
-
propsAsIs:
|
|
596
|
-
}),
|
|
575
|
+
propsAsIs: !0
|
|
576
|
+
}), fn = () => D, hn = /* @__PURE__ */ e(fn())({
|
|
597
577
|
name: "Line2",
|
|
598
578
|
class: "l1o7966d",
|
|
599
|
-
propsAsIs:
|
|
600
|
-
}),
|
|
579
|
+
propsAsIs: !0
|
|
580
|
+
}), In = () => D, $n = /* @__PURE__ */ e(In())({
|
|
601
581
|
name: "Line3",
|
|
602
582
|
class: "lu9lyxq",
|
|
603
|
-
propsAsIs:
|
|
604
|
-
}),
|
|
605
|
-
children: [/* @__PURE__ */
|
|
606
|
-
children: /* @__PURE__ */
|
|
607
|
-
}), /* @__PURE__ */
|
|
608
|
-
children: /* @__PURE__ */
|
|
609
|
-
}), /* @__PURE__ */
|
|
610
|
-
children: /* @__PURE__ */
|
|
583
|
+
propsAsIs: !0
|
|
584
|
+
}), vn = () => /* @__PURE__ */ l(mn, {
|
|
585
|
+
children: [/* @__PURE__ */ s(An, {
|
|
586
|
+
children: /* @__PURE__ */ s("div", {})
|
|
587
|
+
}), /* @__PURE__ */ s(hn, {
|
|
588
|
+
children: /* @__PURE__ */ s("div", {})
|
|
589
|
+
}), /* @__PURE__ */ s($n, {
|
|
590
|
+
children: /* @__PURE__ */ s("div", {})
|
|
611
591
|
})]
|
|
612
|
-
})
|
|
613
|
-
const n$1 = /* @__PURE__ */ styled_default("div")({
|
|
592
|
+
}), gn = /* @__PURE__ */ e("div")({
|
|
614
593
|
name: "Container",
|
|
615
594
|
class: "c10jy6zf",
|
|
616
|
-
propsAsIs:
|
|
617
|
-
}),
|
|
595
|
+
propsAsIs: !1
|
|
596
|
+
}), wn = () => A, bn = /* @__PURE__ */ e(wn())({
|
|
618
597
|
name: "CheckIcon",
|
|
619
598
|
class: "c1c7scay",
|
|
620
|
-
propsAsIs:
|
|
621
|
-
}),
|
|
622
|
-
children: [/* @__PURE__ */
|
|
599
|
+
propsAsIs: !0
|
|
600
|
+
}), Tn = () => /* @__PURE__ */ l(gn, {
|
|
601
|
+
children: [/* @__PURE__ */ s(bn, {
|
|
623
602
|
name: "icon-check"
|
|
624
603
|
}), " Prediction results are in!"]
|
|
625
|
-
})
|
|
626
|
-
const o$2 = /* @__PURE__ */ styled_default("div")({
|
|
604
|
+
}), yn = /* @__PURE__ */ e("div")({
|
|
627
605
|
name: "Container",
|
|
628
606
|
class: "cf6k2yy",
|
|
629
|
-
propsAsIs:
|
|
630
|
-
}),
|
|
607
|
+
propsAsIs: !1
|
|
608
|
+
}), Cn = /* @__PURE__ */ e("div")({
|
|
631
609
|
name: "Caption",
|
|
632
610
|
class: "c1c8xjus",
|
|
633
|
-
propsAsIs:
|
|
634
|
-
}),
|
|
611
|
+
propsAsIs: !1
|
|
612
|
+
}), Nn = /* @__PURE__ */ e("div")({
|
|
635
613
|
name: "Title",
|
|
636
614
|
class: "t1d1uekn",
|
|
637
|
-
propsAsIs:
|
|
638
|
-
}),
|
|
639
|
-
title:
|
|
640
|
-
}) => /* @__PURE__ */
|
|
641
|
-
children: [/* @__PURE__ */
|
|
615
|
+
propsAsIs: !1
|
|
616
|
+
}), kn = ({
|
|
617
|
+
title: n
|
|
618
|
+
}) => /* @__PURE__ */ l(yn, {
|
|
619
|
+
children: [/* @__PURE__ */ s(Cn, {
|
|
642
620
|
children: "Results for"
|
|
643
|
-
}), /* @__PURE__ */
|
|
644
|
-
children:
|
|
621
|
+
}), /* @__PURE__ */ s(Nn, {
|
|
622
|
+
children: n
|
|
645
623
|
})]
|
|
646
|
-
})
|
|
647
|
-
const n = /* @__PURE__ */ styled_default("div")({
|
|
624
|
+
}), es = /* @__PURE__ */ e("div")({
|
|
648
625
|
name: "Container",
|
|
649
626
|
class: "c181a1as",
|
|
650
|
-
propsAsIs:
|
|
651
|
-
}),
|
|
627
|
+
propsAsIs: !1
|
|
628
|
+
}), ns = /* @__PURE__ */ e("div")({
|
|
652
629
|
name: "Title",
|
|
653
630
|
class: "t1cduox6",
|
|
654
|
-
propsAsIs:
|
|
655
|
-
}),
|
|
631
|
+
propsAsIs: !1
|
|
632
|
+
}), qn = () => A, os = /* @__PURE__ */ e(qn())({
|
|
656
633
|
name: "CorrectIcon",
|
|
657
634
|
class: "c1onrv6j",
|
|
658
|
-
propsAsIs:
|
|
659
|
-
}),
|
|
635
|
+
propsAsIs: !0
|
|
636
|
+
}), xn = () => os, En = /* @__PURE__ */ e(xn())({
|
|
660
637
|
name: "InCorrectIcon",
|
|
661
638
|
class: "i17n9o7e",
|
|
662
|
-
propsAsIs:
|
|
663
|
-
}),
|
|
664
|
-
children: [/* @__PURE__ */
|
|
665
|
-
children: ["Congratulations!", /* @__PURE__ */
|
|
666
|
-
}), /* @__PURE__ */
|
|
639
|
+
propsAsIs: !0
|
|
640
|
+
}), Sn = () => /* @__PURE__ */ l(es, {
|
|
641
|
+
children: [/* @__PURE__ */ l(ns, {
|
|
642
|
+
children: ["Congratulations!", /* @__PURE__ */ s("br", {}), "You answered correctly."]
|
|
643
|
+
}), /* @__PURE__ */ s(os, {
|
|
667
644
|
name: "icon-check"
|
|
668
645
|
})]
|
|
669
|
-
}),
|
|
670
|
-
title:
|
|
671
|
-
}) => /* @__PURE__ */
|
|
672
|
-
children: [/* @__PURE__ */
|
|
673
|
-
children: ["Better luck next time!", /* @__PURE__ */
|
|
674
|
-
}), /* @__PURE__ */
|
|
646
|
+
}), Dn = ({
|
|
647
|
+
title: n
|
|
648
|
+
}) => /* @__PURE__ */ l(es, {
|
|
649
|
+
children: [/* @__PURE__ */ l(ns, {
|
|
650
|
+
children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", n]
|
|
651
|
+
}), /* @__PURE__ */ s(En, {
|
|
675
652
|
name: "icon-cross"
|
|
676
653
|
})]
|
|
677
|
-
})
|
|
678
|
-
const c$5 = /* @__PURE__ */ styled_default("div")({
|
|
654
|
+
}), Ln = /* @__PURE__ */ e("div")({
|
|
679
655
|
name: "Container",
|
|
680
656
|
class: "cnxgcs2",
|
|
681
|
-
propsAsIs:
|
|
682
|
-
}),
|
|
657
|
+
propsAsIs: !1
|
|
658
|
+
}), Mn = /* @__PURE__ */ e("div")({
|
|
683
659
|
name: "Title",
|
|
684
660
|
class: "t903f8n",
|
|
685
|
-
propsAsIs:
|
|
686
|
-
}),
|
|
661
|
+
propsAsIs: !1
|
|
662
|
+
}), Rn = () => A, jn = /* @__PURE__ */ e(Rn())({
|
|
687
663
|
name: "CheckIcon",
|
|
688
664
|
class: "ceyu3qj",
|
|
689
|
-
propsAsIs:
|
|
690
|
-
}),
|
|
691
|
-
points:
|
|
692
|
-
}) => /* @__PURE__ */
|
|
693
|
-
children: [/* @__PURE__ */
|
|
694
|
-
children: ["You won ", /* @__PURE__ */
|
|
665
|
+
propsAsIs: !0
|
|
666
|
+
}), On = ({
|
|
667
|
+
points: n
|
|
668
|
+
}) => /* @__PURE__ */ l(Ln, {
|
|
669
|
+
children: [/* @__PURE__ */ l(Mn, {
|
|
670
|
+
children: ["You won ", /* @__PURE__ */ s(Cs, {
|
|
695
671
|
delay: 0.5,
|
|
696
672
|
prefix: "+",
|
|
697
673
|
suffix: " points",
|
|
698
|
-
value:
|
|
674
|
+
value: n
|
|
699
675
|
})]
|
|
700
|
-
}), /* @__PURE__ */
|
|
676
|
+
}), /* @__PURE__ */ s(jn, {
|
|
701
677
|
name: "icon-trophy-solid"
|
|
702
678
|
})]
|
|
703
|
-
})
|
|
704
|
-
const a$6 = /* @__PURE__ */ styled_default("div")({
|
|
679
|
+
}), z = /* @__PURE__ */ e("div")({
|
|
705
680
|
name: "Container",
|
|
706
681
|
class: "cq3agu2",
|
|
707
|
-
propsAsIs:
|
|
708
|
-
}),
|
|
682
|
+
propsAsIs: !1
|
|
683
|
+
}), U = /* @__PURE__ */ e("div")({
|
|
709
684
|
name: "Body",
|
|
710
685
|
class: "b16qj0do",
|
|
711
|
-
propsAsIs:
|
|
712
|
-
})
|
|
713
|
-
const a$5 = {
|
|
686
|
+
propsAsIs: !1
|
|
687
|
+
}), F = {
|
|
714
688
|
1: 3e3,
|
|
715
689
|
2: 4e3,
|
|
716
690
|
3: 4e3,
|
|
717
691
|
4: 4e3
|
|
718
|
-
},
|
|
719
|
-
if (
|
|
720
|
-
if (
|
|
721
|
-
const
|
|
722
|
-
|
|
723
|
-
},
|
|
692
|
+
}, Bn = ({ close: n, action: o, setStep: i, votedAnswer: a, correct: r, correctAnswerTitle: t, questionTitle: p, step: c }) => {
|
|
693
|
+
if ($(() => {
|
|
694
|
+
if (i) {
|
|
695
|
+
const u = setTimeout(() => {
|
|
696
|
+
F[c + 1] && (r || c < 3) ? i(c + 1) : n?.();
|
|
697
|
+
}, F[c]);
|
|
724
698
|
return () => {
|
|
725
|
-
|
|
699
|
+
u && clearTimeout(u);
|
|
726
700
|
};
|
|
727
701
|
}
|
|
728
702
|
return () => {
|
|
729
703
|
};
|
|
730
|
-
}, [
|
|
731
|
-
return /* @__PURE__ */
|
|
732
|
-
let
|
|
733
|
-
return (
|
|
734
|
-
|
|
735
|
-
/* @__PURE__ */
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
704
|
+
}, [i, c, n, r]), c === 1)
|
|
705
|
+
return /* @__PURE__ */ s(z, { children: /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(Tn, {}) }) });
|
|
706
|
+
let m = "pending";
|
|
707
|
+
return (c === 3 || c === 4) && (m = r ? "correct" : "incorrect"), /* @__PURE__ */ s(z, { "data-a": "intr", onClick: () => o?.(), children: /* @__PURE__ */ l(U, { children: [
|
|
708
|
+
c !== 1 && /* @__PURE__ */ s(vn, {}, c),
|
|
709
|
+
/* @__PURE__ */ l(dn, { state: m, step: c, answer: a?.title || "unknown", children: [
|
|
710
|
+
c === 2 && /* @__PURE__ */ s(kn, { title: p || "unknown" }),
|
|
711
|
+
c === 3 && r && /* @__PURE__ */ s(Sn, {}),
|
|
712
|
+
c === 3 && !r && /* @__PURE__ */ s(Dn, { title: t || "unknown" }),
|
|
713
|
+
c === 4 && /* @__PURE__ */ s(On, { points: a?.points || 0 })
|
|
740
714
|
] })
|
|
741
715
|
] }) });
|
|
742
|
-
},
|
|
743
|
-
const [
|
|
744
|
-
return /* @__PURE__ */
|
|
745
|
-
|
|
716
|
+
}, Pn = ({ close: n, action: o, votedAnswer: i, correct: a, correctAnswerTitle: r, questionTitle: t }) => {
|
|
717
|
+
const [p, c] = I(1);
|
|
718
|
+
return /* @__PURE__ */ s(
|
|
719
|
+
Bn,
|
|
746
720
|
{
|
|
747
|
-
close:
|
|
748
|
-
action:
|
|
749
|
-
votedAnswer:
|
|
750
|
-
correct:
|
|
751
|
-
correctAnswerTitle:
|
|
752
|
-
questionTitle:
|
|
753
|
-
setStep:
|
|
754
|
-
step:
|
|
721
|
+
close: n,
|
|
722
|
+
action: o,
|
|
723
|
+
votedAnswer: i,
|
|
724
|
+
correct: a,
|
|
725
|
+
correctAnswerTitle: r,
|
|
726
|
+
questionTitle: t,
|
|
727
|
+
setStep: c,
|
|
728
|
+
step: p,
|
|
755
729
|
title: ""
|
|
756
730
|
}
|
|
757
731
|
);
|
|
758
|
-
}
|
|
759
|
-
const t$6 = /* @__PURE__ */ styled_default("div")({
|
|
732
|
+
}, zn = /* @__PURE__ */ e("div")({
|
|
760
733
|
name: "NotificationContainer",
|
|
761
734
|
class: "n1i4h28u",
|
|
762
|
-
propsAsIs:
|
|
763
|
-
})
|
|
764
|
-
const c$4 = ({ className: r2, ...t2 }) => /* @__PURE__ */ jsx(t$6, { className: r2, children: /* @__PURE__ */ jsx(G, { ...t2 }) });
|
|
765
|
-
const h = /* @__PURE__ */ styled_default("div")({
|
|
735
|
+
propsAsIs: !1
|
|
736
|
+
}), Un = ({ className: n, ...o }) => /* @__PURE__ */ s(zn, { className: n, children: /* @__PURE__ */ s(Pn, { ...o }) }), Fn = /* @__PURE__ */ e("div")({
|
|
766
737
|
name: "Container",
|
|
767
738
|
class: "cwa9tgs",
|
|
768
|
-
propsAsIs:
|
|
769
|
-
}),
|
|
739
|
+
propsAsIs: !1
|
|
740
|
+
}), Vn = /* @__PURE__ */ e("div")({
|
|
770
741
|
name: "BodyContainer",
|
|
771
742
|
class: "b1xx7swj",
|
|
772
|
-
propsAsIs:
|
|
773
|
-
}),
|
|
743
|
+
propsAsIs: !1
|
|
744
|
+
}), Yn = /* @__PURE__ */ e("div")({
|
|
774
745
|
name: "Body",
|
|
775
746
|
class: "b1a21en",
|
|
776
|
-
propsAsIs:
|
|
777
|
-
}),
|
|
778
|
-
step:
|
|
779
|
-
children:
|
|
780
|
-
state:
|
|
747
|
+
propsAsIs: !1
|
|
748
|
+
}), _n = ({
|
|
749
|
+
step: n,
|
|
750
|
+
children: o,
|
|
751
|
+
state: i = "pending"
|
|
781
752
|
}) => {
|
|
782
|
-
const [
|
|
783
|
-
return
|
|
784
|
-
const
|
|
753
|
+
const [a, r] = I(0);
|
|
754
|
+
return $(() => {
|
|
755
|
+
const t = new ResizeObserver((p) => {
|
|
785
756
|
window.requestAnimationFrame(() => {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
a2(x2);
|
|
757
|
+
const c = p?.[0]?.contentRect?.width ?? 0;
|
|
758
|
+
r(c);
|
|
789
759
|
});
|
|
790
760
|
});
|
|
791
761
|
return () => {
|
|
792
|
-
|
|
762
|
+
t.disconnect();
|
|
793
763
|
};
|
|
794
|
-
}, []), /* @__PURE__ */
|
|
764
|
+
}, []), /* @__PURE__ */ s(Fn, {
|
|
795
765
|
style: {
|
|
796
|
-
padding: `${
|
|
766
|
+
padding: `${n === 3 && i === "incorrect" || n === 1 ? "5px 100px" : "5px 40px"}`
|
|
797
767
|
},
|
|
798
|
-
children: /* @__PURE__ */
|
|
768
|
+
children: /* @__PURE__ */ s(Vn, {
|
|
799
769
|
style: {
|
|
800
|
-
minWidth: `${
|
|
770
|
+
minWidth: `${a}px`
|
|
801
771
|
},
|
|
802
|
-
children: /* @__PURE__ */
|
|
803
|
-
children:
|
|
804
|
-
},
|
|
772
|
+
children: /* @__PURE__ */ s(Yn, {
|
|
773
|
+
children: o
|
|
774
|
+
}, n)
|
|
805
775
|
})
|
|
806
776
|
});
|
|
807
|
-
}
|
|
808
|
-
const o$1 = /* @__PURE__ */ styled_default("div")({
|
|
777
|
+
}, Qn = /* @__PURE__ */ e("div")({
|
|
809
778
|
name: "Container",
|
|
810
779
|
class: "c1nd5cu8",
|
|
811
|
-
propsAsIs:
|
|
812
|
-
}),
|
|
780
|
+
propsAsIs: !1
|
|
781
|
+
}), L = /* @__PURE__ */ e("div")({
|
|
813
782
|
name: "Line",
|
|
814
783
|
class: "lgbipw0",
|
|
815
|
-
propsAsIs:
|
|
816
|
-
}),
|
|
784
|
+
propsAsIs: !1
|
|
785
|
+
}), Wn = () => L, Kn = /* @__PURE__ */ e(Wn())({
|
|
817
786
|
name: "Line1",
|
|
818
787
|
class: "l1anth16",
|
|
819
|
-
propsAsIs:
|
|
820
|
-
}),
|
|
788
|
+
propsAsIs: !0
|
|
789
|
+
}), Gn = () => L, Xn = /* @__PURE__ */ e(Gn())({
|
|
821
790
|
name: "Line2",
|
|
822
791
|
class: "l193yd7v",
|
|
823
|
-
propsAsIs:
|
|
824
|
-
}),
|
|
792
|
+
propsAsIs: !0
|
|
793
|
+
}), Zn = () => L, Hn = /* @__PURE__ */ e(Zn())({
|
|
825
794
|
name: "Line3",
|
|
826
795
|
class: "lhbflsp",
|
|
827
|
-
propsAsIs:
|
|
828
|
-
}),
|
|
829
|
-
children: [/* @__PURE__ */
|
|
830
|
-
children: /* @__PURE__ */
|
|
831
|
-
}), /* @__PURE__ */
|
|
832
|
-
children: /* @__PURE__ */
|
|
833
|
-
}), /* @__PURE__ */
|
|
834
|
-
children: /* @__PURE__ */
|
|
796
|
+
propsAsIs: !0
|
|
797
|
+
}), Jn = () => /* @__PURE__ */ l(Qn, {
|
|
798
|
+
children: [/* @__PURE__ */ s(Kn, {
|
|
799
|
+
children: /* @__PURE__ */ s("div", {})
|
|
800
|
+
}), /* @__PURE__ */ s(Xn, {
|
|
801
|
+
children: /* @__PURE__ */ s("div", {})
|
|
802
|
+
}), /* @__PURE__ */ s(Hn, {
|
|
803
|
+
children: /* @__PURE__ */ s("div", {})
|
|
835
804
|
})]
|
|
836
|
-
})
|
|
837
|
-
const t$4 = /* @__PURE__ */ styled_default("div")({
|
|
805
|
+
}), so = /* @__PURE__ */ e("div")({
|
|
838
806
|
name: "Container",
|
|
839
807
|
class: "c1lvd429",
|
|
840
|
-
propsAsIs:
|
|
841
|
-
}),
|
|
808
|
+
propsAsIs: !1
|
|
809
|
+
}), eo = () => A, no = /* @__PURE__ */ e(eo())({
|
|
842
810
|
name: "PredictionIcon",
|
|
843
811
|
class: "p1n4m87t",
|
|
844
|
-
propsAsIs:
|
|
845
|
-
}),
|
|
846
|
-
children: [/* @__PURE__ */
|
|
812
|
+
propsAsIs: !0
|
|
813
|
+
}), oo = () => /* @__PURE__ */ l(so, {
|
|
814
|
+
children: [/* @__PURE__ */ s(no, {
|
|
847
815
|
name: "icon-prediction"
|
|
848
816
|
}), " Prediction results are in!"]
|
|
849
|
-
})
|
|
850
|
-
const t$3 = () => B1, i$1 = /* @__PURE__ */ styled_default(t$3())({
|
|
817
|
+
}), to = () => A, ao = /* @__PURE__ */ e(to())({
|
|
851
818
|
name: "CheckIcon",
|
|
852
819
|
class: "c126r8f9",
|
|
853
|
-
propsAsIs:
|
|
854
|
-
}),
|
|
820
|
+
propsAsIs: !0
|
|
821
|
+
}), io = /* @__PURE__ */ e("div")({
|
|
855
822
|
name: "Answer",
|
|
856
823
|
class: "a1o2rpgl",
|
|
857
|
-
propsAsIs:
|
|
858
|
-
}),
|
|
824
|
+
propsAsIs: !1
|
|
825
|
+
}), ro = /* @__PURE__ */ e("div")({
|
|
859
826
|
name: "Container",
|
|
860
827
|
class: "cej6ci1",
|
|
861
|
-
propsAsIs:
|
|
862
|
-
}),
|
|
828
|
+
propsAsIs: !1
|
|
829
|
+
}), co = /* @__PURE__ */ e("div")({
|
|
863
830
|
name: "Title",
|
|
864
831
|
class: "tob24mr",
|
|
865
|
-
propsAsIs:
|
|
866
|
-
}),
|
|
867
|
-
title:
|
|
868
|
-
answer:
|
|
869
|
-
}) => /* @__PURE__ */
|
|
870
|
-
children: [/* @__PURE__ */
|
|
871
|
-
children:
|
|
872
|
-
}), /* @__PURE__ */
|
|
873
|
-
children: [/* @__PURE__ */
|
|
832
|
+
propsAsIs: !1
|
|
833
|
+
}), lo = ({
|
|
834
|
+
title: n,
|
|
835
|
+
answer: o
|
|
836
|
+
}) => /* @__PURE__ */ l(ro, {
|
|
837
|
+
children: [/* @__PURE__ */ s(co, {
|
|
838
|
+
children: n
|
|
839
|
+
}), /* @__PURE__ */ l(io, {
|
|
840
|
+
children: [/* @__PURE__ */ s(ao, {
|
|
874
841
|
name: "icon-prediction"
|
|
875
|
-
}), "Your Pick: ",
|
|
842
|
+
}), "Your Pick: ", o]
|
|
876
843
|
})]
|
|
877
|
-
})
|
|
878
|
-
const o = /* @__PURE__ */ styled_default("div")({
|
|
844
|
+
}), ts = /* @__PURE__ */ e("div")({
|
|
879
845
|
name: "Container",
|
|
880
846
|
class: "c1lesal4",
|
|
881
|
-
propsAsIs:
|
|
882
|
-
}),
|
|
847
|
+
propsAsIs: !1
|
|
848
|
+
}), as = /* @__PURE__ */ e("div")({
|
|
883
849
|
name: "Title",
|
|
884
850
|
class: "tv66n4w",
|
|
885
|
-
propsAsIs:
|
|
886
|
-
}),
|
|
851
|
+
propsAsIs: !1
|
|
852
|
+
}), po = () => A, mo = /* @__PURE__ */ e(po())({
|
|
887
853
|
name: "CorrectIcon",
|
|
888
854
|
class: "cx0vlv2",
|
|
889
|
-
propsAsIs:
|
|
890
|
-
}),
|
|
855
|
+
propsAsIs: !0
|
|
856
|
+
}), is = /* @__PURE__ */ e("div")({
|
|
891
857
|
name: "Answer",
|
|
892
858
|
class: "akfh4v5",
|
|
893
|
-
propsAsIs:
|
|
894
|
-
}),
|
|
895
|
-
answer:
|
|
896
|
-
}) => /* @__PURE__ */
|
|
897
|
-
children: [/* @__PURE__ */
|
|
859
|
+
propsAsIs: !1
|
|
860
|
+
}), uo = ({
|
|
861
|
+
answer: n
|
|
862
|
+
}) => /* @__PURE__ */ l(ts, {
|
|
863
|
+
children: [/* @__PURE__ */ s(as, {
|
|
898
864
|
children: "Congratulations! You answered correctly."
|
|
899
|
-
}), /* @__PURE__ */
|
|
900
|
-
children: [/* @__PURE__ */
|
|
865
|
+
}), /* @__PURE__ */ l(is, {
|
|
866
|
+
children: [/* @__PURE__ */ s(mo, {
|
|
901
867
|
name: "icon-correct"
|
|
902
|
-
}), "Your Pick: ",
|
|
868
|
+
}), "Your Pick: ", n]
|
|
903
869
|
})]
|
|
904
|
-
}),
|
|
905
|
-
title:
|
|
906
|
-
answer:
|
|
907
|
-
}) => /* @__PURE__ */
|
|
908
|
-
children: [/* @__PURE__ */
|
|
909
|
-
children: ["Better luck next time!", /* @__PURE__ */
|
|
910
|
-
}), /* @__PURE__ */
|
|
911
|
-
children: ["Your Pick: ",
|
|
870
|
+
}), Ao = ({
|
|
871
|
+
title: n,
|
|
872
|
+
answer: o
|
|
873
|
+
}) => /* @__PURE__ */ l(ts, {
|
|
874
|
+
children: [/* @__PURE__ */ l(as, {
|
|
875
|
+
children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", n]
|
|
876
|
+
}), /* @__PURE__ */ l(is, {
|
|
877
|
+
children: ["Your Pick: ", o]
|
|
912
878
|
})]
|
|
913
|
-
})
|
|
914
|
-
const a = /* @__PURE__ */ styled_default("div")({
|
|
879
|
+
}), V = /* @__PURE__ */ e("div")({
|
|
915
880
|
name: "Container",
|
|
916
881
|
class: "cmox3ot",
|
|
917
|
-
propsAsIs:
|
|
918
|
-
}),
|
|
882
|
+
propsAsIs: !1
|
|
883
|
+
}), Y = /* @__PURE__ */ e("div")({
|
|
919
884
|
name: "Body",
|
|
920
885
|
class: "bqq1ix4",
|
|
921
|
-
propsAsIs:
|
|
922
|
-
})
|
|
923
|
-
const c$1 = {
|
|
886
|
+
propsAsIs: !1
|
|
887
|
+
}), _ = {
|
|
924
888
|
1: 3e3,
|
|
925
889
|
2: 4e3,
|
|
926
890
|
3: 4e3
|
|
927
|
-
},
|
|
928
|
-
if (
|
|
929
|
-
if (
|
|
930
|
-
const
|
|
931
|
-
c
|
|
932
|
-
}, c
|
|
891
|
+
}, fo = ({ close: n, action: o, setStep: i, votedAnswer: a, correct: r, correctAnswerTitle: t, questionTitle: p, step: c }) => {
|
|
892
|
+
if ($(() => {
|
|
893
|
+
if (i) {
|
|
894
|
+
const u = setTimeout(() => {
|
|
895
|
+
_[c + 1] && (r || c < 3) ? i(c + 1) : n?.();
|
|
896
|
+
}, _[c]);
|
|
933
897
|
return () => {
|
|
934
|
-
|
|
898
|
+
u && clearTimeout(u);
|
|
935
899
|
};
|
|
936
900
|
}
|
|
937
901
|
return () => {
|
|
938
902
|
};
|
|
939
|
-
}, [
|
|
940
|
-
return /* @__PURE__ */
|
|
941
|
-
let
|
|
942
|
-
return
|
|
943
|
-
|
|
944
|
-
/* @__PURE__ */
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
903
|
+
}, [i, c, n, r]), c === 1)
|
|
904
|
+
return /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(Y, { children: /* @__PURE__ */ s(oo, {}) }) });
|
|
905
|
+
let m = "pending";
|
|
906
|
+
return c === 3 && (m = r ? "correct" : "incorrect"), /* @__PURE__ */ s(V, { "data-a": "intr", onClick: () => o?.(), children: /* @__PURE__ */ l(Y, { children: [
|
|
907
|
+
c !== 1 && /* @__PURE__ */ s(Jn, {}, c),
|
|
908
|
+
/* @__PURE__ */ l(_n, { state: m, step: c, children: [
|
|
909
|
+
c === 2 && /* @__PURE__ */ s(lo, { title: p || "unknown", answer: a?.title || "unknown" }),
|
|
910
|
+
c === 3 && r && /* @__PURE__ */ s(uo, { answer: a?.title || "unknown" }),
|
|
911
|
+
c === 3 && !r && /* @__PURE__ */ s(Ao, { title: t || "unknown", answer: a?.title || "unknown" })
|
|
948
912
|
] })
|
|
949
913
|
] }) });
|
|
950
|
-
},
|
|
951
|
-
const [
|
|
952
|
-
return /* @__PURE__ */
|
|
953
|
-
|
|
914
|
+
}, ho = ({ close: n, action: o, votedAnswer: i, correct: a, correctAnswerTitle: r, questionTitle: t }) => {
|
|
915
|
+
const [p, c] = I(1);
|
|
916
|
+
return /* @__PURE__ */ s(
|
|
917
|
+
fo,
|
|
954
918
|
{
|
|
955
|
-
close:
|
|
956
|
-
action:
|
|
957
|
-
votedAnswer:
|
|
958
|
-
correct:
|
|
959
|
-
correctAnswerTitle:
|
|
960
|
-
questionTitle:
|
|
961
|
-
setStep:
|
|
962
|
-
step:
|
|
919
|
+
close: n,
|
|
920
|
+
action: o,
|
|
921
|
+
votedAnswer: i,
|
|
922
|
+
correct: a,
|
|
923
|
+
correctAnswerTitle: r,
|
|
924
|
+
questionTitle: t,
|
|
925
|
+
setStep: c,
|
|
926
|
+
step: p,
|
|
963
927
|
title: ""
|
|
964
928
|
}
|
|
965
929
|
);
|
|
966
|
-
}
|
|
967
|
-
const s = /* @__PURE__ */ styled_default("div")({
|
|
930
|
+
}, rs = /* @__PURE__ */ e("div")({
|
|
968
931
|
name: "NotificationContainer",
|
|
969
932
|
class: "nn0nqh6",
|
|
970
|
-
propsAsIs:
|
|
971
|
-
}),
|
|
972
|
-
withoutPadding:
|
|
973
|
-
}) =>
|
|
933
|
+
propsAsIs: !1
|
|
934
|
+
}), Io = () => ({
|
|
935
|
+
withoutPadding: n
|
|
936
|
+
}) => n ? "0px" : "1rem", $o = /* @__PURE__ */ e("div")({
|
|
974
937
|
name: "NotificationContent",
|
|
975
938
|
class: "n1bcdf3j",
|
|
976
|
-
propsAsIs:
|
|
939
|
+
propsAsIs: !1,
|
|
977
940
|
vars: {
|
|
978
|
-
"n1bcdf3j-0": [
|
|
941
|
+
"n1bcdf3j-0": [Io()]
|
|
979
942
|
}
|
|
980
|
-
}),
|
|
943
|
+
}), cs = /* @__PURE__ */ e("img")({
|
|
981
944
|
name: "LogoImg",
|
|
982
945
|
class: "l8jorbq",
|
|
983
|
-
propsAsIs:
|
|
984
|
-
}),
|
|
946
|
+
propsAsIs: !1
|
|
947
|
+
}), vo = () => rs, go = /* @__PURE__ */ e(vo())({
|
|
985
948
|
name: "NotificationInterstitialContainer",
|
|
986
949
|
class: "nf920y3",
|
|
987
|
-
propsAsIs:
|
|
988
|
-
}),
|
|
950
|
+
propsAsIs: !0
|
|
951
|
+
}), wo = /* @__PURE__ */ e("div")({
|
|
989
952
|
name: "LogoImgContainer",
|
|
990
953
|
class: "lzsmehn",
|
|
991
|
-
propsAsIs:
|
|
992
|
-
})
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
return (d2 = r2 == null ? void 0 : r2.inApp) != null && d2.sponsorLogo && (p$12(true), n2.current = setTimeout(() => {
|
|
1003
|
-
p$12(false);
|
|
1004
|
-
}, 5e3)), () => clearTimeout(n2.current);
|
|
1005
|
-
}, [(c$12 = r2 == null ? void 0 : r2.inApp) == null ? void 0 : c$12.sponsorLogo]), (e2 = r2 == null ? void 0 : r2.inApp) != null && e2.sponsorLogo && i2 ? /* @__PURE__ */ jsx(
|
|
1006
|
-
N,
|
|
954
|
+
propsAsIs: !1
|
|
955
|
+
}), bo = ({
|
|
956
|
+
className: n,
|
|
957
|
+
sponsorLogo: o,
|
|
958
|
+
onClick: i
|
|
959
|
+
}) => /* @__PURE__ */ s(go, { className: n, onClick: i, children: /* @__PURE__ */ s($o, { withoutPadding: !0, children: /* @__PURE__ */ s(cs, { src: o }) }) }), To = ({ className: n, ...o }) => {
|
|
960
|
+
const [i, a] = I(!1), r = Q();
|
|
961
|
+
return $(() => (o?.inApp?.sponsorLogo && (a(!0), r.current = setTimeout(() => {
|
|
962
|
+
a(!1);
|
|
963
|
+
}, 5e3)), () => clearTimeout(r.current)), [o?.inApp?.sponsorLogo]), o?.inApp?.sponsorLogo && i ? /* @__PURE__ */ s(
|
|
964
|
+
bo,
|
|
1007
965
|
{
|
|
1008
|
-
className:
|
|
1009
|
-
sponsorLogo:
|
|
1010
|
-
onClick: () =>
|
|
966
|
+
className: n,
|
|
967
|
+
sponsorLogo: o.inApp?.sponsorLogo,
|
|
968
|
+
onClick: () => a(!1)
|
|
1011
969
|
}
|
|
1012
|
-
) : /* @__PURE__ */
|
|
1013
|
-
|
|
1014
|
-
/* @__PURE__ */
|
|
970
|
+
) : /* @__PURE__ */ s(rs, { className: n, children: /* @__PURE__ */ l("div", { children: [
|
|
971
|
+
o?.inApp?.sponsorLogo && /* @__PURE__ */ s(wo, { children: /* @__PURE__ */ s(cs, { src: o?.inApp?.sponsorLogo }) }),
|
|
972
|
+
/* @__PURE__ */ s(ho, { ...o })
|
|
1015
973
|
] }) });
|
|
1016
|
-
}
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
return useEffect(() => {
|
|
1021
|
-
t2 && eventBus.emit("notification", {
|
|
974
|
+
}, yo = ({ sdk: n, webos: o }) => {
|
|
975
|
+
const [i] = I(n.getNotificationsStore()), a = Is(i), r = n.getFeature(bs.GAMES), t = fs(() => n.getActiveNotification(), [n, a]);
|
|
976
|
+
return $(() => {
|
|
977
|
+
t && $s.emit("notification", {
|
|
1022
978
|
action: "rendered",
|
|
1023
979
|
payload: {
|
|
1024
|
-
questionId:
|
|
1025
|
-
questionType:
|
|
980
|
+
questionId: t.data.questionId,
|
|
981
|
+
questionType: t.data.questionType
|
|
1026
982
|
}
|
|
1027
983
|
});
|
|
1028
|
-
}, [
|
|
1029
|
-
|
|
984
|
+
}, [t]), t && t.type === M.QUESTION_RESOLVED ? t.data.question && t.data.questionType === f.PREDICTION ? t && t.data.inApp?.adUnit === R.STANDART ? /* @__PURE__ */ s(
|
|
985
|
+
To,
|
|
1030
986
|
{
|
|
1031
|
-
action:
|
|
1032
|
-
close:
|
|
1033
|
-
...
|
|
1034
|
-
inApp:
|
|
987
|
+
action: t.action,
|
|
988
|
+
close: t.close,
|
|
989
|
+
...t.data.question,
|
|
990
|
+
inApp: t.data.inApp
|
|
1035
991
|
}
|
|
1036
|
-
) : /* @__PURE__ */
|
|
1037
|
-
|
|
992
|
+
) : /* @__PURE__ */ s(
|
|
993
|
+
Un,
|
|
1038
994
|
{
|
|
1039
|
-
action:
|
|
1040
|
-
close:
|
|
1041
|
-
...
|
|
995
|
+
action: t.action,
|
|
996
|
+
close: t.close,
|
|
997
|
+
...t.data.question
|
|
1042
998
|
}
|
|
1043
|
-
) : null :
|
|
1044
|
-
|
|
999
|
+
) : null : t && t.type === M.ONBOARDING ? t.data.onboarding ? /* @__PURE__ */ s(
|
|
1000
|
+
sn,
|
|
1045
1001
|
{
|
|
1046
|
-
open:
|
|
1047
|
-
close:
|
|
1048
|
-
...
|
|
1002
|
+
open: r?.openOnboarding,
|
|
1003
|
+
close: t.close,
|
|
1004
|
+
...t.data.onboarding
|
|
1049
1005
|
}
|
|
1050
|
-
) : null :
|
|
1051
|
-
|
|
1006
|
+
) : null : t && t.data.inApp?.adUnit === R.STANDART ? /* @__PURE__ */ s(
|
|
1007
|
+
Ve,
|
|
1052
1008
|
{
|
|
1053
|
-
...
|
|
1054
|
-
action:
|
|
1055
|
-
close:
|
|
1056
|
-
color:
|
|
1057
|
-
webos:
|
|
1009
|
+
...t.data,
|
|
1010
|
+
action: t.action,
|
|
1011
|
+
close: t.close,
|
|
1012
|
+
color: t?.data?.inApp?.notification?.indicatorColor || t?.data?.inApp?.appearance?.primaryColor,
|
|
1013
|
+
webos: o
|
|
1058
1014
|
}
|
|
1059
|
-
) :
|
|
1060
|
-
}
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
const baseTheme = z$1();
|
|
1064
|
-
const uiState = F$2();
|
|
1065
|
-
if (!sdk) {
|
|
1066
|
-
return null;
|
|
1067
|
-
}
|
|
1068
|
-
if (uiState.appNotification || uiState.onboardingNotification) {
|
|
1069
|
-
if (uiState.app && !uiState.onboardingNotification) {
|
|
1070
|
-
return null;
|
|
1071
|
-
}
|
|
1072
|
-
return /* @__PURE__ */ jsx("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ jsx(h$4, { customTheme: theme ?? baseTheme.theme, themeMode: baseTheme.themeMode, children: /* @__PURE__ */ jsx(K, { sdk }) }) });
|
|
1073
|
-
}
|
|
1074
|
-
return null;
|
|
1015
|
+
) : t && /* @__PURE__ */ s(Js, { ...t.data, action: t.action });
|
|
1016
|
+
}, Po = ({ theme: n }) => {
|
|
1017
|
+
const o = Ns(), i = ks(), a = qs();
|
|
1018
|
+
return o && (a.appNotification || a.onboardingNotification) ? a.app && !a.onboardingNotification ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(us, { customTheme: n ?? i.theme, themeMode: i.themeMode, children: /* @__PURE__ */ s(yo, { sdk: o }) }) }) : null;
|
|
1075
1019
|
};
|
|
1076
1020
|
export {
|
|
1077
|
-
StreamLayerSDKNotification,
|
|
1078
|
-
|
|
1021
|
+
Po as StreamLayerSDKNotification,
|
|
1022
|
+
yo as StreamLayerSDKNotificationUI
|
|
1079
1023
|
};
|