@streamlayer/react 1.23.0 → 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 (167) hide show
  1. package/lib/app/pause-ad.d.ts +2 -4
  2. package/lib/app/polymarket.d.ts +7 -0
  3. package/lib/cjs/Question.js +1 -1
  4. package/lib/cjs/advertisement.js +28 -223
  5. package/lib/cjs/analytics.js +1 -1
  6. package/lib/cjs/auth.js +1 -1
  7. package/lib/cjs/bet-pack.js +1 -1
  8. package/lib/cjs/feature.js +1 -0
  9. package/lib/cjs/gamification-feature.js +1 -1
  10. package/lib/cjs/gamification-feature2.js +1 -1
  11. package/lib/cjs/hooks-WfHlJH12.js +1 -0
  12. package/lib/cjs/index-eShKGO10.js +1 -5
  13. package/lib/cjs/index.js +1 -1
  14. package/lib/cjs/index10.js +1 -4
  15. package/lib/cjs/index11.js +3 -1
  16. package/lib/cjs/index12.js +1 -1
  17. package/lib/cjs/index13.js +3 -1
  18. package/lib/cjs/index14.js +1 -1
  19. package/lib/cjs/index15.js +1 -5
  20. package/lib/cjs/index16.js +3 -0
  21. package/lib/cjs/index2.js +1 -1
  22. package/lib/cjs/index3.js +1 -1
  23. package/lib/cjs/index4.js +3 -5
  24. package/lib/cjs/index5.js +1 -1
  25. package/lib/cjs/index6.js +1 -1
  26. package/lib/cjs/index7.js +1 -1
  27. package/lib/cjs/index8.js +1 -1
  28. package/lib/cjs/index9.js +1 -1
  29. package/lib/cjs/insight.js +1 -1
  30. package/lib/cjs/masters.js +1 -1
  31. package/lib/cjs/masters2.js +1 -13
  32. package/lib/cjs/notification.js +1 -1
  33. package/lib/cjs/pause-ad.js +1 -1
  34. package/lib/cjs/points.js +1 -1
  35. package/lib/cjs/polymarket.js +9 -0
  36. package/lib/cjs/sl-types.js +1 -15
  37. package/lib/cjs/storage.js +1 -1
  38. package/lib/cjs/style.css +1 -0
  39. package/lib/cjs/theme.js +1 -17
  40. package/lib/cjs/useStreamLayerApp.js +1 -1
  41. package/lib/cjs/useStreamLayerApp2.js +3 -17
  42. package/lib/cjs/utils.js +1 -47
  43. package/lib/classic/app/pause-ad.d.ts +2 -4
  44. package/lib/classic/app/polymarket.d.ts +7 -0
  45. package/lib/classic/cjs/Question.js +1 -1
  46. package/lib/classic/cjs/advertisement.js +28 -223
  47. package/lib/classic/cjs/analytics.js +1 -1
  48. package/lib/classic/cjs/auth.js +1 -1
  49. package/lib/classic/cjs/bet-pack.js +3 -5
  50. package/lib/classic/cjs/feature.js +1 -0
  51. package/lib/classic/cjs/gamification-feature.js +1 -1
  52. package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
  53. package/lib/classic/cjs/index-eShKGO10.js +1 -5
  54. package/lib/classic/cjs/index.js +1 -1
  55. package/lib/classic/cjs/index10.js +1 -1
  56. package/lib/classic/cjs/index11.js +1 -1
  57. package/lib/classic/cjs/index12.js +1 -4
  58. package/lib/classic/cjs/index13.js +3 -0
  59. package/lib/classic/cjs/index2.js +3 -5
  60. package/lib/classic/cjs/index3.js +1 -1
  61. package/lib/classic/cjs/index4.js +1 -1
  62. package/lib/classic/cjs/index5.js +1 -1
  63. package/lib/classic/cjs/index6.js +1 -1
  64. package/lib/classic/cjs/index7.js +1 -1
  65. package/lib/classic/cjs/index8.js +1 -1
  66. package/lib/classic/cjs/index9.js +3 -1
  67. package/lib/classic/cjs/insight.js +1 -1
  68. package/lib/classic/cjs/notification.js +1 -1
  69. package/lib/classic/cjs/notification2.js +1 -1
  70. package/lib/classic/cjs/pause-ad.js +1 -1
  71. package/lib/classic/cjs/points.js +1 -1
  72. package/lib/classic/cjs/polymarket.js +9 -0
  73. package/lib/classic/cjs/sl-types.js +1 -15
  74. package/lib/classic/cjs/style.css +1 -0
  75. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  76. package/lib/classic/cjs/useStreamLayerApp2.js +3 -17
  77. package/lib/classic/cjs/utils.js +1 -47
  78. package/lib/classic/es/Question.js +277 -264
  79. package/lib/classic/es/advertisement.js +34990 -18881
  80. package/lib/classic/es/analytics.js +58 -56
  81. package/lib/classic/es/auth.js +14 -8
  82. package/lib/classic/es/bet-pack.js +2448 -2418
  83. package/lib/classic/es/feature.js +108 -0
  84. package/lib/classic/es/gamification-feature.js +2 -2
  85. package/lib/classic/es/hooks-WfHlJH12.js +98 -0
  86. package/lib/classic/es/index-eShKGO10.js +948 -948
  87. package/lib/classic/es/index.js +13 -13
  88. package/lib/classic/es/index10.js +83 -2295
  89. package/lib/classic/es/index11.js +3095 -179
  90. package/lib/classic/es/index12.js +174 -821
  91. package/lib/classic/es/index13.js +850 -0
  92. package/lib/classic/es/index2.js +2099 -1763
  93. package/lib/classic/es/index3.js +11 -11
  94. package/lib/classic/es/index4.js +127 -127
  95. package/lib/classic/es/index5.js +3 -5
  96. package/lib/classic/es/index6.js +10 -11
  97. package/lib/classic/es/index7.js +6 -62
  98. package/lib/classic/es/index8.js +9 -316
  99. package/lib/classic/es/index9.js +316 -82
  100. package/lib/classic/es/insight.js +58 -53
  101. package/lib/classic/es/notification.js +5 -5
  102. package/lib/classic/es/notification2.js +765 -722
  103. package/lib/classic/es/pause-ad.js +190 -167
  104. package/lib/classic/es/points.js +55 -47
  105. package/lib/classic/es/polymarket.js +6848 -0
  106. package/lib/classic/es/sl-types.js +193 -125
  107. package/lib/classic/es/useStreamLayerApp.js +2 -2
  108. package/lib/classic/es/useStreamLayerApp2.js +9727 -7592
  109. package/lib/classic/es/utils.js +28 -28
  110. package/lib/classic/index.d.ts +1 -0
  111. package/lib/classic/style.css +1 -0
  112. package/lib/dist/cjs/gamification-feature.js +1 -1
  113. package/lib/dist/cjs/index-eShKGO10.js +1 -5
  114. package/lib/dist/cjs/index.js +1 -1
  115. package/lib/dist/cjs/masters.js +3 -77
  116. package/lib/dist/es/gamification-feature.js +2 -2
  117. package/lib/dist/es/index-eShKGO10.js +948 -948
  118. package/lib/dist/es/index.js +7 -8
  119. package/lib/dist/es/masters.js +18212 -14741
  120. package/lib/dist/index.d.ts +29 -8
  121. package/lib/dist/style.css +1 -1
  122. package/lib/es/Question.js +108 -106
  123. package/lib/es/advertisement.js +34990 -18881
  124. package/lib/es/analytics.js +58 -56
  125. package/lib/es/auth.js +14 -8
  126. package/lib/es/bet-pack.js +29 -17
  127. package/lib/es/feature.js +108 -0
  128. package/lib/es/gamification-feature.js +2 -2
  129. package/lib/es/gamification-feature2.js +2 -2
  130. package/lib/es/hooks-WfHlJH12.js +98 -0
  131. package/lib/es/index-eShKGO10.js +948 -948
  132. package/lib/es/index.js +14 -13
  133. package/lib/es/index10.js +258 -816
  134. package/lib/es/index11.js +837 -170
  135. package/lib/es/index12.js +181 -312
  136. package/lib/es/index13.js +316 -82
  137. package/lib/es/index14.js +83 -2350
  138. package/lib/es/index15.js +3069 -1224
  139. package/lib/es/index16.js +1453 -0
  140. package/lib/es/index2.js +1118 -984
  141. package/lib/es/index3.js +3 -62
  142. package/lib/es/index4.js +2424 -2407
  143. package/lib/es/index5.js +11 -11
  144. package/lib/es/index6.js +127 -127
  145. package/lib/es/index7.js +10 -7
  146. package/lib/es/index8.js +5 -9
  147. package/lib/es/index9.js +10 -265
  148. package/lib/es/insight.js +58 -53
  149. package/lib/es/masters.js +6 -5
  150. package/lib/es/masters2.js +696 -558
  151. package/lib/es/notification.js +697 -655
  152. package/lib/es/pause-ad.js +190 -167
  153. package/lib/es/points.js +56 -48
  154. package/lib/es/polymarket.js +6848 -0
  155. package/lib/es/sl-types.js +200 -132
  156. package/lib/es/storage.js +75 -74
  157. package/lib/es/theme.js +177 -31
  158. package/lib/es/useStreamLayerApp.js +2 -2
  159. package/lib/es/useStreamLayerApp2.js +9727 -7592
  160. package/lib/es/utils.js +28 -28
  161. package/lib/index.d.ts +1 -0
  162. package/lib/style.css +1 -1
  163. package/package.json +33 -20
  164. package/lib/cjs/hooks-B0Qttldg.js +0 -1
  165. package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
  166. package/lib/classic/es/hooks-B0Qttldg.js +0 -98
  167. package/lib/es/hooks-B0Qttldg.js +0 -98
