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