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