@@ -0,0 +1,1453 @@
1
+ import { F as FeatureStatus } from "./feature.js";
2
+ import { g as atom, h as global, I as InvitationFrom, d as QuestionImages, Q as QuestionType } from "./useStreamLayerApp2.js";
3
+ import { useState, useEffect, useRef, useCallback, Component, createElement, useMemo } from "react";
4
+ import { u as useStore, s as styled_default, A as A$4 } from "./sl-types.js";
5
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
6
+ import { i as i$8 } from "./index9.js";
7
+ import { I as I$7, s as s$7, b as b$2, e as e$d } from "./index12.js";
8
+ import { createPortal } from "react-dom";
9
+ import { u as u$3 } from "./utils.js";
10
+ import { r as r$8, S as S$1, R as R$2, D as D$1 } from "./storage.js";
11
+ import { O as O$1 } from "./index10.js";
12
+ import { w as wt, E as Et } from "./index13.js";
13
+ import { B as B1 } from "./index6.js";
14
+ import { d as d$5 } from "./index5.js";
15
+ import { f as f$8 } from "./index11.js";
16
+ import { a as f$7 } from "./analytics.js";
17
+ const createSingleStore = (initialData) => atom(initialData);
18
+ const p$d = (t2) => {
19
+ const r2 = useStore(t2.getActiveFeature()), n2 = useStore(t2.streamStore()), [i2, u2] = useState(null);
20
+ return useEffect(() => {
21
+ const o2 = t2.getFeatures();
22
+ if (!r2)
23
+ u2(null);
24
+ else
25
+ for (const [s2, e2] of o2)
26
+ s2 === r2 ? (e2.status.get() === FeatureStatus.Suspended && e2.enable(), u2(e2)) : e2.status.get() === FeatureStatus.Ready && e2.disable();
27
+ return () => {
28
+ for (const [, s2] of o2)
29
+ s2.status.get() === FeatureStatus.Ready && s2.disable();
30
+ };
31
+ }, [r2, t2, n2]), [r2, i2];
32
+ };
33
+ const n$a = /* @__PURE__ */ styled_default("div")({
34
+ name: "Container",
35
+ class: "c1zy8a",
36
+ propsAsIs: false
37
+ }), o$d = /* @__PURE__ */ styled_default("div")({
38
+ name: "Title",
39
+ class: "t1vih9p5",
40
+ propsAsIs: false
41
+ }), t$c = /* @__PURE__ */ styled_default("div")({
42
+ name: "Indicator",
43
+ class: "i1fbnvpb",
44
+ propsAsIs: false
45
+ });
46
+ const m$7 = ({ indicator: i2, title: n2 }) => /* @__PURE__ */ jsxs(n$a, { children: [
47
+ /* @__PURE__ */ jsx(o$d, { children: n2 }),
48
+ /* @__PURE__ */ jsx(t$c, { children: i2 })
49
+ ] });
50
+ const t$b = /* @__PURE__ */ styled_default("div")({
51
+ name: "Container",
52
+ class: "ctmhwyc",
53
+ propsAsIs: false
54
+ }), a$7 = /* @__PURE__ */ styled_default("div")({
55
+ name: "Indicator",
56
+ class: "i1jri200",
57
+ propsAsIs: false
58
+ }), e$c = /* @__PURE__ */ styled_default("div")({
59
+ name: "Title",
60
+ class: "t8s05oq",
61
+ propsAsIs: false
62
+ });
63
+ const l$b = ({ indicator: r2, title: t2 }) => /* @__PURE__ */ jsxs(t$b, { children: [
64
+ /* @__PURE__ */ jsx(a$7, { children: r2 }),
65
+ /* @__PURE__ */ jsx(e$c, { children: t2 })
66
+ ] });
67
+ const o$c = /* @__PURE__ */ styled_default("div")({
68
+ name: "Container",
69
+ class: "c1yrpn9o",
70
+ propsAsIs: false
71
+ }), n$9 = /* @__PURE__ */ styled_default("div")({
72
+ name: "TopInfo",
73
+ class: "t17fwahh",
74
+ propsAsIs: false
75
+ }), e$b = /* @__PURE__ */ styled_default("div")({
76
+ name: "BottomInfo",
77
+ class: "by6w7e9",
78
+ propsAsIs: false
79
+ }), t$a = /* @__PURE__ */ styled_default("div")({
80
+ name: "User",
81
+ class: "u1g7arbm",
82
+ propsAsIs: false
83
+ }), r$7 = /* @__PURE__ */ styled_default("img")({
84
+ name: "Avatar",
85
+ class: "a1ldeata",
86
+ propsAsIs: false
87
+ }), c$7 = /* @__PURE__ */ styled_default("div")({
88
+ name: "UserInfo",
89
+ class: "u10d4koz",
90
+ propsAsIs: false
91
+ }), l$a = /* @__PURE__ */ styled_default("div")({
92
+ name: "UserName",
93
+ class: "u1q6roj0",
94
+ propsAsIs: false
95
+ }), p$c = /* @__PURE__ */ styled_default("div")({
96
+ name: "UserRating",
97
+ class: "ui0m425",
98
+ propsAsIs: false
99
+ }), i$7 = /* @__PURE__ */ styled_default("img")({
100
+ name: "TrophyIcon",
101
+ class: "t1el3mrn",
102
+ propsAsIs: false
103
+ }), m$6 = /* @__PURE__ */ styled_default("div")({
104
+ name: "RtsContainer",
105
+ class: "r2vgnxv",
106
+ propsAsIs: false
107
+ }), d$4 = /* @__PURE__ */ styled_default("div")({
108
+ name: "RtsDivider",
109
+ class: "roqn06j",
110
+ propsAsIs: false
111
+ }), f$6 = /* @__PURE__ */ styled_default("div")({
112
+ name: "Rts",
113
+ class: "r15adx7c",
114
+ propsAsIs: false
115
+ }), I$6 = /* @__PURE__ */ styled_default("div")({
116
+ name: "RtsIndicator",
117
+ class: "rv59lta",
118
+ propsAsIs: false
119
+ }), v$3 = /* @__PURE__ */ styled_default("div")({
120
+ name: "RtsLabel",
121
+ class: "r55lotb",
122
+ propsAsIs: false
123
+ }), A$3 = /* @__PURE__ */ styled_default("div")({
124
+ name: "Divider",
125
+ class: "d1knfgqt",
126
+ propsAsIs: false
127
+ }), R$1 = /* @__PURE__ */ styled_default("div")({
128
+ name: "Ranks",
129
+ class: "r1mqo824",
130
+ propsAsIs: false
131
+ }), U = /* @__PURE__ */ styled_default("div")({
132
+ name: "Statistics",
133
+ class: "sxareh6",
134
+ propsAsIs: false
135
+ }), u$2 = /* @__PURE__ */ styled_default("div")({
136
+ name: "AvatarPlaceholder",
137
+ class: "amcu48h",
138
+ propsAsIs: false
139
+ }), h$1 = /* @__PURE__ */ styled_default("button")({
140
+ name: "UserAccountBtn",
141
+ class: "u32nfkp",
142
+ propsAsIs: false
143
+ });
144
+ const F$2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e", z$1 = ({
145
+ loading: t2,
146
+ hideFriendsRank: n2,
147
+ avatar: l2,
148
+ name: o2,
149
+ points: s2,
150
+ friendsRank: m2,
151
+ rank: C2,
152
+ streak: p2,
153
+ correct: f2,
154
+ incorrect: v2,
155
+ inTop: L2,
156
+ successRate: g
157
+ }) => /* @__PURE__ */ jsxs(o$c, { "data-loading": t2, children: [
158
+ /* @__PURE__ */ jsx(n$9, { children: /* @__PURE__ */ jsx(i$8, { loading: t2, children: /* @__PURE__ */ jsxs(t$a, { children: [
159
+ /* @__PURE__ */ jsxs(h$1, { children: [
160
+ l2 && /* @__PURE__ */ jsx(r$7, { alt: "avatar", src: l2 }),
161
+ !l2 && /* @__PURE__ */ jsx(u$2, { children: I$7(o2 || "") })
162
+ ] }),
163
+ /* @__PURE__ */ jsxs(c$7, { children: [
164
+ /* @__PURE__ */ jsx(l$a, { children: o2 }),
165
+ /* @__PURE__ */ jsxs(p$c, { children: [
166
+ /* @__PURE__ */ jsxs(m$6, { children: [
167
+ /* @__PURE__ */ jsxs(f$6, { children: [
168
+ /* @__PURE__ */ jsx(i$7, { alt: "rank-icon", src: F$2 }),
169
+ /* @__PURE__ */ jsxs(I$6, { children: [
170
+ s$7(s2),
171
+ /* @__PURE__ */ jsx(v$3, { children: "PTS" })
172
+ ] })
173
+ ] }),
174
+ n2 && /* @__PURE__ */ jsxs(I$6, { children: [
175
+ /* @__PURE__ */ jsx(d$4, {}),
176
+ C2 || 0,
177
+ /* @__PURE__ */ jsx(v$3, { children: "global rank" })
178
+ ] })
179
+ ] }),
180
+ !n2 && /* @__PURE__ */ jsxs(Fragment, { children: [
181
+ /* @__PURE__ */ jsx(A$3, {}),
182
+ /* @__PURE__ */ jsxs("div", { children: [
183
+ "TOP ",
184
+ L2 || 0,
185
+ "%"
186
+ ] })
187
+ ] })
188
+ ] })
189
+ ] })
190
+ ] }) }) }),
191
+ /* @__PURE__ */ jsxs(e$b, { children: [
192
+ !n2 && /* @__PURE__ */ jsxs(R$1, { children: [
193
+ /* @__PURE__ */ jsx(i$8, { loading: t2, style: { width: "100%" }, children: /* @__PURE__ */ jsx(m$7, { indicator: m2 || 0, title: "Friends rank" }) }),
194
+ /* @__PURE__ */ jsx(i$8, { loading: t2, style: { width: "100%" }, children: /* @__PURE__ */ jsx(m$7, { indicator: C2 || 0, title: "Global rank" }) })
195
+ ] }),
196
+ /* @__PURE__ */ jsx(i$8, { loading: t2, children: /* @__PURE__ */ jsxs(U, { children: [
197
+ /* @__PURE__ */ jsx(l$b, { indicator: p2 || 0, title: "Win streak" }),
198
+ /* @__PURE__ */ jsx(l$b, { indicator: f2 || 0, title: "Correct" }),
199
+ /* @__PURE__ */ jsx(l$b, { indicator: v2 || 0, title: "Incorrect" }),
200
+ /* @__PURE__ */ jsx(l$b, { indicator: `${g || 0}%`, title: "Succ. rate" })
201
+ ] }) })
202
+ ] })
203
+ ] });
204
+ const S = /* @__PURE__ */ styled_default("div")({
205
+ name: "StaticContainer",
206
+ class: "svm502q",
207
+ propsAsIs: false
208
+ }), C$1 = `
209
+ .sl-pill-button {
210
+ display: none !important;
211
+ }
212
+ `, p$b = () => window.innerWidth >= A$4.md && window.innerWidth < A$4.lg ? 76 : 53, m$5 = (e2) => {
213
+ var n2;
214
+ const t2 = p$b();
215
+ return Math.round((((n2 = e2.current) == null ? void 0 : n2.getBoundingClientRect().y) || 0) - t2) <= 0;
216
+ }, T$3 = ({
217
+ children: e2,
218
+ container: t2,
219
+ useContainer: n2,
220
+ staticStyles: w2
221
+ }) => {
222
+ const [s2] = useState(() => m$5(t2)), [r2, i2] = useState(false);
223
+ return useEffect(() => {
224
+ if (!t2.current || !s2)
225
+ return i2(true), () => {
226
+ };
227
+ const o2 = window.scrollY;
228
+ return i2(true), () => {
229
+ m$5(t2) && window.scrollTo({
230
+ top: o2,
231
+ behavior: "instant"
232
+ });
233
+ };
234
+ }, []), useEffect(() => {
235
+ if (r2 && t2.current && s2) {
236
+ const o2 = p$b();
237
+ window.scrollTo({
238
+ top: t2.current.offsetTop - o2,
239
+ behavior: "instant"
240
+ });
241
+ }
242
+ }, [r2]), !t2.current || !r2 ? null : n2 ? createPortal(/* @__PURE__ */ jsxs(S, {
243
+ className: "StaticContainer",
244
+ children: [e2, /* @__PURE__ */ jsx("style", {
245
+ children: u$3
246
+ }), /* @__PURE__ */ jsx("style", {
247
+ children: C$1
248
+ })]
249
+ }), t2.current, "modal-node") : createPortal(/* @__PURE__ */ jsxs(Fragment, {
250
+ children: [e2, /* @__PURE__ */ jsx("style", {
251
+ children: w2
252
+ })]
253
+ }), t2.current, "modal-node");
254
+ };
255
+ const n$8 = /* @__PURE__ */ styled_default("button")({
256
+ name: "Container",
257
+ class: "cpjnajb",
258
+ propsAsIs: false
259
+ }), a$6 = /* @__PURE__ */ styled_default("div")({
260
+ name: "Content",
261
+ class: "c4m6kaz",
262
+ propsAsIs: false
263
+ }), e$a = /* @__PURE__ */ styled_default("span")({
264
+ name: "Title",
265
+ class: "t1h8t9cc",
266
+ propsAsIs: false
267
+ });
268
+ const s$6 = () => /* @__PURE__ */ jsx(n$8, { children: /* @__PURE__ */ jsxs(a$6, { children: [
269
+ /* @__PURE__ */ jsx(B1, { name: "iconCopySuccess" }),
270
+ /* @__PURE__ */ jsx(e$a, { children: "Link Copied to Clipboard" })
271
+ ] }) });
272
+ const T$2 = (r2) => {
273
+ const t2 = useRef(), [c2, o2] = useState(null), a2 = useCallback(
274
+ async (e2) => {
275
+ var i2;
276
+ if (e2 && ((i2 = navigator == null ? void 0 : navigator.clipboard) != null && i2.writeText)) {
277
+ t2.current && (clearTimeout(t2.current), o2(null));
278
+ try {
279
+ await navigator.clipboard.writeText(e2), r2.current && (o2(createPortal(/* @__PURE__ */ jsx(s$6, {}), r2.current)), t2.current = setTimeout(() => {
280
+ o2(null);
281
+ }, 1e3));
282
+ } catch (n2) {
283
+ console.error("Unable to copy to clipboard", n2);
284
+ }
285
+ }
286
+ },
287
+ [r2]
288
+ );
289
+ return useEffect(() => () => {
290
+ clearTimeout(t2.current);
291
+ }, []), [a2, c2];
292
+ };
293
+ let windowObject;
294
+ if (typeof window !== "undefined") {
295
+ windowObject = window;
296
+ } else if (typeof self !== "undefined") {
297
+ windowObject = self;
298
+ } else {
299
+ windowObject = global;
300
+ }
301
+ let cancelFrame = null;
302
+ let requestFrame = null;
303
+ const TIMEOUT_DURATION = 20;
304
+ const clearTimeoutFn = windowObject.clearTimeout;
305
+ const setTimeoutFn = windowObject.setTimeout;
306
+ const cancelAnimationFrameFn = windowObject.cancelAnimationFrame || windowObject.mozCancelAnimationFrame || windowObject.webkitCancelAnimationFrame;
307
+ const requestAnimationFrameFn = windowObject.requestAnimationFrame || windowObject.mozRequestAnimationFrame || windowObject.webkitRequestAnimationFrame;
308
+ if (cancelAnimationFrameFn == null || requestAnimationFrameFn == null) {
309
+ cancelFrame = clearTimeoutFn;
310
+ requestFrame = function requestAnimationFrameViaSetTimeout(callback) {
311
+ return setTimeoutFn(callback, TIMEOUT_DURATION);
312
+ };
313
+ } else {
314
+ cancelFrame = function cancelFrame2([animationFrameID, timeoutID]) {
315
+ cancelAnimationFrameFn(animationFrameID);
316
+ clearTimeoutFn(timeoutID);
317
+ };
318
+ requestFrame = function requestAnimationFrameWithSetTimeoutFallback(callback) {
319
+ const animationFrameID = requestAnimationFrameFn(function animationFrameCallback() {
320
+ clearTimeoutFn(timeoutID);
321
+ callback();
322
+ });
323
+ const timeoutID = setTimeoutFn(function timeoutCallback() {
324
+ cancelAnimationFrameFn(animationFrameID);
325
+ callback();
326
+ }, TIMEOUT_DURATION);
327
+ return [animationFrameID, timeoutID];
328
+ };
329
+ }
330
+ function createDetectElementResize(nonce) {
331
+ let animationKeyframes;
332
+ let animationName;
333
+ let animationStartEvent;
334
+ let animationStyle;
335
+ let checkTriggers;
336
+ let resetTriggers;
337
+ let scrollListener;
338
+ const attachEvent = typeof document !== "undefined" && document.attachEvent;
339
+ if (!attachEvent) {
340
+ resetTriggers = function(element) {
341
+ const triggers = element.__resizeTriggers__, expand = triggers.firstElementChild, contract = triggers.lastElementChild, expandChild = expand.firstElementChild;
342
+ contract.scrollLeft = contract.scrollWidth;
343
+ contract.scrollTop = contract.scrollHeight;
344
+ expandChild.style.width = expand.offsetWidth + 1 + "px";
345
+ expandChild.style.height = expand.offsetHeight + 1 + "px";
346
+ expand.scrollLeft = expand.scrollWidth;
347
+ expand.scrollTop = expand.scrollHeight;
348
+ };
349
+ checkTriggers = function(element) {
350
+ return element.offsetWidth !== element.__resizeLast__.width || element.offsetHeight !== element.__resizeLast__.height;
351
+ };
352
+ scrollListener = function(e2) {
353
+ if (e2.target.className && typeof e2.target.className.indexOf === "function" && e2.target.className.indexOf("contract-trigger") < 0 && e2.target.className.indexOf("expand-trigger") < 0) {
354
+ return;
355
+ }
356
+ const element = this;
357
+ resetTriggers(this);
358
+ if (this.__resizeRAF__) {
359
+ cancelFrame(this.__resizeRAF__);
360
+ }
361
+ this.__resizeRAF__ = requestFrame(function animationFrame() {
362
+ if (checkTriggers(element)) {
363
+ element.__resizeLast__.width = element.offsetWidth;
364
+ element.__resizeLast__.height = element.offsetHeight;
365
+ element.__resizeListeners__.forEach(function forEachResizeListener(fn) {
366
+ fn.call(element, e2);
367
+ });
368
+ }
369
+ });
370
+ };
371
+ let animation = false;
372
+ let keyframeprefix = "";
373
+ animationStartEvent = "animationstart";
374
+ const domPrefixes = "Webkit Moz O ms".split(" ");
375
+ let startEvents = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");
376
+ let pfx = "";
377
+ {
378
+ const elm = document.createElement("fakeelement");
379
+ if (elm.style.animationName !== void 0) {
380
+ animation = true;
381
+ }
382
+ if (animation === false) {
383
+ for (let i2 = 0; i2 < domPrefixes.length; i2++) {
384
+ if (elm.style[domPrefixes[i2] + "AnimationName"] !== void 0) {
385
+ pfx = domPrefixes[i2];
386
+ keyframeprefix = "-" + pfx.toLowerCase() + "-";
387
+ animationStartEvent = startEvents[i2];
388
+ animation = true;
389
+ break;
390
+ }
391
+ }
392
+ }
393
+ }
394
+ animationName = "resizeanim";
395
+ animationKeyframes = "@" + keyframeprefix + "keyframes " + animationName + " { from { opacity: 0; } to { opacity: 0; } } ";
396
+ animationStyle = keyframeprefix + "animation: 1ms " + animationName + "; ";
397
+ }
398
+ const createStyles = function(doc) {
399
+ if (!doc.getElementById("detectElementResize")) {
400
+ const css = (animationKeyframes ? animationKeyframes : "") + ".resize-triggers { " + (animationStyle ? animationStyle : "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', head = doc.head || doc.getElementsByTagName("head")[0], style = doc.createElement("style");
401
+ style.id = "detectElementResize";
402
+ style.type = "text/css";
403
+ if (nonce != null) {
404
+ style.setAttribute("nonce", nonce);
405
+ }
406
+ if (style.styleSheet) {
407
+ style.styleSheet.cssText = css;
408
+ } else {
409
+ style.appendChild(doc.createTextNode(css));
410
+ }
411
+ head.appendChild(style);
412
+ }
413
+ };
414
+ const addResizeListener = function(element, fn) {
415
+ if (attachEvent) {
416
+ element.attachEvent("onresize", fn);
417
+ } else {
418
+ if (!element.__resizeTriggers__) {
419
+ const doc = element.ownerDocument;
420
+ const elementStyle = windowObject.getComputedStyle(element);
421
+ if (elementStyle && elementStyle.position === "static") {
422
+ element.style.position = "relative";
423
+ }
424
+ createStyles(doc);
425
+ element.__resizeLast__ = {};
426
+ element.__resizeListeners__ = [];
427
+ (element.__resizeTriggers__ = doc.createElement("div")).className = "resize-triggers";
428
+ const expandTrigger = doc.createElement("div");
429
+ expandTrigger.className = "expand-trigger";
430
+ expandTrigger.appendChild(doc.createElement("div"));
431
+ const contractTrigger = doc.createElement("div");
432
+ contractTrigger.className = "contract-trigger";
433
+ element.__resizeTriggers__.appendChild(expandTrigger);
434
+ element.__resizeTriggers__.appendChild(contractTrigger);
435
+ element.appendChild(element.__resizeTriggers__);
436
+ resetTriggers(element);
437
+ element.addEventListener("scroll", scrollListener, true);
438
+ if (animationStartEvent) {
439
+ element.__resizeTriggers__.__animationListener__ = function animationListener(e2) {
440
+ if (e2.animationName === animationName) {
441
+ resetTriggers(element);
442
+ }
443
+ };
444
+ element.__resizeTriggers__.addEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);
445
+ }
446
+ }
447
+ element.__resizeListeners__.push(fn);
448
+ }
449
+ };
450
+ const removeResizeListener = function(element, fn) {
451
+ if (attachEvent) {
452
+ element.detachEvent("onresize", fn);
453
+ } else {
454
+ element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
455
+ if (!element.__resizeListeners__.length) {
456
+ element.removeEventListener("scroll", scrollListener, true);
457
+ if (element.__resizeTriggers__.__animationListener__) {
458
+ element.__resizeTriggers__.removeEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);
459
+ element.__resizeTriggers__.__animationListener__ = null;
460
+ }
461
+ try {
462
+ element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);
463
+ } catch (e2) {
464
+ }
465
+ }
466
+ }
467
+ };
468
+ return {
469
+ addResizeListener,
470
+ removeResizeListener
471
+ };
472
+ }
473
+ class AutoSizer extends Component {
474
+ constructor(...args) {
475
+ super(...args);
476
+ this.state = {
477
+ height: this.props.defaultHeight || 0,
478
+ scaledHeight: this.props.defaultHeight || 0,
479
+ scaledWidth: this.props.defaultWidth || 0,
480
+ width: this.props.defaultWidth || 0
481
+ };
482
+ this._autoSizer = null;
483
+ this._detectElementResize = null;
484
+ this._parentNode = null;
485
+ this._resizeObserver = null;
486
+ this._timeoutId = null;
487
+ this._onResize = () => {
488
+ this._timeoutId = null;
489
+ const {
490
+ disableHeight,
491
+ disableWidth,
492
+ onResize
493
+ } = this.props;
494
+ if (this._parentNode) {
495
+ const style = window.getComputedStyle(this._parentNode) || {};
496
+ const paddingLeft = parseFloat(style.paddingLeft || "0");
497
+ const paddingRight = parseFloat(style.paddingRight || "0");
498
+ const paddingTop = parseFloat(style.paddingTop || "0");
499
+ const paddingBottom = parseFloat(style.paddingBottom || "0");
500
+ const rect = this._parentNode.getBoundingClientRect();
501
+ const scaledHeight = rect.height - paddingTop - paddingBottom;
502
+ const scaledWidth = rect.width - paddingLeft - paddingRight;
503
+ const height = this._parentNode.offsetHeight - paddingTop - paddingBottom;
504
+ const width = this._parentNode.offsetWidth - paddingLeft - paddingRight;
505
+ if (!disableHeight && (this.state.height !== height || this.state.scaledHeight !== scaledHeight) || !disableWidth && (this.state.width !== width || this.state.scaledWidth !== scaledWidth)) {
506
+ this.setState({
507
+ height,
508
+ width,
509
+ scaledHeight,
510
+ scaledWidth
511
+ });
512
+ if (typeof onResize === "function") {
513
+ onResize({
514
+ height,
515
+ scaledHeight,
516
+ scaledWidth,
517
+ width
518
+ });
519
+ }
520
+ }
521
+ }
522
+ };
523
+ this._setRef = (autoSizer) => {
524
+ this._autoSizer = autoSizer;
525
+ };
526
+ }
527
+ componentDidMount() {
528
+ const {
529
+ nonce
530
+ } = this.props;
531
+ const parentNode = this._autoSizer ? this._autoSizer.parentNode : null;
532
+ if (parentNode != null && parentNode.ownerDocument && parentNode.ownerDocument.defaultView && parentNode instanceof parentNode.ownerDocument.defaultView.HTMLElement) {
533
+ this._parentNode = parentNode;
534
+ const ResizeObserverInstance = parentNode.ownerDocument.defaultView.ResizeObserver;
535
+ if (ResizeObserverInstance != null) {
536
+ this._resizeObserver = new ResizeObserverInstance(() => {
537
+ this._timeoutId = setTimeout(this._onResize, 0);
538
+ });
539
+ this._resizeObserver.observe(parentNode);
540
+ } else {
541
+ this._detectElementResize = createDetectElementResize(nonce);
542
+ this._detectElementResize.addResizeListener(parentNode, this._onResize);
543
+ }
544
+ this._onResize();
545
+ }
546
+ }
547
+ componentWillUnmount() {
548
+ if (this._parentNode) {
549
+ if (this._detectElementResize) {
550
+ this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
551
+ }
552
+ if (this._timeoutId !== null) {
553
+ clearTimeout(this._timeoutId);
554
+ }
555
+ if (this._resizeObserver) {
556
+ this._resizeObserver.disconnect();
557
+ }
558
+ }
559
+ }
560
+ render() {
561
+ const {
562
+ children,
563
+ defaultHeight,
564
+ defaultWidth,
565
+ disableHeight = false,
566
+ disableWidth = false,
567
+ doNotBailOutOnEmptyChildren = false,
568
+ nonce,
569
+ onResize,
570
+ style = {},
571
+ tagName = "div",
572
+ ...rest
573
+ } = this.props;
574
+ const {
575
+ height,
576
+ scaledHeight,
577
+ scaledWidth,
578
+ width
579
+ } = this.state;
580
+ const outerStyle = {
581
+ overflow: "visible"
582
+ };
583
+ const childParams = {};
584
+ let bailoutOnChildren = false;
585
+ if (!disableHeight) {
586
+ if (height === 0) {
587
+ bailoutOnChildren = true;
588
+ }
589
+ outerStyle.height = 0;
590
+ childParams.height = height;
591
+ childParams.scaledHeight = scaledHeight;
592
+ }
593
+ if (!disableWidth) {
594
+ if (width === 0) {
595
+ bailoutOnChildren = true;
596
+ }
597
+ outerStyle.width = 0;
598
+ childParams.width = width;
599
+ childParams.scaledWidth = scaledWidth;
600
+ }
601
+ if (doNotBailOutOnEmptyChildren) {
602
+ bailoutOnChildren = false;
603
+ }
604
+ return createElement(tagName, {
605
+ ref: this._setRef,
606
+ style: {
607
+ ...outerStyle,
608
+ ...style
609
+ },
610
+ ...rest
611
+ }, !bailoutOnChildren && children(childParams));
612
+ }
613
+ }
614
+ const i$6 = /* @__PURE__ */ styled_default("div")({
615
+ name: "Container",
616
+ class: "c1itm4k7",
617
+ propsAsIs: false
618
+ }), c$6 = /* @__PURE__ */ styled_default("div")({
619
+ name: "IconContainer",
620
+ class: "i1w4fsni",
621
+ propsAsIs: false
622
+ }), e$9 = () => B1, l$9 = /* @__PURE__ */ styled_default(e$9())({
623
+ name: "InviteGameIcon",
624
+ class: "i19m85r1",
625
+ propsAsIs: true
626
+ }), p$a = /* @__PURE__ */ styled_default("div")({
627
+ name: "Content",
628
+ class: "c1mbu204",
629
+ propsAsIs: false
630
+ }), r$6 = /* @__PURE__ */ styled_default("div")({
631
+ name: "Heading",
632
+ class: "h1amdqtv",
633
+ propsAsIs: false
634
+ }), m$4 = /* @__PURE__ */ styled_default("div")({
635
+ name: "Subtext",
636
+ class: "s1lhlj9j",
637
+ propsAsIs: false
638
+ }), I$5 = /* @__PURE__ */ styled_default("div")({
639
+ name: "LinkContainer",
640
+ class: "l1wot35e",
641
+ propsAsIs: false
642
+ }), d$3 = /* @__PURE__ */ styled_default("div")({
643
+ name: "LinkInfo",
644
+ class: "l1jdw39q",
645
+ propsAsIs: false
646
+ }), f$5 = /* @__PURE__ */ styled_default("span")({
647
+ name: "LinkTitle",
648
+ class: "l1cr5mk",
649
+ propsAsIs: false
650
+ }), v$2 = /* @__PURE__ */ styled_default("span")({
651
+ name: "LinkAddress",
652
+ class: "lvi87q4",
653
+ propsAsIs: false
654
+ }), o$b = () => B1, A$2 = /* @__PURE__ */ styled_default(o$b())({
655
+ name: "LinkIcon",
656
+ class: "l1pqlvw3",
657
+ propsAsIs: true
658
+ });
659
+ const M = ({
660
+ inviteLink: i2,
661
+ inviteCardTitle: e2,
662
+ inviteCardSubtext: t2,
663
+ primaryColor: c2,
664
+ className: a2
665
+ }) => {
666
+ const r2 = useRef(null), [l2, d2] = T$2(r2), [m2] = f$7({
667
+ type: "invitation",
668
+ action: "sent",
669
+ payload: {
670
+ from: InvitationFrom.MENU
671
+ }
672
+ });
673
+ return /* @__PURE__ */ jsxs(i$6, { className: a2, children: [
674
+ /* @__PURE__ */ jsx(c$6, { style: { backgroundColor: c2 }, children: /* @__PURE__ */ jsx(l$9, { name: "invite-game-icon" }) }),
675
+ /* @__PURE__ */ jsxs(p$a, { children: [
676
+ /* @__PURE__ */ jsx(r$6, { children: e2 || "" }),
677
+ /* @__PURE__ */ jsx(m$4, { children: t2 || "" })
678
+ ] }),
679
+ i2 && /* @__PURE__ */ jsxs(I$5, { ref: r2, "data-a": "intr", onClick: m2(() => l2(i2)), children: [
680
+ /* @__PURE__ */ jsxs(d$3, { children: [
681
+ /* @__PURE__ */ jsx(f$5, { children: "Invite link" }),
682
+ /* @__PURE__ */ jsx(v$2, { children: i2 })
683
+ ] }),
684
+ /* @__PURE__ */ jsx(A$2, { name: "icon-copy" })
685
+ ] }),
686
+ d2
687
+ ] });
688
+ };
689
+ const s$5 = () => r$8, i$5 = /* @__PURE__ */ styled_default(s$5())({
690
+ name: "Container",
691
+ class: "cll3md7",
692
+ propsAsIs: true
693
+ }), e$8 = () => S$1, p$9 = /* @__PURE__ */ styled_default(e$8())({
694
+ name: "ActionBtn",
695
+ class: "a10g1iik",
696
+ propsAsIs: true
697
+ });
698
+ const c$5 = ({ questionId: t2, ...r2 }) => /* @__PURE__ */ jsxs(i$5, { "data-a": "intr", "data-name": t2, children: [
699
+ /* @__PURE__ */ jsx(O$1, { questionId: t2, ...r2 }),
700
+ /* @__PURE__ */ jsx(p$9, { "data-a": "intr", "data-name": t2, children: "View Insight" })
701
+ ] });
702
+ const s$4 = () => r$8, a$5 = /* @__PURE__ */ styled_default(s$4())({
703
+ name: "Container",
704
+ class: "cl56x6b",
705
+ propsAsIs: true
706
+ }), c$4 = /* @__PURE__ */ styled_default("button")({
707
+ name: "ActionButton",
708
+ class: "a11pzf92",
709
+ propsAsIs: false
710
+ }), p$8 = /* @__PURE__ */ styled_default("blockquote")({
711
+ name: "Quote",
712
+ class: "q1hbaleq",
713
+ propsAsIs: false
714
+ });
715
+ const l$8 = ({ ...t2 }) => /* @__PURE__ */ jsxs(a$5, { "data-a": "intr", "data-name": t2.tweetId, children: [
716
+ t2.title && /* @__PURE__ */ jsx(p$8, { children: t2.title }),
717
+ /* @__PURE__ */ jsx(b$2, { ...t2 }),
718
+ /* @__PURE__ */ jsx(c$4, { "data-a": "intr", "data-name": t2.tweetId, children: "View Insight" })
719
+ ] });
720
+ const e$7 = /* @__PURE__ */ styled_default("div")({
721
+ name: "QuestionsContainer",
722
+ class: "qvghv3l",
723
+ propsAsIs: false
724
+ });
725
+ const k$2 = ({ questions: n2, openQuestion: b2, controlVideo: a2 }) => {
726
+ const l2 = (t2) => {
727
+ const e2 = t2.target.getAttribute("data-name");
728
+ e2 && (wt(), b2(e2, { openedFrom: "list" }));
729
+ };
730
+ return n2 ? /* @__PURE__ */ jsx(e$7, { "data-a": "intr", onClick: l2, children: n2 == null ? void 0 : n2.map((t2) => {
731
+ var e2, u2, s2;
732
+ if (t2.type === "question" && ((e2 = t2.attributes) == null ? void 0 : e2.attributes.case) === "question") {
733
+ const i2 = t2.attributes.attributes.value;
734
+ return /* @__PURE__ */ jsx(R$2, { ...i2 }, i2.questionId);
735
+ }
736
+ if (t2.type === "insight" && ((u2 = t2.attributes) == null ? void 0 : u2.attributes.case) === "insight") {
737
+ const i2 = t2.attributes.attributes.value;
738
+ return /* @__PURE__ */ jsx(c$5, { controlVideo: a2, ...i2 }, i2.questionId);
739
+ }
740
+ if (t2.type === "tweet" && ((s2 = t2.attributes) == null ? void 0 : s2.attributes.case) === "tweet") {
741
+ const i2 = t2.attributes.attributes.value, o2 = t2.attributes.id;
742
+ return /* @__PURE__ */ jsx(l$8, { controlVideo: a2, ...i2, tweetId: o2 }, o2);
743
+ }
744
+ return null;
745
+ }) }) : /* @__PURE__ */ jsx(e$7, { children: Array.from({ length: 5 }).map((t2, e2) => /* @__PURE__ */ jsx(D$1, {}, e2)) });
746
+ };
747
+ const t$9 = /* @__PURE__ */ styled_default("div")({
748
+ name: "InsightContainer",
749
+ class: "i1pqqgpo",
750
+ propsAsIs: false
751
+ }), e$6 = /* @__PURE__ */ styled_default("img")({
752
+ name: "Image",
753
+ class: "igj7luu",
754
+ propsAsIs: false
755
+ }), a$4 = /* @__PURE__ */ styled_default("div")({
756
+ name: "ImageContainer",
757
+ class: "i1qne9g6",
758
+ propsAsIs: false
759
+ }), o$a = /* @__PURE__ */ styled_default("div")({
760
+ name: "InsightContent",
761
+ class: "itpr98r",
762
+ propsAsIs: false
763
+ }), i$4 = /* @__PURE__ */ styled_default("h3")({
764
+ name: "Title",
765
+ class: "t17iaqp8",
766
+ propsAsIs: false
767
+ }), p$7 = /* @__PURE__ */ styled_default("div")({
768
+ name: "Description",
769
+ class: "d16t3y7s",
770
+ propsAsIs: false
771
+ }), r$5 = /* @__PURE__ */ styled_default("button")({
772
+ name: "ActionBtn",
773
+ class: "a12495er",
774
+ propsAsIs: false
775
+ });
776
+ const V = ({ video: r2, image: t2, imageMode: i2, heading: l2, body: m2, action: s2, controlVideo: e2 }) => /* @__PURE__ */ jsxs(t$9, { children: [
777
+ (r2 == null ? void 0 : r2.url) && /* @__PURE__ */ jsx(Et, { source: r2.url, poster: r2.thumbnailUrl, controlVideo: e2 }),
778
+ t2 && !(r2 != null && r2.url) && /* @__PURE__ */ jsx(a$4, { "data-rounded": i2 === QuestionImages.ROUNDED, children: /* @__PURE__ */ jsx(e$6, { src: t2, alt: l2 }) }),
779
+ /* @__PURE__ */ jsxs(o$a, { children: [
780
+ /* @__PURE__ */ jsx(i$4, { children: l2 }),
781
+ /* @__PURE__ */ jsx(p$7, { children: m2 }),
782
+ s2 && /* @__PURE__ */ jsx(r$5, { onClick: s2, children: "View Insight" })
783
+ ] })
784
+ ] });
785
+ const p$6 = /* @__PURE__ */ styled_default("div")({
786
+ name: "Container",
787
+ class: "c1eptrjd",
788
+ propsAsIs: false
789
+ }), t$8 = /* @__PURE__ */ styled_default("div")({
790
+ name: "CloseIconWrap",
791
+ class: "crylm65",
792
+ propsAsIs: false
793
+ }), o$9 = () => B1, r$4 = /* @__PURE__ */ styled_default(o$9())({
794
+ name: "CloseIcon",
795
+ class: "c9mrcz7",
796
+ propsAsIs: true
797
+ }), l$7 = /* @__PURE__ */ styled_default("div")({
798
+ name: "Header",
799
+ class: "hw3lzv4",
800
+ propsAsIs: false
801
+ }), n$7 = () => B1, m$3 = /* @__PURE__ */ styled_default(n$7())({
802
+ name: "TypeIcon",
803
+ class: "t1rrb3kf",
804
+ propsAsIs: true
805
+ }), I$4 = /* @__PURE__ */ styled_default("span")({
806
+ name: "TypeName",
807
+ class: "t1ydnjov",
808
+ propsAsIs: false
809
+ }), f$4 = /* @__PURE__ */ styled_default("div")({
810
+ name: "Question",
811
+ class: "qlf90cl",
812
+ propsAsIs: false
813
+ }), i$3 = /* @__PURE__ */ styled_default("button")({
814
+ name: "AnswerButton",
815
+ class: "a1e0nhcl",
816
+ propsAsIs: false
817
+ });
818
+ const t$7 = /* @__PURE__ */ styled_default("div")({
819
+ name: "Container",
820
+ class: "c1t4f0x4",
821
+ propsAsIs: false
822
+ }), n$6 = /* @__PURE__ */ styled_default("button")({
823
+ name: "ActionBtn",
824
+ class: "a16w1nl6",
825
+ propsAsIs: false
826
+ }), a$3 = /* @__PURE__ */ styled_default("div")({
827
+ name: "QuoteWrap",
828
+ class: "q14u54rf",
829
+ propsAsIs: false
830
+ }), e$5 = /* @__PURE__ */ styled_default("blockquote")({
831
+ name: "Quote",
832
+ class: "q1hxm6zo",
833
+ propsAsIs: false
834
+ });
835
+ const s$3 = ({ action: i2, ...e2 }) => /* @__PURE__ */ jsxs(t$7, { children: [
836
+ e2.title && /* @__PURE__ */ jsx(a$3, { children: /* @__PURE__ */ jsx(e$5, { children: e2.title }) }),
837
+ /* @__PURE__ */ jsx(b$2, { ...e2 }),
838
+ i2 && /* @__PURE__ */ jsx(n$6, { onClick: i2, children: "View Insight" })
839
+ ] });
840
+ const w$2 = ({
841
+ close: i2,
842
+ action: o2,
843
+ controlVideo: c2,
844
+ data: { questionType: r2, question: t2, insight: d2, tweet: e2 }
845
+ }) => {
846
+ const l2 = e$d[r2];
847
+ return l2 ? /* @__PURE__ */ jsxs(p$6, { onClick: o2, style: r2 === QuestionType.TWEET ? { paddingTop: "12px" } : {}, children: [
848
+ /* @__PURE__ */ jsx(
849
+ t$8,
850
+ {
851
+ "data-a": "intr",
852
+ onClick: (p2) => {
853
+ p2.stopPropagation(), i2 && i2(p2);
854
+ },
855
+ children: /* @__PURE__ */ jsx(r$4, { name: "icon-cross" })
856
+ }
857
+ ),
858
+ r2 !== QuestionType.TWEET && /* @__PURE__ */ jsxs(l$7, { children: [
859
+ /* @__PURE__ */ jsx(
860
+ m$3,
861
+ {
862
+ "data-type-trivia": r2 === QuestionType.TRIVIA,
863
+ "data-type-poll": r2 === QuestionType.POLL,
864
+ name: l2.iconName
865
+ }
866
+ ),
867
+ /* @__PURE__ */ jsx(I$4, { children: l2.label })
868
+ ] }),
869
+ r2 === QuestionType.FACTOID && d2 && /* @__PURE__ */ jsx(V, { ...d2, action: o2, controlVideo: c2 }),
870
+ r2 === QuestionType.TWEET && e2 && /* @__PURE__ */ jsx(s$3, { ...e2, action: o2, controlVideo: c2 }),
871
+ r2 !== QuestionType.FACTOID && r2 !== QuestionType.TWEET && /* @__PURE__ */ jsxs(Fragment, { children: [
872
+ /* @__PURE__ */ jsx(f$4, { children: t2 == null ? void 0 : t2.title }),
873
+ /* @__PURE__ */ jsx(i$3, { children: "Answer" })
874
+ ] })
875
+ ] }) : null;
876
+ };
877
+ const l$6 = /* @__PURE__ */ styled_default("div")({
878
+ name: "BGWrap",
879
+ class: "b1dqe0sz",
880
+ propsAsIs: false
881
+ }), s$2 = /* @__PURE__ */ styled_default("div")({
882
+ name: "BGLineBase",
883
+ class: "b1v6w7ni",
884
+ propsAsIs: false
885
+ }), n$5 = () => s$2, m$2 = /* @__PURE__ */ styled_default(n$5())({
886
+ name: "BGOneLineOne",
887
+ class: "b2nqb1p",
888
+ propsAsIs: true
889
+ }), o$8 = () => s$2, x$1 = /* @__PURE__ */ styled_default(o$8())({
890
+ name: "BGOneLineTwo",
891
+ class: "b1xxgmbk",
892
+ propsAsIs: true
893
+ }), r$3 = () => s$2, w$1 = /* @__PURE__ */ styled_default(r$3())({
894
+ name: "BGOneLineThree",
895
+ class: "b63lwcb",
896
+ propsAsIs: true
897
+ }), p$5 = () => s$2, A$1 = /* @__PURE__ */ styled_default(p$5())({
898
+ name: "BGTwoLineOne",
899
+ class: "b2iah4",
900
+ propsAsIs: true
901
+ }), t$6 = () => s$2, I$3 = /* @__PURE__ */ styled_default(t$6())({
902
+ name: "BGTwoLineTwo",
903
+ class: "b1xezvf6",
904
+ propsAsIs: true
905
+ }), c$3 = () => s$2, O = /* @__PURE__ */ styled_default(c$3())({
906
+ name: "BGTwoLineThree",
907
+ class: "b1jz1hg0",
908
+ propsAsIs: true
909
+ }), a$2 = () => s$2, _$1 = /* @__PURE__ */ styled_default(a$2())({
910
+ name: "BGThreeLineOne",
911
+ class: "b18ho1tk",
912
+ propsAsIs: true
913
+ }), i$2 = () => s$2, F$1 = /* @__PURE__ */ styled_default(i$2())({
914
+ name: "BGThreeLineTwo",
915
+ class: "b14uvjfm",
916
+ propsAsIs: true
917
+ }), B = () => s$2, d$2 = /* @__PURE__ */ styled_default(B())({
918
+ name: "BGThreeLineThree",
919
+ class: "b11c3ns7",
920
+ propsAsIs: true
921
+ }), G = () => s$2, v$1 = /* @__PURE__ */ styled_default(G())({
922
+ name: "BGThreeLineFour",
923
+ class: "b1bqhhet",
924
+ propsAsIs: true
925
+ }), L = () => s$2, f$3 = /* @__PURE__ */ styled_default(L())({
926
+ name: "BGFourLineOne",
927
+ class: "b1xyzi7o",
928
+ propsAsIs: true
929
+ }), T$1 = () => s$2, q = /* @__PURE__ */ styled_default(T$1())({
930
+ name: "BGFourLineTwo",
931
+ class: "byo0rup",
932
+ propsAsIs: true
933
+ }), u$1 = () => s$2, y = /* @__PURE__ */ styled_default(u$1())({
934
+ name: "BGFourLineThree",
935
+ class: "b1oyiqgv",
936
+ propsAsIs: true
937
+ }), h = () => s$2, z = /* @__PURE__ */ styled_default(h())({
938
+ name: "BGFourLineFour",
939
+ class: "bx3ddqw",
940
+ propsAsIs: true
941
+ });
942
+ const s$1 = ({ step: n2, correct: L2 }) => /* @__PURE__ */ jsxs(Fragment, { children: [
943
+ /* @__PURE__ */ jsxs(l$6, { "data-active": n2 === 1, "data-first-screen": "true", children: [
944
+ /* @__PURE__ */ jsx(m$2, {}),
945
+ /* @__PURE__ */ jsx(x$1, {}),
946
+ /* @__PURE__ */ jsx(w$1, {})
947
+ ] }),
948
+ /* @__PURE__ */ jsxs(l$6, { "data-active": n2 === 2, children: [
949
+ /* @__PURE__ */ jsx(A$1, {}),
950
+ /* @__PURE__ */ jsx(I$3, {}),
951
+ /* @__PURE__ */ jsx(O, {})
952
+ ] }),
953
+ /* @__PURE__ */ jsxs(l$6, { "data-active": n2 === 3, children: [
954
+ /* @__PURE__ */ jsx(A$1, {}),
955
+ /* @__PURE__ */ jsx(I$3, {}),
956
+ /* @__PURE__ */ jsx(O, {})
957
+ ] }),
958
+ L2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
959
+ /* @__PURE__ */ jsxs(l$6, { "data-active": n2 === 4, "data-correct": "true", children: [
960
+ /* @__PURE__ */ jsx(_$1, {}),
961
+ /* @__PURE__ */ jsx(F$1, {}),
962
+ /* @__PURE__ */ jsx(d$2, {}),
963
+ /* @__PURE__ */ jsx(v$1, {})
964
+ ] }),
965
+ /* @__PURE__ */ jsxs(l$6, { "data-active": n2 === 5, "data-correct": "true", children: [
966
+ /* @__PURE__ */ jsx(_$1, {}),
967
+ /* @__PURE__ */ jsx(F$1, {}),
968
+ /* @__PURE__ */ jsx(d$2, {}),
969
+ /* @__PURE__ */ jsx(v$1, {})
970
+ ] })
971
+ ] }) : /* @__PURE__ */ jsxs(l$6, { "data-active": n2 === 4, "data-correct": "false", children: [
972
+ /* @__PURE__ */ jsx(f$3, {}),
973
+ /* @__PURE__ */ jsx(q, {}),
974
+ /* @__PURE__ */ jsx(y, {}),
975
+ /* @__PURE__ */ jsx(z, {})
976
+ ] })
977
+ ] });
978
+ const A = 118, t$5 = () => f$8, f$2 = /* @__PURE__ */ styled_default(t$5())({
979
+ name: "Container",
980
+ class: "c10131zw",
981
+ propsAsIs: true
982
+ }), C = /* @__PURE__ */ styled_default("div")({
983
+ name: "InnerContainer",
984
+ class: "ir6k2eo",
985
+ propsAsIs: false
986
+ }), b$1 = /* @__PURE__ */ styled_default("div")({
987
+ name: "Content",
988
+ class: "c1hwoq9l",
989
+ propsAsIs: false
990
+ }), c$2 = /* @__PURE__ */ styled_default("div")({
991
+ name: "Title",
992
+ class: "t4ujo4g",
993
+ propsAsIs: false
994
+ }), r$2 = () => c$2, u = /* @__PURE__ */ styled_default(r$2())({
995
+ name: "PointsTitle",
996
+ class: "p1pjil1h",
997
+ propsAsIs: true
998
+ }), v = /* @__PURE__ */ styled_default("div")({
999
+ name: "Subtitle",
1000
+ class: "s1iorwr9",
1001
+ propsAsIs: false
1002
+ }), k$1 = /* @__PURE__ */ styled_default("div")({
1003
+ name: "SubtitleFG",
1004
+ class: "s51sv9d",
1005
+ propsAsIs: false
1006
+ }), x = /* @__PURE__ */ styled_default("div")({
1007
+ name: "AnswerText",
1008
+ class: "a1lbk2ye",
1009
+ propsAsIs: false
1010
+ }), a$1 = () => B1, o$7 = /* @__PURE__ */ styled_default(a$1())({
1011
+ name: "FeedbackIcon",
1012
+ class: "frcvk3t",
1013
+ propsAsIs: true
1014
+ }), p$4 = () => o$7, T = /* @__PURE__ */ styled_default(p$4())({
1015
+ name: "FeedbackIconCorrect",
1016
+ class: "f33p82r",
1017
+ propsAsIs: true
1018
+ }), l$5 = () => o$7, F = /* @__PURE__ */ styled_default(l$5())({
1019
+ name: "FeedbackIconIncorrect",
1020
+ class: "f12r9net",
1021
+ propsAsIs: true
1022
+ }), _ = /* @__PURE__ */ styled_default("div")({
1023
+ name: "CloseIconWrap",
1024
+ class: "c1fw6699",
1025
+ propsAsIs: false
1026
+ }), I$2 = () => B1, w = /* @__PURE__ */ styled_default(I$2())({
1027
+ name: "CloseIcon",
1028
+ class: "c115o126",
1029
+ propsAsIs: true
1030
+ });
1031
+ const E = "data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e", R = "data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", W = (s2, i2, L2) => s2 === i2 ? "translateY(0px)" : s2 > i2 ? `translateY(${L2}px)` : "translateY(-100%)", D = ({ close: s2, votedAnswer: i2, mastersApp: L2, correct: a2, correctAnswerTitle: w$12, questionTitle: k2, saveHeight: u$12, style: n2, hiding: x$12 }) => {
1032
+ const [c2, b2] = useState(1), H = useRef({});
1033
+ useEffect(() => {
1034
+ const l2 = setInterval(() => {
1035
+ b2((e2) => a2 && e2 > 4 || !a2 && e2 > 3 ? e2 : ++e2);
1036
+ }, 3e3);
1037
+ return () => clearInterval(l2);
1038
+ }, [a2]), useEffect(() => {
1039
+ var l2, e2;
1040
+ H.current[c2] && u$12(((e2 = (l2 = H.current[c2]) == null ? void 0 : l2.getBoundingClientRect()) == null ? void 0 : e2.height) || A);
1041
+ }, [c2, u$12]);
1042
+ const r2 = (l2) => (e2) => {
1043
+ H.current && (H.current[l2] = e2);
1044
+ }, h2 = (l2) => ({ transform: W(l2, c2, n2.height) }), V2 = { ...n2 };
1045
+ return L2 && V2.height && typeof V2.height == "number" && (V2.height += 32), /* @__PURE__ */ jsx(f$2, { style: n2.height ? V2 : { ...n2, paddingTop: 0, paddingBottom: 0 }, hiding: x$12, children: /* @__PURE__ */ jsxs(
1046
+ C,
1047
+ {
1048
+ style: {
1049
+ height: n2.height,
1050
+ minHeight: n2.height,
1051
+ backgroundColor: c2 > 3 ? a2 ? "var(--color-sdk-prediction-result-success-bg)" : "var(--color-sdk-prediction-result-incorrect-bg)" : "var(--color-primary-1)"
1052
+ },
1053
+ children: [
1054
+ /* @__PURE__ */ jsx(s$1, { step: c2, correct: a2 }),
1055
+ L2 && /* @__PURE__ */ jsxs(b$1, { ref: r2(1), style: h2(1), children: [
1056
+ /* @__PURE__ */ jsx("img", { alt: "sponsor-logo", src: E }),
1057
+ /* @__PURE__ */ jsx(k$1, { children: "Featured Groups +" })
1058
+ ] }),
1059
+ !L2 && /* @__PURE__ */ jsx(b$1, { ref: r2(1), style: h2(1), children: /* @__PURE__ */ jsx("img", { alt: "sponsor-logo", src: R }) }),
1060
+ /* @__PURE__ */ jsxs(b$1, { ref: r2(2), style: h2(2), children: [
1061
+ /* @__PURE__ */ jsx(c$2, { children: "Prediction results are in!" }),
1062
+ L2 && /* @__PURE__ */ jsx(k$1, { children: "Featured Groups +" })
1063
+ ] }),
1064
+ /* @__PURE__ */ jsxs(b$1, { ref: r2(3), style: h2(3), children: [
1065
+ /* @__PURE__ */ jsx(c$2, { children: k2 }),
1066
+ /* @__PURE__ */ jsx(v, { children: /* @__PURE__ */ jsxs(x, { children: [
1067
+ /* @__PURE__ */ jsx("span", { children: "Your Pick:" }),
1068
+ " ",
1069
+ i2 == null ? void 0 : i2.title
1070
+ ] }) })
1071
+ ] }),
1072
+ a2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
1073
+ /* @__PURE__ */ jsxs(
1074
+ b$1,
1075
+ {
1076
+ ref: r2(4),
1077
+ style: { ...h2(4), color: "var(--color-sdk-prediction-result-success-text)" },
1078
+ children: [
1079
+ /* @__PURE__ */ jsxs(c$2, { children: [
1080
+ "Congratulations!",
1081
+ /* @__PURE__ */ jsx("br", {}),
1082
+ "You answered correctly."
1083
+ ] }),
1084
+ /* @__PURE__ */ jsxs(v, { children: [
1085
+ /* @__PURE__ */ jsx(T, { name: "selected" }),
1086
+ /* @__PURE__ */ jsxs(x, { children: [
1087
+ /* @__PURE__ */ jsx("span", { children: "Your Pick:" }),
1088
+ " ",
1089
+ i2 == null ? void 0 : i2.title
1090
+ ] })
1091
+ ] })
1092
+ ]
1093
+ }
1094
+ ),
1095
+ /* @__PURE__ */ jsxs(
1096
+ b$1,
1097
+ {
1098
+ ref: r2(5),
1099
+ style: { ...h2(5), color: "var(--color-sdk-prediction-result-success-text)" },
1100
+ children: [
1101
+ /* @__PURE__ */ jsx(u, { children: c2 === 5 && /* @__PURE__ */ jsx(d$5, { delay: 0.5, prefix: "+", suffix: " points", value: i2 == null ? void 0 : i2.points }) }),
1102
+ /* @__PURE__ */ jsxs(v, { children: [
1103
+ /* @__PURE__ */ jsx(T, { name: "selected" }),
1104
+ /* @__PURE__ */ jsxs(x, { children: [
1105
+ /* @__PURE__ */ jsx("span", { children: "Your Pick:" }),
1106
+ " ",
1107
+ i2 == null ? void 0 : i2.title
1108
+ ] })
1109
+ ] }),
1110
+ /* @__PURE__ */ jsx(_, { "data-a": "intr", onClick: s2, children: /* @__PURE__ */ jsx(w, { name: "icon-cross" }) })
1111
+ ]
1112
+ }
1113
+ )
1114
+ ] }) : /* @__PURE__ */ jsxs(b$1, { ref: r2(4), style: h2(4), children: [
1115
+ /* @__PURE__ */ jsxs(c$2, { style: { color: "var(--color-sdk-prediction-result-error-title)" }, children: [
1116
+ "Better luck next time!",
1117
+ /* @__PURE__ */ jsx("br", {}),
1118
+ "Correct: ",
1119
+ w$12,
1120
+ "."
1121
+ ] }),
1122
+ /* @__PURE__ */ jsxs(v, { style: { color: "var(--color-sdk-prediction-result-error-subtitle)" }, children: [
1123
+ /* @__PURE__ */ jsx(F, { name: "circleClose" }),
1124
+ /* @__PURE__ */ jsxs(x, { children: [
1125
+ /* @__PURE__ */ jsx("span", { children: "Your Pick:" }),
1126
+ " ",
1127
+ i2 == null ? void 0 : i2.title
1128
+ ] })
1129
+ ] }),
1130
+ /* @__PURE__ */ jsx(_, { "data-a": "intr", onClick: s2, children: /* @__PURE__ */ jsx(w, { name: "icon-cross" }) })
1131
+ ] })
1132
+ ]
1133
+ }
1134
+ ) });
1135
+ };
1136
+ const I$1 = (e2) => {
1137
+ const [i2, r2] = useState(false), [f2, s2] = useState(false), t2 = useRef(null), a2 = useCallback(() => {
1138
+ s2(true), t2.current && clearTimeout(t2.current), t2.current = setTimeout(() => {
1139
+ s2(false);
1140
+ }, 1e3);
1141
+ }, []), l2 = useCallback(async (m2) => {
1142
+ r2(true);
1143
+ const d2 = m2.map(
1144
+ (n2) => new Promise((g, h2) => {
1145
+ const o2 = new Image();
1146
+ o2.onload = () => g(n2), o2.onerror = () => h2(), o2.src = n2;
1147
+ })
1148
+ );
1149
+ await Promise.allSettled(d2), r2(false);
1150
+ }, []);
1151
+ return useEffect(() => {
1152
+ e2 && (a2(), l2(e2));
1153
+ }, [e2, a2, l2]), { loading: i2, throttled: f2 };
1154
+ };
1155
+ const e$4 = /* @__PURE__ */ styled_default("div")({
1156
+ name: "Container",
1157
+ class: "cl51m2q",
1158
+ propsAsIs: false
1159
+ }), n$4 = /* @__PURE__ */ styled_default("img")({
1160
+ name: "Avatar",
1161
+ class: "a2yhhhr",
1162
+ propsAsIs: false
1163
+ }), t$4 = /* @__PURE__ */ styled_default("div")({
1164
+ name: "AvatarPlaceholder",
1165
+ class: "a1dtxxlr",
1166
+ propsAsIs: false
1167
+ }), l$4 = /* @__PURE__ */ styled_default("div")({
1168
+ name: "Content",
1169
+ class: "c12clm3w",
1170
+ propsAsIs: false
1171
+ }), o$6 = /* @__PURE__ */ styled_default("span")({
1172
+ name: "Name",
1173
+ class: "n14lctn7",
1174
+ propsAsIs: false
1175
+ });
1176
+ const p$3 = ({ avatar: r2, name: e2 }) => /* @__PURE__ */ jsxs(e$4, { children: [
1177
+ r2 && /* @__PURE__ */ jsx(n$4, { src: r2 }),
1178
+ !r2 && /* @__PURE__ */ jsx(t$4, { children: I$7(e2 || "") }),
1179
+ /* @__PURE__ */ jsxs(l$4, { children: [
1180
+ /* @__PURE__ */ jsxs(o$6, { children: [
1181
+ e2,
1182
+ " "
1183
+ ] }),
1184
+ "is waiting for you!"
1185
+ ] })
1186
+ ] });
1187
+ const n$3 = /* @__PURE__ */ styled_default("div")({
1188
+ name: "Container",
1189
+ class: "c1htq1lb",
1190
+ propsAsIs: false
1191
+ }), e$3 = /* @__PURE__ */ styled_default("div")({
1192
+ name: "Graphic",
1193
+ class: "gjyzpp7",
1194
+ propsAsIs: false
1195
+ }), p$2 = /* @__PURE__ */ styled_default("img")({
1196
+ name: "GraphicImage",
1197
+ class: "g16mldgz",
1198
+ propsAsIs: false
1199
+ }), o$5 = /* @__PURE__ */ styled_default("div")({
1200
+ name: "Headline",
1201
+ class: "h69js65",
1202
+ propsAsIs: false
1203
+ }), t$3 = /* @__PURE__ */ styled_default("div")({
1204
+ name: "TaglineContainer",
1205
+ class: "tmm7qmo",
1206
+ propsAsIs: false
1207
+ }), i$1 = /* @__PURE__ */ styled_default("div")({
1208
+ name: "Tagline",
1209
+ class: "t17knuw2",
1210
+ propsAsIs: false
1211
+ }), l$3 = /* @__PURE__ */ styled_default("div")({
1212
+ name: "Content",
1213
+ class: "c1b74psg",
1214
+ propsAsIs: false
1215
+ }), r$1 = /* @__PURE__ */ styled_default("div")({
1216
+ name: "StepsContainer",
1217
+ class: "s1y99ug7",
1218
+ propsAsIs: false
1219
+ }), c$1 = /* @__PURE__ */ styled_default("span")({
1220
+ name: "StepIndicator",
1221
+ class: "sgf3v5n",
1222
+ propsAsIs: false
1223
+ }), m$1 = /* @__PURE__ */ styled_default("div")({
1224
+ name: "InvitingUserWrap",
1225
+ class: "i1sj6gn8",
1226
+ propsAsIs: false
1227
+ });
1228
+ const k = ({
1229
+ loading: e2,
1230
+ steps: a2,
1231
+ currentStep: i2,
1232
+ inviterName: l2
1233
+ }) => {
1234
+ const { headline: c2, tagline: o2 } = a2[i2];
1235
+ return /* @__PURE__ */ jsxs(n$3, { children: [
1236
+ o2 && /* @__PURE__ */ jsx(t$3, { children: /* @__PURE__ */ jsx(i$8, { loading: e2, children: /* @__PURE__ */ jsx(i$1, { children: o2 }) }) }),
1237
+ /* @__PURE__ */ jsxs(l$3, { "data-welcome-screen": i2 === 0, children: [
1238
+ /* @__PURE__ */ jsx(e$3, { children: /* @__PURE__ */ jsx(i$8, { loading: e2, children: a2.map(({ graphicSrc: d2 }, r2) => /* @__PURE__ */ jsx(p$2, { src: d2, "data-active": i2 === r2 })) }) }),
1239
+ c2 && /* @__PURE__ */ jsx(i$8, { loading: e2, children: /* @__PURE__ */ jsx(o$5, { children: c2 }) })
1240
+ ] }),
1241
+ l2 && i2 === 0 && /* @__PURE__ */ jsx(m$1, { children: /* @__PURE__ */ jsx(p$3, { name: l2 }) }),
1242
+ /* @__PURE__ */ jsx(r$1, { style: e2 ? { visibility: "hidden" } : {}, children: Array.from({ length: a2.length }).map((d2, r2) => /* @__PURE__ */ jsx(c$1, { "data-active": i2 === r2 }, r2)) })
1243
+ ] });
1244
+ };
1245
+ const t$2 = /* @__PURE__ */ styled_default("div")({
1246
+ name: "Container",
1247
+ class: "cm0bev",
1248
+ propsAsIs: false
1249
+ }), l$2 = /* @__PURE__ */ styled_default("div")({
1250
+ name: "Content",
1251
+ class: "ce7x737",
1252
+ propsAsIs: false
1253
+ }), n$2 = /* @__PURE__ */ styled_default("div")({
1254
+ name: "Title",
1255
+ class: "tc2tor6",
1256
+ propsAsIs: false
1257
+ }), o$4 = /* @__PURE__ */ styled_default("div")({
1258
+ name: "RulesList",
1259
+ class: "r1k5klql",
1260
+ propsAsIs: false
1261
+ }), a = /* @__PURE__ */ styled_default("div")({
1262
+ name: "RulesItem",
1263
+ class: "r1tf3ft2",
1264
+ propsAsIs: false
1265
+ }), c = /* @__PURE__ */ styled_default("div")({
1266
+ name: "RuleIcon",
1267
+ class: "rwpvg1k",
1268
+ propsAsIs: false
1269
+ }), r = /* @__PURE__ */ styled_default("div")({
1270
+ name: "RuleText",
1271
+ class: "rbxiag0",
1272
+ propsAsIs: false
1273
+ }), p$1 = /* @__PURE__ */ styled_default("button")({
1274
+ name: "TermsButton",
1275
+ class: "t6cyrry",
1276
+ propsAsIs: false
1277
+ });
1278
+ const b = ({
1279
+ rules: e2,
1280
+ rulesTitle: o2,
1281
+ termsText: i2,
1282
+ primaryColor: d2,
1283
+ openTerms: l2
1284
+ }) => /* @__PURE__ */ jsxs(t$2, { children: [
1285
+ /* @__PURE__ */ jsxs(l$2, { children: [
1286
+ /* @__PURE__ */ jsx(n$2, { children: o2 }),
1287
+ /* @__PURE__ */ jsx(o$4, { children: e2 == null ? void 0 : e2.map(({ label: c$12, icon: r$12 }, a$12) => /* @__PURE__ */ jsxs(a, { children: [
1288
+ r$12 && /* @__PURE__ */ jsx(c, { style: { backgroundColor: d2 }, children: /* @__PURE__ */ jsx(B1, { name: r$12, "data-icon": r$12 }) }),
1289
+ /* @__PURE__ */ jsx(r, { children: c$12 })
1290
+ ] }, a$12)) })
1291
+ ] }),
1292
+ i2 && /* @__PURE__ */ jsx(p$1, { "data-a": "intr", onClick: l2, children: "See Terms and Conditions" })
1293
+ ] });
1294
+ const t$1 = /* @__PURE__ */ styled_default("div")({
1295
+ name: "Container",
1296
+ class: "cj0g35h",
1297
+ propsAsIs: false
1298
+ }), e$2 = /* @__PURE__ */ styled_default("div")({
1299
+ name: "Content",
1300
+ class: "c1xkhrbn",
1301
+ propsAsIs: false
1302
+ }), o$3 = /* @__PURE__ */ styled_default("div")({
1303
+ name: "Title",
1304
+ class: "tifzb8b",
1305
+ propsAsIs: false
1306
+ }), l$1 = /* @__PURE__ */ styled_default("div")({
1307
+ name: "ScrollingText",
1308
+ class: "stduw5c",
1309
+ propsAsIs: false
1310
+ });
1311
+ const s = ({ termsTitle: n2, termsText: e2 }) => /* @__PURE__ */ jsx(t$1, { children: /* @__PURE__ */ jsxs(e$2, { children: [
1312
+ /* @__PURE__ */ jsx(o$3, { children: n2 }),
1313
+ /* @__PURE__ */ jsx(l$1, { children: e2 })
1314
+ ] }) });
1315
+ const o$2 = /* @__PURE__ */ styled_default("button")({
1316
+ name: "SButton",
1317
+ class: "s1nve60q",
1318
+ propsAsIs: false
1319
+ }), n$1 = /* @__PURE__ */ styled_default("span")({
1320
+ name: "ButtonLabel",
1321
+ class: "b1xoswwx",
1322
+ propsAsIs: false
1323
+ });
1324
+ const d$1 = ({ disabled: r2, variant: a2 = "primary", onClick: o2, children: n2, ...i2 }) => /* @__PURE__ */ jsx(o$2, { "data-a": "intr", onClick: o2, disabled: r2, "data-variant": a2, ...i2, children: /* @__PURE__ */ jsx(n$1, { children: n2 }) });
1325
+ const i = /* @__PURE__ */ styled_default("div")({
1326
+ name: "Container",
1327
+ class: "c18uddbs",
1328
+ propsAsIs: false
1329
+ }), p = /* @__PURE__ */ styled_default("div")({
1330
+ name: "Content",
1331
+ class: "cvcfjf6",
1332
+ propsAsIs: false
1333
+ }), l = /* @__PURE__ */ styled_default("div")({
1334
+ name: "OnboardingHeader",
1335
+ class: "o1ie27lw",
1336
+ propsAsIs: false
1337
+ }), d = /* @__PURE__ */ styled_default("button")({
1338
+ name: "CloseBtn",
1339
+ class: "c15cjkwi",
1340
+ propsAsIs: false
1341
+ }), t = () => B1, m = /* @__PURE__ */ styled_default(t())({
1342
+ name: "IconClose",
1343
+ class: "i1mavjt2",
1344
+ propsAsIs: true
1345
+ }), f$1 = /* @__PURE__ */ styled_default("div")({
1346
+ name: "OnboardingFooter",
1347
+ class: "o1x0dyzv",
1348
+ propsAsIs: false
1349
+ }), e$1 = () => d$1, I = /* @__PURE__ */ styled_default(e$1())({
1350
+ name: "OnboardingActionBtn",
1351
+ class: "o1jfi9c3",
1352
+ propsAsIs: true
1353
+ });
1354
+ const o$1 = {
1355
+ steps: false,
1356
+ rules: false,
1357
+ inviteCard: false
1358
+ }, tn = ({
1359
+ gamification: I$12,
1360
+ steps: n2,
1361
+ rules: t2,
1362
+ rulesBtnLabel: c2,
1363
+ rulesTitle: T2,
1364
+ termsTitle: x2,
1365
+ termsText: u2,
1366
+ primaryColor: g,
1367
+ inviteLink: D2,
1368
+ inviteCardTitle: k$12,
1369
+ inviteCardSubtext: w2,
1370
+ inviteCardBtnLabel: b$12,
1371
+ loading: d$12,
1372
+ inviterName: f2,
1373
+ sdk: C2,
1374
+ onClose: A2
1375
+ }) => {
1376
+ const [a2, O2] = useState(0), [l$12, S2] = useState(false), [e2, r2] = useState(o$1);
1377
+ useEffect(() => {
1378
+ n2 != null && n2.length ? r2({ ...o$1, steps: true }) : t2 != null && t2.length ? r2({ ...o$1, rules: true }) : r2({ ...o$1, inviteCard: true });
1379
+ }, []);
1380
+ const j = useMemo(() => e2.steps && a2 === 0 ? "Continue" : e2.rules ? l$12 || !c2 ? "Got it" : c2 : e2.inviteCard ? b$12 || "Play Now" : "Next", [e2, a2, l$12, c2, b$12]), p$12 = useCallback(() => {
1381
+ n2 != null && n2.length && a2 < n2.length - 1 ? O2((m2) => ++m2) : t2 != null && t2.length && e2.steps ? r2({ ...o$1, rules: true }) : e2.rules && r2({ ...o$1, inviteCard: true });
1382
+ }, [a2, n2 == null ? void 0 : n2.length, t2 == null ? void 0 : t2.length, e2, O2, r2]), H = async () => {
1383
+ e2.inviteCard ? await I$12.onboardingStatus.submitInplay() : e2.rules && l$12 ? S2(false) : p$12();
1384
+ };
1385
+ return useEffect(() => {
1386
+ !d$12 && f2 && C2.inviteDisplayed();
1387
+ }, [d$12, f2, C2]), /* @__PURE__ */ jsx(AutoSizer, { children: ({ width: m$12, height: y2 }) => /* @__PURE__ */ jsxs(i, { style: { width: m$12, height: y2, maxHeight: y2 }, children: [
1388
+ /* @__PURE__ */ jsx(l, { children: /* @__PURE__ */ jsx(d, { "data-a": "intr", onClick: A2, children: /* @__PURE__ */ jsx(m, { name: "icon-close-btn-gray" }) }) }),
1389
+ /* @__PURE__ */ jsxs(p, { children: [
1390
+ e2.steps && (n2 == null ? void 0 : n2.length) && /* @__PURE__ */ jsx(
1391
+ k,
1392
+ {
1393
+ loading: d$12,
1394
+ steps: n2,
1395
+ currentStep: a2,
1396
+ inviterName: f2
1397
+ }
1398
+ ),
1399
+ e2.rules && !l$12 && /* @__PURE__ */ jsx(
1400
+ b,
1401
+ {
1402
+ rules: t2,
1403
+ rulesTitle: T2,
1404
+ termsText: u2,
1405
+ primaryColor: g,
1406
+ openTerms: () => S2(true)
1407
+ }
1408
+ ),
1409
+ e2.rules && l$12 && /* @__PURE__ */ jsx(s, { termsTitle: x2, termsText: u2 }),
1410
+ e2.inviteCard && /* @__PURE__ */ jsx(
1411
+ M,
1412
+ {
1413
+ inviteLink: D2,
1414
+ inviteCardTitle: k$12,
1415
+ inviteCardSubtext: w2,
1416
+ primaryColor: g
1417
+ }
1418
+ )
1419
+ ] }),
1420
+ /* @__PURE__ */ jsx(f$1, { children: /* @__PURE__ */ jsx(i$8, { loading: d$12, style: { width: "100%" }, children: /* @__PURE__ */ jsx(I, { "data-a": "intr", onClick: H, children: j }) }) })
1421
+ ] }) });
1422
+ };
1423
+ const n = /* @__PURE__ */ styled_default("button")({
1424
+ name: "Container",
1425
+ class: "crkmfw1",
1426
+ propsAsIs: false
1427
+ }), e = /* @__PURE__ */ styled_default("div")({
1428
+ name: "Content",
1429
+ class: "c11awpy4",
1430
+ propsAsIs: false
1431
+ }), o = /* @__PURE__ */ styled_default("span")({
1432
+ name: "Title",
1433
+ class: "t154z7mh",
1434
+ propsAsIs: false
1435
+ });
1436
+ const f = ({ title: n$12, onClick: t2, className: a2, style: i2 }) => /* @__PURE__ */ jsx(n, { "data-a": "intr", onClick: t2, className: a2, style: i2, children: /* @__PURE__ */ jsxs(e, { "data-a": "intr", children: [
1437
+ /* @__PURE__ */ jsx(B1, { "data-a": "intr", name: "iconUp" }),
1438
+ n$12 && /* @__PURE__ */ jsx(o, { "data-a": "intr", children: n$12 })
1439
+ ] }) });
1440
+ export {
1441
+ D,
1442
+ I$1 as I,
1443
+ M,
1444
+ T$3 as T,
1445
+ T$2 as a,
1446
+ createSingleStore as c,
1447
+ f,
1448
+ k$2 as k,
1449
+ p$d as p,
1450
+ tn as t,
1451
+ w$2 as w,
1452
+ z$1 as z
1453
+ };