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