@streamlayer/react 1.23.1 → 1.24.0

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