@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.
Files changed (159) hide show
  1. package/lib/cjs/Question.js +1 -1
  2. package/lib/cjs/advertisement.js +28 -223
  3. package/lib/cjs/analytics.js +1 -1
  4. package/lib/cjs/auth.js +1 -1
  5. package/lib/cjs/bet-pack.js +1 -1
  6. package/lib/cjs/feature.js +1 -1
  7. package/lib/cjs/gamification-feature.js +1 -1
  8. package/lib/cjs/gamification-feature2.js +1 -1
  9. package/lib/cjs/hooks-WfHlJH12.js +1 -1
  10. package/lib/cjs/index-eShKGO10.js +1 -5
  11. package/lib/cjs/index.js +1 -1
  12. package/lib/cjs/index10.js +1 -1
  13. package/lib/cjs/index11.js +3 -4
  14. package/lib/cjs/index12.js +1 -1
  15. package/lib/cjs/index13.js +3 -1
  16. package/lib/cjs/index14.js +1 -1
  17. package/lib/cjs/index15.js +1 -1
  18. package/lib/cjs/index16.js +3 -5
  19. package/lib/cjs/index2.js +1 -1
  20. package/lib/cjs/index3.js +1 -1
  21. package/lib/cjs/index4.js +3 -5
  22. package/lib/cjs/index5.js +1 -1
  23. package/lib/cjs/index6.js +1 -1
  24. package/lib/cjs/index7.js +1 -1
  25. package/lib/cjs/index8.js +1 -1
  26. package/lib/cjs/index9.js +1 -1
  27. package/lib/cjs/insight.js +1 -1
  28. package/lib/cjs/masters.js +1 -1
  29. package/lib/cjs/masters2.js +1 -13
  30. package/lib/cjs/notification.js +1 -1
  31. package/lib/cjs/pause-ad.js +1 -1
  32. package/lib/cjs/points.js +1 -1
  33. package/lib/cjs/polymarket.js +5 -15
  34. package/lib/cjs/sl-types.js +1 -15
  35. package/lib/cjs/storage.js +1 -1
  36. package/lib/cjs/style.css +1 -0
  37. package/lib/cjs/theme.js +1 -17
  38. package/lib/cjs/useStreamLayerApp.js +1 -1
  39. package/lib/cjs/useStreamLayerApp2.js +3 -17
  40. package/lib/cjs/utils.js +1 -47
  41. package/lib/classic/cjs/Question.js +1 -1
  42. package/lib/classic/cjs/advertisement.js +28 -223
  43. package/lib/classic/cjs/analytics.js +1 -1
  44. package/lib/classic/cjs/auth.js +1 -1
  45. package/lib/classic/cjs/bet-pack.js +3 -5
  46. package/lib/classic/cjs/feature.js +1 -1
  47. package/lib/classic/cjs/gamification-feature.js +1 -1
  48. package/lib/classic/cjs/hooks-WfHlJH12.js +1 -1
  49. package/lib/classic/cjs/index-eShKGO10.js +1 -5
  50. package/lib/classic/cjs/index.js +1 -1
  51. package/lib/classic/cjs/index10.js +1 -1
  52. package/lib/classic/cjs/index11.js +1 -1
  53. package/lib/classic/cjs/index12.js +1 -1
  54. package/lib/classic/cjs/index13.js +3 -4
  55. package/lib/classic/cjs/index2.js +3 -5
  56. package/lib/classic/cjs/index3.js +1 -1
  57. package/lib/classic/cjs/index4.js +1 -1
  58. package/lib/classic/cjs/index5.js +1 -1
  59. package/lib/classic/cjs/index6.js +1 -1
  60. package/lib/classic/cjs/index7.js +1 -1
  61. package/lib/classic/cjs/index8.js +1 -1
  62. package/lib/classic/cjs/index9.js +3 -1
  63. package/lib/classic/cjs/insight.js +1 -1
  64. package/lib/classic/cjs/notification.js +1 -1
  65. package/lib/classic/cjs/notification2.js +1 -1
  66. package/lib/classic/cjs/pause-ad.js +1 -1
  67. package/lib/classic/cjs/points.js +1 -1
  68. package/lib/classic/cjs/polymarket.js +5 -15
  69. package/lib/classic/cjs/sl-types.js +1 -15
  70. package/lib/classic/cjs/style.css +1 -0
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +3 -17
  73. package/lib/classic/cjs/utils.js +1 -47
  74. package/lib/classic/es/Question.js +277 -264
  75. package/lib/classic/es/advertisement.js +34990 -18881
  76. package/lib/classic/es/analytics.js +58 -56
  77. package/lib/classic/es/auth.js +14 -8
  78. package/lib/classic/es/bet-pack.js +2448 -2419
  79. package/lib/classic/es/feature.js +93 -48
  80. package/lib/classic/es/gamification-feature.js +2 -2
  81. package/lib/classic/es/hooks-WfHlJH12.js +78 -78
  82. package/lib/classic/es/index-eShKGO10.js +948 -948
  83. package/lib/classic/es/index.js +13 -13
  84. package/lib/classic/es/index10.js +68 -67
  85. package/lib/classic/es/index11.js +2903 -2159
  86. package/lib/classic/es/index12.js +124 -119
  87. package/lib/classic/es/index13.js +581 -566
  88. package/lib/classic/es/index2.js +2098 -1763
  89. package/lib/classic/es/index3.js +11 -11
  90. package/lib/classic/es/index4.js +127 -127
  91. package/lib/classic/es/index5.js +3 -4
  92. package/lib/classic/es/index6.js +8 -3
  93. package/lib/classic/es/index7.js +6 -5
  94. package/lib/classic/es/index8.js +8 -7
  95. package/lib/classic/es/index9.js +225 -223
  96. package/lib/classic/es/insight.js +58 -53
  97. package/lib/classic/es/notification.js +3 -3
  98. package/lib/classic/es/notification2.js +764 -722
  99. package/lib/classic/es/pause-ad.js +190 -167
  100. package/lib/classic/es/points.js +55 -48
  101. package/lib/classic/es/polymarket.js +4209 -4031
  102. package/lib/classic/es/sl-types.js +193 -125
  103. package/lib/classic/es/useStreamLayerApp.js +2 -2
  104. package/lib/classic/es/useStreamLayerApp2.js +9714 -7603
  105. package/lib/classic/es/utils.js +28 -28
  106. package/lib/classic/index.d.ts +1 -0
  107. package/lib/classic/style.css +1 -0
  108. package/lib/dist/cjs/gamification-feature.js +1 -1
  109. package/lib/dist/cjs/index-eShKGO10.js +1 -5
  110. package/lib/dist/cjs/index.js +1 -1
  111. package/lib/dist/cjs/masters.js +3 -77
  112. package/lib/dist/es/gamification-feature.js +2 -2
  113. package/lib/dist/es/index-eShKGO10.js +948 -948
  114. package/lib/dist/es/index.js +7 -8
  115. package/lib/dist/es/masters.js +18197 -14750
  116. package/lib/dist/index.d.ts +12 -2
  117. package/lib/dist/style.css +1 -1
  118. package/lib/es/Question.js +108 -106
  119. package/lib/es/advertisement.js +34990 -18881
  120. package/lib/es/analytics.js +58 -56
  121. package/lib/es/auth.js +14 -8
  122. package/lib/es/bet-pack.js +29 -17
  123. package/lib/es/feature.js +93 -48
  124. package/lib/es/gamification-feature.js +2 -2
  125. package/lib/es/gamification-feature2.js +2 -2
  126. package/lib/es/hooks-WfHlJH12.js +78 -78
  127. package/lib/es/index-eShKGO10.js +948 -948
  128. package/lib/es/index.js +14 -13
  129. package/lib/es/index10.js +176 -166
  130. package/lib/es/index11.js +581 -566
  131. package/lib/es/index12.js +124 -119
  132. package/lib/es/index13.js +225 -223
  133. package/lib/es/index14.js +68 -67
  134. package/lib/es/index15.js +2903 -2159
  135. package/lib/es/index16.js +1005 -806
  136. package/lib/es/index2.js +1117 -984
  137. package/lib/es/index3.js +3 -4
  138. package/lib/es/index4.js +2424 -2407
  139. package/lib/es/index5.js +11 -11
  140. package/lib/es/index6.js +127 -127
  141. package/lib/es/index7.js +8 -3
  142. package/lib/es/index8.js +5 -5
  143. package/lib/es/index9.js +8 -7
  144. package/lib/es/insight.js +58 -53
  145. package/lib/es/masters.js +6 -5
  146. package/lib/es/masters2.js +696 -559
  147. package/lib/es/notification.js +696 -655
  148. package/lib/es/pause-ad.js +190 -167
  149. package/lib/es/points.js +56 -49
  150. package/lib/es/polymarket.js +4209 -4031
  151. package/lib/es/sl-types.js +200 -132
  152. package/lib/es/storage.js +75 -74
  153. package/lib/es/theme.js +177 -31
  154. package/lib/es/useStreamLayerApp.js +2 -2
  155. package/lib/es/useStreamLayerApp2.js +9714 -7603
  156. package/lib/es/utils.js +28 -28
  157. package/lib/index.d.ts +1 -0
  158. package/lib/style.css +1 -1
  159. package/package.json +23 -20
