@streamlayer/react 1.24.4 → 1.24.6

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 (103) hide show
  1. package/lib/cjs/Question.js +1 -1
  2. package/lib/cjs/advertisement.js +26 -26
  3. package/lib/cjs/bet-pack.js +1 -1
  4. package/lib/cjs/feature.js +1 -1
  5. package/lib/cjs/{index-ByUNFvMk.js → index-CfSdnrfA.js} +1 -1
  6. package/lib/cjs/index10.js +1 -1
  7. package/lib/cjs/index11.js +1 -1
  8. package/lib/cjs/index12.js +1 -1
  9. package/lib/cjs/index13.js +4 -1
  10. package/lib/cjs/index14.js +1 -4
  11. package/lib/cjs/index15.js +1 -1
  12. package/lib/cjs/index16.js +2 -2
  13. package/lib/cjs/index2.js +1 -1
  14. package/lib/cjs/index4.js +3 -3
  15. package/lib/cjs/index6.js +1 -1
  16. package/lib/cjs/index7.js +1 -1
  17. package/lib/cjs/index9.js +2 -2
  18. package/lib/cjs/insight.js +1 -1
  19. package/lib/cjs/masters2.js +3 -3
  20. package/lib/cjs/notification.js +1 -1
  21. package/lib/cjs/pause-ad.js +1 -1
  22. package/lib/cjs/points.js +1 -1
  23. package/lib/cjs/polymarket.js +1 -1
  24. package/lib/cjs/storage.js +1 -1
  25. package/lib/cjs/useStreamLayerApp2.js +13 -13
  26. package/lib/classic/cjs/Question.js +1 -1
  27. package/lib/classic/cjs/advertisement.js +26 -26
  28. package/lib/classic/cjs/bet-pack.js +3 -3
  29. package/lib/classic/cjs/feature.js +1 -1
  30. package/lib/classic/cjs/{index-ByUNFvMk.js → index-CfSdnrfA.js} +1 -1
  31. package/lib/classic/cjs/index10.js +1 -1
  32. package/lib/classic/cjs/index11.js +1 -1
  33. package/lib/classic/cjs/index12.js +1 -1
  34. package/lib/classic/cjs/index13.js +1 -1
  35. package/lib/classic/cjs/index2.js +2 -2
  36. package/lib/classic/cjs/index5.js +1 -1
  37. package/lib/classic/cjs/index7.js +2 -2
  38. package/lib/classic/cjs/index8.js +1 -1
  39. package/lib/classic/cjs/index9.js +1 -1
  40. package/lib/classic/cjs/insight.js +1 -1
  41. package/lib/classic/cjs/notification2.js +1 -1
  42. package/lib/classic/cjs/pause-ad.js +1 -1
  43. package/lib/classic/cjs/points.js +1 -1
  44. package/lib/classic/cjs/polymarket.js +1 -1
  45. package/lib/classic/cjs/useStreamLayerApp2.js +13 -13
  46. package/lib/classic/es/Question.js +313 -198
  47. package/lib/classic/es/advertisement.js +1988 -1955
  48. package/lib/classic/es/bet-pack.js +12 -13
  49. package/lib/classic/es/feature.js +188 -37
  50. package/lib/{es/index-ByUNFvMk.js → classic/es/index-CfSdnrfA.js} +1 -1
  51. package/lib/classic/es/index10.js +309 -2580
  52. package/lib/classic/es/index11.js +2580 -305
  53. package/lib/classic/es/index12.js +12 -12
  54. package/lib/classic/es/index13.js +2 -2
  55. package/lib/classic/es/index2.js +129 -121
  56. package/lib/classic/es/index5.js +0 -1
  57. package/lib/classic/es/index7.js +2 -2
  58. package/lib/classic/es/index8.js +1 -1
  59. package/lib/classic/es/index9.js +1 -1
  60. package/lib/classic/es/insight.js +1 -1
  61. package/lib/classic/es/notification2.js +137 -138
  62. package/lib/classic/es/pause-ad.js +124 -149
  63. package/lib/classic/es/points.js +3 -4
  64. package/lib/classic/es/polymarket.js +1 -1
  65. package/lib/classic/es/useStreamLayerApp2.js +2932 -2876
  66. package/lib/classic/source.css +1 -1
  67. package/lib/dist/cjs/{index-ByUNFvMk.js → index-CfSdnrfA.js} +1 -1
  68. package/lib/dist/cjs/masters.js +31 -31
  69. package/lib/dist/es/{index-ByUNFvMk.js → index-CfSdnrfA.js} +1 -1
  70. package/lib/dist/es/masters.js +7958 -7773
  71. package/lib/dist/index.d.ts +2 -0
  72. package/lib/es/Question.js +66 -65
  73. package/lib/es/advertisement.js +1988 -1955
  74. package/lib/es/bet-pack.js +1 -1
  75. package/lib/es/feature.js +188 -37
  76. package/lib/{classic/es/index-ByUNFvMk.js → es/index-CfSdnrfA.js} +1 -1
  77. package/lib/es/index10.js +1 -1
  78. package/lib/es/index11.js +12 -12
  79. package/lib/es/index12.js +366 -2579
  80. package/lib/es/index13.js +789 -234
  81. package/lib/es/index14.js +293 -792
  82. package/lib/es/index15.js +2580 -305
  83. package/lib/es/index16.js +41 -42
  84. package/lib/es/index2.js +279 -271
  85. package/lib/es/index4.js +15 -16
  86. package/lib/es/index6.js +0 -1
  87. package/lib/es/index7.js +1 -1
  88. package/lib/es/index9.js +2 -2
  89. package/lib/es/insight.js +1 -1
  90. package/lib/es/masters2.js +194 -183
  91. package/lib/es/notification.js +22 -23
  92. package/lib/es/pause-ad.js +124 -149
  93. package/lib/es/points.js +20 -21
  94. package/lib/es/polymarket.js +1 -1
  95. package/lib/es/storage.js +1 -1
  96. package/lib/es/useStreamLayerApp2.js +2932 -2876
  97. package/lib/source.css +1 -1
  98. package/lib/style.css +1 -1
  99. package/package.json +72 -53
  100. package/lib/cjs/sl-types.js +0 -1
  101. package/lib/classic/cjs/sl-types.js +0 -1
  102. package/lib/classic/es/sl-types.js +0 -156
  103. package/lib/es/sl-types.js +0 -156
