@streamlayer/react 1.23.2 → 1.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/masters.d.ts +0 -1
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +203 -28
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/cjs/index-ByUNFvMk.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -3
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -3
- package/lib/cjs/index14.js +4 -1
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +5 -3
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +5 -3
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +7 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +8 -1
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +14 -9
- package/lib/cjs/sl-types.js +1 -1
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/theme.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +17 -3
- package/lib/cjs/utils.js +47 -1
- package/lib/classic/app/masters.d.ts +0 -1
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +203 -28
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +5 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +4 -3
- package/lib/classic/cjs/index2.js +5 -3
- 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 -1
- package/lib/classic/cjs/index7.js +7 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -3
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +14 -9
- package/lib/classic/cjs/sl-types.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -3
- package/lib/classic/cjs/utils.js +47 -1
- package/lib/classic/es/Question.js +258 -275
- package/lib/classic/es/advertisement.js +22128 -38694
- package/lib/classic/es/analytics.js +55 -57
- package/lib/classic/es/auth.js +8 -14
- package/lib/classic/es/bet-pack.js +2413 -2455
- package/lib/classic/es/feature.js +46 -95
- package/lib/classic/es/gamification-feature.js +2 -2
- package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
- package/lib/classic/es/index-ByUNFvMk.js +3775 -0
- package/lib/classic/es/index.js +13 -16
- package/lib/classic/es/index10.js +2587 -83
- package/lib/classic/es/index11.js +305 -3087
- package/lib/classic/es/index12.js +121 -124
- package/lib/classic/es/index13.js +559 -589
- package/lib/classic/es/index2.js +1755 -2114
- package/lib/classic/es/index3.js +13 -13
- package/lib/classic/es/index4.js +4 -283
- package/lib/classic/es/index5.js +5 -5
- package/lib/classic/es/index6.js +285 -10
- package/lib/classic/es/index7.js +179 -6
- package/lib/classic/es/index8.js +5 -10
- package/lib/classic/es/index9.js +8 -318
- package/lib/classic/es/insight.js +54 -61
- package/lib/classic/es/notification.js +5 -5
- package/lib/classic/es/notification2.js +730 -787
- package/lib/classic/es/pause-ad.js +168 -191
- package/lib/classic/es/points.js +47 -55
- package/lib/classic/es/polymarket.js +4058 -4289
- package/lib/classic/es/sl-types.js +128 -298
- package/lib/classic/es/useStreamLayerApp.js +2 -2
- package/lib/classic/es/useStreamLayerApp2.js +9090 -11121
- package/lib/classic/es/utils.js +28 -28
- package/lib/classic/index.d.ts +0 -1
- package/lib/classic/source.css +110 -0
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +69 -3
- package/lib/dist/es/gamification-feature.js +2 -2
- package/lib/dist/es/index-ByUNFvMk.js +3775 -0
- package/lib/dist/es/index.js +7 -10
- package/lib/dist/es/masters.js +16944 -19645
- package/lib/dist/index.d.ts +7 -17
- package/lib/dist/source.css +64 -0
- package/lib/es/Question.js +101 -105
- package/lib/es/advertisement.js +22128 -38694
- package/lib/es/analytics.js +55 -57
- package/lib/es/auth.js +8 -14
- package/lib/es/bet-pack.js +18 -29
- package/lib/es/feature.js +46 -95
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/gamification-feature2.js +2 -2
- package/lib/es/hooks-n9ax4LRT.js +97 -0
- package/lib/es/index-ByUNFvMk.js +3775 -0
- package/lib/es/index.js +13 -17
- package/lib/es/index10.js +8 -274
- package/lib/es/index11.js +172 -837
- package/lib/es/index12.js +2587 -183
- package/lib/es/index13.js +258 -314
- package/lib/es/index14.js +813 -81
- package/lib/es/index15.js +305 -3087
- package/lib/es/index16.js +803 -1005
- package/lib/es/index2.js +980 -1133
- package/lib/es/index3.js +4 -3
- package/lib/es/index4.js +2401 -2431
- package/lib/es/index5.js +13 -13
- package/lib/es/index6.js +5 -285
- package/lib/es/index7.js +7 -10
- package/lib/es/index8.js +283 -5
- package/lib/es/index9.js +180 -10
- package/lib/es/insight.js +54 -61
- package/lib/es/masters.js +5 -7
- package/lib/es/masters2.js +538 -708
- package/lib/es/notification.js +663 -719
- package/lib/es/pause-ad.js +168 -191
- package/lib/es/points.js +48 -56
- package/lib/es/polymarket.js +4058 -4289
- package/lib/es/sl-types.js +128 -317
- package/lib/es/storage.js +74 -75
- package/lib/es/theme.js +3 -190
- package/lib/es/useStreamLayerApp.js +2 -2
- package/lib/es/useStreamLayerApp2.js +9090 -11121
- package/lib/es/utils.js +28 -28
- package/lib/index.d.ts +0 -1
- package/lib/source.css +120 -0
- package/lib/style.css +1 -1
- package/package.json +23 -26
- package/lib/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/cjs/index-eShKGO10.js +0 -1
- package/lib/cjs/style.css +0 -1
- package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/classic/cjs/index-eShKGO10.js +0 -1
- package/lib/classic/cjs/style.css +0 -1
- package/lib/classic/es/hooks-WfHlJH12.js +0 -98
- package/lib/classic/es/index-eShKGO10.js +0 -3757
- package/lib/classic/style.css +0 -1
- package/lib/dist/cjs/index-eShKGO10.js +0 -1
- package/lib/dist/es/index-eShKGO10.js +0 -3757
- package/lib/dist/style.css +0 -1
- package/lib/es/hooks-WfHlJH12.js +0 -98
- package/lib/es/index-eShKGO10.js +0 -3757
|
@@ -1,832 +1,802 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useState
|
|
3
|
-
import { s
|
|
4
|
-
import { i as
|
|
5
|
-
import { B as
|
|
6
|
-
import { Q as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import { useState as $, useRef as ee, useEffect as _, useCallback as N, useLayoutEffect as ze, useMemo as K } from "react";
|
|
3
|
+
import { s, c as pe } from "./sl-types.js";
|
|
4
|
+
import { i as le } from "./index9.js";
|
|
5
|
+
import { B as E } from "./index6.js";
|
|
6
|
+
import { Q as t, c as se, a as G, b as Ye } from "./useStreamLayerApp2.js";
|
|
7
|
+
import { b as Me, L as Ue } from "./index7.js";
|
|
8
|
+
import { p as Ce } from "./index3.js";
|
|
9
|
+
const On = /* @__PURE__ */ s("div")({
|
|
10
10
|
name: "SDKContainer",
|
|
11
11
|
class: "sopqfe6",
|
|
12
|
-
propsAsIs:
|
|
13
|
-
}),
|
|
12
|
+
propsAsIs: !1
|
|
13
|
+
}), Ke = /* @__PURE__ */ s("div")({
|
|
14
14
|
name: "SDKScrollContainer",
|
|
15
15
|
class: "s102vcph",
|
|
16
|
-
propsAsIs:
|
|
17
|
-
}),
|
|
16
|
+
propsAsIs: !1
|
|
17
|
+
}), $e = /* @__PURE__ */ s("div")({
|
|
18
18
|
name: "SDKContentContainer",
|
|
19
19
|
class: "s1meqjjv",
|
|
20
|
-
propsAsIs:
|
|
21
|
-
}),
|
|
20
|
+
propsAsIs: !1
|
|
21
|
+
}), _e = () => $e, Ee = /* @__PURE__ */ s(_e())({
|
|
22
22
|
name: "SDKWhiteContainer",
|
|
23
23
|
class: "s1burm22",
|
|
24
|
-
propsAsIs:
|
|
25
|
-
}),
|
|
24
|
+
propsAsIs: !0
|
|
25
|
+
}), He = () => Ee, Sn = /* @__PURE__ */ s(He())({
|
|
26
26
|
name: "SDKSummaryContainer",
|
|
27
27
|
class: "sm5r3j5",
|
|
28
|
-
propsAsIs:
|
|
29
|
-
}),
|
|
28
|
+
propsAsIs: !0
|
|
29
|
+
}), Vn = /* @__PURE__ */ s("div")({
|
|
30
30
|
name: "TabsContainer",
|
|
31
31
|
class: "tysxwr6",
|
|
32
|
-
propsAsIs:
|
|
33
|
-
}),
|
|
32
|
+
propsAsIs: !1
|
|
33
|
+
}), Ze = () => $e, Ln = /* @__PURE__ */ s(Ze())({
|
|
34
34
|
name: "LeaderboardContainer",
|
|
35
35
|
class: "l9er3b1",
|
|
36
|
-
propsAsIs:
|
|
37
|
-
}),
|
|
36
|
+
propsAsIs: !0
|
|
37
|
+
}), Ge = () => Ee, jn = /* @__PURE__ */ s(Ge())({
|
|
38
38
|
name: "TabsNavContainer",
|
|
39
39
|
class: "t19dtrb3",
|
|
40
|
-
propsAsIs:
|
|
41
|
-
}),
|
|
40
|
+
propsAsIs: !0
|
|
41
|
+
}), Qn = /* @__PURE__ */ s("div")({
|
|
42
42
|
name: "UserSummaryContainer",
|
|
43
43
|
class: "u1552n3j",
|
|
44
|
-
propsAsIs:
|
|
44
|
+
propsAsIs: !1
|
|
45
45
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
constructor() {
|
|
51
|
-
u$4(this, "observers", /* @__PURE__ */ new Set());
|
|
46
|
+
let Je = class {
|
|
47
|
+
observers = /* @__PURE__ */ new Set();
|
|
48
|
+
subscribe(a) {
|
|
49
|
+
this.observers.add(a);
|
|
52
50
|
}
|
|
53
|
-
|
|
54
|
-
this.observers.
|
|
51
|
+
unsubscribe(a) {
|
|
52
|
+
this.observers.delete(a);
|
|
55
53
|
}
|
|
56
|
-
|
|
57
|
-
this.observers.
|
|
58
|
-
}
|
|
59
|
-
notify(e2) {
|
|
60
|
-
this.observers.forEach((s) => s(e2));
|
|
54
|
+
notify(a) {
|
|
55
|
+
this.observers.forEach((c) => c(a));
|
|
61
56
|
}
|
|
62
57
|
};
|
|
63
|
-
const
|
|
64
|
-
const [
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
|
|
58
|
+
const J = new Je(), Xe = { hiding: !1, finished: !1 }, es = () => {
|
|
59
|
+
const [n, a] = $(Xe), c = ee(null);
|
|
60
|
+
_(() => {
|
|
61
|
+
const p = (h) => {
|
|
62
|
+
a(h);
|
|
68
63
|
};
|
|
69
|
-
return
|
|
70
|
-
|
|
64
|
+
return J.subscribe(p), () => {
|
|
65
|
+
J.unsubscribe(p);
|
|
71
66
|
};
|
|
72
67
|
}, []);
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
}, []),
|
|
79
|
-
|
|
80
|
-
}, [
|
|
68
|
+
const l = N((p) => {
|
|
69
|
+
const h = { hiding: !0, finished: !1 };
|
|
70
|
+
c.current && clearTimeout(c.current), p?.delay ? c.current = setTimeout(() => {
|
|
71
|
+
J.notify(h);
|
|
72
|
+
}, p?.delay) : J.notify(h);
|
|
73
|
+
}, []), r = N(() => {
|
|
74
|
+
n.hiding && (c.current = null, J.notify({ hiding: !1, finished: !0 }));
|
|
75
|
+
}, [n.hiding]);
|
|
81
76
|
return {
|
|
82
|
-
...
|
|
83
|
-
runAnimation:
|
|
84
|
-
onAnimationEnd:
|
|
77
|
+
...n,
|
|
78
|
+
runAnimation: l,
|
|
79
|
+
onAnimationEnd: r
|
|
85
80
|
};
|
|
86
|
-
}
|
|
87
|
-
const u$3 = /* @__PURE__ */ styled_default("div")({
|
|
81
|
+
}, ss = /* @__PURE__ */ s("div")({
|
|
88
82
|
name: "Container",
|
|
89
83
|
class: "c1pgyo67",
|
|
90
|
-
propsAsIs:
|
|
91
|
-
}),
|
|
92
|
-
children:
|
|
93
|
-
style:
|
|
94
|
-
className:
|
|
95
|
-
enabled:
|
|
96
|
-
hiding:
|
|
97
|
-
onAnimationEnd:
|
|
98
|
-
}) => /* @__PURE__ */
|
|
99
|
-
style:
|
|
100
|
-
className:
|
|
101
|
-
onAnimationEnd:
|
|
102
|
-
children:
|
|
103
|
-
}),
|
|
84
|
+
propsAsIs: !1
|
|
85
|
+
}), ns = "sx17qu6", ts = "h1692c5m", be = ({
|
|
86
|
+
children: n,
|
|
87
|
+
style: a,
|
|
88
|
+
className: c,
|
|
89
|
+
enabled: l = !0,
|
|
90
|
+
hiding: r,
|
|
91
|
+
onAnimationEnd: p
|
|
92
|
+
}) => /* @__PURE__ */ e(ss, {
|
|
93
|
+
style: a,
|
|
94
|
+
className: pe(c, l && ns, l && r && ts),
|
|
95
|
+
onAnimationEnd: p,
|
|
96
|
+
children: n
|
|
97
|
+
}), rs = () => be, as = /* @__PURE__ */ s(rs())({
|
|
104
98
|
name: "GrowingContainer",
|
|
105
99
|
class: "gck55ev",
|
|
106
|
-
propsAsIs:
|
|
107
|
-
}),
|
|
108
|
-
children:
|
|
109
|
-
style:
|
|
110
|
-
enabled:
|
|
111
|
-
animate:
|
|
112
|
-
...
|
|
100
|
+
propsAsIs: !0
|
|
101
|
+
}), we = ({
|
|
102
|
+
children: n,
|
|
103
|
+
style: a,
|
|
104
|
+
enabled: c,
|
|
105
|
+
animate: l,
|
|
106
|
+
...r
|
|
113
107
|
}) => {
|
|
114
|
-
const
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
-
...
|
|
117
|
-
enabled:
|
|
108
|
+
const p = ee(null);
|
|
109
|
+
return /* @__PURE__ */ e(as, {
|
|
110
|
+
...r,
|
|
111
|
+
enabled: c && l,
|
|
118
112
|
style: {
|
|
119
|
-
...
|
|
113
|
+
...a,
|
|
120
114
|
...(() => {
|
|
121
|
-
const
|
|
122
|
-
return
|
|
123
|
-
height:
|
|
115
|
+
const h = p?.current, v = (h && window.getComputedStyle(h))?.getPropertyValue("height");
|
|
116
|
+
return c ? {
|
|
117
|
+
height: l ? v : 0
|
|
124
118
|
} : {};
|
|
125
119
|
})()
|
|
126
120
|
},
|
|
127
|
-
children: /* @__PURE__ */
|
|
128
|
-
ref:
|
|
129
|
-
children:
|
|
121
|
+
children: /* @__PURE__ */ e("div", {
|
|
122
|
+
ref: p,
|
|
123
|
+
children: n
|
|
130
124
|
})
|
|
131
125
|
});
|
|
132
|
-
}
|
|
133
|
-
const t$3 = /* @__PURE__ */ styled_default("div")({
|
|
126
|
+
}, is = /* @__PURE__ */ s("div")({
|
|
134
127
|
name: "Container",
|
|
135
128
|
class: "c1gcvmcj",
|
|
136
|
-
propsAsIs:
|
|
137
|
-
}),
|
|
129
|
+
propsAsIs: !1
|
|
130
|
+
}), os = /* @__PURE__ */ s("div")({
|
|
138
131
|
name: "Title",
|
|
139
132
|
class: "tnr592a",
|
|
140
|
-
propsAsIs:
|
|
141
|
-
}),
|
|
133
|
+
propsAsIs: !1
|
|
134
|
+
}), cs = /* @__PURE__ */ s("div")({
|
|
142
135
|
name: "Description",
|
|
143
136
|
class: "d1e8jqpv",
|
|
144
|
-
propsAsIs:
|
|
145
|
-
}),
|
|
137
|
+
propsAsIs: !1
|
|
138
|
+
}), ls = () => E, ds = /* @__PURE__ */ s(ls())({
|
|
146
139
|
name: "Icon",
|
|
147
140
|
class: "i1vs651k",
|
|
148
|
-
propsAsIs:
|
|
149
|
-
})
|
|
150
|
-
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
154
|
-
] });
|
|
155
|
-
const c$3 = () => v$2, l$2 = /* @__PURE__ */ styled_default(c$3())({
|
|
141
|
+
propsAsIs: !0
|
|
142
|
+
}), ps = ({ icon: n, title: a, description: c }) => /* @__PURE__ */ o(is, { children: [
|
|
143
|
+
/* @__PURE__ */ e(ds, { name: n }),
|
|
144
|
+
/* @__PURE__ */ e(os, { children: a }),
|
|
145
|
+
/* @__PURE__ */ e(cs, { children: c })
|
|
146
|
+
] }), us = () => we, ms = /* @__PURE__ */ s(us())({
|
|
156
147
|
name: "ShowInContainer",
|
|
157
148
|
class: "s16sbdnm",
|
|
158
|
-
propsAsIs:
|
|
159
|
-
}),
|
|
149
|
+
propsAsIs: !0
|
|
150
|
+
}), Q = /* @__PURE__ */ s("div")({
|
|
160
151
|
name: "FeedbackContainer",
|
|
161
152
|
class: "fbhorgl",
|
|
162
|
-
propsAsIs:
|
|
163
|
-
}),
|
|
153
|
+
propsAsIs: !1
|
|
154
|
+
}), Ae = "s1g20ja7", hs = /* @__PURE__ */ s("div")({
|
|
164
155
|
name: "Container",
|
|
165
156
|
class: "c455ozj",
|
|
166
|
-
propsAsIs:
|
|
167
|
-
}),
|
|
157
|
+
propsAsIs: !1
|
|
158
|
+
}), Is = () => E, ve = /* @__PURE__ */ s(Is())({
|
|
168
159
|
name: "IconPrediction",
|
|
169
160
|
class: "i1913njx",
|
|
170
|
-
propsAsIs:
|
|
171
|
-
}),
|
|
161
|
+
propsAsIs: !0
|
|
162
|
+
}), X = /* @__PURE__ */ s("div")({
|
|
172
163
|
name: "FeedbackIconWrap",
|
|
173
164
|
class: "fzfk69z",
|
|
174
|
-
propsAsIs:
|
|
175
|
-
}),
|
|
165
|
+
propsAsIs: !1
|
|
166
|
+
}), te = /* @__PURE__ */ s("div")({
|
|
176
167
|
name: "FeedbackHeader",
|
|
177
168
|
class: "fx87qaj",
|
|
178
|
-
propsAsIs:
|
|
179
|
-
}),
|
|
169
|
+
propsAsIs: !1
|
|
170
|
+
}), fs = /* @__PURE__ */ s("span")({
|
|
180
171
|
name: "FeedbackTitle",
|
|
181
172
|
class: "fvek9ew",
|
|
182
|
-
propsAsIs:
|
|
183
|
-
}),
|
|
173
|
+
propsAsIs: !1
|
|
174
|
+
}), W = /* @__PURE__ */ s("span")({
|
|
184
175
|
name: "FeedbackDescription",
|
|
185
176
|
class: "f1kbtp09",
|
|
186
|
-
propsAsIs:
|
|
187
|
-
}),
|
|
177
|
+
propsAsIs: !1
|
|
178
|
+
}), As = /* @__PURE__ */ s("div")({
|
|
188
179
|
name: "FeedbackTitleWrap",
|
|
189
180
|
class: "f4i8rro",
|
|
190
|
-
propsAsIs:
|
|
191
|
-
}),
|
|
181
|
+
propsAsIs: !1
|
|
182
|
+
}), vs = /* @__PURE__ */ s("div")({
|
|
192
183
|
name: "FeedbackResultDescriptionWrap",
|
|
193
184
|
class: "fqyssr",
|
|
194
|
-
propsAsIs:
|
|
195
|
-
}),
|
|
185
|
+
propsAsIs: !1
|
|
186
|
+
}), ys = () => W, Ts = /* @__PURE__ */ s(ys())({
|
|
196
187
|
name: "FeedbackDynamicDescription",
|
|
197
188
|
class: "fyv794i",
|
|
198
|
-
propsAsIs:
|
|
199
|
-
}),
|
|
189
|
+
propsAsIs: !0
|
|
190
|
+
}), Cs = () => W, $s = /* @__PURE__ */ s(Cs())({
|
|
200
191
|
name: "FeedbackResultDescription",
|
|
201
192
|
class: "f1jkj9vx",
|
|
202
|
-
propsAsIs:
|
|
203
|
-
}),
|
|
193
|
+
propsAsIs: !0
|
|
194
|
+
}), de = /* @__PURE__ */ s("div")({
|
|
204
195
|
name: "FeedbackText",
|
|
205
196
|
class: "f1pxh3a6",
|
|
206
|
-
propsAsIs:
|
|
207
|
-
}),
|
|
197
|
+
propsAsIs: !1
|
|
198
|
+
}), Es = /* @__PURE__ */ s("span")({
|
|
208
199
|
name: "DynamicWrap",
|
|
209
200
|
class: "d1afvufn",
|
|
210
|
-
propsAsIs:
|
|
211
|
-
}),
|
|
201
|
+
propsAsIs: !1
|
|
202
|
+
}), bs = /* @__PURE__ */ s("div")({
|
|
212
203
|
name: "EarlyFeedbackDescription",
|
|
213
204
|
class: "eq8u24d",
|
|
214
|
-
propsAsIs:
|
|
215
|
-
})
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
onAnimationEnd: G
|
|
205
|
+
propsAsIs: !1
|
|
206
|
+
}), ye = ({
|
|
207
|
+
feedbackMessages: n,
|
|
208
|
+
questionVotedCorrectly: a,
|
|
209
|
+
questionVoted: c,
|
|
210
|
+
questionType: l,
|
|
211
|
+
hasCorrectAnswer: r,
|
|
212
|
+
showExpiredNotification: p,
|
|
213
|
+
showClosedNotificationTrivia: h,
|
|
214
|
+
votedInCurrentRender: v,
|
|
215
|
+
votedAfterQuestionClosed: i,
|
|
216
|
+
voteErrorMessage: m,
|
|
217
|
+
enteredAnActiveQuestion: b,
|
|
218
|
+
marketClosed: g,
|
|
219
|
+
percentsAnimated: y,
|
|
220
|
+
votedAnswer: O,
|
|
221
|
+
isEarlyPrediction: I,
|
|
222
|
+
correctAnswer: T,
|
|
223
|
+
onAnimationEnd: q
|
|
234
224
|
}) => {
|
|
235
|
-
const
|
|
236
|
-
return
|
|
237
|
-
|
|
225
|
+
const P = c && (l === t.TRIVIA || l === t.PREDICTION), k = l === t.PREDICTION && !r, S = g && l === t.PREDICTION && !c || l === t.PREDICTION && i && v && b, C = P && k, V = P && r, f = l === t.PREDICTION && c && v && r, F = c && l === t.POLL && v, w = a ? "correct" : "incorrect", L = a ? n?.correctFeedback : n?.incorrectFeedback;
|
|
226
|
+
return p || h || C || V || S || F || f || m ? /* @__PURE__ */ e(
|
|
227
|
+
ms,
|
|
238
228
|
{
|
|
239
|
-
enabled:
|
|
240
|
-
animate: !
|
|
241
|
-
onAnimationEnd:
|
|
242
|
-
children: /* @__PURE__ */
|
|
243
|
-
|
|
244
|
-
!
|
|
245
|
-
/* @__PURE__ */
|
|
229
|
+
enabled: v,
|
|
230
|
+
animate: !m && p ? !0 : y,
|
|
231
|
+
onAnimationEnd: q,
|
|
232
|
+
children: /* @__PURE__ */ o(hs, { "data-prediction": k, children: [
|
|
233
|
+
m && !S && /* @__PURE__ */ o(Q, { children: [
|
|
234
|
+
!I && /* @__PURE__ */ e(ve, { name: "questionExpired" }),
|
|
235
|
+
/* @__PURE__ */ e(W, { children: m })
|
|
246
236
|
] }),
|
|
247
|
-
!
|
|
248
|
-
!
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
237
|
+
!m && p && /* @__PURE__ */ o(Q, { children: [
|
|
238
|
+
!I && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(E, { name: "questionExpired" }) }),
|
|
239
|
+
/* @__PURE__ */ o("div", { children: [
|
|
240
|
+
/* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(W, { children: "Question Expired" }) }),
|
|
241
|
+
/* @__PURE__ */ e(de, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
|
|
252
242
|
] })
|
|
253
243
|
] }),
|
|
254
|
-
!
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
-
/* @__PURE__ */
|
|
244
|
+
!m && h && /* @__PURE__ */ o(Q, { className: pe(Ae), children: [
|
|
245
|
+
/* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(E, { name: "questionExpired" }) }),
|
|
246
|
+
/* @__PURE__ */ o("div", { children: [
|
|
247
|
+
/* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(W, { children: "Question Closed" }) }),
|
|
248
|
+
/* @__PURE__ */ e(de, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
|
|
259
249
|
] })
|
|
260
250
|
] }),
|
|
261
|
-
|
|
262
|
-
!
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */
|
|
251
|
+
S && /* @__PURE__ */ o(Q, { children: [
|
|
252
|
+
!I && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(E, { name: "questionExpired" }) }),
|
|
253
|
+
/* @__PURE__ */ o("div", { children: [
|
|
254
|
+
/* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(W, { children: I ? r ? "The results are already in!" : "Question is Closed" : "Question Closed" }) }),
|
|
255
|
+
/* @__PURE__ */ e(de, { children: I ? /* @__PURE__ */ e(bs, { children: r ? `Correct: ${T?.text}` : "Event affecting the outcome has occurred." }) : "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
|
|
266
256
|
] })
|
|
267
257
|
] }),
|
|
268
|
-
!
|
|
269
|
-
!
|
|
270
|
-
/* @__PURE__ */
|
|
258
|
+
!m && C && /* @__PURE__ */ o(Q, { children: [
|
|
259
|
+
!I && /* @__PURE__ */ e(ve, { name: "icon-prediction" }),
|
|
260
|
+
/* @__PURE__ */ o(Ts, { children: [
|
|
271
261
|
"Your pick has been recorded. ",
|
|
272
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ e(Es, { children: "We’ll notify you of the result." })
|
|
273
263
|
] })
|
|
274
264
|
] }),
|
|
275
|
-
!
|
|
276
|
-
!
|
|
277
|
-
/* @__PURE__ */
|
|
265
|
+
!m && F && /* @__PURE__ */ o(Q, { children: [
|
|
266
|
+
!I && /* @__PURE__ */ e(X, { "data-feedback-type": "correct", children: /* @__PURE__ */ e(E, { name: "correct" }) }),
|
|
267
|
+
/* @__PURE__ */ e(W, { children: "Thanks for answering. Please stay tuned for the next question." })
|
|
278
268
|
] }),
|
|
279
|
-
!
|
|
280
|
-
!
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
] }) : /* @__PURE__ */
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
] }) }) : /* @__PURE__ */
|
|
289
|
-
|
|
290
|
-
/* @__PURE__ */
|
|
269
|
+
!m && (V || f) && /* @__PURE__ */ o(Q, { className: pe(h && Ae), children: [
|
|
270
|
+
!I && /* @__PURE__ */ e(X, { "data-feedback-type": w, children: /* @__PURE__ */ e(E, { name: w }) }),
|
|
271
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ o(te, { children: [
|
|
272
|
+
I ? /* @__PURE__ */ e(As, { children: w === "incorrect" ? /* @__PURE__ */ o(B, { children: [
|
|
273
|
+
/* @__PURE__ */ e("div", { children: "So close!" }),
|
|
274
|
+
/* @__PURE__ */ e("div", { children: "Better luck next time" })
|
|
275
|
+
] }) : /* @__PURE__ */ o(B, { children: [
|
|
276
|
+
/* @__PURE__ */ e("div", { children: "That’s correct!" }),
|
|
277
|
+
/* @__PURE__ */ e("div", { children: "You chose wisely." })
|
|
278
|
+
] }) }) : /* @__PURE__ */ e(fs, { "data-feedback-type": w, children: L?.title }),
|
|
279
|
+
I ? /* @__PURE__ */ o(vs, { children: [
|
|
280
|
+
/* @__PURE__ */ o("div", { children: [
|
|
291
281
|
"Your pick: ",
|
|
292
|
-
|
|
282
|
+
O?.text
|
|
293
283
|
] }),
|
|
294
|
-
/* @__PURE__ */
|
|
295
|
-
] }) : /* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ e("div", { children: w === "incorrect" ? `Correct: ${T?.text}` : "" })
|
|
285
|
+
] }) : /* @__PURE__ */ e($s, { children: L?.description })
|
|
296
286
|
] }) })
|
|
297
287
|
] })
|
|
298
288
|
] })
|
|
299
289
|
}
|
|
300
290
|
) : null;
|
|
301
|
-
}
|
|
302
|
-
const t$2 = /* @__PURE__ */ styled_default("div")({
|
|
291
|
+
}, ws = /* @__PURE__ */ s("div")({
|
|
303
292
|
name: "Container",
|
|
304
293
|
class: "c1hygj0s",
|
|
305
|
-
propsAsIs:
|
|
306
|
-
}),
|
|
294
|
+
propsAsIs: !1
|
|
295
|
+
}), gs = /* @__PURE__ */ s("div")({
|
|
307
296
|
name: "Title",
|
|
308
297
|
class: "t1r84tez",
|
|
309
|
-
propsAsIs:
|
|
310
|
-
}),
|
|
298
|
+
propsAsIs: !1
|
|
299
|
+
}), Ps = /* @__PURE__ */ s("div")({
|
|
311
300
|
name: "Description",
|
|
312
301
|
class: "d1aj1a7k",
|
|
313
|
-
propsAsIs:
|
|
314
|
-
}),
|
|
302
|
+
propsAsIs: !1
|
|
303
|
+
}), Rs = /* @__PURE__ */ s("div")({
|
|
315
304
|
name: "AdditionalDescription",
|
|
316
305
|
class: "ax09ezs",
|
|
317
|
-
propsAsIs:
|
|
318
|
-
}),
|
|
306
|
+
propsAsIs: !1
|
|
307
|
+
}), Ds = () => E, qs = /* @__PURE__ */ s(Ds())({
|
|
319
308
|
name: "Icon",
|
|
320
309
|
class: "inkrac",
|
|
321
|
-
propsAsIs:
|
|
322
|
-
})
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
|
|
328
|
-
] });
|
|
329
|
-
const d$1 = /* @__PURE__ */ styled_default("div")({
|
|
310
|
+
propsAsIs: !0
|
|
311
|
+
}), ks = ({ icon: n, title: a, description: c, additionalDescription: l }) => /* @__PURE__ */ o(ws, { children: [
|
|
312
|
+
n && /* @__PURE__ */ e(qs, { name: n }),
|
|
313
|
+
/* @__PURE__ */ e(gs, { children: a }),
|
|
314
|
+
/* @__PURE__ */ e(Ps, { children: c }),
|
|
315
|
+
l && /* @__PURE__ */ e(Rs, { children: l })
|
|
316
|
+
] }), ge = /* @__PURE__ */ s("div")({
|
|
330
317
|
name: "Container",
|
|
331
318
|
class: "c14ielyq",
|
|
332
|
-
propsAsIs:
|
|
333
|
-
}),
|
|
319
|
+
propsAsIs: !1
|
|
320
|
+
}), xs = () => Ke, Ns = /* @__PURE__ */ s(xs())({
|
|
334
321
|
name: "QuestionScrollContainer",
|
|
335
322
|
class: "q1tlqx57",
|
|
336
|
-
propsAsIs:
|
|
337
|
-
}),
|
|
323
|
+
propsAsIs: !0
|
|
324
|
+
}), Os = /* @__PURE__ */ s("div")({
|
|
338
325
|
name: "TopShadow",
|
|
339
326
|
class: "t1hq58md",
|
|
340
|
-
propsAsIs:
|
|
341
|
-
}),
|
|
327
|
+
propsAsIs: !1
|
|
328
|
+
}), Ss = /* @__PURE__ */ s("div")({
|
|
342
329
|
name: "BottomShadow",
|
|
343
330
|
class: "b1c8nxcx",
|
|
344
|
-
propsAsIs:
|
|
345
|
-
}),
|
|
331
|
+
propsAsIs: !1
|
|
332
|
+
}), Vs = /* @__PURE__ */ s("div")({
|
|
346
333
|
name: "SponsorLogo",
|
|
347
334
|
class: "siozuc3",
|
|
348
|
-
propsAsIs:
|
|
349
|
-
}),
|
|
335
|
+
propsAsIs: !1
|
|
336
|
+
}), Pe = /* @__PURE__ */ s("div")({
|
|
350
337
|
name: "Content",
|
|
351
338
|
class: "cpnc44r",
|
|
352
|
-
propsAsIs:
|
|
353
|
-
}),
|
|
339
|
+
propsAsIs: !1
|
|
340
|
+
}), Ls = /* @__PURE__ */ s("div")({
|
|
354
341
|
name: "Title",
|
|
355
342
|
class: "tq7p3w0",
|
|
356
|
-
propsAsIs:
|
|
357
|
-
}),
|
|
343
|
+
propsAsIs: !1
|
|
344
|
+
}), js = /* @__PURE__ */ s("div")({
|
|
358
345
|
name: "OptionsWrap",
|
|
359
346
|
class: "o1jlfj9g",
|
|
360
|
-
propsAsIs:
|
|
361
|
-
}),
|
|
347
|
+
propsAsIs: !1
|
|
348
|
+
}), Re = /* @__PURE__ */ s("div")({
|
|
362
349
|
name: "Options",
|
|
363
350
|
class: "o84pmnd",
|
|
364
|
-
propsAsIs:
|
|
365
|
-
}),
|
|
351
|
+
propsAsIs: !1
|
|
352
|
+
}), Qs = () => be, Te = /* @__PURE__ */ s(Qs())({
|
|
366
353
|
name: "AlertContainer",
|
|
367
354
|
class: "a1dybjw9",
|
|
368
|
-
propsAsIs:
|
|
369
|
-
}),
|
|
355
|
+
propsAsIs: !0
|
|
356
|
+
}), Ws = /* @__PURE__ */ s("div")({
|
|
370
357
|
name: "EarlyPrediction",
|
|
371
358
|
class: "e1l05ict",
|
|
372
|
-
propsAsIs:
|
|
373
|
-
}),
|
|
359
|
+
propsAsIs: !1
|
|
360
|
+
}), Bs = () => E, Fs = /* @__PURE__ */ s(Bs())({
|
|
374
361
|
name: "EarlyPredictionIcon",
|
|
375
362
|
class: "ez9juex",
|
|
376
|
-
propsAsIs:
|
|
377
|
-
}),
|
|
363
|
+
propsAsIs: !0
|
|
364
|
+
}), zs = () => E, Ys = /* @__PURE__ */ s(zs())({
|
|
378
365
|
name: "SponsorIcon",
|
|
379
366
|
class: "s8p4aob",
|
|
380
|
-
propsAsIs:
|
|
381
|
-
})
|
|
382
|
-
const r$1 = /* @__PURE__ */ styled_default("button")({
|
|
367
|
+
propsAsIs: !0
|
|
368
|
+
}), Ms = /* @__PURE__ */ s("button")({
|
|
383
369
|
name: "ButtonContainer",
|
|
384
370
|
class: "b1b6dl8t",
|
|
385
|
-
propsAsIs:
|
|
386
|
-
}),
|
|
371
|
+
propsAsIs: !1
|
|
372
|
+
}), Us = /* @__PURE__ */ s("div")({
|
|
387
373
|
name: "ButtonPctWrap",
|
|
388
374
|
class: "b4iik8i",
|
|
389
|
-
propsAsIs:
|
|
390
|
-
}),
|
|
375
|
+
propsAsIs: !1
|
|
376
|
+
}), Ks = /* @__PURE__ */ s("div")({
|
|
391
377
|
name: "ButtonPct",
|
|
392
378
|
class: "b1gq1lnf",
|
|
393
|
-
propsAsIs:
|
|
394
|
-
}),
|
|
379
|
+
propsAsIs: !1
|
|
380
|
+
}), _s = /* @__PURE__ */ s("span")({
|
|
395
381
|
name: "ButtonBody",
|
|
396
382
|
class: "b1j65z51",
|
|
397
|
-
propsAsIs:
|
|
398
|
-
}),
|
|
383
|
+
propsAsIs: !1
|
|
384
|
+
}), Hs = /* @__PURE__ */ s("div")({
|
|
399
385
|
name: "IconContainer",
|
|
400
386
|
class: "i19tpfua",
|
|
401
|
-
propsAsIs:
|
|
402
|
-
}),
|
|
387
|
+
propsAsIs: !1
|
|
388
|
+
}), Zs = /* @__PURE__ */ s("div")({
|
|
403
389
|
name: "IconWrap",
|
|
404
390
|
class: "i1tubmma",
|
|
405
|
-
propsAsIs:
|
|
406
|
-
}),
|
|
391
|
+
propsAsIs: !1
|
|
392
|
+
}), De = /* @__PURE__ */ s("img")({
|
|
407
393
|
name: "Icon",
|
|
408
394
|
class: "i1grrgwj",
|
|
409
|
-
propsAsIs:
|
|
410
|
-
}),
|
|
395
|
+
propsAsIs: !1
|
|
396
|
+
}), Gs = () => De, Js = /* @__PURE__ */ s(Gs())({
|
|
411
397
|
name: "IconDefault",
|
|
412
398
|
class: "ibemyq8",
|
|
413
|
-
propsAsIs:
|
|
414
|
-
}),
|
|
399
|
+
propsAsIs: !0
|
|
400
|
+
}), Xs = () => De, en = /* @__PURE__ */ s(Xs())({
|
|
415
401
|
name: "IconCircle",
|
|
416
402
|
class: "i1dceht",
|
|
417
|
-
propsAsIs:
|
|
418
|
-
}),
|
|
403
|
+
propsAsIs: !0
|
|
404
|
+
}), sn = /* @__PURE__ */ s("span")({
|
|
419
405
|
name: "Title",
|
|
420
406
|
class: "t116q4vq",
|
|
421
|
-
propsAsIs:
|
|
422
|
-
}),
|
|
407
|
+
propsAsIs: !1
|
|
408
|
+
}), nn = /* @__PURE__ */ s("span")({
|
|
423
409
|
name: "Indicators",
|
|
424
410
|
class: "i17ajcu2",
|
|
425
|
-
propsAsIs:
|
|
426
|
-
}),
|
|
411
|
+
propsAsIs: !1
|
|
412
|
+
}), tn = /* @__PURE__ */ s("div")({
|
|
427
413
|
name: "PtsWrap",
|
|
428
414
|
class: "pu9kmlb",
|
|
429
|
-
propsAsIs:
|
|
430
|
-
}),
|
|
415
|
+
propsAsIs: !1
|
|
416
|
+
}), rn = /* @__PURE__ */ s("span")({
|
|
431
417
|
name: "Pts",
|
|
432
418
|
class: "p1j2j0s0",
|
|
433
|
-
propsAsIs:
|
|
434
|
-
}),
|
|
419
|
+
propsAsIs: !1
|
|
420
|
+
}), an = /* @__PURE__ */ s("span")({
|
|
435
421
|
name: "Percentage",
|
|
436
422
|
class: "p1mzj1sj",
|
|
437
|
-
propsAsIs:
|
|
438
|
-
}),
|
|
423
|
+
propsAsIs: !1
|
|
424
|
+
}), on = () => E, cn = /* @__PURE__ */ s(on())({
|
|
439
425
|
name: "CheckIcon",
|
|
440
426
|
class: "cichgz8",
|
|
441
|
-
propsAsIs:
|
|
442
|
-
})
|
|
443
|
-
|
|
444
|
-
[
|
|
445
|
-
[
|
|
446
|
-
[
|
|
447
|
-
[
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
if (t2 === QuestionType.POLL && i2)
|
|
427
|
+
propsAsIs: !0
|
|
428
|
+
}), ln = {
|
|
429
|
+
[G.CENTERED]: (n) => /* @__PURE__ */ e(Js, { "data-testid": "vote-icon", alt: "option-icon", src: n }),
|
|
430
|
+
[G.TRANSPARENT]: (n) => /* @__PURE__ */ e(Hs, { "data-testid": "vote-icon", children: /* @__PURE__ */ e(Zs, { style: { backgroundImage: `url(${n})` } }) }),
|
|
431
|
+
[G.ROUNDED]: (n) => /* @__PURE__ */ e(en, { "data-testid": "vote-icon", alt: "option-icon", src: n }),
|
|
432
|
+
[G.NONE]: () => null,
|
|
433
|
+
[G.UNSET]: () => null
|
|
434
|
+
}, dn = ({ questionType: n, hasCorrectAnswer: a, correct: c, youVoted: l, questionVoted: r }) => {
|
|
435
|
+
if (n === t.POLL && l)
|
|
451
436
|
return "voted";
|
|
452
|
-
if (
|
|
453
|
-
if (!
|
|
454
|
-
return
|
|
455
|
-
if (
|
|
456
|
-
return
|
|
457
|
-
if (
|
|
437
|
+
if (n === t.PREDICTION) {
|
|
438
|
+
if (!a && r)
|
|
439
|
+
return l ? "voted" : "unset";
|
|
440
|
+
if (a && r)
|
|
441
|
+
return l ? c ? "correct" : "incorrect" : "unset";
|
|
442
|
+
if (l)
|
|
458
443
|
return "correct";
|
|
459
444
|
}
|
|
460
|
-
return
|
|
461
|
-
},
|
|
462
|
-
questionType:
|
|
463
|
-
questionVoted:
|
|
464
|
-
correct:
|
|
465
|
-
hasCorrectAnswer:
|
|
466
|
-
questionStatus:
|
|
467
|
-
}) =>
|
|
468
|
-
var N;
|
|
445
|
+
return n === t.TRIVIA && r && l ? c ? "correct" : "incorrect" : "unset";
|
|
446
|
+
}, pn = ({
|
|
447
|
+
questionType: n,
|
|
448
|
+
questionVoted: a,
|
|
449
|
+
correct: c,
|
|
450
|
+
hasCorrectAnswer: l,
|
|
451
|
+
questionStatus: r
|
|
452
|
+
}) => n === t.TRIVIA ? a && c : n === t.PREDICTION ? a && c && l || r === se.RESOLVED && c : !1, un = Me(Ms), mn = (n) => {
|
|
469
453
|
const {
|
|
470
454
|
// option props
|
|
471
|
-
id:
|
|
472
|
-
icon:
|
|
473
|
-
text:
|
|
474
|
-
percentageDecimal:
|
|
475
|
-
points:
|
|
455
|
+
id: a,
|
|
456
|
+
icon: c,
|
|
457
|
+
text: l,
|
|
458
|
+
percentageDecimal: r,
|
|
459
|
+
points: p,
|
|
476
460
|
// extra props
|
|
477
|
-
onVote:
|
|
478
|
-
markThatVoted:
|
|
479
|
-
firstOption:
|
|
480
|
-
onPercentsAnimated:
|
|
481
|
-
youSelected:
|
|
482
|
-
youVoted:
|
|
483
|
-
questionVoted:
|
|
484
|
-
imageMode:
|
|
485
|
-
answerTimeExpired:
|
|
486
|
-
questionStatus:
|
|
487
|
-
isLoading:
|
|
488
|
-
questionType:
|
|
489
|
-
correct:
|
|
490
|
-
hasCorrectAnswer:
|
|
491
|
-
marketClosed:
|
|
492
|
-
isEarlyPrediction:
|
|
493
|
-
isAd:
|
|
494
|
-
webos:
|
|
495
|
-
} =
|
|
496
|
-
return
|
|
497
|
-
|
|
498
|
-
|
|
461
|
+
onVote: h,
|
|
462
|
+
markThatVoted: v,
|
|
463
|
+
firstOption: i,
|
|
464
|
+
onPercentsAnimated: m,
|
|
465
|
+
youSelected: b,
|
|
466
|
+
youVoted: g,
|
|
467
|
+
questionVoted: y,
|
|
468
|
+
imageMode: O,
|
|
469
|
+
answerTimeExpired: I,
|
|
470
|
+
questionStatus: T,
|
|
471
|
+
isLoading: q,
|
|
472
|
+
questionType: P,
|
|
473
|
+
correct: k,
|
|
474
|
+
hasCorrectAnswer: S,
|
|
475
|
+
marketClosed: C,
|
|
476
|
+
isEarlyPrediction: V,
|
|
477
|
+
isAd: f,
|
|
478
|
+
webos: F
|
|
479
|
+
} = n, [w, L] = $(0), z = dn(n), H = pn({ questionType: P, questionVoted: y, correct: k, hasCorrectAnswer: S, questionStatus: T }), x = C && P === t.PREDICTION, ne = y || x, Y = P === t.PREDICTION && !y && !C && !f, Z = y && !b && z !== "incorrect" && !g;
|
|
480
|
+
return ze(() => {
|
|
481
|
+
L(0), requestAnimationFrame(() => {
|
|
482
|
+
L(r);
|
|
499
483
|
});
|
|
500
|
-
}, [
|
|
501
|
-
|
|
484
|
+
}, [r]), /* @__PURE__ */ o(
|
|
485
|
+
un,
|
|
502
486
|
{
|
|
503
|
-
value:
|
|
504
|
-
webos:
|
|
505
|
-
autoFocus:
|
|
506
|
-
"data-selected":
|
|
507
|
-
"data-answer-state":
|
|
508
|
-
disabled:
|
|
509
|
-
"data-is-not-checked":
|
|
487
|
+
value: a,
|
|
488
|
+
webos: F,
|
|
489
|
+
autoFocus: i,
|
|
490
|
+
"data-selected": b,
|
|
491
|
+
"data-answer-state": z,
|
|
492
|
+
disabled: y || q || I || x,
|
|
493
|
+
"data-is-not-checked": Z,
|
|
510
494
|
"data-a": "intr",
|
|
511
|
-
onClick: (
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
),
|
|
495
|
+
onClick: (re) => {
|
|
496
|
+
v(
|
|
497
|
+
P === t.PREDICTION ? C : T === se.RESOLVED
|
|
498
|
+
), h(re);
|
|
515
499
|
},
|
|
516
|
-
"data-is-ad":
|
|
500
|
+
"data-is-ad": f,
|
|
517
501
|
children: [
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
|
|
502
|
+
/* @__PURE__ */ e(Us, { children: /* @__PURE__ */ e(
|
|
503
|
+
Ks,
|
|
520
504
|
{
|
|
521
|
-
"data-answer-state":
|
|
522
|
-
"data-is-not-checked":
|
|
523
|
-
style: { width: `${
|
|
505
|
+
"data-answer-state": z,
|
|
506
|
+
"data-is-not-checked": Z,
|
|
507
|
+
style: { width: `${ne ? w : 0}%` },
|
|
524
508
|
onTransitionEnd: () => {
|
|
525
|
-
|
|
509
|
+
x || m?.();
|
|
526
510
|
},
|
|
527
|
-
"data-is-ad":
|
|
511
|
+
"data-is-ad": f
|
|
528
512
|
}
|
|
529
513
|
) }),
|
|
530
|
-
/* @__PURE__ */
|
|
531
|
-
|
|
532
|
-
/* @__PURE__ */
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ o(_s, { "data-a": "intr", children: [
|
|
515
|
+
c && O && ln[O]?.(c),
|
|
516
|
+
/* @__PURE__ */ e(sn, { "data-a": "intr", children: l }),
|
|
517
|
+
Y && /* @__PURE__ */ o(tn, { children: [
|
|
518
|
+
p,
|
|
519
|
+
/* @__PURE__ */ e(rn, { children: "pts" })
|
|
536
520
|
] }),
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
/* @__PURE__ */
|
|
521
|
+
ne && /* @__PURE__ */ o(nn, { children: [
|
|
522
|
+
H && /* @__PURE__ */ e(cn, { name: V ? "selectedBetPack" : "selected" }),
|
|
523
|
+
/* @__PURE__ */ e(an, { children: /* @__PURE__ */ e(Ce, { value: r, suffix: "%" }) })
|
|
540
524
|
] })
|
|
541
525
|
] })
|
|
542
526
|
]
|
|
543
527
|
}
|
|
544
528
|
);
|
|
545
|
-
}
|
|
546
|
-
const t = () => v$2, c = /* @__PURE__ */ styled_default(t())({
|
|
529
|
+
}, hn = () => we, In = /* @__PURE__ */ s(hn())({
|
|
547
530
|
name: "ShowInContainer",
|
|
548
531
|
class: "sie6cqo",
|
|
549
|
-
propsAsIs:
|
|
550
|
-
}),
|
|
532
|
+
propsAsIs: !0
|
|
533
|
+
}), fn = /* @__PURE__ */ s("div")({
|
|
551
534
|
name: "WinBarContainer",
|
|
552
535
|
class: "wgizw4u",
|
|
553
|
-
propsAsIs:
|
|
554
|
-
}),
|
|
536
|
+
propsAsIs: !1
|
|
537
|
+
}), An = /* @__PURE__ */ s("div")({
|
|
555
538
|
name: "Content",
|
|
556
539
|
class: "c1l3ucjp",
|
|
557
|
-
propsAsIs:
|
|
558
|
-
}),
|
|
540
|
+
propsAsIs: !1
|
|
541
|
+
}), vn = /* @__PURE__ */ s("div")({
|
|
559
542
|
name: "Title",
|
|
560
543
|
class: "tx7j799",
|
|
561
|
-
propsAsIs:
|
|
562
|
-
}),
|
|
544
|
+
propsAsIs: !1
|
|
545
|
+
}), yn = () => E, Tn = /* @__PURE__ */ s(yn())({
|
|
563
546
|
name: "WinIcon",
|
|
564
547
|
class: "w4lwuj0",
|
|
565
|
-
propsAsIs:
|
|
566
|
-
}),
|
|
548
|
+
propsAsIs: !0
|
|
549
|
+
}), Cn = /* @__PURE__ */ s("div")({
|
|
567
550
|
name: "Points",
|
|
568
551
|
class: "po9i64o",
|
|
569
|
-
propsAsIs:
|
|
570
|
-
}),
|
|
552
|
+
propsAsIs: !1
|
|
553
|
+
}), $n = /* @__PURE__ */ s("span")({
|
|
571
554
|
name: "PointsCount",
|
|
572
555
|
class: "pe5g05h",
|
|
573
|
-
propsAsIs:
|
|
574
|
-
}),
|
|
556
|
+
propsAsIs: !1
|
|
557
|
+
}), En = /* @__PURE__ */ s("span")({
|
|
575
558
|
name: "PointsUnits",
|
|
576
559
|
class: "p1hdtpmb",
|
|
577
|
-
propsAsIs:
|
|
578
|
-
})
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
c,
|
|
560
|
+
propsAsIs: !1
|
|
561
|
+
}), bn = ({
|
|
562
|
+
title: n,
|
|
563
|
+
points: a,
|
|
564
|
+
isPlayingTimer: c,
|
|
565
|
+
isTimer: l,
|
|
566
|
+
animatePoints: r,
|
|
567
|
+
questionType: p,
|
|
568
|
+
timerDuration: h,
|
|
569
|
+
votedInCurrentRender: v,
|
|
570
|
+
percentsAnimated: i,
|
|
571
|
+
onTimerExpired: m
|
|
572
|
+
}) => /* @__PURE__ */ e(
|
|
573
|
+
In,
|
|
592
574
|
{
|
|
593
|
-
enabled:
|
|
594
|
-
animate:
|
|
595
|
-
children: /* @__PURE__ */
|
|
596
|
-
|
|
575
|
+
enabled: p === t.PREDICTION && v,
|
|
576
|
+
animate: i,
|
|
577
|
+
children: /* @__PURE__ */ o(
|
|
578
|
+
fn,
|
|
597
579
|
{
|
|
598
580
|
style: {
|
|
599
|
-
justifyContent:
|
|
581
|
+
justifyContent: p === t.PREDICTION ? "center" : "space-between"
|
|
600
582
|
},
|
|
601
583
|
children: [
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
/* @__PURE__ */
|
|
606
|
-
/* @__PURE__ */
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */
|
|
584
|
+
/* @__PURE__ */ o(An, { children: [
|
|
585
|
+
n && /* @__PURE__ */ e(vn, { children: n }),
|
|
586
|
+
a !== void 0 && p !== t.POLL && /* @__PURE__ */ o(B, { children: [
|
|
587
|
+
/* @__PURE__ */ e(Tn, { name: "icon-trophy" }),
|
|
588
|
+
/* @__PURE__ */ o(Cn, { children: [
|
|
589
|
+
/* @__PURE__ */ e($n, { children: r ? /* @__PURE__ */ e(Ce, { value: a, delay: 0.3 }) : a }),
|
|
590
|
+
/* @__PURE__ */ e(En, { children: "PTS" })
|
|
609
591
|
] })
|
|
610
592
|
] })
|
|
611
593
|
] }),
|
|
612
|
-
|
|
594
|
+
l && p !== t.PREDICTION && /* @__PURE__ */ e(Ue, { isPlaying: c, onTimerExpired: m, duration: h })
|
|
613
595
|
]
|
|
614
596
|
}
|
|
615
597
|
)
|
|
616
598
|
}
|
|
617
|
-
)
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
] }) }), ee = ({
|
|
630
|
-
openedQuestion: e2,
|
|
631
|
-
isLoading: T,
|
|
632
|
-
vote: j,
|
|
633
|
-
close: F2,
|
|
634
|
-
isEarlyPrediction: a2,
|
|
635
|
-
mastersApp: at2,
|
|
636
|
-
webos: ct
|
|
599
|
+
), wn = (n, a) => n === "already_voted" ? a === t.POLL ? "You’ve already answered this question on another device." : "You’ve already answered this question on another device. So the points for this answer won't tally." : "Something went wrong, please try again", Bn = () => /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ o(Pe, { children: [
|
|
600
|
+
/* @__PURE__ */ e(le, { loading: !0, style: { height: "40px", borderRadius: "100px" } }),
|
|
601
|
+
/* @__PURE__ */ e(le, { loading: !0, style: { height: "24px", margin: "16px 0" } }),
|
|
602
|
+
/* @__PURE__ */ e(Re, { children: Array.from({ length: 5 }).map((n, a) => /* @__PURE__ */ e(le, { loading: !0, style: { height: "44px" } }, a)) })
|
|
603
|
+
] }) }), Fn = ({
|
|
604
|
+
openedQuestion: n,
|
|
605
|
+
isLoading: a,
|
|
606
|
+
vote: c,
|
|
607
|
+
close: l,
|
|
608
|
+
isEarlyPrediction: r,
|
|
609
|
+
mastersApp: p,
|
|
610
|
+
webos: h
|
|
637
611
|
}) => {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
r2 === QuestionType.PREDICTION ? I2 && $(false) : v$12 === QuestionStatus.RESOLVED && $(false);
|
|
612
|
+
const v = n.subject, i = n.type, m = n.status, b = n.options?.options, g = n.marketClosed, y = n.id, O = ee(), I = ee(), T = p ? !1 : n?.adUnit === Ye.STANDART, [q, P] = $(!1), [k, S] = $(!1), [C, V] = $(!0), [f, F] = $(!1), [w, L] = $(!1), [z, H] = $(""), [x, ne] = $(""), [Y, Z] = $(!1), [re, qe] = $(!1), [ue, ke] = $(!1), { runAnimation: M, finished: me } = es();
|
|
613
|
+
_(() => {
|
|
614
|
+
me && l(y);
|
|
615
|
+
}, [l, me]), _(() => {
|
|
616
|
+
i === t.PREDICTION ? g && V(!1) : m === se.RESOLVED && V(!1);
|
|
644
617
|
}, []);
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
}, []),
|
|
648
|
-
|
|
649
|
-
}, [
|
|
650
|
-
|
|
651
|
-
|
|
618
|
+
const xe = N((u) => {
|
|
619
|
+
S(u), P(!0);
|
|
620
|
+
}, []), Ne = N(() => {
|
|
621
|
+
r && P(!1);
|
|
622
|
+
}, [r]), ae = ee(!1), he = N(() => {
|
|
623
|
+
I.current && clearTimeout(I.current), I.current = setTimeout(() => {
|
|
624
|
+
ke(!0), M({ delay: 5500 });
|
|
652
625
|
}, 4e3);
|
|
653
|
-
}, [
|
|
654
|
-
async (
|
|
655
|
-
if (!
|
|
656
|
-
const
|
|
657
|
-
|
|
626
|
+
}, [M]), Ie = N(
|
|
627
|
+
async (u) => {
|
|
628
|
+
if (!ae.current && (ae.current = !0, y)) {
|
|
629
|
+
const D = u.currentTarget.value;
|
|
630
|
+
H(D);
|
|
658
631
|
try {
|
|
659
|
-
await
|
|
660
|
-
} catch (
|
|
661
|
-
|
|
632
|
+
await c(y, D), T && he();
|
|
633
|
+
} catch (U) {
|
|
634
|
+
ne(wn(U.message, i)), H(""), console.error("Error while voting", U), ae.current = !1;
|
|
662
635
|
}
|
|
663
636
|
}
|
|
664
637
|
},
|
|
665
|
-
[
|
|
666
|
-
),
|
|
667
|
-
|
|
668
|
-
}, [
|
|
669
|
-
|
|
670
|
-
}, [
|
|
671
|
-
() => !!
|
|
672
|
-
[
|
|
673
|
-
),
|
|
674
|
-
() =>
|
|
675
|
-
[
|
|
638
|
+
[i, y, H, c, T, he]
|
|
639
|
+
), Oe = N(() => {
|
|
640
|
+
F(!0), M({ delay: 3500 });
|
|
641
|
+
}, [M]), Se = N(() => {
|
|
642
|
+
L(!0), M({ delay: 3500 });
|
|
643
|
+
}, [M]), d = n?.answers.find((u) => u.youVoted === !0), A = K(
|
|
644
|
+
() => !!n?.answers.find((u) => u.correct === !0),
|
|
645
|
+
[n]
|
|
646
|
+
), R = K(
|
|
647
|
+
() => n?.answers.find((u) => u.correct === !0),
|
|
648
|
+
[n]
|
|
676
649
|
);
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}, [
|
|
680
|
-
clearTimeout(
|
|
650
|
+
_(() => {
|
|
651
|
+
d && q && !re && (O.current = setTimeout(Se, 1e4), qe(!0));
|
|
652
|
+
}, [d]), _(() => () => {
|
|
653
|
+
clearTimeout(O.current), clearTimeout(I.current);
|
|
681
654
|
}, []);
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
t2,
|
|
702
|
-
v$12,
|
|
703
|
-
Z,
|
|
655
|
+
const ie = K(() => n ? n.answers.map((u) => ({
|
|
656
|
+
...u,
|
|
657
|
+
questionVoted: !!d,
|
|
658
|
+
youSelected: z === u.id,
|
|
659
|
+
isLoading: a,
|
|
660
|
+
hasCorrectAnswer: A,
|
|
661
|
+
questionType: n.type,
|
|
662
|
+
answerTimeExpired: f,
|
|
663
|
+
questionStatus: m,
|
|
664
|
+
imageMode: n.appearance?.images,
|
|
665
|
+
onVote: Ie
|
|
666
|
+
})) : [], [
|
|
667
|
+
A,
|
|
668
|
+
f,
|
|
669
|
+
a,
|
|
670
|
+
n,
|
|
671
|
+
d,
|
|
672
|
+
m,
|
|
673
|
+
Ie,
|
|
704
674
|
z
|
|
705
675
|
]);
|
|
706
|
-
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
}, [
|
|
710
|
-
const
|
|
711
|
-
if (
|
|
712
|
-
return
|
|
713
|
-
if (!(
|
|
714
|
-
return
|
|
715
|
-
}, [
|
|
716
|
-
const
|
|
676
|
+
_(() => {
|
|
677
|
+
const u = ie.some(({ percentageDecimal: U }) => U !== 0), D = d && i === t.PREDICTION;
|
|
678
|
+
x && (r || !u || g && D) && Z(!0);
|
|
679
|
+
}, [ie, x, r, g, i, d]);
|
|
680
|
+
const fe = b && (b.case === "trivia" || b.case === "prediction") ? b.value : void 0, j = m === se.RESOLVED && i === t.TRIVIA && !d && !C, oe = i === t.TRIVIA && k, ce = K(() => T ? !1 : i === t.PREDICTION ? r ? !1 : !!(d && !A || d && A && R?.youVoted) : !0, [i, d, A, R, r, T]), Ve = K(() => {
|
|
681
|
+
if (i === t.PREDICTION && d && (!A || A && R?.youVoted))
|
|
682
|
+
return d.points;
|
|
683
|
+
if (!(j || f))
|
|
684
|
+
return d ? d.correct ? d.pointsEarned : 0 : R?.points;
|
|
685
|
+
}, [f, d, R, j, i, A]), Le = K(() => i === t.PREDICTION && d ? A ? A && R?.youVoted ? "You won" : "" : "To win" : j || f ? "Time expired" : i === t.POLL ? "Time remaining" : d ? "You won" : "To win", [f, i, d, j, A, R]), je = !ce || ce && i === t.PREDICTION && q && !Y, Qe = (i === t.TRIVIA || i === t.PREDICTION) && d && A && R?.youVoted, We = d || j || oe || i === t.TRIVIA && m === se.RESOLVED && C, Be = !r && (f || w) || ue, Fe = () => {
|
|
686
|
+
const u = () => i === t.TRIVIA ? d?.correct ? `That's correct!
|
|
717
687
|
You chose wisely.` : `So close!
|
|
718
|
-
Better luck next time.` :
|
|
719
|
-
Please stay tuned for the next question.` :
|
|
720
|
-
return
|
|
721
|
-
|
|
688
|
+
Better luck next time.` : i === t.POLL ? `Thanks for answering.
|
|
689
|
+
Please stay tuned for the next question.` : i === t.PREDICTION ? "Stay tuned to see if your prediction was correct." : "", D = () => i === t.TRIVIA ? `Your Pick: ${R?.text}` : i === t.POLL || i === t.PREDICTION ? `Your Pick: ${d?.text}` : "", U = () => i === t.TRIVIA && b?.case === "trivia" ? b?.value.explanation : i === t.PREDICTION ? v : "";
|
|
690
|
+
return ue ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(
|
|
691
|
+
ks,
|
|
722
692
|
{
|
|
723
|
-
title:
|
|
724
|
-
description:
|
|
725
|
-
...
|
|
726
|
-
...
|
|
693
|
+
title: u(),
|
|
694
|
+
description: D(),
|
|
695
|
+
...d?.correct || i === t.POLL || i === t.PREDICTION ? { icon: "icon-correct" } : {},
|
|
696
|
+
...i === t.TRIVIA || i === t.PREDICTION ? { additionalDescription: U() } : {}
|
|
727
697
|
}
|
|
728
|
-
) }) : !
|
|
729
|
-
|
|
698
|
+
) }) : !r && (f || w) ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(
|
|
699
|
+
ps,
|
|
730
700
|
{
|
|
731
701
|
icon: "icon-check-circle",
|
|
732
702
|
title: "More to come...",
|
|
733
|
-
description:
|
|
703
|
+
description: w ? /* @__PURE__ */ o(B, { children: [
|
|
734
704
|
"Stay tuned for more questions ",
|
|
735
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ e("br", {}),
|
|
736
706
|
" and insights."
|
|
737
|
-
] }) : /* @__PURE__ */
|
|
707
|
+
] }) : /* @__PURE__ */ o(B, { children: [
|
|
738
708
|
"Watch for additional enhanced stream ",
|
|
739
|
-
/* @__PURE__ */
|
|
709
|
+
/* @__PURE__ */ e("br", {}),
|
|
740
710
|
" interactive experience."
|
|
741
711
|
] })
|
|
742
712
|
}
|
|
743
713
|
) }) : null;
|
|
744
714
|
};
|
|
745
|
-
return /* @__PURE__ */
|
|
746
|
-
|
|
747
|
-
/* @__PURE__ */
|
|
748
|
-
!
|
|
749
|
-
|
|
715
|
+
return /* @__PURE__ */ o(Ns, { children: [
|
|
716
|
+
r && /* @__PURE__ */ e(Os, {}),
|
|
717
|
+
/* @__PURE__ */ e(ge, { style: r ? { marginTop: "-40px" } : {}, children: /* @__PURE__ */ o(Pe, { children: [
|
|
718
|
+
!r && !T && /* @__PURE__ */ e(
|
|
719
|
+
ye,
|
|
750
720
|
{
|
|
751
|
-
feedbackMessages:
|
|
752
|
-
questionVoted: !!
|
|
753
|
-
questionVotedCorrectly:
|
|
754
|
-
questionType:
|
|
755
|
-
hasCorrectAnswer:
|
|
756
|
-
showExpiredNotification:
|
|
757
|
-
showClosedNotificationTrivia:
|
|
758
|
-
votedInCurrentRender:
|
|
759
|
-
votedAfterQuestionClosed:
|
|
760
|
-
enteredAnActiveQuestion:
|
|
761
|
-
marketClosed:
|
|
762
|
-
percentsAnimated:
|
|
763
|
-
voteErrorMessage:
|
|
764
|
-
votedAnswer:
|
|
721
|
+
feedbackMessages: fe,
|
|
722
|
+
questionVoted: !!d,
|
|
723
|
+
questionVotedCorrectly: d?.correct,
|
|
724
|
+
questionType: i,
|
|
725
|
+
hasCorrectAnswer: A,
|
|
726
|
+
showExpiredNotification: j,
|
|
727
|
+
showClosedNotificationTrivia: oe,
|
|
728
|
+
votedInCurrentRender: q,
|
|
729
|
+
votedAfterQuestionClosed: k,
|
|
730
|
+
enteredAnActiveQuestion: C,
|
|
731
|
+
marketClosed: g,
|
|
732
|
+
percentsAnimated: Y,
|
|
733
|
+
voteErrorMessage: x,
|
|
734
|
+
votedAnswer: d
|
|
765
735
|
}
|
|
766
736
|
),
|
|
767
|
-
|
|
768
|
-
|
|
737
|
+
ce && /* @__PURE__ */ e(
|
|
738
|
+
bn,
|
|
769
739
|
{
|
|
770
|
-
title:
|
|
771
|
-
points:
|
|
772
|
-
onTimerExpired:
|
|
773
|
-
questionType:
|
|
774
|
-
isTimer: !
|
|
775
|
-
isPlayingTimer: !
|
|
776
|
-
animatePoints:
|
|
777
|
-
timerDuration:
|
|
778
|
-
votedInCurrentRender:
|
|
779
|
-
percentsAnimated:
|
|
740
|
+
title: Le,
|
|
741
|
+
points: Ve,
|
|
742
|
+
onTimerExpired: Oe,
|
|
743
|
+
questionType: n.type,
|
|
744
|
+
isTimer: !a,
|
|
745
|
+
isPlayingTimer: !d,
|
|
746
|
+
animatePoints: Qe,
|
|
747
|
+
timerDuration: We ? 0 : Number(n?.appearance?.autoHideInterval || "30"),
|
|
748
|
+
votedInCurrentRender: q,
|
|
749
|
+
percentsAnimated: Y
|
|
780
750
|
}
|
|
781
751
|
),
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
/* @__PURE__ */
|
|
752
|
+
Be ? Fe() : /* @__PURE__ */ o(B, { children: [
|
|
753
|
+
r && /* @__PURE__ */ o(Ws, { children: [
|
|
754
|
+
/* @__PURE__ */ e(Fs, { name: "iconEarlyPrediction" }),
|
|
785
755
|
"EARLY PREDICTION"
|
|
786
756
|
] }),
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
|
|
789
|
-
|
|
757
|
+
/* @__PURE__ */ e(Ls, { style: je ? { marginTop: 0 } : {}, children: v }),
|
|
758
|
+
r && /* @__PURE__ */ e(
|
|
759
|
+
ye,
|
|
790
760
|
{
|
|
791
|
-
feedbackMessages:
|
|
792
|
-
questionVoted: !!
|
|
793
|
-
questionVotedCorrectly:
|
|
794
|
-
questionType:
|
|
795
|
-
hasCorrectAnswer:
|
|
796
|
-
showExpiredNotification:
|
|
797
|
-
showClosedNotificationTrivia:
|
|
798
|
-
votedInCurrentRender:
|
|
799
|
-
votedAfterQuestionClosed:
|
|
800
|
-
enteredAnActiveQuestion:
|
|
801
|
-
marketClosed:
|
|
802
|
-
percentsAnimated:
|
|
803
|
-
voteErrorMessage:
|
|
804
|
-
isEarlyPrediction:
|
|
805
|
-
correctAnswer:
|
|
806
|
-
votedAnswer:
|
|
807
|
-
onAnimationEnd:
|
|
761
|
+
feedbackMessages: fe,
|
|
762
|
+
questionVoted: !!d,
|
|
763
|
+
questionVotedCorrectly: d?.correct,
|
|
764
|
+
questionType: i,
|
|
765
|
+
hasCorrectAnswer: A,
|
|
766
|
+
showExpiredNotification: j,
|
|
767
|
+
showClosedNotificationTrivia: oe,
|
|
768
|
+
votedInCurrentRender: q,
|
|
769
|
+
votedAfterQuestionClosed: k,
|
|
770
|
+
enteredAnActiveQuestion: C,
|
|
771
|
+
marketClosed: g,
|
|
772
|
+
percentsAnimated: Y,
|
|
773
|
+
voteErrorMessage: x,
|
|
774
|
+
isEarlyPrediction: r,
|
|
775
|
+
correctAnswer: R,
|
|
776
|
+
votedAnswer: d,
|
|
777
|
+
onAnimationEnd: Ne
|
|
808
778
|
}
|
|
809
779
|
),
|
|
810
|
-
/* @__PURE__ */
|
|
811
|
-
/* @__PURE__ */
|
|
812
|
-
|
|
780
|
+
/* @__PURE__ */ o(js, { children: [
|
|
781
|
+
/* @__PURE__ */ e(Re, { children: ie.sort((u, D) => u.id > D.id ? 1 : -1).map((u, D) => /* @__PURE__ */ e(
|
|
782
|
+
mn,
|
|
813
783
|
{
|
|
814
|
-
...
|
|
815
|
-
firstOption:
|
|
816
|
-
markThatVoted:
|
|
817
|
-
onPercentsAnimated: () =>
|
|
818
|
-
votedAfterQuestionClosed:
|
|
819
|
-
enteredAnActiveQuestion:
|
|
820
|
-
marketClosed:
|
|
821
|
-
isEarlyPrediction:
|
|
822
|
-
isAd:
|
|
823
|
-
webos:
|
|
784
|
+
...u,
|
|
785
|
+
firstOption: D === 0,
|
|
786
|
+
markThatVoted: xe,
|
|
787
|
+
onPercentsAnimated: () => Z(!0),
|
|
788
|
+
votedAfterQuestionClosed: k,
|
|
789
|
+
enteredAnActiveQuestion: C,
|
|
790
|
+
marketClosed: g,
|
|
791
|
+
isEarlyPrediction: r,
|
|
792
|
+
isAd: T,
|
|
793
|
+
webos: h
|
|
824
794
|
},
|
|
825
|
-
|
|
795
|
+
u.id
|
|
826
796
|
)) }),
|
|
827
|
-
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
/* @__PURE__ */
|
|
797
|
+
r && /* @__PURE__ */ o(B, { children: [
|
|
798
|
+
/* @__PURE__ */ e(Ss, {}),
|
|
799
|
+
/* @__PURE__ */ e(Vs, { children: /* @__PURE__ */ e(Ys, { name: "mastersLogoWhite" }) })
|
|
830
800
|
] })
|
|
831
801
|
] })
|
|
832
802
|
] })
|
|
@@ -834,17 +804,17 @@ Please stay tuned for the next question.` : r2 === QuestionType.PREDICTION ? "St
|
|
|
834
804
|
] });
|
|
835
805
|
};
|
|
836
806
|
export {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
807
|
+
Ln as C,
|
|
808
|
+
Fn as Q,
|
|
809
|
+
jn as S,
|
|
810
|
+
Bn as Z,
|
|
811
|
+
Ee as a,
|
|
812
|
+
Ke as c,
|
|
813
|
+
Qn as d,
|
|
814
|
+
be as f,
|
|
815
|
+
Vn as l,
|
|
816
|
+
Sn as m,
|
|
817
|
+
$e as n,
|
|
818
|
+
On as p,
|
|
819
|
+
es as y
|
|
850
820
|
};
|