@streamlayer/react 1.22.2 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/lib/cjs/Question.js +1 -1
  2. package/lib/cjs/advertisement.js +44 -40
  3. package/lib/cjs/analytics.js +1 -1
  4. package/lib/cjs/index-eShKGO10.js +5 -0
  5. package/lib/cjs/index.js +1 -1
  6. package/lib/cjs/index10.js +4 -1
  7. package/lib/cjs/index11.js +1 -4
  8. package/lib/cjs/index12.js +1 -1
  9. package/lib/cjs/index13.js +1 -1
  10. package/lib/cjs/index14.js +1 -1
  11. package/lib/cjs/index15.js +5 -1
  12. package/lib/cjs/index2.js +1 -1
  13. package/lib/cjs/index4.js +1 -1
  14. package/lib/cjs/index7.js +1 -5
  15. package/lib/cjs/index8.js +1 -1
  16. package/lib/cjs/index9.js +1 -1
  17. package/lib/cjs/insight.js +1 -1
  18. package/lib/cjs/masters2.js +5 -5
  19. package/lib/cjs/notification.js +1 -1
  20. package/lib/cjs/pause-ad.js +1 -1
  21. package/lib/cjs/points.js +1 -1
  22. package/lib/cjs/storage.js +1 -1
  23. package/lib/cjs/useStreamLayerApp2.js +17 -17
  24. package/lib/classic/cjs/Question.js +1 -1
  25. package/lib/classic/cjs/advertisement.js +44 -40
  26. package/lib/classic/cjs/analytics.js +1 -1
  27. package/lib/classic/cjs/bet-pack.js +1 -1
  28. package/lib/classic/cjs/index-eShKGO10.js +5 -0
  29. package/lib/classic/cjs/index.js +1 -1
  30. package/lib/classic/cjs/index10.js +1 -1
  31. package/lib/classic/cjs/index11.js +1 -1
  32. package/lib/classic/cjs/index12.js +4 -1
  33. package/lib/classic/cjs/index2.js +2 -2
  34. package/lib/classic/cjs/index3.js +1 -1
  35. package/lib/classic/cjs/index4.js +1 -1
  36. package/lib/classic/cjs/index5.js +1 -1
  37. package/lib/classic/cjs/index6.js +1 -5
  38. package/lib/classic/cjs/index7.js +1 -1
  39. package/lib/classic/cjs/index8.js +1 -1
  40. package/lib/classic/cjs/index9.js +1 -1
  41. package/lib/classic/cjs/insight.js +1 -1
  42. package/lib/classic/cjs/notification.js +1 -1
  43. package/lib/classic/cjs/notification2.js +1 -1
  44. package/lib/classic/cjs/pause-ad.js +1 -1
  45. package/lib/classic/cjs/points.js +1 -1
  46. package/lib/classic/cjs/useStreamLayerApp2.js +17 -17
  47. package/lib/classic/es/Question.js +53 -53
  48. package/lib/classic/es/advertisement.js +15547 -10742
  49. package/lib/classic/es/analytics.js +74 -18
  50. package/lib/classic/es/bet-pack.js +4 -4
  51. package/lib/classic/es/index-eShKGO10.js +3757 -0
  52. package/lib/classic/es/index.js +1 -1
  53. package/lib/classic/es/index10.js +2295 -82
  54. package/lib/classic/es/index11.js +179 -2357
  55. package/lib/classic/es/index12.js +822 -170
  56. package/lib/classic/es/index2.js +13 -14
  57. package/lib/classic/es/index3.js +16 -61
  58. package/lib/classic/es/index4.js +282 -16
  59. package/lib/classic/es/index5.js +5 -283
  60. package/lib/classic/es/index6.js +9 -3756
  61. package/lib/classic/es/index7.js +62 -5
  62. package/lib/classic/es/index8.js +315 -7
  63. package/lib/classic/es/index9.js +81 -313
  64. package/lib/classic/es/insight.js +1 -1
  65. package/lib/classic/es/notification.js +1 -1
  66. package/lib/classic/es/notification2.js +476 -452
  67. package/lib/classic/es/pause-ad.js +174 -208
  68. package/lib/classic/es/points.js +4 -4
  69. package/lib/classic/es/useStreamLayerApp2.js +5062 -4028
  70. package/lib/dist/cjs/index-eShKGO10.js +5 -0
  71. package/lib/dist/cjs/masters.js +35 -35
  72. package/lib/dist/es/index-eShKGO10.js +3757 -0
  73. package/lib/dist/es/masters.js +9267 -8240
  74. package/lib/dist/index.d.ts +13 -1
  75. package/lib/dist/style.css +1 -1
  76. package/lib/es/Question.js +4 -4
  77. package/lib/es/advertisement.js +15547 -10742
  78. package/lib/es/analytics.js +74 -18
  79. package/lib/es/index-eShKGO10.js +3757 -0
  80. package/lib/es/index.js +1 -1
  81. package/lib/es/index10.js +804 -236
  82. package/lib/es/index11.js +170 -822
  83. package/lib/es/index12.js +302 -166
  84. package/lib/es/index13.js +81 -313
  85. package/lib/es/index14.js +2350 -82
  86. package/lib/es/index15.js +1229 -2330
  87. package/lib/es/index2.js +10 -11
  88. package/lib/es/index4.js +2 -2
  89. package/lib/es/index7.js +5 -3756
  90. package/lib/es/index8.js +9 -5
  91. package/lib/es/index9.js +263 -7
  92. package/lib/es/insight.js +1 -1
  93. package/lib/es/masters2.js +15 -16
  94. package/lib/es/notification.js +449 -425
  95. package/lib/es/pause-ad.js +174 -208
  96. package/lib/es/points.js +1 -1
  97. package/lib/es/storage.js +2 -2
  98. package/lib/es/useStreamLayerApp2.js +5062 -4028
  99. package/lib/style.css +1 -1
  100. package/package.json +17 -16
  101. package/lib/cjs/index-DSi8Qgfs.js +0 -1
  102. package/lib/cjs/index16.js +0 -5
  103. package/lib/cjs/vast-client.min.js +0 -1
  104. package/lib/classic/cjs/index-DSi8Qgfs.js +0 -1
  105. package/lib/classic/cjs/index13.js +0 -4
  106. package/lib/classic/cjs/vast-client.min.js +0 -1
  107. package/lib/classic/es/index-DSi8Qgfs.js +0 -65
  108. package/lib/classic/es/index13.js +0 -835
  109. package/lib/classic/es/vast-client.min.js +0 -1060
  110. package/lib/es/index-DSi8Qgfs.js +0 -65
  111. package/lib/es/index16.js +0 -1254
  112. package/lib/es/vast-client.min.js +0 -1060