package/lib/es/index13.js CHANGED
@@ -1,265 +1,820 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { b as P } from "./index9.js";
3
- import { s as l } from "./sl-types.js";
4
- import { y as k, F as b } from "./index15.js";
5
- import { e as x, N as _ } from "./index11.js";
6
- import { B as p } from "./index8.js";
7
- import { Q as m, b as T, c as h, d as M } from "./useStreamLayerApp2.js";
8
- import { useRef as j, useState as y } from "react";
9
- const q = /* @__PURE__ */ l("div")({
10
- name: "Container",
11
- class: "c1vwopgc",
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 "./feature.js";
4
+ import { i as le } from "./index10.js";
5
+ import { B as E } from "./index8.js";
6
+ import { Q as t, a as se, d as G, A as Ye } from "./useStreamLayerApp2.js";
7
+ import { b as Me, L as Ue } from "./index9.js";
8
+ import { p as Ce } from "./index5.js";
9
+ const On = /* @__PURE__ */ s("div")({
10
+ name: "SDKContainer",
11
+ class: "sopqfe6",
12
+ propsAsIs: !1
13
+ }), Ke = /* @__PURE__ */ s("div")({
14
+ name: "SDKScrollContainer",
15
+ class: "s102vcph",
12
16
  propsAsIs: !1
13
- }), U = /* @__PURE__ */ l("div")({
14
- name: "QuestionTypeWrap",
15
- class: "qyktpt0",
17
+ }), $e = /* @__PURE__ */ s("div")({
18
+ name: "SDKContentContainer",
19
+ class: "s1meqjjv",
16
20
  propsAsIs: !1
17
- }), F = () => p, Q = /* @__PURE__ */ l(F())({
18
- name: "QuestionTypeIcon",
19
- class: "q951jdx",
21
+ }), _e = () => $e, Ee = /* @__PURE__ */ s(_e())({
22
+ name: "SDKWhiteContainer",
23
+ class: "s1burm22",
20
24
  propsAsIs: !0
21
- }), S = /* @__PURE__ */ l("span")({
22
- name: "QuestionTypeTitle",
23
- class: "qss5f0e",
25
+ }), He = () => Ee, Sn = /* @__PURE__ */ s(He())({
26
+ name: "SDKSummaryContainer",
27
+ class: "sm5r3j5",
28
+ propsAsIs: !0
29
+ }), Vn = /* @__PURE__ */ s("div")({
30
+ name: "TabsContainer",
31
+ class: "tysxwr6",
24
32
  propsAsIs: !1
25
- }), O = /* @__PURE__ */ l("button")({
26
- name: "CloseIconWrap",
27
- class: "c1ao1jtv",
33
+ }), Ze = () => $e, Ln = /* @__PURE__ */ s(Ze())({
34
+ name: "LeaderboardContainer",
35
+ class: "l9er3b1",
36
+ propsAsIs: !0
37
+ }), Ge = () => Ee, jn = /* @__PURE__ */ s(Ge())({
38
+ name: "TabsNavContainer",
39
+ class: "t19dtrb3",
40
+ propsAsIs: !0
41
+ }), Qn = /* @__PURE__ */ s("div")({
42
+ name: "UserSummaryContainer",
43
+ class: "u1552n3j",
28
44
  propsAsIs: !1
29
- }), W = () => p, R = /* @__PURE__ */ l(W())({
30
- name: "CloseIcon",
31
- class: "cvsl7l3",
45
+ });
46
+ let Je = class {
47
+ observers = /* @__PURE__ */ new Set();
48
+ subscribe(a) {
49
+ this.observers.add(a);
50
+ }
51
+ unsubscribe(a) {
52
+ this.observers.delete(a);
53
+ }
54
+ notify(a) {
55
+ this.observers.forEach((c) => c(a));
56
+ }
57
+ };
58
+ const J = new Je(), Xe = { hiding: !1, finished: !1 }, es = () => {
59
+ const [n, a] = $(Xe), c = ee(null);
60
+ _(() => {
61
+ const p = (h) => {
62
+ a(h);
63
+ };
64
+ return J.subscribe(p), () => {
65
+ J.unsubscribe(p);
66
+ };
67
+ }, []);
68
+ const l = N((p) => {
69
+ const h = { hiding: !0, finished: !1 };
70
+ c.current && clearTimeout(c.current), p?.delay ? c.current = setTimeout(() => {
71
+ J.notify(h);
72
+ }, p?.delay) : J.notify(h);
73
+ }, []), r = N(() => {
74
+ n.hiding && (c.current = null, J.notify({ hiding: !1, finished: !0 }));
75
+ }, [n.hiding]);
76
+ return {
77
+ ...n,
78
+ runAnimation: l,
79
+ onAnimationEnd: r
80
+ };
81
+ }, ss = /* @__PURE__ */ s("div")({
82
+ name: "Container",
83
+ class: "c1pgyo67",
84
+ propsAsIs: !1
85
+ }), ns = "sx17qu6", ts = "h1692c5m", be = ({
86
+ children: n,
87
+ style: a,
88
+ className: c,
89
+ enabled: l = !0,
90
+ hiding: r,
91
+ onAnimationEnd: p
92
+ }) => /* @__PURE__ */ e(ss, {
93
+ style: a,
94
+ className: pe(c, l && ns, l && r && ts),
95
+ onAnimationEnd: p,
96
+ children: n
97
+ }), rs = () => be, as = /* @__PURE__ */ s(rs())({
98
+ name: "GrowingContainer",
99
+ class: "gck55ev",
32
100
  propsAsIs: !0
33
- }), z = P(O, {}), $2 = ({ webos: s, type: a, closeTimer: C, close: t, label: n, mastersApp: c }) => {
34
- const o = a ? x[a] : { label: n, iconName: void 0 };
35
- return /* @__PURE__ */ i(q, { children: [
36
- /* @__PURE__ */ i(U, { children: [
37
- o?.iconName && /* @__PURE__ */ e(
38
- Q,
39
- {
40
- "data-type-trivia": a === m.TRIVIA,
41
- "data-type-poll": a === m.POLL,
42
- "data-type-prediction": a === m.PREDICTION,
43
- "data-masters-app": !!c,
44
- name: o.iconName
45
- }
46
- ),
47
- o?.label && /* @__PURE__ */ e(S, { children: o.label })
48
- ] }),
49
- C?.seconds ? /* @__PURE__ */ e(k, { close: t, autoClose: C.auto, duration: C.seconds }) : /* @__PURE__ */ e(z, { webos: s, "data-a": "intr", onClick: t, type: "button", "data-close-btn": "true", children: /* @__PURE__ */ e(R, { "data-a": "intr", name: "icon-cross" }) })
50
- ] });
51
- }, G = "data:image/svg+xml,%3csvg%20width='103'%20height='18'%20viewBox='0%200%20103%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_104497)'%3e%3cpath%20d='M9.89618%203.45801C9.91951%203.45801%209.94451%203.46134%209.96784%203.46134C9.97618%203.46134%209.98284%203.46134%209.99118%203.46467H9.99784C10.0095%203.46467%2010.0212%203.46801%2010.0312%203.46801C10.0412%203.46801%2010.0462%203.46801%2010.0545%203.47134C10.0762%203.47467%2010.0962%203.47467%2010.1178%203.47634C10.1412%203.47967%2010.1662%203.48134%2010.1895%203.48467H10.2012C10.2462%203.48967%2010.2945%203.49634%2010.3395%203.50467C10.4512%203.52467%2010.5595%203.54801%2010.6662%203.57801C10.6928%203.58301%2010.7178%203.59301%2010.7445%203.60134H10.7478C10.7745%203.60967%2010.7995%203.61801%2010.8262%203.62467C10.8528%203.63301%2010.8778%203.64134%2010.9045%203.65134C10.9312%203.65967%2010.9562%203.66801%2010.9795%203.67967C11.0012%203.68801%2011.0212%203.69634%2011.0428%203.70634C11.0495%203.70967%2011.0578%203.71134%2011.0645%203.71467C11.0828%203.72301%2011.1012%203.72967%2011.1195%203.73801C11.1262%203.74134%2011.1312%203.74301%2011.1378%203.74634C11.1562%203.75467%2011.1712%203.76134%2011.1895%203.76967C11.1962%203.77301%2011.2045%203.77467%2011.2128%203.78134C11.2345%203.78967%2011.2528%203.79801%2011.2728%203.80967C11.2762%203.80967%2011.2795%203.81301%2011.2812%203.81301C11.3045%203.82467%2011.3295%203.83634%2011.3512%203.84801C11.3695%203.85634%2011.3878%203.86801%2011.4062%203.87634C11.4212%203.88134%2011.4328%203.89134%2011.4462%203.89967C11.4645%203.91134%2011.4828%203.91967%2011.5012%203.93134C11.5045%203.93467%2011.5078%203.93467%2011.5095%203.93634L11.5728%203.97467H11.5762L15.2178%206.18801L15.4412%206.32467C16.3228%206.90801%2016.9028%207.88467%2016.9028%208.99301C16.9028%2010.1013%2016.3262%2011.0763%2015.4445%2011.6613L15.2095%2011.803L11.5745%2014.0113H11.5712L11.5078%2014.0497C11.5078%2014.0497%2011.5012%2014.053%2011.4995%2014.0547C11.4812%2014.0663%2011.4628%2014.0747%2011.4445%2014.0863C11.4595%2014.078%2011.4745%2014.0697%2011.4895%2014.0597L5.94951%2017.433C5.94951%2017.433%205.94618%2017.433%205.94618%2017.4363L5.74451%2017.558H5.74118C5.19784%2017.863%204.55784%2018.0247%203.87784%2017.993C2.73618%2017.938%201.75784%2017.3463%201.19284%2016.4847C0.837844%2015.9413%200.64451%2015.2913%200.681177%2014.6013C0.71451%2013.983%200.922844%2013.4147%201.26118%2012.9397L1.26951%2012.9247L4.04451%208.99634L6.77784%205.12634C6.81118%205.07967%206.84784%205.03301%206.87784%204.98467C6.87451%204.98967%206.86951%204.99967%206.86284%205.00467C6.87118%204.98967%206.88118%204.97634%206.88951%204.96134C6.88951%204.95801%206.89284%204.95801%206.89284%204.95634C6.89618%204.95301%206.89951%204.94801%206.90118%204.94467C6.90118%204.94467%206.90118%204.94134%206.90451%204.94134C6.91951%204.92134%206.93451%204.90134%206.94618%204.87801C6.96118%204.85801%206.97618%204.83801%206.99118%204.81634C7.00618%204.79634%207.02118%204.77634%207.03618%204.75467C7.03951%204.75134%207.03951%204.74967%207.04284%204.74634C7.04618%204.74301%207.04618%204.74134%207.04951%204.74134C7.06451%204.72134%207.07951%204.70134%207.09784%204.67967C7.10951%204.66467%207.12118%204.65134%207.13451%204.63634C7.16784%204.59801%207.20118%204.56134%207.23784%204.52301C7.25284%204.50801%207.26451%204.49467%207.27951%204.47967C7.30118%204.45634%207.32118%204.43634%207.34618%204.41634C7.36451%204.39967%207.38284%204.38134%207.40118%204.36467C7.41951%204.34801%207.43451%204.33301%207.45284%204.31801C7.45618%204.31467%207.45951%204.31301%207.45951%204.31301C7.47118%204.30134%207.48118%204.29301%207.49284%204.28467C7.50451%204.27301%207.51951%204.26134%207.53284%204.25301C7.53618%204.24967%207.53951%204.24801%207.54118%204.24801C7.55951%204.23301%207.57451%204.21967%207.59284%204.20467C7.60784%204.18967%207.62618%204.17801%207.64118%204.16634C7.65618%204.15467%207.66784%204.14634%207.68284%204.13467C7.70118%204.11967%207.71951%204.10801%207.73784%204.09467C7.75284%204.08634%207.76451%204.07467%207.77951%204.06634C7.78618%204.06134%207.79451%204.05467%207.80284%204.05134C7.81784%204.03967%207.83284%204.03134%207.84784%204.02301C7.85118%204.01967%207.85618%204.01801%207.85951%204.01467C7.87784%204.00301%207.89618%203.99134%207.91118%203.98301C7.91784%203.97801%207.92618%203.97467%207.93284%203.96801C7.94784%203.95967%207.95951%203.95134%207.97451%203.94134C7.98284%203.93634%207.99284%203.92967%208.00118%203.92467C8.01618%203.91634%208.03451%203.90801%208.04951%203.89634C8.05284%203.89301%208.05784%203.89134%208.06451%203.88801C8.08618%203.87634%208.10451%203.86467%208.12451%203.85634C8.12784%203.85301%208.13118%203.85301%208.13618%203.85134C8.15784%203.83967%208.17784%203.82801%208.19951%203.81967C8.19951%203.81967%208.20284%203.81967%208.20284%203.81634C8.22618%203.80467%208.24784%203.79301%208.27284%203.78134C8.27284%203.78134%208.27618%203.78134%208.27618%203.77801C8.29451%203.76967%208.31284%203.76134%208.33284%203.75134C8.34118%203.74801%208.35118%203.74301%208.35951%203.73967C8.37118%203.73467%208.38284%203.72801%208.39618%203.72467C8.41118%203.71967%208.42284%203.71301%208.43784%203.70801C8.46118%203.69967%208.48284%203.69134%208.50784%203.68134C8.52284%203.67634%208.53451%203.66967%208.54951%203.66634C8.57118%203.65801%208.59118%203.65134%208.61284%203.64301C8.63118%203.63801%208.65284%203.63134%208.66951%203.62301C8.75451%203.59634%208.83784%203.57134%208.92284%203.54967C8.94118%203.54467%208.96284%203.54134%208.97951%203.53801C9.08451%203.51467%209.19451%203.49467%209.30284%203.48301C9.32951%203.47967%209.35784%203.47801%209.38451%203.47467C9.42118%203.47134%209.45951%203.46967%209.49618%203.46634C9.51118%203.46634%209.52284%203.46301%209.53784%203.46301H9.55951C9.58951%203.46301%209.61618%203.45967%209.64784%203.45967H9.73784C9.79451%203.45967%209.84284%203.45967%209.89451%203.46301L9.89618%203.45801ZM10.6662%2014.413C10.5612%2014.4413%2010.4512%2014.4647%2010.3395%2014.4863C10.4512%2014.4663%2010.5595%2014.443%2010.6662%2014.413ZM9.56118%2014.5313H9.56951C9.56118%2014.5313%209.54784%2014.5313%209.53951%2014.528C9.54618%2014.528%209.55451%2014.5313%209.56118%2014.5313ZM7.08784%2013.293C7.05451%2013.253%207.02451%2013.2147%206.99451%2013.1747C7.02451%2013.2147%207.05784%2013.253%207.08784%2013.293ZM6.90284%2013.043C6.90284%2013.043%206.90618%2013.0463%206.90618%2013.048C6.90284%2013.0447%206.90284%2013.043%206.89951%2013.0363C6.89618%2013.033%206.89618%2013.0297%206.89284%2013.0247C6.86951%2012.9897%206.84784%2012.953%206.82284%2012.918C6.84451%2012.953%206.86784%2012.9913%206.88951%2013.0247C6.89618%2013.0297%206.89784%2013.0363%206.90118%2013.0413L6.90284%2013.043ZM6.89451%2013.0263C6.85784%2012.968%206.81951%2012.913%206.77618%2012.858L6.89451%2013.0263Z'%20fill='%231652A8'%20style='fill:%231652A8;fill:color(display-p3%200.0863%200.3216%200.6588);fill-opacity:1;'/%3e%3cg%20opacity='0.85'%3e%3cpath%20d='M5.77088%200.453306L5.97588%200.578306L5.97921%200.581639L11.5225%203.94997C11.5075%203.94164%2011.4925%203.93331%2011.4775%203.92331C11.4959%203.93497%2011.5142%203.94331%2011.5325%203.95497C11.5359%203.95831%2011.5392%203.95831%2011.5409%203.95997L11.6042%203.99831H11.6075L15.2492%206.21164L15.4725%206.34831C16.3542%206.93164%2016.9342%207.9083%2016.9342%209.01664C16.9342%2010.125%2016.3575%2011.1%2015.4759%2011.685L15.2409%2011.8266L11.6059%2014.035H11.6025L11.5392%2014.0733C11.5392%2014.0733%2011.5325%2014.0766%2011.5309%2014.0783C11.5125%2014.09%2011.4942%2014.0983%2011.4759%2014.11C11.4642%2014.1183%2011.4492%2014.125%2011.4359%2014.1333C11.4175%2014.145%2011.3992%2014.1533%2011.3809%2014.1616C11.3575%2014.1733%2011.3359%2014.185%2011.3109%2014.1966C11.3075%2014.2%2011.3042%2014.2%2011.3025%2014.2C11.2842%2014.2116%2011.2625%2014.22%2011.2425%2014.2283C11.2359%2014.2316%2011.2275%2014.2333%2011.2192%2014.24C11.2009%2014.2483%2011.1859%2014.255%2011.1675%2014.2633C11.1609%2014.2666%2011.1592%2014.2683%2011.1525%2014.2683C11.1309%2014.2766%2011.1109%2014.285%2011.0859%2014.2966C11.0625%2014.3083%2011.0342%2014.3166%2011.0109%2014.325C10.9875%2014.3333%2010.9592%2014.345%2010.9359%2014.3533C10.9092%2014.3616%2010.8842%2014.37%2010.8575%2014.38C10.8309%2014.3883%2010.8059%2014.3966%2010.7792%2014.4033H10.7759C10.7492%2014.4116%2010.7242%2014.4183%2010.6975%2014.4266C10.5925%2014.455%2010.4825%2014.4783%2010.3709%2014.4983C10.3259%2014.5066%2010.2775%2014.5133%2010.2325%2014.5183C10.2259%2014.5183%2010.2242%2014.5183%2010.2209%2014.5216C10.1975%2014.525%2010.1725%2014.5283%2010.1492%2014.53C10.1009%2014.5366%2010.0525%2014.5383%2010.0042%2014.5416C9.92921%2014.5483%209.85254%2014.5483%209.77754%2014.5483H9.68088C9.65421%2014.5483%209.62921%2014.545%209.60254%2014.545C9.59421%2014.545%209.58088%2014.545%209.57254%2014.5416C9.53254%2014.5383%209.49088%2014.5366%209.45254%2014.5333C9.27421%2014.5166%209.09588%2014.4866%208.92754%2014.4466C8.90421%2014.44%208.87921%2014.435%208.85254%2014.4266C8.81921%2014.4183%208.78588%2014.41%208.74921%2014.3983C8.73088%2014.3933%208.70921%2014.3866%208.69254%2014.3816C8.66588%2014.3733%208.64088%2014.365%208.61421%2014.355C8.58754%2014.3466%208.56254%2014.3383%208.53921%2014.3266C8.51588%2014.3183%208.48754%2014.3066%208.46421%2014.2983C8.44088%2014.29%208.41921%2014.2816%208.39754%2014.27C8.38921%2014.2666%208.38254%2014.265%208.37421%2014.2583C8.35588%2014.25%208.33754%2014.2416%208.31754%2014.2316C8.31754%2014.2316%208.31421%2014.2316%208.31421%2014.2283C8.29088%2014.2166%208.26588%2014.205%208.24254%2014.1933C8.21921%2014.1816%208.19421%2014.17%208.17088%2014.155C8.14754%2014.1433%208.12254%2014.1283%208.10088%2014.1166C8.07754%2014.105%208.05254%2014.09%208.03088%2014.0766C8.00754%2014.0616%207.98588%2014.0483%207.96088%2014.0366C7.93754%2014.0216%207.91588%2014.0083%207.89421%2013.9933C7.87254%2013.9783%207.85254%2013.965%207.83088%2013.95C7.82754%2013.95%207.82754%2013.9466%207.82421%2013.945C7.80588%2013.9333%207.78754%2013.9183%207.76754%2013.905C7.76421%2013.9016%207.76088%2013.9016%207.75921%2013.9C7.74088%2013.885%207.72254%2013.8733%207.70421%2013.86C7.70088%2013.8566%207.69588%2013.855%207.69254%2013.8483C7.67421%2013.8333%207.65588%2013.82%207.63754%2013.805C7.63754%2013.805%207.63421%2013.805%207.63421%2013.8016C7.61588%2013.7866%207.59754%2013.7733%207.57754%2013.755C7.57421%2013.7516%207.57088%2013.7516%207.56921%2013.7483C7.55421%2013.7366%207.53921%2013.7216%207.52421%2013.71C7.51754%2013.705%207.51254%2013.6983%207.50588%2013.695C7.49421%2013.6833%207.47921%2013.6716%207.46588%2013.66C7.43921%2013.6366%207.41421%2013.6133%207.39088%2013.5866C7.37254%2013.57%207.35754%2013.5516%207.33921%2013.535C7.32754%2013.5233%207.31754%2013.5116%207.30588%2013.5C7.29421%2013.4883%207.28421%2013.48%207.27588%2013.4683C7.25754%2013.4516%207.24254%2013.43%207.22421%2013.4133C7.19088%2013.375%207.15754%2013.3383%207.12421%2013.2966C7.09088%2013.2566%207.06088%2013.2183%207.03088%2013.1783C7.01588%2013.1583%207.00088%2013.1383%206.98588%2013.1166C6.97088%2013.0966%206.95588%2013.0766%206.94421%2013.0533C6.94088%2013.05%206.94088%2013.0483%206.93754%2013.0416C6.93421%2013.0383%206.93421%2013.0366%206.93088%2013.03C6.90754%2012.995%206.88588%2012.9583%206.86088%2012.9233C6.88254%2012.9583%206.90588%2012.995%206.92754%2013.03C6.89088%2012.9716%206.85254%2012.9166%206.80921%2012.8616L4.07921%208.99664L1.34088%205.12997L1.23254%204.97664L1.22921%204.97164C0.92421%204.51164%200.737543%203.97497%200.707543%203.39497C0.670877%202.70497%200.86421%202.05164%201.22088%201.50997C1.78588%200.648306%202.76588%200.0566391%203.90421%20-2.75556e-05C4.58421%20-0.0150276%205.22421%200.148306%205.77088%200.453306Z'%20fill='url(%23paint0_linear_6919_104497)'%20style=''/%3e%3c/g%3e%3cpath%20d='M32.4132%2012.862C31.2015%2012.862%2030.4482%2012.0503%2030.4482%2010.7203V8.4453H32.6632V7.02697H30.4482V4.72363L28.8548%205.9053V7.0253H27.9648V8.44363H28.8548V10.7053C28.8548%2012.9953%2030.1982%2014.412%2032.4282%2014.412H32.7682V12.862H32.4132Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M19.9812%2012.5767L21.4028%2011.4651C22.0395%2012.4867%2022.8995%2013.0351%2023.9962%2013.0351C25.1962%2013.0351%2025.9512%2012.2651%2025.9512%2011.3017C25.9512%2010.1901%2024.7662%209.83506%2023.5212%209.43506C22.0545%208.96172%2020.4695%208.36839%2020.4695%206.38339C20.4695%204.73839%2021.9362%203.43506%2023.9362%203.43506C25.5812%203.43506%2026.6028%204.07172%2027.4328%205.03506L26.1145%206.01339C25.6262%205.25839%2024.8995%204.85839%2023.9362%204.85839C22.8395%204.85839%2022.1278%205.51006%2022.1278%206.35506C22.1278%207.39172%2023.2695%207.73339%2024.5128%208.14839C25.9945%208.65172%2027.6095%209.29006%2027.6095%2011.3051C27.6095%2012.9651%2026.2462%2014.5501%2024.0095%2014.5501C22.1578%2014.5501%2020.8978%2013.7651%2019.9795%2012.5801L19.9812%2012.5767Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M38.2695%2010.7367C38.2695%208.56503%2039.9379%206.8667%2042.1095%206.8667C44.2812%206.8667%2045.9062%208.4467%2045.9062%2010.6334V11.2534H39.7912C39.9979%2012.39%2040.8845%2013.1434%2042.1695%2013.1434C43.1745%2013.1434%2043.9429%2012.6117%2044.3262%2011.8134L45.6262%2012.5367C44.9762%2013.7484%2043.8095%2014.545%2042.1695%2014.545C39.8362%2014.545%2038.2695%2012.8767%2038.2695%2010.735V10.7367ZM39.8645%209.91003H44.2962C44.0595%208.8467%2043.2479%208.25503%2042.1095%208.25503C40.9712%208.25503%2040.1595%208.93503%2039.8645%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M33.7549%2010.72C33.7549%208.42999%2035.0982%207.02832%2037.3282%207.02832H38.0366V8.56499H37.3132C36.1016%208.56499%2035.3199%209.40665%2035.3349%2010.7367V14.415H33.7549V10.7233V10.72Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M46.6882%2010.7218C46.6882%208.56517%2048.3865%206.88184%2050.5132%206.88184C52.6399%206.88184%2054.3082%208.56517%2054.3082%2010.7218V14.4135H52.7582V13.4535C52.2415%2014.1468%2051.4432%2014.5468%2050.4682%2014.5468C48.3565%2014.5468%2046.6865%2012.8935%2046.6865%2010.7218H46.6882ZM52.7882%2010.7218C52.7882%209.40684%2051.7832%208.3585%2050.5132%208.3585C49.2432%208.3585%2048.2382%209.40684%2048.2382%2010.7218C48.2382%2012.0368%2049.2282%2013.0852%2050.5132%2013.0852C51.7982%2013.0852%2052.7882%2012.0218%2052.7882%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M55.3027%2010.2717C55.3027%208.30667%2056.6461%206.875%2058.6411%206.875C59.7777%206.875%2060.6944%207.33333%2061.2694%208.10167C61.8161%207.33333%2062.7027%206.875%2063.8394%206.875C65.8477%206.875%2067.2511%208.27833%2067.2511%2010.2717V14.4067H65.6711V10.2867C65.6711%209.165%2064.9177%208.38167%2063.8394%208.38167C62.7611%208.38167%2062.0527%209.18%2062.0677%2010.2433V14.4083H60.4877V10.2883C60.4877%209.16667%2059.7194%208.38333%2058.6411%208.38333C57.5627%208.38333%2056.8694%209.18167%2056.8827%2010.245V14.41H55.3027V10.275V10.2717Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M68.2646%203.62695H69.8746V12.872H74.2313V14.4086H68.2646V3.62695Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M89.418%2010.7367C89.418%208.56503%2091.0863%206.8667%2093.258%206.8667C95.4296%206.8667%2097.0546%208.4467%2097.0546%2010.6334V11.2534H90.9396C91.1463%2012.39%2092.033%2013.1434%2093.318%2013.1434C94.323%2013.1434%2095.0913%2012.6117%2095.4746%2011.8134L96.7746%2012.5367C96.1246%2013.7484%2094.958%2014.545%2093.318%2014.545C90.9846%2014.545%2089.418%2012.8767%2089.418%2010.735V10.7367ZM91.013%209.91003H95.4446C95.208%208.8467%2094.3963%208.25503%2093.258%208.25503C92.1196%208.25503%2091.308%208.93503%2091.013%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M74.4948%2010.7218C74.4948%208.56517%2076.1932%206.88184%2078.3198%206.88184C80.4465%206.88184%2082.1148%208.56517%2082.1148%2010.7218V14.4135H80.5648V13.4535C80.0482%2014.1468%2079.2498%2014.5468%2078.2748%2014.5468C76.1632%2014.5468%2074.4932%2012.8935%2074.4932%2010.7218H74.4948ZM80.5948%2010.7218C80.5948%209.40684%2079.5898%208.3585%2078.3198%208.3585C77.0498%208.3585%2076.0448%209.40684%2076.0448%2010.7218C76.0448%2012.0368%2077.0348%2013.0852%2078.3198%2013.0852C79.6048%2013.0852%2080.5948%2012.0218%2080.5948%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M85.0381%2014.0498L81.9814%207.0498H83.6798L85.8364%2012.1748L87.8748%207.0498H89.5431L85.0831%2017.8465H83.4581L85.0381%2014.0515V14.0498Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M98.041%2010.7151C98.041%208.4251%2099.3843%207.02344%20101.614%207.02344H102.323V8.5601H101.599C100.388%208.5601%2099.606%209.40177%2099.621%2010.7318V14.4101H98.041V10.7184V10.7151Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_6919_104497'%20x1='4.31754'%20y1='8.70664'%20x2='13.6359'%20y2='3.59497'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.2'%20stop-color='%231589EE'%20style='stop-color:%231589EE;stop-color:color(display-p3%200.0824%200.5373%200.9333);stop-opacity:1;'/%3e%3cstop%20offset='1'%20stop-color='%235EB4FF'%20style='stop-color:%235EB4FF;stop-color:color(display-p3%200.3686%200.7059%201.0000);stop-opacity:1;'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_6919_104497'%3e%3crect%20width='101.648'%20height='18'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.675781)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", u = /* @__PURE__ */ l("div")({
52
- name: "SponsorLogoWrap",
53
- class: "s8p5v5z",
101
+ }), we = ({
102
+ children: n,
103
+ style: a,
104
+ enabled: c,
105
+ animate: l,
106
+ ...r
107
+ }) => {
108
+ const p = ee(null);
109
+ return /* @__PURE__ */ e(as, {
110
+ ...r,
111
+ enabled: c && l,
112
+ style: {
113
+ ...a,
114
+ ...(() => {
115
+ const h = p?.current, v = (h && window.getComputedStyle(h))?.getPropertyValue("height");
116
+ return c ? {
117
+ height: l ? v : 0
118
+ } : {};
119
+ })()
120
+ },
121
+ children: /* @__PURE__ */ e("div", {
122
+ ref: p,
123
+ children: n
124
+ })
125
+ });
126
+ }, is = /* @__PURE__ */ s("div")({
127
+ name: "Container",
128
+ class: "c1gcvmcj",
54
129
  propsAsIs: !1
55
- }), J = () => p, K = /* @__PURE__ */ l(J())({
56
- name: "SponsorLogo",
57
- class: "s755yti",
130
+ }), os = /* @__PURE__ */ s("div")({
131
+ name: "Title",
132
+ class: "tnr592a",
133
+ propsAsIs: !1
134
+ }), cs = /* @__PURE__ */ s("div")({
135
+ name: "Description",
136
+ class: "d1e8jqpv",
137
+ propsAsIs: !1
138
+ }), ls = () => E, ds = /* @__PURE__ */ s(ls())({
139
+ name: "Icon",
140
+ class: "i1vs651k",
141
+ propsAsIs: !0
142
+ }), ps = ({ icon: n, title: a, description: c }) => /* @__PURE__ */ o(is, { children: [
143
+ /* @__PURE__ */ e(ds, { name: n }),
144
+ /* @__PURE__ */ e(os, { children: a }),
145
+ /* @__PURE__ */ e(cs, { children: c })
146
+ ] }), us = () => we, ms = /* @__PURE__ */ s(us())({
147
+ name: "ShowInContainer",
148
+ class: "s16sbdnm",
58
149
  propsAsIs: !0
59
- }), X = /* @__PURE__ */ l("img")({
60
- name: "AdSponsorLogo",
61
- class: "a1dflj8e",
62
- propsAsIs: !1
63
- }), D2 = ({
64
- mastersApp: s,
65
- sponsorLogo: a
66
- }) => s ? /* @__PURE__ */ e(u, {
67
- children: /* @__PURE__ */ e(K, {
68
- name: "mastersLogo"
69
- })
70
- }) : a ? /* @__PURE__ */ e(u, {
71
- children: /* @__PURE__ */ e(X, {
72
- src: a,
73
- alt: "ad-sponsor-logo"
74
- })
75
- }) : /* @__PURE__ */ e(u, {
76
- children: /* @__PURE__ */ e("img", {
77
- src: G,
78
- alt: "stream-layer-logo"
79
- })
80
- }), Y = /* @__PURE__ */ l("div")({
150
+ }), Q = /* @__PURE__ */ s("div")({
151
+ name: "FeedbackContainer",
152
+ class: "fbhorgl",
153
+ propsAsIs: !1
154
+ }), Ae = "s1g20ja7", hs = /* @__PURE__ */ s("div")({
81
155
  name: "Container",
82
- class: "cq8qxhy",
156
+ class: "c455ozj",
157
+ propsAsIs: !1
158
+ }), Is = () => E, ve = /* @__PURE__ */ s(Is())({
159
+ name: "IconPrediction",
160
+ class: "i1913njx",
161
+ propsAsIs: !0
162
+ }), X = /* @__PURE__ */ s("div")({
163
+ name: "FeedbackIconWrap",
164
+ class: "fzfk69z",
165
+ propsAsIs: !1
166
+ }), te = /* @__PURE__ */ s("div")({
167
+ name: "FeedbackHeader",
168
+ class: "fx87qaj",
169
+ propsAsIs: !1
170
+ }), fs = /* @__PURE__ */ s("span")({
171
+ name: "FeedbackTitle",
172
+ class: "fvek9ew",
173
+ propsAsIs: !1
174
+ }), W = /* @__PURE__ */ s("span")({
175
+ name: "FeedbackDescription",
176
+ class: "f1kbtp09",
83
177
  propsAsIs: !1
84
- }), s2 = /* @__PURE__ */ l("div")({
85
- name: "VideoWrapper",
86
- class: "v18kj6dc",
178
+ }), As = /* @__PURE__ */ s("div")({
179
+ name: "FeedbackTitleWrap",
180
+ class: "f4i8rro",
87
181
  propsAsIs: !1
88
- }), l2 = () => b, e2 = /* @__PURE__ */ l(l2())({
89
- name: "FocusableVideo",
90
- class: "fv2nwib",
182
+ }), vs = /* @__PURE__ */ s("div")({
183
+ name: "FeedbackResultDescriptionWrap",
184
+ class: "fqyssr",
185
+ propsAsIs: !1
186
+ }), ys = () => W, Ts = /* @__PURE__ */ s(ys())({
187
+ name: "FeedbackDynamicDescription",
188
+ class: "fyv794i",
189
+ propsAsIs: !0
190
+ }), Cs = () => W, $s = /* @__PURE__ */ s(Cs())({
191
+ name: "FeedbackResultDescription",
192
+ class: "f1jkj9vx",
91
193
  propsAsIs: !0
92
- }), H = /* @__PURE__ */ l("div")({
93
- name: "VideoStatus",
94
- class: "v8ptucg",
194
+ }), de = /* @__PURE__ */ s("div")({
195
+ name: "FeedbackText",
196
+ class: "f1pxh3a6",
95
197
  propsAsIs: !1
96
- }), v = "caip8y5", a2 = /* @__PURE__ */ l("div")({
97
- name: "Content",
98
- class: "ccgc65e",
198
+ }), Es = /* @__PURE__ */ s("span")({
199
+ name: "DynamicWrap",
200
+ class: "d1afvufn",
99
201
  propsAsIs: !1
100
- }), i2 = /* @__PURE__ */ l("h3")({
101
- name: "Title",
102
- class: "t1q3iml2",
202
+ }), bs = /* @__PURE__ */ s("div")({
203
+ name: "EarlyFeedbackDescription",
204
+ class: "eq8u24d",
103
205
  propsAsIs: !1
104
- }), C2 = /* @__PURE__ */ l("div")({
105
- name: "Description",
106
- class: "d1y2pxs8",
107
- propsAsIs: !1
108
- }), o2 = /* @__PURE__ */ l("img")({
109
- name: "Image",
110
- class: "ig2j4fc",
111
- propsAsIs: !1
112
- }), t2 = /* @__PURE__ */ l("div")({
113
- name: "ImageContainer",
114
- class: "i3dd6iy",
115
- propsAsIs: !1
116
- }), c2 = ({
117
- instantView: s,
118
- isDetail: a,
119
- notification: C,
120
- controlVideo: t,
121
- muted: n
206
+ }), ye = ({
207
+ feedbackMessages: n,
208
+ questionVotedCorrectly: a,
209
+ questionVoted: c,
210
+ questionType: l,
211
+ hasCorrectAnswer: r,
212
+ showExpiredNotification: p,
213
+ showClosedNotificationTrivia: h,
214
+ votedInCurrentRender: v,
215
+ votedAfterQuestionClosed: i,
216
+ voteErrorMessage: m,
217
+ enteredAnActiveQuestion: b,
218
+ marketClosed: g,
219
+ percentsAnimated: y,
220
+ votedAnswer: O,
221
+ isEarlyPrediction: I,
222
+ correctAnswer: T,
223
+ onAnimationEnd: q
122
224
  }) => {
123
- const c = j(null), [o, r] = y(!1), [d, f] = y(void 0), L = s?.playVideoMuted === T.ENABLED, w = a && s?.autoPlayVideo === h.ENABLED, Z = L && w, V = s?.heading, g = s?.body, I = V || g, [A, $] = y(!0), D = C?.title, E = C?.body;
124
- return /* @__PURE__ */ i(Y, { children: [
125
- s?.video?.url && /* @__PURE__ */ i(s2, { children: [
126
- /* @__PURE__ */ e(
127
- e2,
128
- {
129
- className: v,
130
- source: s.video.url,
131
- poster: s.video.thumbnailUrl,
132
- controlVideo: t,
133
- muted: n,
134
- autoPlay: a && s.autoPlayVideo === h.ENABLED,
135
- ref: c,
136
- onPause: () => {
137
- r?.(!0), $(!1);
138
- },
139
- onMute: (N) => {
140
- f(N);
141
- },
142
- onPlay: () => {
143
- r?.(!1);
144
- },
145
- playMuted: L,
146
- hasNotPausedVideo: A,
147
- webos: !0
148
- }
149
- ),
150
- o && !A && /* @__PURE__ */ i(H, { children: [
151
- /* @__PURE__ */ e(p, { name: "icon-pause" }),
152
- "PAUSED"
153
- ] }),
154
- d && Z && /* @__PURE__ */ i(H, { children: [
155
- /* @__PURE__ */ e(p, { name: "iconMute" }),
156
- "MUTED"
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,
228
+ {
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 })
236
+ ] }),
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." })
242
+ ] })
243
+ ] }),
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." })
249
+ ] })
250
+ ] }),
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." })
256
+ ] })
257
+ ] }),
258
+ !m && C && /* @__PURE__ */ o(Q, { children: [
259
+ !I && /* @__PURE__ */ e(ve, { name: "icon-prediction" }),
260
+ /* @__PURE__ */ o(Ts, { children: [
261
+ "Your pick has been recorded. ",
262
+ /* @__PURE__ */ e(Es, { children: "We’ll notify you of the result." })
263
+ ] })
264
+ ] }),
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." })
268
+ ] }),
269
+ !m && (V || f) && /* @__PURE__ */ o(Q, { className: pe(h && Ae), children: [
270
+ !I && /* @__PURE__ */ e(X, { "data-feedback-type": w, children: /* @__PURE__ */ e(E, { name: w }) }),
271
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ o(te, { children: [
272
+ I ? /* @__PURE__ */ e(As, { children: w === "incorrect" ? /* @__PURE__ */ o(B, { children: [
273
+ /* @__PURE__ */ e("div", { children: "So close!" }),
274
+ /* @__PURE__ */ e("div", { children: "Better luck next time" })
275
+ ] }) : /* @__PURE__ */ o(B, { children: [
276
+ /* @__PURE__ */ e("div", { children: "That’s correct!" }),
277
+ /* @__PURE__ */ e("div", { children: "You chose wisely." })
278
+ ] }) }) : /* @__PURE__ */ e(fs, { "data-feedback-type": w, children: L?.title }),
279
+ I ? /* @__PURE__ */ o(vs, { children: [
280
+ /* @__PURE__ */ o("div", { children: [
281
+ "Your pick: ",
282
+ O?.text
283
+ ] }),
284
+ /* @__PURE__ */ e("div", { children: w === "incorrect" ? `Correct: ${T?.text}` : "" })
285
+ ] }) : /* @__PURE__ */ e($s, { children: L?.description })
286
+ ] }) })
287
+ ] })
157
288
  ] })
