@streamlayer/react 1.21.4 → 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 +9 -9
- 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 +9 -9
- 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 +56 -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 +2400 -2283
- 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 +30 -30
- package/lib/dist/es/index.js +2 -2
- package/lib/dist/es/masters.js +5813 -6063
- 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 -3363
- 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 +124 -119
- 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 +2399 -2282
- 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 +13 -48
- 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 -7617
- package/lib/dist/cjs/gamification-feature2.js +0 -1
- package/lib/dist/es/gamification-feature2.js +0 -285
- package/lib/es/provider.js +0 -7693
package/lib/es/notification.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import {
|
|
2
|
+
import { h as As } from "./index8.js";
|
|
3
|
+
import { useState as w, useRef as _, useEffect as T, useCallback as Is, useMemo as hs } from "react";
|
|
4
|
+
import { s as n, u as $s, a as O } from "./sl-types.js";
|
|
5
|
+
import { e as gs } from "./index3.js";
|
|
6
|
+
import { x as K } from "./storage.js";
|
|
7
|
+
import { D as ws, a as Ts, e as G, o as ys } from "./index12.js";
|
|
8
|
+
import { B as A } from "./index6.js";
|
|
9
|
+
import { d as v, Q as h, a as H, N as x, S as bs, A as R } from "./useStreamLayerApp2.js";
|
|
10
|
+
import { O as S } from "./index14.js";
|
|
11
|
+
import { E as Cs, y as fs } from "./index13.js";
|
|
12
|
+
import { d as ks } from "./index5.js";
|
|
13
|
+
import { B as Ns, z as qs, F as Es } from "./hooks-B0Qttldg.js";
|
|
9
14
|
const b = /* @__PURE__ */ n("div")({
|
|
10
15
|
name: "Media",
|
|
11
16
|
class: "m1bcvojl",
|
|
12
17
|
propsAsIs: !1
|
|
13
|
-
}),
|
|
18
|
+
}), xs = () => b, Ls = /* @__PURE__ */ n(xs())({
|
|
14
19
|
name: "MediaImgBottom",
|
|
15
20
|
class: "m58gin0",
|
|
16
21
|
propsAsIs: !0
|
|
17
|
-
}),
|
|
22
|
+
}), Ss = () => b, E = /* @__PURE__ */ n(Ss())({
|
|
18
23
|
name: "MediaImgSolid",
|
|
19
24
|
class: "m1atm8do",
|
|
20
25
|
propsAsIs: !0
|
|
@@ -22,26 +27,26 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
22
27
|
name: "MediaImgRounded",
|
|
23
28
|
class: "myx3xoi",
|
|
24
29
|
propsAsIs: !0
|
|
25
|
-
}),
|
|
30
|
+
}), Os = () => b, Rs = /* @__PURE__ */ n(Os())({
|
|
26
31
|
name: "MediaImgCentered",
|
|
27
32
|
class: "m1bwv0gx",
|
|
28
33
|
propsAsIs: !0
|
|
29
|
-
}),
|
|
34
|
+
}), Bs = () => b, js = /* @__PURE__ */ n(Bs())({
|
|
30
35
|
name: "MediaImgInsight",
|
|
31
36
|
class: "mntjanp",
|
|
32
37
|
propsAsIs: !0
|
|
33
|
-
}),
|
|
38
|
+
}), zs = /* @__PURE__ */ n("div")({
|
|
34
39
|
name: "VideoIcon",
|
|
35
40
|
class: "v1kofb47",
|
|
36
41
|
propsAsIs: !1
|
|
37
|
-
}),
|
|
42
|
+
}), Ps = {
|
|
38
43
|
[v.UNSET]: E,
|
|
39
44
|
[v.NONE]: E,
|
|
40
45
|
[v.ROUNDED]: Ms,
|
|
41
|
-
[v.CENTERED]:
|
|
42
|
-
[v.TRANSPARENT]:
|
|
46
|
+
[v.CENTERED]: Rs,
|
|
47
|
+
[v.TRANSPARENT]: Ls,
|
|
43
48
|
[v.SOLID]: E
|
|
44
|
-
},
|
|
49
|
+
}, B = ({
|
|
45
50
|
src: e,
|
|
46
51
|
imageMode: i = v.UNSET,
|
|
47
52
|
withVideo: t,
|
|
@@ -49,22 +54,22 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
49
54
|
}) => {
|
|
50
55
|
if (i === v.NONE)
|
|
51
56
|
return null;
|
|
52
|
-
const a = o ?
|
|
57
|
+
const a = o ? js : Ps[i];
|
|
53
58
|
return /* @__PURE__ */ l(a, {
|
|
54
59
|
children: [/* @__PURE__ */ s("img", {
|
|
55
60
|
src: e,
|
|
56
61
|
alt: ""
|
|
57
|
-
}), t && /* @__PURE__ */ s(
|
|
62
|
+
}), t && /* @__PURE__ */ s(zs, {
|
|
58
63
|
children: /* @__PURE__ */ s(A, {
|
|
59
64
|
name: "icon-play"
|
|
60
65
|
})
|
|
61
66
|
})]
|
|
62
67
|
});
|
|
63
|
-
},
|
|
68
|
+
}, Us = /* @__PURE__ */ n("div")({
|
|
64
69
|
name: "NotificationContent",
|
|
65
70
|
class: "nuraq9m",
|
|
66
71
|
propsAsIs: !1
|
|
67
|
-
}),
|
|
72
|
+
}), Fs = /* @__PURE__ */ n("div")({
|
|
68
73
|
name: "NotificationContainer",
|
|
69
74
|
class: "ns1nzpg",
|
|
70
75
|
propsAsIs: !1
|
|
@@ -72,7 +77,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
72
77
|
name: "Body",
|
|
73
78
|
class: "b1j59nzs",
|
|
74
79
|
propsAsIs: !1
|
|
75
|
-
}),
|
|
80
|
+
}), Vs = /* @__PURE__ */ n("div")({
|
|
76
81
|
name: "Title",
|
|
77
82
|
class: "t9vmnpp",
|
|
78
83
|
propsAsIs: !1
|
|
@@ -105,7 +110,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
105
110
|
return /* @__PURE__ */ l(Hs, { children: [
|
|
106
111
|
p && /* @__PURE__ */ s(_s, { children: /* @__PURE__ */ s(Ks, { children: p }) }),
|
|
107
112
|
/* @__PURE__ */ s(
|
|
108
|
-
|
|
113
|
+
ws,
|
|
109
114
|
{
|
|
110
115
|
image: e,
|
|
111
116
|
name: (d = i == null ? void 0 : i.meta) == null ? void 0 : d.accountName,
|
|
@@ -114,7 +119,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
114
119
|
createdTweet: i == null ? void 0 : i.date
|
|
115
120
|
}
|
|
116
121
|
),
|
|
117
|
-
/* @__PURE__ */ s(Gs, { children:
|
|
122
|
+
/* @__PURE__ */ s(Gs, { children: Ts(a) })
|
|
118
123
|
] });
|
|
119
124
|
}, Xs = ({ title: e, questionType: i, questionTypeData: t }) => /* @__PURE__ */ l(J, { children: [
|
|
120
125
|
/* @__PURE__ */ s(
|
|
@@ -125,73 +130,73 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
125
130
|
questionStatus: H.UNSET
|
|
126
131
|
}
|
|
127
132
|
),
|
|
128
|
-
e && /* @__PURE__ */ s(
|
|
133
|
+
e && /* @__PURE__ */ s(Vs, { children: e })
|
|
129
134
|
] }), Zs = ({ tweet: e }) => e ? /* @__PURE__ */ s(J, { children: /* @__PURE__ */ s(Js, { ...e, controlVideo: () => {
|
|
130
135
|
} }) }) : null, se = ({ action: e, questionType: i, inApp: t, insight: o, tweet: a }) => {
|
|
131
136
|
var p;
|
|
132
|
-
const d = G[i], r =
|
|
137
|
+
const d = G[i], r = ys[i];
|
|
133
138
|
if (!d || !t || !t.notification)
|
|
134
139
|
return null;
|
|
135
140
|
const { title: m, image: u, imageMode: $ } = t.notification;
|
|
136
141
|
let I = u;
|
|
137
142
|
i === h.TWEET && a != null && a.tweetMedia && (I = a.tweetMedia.image), $ === v.NONE && (I = "");
|
|
138
143
|
const g = t.useMediaFromContent && (o == null ? void 0 : o.image), c = i === h.TWEET && ((p = a == null ? void 0 : a.tweetMedia) == null ? void 0 : p.video) || i === h.FACTOID && (o == null ? void 0 : o.video);
|
|
139
|
-
return /* @__PURE__ */ s(
|
|
140
|
-
I && !g && /* @__PURE__ */ s(
|
|
141
|
-
g && /* @__PURE__ */ s(
|
|
144
|
+
return /* @__PURE__ */ s(Fs, { "data-a": "intr", className: "SL_InApp", onClick: e, children: /* @__PURE__ */ l(Us, { style: I ? {} : { paddingLeft: "1.5rem" }, children: [
|
|
145
|
+
I && !g && /* @__PURE__ */ s(B, { src: I, imageMode: $, withVideo: !!c }),
|
|
146
|
+
g && /* @__PURE__ */ s(B, { src: g, fromInsight: !0, withVideo: !!c }),
|
|
142
147
|
i === h.TWEET ? /* @__PURE__ */ s(Zs, { tweet: a }) : /* @__PURE__ */ s(Xs, { questionTypeData: d, questionType: i, title: m }),
|
|
143
148
|
/* @__PURE__ */ s(Qs, { name: "inapp-button", children: r || "Open" }),
|
|
144
149
|
/* @__PURE__ */ s(Ys, { name: "chevronRight" })
|
|
145
150
|
] }) });
|
|
146
151
|
}, ee = () => ({
|
|
147
152
|
color: e
|
|
148
|
-
}) => e,
|
|
153
|
+
}) => e || "transparent", j = /* @__PURE__ */ n("div")({
|
|
149
154
|
name: "MediaComponentWrap",
|
|
150
155
|
class: "mek728j",
|
|
151
156
|
propsAsIs: !1,
|
|
152
157
|
vars: {
|
|
153
158
|
"mek728j-0": [ee()]
|
|
154
159
|
}
|
|
155
|
-
}),
|
|
160
|
+
}), y = /* @__PURE__ */ n("div")({
|
|
156
161
|
name: "Media",
|
|
157
162
|
class: "m461t56",
|
|
158
163
|
propsAsIs: !1
|
|
159
|
-
}), ne = () =>
|
|
164
|
+
}), ne = () => y, oe = /* @__PURE__ */ n(ne())({
|
|
160
165
|
name: "MediaImgBottom",
|
|
161
166
|
class: "m22bh04",
|
|
162
167
|
propsAsIs: !0
|
|
163
|
-
}), ie = () =>
|
|
168
|
+
}), ie = () => y, te = /* @__PURE__ */ n(ie())({
|
|
164
169
|
name: "MediaVideo",
|
|
165
170
|
class: "m17u1e34",
|
|
166
171
|
propsAsIs: !0
|
|
167
|
-
}), ae = () =>
|
|
172
|
+
}), ae = () => y, re = /* @__PURE__ */ n(ae())({
|
|
168
173
|
name: "MediaImgContentMedia",
|
|
169
174
|
class: "m4j3eds",
|
|
170
175
|
propsAsIs: !0
|
|
171
|
-
}), ce = () =>
|
|
176
|
+
}), ce = () => y, le = /* @__PURE__ */ n(ce())({
|
|
172
177
|
name: "MediaImgSolid",
|
|
173
178
|
class: "m1lp3swr",
|
|
174
179
|
propsAsIs: !0
|
|
175
|
-
}), de = () =>
|
|
180
|
+
}), de = () => y, pe = /* @__PURE__ */ n(de())({
|
|
176
181
|
name: "MediaImgRounded",
|
|
177
182
|
class: "mc7lij",
|
|
178
183
|
propsAsIs: !0
|
|
179
|
-
}), me = () =>
|
|
184
|
+
}), me = () => y, ue = /* @__PURE__ */ n(me())({
|
|
180
185
|
name: "MediaImgCentered",
|
|
181
186
|
class: "mwwaw7o",
|
|
182
187
|
propsAsIs: !0
|
|
183
|
-
}), ve = () =>
|
|
188
|
+
}), ve = () => y, L = /* @__PURE__ */ n(ve())({
|
|
184
189
|
name: "MediaNone",
|
|
185
190
|
class: "mqfzyyr",
|
|
186
191
|
propsAsIs: !0
|
|
187
192
|
}), Ae = "v170mtgf", Ie = {
|
|
188
|
-
[v.UNSET]:
|
|
189
|
-
[v.NONE]:
|
|
193
|
+
[v.UNSET]: L,
|
|
194
|
+
[v.NONE]: L,
|
|
190
195
|
[v.ROUNDED]: pe,
|
|
191
196
|
[v.CENTERED]: ue,
|
|
192
197
|
[v.TRANSPARENT]: oe,
|
|
193
198
|
[v.SOLID]: le
|
|
194
|
-
},
|
|
199
|
+
}, z = ({
|
|
195
200
|
src: e,
|
|
196
201
|
imageMode: i = v.UNSET,
|
|
197
202
|
withVideo: t,
|
|
@@ -200,15 +205,15 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
200
205
|
thumbnailUrl: p
|
|
201
206
|
}) => {
|
|
202
207
|
if (!e)
|
|
203
|
-
return /* @__PURE__ */ s(
|
|
208
|
+
return /* @__PURE__ */ s(j, {
|
|
204
209
|
color: o,
|
|
205
|
-
children: /* @__PURE__ */ s(
|
|
210
|
+
children: /* @__PURE__ */ s(L, {})
|
|
206
211
|
});
|
|
207
|
-
const d = a ===
|
|
208
|
-
return /* @__PURE__ */ s(
|
|
212
|
+
const d = a === x.ENABLED ? re : Ie[i];
|
|
213
|
+
return /* @__PURE__ */ s(j, {
|
|
209
214
|
color: o,
|
|
210
215
|
children: t ? /* @__PURE__ */ s(te, {
|
|
211
|
-
children: /* @__PURE__ */ s(
|
|
216
|
+
children: /* @__PURE__ */ s(Cs, {
|
|
212
217
|
className: Ae,
|
|
213
218
|
source: e,
|
|
214
219
|
poster: p || ""
|
|
@@ -241,9 +246,9 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
241
246
|
name: "NotificationContainer",
|
|
242
247
|
class: "n1fcriet",
|
|
243
248
|
propsAsIs: !1
|
|
244
|
-
}),
|
|
249
|
+
}), Te = () => ({
|
|
245
250
|
questionType: e
|
|
246
|
-
}) => e === h.FACTOID ? "7.3rem" : "4.5rem",
|
|
251
|
+
}) => e === h.FACTOID ? "7.3rem" : "4.5rem", ye = () => ({
|
|
247
252
|
webos: e
|
|
248
253
|
}) => e ? "11px 0px 8px 0px" : "11px 0px", be = () => ({
|
|
249
254
|
imageMode: e,
|
|
@@ -253,8 +258,8 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
253
258
|
class: "b1byyovs",
|
|
254
259
|
propsAsIs: !1,
|
|
255
260
|
vars: {
|
|
256
|
-
"b1byyovs-0": [
|
|
257
|
-
"b1byyovs-1": [
|
|
261
|
+
"b1byyovs-0": [Te()],
|
|
262
|
+
"b1byyovs-1": [ye()],
|
|
258
263
|
"b1byyovs-2": [be()]
|
|
259
264
|
}
|
|
260
265
|
}), fe = () => ({
|
|
@@ -275,11 +280,11 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
275
280
|
"t1y5k5id-2": [Ne()],
|
|
276
281
|
"t1y5k5id-3": [qe()]
|
|
277
282
|
}
|
|
278
|
-
}),
|
|
283
|
+
}), xe = /* @__PURE__ */ n("div")({
|
|
279
284
|
name: "Description",
|
|
280
285
|
class: "dw9eb7l",
|
|
281
286
|
propsAsIs: !1
|
|
282
|
-
}),
|
|
287
|
+
}), Le = /* @__PURE__ */ n("div")({
|
|
283
288
|
name: "LogoImgContainer",
|
|
284
289
|
class: "ldu8wgy",
|
|
285
290
|
propsAsIs: !1
|
|
@@ -287,7 +292,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
287
292
|
name: "LogoImg",
|
|
288
293
|
class: "ln4a3eh",
|
|
289
294
|
propsAsIs: !1
|
|
290
|
-
}),
|
|
295
|
+
}), Se = () => Z, De = /* @__PURE__ */ n(Se())({
|
|
291
296
|
name: "NotificationInterstitialContainer",
|
|
292
297
|
class: "no2k63v",
|
|
293
298
|
propsAsIs: !0
|
|
@@ -299,15 +304,15 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
299
304
|
name: "TVButton",
|
|
300
305
|
class: "t1eee77p",
|
|
301
306
|
propsAsIs: !1
|
|
302
|
-
}),
|
|
307
|
+
}), Oe = () => es, Re = /* @__PURE__ */ n(Oe())({
|
|
303
308
|
name: "DismissButton",
|
|
304
309
|
class: "ds000hw",
|
|
305
310
|
propsAsIs: !0
|
|
306
|
-
}),
|
|
311
|
+
}), Be = () => es, je = /* @__PURE__ */ n(Be())({
|
|
307
312
|
name: "AnswerButton",
|
|
308
313
|
class: "a1nz9hoe",
|
|
309
314
|
propsAsIs: !0
|
|
310
|
-
}),
|
|
315
|
+
}), ze = ({ title: e, questionType: i, questionTypeData: t, description: o, imageMode: a, webos: p }) => /* @__PURE__ */ l(Ce, { imageMode: a, questionType: i, webos: p, children: [
|
|
311
316
|
/* @__PURE__ */ s(
|
|
312
317
|
K,
|
|
313
318
|
{
|
|
@@ -317,12 +322,12 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
317
322
|
}
|
|
318
323
|
),
|
|
319
324
|
e && /* @__PURE__ */ s(Ee, { webos: p, children: e }),
|
|
320
|
-
o && /* @__PURE__ */ s(
|
|
321
|
-
] }),
|
|
325
|
+
o && /* @__PURE__ */ s(xe, { children: o })
|
|
326
|
+
] }), Pe = S(De), Ue = S(Re), Fe = S(je), Ve = ({
|
|
322
327
|
sponsorLogo: e,
|
|
323
328
|
onClick: i,
|
|
324
329
|
webos: t
|
|
325
|
-
}) => /* @__PURE__ */ s(
|
|
330
|
+
}) => /* @__PURE__ */ s(Pe, { autoFocus: !0, webos: t, onClick: i, "data-webos": t, children: /* @__PURE__ */ s(X, { withoutPadding: !0, children: /* @__PURE__ */ s(ss, { src: e }) }) }), Qe = ({
|
|
326
331
|
action: e,
|
|
327
332
|
close: i,
|
|
328
333
|
questionType: t,
|
|
@@ -333,15 +338,15 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
333
338
|
}) => {
|
|
334
339
|
var r, m, u;
|
|
335
340
|
const [$, I] = w(!1), g = _();
|
|
336
|
-
|
|
341
|
+
T(() => (o != null && o.sponsorLogo && (I(!0), g.current = setTimeout(() => {
|
|
337
342
|
I(!1);
|
|
338
343
|
}, 5e3)), () => clearTimeout(g.current)), [o == null ? void 0 : o.sponsorLogo]);
|
|
339
344
|
const c = G[t];
|
|
340
345
|
if (!c || !o || !o.notification)
|
|
341
346
|
return null;
|
|
342
|
-
const { title: ds, image: ps, imageMode: f, useContentMedia: k } = o.notification, ms = t === h.FACTOID ? a == null ? void 0 : a.heading : ds, us = t === h.FACTOID ? a == null ? void 0 : a.body : "", vs = ps, N = t === h.FACTOID && ((r = a == null ? void 0 : a.video) == null ? void 0 : r.url) && (o == null ? void 0 : o.isVideo) && k ===
|
|
347
|
+
const { title: ds, image: ps, imageMode: f, useContentMedia: k } = o.notification, ms = t === h.FACTOID ? a == null ? void 0 : a.heading : ds, us = t === h.FACTOID ? a == null ? void 0 : a.body : "", vs = ps, N = t === h.FACTOID && ((r = a == null ? void 0 : a.video) == null ? void 0 : r.url) && (o == null ? void 0 : o.isVideo) && k === x.ENABLED, q = k === x.ENABLED ? N ? (m = a == null ? void 0 : a.video) == null ? void 0 : m.url : a == null ? void 0 : a.image : "";
|
|
343
348
|
return o != null && o.sponsorLogo && $ ? /* @__PURE__ */ s(
|
|
344
|
-
|
|
349
|
+
Ve,
|
|
345
350
|
{
|
|
346
351
|
sponsorLogo: o == null ? void 0 : o.sponsorLogo,
|
|
347
352
|
webos: d,
|
|
@@ -358,12 +363,12 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
358
363
|
"data-is-insight": t === h.FACTOID,
|
|
359
364
|
"data-webos": d,
|
|
360
365
|
children: [
|
|
361
|
-
(o == null ? void 0 : o.sponsorLogo) && /* @__PURE__ */ s(
|
|
366
|
+
(o == null ? void 0 : o.sponsorLogo) && /* @__PURE__ */ s(Le, { children: /* @__PURE__ */ s(ss, { src: o == null ? void 0 : o.sponsorLogo }) }),
|
|
362
367
|
/* @__PURE__ */ l(X, { children: [
|
|
363
368
|
/* @__PURE__ */ l($e, { children: [
|
|
364
|
-
!q && /* @__PURE__ */ s(
|
|
369
|
+
!q && /* @__PURE__ */ s(z, { src: vs, imageMode: f, withVideo: !!N, color: p }),
|
|
365
370
|
q && /* @__PURE__ */ s(
|
|
366
|
-
|
|
371
|
+
z,
|
|
367
372
|
{
|
|
368
373
|
src: q,
|
|
369
374
|
imageMode: f,
|
|
@@ -374,7 +379,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
374
379
|
}
|
|
375
380
|
),
|
|
376
381
|
/* @__PURE__ */ s(
|
|
377
|
-
|
|
382
|
+
ze,
|
|
378
383
|
{
|
|
379
384
|
questionTypeData: c,
|
|
380
385
|
questionType: t,
|
|
@@ -388,7 +393,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
388
393
|
!d && /* @__PURE__ */ s(we, { name: "chevronRight" }),
|
|
389
394
|
d && /* @__PURE__ */ l(Me, { children: [
|
|
390
395
|
/* @__PURE__ */ s(
|
|
391
|
-
|
|
396
|
+
Ue,
|
|
392
397
|
{
|
|
393
398
|
webos: !0,
|
|
394
399
|
"data-close-btn": "true",
|
|
@@ -398,7 +403,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
398
403
|
children: "Dismiss"
|
|
399
404
|
}
|
|
400
405
|
),
|
|
401
|
-
/* @__PURE__ */ s(
|
|
406
|
+
/* @__PURE__ */ s(Fe, { webos: !0, autoFocus: !0, onClick: e, children: "Answer" })
|
|
402
407
|
] })
|
|
403
408
|
] })
|
|
404
409
|
]
|
|
@@ -408,7 +413,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
408
413
|
name: "NotificationContainer",
|
|
409
414
|
class: "n11jcrxe",
|
|
410
415
|
propsAsIs: !1
|
|
411
|
-
}),
|
|
416
|
+
}), P = /* @__PURE__ */ n("img")({
|
|
412
417
|
name: "Icon",
|
|
413
418
|
class: "i1vmpt6u",
|
|
414
419
|
propsAsIs: !1
|
|
@@ -420,7 +425,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
420
425
|
name: "TitleIcon",
|
|
421
426
|
class: "t16zzzei",
|
|
422
427
|
propsAsIs: !0
|
|
423
|
-
}), Ge = () =>
|
|
428
|
+
}), Ge = () => fs, He = /* @__PURE__ */ n(Ge())({
|
|
424
429
|
name: "Close",
|
|
425
430
|
class: "c1sur0q2",
|
|
426
431
|
propsAsIs: !0
|
|
@@ -455,9 +460,9 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
455
460
|
},
|
|
456
461
|
children: [
|
|
457
462
|
/* @__PURE__ */ l(Ye, { children: [
|
|
458
|
-
/* @__PURE__ */ s(
|
|
463
|
+
/* @__PURE__ */ s(P, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
|
|
459
464
|
/* @__PURE__ */ s(
|
|
460
|
-
|
|
465
|
+
P,
|
|
461
466
|
{
|
|
462
467
|
className: "on-dark",
|
|
463
468
|
src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification-dark.png"
|
|
@@ -524,10 +529,10 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
524
529
|
var u, $;
|
|
525
530
|
p((($ = (u = m == null ? void 0 : m[0]) == null ? void 0 : u.contentRect) == null ? void 0 : $.width) ?? 0);
|
|
526
531
|
});
|
|
527
|
-
})), r =
|
|
532
|
+
})), r = Is((m) => {
|
|
528
533
|
m ? d.observe(m) : d.disconnect();
|
|
529
534
|
}, [d]);
|
|
530
|
-
return
|
|
535
|
+
return T(() => () => {
|
|
531
536
|
d.disconnect();
|
|
532
537
|
}, [d]), /* @__PURE__ */ l(nn, {
|
|
533
538
|
children: [/* @__PURE__ */ s(cn, {
|
|
@@ -579,15 +584,15 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
579
584
|
}), /* @__PURE__ */ s(gn, {
|
|
580
585
|
children: /* @__PURE__ */ s("div", {})
|
|
581
586
|
})]
|
|
582
|
-
}),
|
|
587
|
+
}), Tn = /* @__PURE__ */ n("div")({
|
|
583
588
|
name: "Container",
|
|
584
589
|
class: "c10jy6zf",
|
|
585
590
|
propsAsIs: !1
|
|
586
|
-
}),
|
|
591
|
+
}), yn = () => A, bn = /* @__PURE__ */ n(yn())({
|
|
587
592
|
name: "CheckIcon",
|
|
588
593
|
class: "c1c7scay",
|
|
589
594
|
propsAsIs: !0
|
|
590
|
-
}), Cn = () => /* @__PURE__ */ l(
|
|
595
|
+
}), Cn = () => /* @__PURE__ */ l(Tn, {
|
|
591
596
|
children: [/* @__PURE__ */ s(bn, {
|
|
592
597
|
name: "icon-check"
|
|
593
598
|
}), " Prediction results are in!"]
|
|
@@ -623,11 +628,11 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
623
628
|
name: "CorrectIcon",
|
|
624
629
|
class: "c1onrv6j",
|
|
625
630
|
propsAsIs: !0
|
|
626
|
-
}),
|
|
631
|
+
}), xn = () => is, Ln = /* @__PURE__ */ n(xn())({
|
|
627
632
|
name: "InCorrectIcon",
|
|
628
633
|
class: "i17n9o7e",
|
|
629
634
|
propsAsIs: !0
|
|
630
|
-
}),
|
|
635
|
+
}), Sn = () => /* @__PURE__ */ l(ns, {
|
|
631
636
|
children: [/* @__PURE__ */ l(os, {
|
|
632
637
|
children: ["Congratulations!", /* @__PURE__ */ s("br", {}), "You answered correctly."]
|
|
633
638
|
}), /* @__PURE__ */ s(is, {
|
|
@@ -638,53 +643,53 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
638
643
|
}) => /* @__PURE__ */ l(ns, {
|
|
639
644
|
children: [/* @__PURE__ */ l(os, {
|
|
640
645
|
children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", e]
|
|
641
|
-
}), /* @__PURE__ */ s(
|
|
646
|
+
}), /* @__PURE__ */ s(Ln, {
|
|
642
647
|
name: "icon-cross"
|
|
643
648
|
})]
|
|
644
649
|
}), Mn = /* @__PURE__ */ n("div")({
|
|
645
650
|
name: "Container",
|
|
646
651
|
class: "cnxgcs2",
|
|
647
652
|
propsAsIs: !1
|
|
648
|
-
}),
|
|
653
|
+
}), On = /* @__PURE__ */ n("div")({
|
|
649
654
|
name: "Title",
|
|
650
655
|
class: "t903f8n",
|
|
651
656
|
propsAsIs: !1
|
|
652
|
-
}),
|
|
657
|
+
}), Rn = () => A, Bn = /* @__PURE__ */ n(Rn())({
|
|
653
658
|
name: "CheckIcon",
|
|
654
659
|
class: "ceyu3qj",
|
|
655
660
|
propsAsIs: !0
|
|
656
|
-
}),
|
|
661
|
+
}), jn = ({
|
|
657
662
|
points: e
|
|
658
663
|
}) => /* @__PURE__ */ l(Mn, {
|
|
659
|
-
children: [/* @__PURE__ */ l(
|
|
660
|
-
children: ["You won ", /* @__PURE__ */ s(
|
|
664
|
+
children: [/* @__PURE__ */ l(On, {
|
|
665
|
+
children: ["You won ", /* @__PURE__ */ s(ks, {
|
|
661
666
|
delay: 0.5,
|
|
662
667
|
prefix: "+",
|
|
663
668
|
suffix: " points",
|
|
664
669
|
value: e
|
|
665
670
|
})]
|
|
666
|
-
}), /* @__PURE__ */ s(
|
|
671
|
+
}), /* @__PURE__ */ s(Bn, {
|
|
667
672
|
name: "icon-trophy-solid"
|
|
668
673
|
})]
|
|
669
|
-
}),
|
|
674
|
+
}), U = /* @__PURE__ */ n("div")({
|
|
670
675
|
name: "Container",
|
|
671
676
|
class: "cq3agu2",
|
|
672
677
|
propsAsIs: !1
|
|
673
|
-
}),
|
|
678
|
+
}), F = /* @__PURE__ */ n("div")({
|
|
674
679
|
name: "Body",
|
|
675
680
|
class: "b16qj0do",
|
|
676
681
|
propsAsIs: !1
|
|
677
|
-
}),
|
|
682
|
+
}), V = {
|
|
678
683
|
1: 3e3,
|
|
679
684
|
2: 4e3,
|
|
680
685
|
3: 4e3,
|
|
681
686
|
4: 4e3
|
|
682
|
-
},
|
|
683
|
-
if (
|
|
687
|
+
}, zn = ({ close: e, action: i, setStep: t, votedAnswer: o, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
|
|
688
|
+
if (T(() => {
|
|
684
689
|
if (t) {
|
|
685
690
|
const u = setTimeout(() => {
|
|
686
|
-
|
|
687
|
-
},
|
|
691
|
+
V[r + 1] && (a || r < 3) ? t(r + 1) : e == null || e();
|
|
692
|
+
}, V[r]);
|
|
688
693
|
return () => {
|
|
689
694
|
u && clearTimeout(u);
|
|
690
695
|
};
|
|
@@ -692,21 +697,21 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
692
697
|
return () => {
|
|
693
698
|
};
|
|
694
699
|
}, [t, r, e, a]), r === 1)
|
|
695
|
-
return /* @__PURE__ */ s(
|
|
700
|
+
return /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(F, { children: /* @__PURE__ */ s(Cn, {}) }) });
|
|
696
701
|
let m = "pending";
|
|
697
|
-
return (r === 3 || r === 4) && (m = a ? "correct" : "incorrect"), /* @__PURE__ */ s(
|
|
702
|
+
return (r === 3 || r === 4) && (m = a ? "correct" : "incorrect"), /* @__PURE__ */ s(U, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ l(F, { children: [
|
|
698
703
|
r !== 1 && /* @__PURE__ */ s(wn, {}, r),
|
|
699
704
|
/* @__PURE__ */ l(mn, { state: m, step: r, answer: (o == null ? void 0 : o.title) || "unknown", children: [
|
|
700
705
|
r === 2 && /* @__PURE__ */ s(qn, { title: d || "unknown" }),
|
|
701
|
-
r === 3 && a && /* @__PURE__ */ s(
|
|
706
|
+
r === 3 && a && /* @__PURE__ */ s(Sn, {}),
|
|
702
707
|
r === 3 && !a && /* @__PURE__ */ s(Dn, { title: p || "unknown" }),
|
|
703
|
-
r === 4 && /* @__PURE__ */ s(
|
|
708
|
+
r === 4 && /* @__PURE__ */ s(jn, { points: (o == null ? void 0 : o.points) || 0 })
|
|
704
709
|
] })
|
|
705
710
|
] }) });
|
|
706
|
-
},
|
|
711
|
+
}, Pn = ({ close: e, action: i, votedAnswer: t, correct: o, correctAnswerTitle: a, questionTitle: p }) => {
|
|
707
712
|
const [d, r] = w(1);
|
|
708
713
|
return /* @__PURE__ */ s(
|
|
709
|
-
|
|
714
|
+
zn,
|
|
710
715
|
{
|
|
711
716
|
close: e,
|
|
712
717
|
action: i,
|
|
@@ -719,11 +724,11 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
719
724
|
title: ""
|
|
720
725
|
}
|
|
721
726
|
);
|
|
722
|
-
},
|
|
727
|
+
}, Un = /* @__PURE__ */ n("div")({
|
|
723
728
|
name: "NotificationContainer",
|
|
724
729
|
class: "n1i4h28u",
|
|
725
730
|
propsAsIs: !1
|
|
726
|
-
}),
|
|
731
|
+
}), Fn = (e) => /* @__PURE__ */ s(Un, { children: /* @__PURE__ */ s(Pn, { ...e }) }), Vn = /* @__PURE__ */ n("div")({
|
|
727
732
|
name: "Container",
|
|
728
733
|
class: "cwa9tgs",
|
|
729
734
|
propsAsIs: !1
|
|
@@ -741,7 +746,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
741
746
|
state: t = "pending"
|
|
742
747
|
}) => {
|
|
743
748
|
const [o, a] = w(0);
|
|
744
|
-
return
|
|
749
|
+
return T(() => {
|
|
745
750
|
const p = new ResizeObserver((d) => {
|
|
746
751
|
window.requestAnimationFrame(() => {
|
|
747
752
|
var r, m;
|
|
@@ -752,7 +757,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
752
757
|
return () => {
|
|
753
758
|
p.disconnect();
|
|
754
759
|
};
|
|
755
|
-
}, []), /* @__PURE__ */ s(
|
|
760
|
+
}, []), /* @__PURE__ */ s(Vn, {
|
|
756
761
|
style: {
|
|
757
762
|
padding: `${e === 3 && t === "incorrect" || e === 1 ? "5px 100px" : "5px 40px"}`
|
|
758
763
|
},
|
|
@@ -880,7 +885,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
880
885
|
2: 4e3,
|
|
881
886
|
3: 4e3
|
|
882
887
|
}, Io = ({ close: e, action: i, setStep: t, votedAnswer: o, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
|
|
883
|
-
if (
|
|
888
|
+
if (T(() => {
|
|
884
889
|
if (t) {
|
|
885
890
|
const u = setTimeout(() => {
|
|
886
891
|
Y[r + 1] && (a || r < 3) ? t(r + 1) : e == null || e();
|
|
@@ -935,38 +940,38 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
935
940
|
name: "LogoImg",
|
|
936
941
|
class: "l8jorbq",
|
|
937
942
|
propsAsIs: !1
|
|
938
|
-
}), wo = () => cs,
|
|
943
|
+
}), wo = () => cs, To = /* @__PURE__ */ n(wo())({
|
|
939
944
|
name: "NotificationInterstitialContainer",
|
|
940
945
|
class: "nf920y3",
|
|
941
946
|
propsAsIs: !0
|
|
942
|
-
}),
|
|
947
|
+
}), yo = /* @__PURE__ */ n("div")({
|
|
943
948
|
name: "LogoImgContainer",
|
|
944
949
|
class: "lzsmehn",
|
|
945
950
|
propsAsIs: !1
|
|
946
|
-
}), bo = ({ sponsorLogo: e, onClick: i }) => /* @__PURE__ */ s(
|
|
951
|
+
}), bo = ({ sponsorLogo: e, onClick: i }) => /* @__PURE__ */ s(To, { onClick: i, children: /* @__PURE__ */ s(go, { withoutPadding: !0, children: /* @__PURE__ */ s(ls, { src: e }) }) }), Co = (e) => {
|
|
947
952
|
var i, t, o, a, p;
|
|
948
953
|
const [d, r] = w(!1), m = _();
|
|
949
|
-
return
|
|
954
|
+
return T(() => {
|
|
950
955
|
var u;
|
|
951
956
|
return (u = e == null ? void 0 : e.inApp) != null && u.sponsorLogo && (r(!0), m.current = setTimeout(() => {
|
|
952
957
|
r(!1);
|
|
953
958
|
}, 5e3)), () => clearTimeout(m.current);
|
|
954
959
|
}, [(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(
|
|
960
|
+
((a = e == null ? void 0 : e.inApp) == null ? void 0 : a.sponsorLogo) && /* @__PURE__ */ s(yo, { children: /* @__PURE__ */ s(ls, { src: (p = e == null ? void 0 : e.inApp) == null ? void 0 : p.sponsorLogo }) }),
|
|
956
961
|
/* @__PURE__ */ s(ho, { ...e })
|
|
957
962
|
] }) });
|
|
958
963
|
}, fo = ({ sdk: e, webos: i }) => {
|
|
959
964
|
var t, o, a, p, d, r, m, u;
|
|
960
|
-
const [$] = w(e.getNotificationsStore()), I =
|
|
961
|
-
return
|
|
962
|
-
c &&
|
|
965
|
+
const [$] = w(e.getNotificationsStore()), I = $s($), g = e.getFeature(bs.GAMES), c = hs(() => e.getActiveNotification(), [e, I]);
|
|
966
|
+
return T(() => {
|
|
967
|
+
c && gs.emit("notification", {
|
|
963
968
|
action: "rendered",
|
|
964
969
|
payload: {
|
|
965
970
|
questionId: c.data.questionId,
|
|
966
971
|
questionType: c.data.questionType
|
|
967
972
|
}
|
|
968
973
|
});
|
|
969
|
-
}, [c]), c && c.type ===
|
|
974
|
+
}, [c]), c && c.type === O.QUESTION_RESOLVED ? c.data.question && c.data.questionType === h.PREDICTION ? c && ((t = c.data.inApp) == null ? void 0 : t.adUnit) === R.STANDART ? /* @__PURE__ */ s(
|
|
970
975
|
Co,
|
|
971
976
|
{
|
|
972
977
|
action: c.action,
|
|
@@ -975,20 +980,20 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
975
980
|
inApp: c.data.inApp
|
|
976
981
|
}
|
|
977
982
|
) : /* @__PURE__ */ s(
|
|
978
|
-
|
|
983
|
+
Fn,
|
|
979
984
|
{
|
|
980
985
|
action: c.action,
|
|
981
986
|
close: c.close,
|
|
982
987
|
...c.data.question
|
|
983
988
|
}
|
|
984
|
-
) : null : c && c.type ===
|
|
989
|
+
) : null : c && c.type === O.ONBOARDING ? c.data.onboarding ? /* @__PURE__ */ s(
|
|
985
990
|
en,
|
|
986
991
|
{
|
|
987
992
|
open: g == null ? void 0 : g.openOnboarding,
|
|
988
993
|
close: c.close,
|
|
989
994
|
...c.data.onboarding
|
|
990
995
|
}
|
|
991
|
-
) : null : c && ((o = c.data.inApp) == null ? void 0 : o.adUnit) ===
|
|
996
|
+
) : null : c && ((o = c.data.inApp) == null ? void 0 : o.adUnit) === R.STANDART ? /* @__PURE__ */ s(
|
|
992
997
|
Qe,
|
|
993
998
|
{
|
|
994
999
|
...c.data,
|
|
@@ -998,11 +1003,11 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
998
1003
|
webos: i
|
|
999
1004
|
}
|
|
1000
1005
|
) : c && /* @__PURE__ */ s(se, { ...c.data, action: c.action });
|
|
1001
|
-
},
|
|
1002
|
-
const i =
|
|
1003
|
-
return i && (o.appNotification || o.onboardingNotification) ? o.app && !o.onboardingNotification ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(
|
|
1006
|
+
}, zo = ({ theme: e }) => {
|
|
1007
|
+
const i = Ns(), t = qs(), o = Es();
|
|
1008
|
+
return i && (o.appNotification || o.onboardingNotification) ? o.app && !o.onboardingNotification ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(As, { customTheme: e ?? t.theme, themeMode: t.themeMode, children: /* @__PURE__ */ s(fo, { sdk: i }) }) }) : null;
|
|
1004
1009
|
};
|
|
1005
1010
|
export {
|
|
1006
|
-
|
|
1011
|
+
zo as StreamLayerSDKNotification,
|
|
1007
1012
|
fo as StreamLayerSDKNotificationUI
|
|
1008
1013
|
};
|