@@ -1,817 +1,832 @@
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, 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 "./index8.js";
5
+ import { B as B1 } from "./index4.js";
6
+ import { Q as QuestionType, a as QuestionImages, c as QuestionStatus, b as AdUnit } from "./useStreamLayerApp2.js";
7
+ import { O, L } from "./index10.js";
8
+ import { d as d$6 } from "./index3.js";
9
+ const p$4 = /* @__PURE__ */ styled_default("div")({
10
10
  name: "SDKContainer",
11
11
  class: "sopqfe6",
12
- propsAsIs: !1
13
- }), Ge = /* @__PURE__ */ n("div")({
12
+ propsAsIs: false
13
+ }), c$4 = /* @__PURE__ */ styled_default("div")({
14
14
  name: "SDKScrollContainer",
15
15
  class: "s102vcph",
16
- propsAsIs: !1
17
- }), be = /* @__PURE__ */ n("div")({
16
+ propsAsIs: false
17
+ }), n$4 = /* @__PURE__ */ styled_default("div")({
18
18
  name: "SDKContentContainer",
19
19
  class: "s1meqjjv",
20
- propsAsIs: !1
21
- }), Je = () => be, we = /* @__PURE__ */ n(Je())({
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: !0
25
- }), Xe = () => we, Fn = /* @__PURE__ */ n(Xe())({
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: !0
29
- }), Wn = /* @__PURE__ */ n("div")({
28
+ propsAsIs: true
29
+ }), l$4 = /* @__PURE__ */ styled_default("div")({
30
30
  name: "TabsContainer",
31
31
  class: "tysxwr6",
32
- propsAsIs: !1
33
- }), Ze = () => be, Bn = /* @__PURE__ */ n(Ze())({
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: !0
37
- }), es = () => we, Yn = /* @__PURE__ */ n(es())({
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: !0
41
- }), zn = /* @__PURE__ */ n("div")({
40
+ propsAsIs: true
41
+ }), d$5 = /* @__PURE__ */ styled_default("div")({
42
42
  name: "UserSummaryContainer",
43
43
  class: "u1552n3j",
44
- propsAsIs: !1
44
+ propsAsIs: false
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 {
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
- ts(this, "observers", /* @__PURE__ */ new Set());
51
+ u$4(this, "observers", /* @__PURE__ */ new Set());
50
52
  }
51
- subscribe(t) {
52
- this.observers.add(t);
53
+ subscribe(e2) {
54
+ this.observers.add(e2);
53
55
  }
54
- unsubscribe(t) {
55
- this.observers.delete(t);
56
+ unsubscribe(e2) {
57
+ this.observers.delete(e2);
56
58
  }
57
- notify(t) {
58
- this.observers.forEach((r) => r(t));
59
+ notify(e2) {
60
+ this.observers.forEach((s) => s(e2));
59
61
  }
60
62
  };
61
- const X = new is(), rs = { hiding: !1, finished: !1 }, os = () => {
62
- const [s, t] = b(rs), r = ee(null);
63
- H(() => {
64
- const p = (h) => {
65
- t(h);
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 X.subscribe(p), () => {
68
- X.unsubscribe(p);
69
+ return n$3.subscribe(r2), () => {
70
+ n$3.unsubscribe(r2);
69
71
  };
70
72
  }, []);
71
- const l = j((p) => {
72
- 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]);
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
- ...s,
81
- runAnimation: l,
82
- onAnimationEnd: o
82
+ ...t2,
83
+ runAnimation: c2,
84
+ onAnimationEnd: f2
83
85
  };
84
- }, as = /* @__PURE__ */ n("div")({
86
+ };
87
+ const u$3 = /* @__PURE__ */ styled_default("div")({
85
88
  name: "Container",
86
89
  class: "c1pgyo67",
87
- propsAsIs: !1
88
- }), cs = "sx17qu6", ds = "h1692c5m", ge = ({
89
- children: s,
90
- style: t,
91
- className: r,
92
- enabled: l = !0,
93
- hiding: o,
94
- onAnimationEnd: p
95
- }) => /* @__PURE__ */ e(as, {
96
- style: t,
97
- className: ue(r, l && cs, l && o && ds),
98
- onAnimationEnd: p,
99
- children: s
100
- }), ls = () => ge, ps = /* @__PURE__ */ n(ls())({
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: !0
104
- }), Pe = ({
105
- children: s,
106
- style: t,
107
- enabled: r,
108
- animate: l,
109
- ...o
106
+ propsAsIs: true
107
+ }), v$2 = ({
108
+ children: r2,
109
+ style: e2,
110
+ enabled: o2,
111
+ animate: t2,
112
+ ...s
110
113
  }) => {
111
- const p = ee(null);
112
- return /* @__PURE__ */ e(ps, {
113
- ...o,
114
- enabled: r && l,
114
+ const n2 = useRef(null);
115
+ return /* @__PURE__ */ jsx(y$2, {
116
+ ...s,
117
+ enabled: o2 && t2,
115
118
  style: {
116
- ...t,
119
+ ...e2,
117
120
  ...(() => {
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
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__ */ e("div", {
125
- ref: p,
126
- children: s
127
+ children: /* @__PURE__ */ jsx("div", {
128
+ ref: n2,
129
+ children: r2
127
130
  })
128
131
  });
129
- }, us = /* @__PURE__ */ n("div")({
132
+ };
133
+ const t$3 = /* @__PURE__ */ styled_default("div")({
130
134
  name: "Container",
131
135
  class: "c1gcvmcj",
132
- propsAsIs: !1
133
- }), ms = /* @__PURE__ */ n("div")({
136
+ propsAsIs: false
137
+ }), p$3 = /* @__PURE__ */ styled_default("div")({
134
138
  name: "Title",
135
139
  class: "tnr592a",
136
- propsAsIs: !1
137
- }), hs = /* @__PURE__ */ n("div")({
140
+ propsAsIs: false
141
+ }), r$5 = /* @__PURE__ */ styled_default("div")({
138
142
  name: "Description",
139
143
  class: "d1e8jqpv",
140
- propsAsIs: !1
141
- }), Is = () => w, vs = /* @__PURE__ */ n(Is())({
144
+ propsAsIs: false
145
+ }), n$2 = () => B1, a$4 = /* @__PURE__ */ styled_default(n$2())({
142
146
  name: "Icon",
143
147
  class: "i1vs651k",
144
- 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())({
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: !0
153
- }), B = /* @__PURE__ */ n("div")({
158
+ propsAsIs: true
159
+ }), f$3 = /* @__PURE__ */ styled_default("div")({
154
160
  name: "FeedbackContainer",
155
161
  class: "fbhorgl",
156
- propsAsIs: !1
157
- }), ye = "s1g20ja7", Cs = /* @__PURE__ */ n("div")({
162
+ propsAsIs: false
163
+ }), m$2 = "s1g20ja7", k = /* @__PURE__ */ styled_default("div")({
158
164
  name: "Container",
159
165
  class: "c455ozj",
160
- propsAsIs: !1
161
- }), Ts = () => w, fe = /* @__PURE__ */ n(Ts())({
166
+ propsAsIs: false
167
+ }), o = () => B1, b$2 = /* @__PURE__ */ styled_default(o())({
162
168
  name: "IconPrediction",
163
169
  class: "i1913njx",
164
- propsAsIs: !0
165
- }), Z = /* @__PURE__ */ n("div")({
170
+ propsAsIs: true
171
+ }), I$3 = /* @__PURE__ */ styled_default("div")({
166
172
  name: "FeedbackIconWrap",
167
173
  class: "fzfk69z",
168
- propsAsIs: !1
169
- }), ie = /* @__PURE__ */ n("div")({
174
+ propsAsIs: false
175
+ }), F = /* @__PURE__ */ styled_default("div")({
170
176
  name: "FeedbackHeader",
171
177
  class: "fx87qaj",
172
- propsAsIs: !1
173
- }), $s = /* @__PURE__ */ n("span")({
178
+ propsAsIs: false
179
+ }), A$3 = /* @__PURE__ */ styled_default("span")({
174
180
  name: "FeedbackTitle",
175
181
  class: "fvek9ew",
176
- propsAsIs: !1
177
- }), Y = /* @__PURE__ */ n("span")({
182
+ propsAsIs: false
183
+ }), e$1 = /* @__PURE__ */ styled_default("span")({
178
184
  name: "FeedbackDescription",
179
185
  class: "f1kbtp09",
180
- propsAsIs: !1
181
- }), Es = /* @__PURE__ */ n("div")({
186
+ propsAsIs: false
187
+ }), D = /* @__PURE__ */ styled_default("div")({
182
188
  name: "FeedbackTitleWrap",
183
189
  class: "f4i8rro",
184
- propsAsIs: !1
185
- }), bs = /* @__PURE__ */ n("div")({
190
+ propsAsIs: false
191
+ }), v$1 = /* @__PURE__ */ styled_default("div")({
186
192
  name: "FeedbackResultDescriptionWrap",
187
193
  class: "fqyssr",
188
- propsAsIs: !1
189
- }), ws = () => Y, gs = /* @__PURE__ */ n(ws())({
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: !0
193
- }), Ps = () => Y, Rs = /* @__PURE__ */ n(Ps())({
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: !0
197
- }), pe = /* @__PURE__ */ n("div")({
202
+ propsAsIs: true
203
+ }), y$1 = /* @__PURE__ */ styled_default("div")({
198
204
  name: "FeedbackText",
199
205
  class: "f1pxh3a6",
200
- propsAsIs: !1
201
- }), Ds = /* @__PURE__ */ n("span")({
206
+ propsAsIs: false
207
+ }), W = /* @__PURE__ */ styled_default("span")({
202
208
  name: "DynamicWrap",
203
209
  class: "d1afvufn",
204
- propsAsIs: !1
205
- }), qs = /* @__PURE__ */ n("div")({
210
+ propsAsIs: false
211
+ }), h$1 = /* @__PURE__ */ styled_default("div")({
206
212
  name: "EarlyFeedbackDescription",
207
213
  class: "eq8u24d",
208
- propsAsIs: !1
209
- }), Ce = ({
210
- feedbackMessages: s,
211
- questionVotedCorrectly: t,
212
- questionVoted: r,
213
- questionType: l,
214
- hasCorrectAnswer: o,
215
- showExpiredNotification: p,
216
- 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
+ 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 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,
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: 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 })
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
- !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." })
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
- !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." })
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
- 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." })
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
- !I && k && /* @__PURE__ */ d(B, { children: [
262
- !m && /* @__PURE__ */ e(fe, { name: "icon-prediction" }),
263
- /* @__PURE__ */ d(gs, { children: [
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__ */ e(Ds, { children: "We’ll notify you of the result." })
272
+ /* @__PURE__ */ jsx(W, { children: "We’ll notify you of the result." })
266
273
  ] })
267
274
  ] }),
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." })
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
- !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: [
276
- /* @__PURE__ */ e("div", { children: "So close!" }),
277
- /* @__PURE__ */ e("div", { children: "Better luck next time" })
278
- ] }) : /* @__PURE__ */ d(z, { children: [
279
- /* @__PURE__ */ e("div", { children: "That’s correct!" }),
280
- /* @__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: [
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
- y == null ? void 0 : y.text
292
+ T == null ? void 0 : T.text
286
293
  ] }),
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 })
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
- }, xs = /* @__PURE__ */ n("div")({
301
+ };
302
+ const t$2 = /* @__PURE__ */ styled_default("div")({
295
303
  name: "Container",
296
304
  class: "c1hygj0s",
297
- propsAsIs: !1
298
- }), ks = /* @__PURE__ */ n("div")({
305
+ propsAsIs: false
306
+ }), a$3 = /* @__PURE__ */ styled_default("div")({
299
307
  name: "Title",
300
308
  class: "t1r84tez",
301
- propsAsIs: !1
302
- }), Os = /* @__PURE__ */ n("div")({
309
+ propsAsIs: false
310
+ }), c$2 = /* @__PURE__ */ styled_default("div")({
303
311
  name: "Description",
304
312
  class: "d1aj1a7k",
305
- propsAsIs: !1
306
- }), Ns = /* @__PURE__ */ n("div")({
313
+ propsAsIs: false
314
+ }), r$3 = /* @__PURE__ */ styled_default("div")({
307
315
  name: "AdditionalDescription",
308
316
  class: "ax09ezs",
309
- propsAsIs: !1
310
- }), Ss = () => w, Vs = /* @__PURE__ */ n(Ss())({
317
+ propsAsIs: false
318
+ }), n$1 = () => B1, p$1 = /* @__PURE__ */ styled_default(n$1())({
311
319
  name: "Icon",
312
320
  class: "inkrac",
313
- 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")({
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: !1
323
- }), Ls = () => Ge, Qs = /* @__PURE__ */ n(Ls())({
332
+ propsAsIs: false
333
+ }), e = () => c$4, I$2 = /* @__PURE__ */ styled_default(e())({
324
334
  name: "QuestionScrollContainer",
325
335
  class: "q1tlqx57",
326
- propsAsIs: !0
327
- }), Fs = /* @__PURE__ */ n("div")({
336
+ propsAsIs: true
337
+ }), A$2 = /* @__PURE__ */ styled_default("div")({
328
338
  name: "TopShadow",
329
339
  class: "t1hq58md",
330
- propsAsIs: !1
331
- }), Ws = /* @__PURE__ */ n("div")({
340
+ propsAsIs: false
341
+ }), f$2 = /* @__PURE__ */ styled_default("div")({
332
342
  name: "BottomShadow",
333
343
  class: "b1c8nxcx",
334
- propsAsIs: !1
335
- }), Bs = /* @__PURE__ */ n("div")({
344
+ propsAsIs: false
345
+ }), S = /* @__PURE__ */ styled_default("div")({
336
346
  name: "SponsorLogo",
337
347
  class: "siozuc3",
338
- propsAsIs: !1
339
- }), De = /* @__PURE__ */ n("div")({
348
+ propsAsIs: false
349
+ }), v = /* @__PURE__ */ styled_default("div")({
340
350
  name: "Content",
341
351
  class: "cpnc44r",
342
- propsAsIs: !1
343
- }), Ys = /* @__PURE__ */ n("div")({
352
+ propsAsIs: false
353
+ }), x = /* @__PURE__ */ styled_default("div")({
344
354
  name: "Title",
345
355
  class: "tq7p3w0",
346
- propsAsIs: !1
347
- }), zs = /* @__PURE__ */ n("div")({
356
+ propsAsIs: false
357
+ }), C$1 = /* @__PURE__ */ styled_default("div")({
348
358
  name: "OptionsWrap",
349
359
  class: "o1jlfj9g",
350
- propsAsIs: !1
351
- }), qe = /* @__PURE__ */ n("div")({
360
+ propsAsIs: false
361
+ }), u$1 = /* @__PURE__ */ styled_default("div")({
352
362
  name: "Options",
353
363
  class: "o84pmnd",
354
- propsAsIs: !1
355
- }), Ms = () => ge, Te = /* @__PURE__ */ n(Ms())({
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: !0
359
- }), Us = /* @__PURE__ */ n("div")({
368
+ propsAsIs: true
369
+ }), y2 = /* @__PURE__ */ styled_default("div")({
360
370
  name: "EarlyPrediction",
361
371
  class: "e1l05ict",
362
- propsAsIs: !1
363
- }), Ks = () => w, _s = /* @__PURE__ */ n(Ks())({
372
+ propsAsIs: false
373
+ }), r$2 = () => B1, h = /* @__PURE__ */ styled_default(r$2())({
364
374
  name: "EarlyPredictionIcon",
365
375
  class: "ez9juex",
366
- propsAsIs: !0
367
- }), Hs = () => w, Gs = /* @__PURE__ */ n(Hs())({
376
+ propsAsIs: true
377
+ }), p = () => B1, q = /* @__PURE__ */ styled_default(p())({
368
378
  name: "SponsorIcon",
369
379
  class: "s8p4aob",
370
- propsAsIs: !0
371
- }), Js = /* @__PURE__ */ n("button")({
380
+ propsAsIs: true
381
+ });
382
+ const r$1 = /* @__PURE__ */ styled_default("button")({
372
383
  name: "ButtonContainer",
373
384
  class: "b1b6dl8t",
374
- propsAsIs: !1
375
- }), Xs = /* @__PURE__ */ n("div")({
385
+ propsAsIs: false
386
+ }), l$1 = /* @__PURE__ */ styled_default("div")({
376
387
  name: "ButtonPctWrap",
377
388
  class: "b4iik8i",
378
- propsAsIs: !1
379
- }), Zs = /* @__PURE__ */ n("div")({
389
+ propsAsIs: false
390
+ }), I$1 = /* @__PURE__ */ styled_default("div")({
380
391
  name: "ButtonPct",
381
392
  class: "b1gq1lnf",
382
- propsAsIs: !1
383
- }), en = /* @__PURE__ */ n("span")({
393
+ propsAsIs: false
394
+ }), i = /* @__PURE__ */ styled_default("span")({
384
395
  name: "ButtonBody",
385
396
  class: "b1j65z51",
386
- propsAsIs: !1
387
- }), sn = /* @__PURE__ */ n("div")({
397
+ propsAsIs: false
398
+ }), m$1 = /* @__PURE__ */ styled_default("div")({
388
399
  name: "IconContainer",
389
400
  class: "i19tpfua",
390
- propsAsIs: !1
391
- }), nn = /* @__PURE__ */ n("div")({
401
+ propsAsIs: false
402
+ }), f$1 = /* @__PURE__ */ styled_default("div")({
392
403
  name: "IconWrap",
393
404
  class: "i1tubmma",
394
- propsAsIs: !1
395
- }), xe = /* @__PURE__ */ n("img")({
405
+ propsAsIs: false
406
+ }), n = /* @__PURE__ */ styled_default("img")({
396
407
  name: "Icon",
397
408
  class: "i1grrgwj",
398
- propsAsIs: !1
399
- }), tn = () => xe, rn = /* @__PURE__ */ n(tn())({
409
+ propsAsIs: false
410
+ }), t$1 = () => n, u = /* @__PURE__ */ styled_default(t$1())({
400
411
  name: "IconDefault",
401
412
  class: "ibemyq8",
402
- propsAsIs: !0
403
- }), on = () => xe, an = /* @__PURE__ */ n(on())({
413
+ propsAsIs: true
414
+ }), a$1 = () => n, A$1 = /* @__PURE__ */ styled_default(a$1())({
404
415
  name: "IconCircle",
405
416
  class: "i1dceht",
406
- propsAsIs: !0
407
- }), cn = /* @__PURE__ */ n("span")({
417
+ propsAsIs: true
418
+ }), d = /* @__PURE__ */ styled_default("span")({
408
419
  name: "Title",
409
420
  class: "t116q4vq",
410
- propsAsIs: !1
411
- }), dn = /* @__PURE__ */ n("span")({
421
+ propsAsIs: false
422
+ }), B = /* @__PURE__ */ styled_default("span")({
412
423
  name: "Indicators",
413
424
  class: "i17ajcu2",
414
- propsAsIs: !1
415
- }), ln = /* @__PURE__ */ n("div")({
425
+ propsAsIs: false
426
+ }), P = /* @__PURE__ */ styled_default("div")({
416
427
  name: "PtsWrap",
417
428
  class: "pu9kmlb",
418
- propsAsIs: !1
419
- }), pn = /* @__PURE__ */ n("span")({
429
+ propsAsIs: false
430
+ }), b$1 = /* @__PURE__ */ styled_default("span")({
420
431
  name: "Pts",
421
432
  class: "p1j2j0s0",
422
- propsAsIs: !1
423
- }), un = /* @__PURE__ */ n("span")({
433
+ propsAsIs: false
434
+ }), g = /* @__PURE__ */ styled_default("span")({
424
435
  name: "Percentage",
425
436
  class: "p1mzj1sj",
426
- propsAsIs: !1
427
- }), mn = () => w, hn = /* @__PURE__ */ n(mn())({
437
+ propsAsIs: false
438
+ }), c$1 = () => B1, C = /* @__PURE__ */ styled_default(c$1())({
428
439
  name: "CheckIcon",
429
440
  class: "cichgz8",
430
- 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)
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 (s === i.PREDICTION) {
441
- if (!t && o)
442
- return l ? "voted" : "unset";
443
- if (t && o)
444
- return l ? r ? "correct" : "incorrect" : "unset";
445
- if (l)
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 s === i.TRIVIA && o && l ? r ? "correct" : "incorrect" : "unset";
449
- }, vn = ({
450
- questionType: s,
451
- questionVoted: t,
452
- correct: r,
453
- 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;
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: r,
460
- icon: l,
461
- text: o,
462
- percentageDecimal: p,
463
- points: h,
471
+ id: a2,
472
+ icon: n2,
473
+ text: i$12,
474
+ percentageDecimal: r2,
475
+ points: w2,
464
476
  // extra props
465
- onVote: f,
466
- markThatVoted: P,
467
- firstOption: I,
468
- onPercentsAnimated: a,
469
- youSelected: R,
470
- youVoted: E,
471
- 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);
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
- }, [p]), /* @__PURE__ */ d(
489
- An,
500
+ }, [r2]), /* @__PURE__ */ jsxs(
501
+ at,
490
502
  {
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,
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: (te) => {
500
- P(
501
- T === i.PREDICTION ? S : x === se.RESOLVED
502
- ), f(te);
511
+ onClick: (y3) => {
512
+ g$1(
513
+ d$12 === QuestionType.PREDICTION ? f2 : p2 === QuestionStatus.RESOLVED
514
+ ), D2(y3);
503
515
  },
504
- "data-is-ad": O,
516
+ "data-is-ad": m2,
505
517
  children: [
506
- /* @__PURE__ */ e(Xs, { children: /* @__PURE__ */ e(
507
- Zs,
518
+ /* @__PURE__ */ jsx(l$1, { children: /* @__PURE__ */ jsx(
519
+ I$1,
508
520
  {
509
- "data-answer-state": G,
510
- "data-is-not-checked": F,
511
- style: { width: `${Q ? V : 0}%` },
521
+ "data-answer-state": I2,
522
+ "data-is-not-checked": T,
523
+ style: { width: `${S2 ? F2 : 0}%` },
512
524
  onTransitionEnd: () => {
513
- L || a == null || a();
525
+ h2 || l2 == null || l2();
514
526
  },
515
- "data-is-ad": O
527
+ "data-is-ad": m2
516
528
  }
517
529
  ) }),
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" })
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
- 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: "%" }) })
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
- }, fn = () => Pe, Cn = /* @__PURE__ */ n(fn())({
545
+ };
546
+ const t = () => v$2, c = /* @__PURE__ */ styled_default(t())({
534
547
  name: "ShowInContainer",
535
548
  class: "sie6cqo",
536
- propsAsIs: !0
537
- }), Tn = /* @__PURE__ */ n("div")({
549
+ propsAsIs: true
550
+ }), r = /* @__PURE__ */ styled_default("div")({
538
551
  name: "WinBarContainer",
539
552
  class: "wgizw4u",
540
- propsAsIs: !1
541
- }), $n = /* @__PURE__ */ n("div")({
553
+ propsAsIs: false
554
+ }), l = /* @__PURE__ */ styled_default("div")({
542
555
  name: "Content",
543
556
  class: "c1l3ucjp",
544
- propsAsIs: !1
545
- }), En = /* @__PURE__ */ n("div")({
557
+ propsAsIs: false
558
+ }), m = /* @__PURE__ */ styled_default("div")({
546
559
  name: "Title",
547
560
  class: "tx7j799",
548
- propsAsIs: !1
549
- }), bn = () => w, wn = /* @__PURE__ */ n(bn())({
561
+ propsAsIs: false
562
+ }), a = () => B1, I = /* @__PURE__ */ styled_default(a())({
550
563
  name: "WinIcon",
551
564
  class: "w4lwuj0",
552
- propsAsIs: !0
553
- }), gn = /* @__PURE__ */ n("div")({
565
+ propsAsIs: true
566
+ }), f = /* @__PURE__ */ styled_default("div")({
554
567
  name: "Points",
555
568
  class: "po9i64o",
556
- propsAsIs: !1
557
- }), Pn = /* @__PURE__ */ n("span")({
569
+ propsAsIs: false
570
+ }), w = /* @__PURE__ */ styled_default("span")({
558
571
  name: "PointsCount",
559
572
  class: "pe5g05h",
560
- propsAsIs: !1
561
- }), Rn = /* @__PURE__ */ n("span")({
573
+ propsAsIs: false
574
+ }), A = /* @__PURE__ */ styled_default("span")({
562
575
  name: "PointsUnits",
563
576
  class: "p1hdtpmb",
564
- propsAsIs: !1
565
- }), Dn = ({
566
- title: s,
567
- points: t,
568
- isPlayingTimer: r,
569
- isTimer: l,
570
- animatePoints: o,
571
- questionType: p,
572
- timerDuration: h,
573
- votedInCurrentRender: f,
574
- percentsAnimated: P,
575
- onTimerExpired: I
576
- }) => /* @__PURE__ */ e(
577
- Cn,
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: p === i.PREDICTION && f,
580
- animate: P,
581
- children: /* @__PURE__ */ d(
582
- Tn,
593
+ enabled: r$12 === QuestionType.PREDICTION && l$12,
594
+ animate: h2,
595
+ children: /* @__PURE__ */ jsxs(
596
+ r,
583
597
  {
584
598
  style: {
585
- justifyContent: p === i.PREDICTION ? "center" : "space-between"
599
+ justifyContent: r$12 === QuestionType.PREDICTION ? "center" : "space-between"
586
600
  },
587
601
  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" })
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
- l && p !== i.PREDICTION && /* @__PURE__ */ e(He, { isPlaying: r, onTimerExpired: I, duration: h })
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
- ), qn = (s, t) => {
604
- switch (s) {
617
+ );
618
+ const Ft = (e2, T) => {
619
+ switch (e2) {
605
620
  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.";
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
- }, Un = () => /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ d(De, { children: [
611
- /* @__PURE__ */ e(le, { loading: !0, style: { height: "40px", borderRadius: "100px" } }),
612
- /* @__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,
618
- close: l,
619
- isEarlyPrediction: o,
620
- mastersApp: p,
621
- webos: h
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 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);
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 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 });
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
- }, [U]), ve = j(
639
- async (u) => {
640
- if (!oe.current && (oe.current = !0, m)) {
641
- const $ = u.currentTarget.value;
642
- L($);
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 r(m, $), g && Ie();
645
- } catch (K) {
646
- re(qn(K.message, a)), L(""), console.error("Error while voting", K), oe.current = !1;
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
- [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]
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
- H(() => {
663
- c && T && !ke && (q.current = setTimeout(Le, 1e4), Oe(!0));
664
- }, [c]), H(() => () => {
665
- clearTimeout(q.current), clearTimeout(x.current);
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 ae = _(() => s ? s.answers.map((u) => {
668
- var $;
682
+ const b$12 = useMemo(() => e2 ? e2.answers.map((s) => {
683
+ var l2;
669
684
  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
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
- C,
683
- v,
684
- t,
685
- s,
686
- c,
687
- R,
688
- ve,
689
- ne
697
+ c2,
698
+ d2,
699
+ T,
700
+ e2,
701
+ t2,
702
+ v$12,
703
+ Z,
704
+ z
690
705
  ]);
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!
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.` : 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,
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: 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() } : {}
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
- ) }) : !o && (v || M) ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(
714
- As,
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: M ? /* @__PURE__ */ d(z, { children: [
733
+ description: k2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
719
734
  "Stay tuned for more questions ",
720
- /* @__PURE__ */ e("br", {}),
735
+ /* @__PURE__ */ jsx("br", {}),
721
736
  " and insights."
722
- ] }) : /* @__PURE__ */ d(z, { children: [
737
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
723
738
  "Watch for additional enhanced stream ",
724
- /* @__PURE__ */ e("br", {}),
739
+ /* @__PURE__ */ jsx("br", {}),
725
740
  " interactive experience."
726
741
  ] })
727
742
  }
728
743
  ) }) : null;
729
744
  };
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,
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: 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,
744
- votedAfterQuestionClosed: k,
745
- enteredAnActiveQuestion: D,
746
- marketClosed: y,
747
- percentsAnimated: F,
748
- voteErrorMessage: Q,
749
- votedAnswer: c
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
- de && /* @__PURE__ */ e(
753
- Dn,
767
+ Y && /* @__PURE__ */ jsx(
768
+ b,
754
769
  {
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
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
- ze ? Me() : /* @__PURE__ */ d(z, { children: [
768
- o && /* @__PURE__ */ d(Us, { children: [
769
- /* @__PURE__ */ e(_s, { name: "iconEarlyPrediction" }),
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__ */ e(Ys, { style: We ? { marginTop: 0 } : {}, children: I }),
773
- o && /* @__PURE__ */ e(
774
- Ce,
787
+ /* @__PURE__ */ jsx(x, { style: vt ? { marginTop: 0 } : {}, children: H }),
788
+ a2 && /* @__PURE__ */ jsx(
789
+ ii,
775
790
  {
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,
784
- 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
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__ */ d(zs, { children: [
796
- /* @__PURE__ */ e(qe, { children: ae.sort((u, $) => u.id > $.id ? 1 : -1).map((u, $) => /* @__PURE__ */ e(
797
- yn,
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
- ...u,
800
- firstOption: $ === 0,
801
- markThatVoted: Se,
802
- onPercentsAnimated: () => te(!0),
803
- votedAfterQuestionClosed: k,
804
- enteredAnActiveQuestion: D,
805
- marketClosed: y,
806
- isEarlyPrediction: o,
807
- isAd: g,
808
- webos: h
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
- u.id
825
+ s.id
811
826
  )) }),
812
- o && /* @__PURE__ */ d(z, { children: [
813
- /* @__PURE__ */ e(Ws, {}),
814
- /* @__PURE__ */ e(Bs, { children: /* @__PURE__ */ e(Gs, { name: "mastersLogoWhite" }) })
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
- 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
837
+ C$2 as C,
838
+ S$2 as S,
839
+ S$1 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
  };