158
- ] }),
159
- s?.image && !s?.video?.url && /* @__PURE__ */ e(
160
- t2,
161
- {
162
- className: v,
163
- "data-rounded": s.imageMode === M.ROUNDED,
164
- children: /* @__PURE__ */ e(o2, { src: s?.image })
165
- }
166
- ),
167
- /* @__PURE__ */ i(a2, { children: [
168
- /* @__PURE__ */ e(i2, { children: a && I ? V : D }),
169
- /* @__PURE__ */ e(C2, { children: a && I ? g : E })
170
- ] })
171
- ] });
172
- }, p2 = /* @__PURE__ */ l("div")({
289
+ }
290
+ ) : null;
291
+ }, ws = /* @__PURE__ */ s("div")({
173
292
  name: "Container",
174
- class: "cgn5uen",
293
+ class: "c1hygj0s",
294
+ propsAsIs: !1
295
+ }), gs = /* @__PURE__ */ s("div")({
296
+ name: "Title",
297
+ class: "t1r84tez",
175
298
  propsAsIs: !1
176
- }), B = "c1px8nt6", n2 = /* @__PURE__ */ l("div")({
299
+ }), Ps = /* @__PURE__ */ s("div")({
300
+ name: "Description",
301
+ class: "d1aj1a7k",
302
+ propsAsIs: !1
303
+ }), Rs = /* @__PURE__ */ s("div")({
304
+ name: "AdditionalDescription",
305
+ class: "ax09ezs",
306
+ propsAsIs: !1
307
+ }), Ds = () => E, qs = /* @__PURE__ */ s(Ds())({
308
+ name: "Icon",
309
+ class: "inkrac",
310
+ propsAsIs: !0
311
+ }), ks = ({ icon: n, title: a, description: c, additionalDescription: l }) => /* @__PURE__ */ o(ws, { children: [
312
+ n && /* @__PURE__ */ e(qs, { name: n }),
313
+ /* @__PURE__ */ e(gs, { children: a }),
314
+ /* @__PURE__ */ e(Ps, { children: c }),
315
+ l && /* @__PURE__ */ e(Rs, { children: l })
316
+ ] }), ge = /* @__PURE__ */ s("div")({
317
+ name: "Container",
318
+ class: "c14ielyq",
319
+ propsAsIs: !1
320
+ }), xs = () => Ke, Ns = /* @__PURE__ */ s(xs())({
321
+ name: "QuestionScrollContainer",
322
+ class: "q1tlqx57",
323
+ propsAsIs: !0
324
+ }), Os = /* @__PURE__ */ s("div")({
325
+ name: "TopShadow",
326
+ class: "t1hq58md",
327
+ propsAsIs: !1
328
+ }), Ss = /* @__PURE__ */ s("div")({
329
+ name: "BottomShadow",
330
+ class: "b1c8nxcx",
331
+ propsAsIs: !1
332
+ }), Vs = /* @__PURE__ */ s("div")({
333
+ name: "SponsorLogo",
334
+ class: "siozuc3",
335
+ propsAsIs: !1
336
+ }), Pe = /* @__PURE__ */ s("div")({
177
337
  name: "Content",
178
- class: "c5et2jt",
338
+ class: "cpnc44r",
179
339
  propsAsIs: !1
180
- }), r2 = /* @__PURE__ */ l("h3")({
340
+ }), Ls = /* @__PURE__ */ s("div")({
181
341
  name: "Title",
182
- class: "t1i2kpk2",
342
+ class: "tq7p3w0",
183
343
  propsAsIs: !1
184
- }), d2 = /* @__PURE__ */ l("div")({
185
- name: "Description",
186
- class: "dd3lh3p",
187
- propsAsIs: !1
188
- }), f2 = /* @__PURE__ */ l("img")({
189
- name: "Image",
190
- class: "i1gfjeu5",
191
- propsAsIs: !1
192
- }), m2 = /* @__PURE__ */ l("div")({
193
- name: "ImageContainer",
194
- class: "i58y999",
195
- propsAsIs: !1
196
- }), y2 = ({
197
- instantView: s,
198
- isDetail: a,
199
- notification: C,
200
- controlVideo: t,
201
- muted: n
344
+ }), js = /* @__PURE__ */ s("div")({
345
+ name: "OptionsWrap",
346
+ class: "o1jlfj9g",
347
+ propsAsIs: !1
348
+ }), Re = /* @__PURE__ */ s("div")({
349
+ name: "Options",
350
+ class: "o84pmnd",
351
+ propsAsIs: !1
352
+ }), Qs = () => be, Te = /* @__PURE__ */ s(Qs())({
353
+ name: "AlertContainer",
354
+ class: "a1dybjw9",
355
+ propsAsIs: !0
356
+ }), Ws = /* @__PURE__ */ s("div")({
357
+ name: "EarlyPrediction",
358
+ class: "e1l05ict",
359
+ propsAsIs: !1
360
+ }), Bs = () => E, Fs = /* @__PURE__ */ s(Bs())({
361
+ name: "EarlyPredictionIcon",
362
+ class: "ez9juex",
363
+ propsAsIs: !0
364
+ }), zs = () => E, Ys = /* @__PURE__ */ s(zs())({
365
+ name: "SponsorIcon",
366
+ class: "s8p4aob",
367
+ propsAsIs: !0
368
+ }), Ms = /* @__PURE__ */ s("button")({
369
+ name: "ButtonContainer",
370
+ class: "b1b6dl8t",
371
+ propsAsIs: !1
372
+ }), Us = /* @__PURE__ */ s("div")({
373
+ name: "ButtonPctWrap",
374
+ class: "b4iik8i",
375
+ propsAsIs: !1
376
+ }), Ks = /* @__PURE__ */ s("div")({
377
+ name: "ButtonPct",
378
+ class: "b1gq1lnf",
379
+ propsAsIs: !1
380
+ }), _s = /* @__PURE__ */ s("span")({
381
+ name: "ButtonBody",
382
+ class: "b1j65z51",
383
+ propsAsIs: !1
384
+ }), Hs = /* @__PURE__ */ s("div")({
385
+ name: "IconContainer",
386
+ class: "i19tpfua",
387
+ propsAsIs: !1
388
+ }), Zs = /* @__PURE__ */ s("div")({
389
+ name: "IconWrap",
390
+ class: "i1tubmma",
391
+ propsAsIs: !1
392
+ }), De = /* @__PURE__ */ s("img")({
393
+ name: "Icon",
394
+ class: "i1grrgwj",
395
+ propsAsIs: !1
396
+ }), Gs = () => De, Js = /* @__PURE__ */ s(Gs())({
397
+ name: "IconDefault",
398
+ class: "ibemyq8",
399
+ propsAsIs: !0
400
+ }), Xs = () => De, en = /* @__PURE__ */ s(Xs())({
401
+ name: "IconCircle",
402
+ class: "i1dceht",
403
+ propsAsIs: !0
404
+ }), sn = /* @__PURE__ */ s("span")({
405
+ name: "Title",
406
+ class: "t116q4vq",
407
+ propsAsIs: !1
408
+ }), nn = /* @__PURE__ */ s("span")({
409
+ name: "Indicators",
410
+ class: "i17ajcu2",
411
+ propsAsIs: !1
412
+ }), tn = /* @__PURE__ */ s("div")({
413
+ name: "PtsWrap",
414
+ class: "pu9kmlb",
415
+ propsAsIs: !1
416
+ }), rn = /* @__PURE__ */ s("span")({
417
+ name: "Pts",
418
+ class: "p1j2j0s0",
419
+ propsAsIs: !1
420
+ }), an = /* @__PURE__ */ s("span")({
421
+ name: "Percentage",
422
+ class: "p1mzj1sj",
423
+ propsAsIs: !1
424
+ }), on = () => E, cn = /* @__PURE__ */ s(on())({
425
+ name: "CheckIcon",
426
+ class: "cichgz8",
427
+ propsAsIs: !0
428
+ }), ln = {
429
+ [G.CENTERED]: (n) => /* @__PURE__ */ e(Js, { "data-testid": "vote-icon", alt: "option-icon", src: n }),
430
+ [G.TRANSPARENT]: (n) => /* @__PURE__ */ e(Hs, { "data-testid": "vote-icon", children: /* @__PURE__ */ e(Zs, { style: { backgroundImage: `url(${n})` } }) }),
431
+ [G.ROUNDED]: (n) => /* @__PURE__ */ e(en, { "data-testid": "vote-icon", alt: "option-icon", src: n }),
432
+ [G.NONE]: () => null,
433
+ [G.UNSET]: () => null
434
+ }, dn = ({ questionType: n, hasCorrectAnswer: a, correct: c, youVoted: l, questionVoted: r }) => {
435
+ if (n === t.POLL && l)
436
+ return "voted";
437
+ if (n === t.PREDICTION) {
438
+ if (!a && r)
439
+ return l ? "voted" : "unset";
440
+ if (a && r)
441
+ return l ? c ? "correct" : "incorrect" : "unset";
442
+ if (l)
443
+ return "correct";
444
+ }
445
+ return n === t.TRIVIA && r && l ? c ? "correct" : "incorrect" : "unset";
446
+ }, pn = ({
447
+ questionType: n,
448
+ questionVoted: a,
449
+ correct: c,
450
+ hasCorrectAnswer: l,
451
+ questionStatus: r
452
+ }) => n === t.TRIVIA ? a && c : n === t.PREDICTION ? a && c && l || r === se.RESOLVED && c : !1, un = Me(Ms), mn = (n) => {
453
+ const {
454
+ // option props
455
+ id: a,
456
+ icon: c,
457
+ text: l,
458
+ percentageDecimal: r,
459
+ points: p,
460
+ // extra props
461
+ onVote: h,
462
+ markThatVoted: v,
463
+ firstOption: i,
464
+ onPercentsAnimated: m,
465
+ youSelected: b,
466
+ youVoted: g,
467
+ questionVoted: y,
468
+ imageMode: O,
469
+ answerTimeExpired: I,
470
+ questionStatus: T,
471
+ isLoading: q,
472
+ questionType: P,
473
+ correct: k,
474
+ hasCorrectAnswer: S,
475
+ marketClosed: C,
476
+ isEarlyPrediction: V,
477
+ isAd: f,
478
+ webos: F
479
+ } = n, [w, L] = $(0), z = dn(n), H = pn({ questionType: P, questionVoted: y, correct: k, hasCorrectAnswer: S, questionStatus: T }), x = C && P === t.PREDICTION, ne = y || x, Y = P === t.PREDICTION && !y && !C && !f, Z = y && !b && z !== "incorrect" && !g;
480
+ return ze(() => {
481
+ L(0), requestAnimationFrame(() => {
482
+ L(r);
483
+ });
484
+ }, [r]), /* @__PURE__ */ o(
485
+ un,
486
+ {
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,
494
+ "data-a": "intr",
495
+ onClick: (re) => {
496
+ v(
497
+ P === t.PREDICTION ? C : T === se.RESOLVED
498
+ ), h(re);
499
+ },
500
+ "data-is-ad": f,
501
+ children: [
502
+ /* @__PURE__ */ e(Us, { children: /* @__PURE__ */ e(
503
+ Ks,
504
+ {
505
+ "data-answer-state": z,
506
+ "data-is-not-checked": Z,
507
+ style: { width: `${ne ? w : 0}%` },
508
+ onTransitionEnd: () => {
509
+ x || m?.();
510
+ },
511
+ "data-is-ad": f
512
+ }
513
+ ) }),
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" })
520
+ ] }),
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: "%" }) })
524
+ ] })
525
+ ] })
526
+ ]
527
+ }
528
+ );
529
+ }, hn = () => we, In = /* @__PURE__ */ s(hn())({
530
+ name: "ShowInContainer",
531
+ class: "sie6cqo",
532
+ propsAsIs: !0
533
+ }), fn = /* @__PURE__ */ s("div")({
534
+ name: "WinBarContainer",
535
+ class: "wgizw4u",
536
+ propsAsIs: !1
537
+ }), An = /* @__PURE__ */ s("div")({
538
+ name: "Content",
539
+ class: "c1l3ucjp",
540
+ propsAsIs: !1
541
+ }), vn = /* @__PURE__ */ s("div")({
542
+ name: "Title",
543
+ class: "tx7j799",
544
+ propsAsIs: !1
545
+ }), yn = () => E, Tn = /* @__PURE__ */ s(yn())({
546
+ name: "WinIcon",
547
+ class: "w4lwuj0",
548
+ propsAsIs: !0
549
+ }), Cn = /* @__PURE__ */ s("div")({
550
+ name: "Points",
551
+ class: "po9i64o",
552
+ propsAsIs: !1
553
+ }), $n = /* @__PURE__ */ s("span")({
554
+ name: "PointsCount",
555
+ class: "pe5g05h",
556
+ propsAsIs: !1
557
+ }), En = /* @__PURE__ */ s("span")({
558
+ name: "PointsUnits",
559
+ class: "p1hdtpmb",
560
+ propsAsIs: !1
561
+ }), bn = ({
562
+ title: n,
563
+ points: a,
564
+ isPlayingTimer: c,
565
+ isTimer: l,
566
+ animatePoints: r,
567
+ questionType: p,
568
+ timerDuration: h,
569
+ votedInCurrentRender: v,
570
+ percentsAnimated: i,
571
+ onTimerExpired: m
572
+ }) => /* @__PURE__ */ e(
573
+ In,
574
+ {
575
+ enabled: p === t.PREDICTION && v,
576
+ animate: i,
577
+ children: /* @__PURE__ */ o(
578
+ fn,
579
+ {
580
+ style: {
581
+ justifyContent: p === t.PREDICTION ? "center" : "space-between"
582
+ },
583
+ children: [
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" })
591
+ ] })
592
+ ] })
593
+ ] }),
594
+ l && p !== t.PREDICTION && /* @__PURE__ */ e(Ue, { isPlaying: c, onTimerExpired: m, duration: h })
595
+ ]
596
+ }
597
+ )
598
+ }
599
+ ), wn = (n, a) => n === "already_voted" ? a === t.POLL ? "You’ve already answered this question on another device." : "You’ve already answered this question on another device. So the points for this answer won't tally." : "Something went wrong, please try again", Bn = () => /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ o(Pe, { children: [
600
+ /* @__PURE__ */ e(le, { loading: !0, style: { height: "40px", borderRadius: "100px" } }),
601
+ /* @__PURE__ */ e(le, { loading: !0, style: { height: "24px", margin: "16px 0" } }),
602
+ /* @__PURE__ */ e(Re, { children: Array.from({ length: 5 }).map((n, a) => /* @__PURE__ */ e(le, { loading: !0, style: { height: "44px" } }, a)) })
603
+ ] }) }), Fn = ({
604
+ openedQuestion: n,
605
+ isLoading: a,
606
+ vote: c,
607
+ close: l,
608
+ isEarlyPrediction: r,
609
+ mastersApp: p,
610
+ webos: h
202
611
  }) => {
203
- const c = s?.heading, o = s?.body, r = c || o, d = C?.title, f = C?.body;
204
- return /* @__PURE__ */ i(p2, { children: [
205
- s?.video?.url && /* @__PURE__ */ e(
206
- b,
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, hiding: me } = es();
613
+ _(() => {
614
+ me && l(y);
615
+ }, [l, me]), _(() => {
616
+ i === t.PREDICTION ? g && V(!1) : m === se.RESOLVED && V(!1);
617
+ }, []);
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 });
625
+ }, 4e3);
626
+ }, [M]), Ie = N(
627
+ async (u) => {
628
+ if (!ae.current && (ae.current = !0, y)) {
629
+ const D = u.currentTarget.value;
630
+ H(D);
631
+ try {
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;
635
+ }
636
+ }
637
+ },
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]
649
+ );
650
+ _(() => {
651
+ d && q && !re && (O.current = setTimeout(Se, 1e4), qe(!0));
652
+ }, [d]), _(() => () => {
653
+ clearTimeout(O.current), clearTimeout(I.current);
654
+ }, []);
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
675
+ ]);
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!
687
+ You chose wisely.` : `So close!
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,
207
692
  {
208
- className: B,
209
- source: s.video.url,
210
- poster: s.video.thumbnailUrl,
211
- controlVideo: t,
212
- muted: n,
213
- autoPlay: a && s.autoPlayVideo === h.ENABLED
693
+ title: u(),
694
+ description: D(),
695
+ ...d?.correct || i === t.POLL || i === t.PREDICTION ? { icon: "icon-correct" } : {},
696
+ ...i === t.TRIVIA || i === t.PREDICTION ? { additionalDescription: U() } : {}
214
697
  }