package/lib/es/index16.js DELETED
@@ -1,1254 +0,0 @@
1
- import { atom as b2 } from "nanostores";
2
- import { F as W } from "./index3.js";
3
- import { useState as T, useEffect as V, useRef as Z, useCallback as N, Component as y2, createElement as T2, useMemo as H2 } from "react";
4
- import { u as Y, s, A as K } from "./sl-types.js";
5
- import { jsxs as r, jsx as e, Fragment as S } from "react/jsx-runtime";
6
- import { i as z } from "./index9.js";
7
- import { I as f2, s as V2, b as v2, e as k2 } from "./index12.js";
8
- import { createPortal as D } from "react-dom";
9
- import { u as z2 } from "./utils.js";
10
- import { r as I2, S as x2, R as R2, D as F2 } from "./storage.js";
11
- import { O as S2 } from "./index10.js";
12
- import { w as M2, E as q2 } from "./index13.js";
13
- import { g as E2, I as B2, d as N2, Q as k } from "./useStreamLayerApp2.js";
14
- import { B as H } from "./index6.js";
15
- import { d as Z2 } from "./index5.js";
16
- import { f as O2 } from "./index11.js";
17
- import { f as W2 } from "./analytics.js";
18
- const oe = (i) => b2(i), le = (i) => {
19
- const t = Y(i.getActiveFeature()), n = Y(i.streamStore()), [o, l] = T(null);
20
- return V(() => {
21
- const c = i.getFeatures();
22
- if (!t)
23
- l(null);
24
- else
25
- for (const [p, d] of c)
26
- p === t ? (d.status.get() === W.Suspended && d.enable(), l(d)) : d.status.get() === W.Ready && d.disable();
27
- return () => {
28
- for (const [, p] of c)
29
- p.status.get() === W.Ready && p.disable();
30
- };
31
- }, [t, i, n]), [t, o];
32
- }, j2 = /* @__PURE__ */ s("div")({
33
- name: "Container",
34
- class: "c1zy8a",
35
- propsAsIs: !1
36
- }), G2 = /* @__PURE__ */ s("div")({
37
- name: "Title",
38
- class: "t1vih9p5",
39
- propsAsIs: !1
40
- }), D2 = /* @__PURE__ */ s("div")({
41
- name: "Indicator",
42
- class: "i1fbnvpb",
43
- propsAsIs: !1
44
- }), J = ({ indicator: i, title: t }) => /* @__PURE__ */ r(j2, { children: [
45
- /* @__PURE__ */ e(G2, { children: t }),
46
- /* @__PURE__ */ e(D2, { children: i })
47
- ] }), P2 = /* @__PURE__ */ s("div")({
48
- name: "Container",
49
- class: "ctmhwyc",
50
- propsAsIs: !1
51
- }), U2 = /* @__PURE__ */ s("div")({
52
- name: "Indicator",
53
- class: "i1jri200",
54
- propsAsIs: !1
55
- }), Q2 = /* @__PURE__ */ s("div")({
56
- name: "Title",
57
- class: "t8s05oq",
58
- propsAsIs: !1
59
- }), q = ({ indicator: i, title: t }) => /* @__PURE__ */ r(P2, { children: [
60
- /* @__PURE__ */ e(U2, { children: i }),
61
- /* @__PURE__ */ e(Q2, { children: t })
62
- ] }), Y2 = /* @__PURE__ */ s("div")({
63
- name: "Container",
64
- class: "c1yrpn9o",
65
- propsAsIs: !1
66
- }), K2 = /* @__PURE__ */ s("div")({
67
- name: "TopInfo",
68
- class: "t17fwahh",
69
- propsAsIs: !1
70
- }), J2 = /* @__PURE__ */ s("div")({
71
- name: "BottomInfo",
72
- class: "by6w7e9",
73
- propsAsIs: !1
74
- }), X2 = /* @__PURE__ */ s("div")({
75
- name: "User",
76
- class: "u1g7arbm",
77
- propsAsIs: !1
78
- }), e0 = /* @__PURE__ */ s("img")({
79
- name: "Avatar",
80
- class: "a1ldeata",
81
- propsAsIs: !1
82
- }), s0 = /* @__PURE__ */ s("div")({
83
- name: "UserInfo",
84
- class: "u10d4koz",
85
- propsAsIs: !1
86
- }), t0 = /* @__PURE__ */ s("div")({
87
- name: "UserName",
88
- class: "u1q6roj0",
89
- propsAsIs: !1
90
- }), i0 = /* @__PURE__ */ s("div")({
91
- name: "UserRating",
92
- class: "ui0m425",
93
- propsAsIs: !1
94
- }), n0 = /* @__PURE__ */ s("img")({
95
- name: "TrophyIcon",
96
- class: "t1el3mrn",
97
- propsAsIs: !1
98
- }), r0 = /* @__PURE__ */ s("div")({
99
- name: "RtsContainer",
100
- class: "r2vgnxv",
101
- propsAsIs: !1
102
- }), a0 = /* @__PURE__ */ s("div")({
103
- name: "RtsDivider",
104
- class: "roqn06j",
105
- propsAsIs: !1
106
- }), o0 = /* @__PURE__ */ s("div")({
107
- name: "Rts",
108
- class: "r15adx7c",
109
- propsAsIs: !1
110
- }), X = /* @__PURE__ */ s("div")({
111
- name: "RtsIndicator",
112
- class: "rv59lta",
113
- propsAsIs: !1
114
- }), e2 = /* @__PURE__ */ s("div")({
115
- name: "RtsLabel",
116
- class: "r55lotb",
117
- propsAsIs: !1
118
- }), l0 = /* @__PURE__ */ s("div")({
119
- name: "Divider",
120
- class: "d1knfgqt",
121
- propsAsIs: !1
122
- }), c0 = /* @__PURE__ */ s("div")({
123
- name: "Ranks",
124
- class: "r1mqo824",
125
- propsAsIs: !1
126
- }), d0 = /* @__PURE__ */ s("div")({
127
- name: "Statistics",
128
- class: "sxareh6",
129
- propsAsIs: !1
130
- }), p0 = /* @__PURE__ */ s("div")({
131
- name: "AvatarPlaceholder",
132
- class: "amcu48h",
133
- propsAsIs: !1
134
- }), h0 = /* @__PURE__ */ s("button")({
135
- name: "UserAccountBtn",
136
- class: "u32nfkp",
137
- propsAsIs: !1
138
- }), C0 = "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", ce = ({
139
- loading: i,
140
- hideFriendsRank: t,
141
- avatar: n,
142
- name: o,
143
- points: l,
144
- friendsRank: c,
145
- rank: p,
146
- streak: d,
147
- correct: C,
148
- incorrect: I,
149
- inTop: _,
150
- successRate: L
151
- }) => /* @__PURE__ */ r(Y2, { "data-loading": i, children: [
152
- /* @__PURE__ */ e(K2, { children: /* @__PURE__ */ e(z, { loading: i, children: /* @__PURE__ */ r(X2, { children: [
153
- /* @__PURE__ */ r(h0, { children: [
154
- n && /* @__PURE__ */ e(e0, { alt: "avatar", src: n }),
155
- !n && /* @__PURE__ */ e(p0, { children: f2(o || "") })
156
- ] }),
157
- /* @__PURE__ */ r(s0, { children: [
158
- /* @__PURE__ */ e(t0, { children: o }),
159
- /* @__PURE__ */ r(i0, { children: [
160
- /* @__PURE__ */ r(r0, { children: [
161
- /* @__PURE__ */ r(o0, { children: [
162
- /* @__PURE__ */ e(n0, { alt: "rank-icon", src: C0 }),
163
- /* @__PURE__ */ r(X, { children: [
164
- V2(l),
165
- /* @__PURE__ */ e(e2, { children: "PTS" })
166
- ] })
167
- ] }),
168
- t && /* @__PURE__ */ r(X, { children: [
169
- /* @__PURE__ */ e(a0, {}),
170
- p || 0,
171
- /* @__PURE__ */ e(e2, { children: "global rank" })
172
- ] })
173
- ] }),
174
- !t && /* @__PURE__ */ r(S, { children: [
175
- /* @__PURE__ */ e(l0, {}),
176
- /* @__PURE__ */ r("div", { children: [
177
- "TOP ",
178
- _ || 0,
179
- "%"
180
- ] })
181
- ] })
182
- ] })
183
- ] })
184
- ] }) }) }),
185
- /* @__PURE__ */ r(J2, { children: [
186
- !t && /* @__PURE__ */ r(c0, { children: [
187
- /* @__PURE__ */ e(z, { loading: i, style: { width: "100%" }, children: /* @__PURE__ */ e(J, { indicator: c || 0, title: "Friends rank" }) }),
188
- /* @__PURE__ */ e(z, { loading: i, style: { width: "100%" }, children: /* @__PURE__ */ e(J, { indicator: p || 0, title: "Global rank" }) })
189
- ] }),
190
- /* @__PURE__ */ e(z, { loading: i, children: /* @__PURE__ */ r(d0, { children: [
191
- /* @__PURE__ */ e(q, { indicator: d || 0, title: "Win streak" }),
192
- /* @__PURE__ */ e(q, { indicator: C || 0, title: "Correct" }),
193
- /* @__PURE__ */ e(q, { indicator: I || 0, title: "Incorrect" }),
194
- /* @__PURE__ */ e(q, { indicator: `${L || 0}%`, title: "Succ. rate" })
195
- ] }) })
196
- ] })
197
- ] }), m0 = /* @__PURE__ */ s("div")({
198
- name: "StaticContainer",
199
- class: "svm502q",
200
- propsAsIs: !1
201
- }), u0 = `
202
- .sl-pill-button {
203
- display: none !important;
204
- }
205
- `, A2 = () => window.innerWidth >= K.md && window.innerWidth < K.lg ? 76 : 53, s2 = (i) => {
206
- var t;
207
- const n = A2();
208
- return Math.round((((t = i.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) - n) <= 0;
209
- }, de = ({
210
- children: i,
211
- container: t,
212
- useContainer: n,
213
- staticStyles: o
214
- }) => {
215
- const [l] = T(() => s2(t)), [c, p] = T(!1);
216
- return V(() => {
217
- if (!t.current || !l)
218
- return p(!0), () => {
219
- };
220
- const d = window.scrollY;
221
- return p(!0), () => {
222
- s2(t) && window.scrollTo({
223
- top: d,
224
- behavior: "instant"
225
- });
226
- };
227
- }, []), V(() => {
228
- if (c && t.current && l) {
229
- const d = A2();
230
- window.scrollTo({
231
- top: t.current.offsetTop - d,
232
- behavior: "instant"
233
- });
234
- }
235
- }, [c]), !t.current || !c ? null : n ? D(/* @__PURE__ */ r(m0, {
236
- className: "StaticContainer",
237
- children: [i, /* @__PURE__ */ e("style", {
238
- children: z2
239
- }), /* @__PURE__ */ e("style", {
240
- children: u0
241
- })]
242
- }), t.current, "modal-node") : D(/* @__PURE__ */ r(S, {
243
- children: [i, /* @__PURE__ */ e("style", {
244
- children: o
245
- })]
246
- }), t.current, "modal-node");
247
- }, g0 = /* @__PURE__ */ s("button")({
248
- name: "Container",
249
- class: "cpjnajb",
250
- propsAsIs: !1
251
- }), f0 = /* @__PURE__ */ s("div")({
252
- name: "Content",
253
- class: "c4m6kaz",
254
- propsAsIs: !1
255
- }), v0 = /* @__PURE__ */ s("span")({
256
- name: "Title",
257
- class: "t1h8t9cc",
258
- propsAsIs: !1
259
- }), I0 = () => /* @__PURE__ */ e(g0, { children: /* @__PURE__ */ r(f0, { children: [
260
- /* @__PURE__ */ e(H, { name: "iconCopySuccess" }),
261
- /* @__PURE__ */ e(v0, { children: "Link Copied to Clipboard" })
262
- ] }) }), A0 = (i) => {
263
- const t = Z(), [n, o] = T(null), l = N(
264
- async (c) => {
265
- var p;
266
- if (c && (p = navigator == null ? void 0 : navigator.clipboard) != null && p.writeText) {
267
- t.current && (clearTimeout(t.current), o(null));
268
- try {
269
- await navigator.clipboard.writeText(c), i.current && (o(D(/* @__PURE__ */ e(I0, {}), i.current)), t.current = setTimeout(() => {
270
- o(null);
271
- }, 1e3));
272
- } catch (d) {
273
- console.error("Unable to copy to clipboard", d);
274
- }
275
- }
276
- },
277
- [i]
278
- );
279
- return V(() => () => {
280
- clearTimeout(t.current);
281
- }, []), [l, n];
282
- };
283
- let b;
284
- typeof window < "u" ? b = window : typeof self < "u" ? b = self : b = E2;
285
- let P = null, U = null;
286
- const t2 = 20, j = b.clearTimeout, i2 = b.setTimeout, G = b.cancelAnimationFrame || b.mozCancelAnimationFrame || b.webkitCancelAnimationFrame, n2 = b.requestAnimationFrame || b.mozRequestAnimationFrame || b.webkitRequestAnimationFrame;
287
- G == null || n2 == null ? (P = j, U = function(t) {
288
- return i2(t, t2);
289
- }) : (P = function([t, n]) {
290
- G(t), j(n);
291
- }, U = function(t) {
292
- const n = n2(function() {
293
- j(o), t();
294
- }), o = i2(function() {
295
- G(n), t();
296
- }, t2);
297
- return [n, o];
298
- });
299
- function L0(i) {
300
- let t, n, o, l, c, p, d;
301
- const C = typeof document < "u" && document.attachEvent;
302
- if (!C) {
303
- p = function(u) {
304
- const m = u.__resizeTriggers__, $ = m.firstElementChild, A = m.lastElementChild, y = $.firstElementChild;
305
- A.scrollLeft = A.scrollWidth, A.scrollTop = A.scrollHeight, y.style.width = $.offsetWidth + 1 + "px", y.style.height = $.offsetHeight + 1 + "px", $.scrollLeft = $.scrollWidth, $.scrollTop = $.scrollHeight;
306
- }, c = function(u) {
307
- return u.offsetWidth !== u.__resizeLast__.width || u.offsetHeight !== u.__resizeLast__.height;
308
- }, d = function(u) {
309
- if (u.target.className && typeof u.target.className.indexOf == "function" && u.target.className.indexOf("contract-trigger") < 0 && u.target.className.indexOf("expand-trigger") < 0)
310
- return;
311
- const m = this;
312
- p(this), this.__resizeRAF__ && P(this.__resizeRAF__), this.__resizeRAF__ = U(function() {
313
- c(m) && (m.__resizeLast__.width = m.offsetWidth, m.__resizeLast__.height = m.offsetHeight, m.__resizeListeners__.forEach(function(y) {
314
- y.call(m, u);
315
- }));
316
- });
317
- };
318
- let a = !1, h = "";
319
- o = "animationstart";
320
- const g = "Webkit Moz O ms".split(" ");
321
- let f = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = "";
322
- {
323
- const u = document.createElement("fakeelement");
324
- if (u.style.animationName !== void 0 && (a = !0), a === !1) {
325
- for (let m = 0; m < g.length; m++)
326
- if (u.style[g[m] + "AnimationName"] !== void 0) {
327
- v = g[m], h = "-" + v.toLowerCase() + "-", o = f[m], a = !0;
328
- break;
329
- }
330
- }
331
- }
332
- n = "resizeanim", t = "@" + h + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", l = h + "animation: 1ms " + n + "; ";
333
- }
334
- const I = function(a) {
335
- if (!a.getElementById("detectElementResize")) {
336
- const h = (t || "") + ".resize-triggers { " + (l || "") + '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%; }', g = a.head || a.getElementsByTagName("head")[0], f = a.createElement("style");
337
- f.id = "detectElementResize", f.type = "text/css", i != null && f.setAttribute("nonce", i), f.styleSheet ? f.styleSheet.cssText = h : f.appendChild(a.createTextNode(h)), g.appendChild(f);
338
- }
339
- };
340
- return {
341
- addResizeListener: function(a, h) {
342
- if (C)
343
- a.attachEvent("onresize", h);
344
- else {
345
- if (!a.__resizeTriggers__) {
346
- const g = a.ownerDocument, f = b.getComputedStyle(a);
347
- f && f.position === "static" && (a.style.position = "relative"), I(g), a.__resizeLast__ = {}, a.__resizeListeners__ = [], (a.__resizeTriggers__ = g.createElement("div")).className = "resize-triggers";
348
- const v = g.createElement("div");
349
- v.className = "expand-trigger", v.appendChild(g.createElement("div"));
350
- const u = g.createElement("div");
351
- u.className = "contract-trigger", a.__resizeTriggers__.appendChild(v), a.__resizeTriggers__.appendChild(u), a.appendChild(a.__resizeTriggers__), p(a), a.addEventListener("scroll", d, !0), o && (a.__resizeTriggers__.__animationListener__ = function($) {
352
- $.animationName === n && p(a);
353
- }, a.__resizeTriggers__.addEventListener(o, a.__resizeTriggers__.__animationListener__));
354
- }
355
- a.__resizeListeners__.push(h);
356
- }
357
- },
358
- removeResizeListener: function(a, h) {
359
- if (C)
360
- a.detachEvent("onresize", h);
361
- else if (a.__resizeListeners__.splice(a.__resizeListeners__.indexOf(h), 1), !a.__resizeListeners__.length) {
362
- a.removeEventListener("scroll", d, !0), a.__resizeTriggers__.__animationListener__ && (a.__resizeTriggers__.removeEventListener(o, a.__resizeTriggers__.__animationListener__), a.__resizeTriggers__.__animationListener__ = null);
363
- try {
364
- a.__resizeTriggers__ = !a.removeChild(a.__resizeTriggers__);
365
- } catch {
366
- }
367
- }
368
- }
369
- };
370
- }
371
- class _0 extends y2 {
372
- constructor(...t) {
373
- super(...t), this.state = {
374
- height: this.props.defaultHeight || 0,
375
- scaledHeight: this.props.defaultHeight || 0,
376
- scaledWidth: this.props.defaultWidth || 0,
377
- width: this.props.defaultWidth || 0
378
- }, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
379
- this._timeoutId = null;
380
- const {
381
- disableHeight: n,
382
- disableWidth: o,
383
- onResize: l
384
- } = this.props;
385
- if (this._parentNode) {
386
- const c = window.getComputedStyle(this._parentNode) || {}, p = parseFloat(c.paddingLeft || "0"), d = parseFloat(c.paddingRight || "0"), C = parseFloat(c.paddingTop || "0"), I = parseFloat(c.paddingBottom || "0"), _ = this._parentNode.getBoundingClientRect(), L = _.height - C - I, a = _.width - p - d, h = this._parentNode.offsetHeight - C - I, g = this._parentNode.offsetWidth - p - d;
387
- (!n && (this.state.height !== h || this.state.scaledHeight !== L) || !o && (this.state.width !== g || this.state.scaledWidth !== a)) && (this.setState({
388
- height: h,
389
- width: g,
390
- scaledHeight: L,
391
- scaledWidth: a
392
- }), typeof l == "function" && l({
393
- height: h,
394
- scaledHeight: L,
395
- scaledWidth: a,
396
- width: g
397
- }));
398
- }
399
- }, this._setRef = (n) => {
400
- this._autoSizer = n;
401
- };
402
- }
403
- componentDidMount() {
404
- const {
405
- nonce: t
406
- } = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
407
- if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
408
- this._parentNode = n;
409
- const o = n.ownerDocument.defaultView.ResizeObserver;
410
- o != null ? (this._resizeObserver = new o(() => {
411
- this._timeoutId = setTimeout(this._onResize, 0);
412
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = L0(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
413
- }
414
- }
415
- componentWillUnmount() {
416
- this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && this._resizeObserver.disconnect());
417
- }
418
- render() {
419
- const {
420
- children: t,
421
- defaultHeight: n,
422
- defaultWidth: o,
423
- disableHeight: l = !1,
424
- disableWidth: c = !1,
425
- doNotBailOutOnEmptyChildren: p = !1,
426
- nonce: d,
427
- onResize: C,
428
- style: I = {},
429
- tagName: _ = "div",
430
- ...L
431
- } = this.props, {
432
- height: a,
433
- scaledHeight: h,
434
- scaledWidth: g,
435
- width: f
436
- } = this.state, v = {
437
- overflow: "visible"
438
- }, u = {};
439
- let m = !1;
440
- return l || (a === 0 && (m = !0), v.height = 0, u.height = a, u.scaledHeight = h), c || (f === 0 && (m = !0), v.width = 0, u.width = f, u.scaledWidth = g), p && (m = !1), T2(_, {
441
- ref: this._setRef,
442
- style: {
443
- ...v,
444
- ...I
445
- },
446
- ...L
447
- }, !m && t(u));
448
- }
449
- }
450
- const w0 = /* @__PURE__ */ s("div")({
451
- name: "Container",
452
- class: "c1itm4k7",
453
- propsAsIs: !1
454
- }), $0 = /* @__PURE__ */ s("div")({
455
- name: "IconContainer",
456
- class: "i1w4fsni",
457
- propsAsIs: !1
458
- }), b0 = () => H, y0 = /* @__PURE__ */ s(b0())({
459
- name: "InviteGameIcon",
460
- class: "i19m85r1",
461
- propsAsIs: !0
462
- }), T0 = /* @__PURE__ */ s("div")({
463
- name: "Content",
464
- class: "c1mbu204",
465
- propsAsIs: !1
466
- }), H0 = /* @__PURE__ */ s("div")({
467
- name: "Heading",
468
- class: "h1amdqtv",
469
- propsAsIs: !1
470
- }), V0 = /* @__PURE__ */ s("div")({
471
- name: "Subtext",
472
- class: "s1lhlj9j",
473
- propsAsIs: !1
474
- }), k0 = /* @__PURE__ */ s("div")({
475
- name: "LinkContainer",
476
- class: "l1wot35e",
477
- propsAsIs: !1
478
- }), z0 = /* @__PURE__ */ s("div")({
479
- name: "LinkInfo",
480
- class: "l1jdw39q",
481
- propsAsIs: !1
482
- }), x0 = /* @__PURE__ */ s("span")({
483
- name: "LinkTitle",
484
- class: "l1cr5mk",
485
- propsAsIs: !1
486
- }), R0 = /* @__PURE__ */ s("span")({
487
- name: "LinkAddress",
488
- class: "lvi87q4",
489
- propsAsIs: !1
490
- }), F0 = () => H, S0 = /* @__PURE__ */ s(F0())({
491
- name: "LinkIcon",
492
- class: "l1pqlvw3",
493
- propsAsIs: !0
494
- }), M0 = ({
495
- inviteLink: i,
496
- inviteCardTitle: t,
497
- inviteCardSubtext: n,
498
- primaryColor: o,
499
- className: l
500
- }) => {
501
- const c = Z(null), [p, d] = A0(c), [C] = W2({
502
- type: "invitation",
503
- action: "sent",
504
- payload: {
505
- from: B2.MENU
506
- }
507
- });
508
- return /* @__PURE__ */ r(w0, { className: l, children: [
509
- /* @__PURE__ */ e($0, { style: { backgroundColor: o }, children: /* @__PURE__ */ e(y0, { name: "invite-game-icon" }) }),
510
- /* @__PURE__ */ r(T0, { children: [
511
- /* @__PURE__ */ e(H0, { children: t || "" }),
512
- /* @__PURE__ */ e(V0, { children: n || "" })
513
- ] }),
514
- i && /* @__PURE__ */ r(k0, { ref: c, "data-a": "intr", onClick: C(() => p(i)), children: [
515
- /* @__PURE__ */ r(z0, { children: [
516
- /* @__PURE__ */ e(x0, { children: "Invite link" }),
517
- /* @__PURE__ */ e(R0, { children: i })
518
- ] }),
519
- /* @__PURE__ */ e(S0, { name: "icon-copy" })
520
- ] }),
521
- d
522
- ] });
523
- }, q0 = () => I2, E0 = /* @__PURE__ */ s(q0())({
524
- name: "Container",
525
- class: "cll3md7",
526
- propsAsIs: !0
527
- }), B0 = () => x2, N0 = /* @__PURE__ */ s(B0())({
528
- name: "ActionBtn",
529
- class: "a10g1iik",
530
- propsAsIs: !0
531
- }), Z0 = ({ questionId: i, ...t }) => /* @__PURE__ */ r(E0, { "data-a": "intr", "data-name": i, children: [
532
- /* @__PURE__ */ e(S2, { questionId: i, ...t }),
533
- /* @__PURE__ */ e(N0, { "data-a": "intr", "data-name": i, children: "View Insight" })
534
- ] }), O0 = () => I2, W0 = /* @__PURE__ */ s(O0())({
535
- name: "Container",
536
- class: "cl56x6b",
537
- propsAsIs: !0
538
- }), j0 = /* @__PURE__ */ s("button")({
539
- name: "ActionButton",
540
- class: "a11pzf92",
541
- propsAsIs: !1
542
- }), G0 = /* @__PURE__ */ s("blockquote")({
543
- name: "Quote",
544
- class: "q1hbaleq",
545
- propsAsIs: !1
546
- }), D0 = ({ ...i }) => /* @__PURE__ */ r(W0, { "data-a": "intr", "data-name": i.tweetId, children: [
547
- i.title && /* @__PURE__ */ e(G0, { children: i.title }),
548
- /* @__PURE__ */ e(v2, { ...i }),
549
- /* @__PURE__ */ e(j0, { "data-a": "intr", "data-name": i.tweetId, children: "View Insight" })
550
- ] }), r2 = /* @__PURE__ */ s("div")({
551
- name: "QuestionsContainer",
552
- class: "qvghv3l",
553
- propsAsIs: !1
554
- }), pe = ({ questions: i, openQuestion: t, controlVideo: n }) => i ? /* @__PURE__ */ e(r2, { "data-a": "intr", onClick: (l) => {
555
- const c = l.target.getAttribute("data-name");
556
- c && (M2(), t(c, { openedFrom: "list" }));
557
- }, children: i == null ? void 0 : i.map((l) => {
558
- var c, p, d;
559
- if (l.type === "question" && ((c = l.attributes) == null ? void 0 : c.attributes.case) === "question") {
560
- const C = l.attributes.attributes.value;
561
- return /* @__PURE__ */ e(R2, { ...C }, C.questionId);
562
- }
563
- if (l.type === "insight" && ((p = l.attributes) == null ? void 0 : p.attributes.case) === "insight") {
564
- const C = l.attributes.attributes.value;
565
- return /* @__PURE__ */ e(Z0, { controlVideo: n, ...C }, C.questionId);
566
- }
567
- if (l.type === "tweet" && ((d = l.attributes) == null ? void 0 : d.attributes.case) === "tweet") {
568
- const C = l.attributes.attributes.value, I = l.attributes.id;
569
- return /* @__PURE__ */ e(D0, { controlVideo: n, ...C, tweetId: I }, I);
570
- }
571
- return null;
572
- }) }) : /* @__PURE__ */ e(r2, { children: Array.from({ length: 5 }).map((l, c) => /* @__PURE__ */ e(F2, {}, c)) }), P0 = /* @__PURE__ */ s("div")({
573
- name: "InsightContainer",
574
- class: "i1pqqgpo",
575
- propsAsIs: !1
576
- }), U0 = /* @__PURE__ */ s("img")({
577
- name: "Image",
578
- class: "igj7luu",
579
- propsAsIs: !1
580
- }), Q0 = /* @__PURE__ */ s("div")({
581
- name: "ImageContainer",
582
- class: "i1qne9g6",
583
- propsAsIs: !1
584
- }), Y0 = /* @__PURE__ */ s("div")({
585
- name: "InsightContent",
586
- class: "itpr98r",
587
- propsAsIs: !1
588
- }), K0 = /* @__PURE__ */ s("h3")({
589
- name: "Title",
590
- class: "t17iaqp8",
591
- propsAsIs: !1
592
- }), J0 = /* @__PURE__ */ s("div")({
593
- name: "Description",
594
- class: "d16t3y7s",
595
- propsAsIs: !1
596
- }), X0 = /* @__PURE__ */ s("button")({
597
- name: "ActionBtn",
598
- class: "a12495er",
599
- propsAsIs: !1
600
- }), e1 = ({ video: i, image: t, imageMode: n, heading: o, body: l, action: c, controlVideo: p }) => /* @__PURE__ */ r(P0, { children: [
601
- (i == null ? void 0 : i.url) && /* @__PURE__ */ e(q2, { source: i.url, poster: i.thumbnailUrl, controlVideo: p }),
602
- t && !(i != null && i.url) && /* @__PURE__ */ e(Q0, { "data-rounded": n === N2.ROUNDED, children: /* @__PURE__ */ e(U0, { src: t, alt: o }) }),
603
- /* @__PURE__ */ r(Y0, { children: [
604
- /* @__PURE__ */ e(K0, { children: o }),
605
- /* @__PURE__ */ e(J0, { children: l }),
606
- c && /* @__PURE__ */ e(X0, { onClick: c, children: "View Insight" })
607
- ] })
608
- ] }), s1 = /* @__PURE__ */ s("div")({
609
- name: "Container",
610
- class: "c1eptrjd",
611
- propsAsIs: !1
612
- }), t1 = /* @__PURE__ */ s("div")({
613
- name: "CloseIconWrap",
614
- class: "crylm65",
615
- propsAsIs: !1
616
- }), i1 = () => H, n1 = /* @__PURE__ */ s(i1())({
617
- name: "CloseIcon",
618
- class: "c9mrcz7",
619
- propsAsIs: !0
620
- }), r1 = /* @__PURE__ */ s("div")({
621
- name: "Header",
622
- class: "hw3lzv4",
623
- propsAsIs: !1
624
- }), a1 = () => H, o1 = /* @__PURE__ */ s(a1())({
625
- name: "TypeIcon",
626
- class: "t1rrb3kf",
627
- propsAsIs: !0
628
- }), l1 = /* @__PURE__ */ s("span")({
629
- name: "TypeName",
630
- class: "t1ydnjov",
631
- propsAsIs: !1
632
- }), c1 = /* @__PURE__ */ s("div")({
633
- name: "Question",
634
- class: "qlf90cl",
635
- propsAsIs: !1
636
- }), d1 = /* @__PURE__ */ s("button")({
637
- name: "AnswerButton",
638
- class: "a1e0nhcl",
639
- propsAsIs: !1
640
- }), p1 = /* @__PURE__ */ s("div")({
641
- name: "Container",
642
- class: "c1t4f0x4",
643
- propsAsIs: !1
644
- }), h1 = /* @__PURE__ */ s("button")({
645
- name: "ActionBtn",
646
- class: "a16w1nl6",
647
- propsAsIs: !1
648
- }), C1 = /* @__PURE__ */ s("div")({
649
- name: "QuoteWrap",
650
- class: "q14u54rf",
651
- propsAsIs: !1
652
- }), m1 = /* @__PURE__ */ s("blockquote")({
653
- name: "Quote",
654
- class: "q1hxm6zo",
655
- propsAsIs: !1
656
- }), u1 = ({ action: i, ...t }) => /* @__PURE__ */ r(p1, { children: [
657
- t.title && /* @__PURE__ */ e(C1, { children: /* @__PURE__ */ e(m1, { children: t.title }) }),
658
- /* @__PURE__ */ e(v2, { ...t }),
659
- i && /* @__PURE__ */ e(h1, { onClick: i, children: "View Insight" })
660
- ] }), he = ({
661
- close: i,
662
- action: t,
663
- controlVideo: n,
664
- data: { questionType: o, question: l, insight: c, tweet: p }
665
- }) => {
666
- const d = k2[o];
667
- return d ? /* @__PURE__ */ r(s1, { onClick: t, style: o === k.TWEET ? { paddingTop: "12px" } : {}, children: [
668
- /* @__PURE__ */ e(
669
- t1,
670
- {
671
- "data-a": "intr",
672
- onClick: (C) => {
673
- C.stopPropagation(), i && i(C);
674
- },
675
- children: /* @__PURE__ */ e(n1, { name: "icon-cross" })
676
- }
677
- ),
678
- o !== k.TWEET && /* @__PURE__ */ r(r1, { children: [
679
- /* @__PURE__ */ e(
680
- o1,
681
- {
682
- "data-type-trivia": o === k.TRIVIA,
683
- "data-type-poll": o === k.POLL,
684
- name: d.iconName
685
- }
686
- ),
687
- /* @__PURE__ */ e(l1, { children: d.label })
688
- ] }),
689
- o === k.FACTOID && c && /* @__PURE__ */ e(e1, { ...c, action: t, controlVideo: n }),
690
- o === k.TWEET && p && /* @__PURE__ */ e(u1, { ...p, action: t, controlVideo: n }),
691
- o !== k.FACTOID && o !== k.TWEET && /* @__PURE__ */ r(S, { children: [
692
- /* @__PURE__ */ e(c1, { children: l == null ? void 0 : l.title }),
693
- /* @__PURE__ */ e(d1, { children: "Answer" })
694
- ] })
695
- ] }) : null;
696
- }, R = /* @__PURE__ */ s("div")({
697
- name: "BGWrap",
698
- class: "b1dqe0sz",
699
- propsAsIs: !1
700
- }), w = /* @__PURE__ */ s("div")({
701
- name: "BGLineBase",
702
- class: "b1v6w7ni",
703
- propsAsIs: !1
704
- }), g1 = () => w, f1 = /* @__PURE__ */ s(g1())({
705
- name: "BGOneLineOne",
706
- class: "b2nqb1p",
707
- propsAsIs: !0
708
- }), v1 = () => w, I1 = /* @__PURE__ */ s(v1())({
709
- name: "BGOneLineTwo",
710
- class: "b1xxgmbk",
711
- propsAsIs: !0
712
- }), A1 = () => w, L1 = /* @__PURE__ */ s(A1())({
713
- name: "BGOneLineThree",
714
- class: "b63lwcb",
715
- propsAsIs: !0
716
- }), _1 = () => w, a2 = /* @__PURE__ */ s(_1())({
717
- name: "BGTwoLineOne",
718
- class: "b2iah4",
719
- propsAsIs: !0
720
- }), w1 = () => w, o2 = /* @__PURE__ */ s(w1())({
721
- name: "BGTwoLineTwo",
722
- class: "b1xezvf6",
723
- propsAsIs: !0
724
- }), $1 = () => w, l2 = /* @__PURE__ */ s($1())({
725
- name: "BGTwoLineThree",
726
- class: "b1jz1hg0",
727
- propsAsIs: !0
728
- }), b1 = () => w, c2 = /* @__PURE__ */ s(b1())({
729
- name: "BGThreeLineOne",
730
- class: "b18ho1tk",
731
- propsAsIs: !0
732
- }), y1 = () => w, d2 = /* @__PURE__ */ s(y1())({
733
- name: "BGThreeLineTwo",
734
- class: "b14uvjfm",
735
- propsAsIs: !0
736
- }), T1 = () => w, p2 = /* @__PURE__ */ s(T1())({
737
- name: "BGThreeLineThree",
738
- class: "b11c3ns7",
739
- propsAsIs: !0
740
- }), H1 = () => w, h2 = /* @__PURE__ */ s(H1())({
741
- name: "BGThreeLineFour",
742
- class: "b1bqhhet",
743
- propsAsIs: !0
744
- }), V1 = () => w, k1 = /* @__PURE__ */ s(V1())({
745
- name: "BGFourLineOne",
746
- class: "b1xyzi7o",
747
- propsAsIs: !0
748
- }), z1 = () => w, x1 = /* @__PURE__ */ s(z1())({
749
- name: "BGFourLineTwo",
750
- class: "byo0rup",
751
- propsAsIs: !0
752
- }), R1 = () => w, F1 = /* @__PURE__ */ s(R1())({
753
- name: "BGFourLineThree",
754
- class: "b1oyiqgv",
755
- propsAsIs: !0
756
- }), S1 = () => w, M1 = /* @__PURE__ */ s(S1())({
757
- name: "BGFourLineFour",
758
- class: "bx3ddqw",
759
- propsAsIs: !0
760
- }), q1 = ({ step: i, correct: t }) => /* @__PURE__ */ r(S, { children: [
761
- /* @__PURE__ */ r(R, { "data-active": i === 1, "data-first-screen": "true", children: [
762
- /* @__PURE__ */ e(f1, {}),
763
- /* @__PURE__ */ e(I1, {}),
764
- /* @__PURE__ */ e(L1, {})
765
- ] }),
766
- /* @__PURE__ */ r(R, { "data-active": i === 2, children: [
767
- /* @__PURE__ */ e(a2, {}),
768
- /* @__PURE__ */ e(o2, {}),
769
- /* @__PURE__ */ e(l2, {})
770
- ] }),
771
- /* @__PURE__ */ r(R, { "data-active": i === 3, children: [
772
- /* @__PURE__ */ e(a2, {}),
773
- /* @__PURE__ */ e(o2, {}),
774
- /* @__PURE__ */ e(l2, {})
775
- ] }),
776
- t ? /* @__PURE__ */ r(S, { children: [
777
- /* @__PURE__ */ r(R, { "data-active": i === 4, "data-correct": "true", children: [
778
- /* @__PURE__ */ e(c2, {}),
779
- /* @__PURE__ */ e(d2, {}),
780
- /* @__PURE__ */ e(p2, {}),
781
- /* @__PURE__ */ e(h2, {})
782
- ] }),
783
- /* @__PURE__ */ r(R, { "data-active": i === 5, "data-correct": "true", children: [
784
- /* @__PURE__ */ e(c2, {}),
785
- /* @__PURE__ */ e(d2, {}),
786
- /* @__PURE__ */ e(p2, {}),
787
- /* @__PURE__ */ e(h2, {})
788
- ] })
789
- ] }) : /* @__PURE__ */ r(R, { "data-active": i === 4, "data-correct": "false", children: [
790
- /* @__PURE__ */ e(k1, {}),
791
- /* @__PURE__ */ e(x1, {}),
792
- /* @__PURE__ */ e(F1, {}),
793
- /* @__PURE__ */ e(M1, {})
794
- ] })
795
- ] }), E1 = 118, B1 = () => O2, N1 = /* @__PURE__ */ s(B1())({
796
- name: "Container",
797
- class: "c10131zw",
798
- propsAsIs: !0
799
- }), Z1 = /* @__PURE__ */ s("div")({
800
- name: "InnerContainer",
801
- class: "ir6k2eo",
802
- propsAsIs: !1
803
- }), x = /* @__PURE__ */ s("div")({
804
- name: "Content",
805
- class: "c1hwoq9l",
806
- propsAsIs: !1
807
- }), M = /* @__PURE__ */ s("div")({
808
- name: "Title",
809
- class: "t4ujo4g",
810
- propsAsIs: !1
811
- }), O1 = () => M, W1 = /* @__PURE__ */ s(O1())({
812
- name: "PointsTitle",
813
- class: "p1pjil1h",
814
- propsAsIs: !0
815
- }), E = /* @__PURE__ */ s("div")({
816
- name: "Subtitle",
817
- class: "s1iorwr9",
818
- propsAsIs: !1
819
- }), C2 = /* @__PURE__ */ s("div")({
820
- name: "SubtitleFG",
821
- class: "s51sv9d",
822
- propsAsIs: !1
823
- }), B = /* @__PURE__ */ s("div")({
824
- name: "AnswerText",
825
- class: "a1lbk2ye",
826
- propsAsIs: !1
827
- }), j1 = () => H, L2 = /* @__PURE__ */ s(j1())({
828
- name: "FeedbackIcon",
829
- class: "frcvk3t",
830
- propsAsIs: !0
831
- }), G1 = () => L2, m2 = /* @__PURE__ */ s(G1())({
832
- name: "FeedbackIconCorrect",
833
- class: "f33p82r",
834
- propsAsIs: !0
835
- }), D1 = () => L2, P1 = /* @__PURE__ */ s(D1())({
836
- name: "FeedbackIconIncorrect",
837
- class: "f12r9net",
838
- propsAsIs: !0
839
- }), u2 = /* @__PURE__ */ s("div")({
840
- name: "CloseIconWrap",
841
- class: "c1fw6699",
842
- propsAsIs: !1
843
- }), U1 = () => H, g2 = /* @__PURE__ */ s(U1())({
844
- name: "CloseIcon",
845
- class: "c115o126",
846
- propsAsIs: !0
847
- }), Q1 = "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", Y1 = "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", K1 = (i, t, n) => i === t ? "translateY(0px)" : i > t ? `translateY(${n}px)` : "translateY(-100%)", Ce = ({ close: i, votedAnswer: t, mastersApp: n, correct: o, correctAnswerTitle: l, questionTitle: c, saveHeight: p, style: d, hiding: C }) => {
848
- const [I, _] = T(1), L = Z({});
849
- V(() => {
850
- const f = setInterval(() => {
851
- _((v) => o && v > 4 || !o && v > 3 ? v : ++v);
852
- }, 3e3);
853
- return () => clearInterval(f);
854
- }, [o]), V(() => {
855
- var f, v;
856
- L.current[I] && p(((v = (f = L.current[I]) == null ? void 0 : f.getBoundingClientRect()) == null ? void 0 : v.height) || E1);
857
- }, [I, p]);
858
- const a = (f) => (v) => {
859
- L.current && (L.current[f] = v);
860
- }, h = (f) => ({ transform: K1(f, I, d.height) }), g = { ...d };
861
- return n && g.height && typeof g.height == "number" && (g.height += 32), /* @__PURE__ */ e(N1, { style: d.height ? g : { ...d, paddingTop: 0, paddingBottom: 0 }, hiding: C, children: /* @__PURE__ */ r(
862
- Z1,
863
- {
864
- style: {
865
- height: d.height,
866
- minHeight: d.height,
867
- backgroundColor: I > 3 ? o ? "var(--color-sdk-prediction-result-success-bg)" : "var(--color-sdk-prediction-result-incorrect-bg)" : "var(--color-primary-1)"
868
- },
869
- children: [
870
- /* @__PURE__ */ e(q1, { step: I, correct: o }),
871
- n && /* @__PURE__ */ r(x, { ref: a(1), style: h(1), children: [
872
- /* @__PURE__ */ e("img", { alt: "sponsor-logo", src: Q1 }),
873
- /* @__PURE__ */ e(C2, { children: "Featured Groups +" })
874
- ] }),
875
- !n && /* @__PURE__ */ e(x, { ref: a(1), style: h(1), children: /* @__PURE__ */ e("img", { alt: "sponsor-logo", src: Y1 }) }),
876
- /* @__PURE__ */ r(x, { ref: a(2), style: h(2), children: [
877
- /* @__PURE__ */ e(M, { children: "Prediction results are in!" }),
878
- n && /* @__PURE__ */ e(C2, { children: "Featured Groups +" })
879
- ] }),
880
- /* @__PURE__ */ r(x, { ref: a(3), style: h(3), children: [
881
- /* @__PURE__ */ e(M, { children: c }),
882
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(B, { children: [
883
- /* @__PURE__ */ e("span", { children: "Your Pick:" }),
884
- " ",
885
- t == null ? void 0 : t.title
886
- ] }) })
887
- ] }),
888
- o ? /* @__PURE__ */ r(S, { children: [
889
- /* @__PURE__ */ r(
890
- x,
891
- {
892
- ref: a(4),
893
- style: { ...h(4), color: "var(--color-sdk-prediction-result-success-text)" },
894
- children: [
895
- /* @__PURE__ */ r(M, { children: [
896
- "Congratulations!",
897
- /* @__PURE__ */ e("br", {}),
898
- "You answered correctly."
899
- ] }),
900
- /* @__PURE__ */ r(E, { children: [
901
- /* @__PURE__ */ e(m2, { name: "selected" }),
902
- /* @__PURE__ */ r(B, { children: [
903
- /* @__PURE__ */ e("span", { children: "Your Pick:" }),
904
- " ",
905
- t == null ? void 0 : t.title
906
- ] })
907
- ] })
908
- ]
909
- }
910
- ),
911
- /* @__PURE__ */ r(
912
- x,
913
- {
914
- ref: a(5),
915
- style: { ...h(5), color: "var(--color-sdk-prediction-result-success-text)" },
916
- children: [
917
- /* @__PURE__ */ e(W1, { children: I === 5 && /* @__PURE__ */ e(Z2, { delay: 0.5, prefix: "+", suffix: " points", value: t == null ? void 0 : t.points }) }),
918
- /* @__PURE__ */ r(E, { children: [
919
- /* @__PURE__ */ e(m2, { name: "selected" }),
920
- /* @__PURE__ */ r(B, { children: [
921
- /* @__PURE__ */ e("span", { children: "Your Pick:" }),
922
- " ",
923
- t == null ? void 0 : t.title
924
- ] })
925
- ] }),
926
- /* @__PURE__ */ e(u2, { "data-a": "intr", onClick: i, children: /* @__PURE__ */ e(g2, { name: "icon-cross" }) })
927
- ]
928
- }
929
- )
930
- ] }) : /* @__PURE__ */ r(x, { ref: a(4), style: h(4), children: [
931
- /* @__PURE__ */ r(M, { style: { color: "var(--color-sdk-prediction-result-error-title)" }, children: [
932
- "Better luck next time!",
933
- /* @__PURE__ */ e("br", {}),
934
- "Correct: ",
935
- l,
936
- "."
937
- ] }),
938
- /* @__PURE__ */ r(E, { style: { color: "var(--color-sdk-prediction-result-error-subtitle)" }, children: [
939
- /* @__PURE__ */ e(P1, { name: "circleClose" }),
940
- /* @__PURE__ */ r(B, { children: [
941
- /* @__PURE__ */ e("span", { children: "Your Pick:" }),
942
- " ",
943
- t == null ? void 0 : t.title
944
- ] })
945
- ] }),
946
- /* @__PURE__ */ e(u2, { "data-a": "intr", onClick: i, children: /* @__PURE__ */ e(g2, { name: "icon-cross" }) })
947
- ] })
948
- ]
949
- }
950
- ) });
951
- }, me = (i) => {
952
- const [t, n] = T(!1), [o, l] = T(!1), c = Z(null), p = N(() => {
953
- l(!0), c.current && clearTimeout(c.current), c.current = setTimeout(() => {
954
- l(!1);
955
- }, 1e3);
956
- }, []), d = N(async (C) => {
957
- n(!0);
958
- const I = C.map(
959
- (_) => new Promise((L, a) => {
960
- const h = new Image();
961
- h.onload = () => L(_), h.onerror = () => a(), h.src = _;
962
- })
963
- );
964
- await Promise.allSettled(I), n(!1);
965
- }, []);
966
- return V(() => {
967
- i && (p(), d(i));
968
- }, [i, p, d]), { loading: t, throttled: o };
969
- }, J1 = /* @__PURE__ */ s("div")({
970
- name: "Container",
971
- class: "cl51m2q",
972
- propsAsIs: !1
973
- }), X1 = /* @__PURE__ */ s("img")({
974
- name: "Avatar",
975
- class: "a2yhhhr",
976
- propsAsIs: !1
977
- }), e3 = /* @__PURE__ */ s("div")({
978
- name: "AvatarPlaceholder",
979
- class: "a1dtxxlr",
980
- propsAsIs: !1
981
- }), s3 = /* @__PURE__ */ s("div")({
982
- name: "Content",
983
- class: "c12clm3w",
984
- propsAsIs: !1
985
- }), t3 = /* @__PURE__ */ s("span")({
986
- name: "Name",
987
- class: "n14lctn7",
988
- propsAsIs: !1
989
- }), i3 = ({ avatar: i, name: t }) => /* @__PURE__ */ r(J1, { children: [
990
- i && /* @__PURE__ */ e(X1, { src: i }),
991
- !i && /* @__PURE__ */ e(e3, { children: f2(t || "") }),
992
- /* @__PURE__ */ r(s3, { children: [
993
- /* @__PURE__ */ r(t3, { children: [
994
- t,
995
- " "
996
- ] }),
997
- "is waiting for you!"
998
- ] })
999
- ] }), n3 = /* @__PURE__ */ s("div")({
1000
- name: "Container",
1001
- class: "c1htq1lb",
1002
- propsAsIs: !1
1003
- }), r3 = /* @__PURE__ */ s("div")({
1004
- name: "Graphic",
1005
- class: "gjyzpp7",
1006
- propsAsIs: !1
1007
- }), a3 = /* @__PURE__ */ s("img")({
1008
- name: "GraphicImage",
1009
- class: "g16mldgz",
1010
- propsAsIs: !1
1011
- }), o3 = /* @__PURE__ */ s("div")({
1012
- name: "Headline",
1013
- class: "h69js65",
1014
- propsAsIs: !1
1015
- }), l3 = /* @__PURE__ */ s("div")({
1016
- name: "TaglineContainer",
1017
- class: "tmm7qmo",
1018
- propsAsIs: !1
1019
- }), c3 = /* @__PURE__ */ s("div")({
1020
- name: "Tagline",
1021
- class: "t17knuw2",
1022
- propsAsIs: !1
1023
- }), d3 = /* @__PURE__ */ s("div")({
1024
- name: "Content",
1025
- class: "c1b74psg",
1026
- propsAsIs: !1
1027
- }), p3 = /* @__PURE__ */ s("div")({
1028
- name: "StepsContainer",
1029
- class: "s1y99ug7",
1030
- propsAsIs: !1
1031
- }), h3 = /* @__PURE__ */ s("span")({
1032
- name: "StepIndicator",
1033
- class: "sgf3v5n",
1034
- propsAsIs: !1
1035
- }), C3 = /* @__PURE__ */ s("div")({
1036
- name: "InvitingUserWrap",
1037
- class: "i1sj6gn8",
1038
- propsAsIs: !1
1039
- }), m3 = ({
1040
- loading: i,
1041
- steps: t,
1042
- currentStep: n,
1043
- inviterName: o
1044
- }) => {
1045
- const { headline: l, tagline: c } = t[n];
1046
- return /* @__PURE__ */ r(n3, { children: [
1047
- c && /* @__PURE__ */ e(l3, { children: /* @__PURE__ */ e(z, { loading: i, children: /* @__PURE__ */ e(c3, { children: c }) }) }),
1048
- /* @__PURE__ */ r(d3, { "data-welcome-screen": n === 0, children: [
1049
- /* @__PURE__ */ e(r3, { children: /* @__PURE__ */ e(z, { loading: i, children: t.map(({ graphicSrc: p }, d) => /* @__PURE__ */ e(a3, { src: p, "data-active": n === d })) }) }),
1050
- l && /* @__PURE__ */ e(z, { loading: i, children: /* @__PURE__ */ e(o3, { children: l }) })
1051
- ] }),
1052
- o && n === 0 && /* @__PURE__ */ e(C3, { children: /* @__PURE__ */ e(i3, { name: o }) }),
1053
- /* @__PURE__ */ e(p3, { style: i ? { visibility: "hidden" } : {}, children: Array.from({ length: t.length }).map((p, d) => /* @__PURE__ */ e(h3, { "data-active": n === d }, d)) })
1054
- ] });
1055
- }, u3 = /* @__PURE__ */ s("div")({
1056
- name: "Container",
1057
- class: "cm0bev",
1058
- propsAsIs: !1
1059
- }), g3 = /* @__PURE__ */ s("div")({
1060
- name: "Content",
1061
- class: "ce7x737",
1062
- propsAsIs: !1
1063
- }), f3 = /* @__PURE__ */ s("div")({
1064
- name: "Title",
1065
- class: "tc2tor6",
1066
- propsAsIs: !1
1067
- }), v3 = /* @__PURE__ */ s("div")({
1068
- name: "RulesList",
1069
- class: "r1k5klql",
1070
- propsAsIs: !1
1071
- }), I3 = /* @__PURE__ */ s("div")({
1072
- name: "RulesItem",
1073
- class: "r1tf3ft2",
1074
- propsAsIs: !1
1075
- }), A3 = /* @__PURE__ */ s("div")({
1076
- name: "RuleIcon",
1077
- class: "rwpvg1k",
1078
- propsAsIs: !1
1079
- }), L3 = /* @__PURE__ */ s("div")({
1080
- name: "RuleText",
1081
- class: "rbxiag0",
1082
- propsAsIs: !1
1083
- }), _3 = /* @__PURE__ */ s("button")({
1084
- name: "TermsButton",
1085
- class: "t6cyrry",
1086
- propsAsIs: !1
1087
- }), w3 = ({
1088
- rules: i,
1089
- rulesTitle: t,
1090
- termsText: n,
1091
- primaryColor: o,
1092
- openTerms: l
1093
- }) => /* @__PURE__ */ r(u3, { children: [
1094
- /* @__PURE__ */ r(g3, { children: [
1095
- /* @__PURE__ */ e(f3, { children: t }),
1096
- /* @__PURE__ */ e(v3, { children: i == null ? void 0 : i.map(({ label: c, icon: p }, d) => /* @__PURE__ */ r(I3, { children: [
1097
- p && /* @__PURE__ */ e(A3, { style: { backgroundColor: o }, children: /* @__PURE__ */ e(H, { name: p, "data-icon": p }) }),
1098
- /* @__PURE__ */ e(L3, { children: c })
1099
- ] }, d)) })
1100
- ] }),
1101
- n && /* @__PURE__ */ e(_3, { "data-a": "intr", onClick: l, children: "See Terms and Conditions" })
1102
- ] }), $3 = /* @__PURE__ */ s("div")({
1103
- name: "Container",
1104
- class: "cj0g35h",
1105
- propsAsIs: !1
1106
- }), b3 = /* @__PURE__ */ s("div")({
1107
- name: "Content",
1108
- class: "c1xkhrbn",
1109
- propsAsIs: !1
1110
- }), y3 = /* @__PURE__ */ s("div")({
1111
- name: "Title",
1112
- class: "tifzb8b",
1113
- propsAsIs: !1
1114
- }), T3 = /* @__PURE__ */ s("div")({
1115
- name: "ScrollingText",
1116
- class: "stduw5c",
1117
- propsAsIs: !1
1118
- }), H3 = ({ termsTitle: i, termsText: t }) => /* @__PURE__ */ e($3, { children: /* @__PURE__ */ r(b3, { children: [
1119
- /* @__PURE__ */ e(y3, { children: i }),
1120
- /* @__PURE__ */ e(T3, { children: t })
1121
- ] }) }), V3 = /* @__PURE__ */ s("button")({
1122
- name: "SButton",
1123
- class: "s1nve60q",
1124
- propsAsIs: !1
1125
- }), k3 = /* @__PURE__ */ s("span")({
1126
- name: "ButtonLabel",
1127
- class: "b1xoswwx",
1128
- propsAsIs: !1
1129
- }), z3 = ({ disabled: i, variant: t = "primary", onClick: n, children: o, ...l }) => /* @__PURE__ */ e(V3, { "data-a": "intr", onClick: n, disabled: i, "data-variant": t, ...l, children: /* @__PURE__ */ e(k3, { children: o }) }), x3 = /* @__PURE__ */ s("div")({
1130
- name: "Container",
1131
- class: "c18uddbs",
1132
- propsAsIs: !1
1133
- }), R3 = /* @__PURE__ */ s("div")({
1134
- name: "Content",
1135
- class: "cvcfjf6",
1136
- propsAsIs: !1
1137
- }), F3 = /* @__PURE__ */ s("div")({
1138
- name: "OnboardingHeader",
1139
- class: "o1ie27lw",
1140
- propsAsIs: !1
1141
- }), S3 = /* @__PURE__ */ s("button")({
1142
- name: "CloseBtn",
1143
- class: "c15cjkwi",
1144
- propsAsIs: !1
1145
- }), M3 = () => H, q3 = /* @__PURE__ */ s(M3())({
1146
- name: "IconClose",
1147
- class: "i1mavjt2",
1148
- propsAsIs: !0
1149
- }), E3 = /* @__PURE__ */ s("div")({
1150
- name: "OnboardingFooter",
1151
- class: "o1x0dyzv",
1152
- propsAsIs: !1
1153
- }), B3 = () => z3, N3 = /* @__PURE__ */ s(B3())({
1154
- name: "OnboardingActionBtn",
1155
- class: "o1jfi9c3",
1156
- propsAsIs: !0
1157
- }), F = {
1158
- steps: !1,
1159
- rules: !1,
1160
- inviteCard: !1
1161
- }, ue = ({
1162
- gamification: i,
1163
- steps: t,
1164
- rules: n,
1165
- rulesBtnLabel: o,
1166
- rulesTitle: l,
1167
- termsTitle: c,
1168
- termsText: p,
1169
- primaryColor: d,
1170
- inviteLink: C,
1171
- inviteCardTitle: I,
1172
- inviteCardSubtext: _,
1173
- inviteCardBtnLabel: L,
1174
- loading: a,
1175
- inviterName: h,
1176
- sdk: g,
1177
- onClose: f
1178
- }) => {
1179
- const [v, u] = T(0), [m, $] = T(!1), [A, y] = T(F);
1180
- V(() => {
1181
- t != null && t.length ? y({ ...F, steps: !0 }) : n != null && n.length ? y({ ...F, rules: !0 }) : y({ ...F, inviteCard: !0 });
1182
- }, []);
1183
- const _2 = H2(() => A.steps && v === 0 ? "Continue" : A.rules ? m || !o ? "Got it" : o : A.inviteCard ? L || "Play Now" : "Next", [A, v, m, o, L]), w2 = N(() => {
1184
- t != null && t.length && v < t.length - 1 ? u((O) => ++O) : n != null && n.length && A.steps ? y({ ...F, rules: !0 }) : A.rules && y({ ...F, inviteCard: !0 });
1185
- }, [v, t == null ? void 0 : t.length, n == null ? void 0 : n.length, A, u, y]), $2 = async () => {
1186
- A.inviteCard ? await i.onboardingStatus.submitInplay() : A.rules && m ? $(!1) : w2();
1187
- };
1188
- return V(() => {
1189
- !a && h && g.inviteDisplayed();
1190
- }, [a, h, g]), /* @__PURE__ */ e(_0, { children: ({ width: O, height: Q }) => /* @__PURE__ */ r(x3, { style: { width: O, height: Q, maxHeight: Q }, children: [
1191
- /* @__PURE__ */ e(F3, { children: /* @__PURE__ */ e(S3, { "data-a": "intr", onClick: f, children: /* @__PURE__ */ e(q3, { name: "icon-close-btn-gray" }) }) }),
1192
- /* @__PURE__ */ r(R3, { children: [
1193
- A.steps && (t == null ? void 0 : t.length) && /* @__PURE__ */ e(
1194
- m3,
1195
- {
1196
- loading: a,
1197
- steps: t,
1198
- currentStep: v,
1199
- inviterName: h
1200
- }
1201
- ),
1202
- A.rules && !m && /* @__PURE__ */ e(
1203
- w3,
1204
- {
1205
- rules: n,
1206
- rulesTitle: l,
1207
- termsText: p,
1208
- primaryColor: d,
1209
- openTerms: () => $(!0)
1210
- }
1211
- ),
1212
- A.rules && m && /* @__PURE__ */ e(H3, { termsTitle: c, termsText: p }),
1213
- A.inviteCard && /* @__PURE__ */ e(
1214
- M0,
1215
- {
1216
- inviteLink: C,
1217
- inviteCardTitle: I,
1218
- inviteCardSubtext: _,
1219
- primaryColor: d
1220
- }
1221
- )
1222
- ] }),
1223
- /* @__PURE__ */ e(E3, { children: /* @__PURE__ */ e(z, { loading: a, style: { width: "100%" }, children: /* @__PURE__ */ e(N3, { "data-a": "intr", onClick: $2, children: _2 }) }) })
1224
- ] }) });
1225
- }, Z3 = /* @__PURE__ */ s("button")({
1226
- name: "Container",
1227
- class: "crkmfw1",
1228
- propsAsIs: !1
1229
- }), O3 = /* @__PURE__ */ s("div")({
1230
- name: "Content",
1231
- class: "c11awpy4",
1232
- propsAsIs: !1
1233
- }), W3 = /* @__PURE__ */ s("span")({
1234
- name: "Title",
1235
- class: "t154z7mh",
1236
- propsAsIs: !1
1237
- }), ge = ({ title: i, onClick: t, className: n, style: o }) => /* @__PURE__ */ e(Z3, { "data-a": "intr", onClick: t, className: n, style: o, children: /* @__PURE__ */ r(O3, { "data-a": "intr", children: [
1238
- /* @__PURE__ */ e(H, { "data-a": "intr", name: "iconUp" }),
1239
- i && /* @__PURE__ */ e(W3, { "data-a": "intr", children: i })
1240
- ] }) });
1241
- export {
1242
- Ce as D,
1243
- me as I,
1244
- M0 as M,
1245
- de as T,
1246
- A0 as a,
1247
- oe as c,
1248
- ge as f,
1249
- pe as k,
1250
- le as p,
1251
- ue as t,
1252
- he as w,
1253
- ce as z
1254
- };