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