215
- ),
216
- s?.image && !s?.video?.url && /* @__PURE__ */ e(
217
- m2,
698
+ ) }) : !r && (f || w) ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(
699
+ ps,
218
700
  {
219
- className: B,
220
- "data-rounded": s.imageMode === M.ROUNDED,
221
- children: /* @__PURE__ */ e(f2, { src: s?.image })
701
+ icon: "icon-check-circle",
702
+ title: "More to come...",
703
+ description: w ? /* @__PURE__ */ o(B, { children: [
704
+ "Stay tuned for more questions ",
705
+ /* @__PURE__ */ e("br", {}),
706
+ " and insights."
707
+ ] }) : /* @__PURE__ */ o(B, { children: [
708
+ "Watch for additional enhanced stream ",
709
+ /* @__PURE__ */ e("br", {}),
710
+ " interactive experience."
711
+ ] })
222
712
  }
223
- ),
224
- /* @__PURE__ */ i(n2, { children: [
225
- /* @__PURE__ */ e(r2, { children: a && r ? c : d }),
226
- /* @__PURE__ */ e(d2, { children: a && r ? o : f })
227
- ] })
713
+ ) }) : null;
714
+ };
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,
720
+ {
721
+ feedbackMessages: fe,
722
+ questionVoted: !!d,
723
+ questionVotedCorrectly: d?.correct,
724
+ questionType: i,
725
+ hasCorrectAnswer: A,
726
+ showExpiredNotification: j,
727
+ showClosedNotificationTrivia: oe,
728
+ votedInCurrentRender: q,
729
+ votedAfterQuestionClosed: k,
730
+ enteredAnActiveQuestion: C,
731
+ marketClosed: g,
732
+ percentsAnimated: Y,
733
+ voteErrorMessage: x,
734
+ votedAnswer: d
735
+ }
736
+ ),
737
+ ce && /* @__PURE__ */ e(
738
+ bn,
739
+ {
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
750
+ }
751
+ ),
752
+ Be ? Fe() : /* @__PURE__ */ o(B, { children: [
753
+ r && /* @__PURE__ */ o(Ws, { children: [
754
+ /* @__PURE__ */ e(Fs, { name: "iconEarlyPrediction" }),
755
+ "EARLY PREDICTION"
756
+ ] }),
757
+ /* @__PURE__ */ e(Ls, { style: je ? { marginTop: 0 } : {}, children: v }),
758
+ r && /* @__PURE__ */ e(
759
+ ye,
760
+ {
761
+ feedbackMessages: fe,
762
+ questionVoted: !!d,
763
+ questionVotedCorrectly: d?.correct,
764
+ questionType: i,
765
+ hasCorrectAnswer: A,
766
+ showExpiredNotification: j,
767
+ showClosedNotificationTrivia: oe,
768
+ votedInCurrentRender: q,
769
+ votedAfterQuestionClosed: k,
770
+ enteredAnActiveQuestion: C,
771
+ marketClosed: g,
772
+ percentsAnimated: Y,
773
+ voteErrorMessage: x,
774
+ isEarlyPrediction: r,
775
+ correctAnswer: R,
776
+ votedAnswer: d,
777
+ onAnimationEnd: Ne
778
+ }
779
+ ),
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,
783
+ {
784
+ ...u,
785
+ firstOption: D === 0,
786
+ markThatVoted: xe,
787
+ onPercentsAnimated: () => Z(!0),
788
+ votedAfterQuestionClosed: k,
789
+ enteredAnActiveQuestion: C,
790
+ marketClosed: g,
791
+ isEarlyPrediction: r,
792
+ isAd: T,
793
+ webos: h
794
+ },
795
+ u.id
796
+ )) }),
797
+ r && /* @__PURE__ */ o(B, { children: [
798
+ /* @__PURE__ */ e(Ss, {}),
799
+ /* @__PURE__ */ e(Vs, { children: /* @__PURE__ */ e(Ys, { name: "mastersLogoWhite" }) })
800
+ ] })
801
+ ] })
802
+ ] })
803
+ ] }) })
228
804
  ] });
