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