229
- }, u2 = /* @__PURE__ */ l("div")({
230
- name: "Container",
231
- class: "c1euiow",
232
- propsAsIs: !1
233
- }), h2 = /* @__PURE__ */ l("a")({
234
- name: "WebLinkBtn",
235
- class: "w19zie3h",
236
- propsAsIs: !1
237
- }), L2 = () => p, V2 = /* @__PURE__ */ l(L2())({
238
- name: "WebLinkIcon",
239
- class: "wyg5v7z",
240
- propsAsIs: !0
241
- }), E2 = ({ instantView: s, ...a }) => /* @__PURE__ */ i(u2, { children: [
242
- a.webos ? /* @__PURE__ */ e(c2, { instantView: s, ...a, isDetail: !0 }) : /* @__PURE__ */ e(y2, { instantView: s, ...a, isDetail: !0 }),
243
- s?.webLink && /* @__PURE__ */ i(h2, { href: s?.webLink.url, target: "_blank", "data-a": "web-link", children: [
244
- s?.webLink.label,
245
- /* @__PURE__ */ e(V2, { name: "icon-external-link" })
246
- ] })
247
- ] }), g2 = /* @__PURE__ */ l("div")({
248
- name: "Container",
249
- class: "c1dcxmvf",
250
- propsAsIs: !1
251
- }), I2 = /* @__PURE__ */ l("blockquote")({
252
- name: "Quote",
253
- class: "qb4q22c",
254
- propsAsIs: !1
255
- }), N2 = (s) => /* @__PURE__ */ i(g2, { children: [
256
- s.title && /* @__PURE__ */ e(I2, { children: s.title }),
257
- /* @__PURE__ */ e(_, { ...s, isDetail: !0 })
258
- ] });
805
+ };
259
806
  export {
260
- y2 as D,
261
- $2 as O,
262
- N2 as a,
263
- D2 as d,
264
- E2 as f
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
265
820
  };