@streamlayer/react 0.32.9 → 0.32.11

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.
@@ -1,13 +1,13 @@
1
- import { jsxs as l, jsx as s, Fragment as k } from "react/jsx-runtime";
2
- import { s as o, o as j } from "./index4.js";
3
- import { useStore as Q } from "@nanostores/react";
4
- import { o as Oe, r as le, w as Ye, u as je, A as Ve, O as We, c as Fe, a as re, n as Be, f as He } from "./masters2.js";
5
- import { QuestionType as z, QuestionStatus as E, QuestionImages as V, PickHistoryStatus as B } from "@streamlayer/sdk-web-types";
6
- import { useState as L, useCallback as F, useEffect as be, useMemo as w, createElement as te, PureComponent as Ce } from "react";
7
- import { d as ke } from "./index3.js";
1
+ import { jsxs as d, jsx as s, Fragment as C } from "react/jsx-runtime";
2
+ import { s as o, o as b } from "./index4.js";
3
+ import { useStore as q } from "@nanostores/react";
4
+ import { o as be, r as ue, w as Ye, u as we, A as Ve, O as We, c as Fe, a as le, n as Be, f as He } from "./masters2.js";
5
+ import { QuestionType as D, QuestionStatus as k, QuestionImages as W, PickHistoryStatus as Z } from "@streamlayer/sdk-web-types";
6
+ import { useState as R, useCallback as B, useEffect as ke, useMemo as E, createElement as ie, PureComponent as Ce } from "react";
7
+ import { d as Ee } from "./index3.js";
8
8
  import "react-countup";
9
9
  import { CountdownCircleTimer as Ge } from "react-countdown-circle-timer";
10
- import { E as R } from "./index2.js";
10
+ import { E as U } from "./index2.js";
11
11
  import "@streamlayer/sdk-web-interfaces";
12
12
  import "@streamlayer/sdk-web-notifications";
13
13
  import "./useStreamLayerApp.js";
@@ -20,7 +20,7 @@ const Ze = /* @__PURE__ */ o("div")({
20
20
  name: "QuestionTypeWrap",
21
21
  class: "qyktpt0",
22
22
  propsAsIs: !1
23
- }), Ke = () => j, Xe = /* @__PURE__ */ o(Ke())({
23
+ }), Ke = () => b, Xe = /* @__PURE__ */ o(Ke())({
24
24
  name: "QuestionTypeIcon",
25
25
  class: "q951jdx",
26
26
  propsAsIs: !0
@@ -32,19 +32,19 @@ const Ze = /* @__PURE__ */ o("div")({
32
32
  name: "CloseButton",
33
33
  class: "c1ao1jtv",
34
34
  propsAsIs: !1
35
- }), nt = () => j, st = /* @__PURE__ */ o(nt())({
35
+ }), nt = () => b, st = /* @__PURE__ */ o(nt())({
36
36
  name: "CloseIcon",
37
37
  class: "cvsl7l3",
38
38
  propsAsIs: !0
39
- }), we = ({ type: e, close: t, label: n }) => {
40
- const i = e ? Oe[e] : { label: n, iconName: void 0 };
41
- return /* @__PURE__ */ l(Ze, { children: [
42
- /* @__PURE__ */ l(Je, { children: [
39
+ }), Le = ({ type: e, close: t, label: n }) => {
40
+ const i = e ? be[e] : { label: n, iconName: void 0 };
41
+ return /* @__PURE__ */ d(Ze, { children: [
42
+ /* @__PURE__ */ d(Je, { children: [
43
43
  (i == null ? void 0 : i.iconName) && /* @__PURE__ */ s(
44
44
  Xe,
45
45
  {
46
- "data-type-trivia": e === z.TRIVIA,
47
- "data-type-poll": e === z.POLL,
46
+ "data-type-trivia": e === D.TRIVIA,
47
+ "data-type-poll": e === D.POLL,
48
48
  name: i.iconName
49
49
  }
50
50
  ),
@@ -52,14 +52,14 @@ const Ze = /* @__PURE__ */ o("div")({
52
52
  ] }),
53
53
  /* @__PURE__ */ s(tt, { onClick: t, children: /* @__PURE__ */ s(st, { name: "icon-cross" }) })
54
54
  ] });
55
- }, Ee = (e) => e.split(/\s+/).map((t) => t[0]).join("").toUpperCase(), Le = (e) => e ? e.toLocaleString("en-US") : "0", ce = (e) => e.toLocaleDateString("en-US", {
55
+ }, $e = (e) => e.split(/\s+/).map((t) => t[0]).join("").toUpperCase(), Re = (e) => e ? e.toLocaleString("en-US") : "0", pe = (e) => e.toLocaleDateString("en-US", {
56
56
  weekday: "short",
57
57
  month: "short",
58
58
  day: "numeric"
59
- }), de = (e) => e.toLocaleTimeString("en-US", {
59
+ }), me = (e) => e.toLocaleTimeString("en-US", {
60
60
  hour: "2-digit",
61
61
  minute: "2-digit"
62
- }), ue = (e) => !isNaN(e.getTime()), it = /* @__PURE__ */ o("div")({
62
+ }), he = (e) => !isNaN(e.getTime()), it = /* @__PURE__ */ o("div")({
63
63
  name: "Container",
64
64
  class: "c1zy8a",
65
65
  propsAsIs: !1
@@ -71,7 +71,7 @@ const Ze = /* @__PURE__ */ o("div")({
71
71
  name: "Indicator",
72
72
  class: "i1fbnvpb",
73
73
  propsAsIs: !1
74
- }), fe = ({ indicator: e, title: t }) => /* @__PURE__ */ l(it, { children: [
74
+ }), ve = ({ indicator: e, title: t }) => /* @__PURE__ */ d(it, { children: [
75
75
  /* @__PURE__ */ s(rt, { children: t }),
76
76
  /* @__PURE__ */ s(ot, { children: e })
77
77
  ] }), at = /* @__PURE__ */ o("div")({
@@ -86,7 +86,7 @@ const Ze = /* @__PURE__ */ o("div")({
86
86
  name: "Title",
87
87
  class: "t8s05oq",
88
88
  propsAsIs: !1
89
- }), H = ({ indicator: e, title: t }) => /* @__PURE__ */ l(at, { children: [
89
+ }), J = ({ indicator: e, title: t }) => /* @__PURE__ */ d(at, { children: [
90
90
  /* @__PURE__ */ s(lt, { children: e }),
91
91
  /* @__PURE__ */ s(ct, { children: t })
92
92
  ] }), dt = /* @__PURE__ */ o("div")({
@@ -137,11 +137,11 @@ const Ze = /* @__PURE__ */ o("div")({
137
137
  name: "RtsLabel",
138
138
  class: "r15adx7c",
139
139
  propsAsIs: !1
140
- }), yt = /* @__PURE__ */ o("div")({
140
+ }), Tt = /* @__PURE__ */ o("div")({
141
141
  name: "Divider",
142
142
  class: "dv59lta",
143
143
  propsAsIs: !1
144
- }), Tt = /* @__PURE__ */ o("div")({
144
+ }), yt = /* @__PURE__ */ o("div")({
145
145
  name: "Ranks",
146
146
  class: "r55lotb",
147
147
  propsAsIs: !1
@@ -157,63 +157,63 @@ const Ze = /* @__PURE__ */ o("div")({
157
157
  name: "UserAccountBtn",
158
158
  class: "uxareh6",
159
159
  propsAsIs: !1
160
- }), x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cgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=", Qe = ({
161
161
  avatar: e,
162
162
  name: t,
163
163
  points: n,
164
164
  friendsRank: i,
165
165
  rank: r,
166
- streak: m,
167
- correct: c,
168
- incorrect: h,
169
- inTop: d,
166
+ streak: h,
167
+ correct: p,
168
+ incorrect: u,
169
+ inTop: c,
170
170
  successRate: f
171
- }) => /* @__PURE__ */ l(dt, { children: [
172
- /* @__PURE__ */ s(ut, { children: /* @__PURE__ */ l(mt, { children: [
173
- /* @__PURE__ */ l(zt, { children: [
171
+ }) => /* @__PURE__ */ d(dt, { children: [
172
+ /* @__PURE__ */ s(ut, { children: /* @__PURE__ */ d(mt, { children: [
173
+ /* @__PURE__ */ d(zt, { children: [
174
174
  e && /* @__PURE__ */ s(ht, { alt: "avatar", src: e }),
175
- !e && /* @__PURE__ */ s(St, { children: Ee(t || "") })
175
+ !e && /* @__PURE__ */ s(St, { children: $e(t || "") })
176
176
  ] }),
177
- /* @__PURE__ */ l(It, { children: [
177
+ /* @__PURE__ */ d(It, { children: [
178
178
  /* @__PURE__ */ s(ft, { children: t }),
179
- /* @__PURE__ */ l(gt, { children: [
180
- /* @__PURE__ */ l(Mt, { children: [
179
+ /* @__PURE__ */ d(gt, { children: [
180
+ /* @__PURE__ */ d(Mt, { children: [
181
181
  /* @__PURE__ */ s(vt, { alt: "rank-icon", src: xt }),
182
- /* @__PURE__ */ l(At, { children: [
183
- Le(n),
182
+ /* @__PURE__ */ d(At, { children: [
183
+ Re(n),
184
184
  /* @__PURE__ */ s(Nt, { children: "PTS" })
185
185
  ] })
186
186
  ] }),
187
- /* @__PURE__ */ s(yt, {}),
188
- /* @__PURE__ */ l("div", { children: [
187
+ /* @__PURE__ */ s(Tt, {}),
188
+ /* @__PURE__ */ d("div", { children: [
189
189
  "TOP ",
190
- d || 0,
190
+ c || 0,
191
191
  "%"
192
192
  ] })
193
193
  ] })
194
194
  ] })
195
195
  ] }) }),
196
- /* @__PURE__ */ l(pt, { children: [
197
- /* @__PURE__ */ l(Tt, { children: [
198
- /* @__PURE__ */ s(fe, { indicator: i || 0, title: "Friends rank" }),
199
- /* @__PURE__ */ s(fe, { indicator: r || 0, title: "Global rank" })
196
+ /* @__PURE__ */ d(pt, { children: [
197
+ /* @__PURE__ */ d(yt, { children: [
198
+ /* @__PURE__ */ s(ve, { indicator: i || 0, title: "Friends rank" }),
199
+ /* @__PURE__ */ s(ve, { indicator: r || 0, title: "Global rank" })
200
200
  ] }),
201
- /* @__PURE__ */ l(Dt, { children: [
202
- /* @__PURE__ */ s(H, { indicator: m || 0, title: "Win streak" }),
203
- /* @__PURE__ */ s(H, { indicator: c || 0, title: "Correct" }),
204
- /* @__PURE__ */ s(H, { indicator: h || 0, title: "Incorrect" }),
205
- /* @__PURE__ */ s(H, { indicator: `${f || 0}%`, title: "Succ. rate" })
201
+ /* @__PURE__ */ d(Dt, { children: [
202
+ /* @__PURE__ */ s(J, { indicator: h || 0, title: "Win streak" }),
203
+ /* @__PURE__ */ s(J, { indicator: p || 0, title: "Correct" }),
204
+ /* @__PURE__ */ s(J, { indicator: u || 0, title: "Incorrect" }),
205
+ /* @__PURE__ */ s(J, { indicator: `${f || 0}%`, title: "Succ. rate" })
206
206
  ] })
207
207
  ] })
208
208
  ] }), Ot = /* @__PURE__ */ o("div")({
209
209
  name: "SponsorLogoWrap",
210
210
  class: "s8p5v5z",
211
211
  propsAsIs: !1
212
- }), jt = () => j, bt = /* @__PURE__ */ o(jt())({
212
+ }), jt = () => b, bt = /* @__PURE__ */ o(jt())({
213
213
  name: "SponsorLogo",
214
214
  class: "s755yti",
215
215
  propsAsIs: !0
216
- }), Ct = () => /* @__PURE__ */ s(Ot, {
216
+ }), wt = () => /* @__PURE__ */ s(Ot, {
217
217
  children: /* @__PURE__ */ s(bt, {
218
218
  name: "mastersLogo"
219
219
  })
@@ -221,7 +221,7 @@ const Ze = /* @__PURE__ */ o("div")({
221
221
  name: "Container",
222
222
  class: "c38csyt",
223
223
  propsAsIs: !1
224
- }), wt = /* @__PURE__ */ o("div")({
224
+ }), Ct = /* @__PURE__ */ o("div")({
225
225
  name: "Title",
226
226
  class: "ty221rx",
227
227
  propsAsIs: !1
@@ -229,23 +229,23 @@ const Ze = /* @__PURE__ */ o("div")({
229
229
  name: "Description",
230
230
  class: "dlaj9xp",
231
231
  propsAsIs: !1
232
- }), Lt = ({ title: e, description: t }) => /* @__PURE__ */ l(kt, { children: [
233
- /* @__PURE__ */ s(j, { name: "icon-check-circle" }),
234
- /* @__PURE__ */ s(wt, { children: e }),
232
+ }), Lt = ({ title: e, description: t }) => /* @__PURE__ */ d(kt, { children: [
233
+ /* @__PURE__ */ s(b, { name: "icon-check-circle" }),
234
+ /* @__PURE__ */ s(Ct, { children: e }),
235
235
  /* @__PURE__ */ s(Et, { children: t })
236
236
  ] }), $t = /* @__PURE__ */ o("div")({
237
237
  name: "Container",
238
238
  class: "c16sbdnm",
239
239
  propsAsIs: !1
240
- }), Rt = () => j, Qt = /* @__PURE__ */ o(Rt())({
240
+ }), Rt = () => b, Qt = /* @__PURE__ */ o(Rt())({
241
241
  name: "IconPrediction",
242
242
  class: "ibhorgl",
243
243
  propsAsIs: !0
244
- }), W = /* @__PURE__ */ o("div")({
244
+ }), F = /* @__PURE__ */ o("div")({
245
245
  name: "FeedbackIconWrap",
246
246
  class: "f1g20ja7",
247
247
  propsAsIs: !1
248
- }), G = /* @__PURE__ */ o("div")({
248
+ }), K = /* @__PURE__ */ o("div")({
249
249
  name: "FeedbackHeader",
250
250
  class: "f455ozj",
251
251
  propsAsIs: !1
@@ -253,11 +253,11 @@ const Ze = /* @__PURE__ */ o("div")({
253
253
  name: "FeedbackTitle",
254
254
  class: "f1913njx",
255
255
  propsAsIs: !1
256
- }), P = /* @__PURE__ */ o("span")({
256
+ }), _ = /* @__PURE__ */ o("span")({
257
257
  name: "FeedbackDescription",
258
258
  class: "fzfk69z",
259
259
  propsAsIs: !1
260
- }), ne = /* @__PURE__ */ o("div")({
260
+ }), re = /* @__PURE__ */ o("div")({
261
261
  name: "FeedbackText",
262
262
  class: "fx87qaj",
263
263
  propsAsIs: !1
@@ -267,50 +267,52 @@ const Ze = /* @__PURE__ */ o("div")({
267
267
  questionVoted: n,
268
268
  questionType: i,
269
269
  hasCorrectAnswer: r,
270
- questionStatus: m,
270
+ questionStatus: h,
271
+ showExpiredNotification: p,
272
+ showClosedNotificationTrivia: u,
271
273
  votedInCurrentRender: c,
272
- votedAfterQuestionClosed: h,
273
- enteredAnActiveQuestion: d
274
+ votedAfterQuestionClosed: f,
275
+ enteredAnActiveQuestion: N
274
276
  }) => {
275
- const f = n && (i === z.TRIVIA || i === z.PREDICTION) && c && m !== E.RESOLVED, N = i === z.PREDICTION && !r, D = m === E.RESOLVED && i === z.TRIVIA && !n && !d, A = i === z.TRIVIA && h && c && d, S = m === E.RESOLVED && i === z.PREDICTION && !n && !d || i === z.PREDICTION && h && c && d, T = f && N, a = f && r, p = n && i === z.POLL && c;
276
- if (!D && !A && !T && !a && !S && !p)
277
+ const S = n && (i === D.TRIVIA || i === D.PREDICTION) && c && h !== k.RESOLVED, M = i === D.PREDICTION && !r, z = h === k.RESOLVED && i === D.PREDICTION && !n && !N || i === D.PREDICTION && f && c && N, A = S && M, a = S && r, l = n && i === D.POLL && c;
278
+ if (!p && !u && !A && !a && !z && !l)
277
279
  return null;
278
- const u = t ? "correct" : "incorrect", I = t ? e == null ? void 0 : e.correctFeedback : e == null ? void 0 : e.incorrectFeedback;
279
- return /* @__PURE__ */ l($t, { "data-isPrediction": N, children: [
280
- D && /* @__PURE__ */ l(k, { children: [
281
- /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(j, { name: "questionExpired" }) }),
282
- /* @__PURE__ */ l("div", { children: [
283
- /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(P, { children: "Question Expired" }) }),
284
- /* @__PURE__ */ s(ne, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
280
+ const m = t ? "correct" : "incorrect", I = t ? e == null ? void 0 : e.correctFeedback : e == null ? void 0 : e.incorrectFeedback;
281
+ return /* @__PURE__ */ d($t, { "data-isPrediction": M, children: [
282
+ p && /* @__PURE__ */ d(C, { children: [
283
+ /* @__PURE__ */ s(F, { children: /* @__PURE__ */ s(b, { name: "questionExpired" }) }),
284
+ /* @__PURE__ */ d("div", { children: [
285
+ /* @__PURE__ */ s(K, { children: /* @__PURE__ */ s(_, { children: "Question Expired" }) }),
286
+ /* @__PURE__ */ s(re, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
285
287
  ] })
286
288
  ] }),
287
- A && /* @__PURE__ */ l(k, { children: [
288
- /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(j, { name: "questionExpired" }) }),
289
- /* @__PURE__ */ l("div", { children: [
290
- /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(P, { children: "Question Closed" }) }),
291
- /* @__PURE__ */ s(ne, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
289
+ u && /* @__PURE__ */ d(C, { children: [
290
+ /* @__PURE__ */ s(F, { children: /* @__PURE__ */ s(b, { name: "questionExpired" }) }),
291
+ /* @__PURE__ */ d("div", { children: [
292
+ /* @__PURE__ */ s(K, { children: /* @__PURE__ */ s(_, { children: "Question Closed" }) }),
293
+ /* @__PURE__ */ s(re, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
292
294
  ] })
293
295
  ] }),
294
- S && /* @__PURE__ */ l(k, { children: [
295
- /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(j, { name: "questionExpired" }) }),
296
- /* @__PURE__ */ l("div", { children: [
297
- /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(P, { children: "Question Closed" }) }),
298
- /* @__PURE__ */ s(ne, { children: "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
296
+ z && /* @__PURE__ */ d(C, { children: [
297
+ /* @__PURE__ */ s(F, { children: /* @__PURE__ */ s(b, { name: "questionExpired" }) }),
298
+ /* @__PURE__ */ d("div", { children: [
299
+ /* @__PURE__ */ s(K, { children: /* @__PURE__ */ s(_, { children: "Question Closed" }) }),
300
+ /* @__PURE__ */ s(re, { children: "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
299
301
  ] })
300
302
  ] }),
301
- T && /* @__PURE__ */ l(k, { children: [
303
+ A && /* @__PURE__ */ d(C, { children: [
302
304
  /* @__PURE__ */ s(Qt, { name: "icon-prediction" }),
303
- /* @__PURE__ */ s(P, { children: "Stay tuned to see if your prediction was correct." })
305
+ /* @__PURE__ */ s(_, { children: "Stay tuned to see if your prediction was correct." })
304
306
  ] }),
305
- p && /* @__PURE__ */ l(k, { children: [
306
- /* @__PURE__ */ s(W, { "data-feedbackType": "correct", children: /* @__PURE__ */ s(j, { name: "correct" }) }),
307
- /* @__PURE__ */ s(P, { children: "That's for answering. Please stay tuned for the next question." })
307
+ l && /* @__PURE__ */ d(C, { children: [
308
+ /* @__PURE__ */ s(F, { "data-feedbackType": "correct", children: /* @__PURE__ */ s(b, { name: "correct" }) }),
309
+ /* @__PURE__ */ s(_, { children: "That's for answering. Please stay tuned for the next question." })
308
310
  ] }),
309
- a && /* @__PURE__ */ l(k, { children: [
310
- /* @__PURE__ */ s(W, { "data-feedbackType": u, children: /* @__PURE__ */ s(j, { name: u }) }),
311
- /* @__PURE__ */ s("div", { children: /* @__PURE__ */ l(G, { children: [
312
- /* @__PURE__ */ s(Ut, { "data-feedbackType": u, children: I == null ? void 0 : I.title }),
313
- /* @__PURE__ */ s(P, { children: I == null ? void 0 : I.description })
311
+ a && /* @__PURE__ */ d(C, { children: [
312
+ /* @__PURE__ */ s(F, { "data-feedbackType": m, children: /* @__PURE__ */ s(b, { name: m }) }),
313
+ /* @__PURE__ */ s("div", { children: /* @__PURE__ */ d(K, { children: [
314
+ /* @__PURE__ */ s(Ut, { "data-feedbackType": m, children: I == null ? void 0 : I.title }),
315
+ /* @__PURE__ */ s(_, { children: I == null ? void 0 : I.description })
314
316
  ] }) })
315
317
  ] })
316
318
  ] });
@@ -350,15 +352,15 @@ const Ze = /* @__PURE__ */ o("div")({
350
352
  name: "IconWrap",
351
353
  class: "i19tpfua",
352
354
  propsAsIs: !1
353
- }), Re = /* @__PURE__ */ o("img")({
355
+ }), Ue = /* @__PURE__ */ o("img")({
354
356
  name: "Icon",
355
357
  class: "i1tubmma",
356
358
  propsAsIs: !1
357
- }), Zt = () => Re, Jt = /* @__PURE__ */ o(Zt())({
359
+ }), Zt = () => Ue, Jt = /* @__PURE__ */ o(Zt())({
358
360
  name: "IconDefault",
359
361
  class: "i1grrgwj",
360
362
  propsAsIs: !0
361
- }), Kt = () => Re, Xt = /* @__PURE__ */ o(Kt())({
363
+ }), Kt = () => Ue, Xt = /* @__PURE__ */ o(Kt())({
362
364
  name: "IconCircle",
363
365
  class: "ibemyq8",
364
366
  propsAsIs: !0
@@ -374,97 +376,97 @@ const Ze = /* @__PURE__ */ o("div")({
374
376
  name: "Percentage",
375
377
  class: "p17ajcu2",
376
378
  propsAsIs: !1
377
- }), sn = () => j, rn = /* @__PURE__ */ o(sn())({
379
+ }), sn = () => b, rn = /* @__PURE__ */ o(sn())({
378
380
  name: "CheckIcon",
379
381
  class: "cu9kmlb",
380
382
  propsAsIs: !0
381
- }), ge = {
382
- [V.CENTERED]: (e) => /* @__PURE__ */ s(Jt, { alt: "option-icon", src: e }),
383
- [V.TRANSPARENT]: (e) => /* @__PURE__ */ s(Ht, { children: /* @__PURE__ */ s(Gt, { style: { backgroundImage: `url(${e})` } }) }),
384
- [V.ROUNDED]: (e) => /* @__PURE__ */ s(Xt, { alt: "option-icon", src: e }),
385
- [V.NONE]: () => null,
386
- [V.UNSET]: () => null
383
+ }), Me = {
384
+ [W.CENTERED]: (e) => /* @__PURE__ */ s(Jt, { alt: "option-icon", src: e }),
385
+ [W.TRANSPARENT]: (e) => /* @__PURE__ */ s(Ht, { children: /* @__PURE__ */ s(Gt, { style: { backgroundImage: `url(${e})` } }) }),
386
+ [W.ROUNDED]: (e) => /* @__PURE__ */ s(Xt, { alt: "option-icon", src: e }),
387
+ [W.NONE]: () => null,
388
+ [W.UNSET]: () => null
387
389
  }, on = ({ questionType: e, hasCorrectAnswer: t, correct: n, youVoted: i, questionVoted: r }) => {
388
- if (e === z.POLL && i)
390
+ if (e === D.POLL && i)
389
391
  return "correct";
390
- if (e === z.PREDICTION) {
392
+ if (e === D.PREDICTION) {
391
393
  if (t && r)
392
394
  return i ? n ? "correct" : "incorrect" : "unset";
393
395
  if (i)
394
396
  return "correct";
395
397
  }
396
- return e === z.TRIVIA && r && i ? n ? "correct" : "incorrect" : "unset";
398
+ return e === D.TRIVIA && r && i ? n ? "correct" : "incorrect" : "unset";
397
399
  }, an = ({
398
400
  questionType: e,
399
401
  questionVoted: t,
400
402
  correct: n,
401
403
  hasCorrectAnswer: i,
402
404
  questionStatus: r
403
- }) => e === z.TRIVIA ? t && n : e === z.PREDICTION ? t && n && i || r === E.RESOLVED && n : !1, ln = (e) => {
405
+ }) => e === D.TRIVIA ? t && n : e === D.PREDICTION ? t && n && i || r === k.RESOLVED && n : !1, ln = (e) => {
404
406
  var t;
405
407
  const {
406
408
  // option props
407
409
  id: n,
408
410
  icon: i,
409
411
  text: r,
410
- percentageDecimal: m,
412
+ percentageDecimal: h,
411
413
  // extra props
412
- onVote: c,
413
- markThatVoted: h,
414
- youSelected: d,
414
+ onVote: p,
415
+ markThatVoted: u,
416
+ youSelected: c,
415
417
  questionVoted: f,
416
418
  // ToDo: Figure out why imageMode is not in the response, and delete default value
417
419
  imageMode: N,
418
- answerTimeExpired: D,
419
- questionStatus: A,
420
- isLoading: S,
421
- questionType: T,
420
+ answerTimeExpired: S,
421
+ questionStatus: M,
422
+ isLoading: z,
423
+ questionType: A,
422
424
  correct: a,
423
- hasCorrectAnswer: p,
424
- votedAfterQuestionClosed: u,
425
+ hasCorrectAnswer: l,
426
+ votedAfterQuestionClosed: m,
425
427
  enteredAnActiveQuestion: I
426
- } = e, g = on(e), x = an({ questionType: T, questionVoted: f, correct: a, hasCorrectAnswer: p, questionStatus: A }), v = A === E.RESOLVED && T === z.PREDICTION, y = f || v;
427
- return /* @__PURE__ */ l(
428
+ } = e, g = on(e), y = an({ questionType: A, questionVoted: f, correct: a, hasCorrectAnswer: l, questionStatus: M }), v = M === k.RESOLVED && A === D.PREDICTION, T = f || v;
429
+ return /* @__PURE__ */ d(
428
430
  Wt,
429
431
  {
430
432
  value: n,
431
- "data-selected": d,
433
+ "data-selected": c,
432
434
  "data-answerState": g,
433
- disabled: f || S || D || v && !I || v && I && u,
434
- "data-isNotChecked": f && !d && g !== "incorrect",
435
- onClick: (M) => {
436
- h(A === E.RESOLVED), c(M);
435
+ disabled: f || z || S || v && !I || v && I && m,
436
+ "data-isNotChecked": f && !c && g !== "incorrect",
437
+ onClick: (O) => {
438
+ u(M === k.RESOLVED), p(O);
437
439
  },
438
440
  children: [
439
- /* @__PURE__ */ s(Ft, { "data-answerState": g, style: { width: `${y ? m : 0}%` } }),
440
- /* @__PURE__ */ l(Bt, { children: [
441
- i && N && ((t = ge[N]) == null ? void 0 : t.call(ge, i)),
441
+ /* @__PURE__ */ s(Ft, { "data-answerState": g, style: { width: `${T ? h : 0}%` } }),
442
+ /* @__PURE__ */ d(Bt, { children: [
443
+ i && N && ((t = Me[N]) == null ? void 0 : t.call(Me, i)),
442
444
  /* @__PURE__ */ s(en, { children: r }),
443
- y && /* @__PURE__ */ l(tn, { children: [
444
- x && /* @__PURE__ */ s(rn, { name: "selected" }),
445
- /* @__PURE__ */ s(nn, { children: /* @__PURE__ */ s(ke, { value: m, suffix: "%" }) })
445
+ T && /* @__PURE__ */ d(tn, { children: [
446
+ y && /* @__PURE__ */ s(rn, { name: "selected" }),
447
+ /* @__PURE__ */ s(nn, { children: /* @__PURE__ */ s(Ee, { value: h, suffix: "%" }) })
446
448
  ] })
447
449
  ] })
448
450
  ]
449
451
  }
450
452
  );
451
- }, cn = [R.PRIMARY_GREEN1, R.SECONDARY_RED1, R.SECONDARY_RED1, R.NEUTRALS_GRAY3], dn = [10, 10, 1, 0], un = /* @__PURE__ */ o("div")({
453
+ }, cn = [U.PRIMARY_GREEN1, U.SECONDARY_RED1, U.SECONDARY_RED1, U.NEUTRALS_GRAY3], dn = [10, 10, 1, 0], un = /* @__PURE__ */ o("div")({
452
454
  name: "RemainingTime",
453
455
  class: "r165427",
454
456
  propsAsIs: !1
455
- }), pn = R.SECONDARY_GREEN6, ve = R.SECONDARY_RED3, mn = R.NEUTRALS_GRAY3, hn = ({
457
+ }), pn = U.SECONDARY_GREEN6, Ae = U.SECONDARY_RED3, mn = U.NEUTRALS_GRAY3, hn = ({
456
458
  isPlaying: e = !0,
457
459
  duration: t = 30,
458
460
  onTimerExpired: n
459
461
  }) => {
460
- const [i, r] = L(t > 10 ? pn : ve), m = ({
461
- remainingTime: d
462
+ const [i, r] = R(t > 10 ? pn : Ae), h = ({
463
+ remainingTime: c
462
464
  }) => /* @__PURE__ */ s(un, {
463
- children: d
464
- }), c = F(() => {
465
+ children: c
466
+ }), p = B(() => {
465
467
  n == null || n(), r(mn);
466
- }, [n, r]), h = F((d) => {
467
- d === 10 && r(ve);
468
+ }, [n, r]), u = B((c) => {
469
+ c === 10 && r(Ae);
468
470
  }, [r]);
469
471
  return /* @__PURE__ */ s(Ge, {
470
472
  isPlaying: e,
@@ -475,9 +477,9 @@ const Ze = /* @__PURE__ */ o("div")({
475
477
  strokeWidth: 2,
476
478
  trailStrokeWidth: 2,
477
479
  trailColor: i,
478
- onComplete: c,
479
- onUpdate: h,
480
- children: m
480
+ onComplete: p,
481
+ onUpdate: u,
482
+ children: h
481
483
  });
482
484
  }, In = /* @__PURE__ */ o("div")({
483
485
  name: "WinBarContainer",
@@ -491,7 +493,7 @@ const Ze = /* @__PURE__ */ o("div")({
491
493
  name: "Title",
492
494
  class: "t1l3ucjp",
493
495
  propsAsIs: !1
494
- }), vn = () => j, Mn = /* @__PURE__ */ o(vn())({
496
+ }), vn = () => b, Mn = /* @__PURE__ */ o(vn())({
495
497
  name: "WinIcon",
496
498
  class: "wx7j799",
497
499
  propsAsIs: !0
@@ -503,121 +505,130 @@ const Ze = /* @__PURE__ */ o("div")({
503
505
  name: "PointsCount",
504
506
  class: "po9i64o",
505
507
  propsAsIs: !1
506
- }), yn = /* @__PURE__ */ o("span")({
508
+ }), Tn = /* @__PURE__ */ o("span")({
507
509
  name: "PointsUnits",
508
510
  class: "pe5g05h",
509
511
  propsAsIs: !1
510
- }), Tn = ({
512
+ }), yn = ({
511
513
  title: e,
512
514
  points: t,
513
515
  isPlayingTimer: n,
514
516
  isTimer: i,
515
517
  questionType: r,
516
- timerDuration: m,
517
- onTimerExpired: c
518
- }) => /* @__PURE__ */ l(In, { children: [
519
- /* @__PURE__ */ l(fn, { children: [
518
+ timerDuration: h,
519
+ onTimerExpired: p
520
+ }) => /* @__PURE__ */ d(In, { children: [
521
+ /* @__PURE__ */ d(fn, { children: [
520
522
  e && /* @__PURE__ */ s(gn, { children: e }),
521
- t !== void 0 && r !== z.POLL && /* @__PURE__ */ l(k, { children: [
523
+ t !== void 0 && r !== D.POLL && /* @__PURE__ */ d(C, { children: [
522
524
  /* @__PURE__ */ s(Mn, { name: "icon-trophy" }),
523
- /* @__PURE__ */ l(An, { children: [
524
- /* @__PURE__ */ s(Nn, { children: /* @__PURE__ */ s(ke, { value: t }) }),
525
- /* @__PURE__ */ s(yn, { children: "PTS" })
525
+ /* @__PURE__ */ d(An, { children: [
526
+ /* @__PURE__ */ s(Nn, { children: /* @__PURE__ */ s(Ee, { value: t }) }),
527
+ /* @__PURE__ */ s(Tn, { children: "PTS" })
526
528
  ] })
527
529
  ] })
528
530
  ] }),
529
- i && /* @__PURE__ */ s(hn, { isPlaying: n, onTimerExpired: c, duration: m })
531
+ i && /* @__PURE__ */ s(hn, { isPlaying: n, onTimerExpired: p, duration: h })
530
532
  ] }), Dn = ({ openedQuestion: e, isLoading: t, vote: n, close: i }) => {
531
- var r, m;
532
- const c = e.subject, h = e.type, d = (r = e.options) == null ? void 0 : r.options, [f, N] = L(!1), [D, A] = L(!1), [S, T] = L(!0), [a, p] = L(!1), [u, I] = L(""), g = e == null ? void 0 : e.id;
533
- be(() => {
534
- e.status === E.RESOLVED && T(!1);
533
+ var r, h;
534
+ const p = e.subject, u = e.type, c = e.status, f = (r = e.options) == null ? void 0 : r.options, [N, S] = R(!1), [M, z] = R(!1), [A, a] = R(!0), [l, m] = R(!1), [I, g] = R(""), y = e == null ? void 0 : e.id;
535
+ ke(() => {
536
+ c === k.RESOLVED && a(!1);
535
537
  }, []);
536
- const x = F((O) => {
537
- A(O), N(!0);
538
- }, []), v = F(
539
- async (O) => {
540
- if (g) {
541
- const $ = O.currentTarget.value;
542
- I($), await n(g, $);
538
+ const v = B((j) => {
539
+ z(j), S(!0);
540
+ }, []), T = B(
541
+ async (j) => {
542
+ if (y) {
543
+ const Q = j.currentTarget.value;
544
+ g(Q), await n(y, Q);
543
545
  }
544
546
  },
545
- [g, I, n]
546
- ), y = F(() => {
547
- p(!0), setTimeout(i, 3e3);
548
- }, [i]), M = w(
549
- () => e == null ? void 0 : e.answers.find((O) => O.youVoted === !0),
547
+ [y, g, n]
548
+ ), O = B(() => {
549
+ m(!0), setTimeout(i, 3e3);
550
+ }, [i]), x = E(
551
+ () => e == null ? void 0 : e.answers.find((j) => j.youVoted === !0),
550
552
  [e]
551
- ), b = w(
552
- () => !!(e != null && e.answers.find((O) => O.correct === !0)),
553
+ ), w = E(
554
+ () => !!(e != null && e.answers.find((j) => j.correct === !0)),
553
555
  [e]
554
- ), C = w(
555
- () => e == null ? void 0 : e.answers.find((O) => O.correct === !0),
556
+ ), L = E(
557
+ () => e == null ? void 0 : e.answers.find((j) => j.correct === !0),
556
558
  [e]
557
- ), U = w(() => e ? e.answers.map((O) => {
558
- var $;
559
+ ), P = E(() => e ? e.answers.map((j) => {
560
+ var Q;
559
561
  return {
560
- ...O,
561
- questionVoted: !!M,
562
- youSelected: u === O.id,
562
+ ...j,
563
+ questionVoted: !!x,
564
+ youSelected: I === j.id,
563
565
  isLoading: t,
564
- hasCorrectAnswer: b,
566
+ hasCorrectAnswer: w,
565
567
  questionType: e.type,
566
- answerTimeExpired: a,
567
- questionStatus: e.status,
568
- imageMode: ($ = e.appearance) == null ? void 0 : $.images,
569
- onVote: v
568
+ answerTimeExpired: l,
569
+ questionStatus: c,
570
+ imageMode: (Q = e.appearance) == null ? void 0 : Q.images,
571
+ onVote: T
570
572
  };
571
- }) : [], [b, a, t, e, M, v, u]), q = d && (d.case === "trivia" || d.case === "prediction") ? d.value : void 0, K = w(() => {
572
- if (e.status === E.RESOLVED)
573
- return 0;
574
- if (!a)
575
- return M ? M.correct ? M.points : 0 : C == null ? void 0 : C.points;
576
- }, [a, M, C, e.status]), X = w(() => a ? "Time expired" : e.type === z.POLL ? "Time remaining" : M ? "You won" : "To win", [a, e.type, M]);
577
- return /* @__PURE__ */ s(le, { "data-question-header": "true", children: /* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ l(_t, { children: [
573
+ }) : [], [
574
+ w,
575
+ l,
576
+ t,
577
+ e,
578
+ x,
579
+ c,
580
+ T,
581
+ I
582
+ ]), te = f && (f.case === "trivia" || f.case === "prediction") ? f.value : void 0, $ = c === k.RESOLVED && u === D.TRIVIA && !x && !A, H = u === D.TRIVIA && M && N && A, ne = E(() => {
583
+ if (!($ || l))
584
+ return c === k.RESOLVED ? 0 : x ? x.correct ? x.points : 0 : L == null ? void 0 : L.points;
585
+ }, [l, x, L, c, $]), se = E(() => $ || l ? "Time expired" : e.type === D.POLL ? "Time remaining" : x ? "You won" : "To win", [l, e.type, x, $]), G = x || $ || H || u === D.TRIVIA && c === k.RESOLVED && A;
586
+ return /* @__PURE__ */ s(ue, { "data-question-header": "true", children: /* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ d(_t, { children: [
578
587
  /* @__PURE__ */ s(
579
588
  qt,
580
589
  {
581
- feedbackMessages: q,
582
- questionVoted: !!M,
583
- questionVotedCorrectly: M == null ? void 0 : M.correct,
584
- questionType: h,
585
- hasCorrectAnswer: b,
586
- questionStatus: e.status,
587
- votedInCurrentRender: f,
588
- votedAfterQuestionClosed: D,
589
- enteredAnActiveQuestion: S
590
+ feedbackMessages: te,
591
+ questionVoted: !!x,
592
+ questionVotedCorrectly: x == null ? void 0 : x.correct,
593
+ questionType: u,
594
+ hasCorrectAnswer: w,
595
+ questionStatus: c,
596
+ showExpiredNotification: $,
597
+ showClosedNotificationTrivia: H,
598
+ votedInCurrentRender: N,
599
+ votedAfterQuestionClosed: M,
600
+ enteredAnActiveQuestion: A
590
601
  }
591
602
  ),
592
- e.type !== z.PREDICTION && /* @__PURE__ */ s(
593
- Tn,
603
+ e.type !== D.PREDICTION && /* @__PURE__ */ s(
604
+ yn,
594
605
  {
595
- title: X,
596
- points: K,
597
- onTimerExpired: y,
606
+ title: se,
607
+ points: ne,
608
+ onTimerExpired: O,
598
609
  questionType: e.type,
599
610
  isTimer: !t,
600
- isPlayingTimer: !M,
601
- timerDuration: M ? 0 : Number(((m = e == null ? void 0 : e.appearance) == null ? void 0 : m.autoHideInterval) || "30")
611
+ isPlayingTimer: !x,
612
+ timerDuration: G ? 0 : Number(((h = e == null ? void 0 : e.appearance) == null ? void 0 : h.autoHideInterval) || "30")
602
613
  }
603
614
  ),
604
- a ? /* @__PURE__ */ s(
615
+ l ? /* @__PURE__ */ s(
605
616
  Lt,
606
617
  {
607
618
  title: "More to come...",
608
619
  description: "Watch for additional enhanced stream interactive experience."
609
620
  }
610
- ) : /* @__PURE__ */ l(k, { children: [
611
- /* @__PURE__ */ s(Yt, { "data-isPrediction": e.type === z.PREDICTION, children: c }),
612
- /* @__PURE__ */ s(Vt, { children: U.map((O) => /* @__PURE__ */ s(
621
+ ) : /* @__PURE__ */ d(C, { children: [
622
+ /* @__PURE__ */ s(Yt, { "data-isPrediction": e.type === D.PREDICTION, children: p }),
623
+ /* @__PURE__ */ s(Vt, { children: P.map((j) => /* @__PURE__ */ s(
613
624
  ln,
614
625
  {
615
- ...O,
616
- markThatVoted: x,
617
- votedAfterQuestionClosed: D,
618
- enteredAnActiveQuestion: S
626
+ ...j,
627
+ markThatVoted: v,
628
+ votedAfterQuestionClosed: M,
629
+ enteredAnActiveQuestion: A
619
630
  },
620
- O.id
631
+ j.id
621
632
  )) })
622
633
  ] })
623
634
  ] }) }) });
@@ -645,38 +656,38 @@ const Ze = /* @__PURE__ */ o("div")({
645
656
  name: "Image",
646
657
  class: "i1gfjeu5",
647
658
  propsAsIs: !1
648
- }), Qe = ({
659
+ }), qe = ({
649
660
  created: e,
650
661
  image: t,
651
662
  title: n,
652
663
  isPickHistory: i,
653
664
  instantView: r
654
665
  }) => {
655
- const m = w(() => {
666
+ const h = E(() => {
656
667
  if (e) {
657
- const h = new Date(e);
658
- if (ue(h))
668
+ const u = new Date(e);
669
+ if (he(u))
659
670
  return {
660
- date: ce(h),
661
- time: de(h)
671
+ date: pe(u),
672
+ time: me(u)
662
673
  };
663
674
  }
664
675
  return null;
665
- }, [e]), c = (r == null ? void 0 : r.image) || t;
666
- return /* @__PURE__ */ l(Sn, { children: [
667
- m && /* @__PURE__ */ l(jn, { children: [
668
- m.date,
676
+ }, [e]), p = (r == null ? void 0 : r.image) || t;
677
+ return /* @__PURE__ */ d(Sn, { children: [
678
+ h && /* @__PURE__ */ d(jn, { children: [
679
+ h.date,
669
680
  " · ",
670
- m.time
681
+ h.time
671
682
  ] }),
672
683
  (r == null ? void 0 : r.video) && /* @__PURE__ */ s(Ye, { source: r.video.url, poster: r.video.thumbnailUrl }),
673
- c && !(r != null && r.video) && /* @__PURE__ */ s(bn, { src: c }),
674
- /* @__PURE__ */ l(zn, { children: [
684
+ p && !(r != null && r.video) && /* @__PURE__ */ s(bn, { src: p }),
685
+ /* @__PURE__ */ d(zn, { children: [
675
686
  /* @__PURE__ */ s(xn, { children: i ? n : r == null ? void 0 : r.heading }),
676
687
  !i && /* @__PURE__ */ s(On, { children: r == null ? void 0 : r.body })
677
688
  ] })
678
689
  ] });
679
- }, Cn = /* @__PURE__ */ o("div")({
690
+ }, wn = /* @__PURE__ */ o("div")({
680
691
  name: "Container",
681
692
  class: "c1euiow",
682
693
  propsAsIs: !1
@@ -684,11 +695,11 @@ const Ze = /* @__PURE__ */ o("div")({
684
695
  name: "WebLinkBtn",
685
696
  class: "w19zie3h",
686
697
  propsAsIs: !1
687
- }), wn = ({ instantView: e, ...t }) => /* @__PURE__ */ l(Cn, { children: [
688
- /* @__PURE__ */ s(Qe, { instantView: e, ...t }),
689
- (e == null ? void 0 : e.webLink) && /* @__PURE__ */ l(kn, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
698
+ }), Cn = ({ instantView: e, ...t }) => /* @__PURE__ */ d(wn, { children: [
699
+ /* @__PURE__ */ s(qe, { instantView: e, ...t }),
700
+ (e == null ? void 0 : e.webLink) && /* @__PURE__ */ d(kn, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
690
701
  "Explore more of the Masters History",
691
- /* @__PURE__ */ s(j, { name: "icon-external-link" })
702
+ /* @__PURE__ */ s(b, { name: "icon-external-link" })
692
703
  ] })
693
704
  ] }), En = /* @__PURE__ */ o("div")({
694
705
  name: "Container",
@@ -703,25 +714,25 @@ const Ze = /* @__PURE__ */ o("div")({
703
714
  class: "q111mmic",
704
715
  propsAsIs: !1
705
716
  }), Rn = ({ created: e, ...t }) => {
706
- const n = w(() => {
717
+ const n = E(() => {
707
718
  if (e) {
708
719
  const i = new Date(e);
709
- if (ue(i))
720
+ if (he(i))
710
721
  return {
711
- date: ce(i),
712
- time: de(i)
722
+ date: pe(i),
723
+ time: me(i)
713
724
  };
714
725
  }
715
726
  return null;
716
727
  }, [e]);
717
- return /* @__PURE__ */ l(En, { children: [
718
- n && /* @__PURE__ */ l(Ln, { children: [
728
+ return /* @__PURE__ */ d(En, { children: [
729
+ n && /* @__PURE__ */ d(Ln, { children: [
719
730
  n.date,
720
731
  " · ",
721
732
  n.time
722
733
  ] }),
723
734
  t.title && /* @__PURE__ */ s($n, { children: t.title }),
724
- /* @__PURE__ */ s(je, { ...t })
735
+ /* @__PURE__ */ s(we, { ...t })
725
736
  ] });
726
737
  }, Qn = /* @__PURE__ */ o("div")({
727
738
  name: "QuestionContainer",
@@ -731,7 +742,7 @@ const Ze = /* @__PURE__ */ o("div")({
731
742
  openedQuestion: e
732
743
  }) => {
733
744
  var t, n;
734
- return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ s(wn, {
745
+ return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ s(Cn, {
735
746
  created: e.attributes.created,
736
747
  ...e.attributes.attributes.value
737
748
  }) : ((n = e == null ? void 0 : e.attributes) == null ? void 0 : n.attributes.case) === "tweet" ? /* @__PURE__ */ s(Rn, {
@@ -757,21 +768,21 @@ const Ze = /* @__PURE__ */ o("div")({
757
768
  gamification: e
758
769
  }) => {
759
770
  var t;
760
- const n = Q(e.openedQuestion.$store), i = Q(e.openedQuestion.$extendedStore);
771
+ const n = q(e.openedQuestion.$store), i = q(e.openedQuestion.$extendedStore);
761
772
  if (!n)
762
773
  return null;
763
774
  const r = n.type;
764
- return /* @__PURE__ */ l(Qn, {
765
- children: [/* @__PURE__ */ s(we, {
775
+ return /* @__PURE__ */ d(Qn, {
776
+ children: [/* @__PURE__ */ s(Le, {
766
777
  close: e.closeQuestion,
767
- type: ((t = n.attributes) == null ? void 0 : t.type) || z.UNSET
778
+ type: ((t = n.attributes) == null ? void 0 : t.type) || D.UNSET
768
779
  }), r === "question" && /* @__PURE__ */ s(qn, {
769
780
  vote: e.submitAnswer,
770
781
  close: e.closeQuestion,
771
782
  extendedQuestion: i
772
783
  }), r !== "question" && /* @__PURE__ */ s(Un, {
773
784
  openedQuestion: n
774
- }), /* @__PURE__ */ s(Ct, {
785
+ }), /* @__PURE__ */ s(wt, {
775
786
  sponsorLogo: ""
776
787
  })]
777
788
  });
@@ -792,16 +803,16 @@ const Ze = /* @__PURE__ */ o("div")({
792
803
  class: "tspsaas",
793
804
  propsAsIs: !1
794
805
  });
795
- var J = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(J || {});
796
- const Me = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ s(Vn, { onClick: n, "data-selected": t, children: /* @__PURE__ */ s(Wn, { children: e }) }), Fn = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ s(_n, { children: /* @__PURE__ */ l(Yn, { "data-position": e === "home" ? "left" : "right", children: [
797
- /* @__PURE__ */ s(Me, { title: "Home", active: e === "home", onClick: () => t(
806
+ var ee = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(ee || {});
807
+ const Ne = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ s(Vn, { onClick: n, "data-selected": t, children: /* @__PURE__ */ s(Wn, { children: e }) }), Fn = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ s(_n, { children: /* @__PURE__ */ d(Yn, { "data-position": e === "home" ? "left" : "right", children: [
808
+ /* @__PURE__ */ s(Ne, { title: "Home", active: e === "home", onClick: () => t(
798
809
  "home"
799
810
  /* HOME */
800
811
  ) }),
801
812
  /* @__PURE__ */ s(
802
- Me,
813
+ Ne,
803
814
  {
804
- title: "Leader Board",
815
+ title: "Friends",
805
816
  active: e === "leaderboard",
806
817
  onClick: () => t(
807
818
  "leaderboard"
@@ -810,34 +821,34 @@ const Me = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ s(Vn, { onCl
810
821
  }
811
822
  )
812
823
  ] }) });
813
- function oe() {
814
- return oe = Object.assign ? Object.assign.bind() : function(e) {
824
+ function ce() {
825
+ return ce = Object.assign ? Object.assign.bind() : function(e) {
815
826
  for (var t = 1; t < arguments.length; t++) {
816
827
  var n = arguments[t];
817
828
  for (var i in n)
818
829
  Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
819
830
  }
820
831
  return e;
821
- }, oe.apply(this, arguments);
832
+ }, ce.apply(this, arguments);
822
833
  }
823
- function Ae(e) {
834
+ function Te(e) {
824
835
  if (e === void 0)
825
836
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
826
837
  return e;
827
838
  }
828
- function ae(e, t) {
829
- return ae = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
839
+ function de(e, t) {
840
+ return de = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
830
841
  return i.__proto__ = r, i;
831
- }, ae(e, t);
842
+ }, de(e, t);
832
843
  }
833
844
  function Bn(e, t) {
834
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ae(e, t);
845
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, de(e, t);
835
846
  }
836
- var Ne = Number.isNaN || function(t) {
847
+ var ye = Number.isNaN || function(t) {
837
848
  return typeof t == "number" && t !== t;
838
849
  };
839
850
  function Hn(e, t) {
840
- return !!(e === t || Ne(e) && Ne(t));
851
+ return !!(e === t || ye(e) && ye(t));
841
852
  }
842
853
  function Gn(e, t) {
843
854
  if (e.length !== t.length)
@@ -847,138 +858,138 @@ function Gn(e, t) {
847
858
  return !1;
848
859
  return !0;
849
860
  }
850
- function se(e, t) {
861
+ function oe(e, t) {
851
862
  t === void 0 && (t = Gn);
852
- var n, i = [], r, m = !1;
853
- function c() {
854
- for (var h = [], d = 0; d < arguments.length; d++)
855
- h[d] = arguments[d];
856
- return m && n === this && t(h, i) || (r = e.apply(this, h), m = !0, n = this, i = h), r;
863
+ var n, i = [], r, h = !1;
864
+ function p() {
865
+ for (var u = [], c = 0; c < arguments.length; c++)
866
+ u[c] = arguments[c];
867
+ return h && n === this && t(u, i) || (r = e.apply(this, u), h = !0, n = this, i = u), r;
857
868
  }
858
- return c;
869
+ return p;
859
870
  }
860
- var Zn = typeof performance == "object" && typeof performance.now == "function", ye = Zn ? function() {
871
+ var Zn = typeof performance == "object" && typeof performance.now == "function", De = Zn ? function() {
861
872
  return performance.now();
862
873
  } : function() {
863
874
  return Date.now();
864
875
  };
865
- function Te(e) {
876
+ function Se(e) {
866
877
  cancelAnimationFrame(e.id);
867
878
  }
868
879
  function Jn(e, t) {
869
- var n = ye();
880
+ var n = De();
870
881
  function i() {
871
- ye() - n >= t ? e.call(null) : r.id = requestAnimationFrame(i);
882
+ De() - n >= t ? e.call(null) : r.id = requestAnimationFrame(i);
872
883
  }
873
884
  var r = {
874
885
  id: requestAnimationFrame(i)
875
886
  };
876
887
  return r;
877
888
  }
878
- var ie = -1;
879
- function De(e) {
880
- if (e === void 0 && (e = !1), ie === -1 || e) {
889
+ var ae = -1;
890
+ function ze(e) {
891
+ if (e === void 0 && (e = !1), ae === -1 || e) {
881
892
  var t = document.createElement("div"), n = t.style;
882
- n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), ie = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
893
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), ae = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
883
894
  }
884
- return ie;
895
+ return ae;
885
896
  }
886
- var _ = null;
887
- function Se(e) {
888
- if (e === void 0 && (e = !1), _ === null || e) {
897
+ var Y = null;
898
+ function xe(e) {
899
+ if (e === void 0 && (e = !1), Y === null || e) {
889
900
  var t = document.createElement("div"), n = t.style;
890
901
  n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
891
902
  var i = document.createElement("div"), r = i.style;
892
- return r.width = "100px", r.height = "100px", t.appendChild(i), document.body.appendChild(t), t.scrollLeft > 0 ? _ = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? _ = "negative" : _ = "positive-ascending"), document.body.removeChild(t), _;
903
+ return r.width = "100px", r.height = "100px", t.appendChild(i), document.body.appendChild(t), t.scrollLeft > 0 ? Y = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? Y = "negative" : Y = "positive-ascending"), document.body.removeChild(t), Y;
893
904
  }
894
- return _;
905
+ return Y;
895
906
  }
896
907
  var Kn = 150, Xn = function(t, n) {
897
908
  return t;
898
909
  };
899
910
  function es(e) {
900
- var t, n = e.getItemOffset, i = e.getEstimatedTotalSize, r = e.getItemSize, m = e.getOffsetForIndexAndAlignment, c = e.getStartIndexForOffset, h = e.getStopIndexForStartIndex, d = e.initInstanceProps, f = e.shouldResetStyleCacheOnItemSizeChange, N = e.validateProps;
901
- return t = /* @__PURE__ */ function(D) {
902
- Bn(A, D);
903
- function A(T) {
911
+ var t, n = e.getItemOffset, i = e.getEstimatedTotalSize, r = e.getItemSize, h = e.getOffsetForIndexAndAlignment, p = e.getStartIndexForOffset, u = e.getStopIndexForStartIndex, c = e.initInstanceProps, f = e.shouldResetStyleCacheOnItemSizeChange, N = e.validateProps;
912
+ return t = /* @__PURE__ */ function(S) {
913
+ Bn(M, S);
914
+ function M(A) {
904
915
  var a;
905
- return a = D.call(this, T) || this, a._instanceProps = d(a.props, Ae(a)), a._outerRef = void 0, a._resetIsScrollingTimeoutId = null, a.state = {
906
- instance: Ae(a),
916
+ return a = S.call(this, A) || this, a._instanceProps = c(a.props, Te(a)), a._outerRef = void 0, a._resetIsScrollingTimeoutId = null, a.state = {
917
+ instance: Te(a),
907
918
  isScrolling: !1,
908
919
  scrollDirection: "forward",
909
920
  scrollOffset: typeof a.props.initialScrollOffset == "number" ? a.props.initialScrollOffset : 0,
910
921
  scrollUpdateWasRequested: !1
911
- }, a._callOnItemsRendered = void 0, a._callOnItemsRendered = se(function(p, u, I, g) {
922
+ }, a._callOnItemsRendered = void 0, a._callOnItemsRendered = oe(function(l, m, I, g) {
912
923
  return a.props.onItemsRendered({
913
- overscanStartIndex: p,
914
- overscanStopIndex: u,
924
+ overscanStartIndex: l,
925
+ overscanStopIndex: m,
915
926
  visibleStartIndex: I,
916
927
  visibleStopIndex: g
917
928
  });
918
- }), a._callOnScroll = void 0, a._callOnScroll = se(function(p, u, I) {
929
+ }), a._callOnScroll = void 0, a._callOnScroll = oe(function(l, m, I) {
919
930
  return a.props.onScroll({
920
- scrollDirection: p,
921
- scrollOffset: u,
931
+ scrollDirection: l,
932
+ scrollOffset: m,
922
933
  scrollUpdateWasRequested: I
923
934
  });
924
- }), a._getItemStyle = void 0, a._getItemStyle = function(p) {
925
- var u = a.props, I = u.direction, g = u.itemSize, x = u.layout, v = a._getItemStyleCache(f && g, f && x, f && I), y;
926
- if (v.hasOwnProperty(p))
927
- y = v[p];
935
+ }), a._getItemStyle = void 0, a._getItemStyle = function(l) {
936
+ var m = a.props, I = m.direction, g = m.itemSize, y = m.layout, v = a._getItemStyleCache(f && g, f && y, f && I), T;
937
+ if (v.hasOwnProperty(l))
938
+ T = v[l];
928
939
  else {
929
- var M = n(a.props, p, a._instanceProps), b = r(a.props, p, a._instanceProps), C = I === "horizontal" || x === "horizontal", U = I === "rtl", q = C ? M : 0;
930
- v[p] = y = {
940
+ var O = n(a.props, l, a._instanceProps), x = r(a.props, l, a._instanceProps), w = I === "horizontal" || y === "horizontal", L = I === "rtl", P = w ? O : 0;
941
+ v[l] = T = {
931
942
  position: "absolute",
932
- left: U ? void 0 : q,
933
- right: U ? q : void 0,
934
- top: C ? 0 : M,
935
- height: C ? "100%" : b,
936
- width: C ? b : "100%"
943
+ left: L ? void 0 : P,
944
+ right: L ? P : void 0,
945
+ top: w ? 0 : O,
946
+ height: w ? "100%" : x,
947
+ width: w ? x : "100%"
937
948
  };
938
949
  }
939
- return y;
940
- }, a._getItemStyleCache = void 0, a._getItemStyleCache = se(function(p, u, I) {
950
+ return T;
951
+ }, a._getItemStyleCache = void 0, a._getItemStyleCache = oe(function(l, m, I) {
941
952
  return {};
942
- }), a._onScrollHorizontal = function(p) {
943
- var u = p.currentTarget, I = u.clientWidth, g = u.scrollLeft, x = u.scrollWidth;
953
+ }), a._onScrollHorizontal = function(l) {
954
+ var m = l.currentTarget, I = m.clientWidth, g = m.scrollLeft, y = m.scrollWidth;
944
955
  a.setState(function(v) {
945
956
  if (v.scrollOffset === g)
946
957
  return null;
947
- var y = a.props.direction, M = g;
948
- if (y === "rtl")
949
- switch (Se()) {
958
+ var T = a.props.direction, O = g;
959
+ if (T === "rtl")
960
+ switch (xe()) {
950
961
  case "negative":
951
- M = -g;
962
+ O = -g;
952
963
  break;
953
964
  case "positive-descending":
954
- M = x - I - g;
965
+ O = y - I - g;
955
966
  break;
956
967
  }
957
- return M = Math.max(0, Math.min(M, x - I)), {
968
+ return O = Math.max(0, Math.min(O, y - I)), {
958
969
  isScrolling: !0,
959
970
  scrollDirection: v.scrollOffset < g ? "forward" : "backward",
960
- scrollOffset: M,
971
+ scrollOffset: O,
961
972
  scrollUpdateWasRequested: !1
962
973
  };
963
974
  }, a._resetIsScrollingDebounced);
964
- }, a._onScrollVertical = function(p) {
965
- var u = p.currentTarget, I = u.clientHeight, g = u.scrollHeight, x = u.scrollTop;
975
+ }, a._onScrollVertical = function(l) {
976
+ var m = l.currentTarget, I = m.clientHeight, g = m.scrollHeight, y = m.scrollTop;
966
977
  a.setState(function(v) {
967
- if (v.scrollOffset === x)
978
+ if (v.scrollOffset === y)
968
979
  return null;
969
- var y = Math.max(0, Math.min(x, g - I));
980
+ var T = Math.max(0, Math.min(y, g - I));
970
981
  return {
971
982
  isScrolling: !0,
972
- scrollDirection: v.scrollOffset < y ? "forward" : "backward",
973
- scrollOffset: y,
983
+ scrollDirection: v.scrollOffset < T ? "forward" : "backward",
984
+ scrollOffset: T,
974
985
  scrollUpdateWasRequested: !1
975
986
  };
976
987
  }, a._resetIsScrollingDebounced);
977
- }, a._outerRefSetter = function(p) {
978
- var u = a.props.outerRef;
979
- a._outerRef = p, typeof u == "function" ? u(p) : u != null && typeof u == "object" && u.hasOwnProperty("current") && (u.current = p);
988
+ }, a._outerRefSetter = function(l) {
989
+ var m = a.props.outerRef;
990
+ a._outerRef = l, typeof m == "function" ? m(l) : m != null && typeof m == "object" && m.hasOwnProperty("current") && (m.current = l);
980
991
  }, a._resetIsScrollingDebounced = function() {
981
- a._resetIsScrollingTimeoutId !== null && Te(a._resetIsScrollingTimeoutId), a._resetIsScrollingTimeoutId = Jn(a._resetIsScrolling, Kn);
992
+ a._resetIsScrollingTimeoutId !== null && Se(a._resetIsScrollingTimeoutId), a._resetIsScrollingTimeoutId = Jn(a._resetIsScrolling, Kn);
982
993
  }, a._resetIsScrolling = function() {
983
994
  a._resetIsScrollingTimeoutId = null, a.setState({
984
995
  isScrolling: !1
@@ -987,42 +998,42 @@ function es(e) {
987
998
  });
988
999
  }, a;
989
1000
  }
990
- A.getDerivedStateFromProps = function(a, p) {
991
- return ts(a, p), N(a), null;
1001
+ M.getDerivedStateFromProps = function(a, l) {
1002
+ return ts(a, l), N(a), null;
992
1003
  };
993
- var S = A.prototype;
994
- return S.scrollTo = function(a) {
995
- a = Math.max(0, a), this.setState(function(p) {
996
- return p.scrollOffset === a ? null : {
997
- scrollDirection: p.scrollOffset < a ? "forward" : "backward",
1004
+ var z = M.prototype;
1005
+ return z.scrollTo = function(a) {
1006
+ a = Math.max(0, a), this.setState(function(l) {
1007
+ return l.scrollOffset === a ? null : {
1008
+ scrollDirection: l.scrollOffset < a ? "forward" : "backward",
998
1009
  scrollOffset: a,
999
1010
  scrollUpdateWasRequested: !0
1000
1011
  };
1001
1012
  }, this._resetIsScrollingDebounced);
1002
- }, S.scrollToItem = function(a, p) {
1003
- p === void 0 && (p = "auto");
1004
- var u = this.props, I = u.itemCount, g = u.layout, x = this.state.scrollOffset;
1013
+ }, z.scrollToItem = function(a, l) {
1014
+ l === void 0 && (l = "auto");
1015
+ var m = this.props, I = m.itemCount, g = m.layout, y = this.state.scrollOffset;
1005
1016
  a = Math.max(0, Math.min(a, I - 1));
1006
1017
  var v = 0;
1007
1018
  if (this._outerRef) {
1008
- var y = this._outerRef;
1009
- g === "vertical" ? v = y.scrollWidth > y.clientWidth ? De() : 0 : v = y.scrollHeight > y.clientHeight ? De() : 0;
1019
+ var T = this._outerRef;
1020
+ g === "vertical" ? v = T.scrollWidth > T.clientWidth ? ze() : 0 : v = T.scrollHeight > T.clientHeight ? ze() : 0;
1010
1021
  }
1011
- this.scrollTo(m(this.props, a, p, x, this._instanceProps, v));
1012
- }, S.componentDidMount = function() {
1013
- var a = this.props, p = a.direction, u = a.initialScrollOffset, I = a.layout;
1014
- if (typeof u == "number" && this._outerRef != null) {
1022
+ this.scrollTo(h(this.props, a, l, y, this._instanceProps, v));
1023
+ }, z.componentDidMount = function() {
1024
+ var a = this.props, l = a.direction, m = a.initialScrollOffset, I = a.layout;
1025
+ if (typeof m == "number" && this._outerRef != null) {
1015
1026
  var g = this._outerRef;
1016
- p === "horizontal" || I === "horizontal" ? g.scrollLeft = u : g.scrollTop = u;
1027
+ l === "horizontal" || I === "horizontal" ? g.scrollLeft = m : g.scrollTop = m;
1017
1028
  }
1018
1029
  this._callPropsCallbacks();
1019
- }, S.componentDidUpdate = function() {
1020
- var a = this.props, p = a.direction, u = a.layout, I = this.state, g = I.scrollOffset, x = I.scrollUpdateWasRequested;
1021
- if (x && this._outerRef != null) {
1030
+ }, z.componentDidUpdate = function() {
1031
+ var a = this.props, l = a.direction, m = a.layout, I = this.state, g = I.scrollOffset, y = I.scrollUpdateWasRequested;
1032
+ if (y && this._outerRef != null) {
1022
1033
  var v = this._outerRef;
1023
- if (p === "horizontal" || u === "horizontal")
1024
- if (p === "rtl")
1025
- switch (Se()) {
1034
+ if (l === "horizontal" || m === "horizontal")
1035
+ if (l === "rtl")
1036
+ switch (xe()) {
1026
1037
  case "negative":
1027
1038
  v.scrollLeft = -g;
1028
1039
  break;
@@ -1030,8 +1041,8 @@ function es(e) {
1030
1041
  v.scrollLeft = g;
1031
1042
  break;
1032
1043
  default:
1033
- var y = v.clientWidth, M = v.scrollWidth;
1034
- v.scrollLeft = M - y - g;
1044
+ var T = v.clientWidth, O = v.scrollWidth;
1045
+ v.scrollLeft = O - T - g;
1035
1046
  break;
1036
1047
  }
1037
1048
  else
@@ -1040,61 +1051,61 @@ function es(e) {
1040
1051
  v.scrollTop = g;
1041
1052
  }
1042
1053
  this._callPropsCallbacks();
1043
- }, S.componentWillUnmount = function() {
1044
- this._resetIsScrollingTimeoutId !== null && Te(this._resetIsScrollingTimeoutId);
1045
- }, S.render = function() {
1046
- var a = this.props, p = a.children, u = a.className, I = a.direction, g = a.height, x = a.innerRef, v = a.innerElementType, y = a.innerTagName, M = a.itemCount, b = a.itemData, C = a.itemKey, U = C === void 0 ? Xn : C, q = a.layout, K = a.outerElementType, X = a.outerTagName, O = a.style, $ = a.useIsScrolling, Ue = a.width, pe = this.state.isScrolling, ee = I === "horizontal" || q === "horizontal", qe = ee ? this._onScrollHorizontal : this._onScrollVertical, me = this._getRangeToRender(), Pe = me[0], _e = me[1], he = [];
1047
- if (M > 0)
1048
- for (var Y = Pe; Y <= _e; Y++)
1049
- he.push(te(p, {
1050
- data: b,
1051
- key: U(Y, b),
1052
- index: Y,
1053
- isScrolling: $ ? pe : void 0,
1054
- style: this._getItemStyle(Y)
1054
+ }, z.componentWillUnmount = function() {
1055
+ this._resetIsScrollingTimeoutId !== null && Se(this._resetIsScrollingTimeoutId);
1056
+ }, z.render = function() {
1057
+ var a = this.props, l = a.children, m = a.className, I = a.direction, g = a.height, y = a.innerRef, v = a.innerElementType, T = a.innerTagName, O = a.itemCount, x = a.itemData, w = a.itemKey, L = w === void 0 ? Xn : w, P = a.layout, te = a.outerElementType, $ = a.outerTagName, H = a.style, ne = a.useIsScrolling, se = a.width, G = this.state.isScrolling, j = I === "horizontal" || P === "horizontal", Q = j ? this._onScrollHorizontal : this._onScrollVertical, Ie = this._getRangeToRender(), Pe = Ie[0], _e = Ie[1], fe = [];
1058
+ if (O > 0)
1059
+ for (var V = Pe; V <= _e; V++)
1060
+ fe.push(ie(l, {
1061
+ data: x,
1062
+ key: L(V, x),
1063
+ index: V,
1064
+ isScrolling: ne ? G : void 0,
1065
+ style: this._getItemStyle(V)
1055
1066
  }));
1056
- var Ie = i(this.props, this._instanceProps);
1057
- return te(K || X || "div", {
1058
- className: u,
1059
- onScroll: qe,
1067
+ var ge = i(this.props, this._instanceProps);
1068
+ return ie(te || $ || "div", {
1069
+ className: m,
1070
+ onScroll: Q,
1060
1071
  ref: this._outerRefSetter,
1061
- style: oe({
1072
+ style: ce({
1062
1073
  position: "relative",
1063
1074
  height: g,
1064
- width: Ue,
1075
+ width: se,
1065
1076
  overflow: "auto",
1066
1077
  WebkitOverflowScrolling: "touch",
1067
1078
  willChange: "transform",
1068
1079
  direction: I
1069
- }, O)
1070
- }, te(v || y || "div", {
1071
- children: he,
1072
- ref: x,
1080
+ }, H)
1081
+ }, ie(v || T || "div", {
1082
+ children: fe,
1083
+ ref: y,
1073
1084
  style: {
1074
- height: ee ? "100%" : Ie,
1075
- pointerEvents: pe ? "none" : void 0,
1076
- width: ee ? Ie : "100%"
1085
+ height: j ? "100%" : ge,
1086
+ pointerEvents: G ? "none" : void 0,
1087
+ width: j ? ge : "100%"
1077
1088
  }
1078
1089
  }));
1079
- }, S._callPropsCallbacks = function() {
1090
+ }, z._callPropsCallbacks = function() {
1080
1091
  if (typeof this.props.onItemsRendered == "function") {
1081
1092
  var a = this.props.itemCount;
1082
1093
  if (a > 0) {
1083
- var p = this._getRangeToRender(), u = p[0], I = p[1], g = p[2], x = p[3];
1084
- this._callOnItemsRendered(u, I, g, x);
1094
+ var l = this._getRangeToRender(), m = l[0], I = l[1], g = l[2], y = l[3];
1095
+ this._callOnItemsRendered(m, I, g, y);
1085
1096
  }
1086
1097
  }
1087
1098
  if (typeof this.props.onScroll == "function") {
1088
- var v = this.state, y = v.scrollDirection, M = v.scrollOffset, b = v.scrollUpdateWasRequested;
1089
- this._callOnScroll(y, M, b);
1099
+ var v = this.state, T = v.scrollDirection, O = v.scrollOffset, x = v.scrollUpdateWasRequested;
1100
+ this._callOnScroll(T, O, x);
1090
1101
  }
1091
- }, S._getRangeToRender = function() {
1092
- var a = this.props, p = a.itemCount, u = a.overscanCount, I = this.state, g = I.isScrolling, x = I.scrollDirection, v = I.scrollOffset;
1093
- if (p === 0)
1102
+ }, z._getRangeToRender = function() {
1103
+ var a = this.props, l = a.itemCount, m = a.overscanCount, I = this.state, g = I.isScrolling, y = I.scrollDirection, v = I.scrollOffset;
1104
+ if (l === 0)
1094
1105
  return [0, 0, 0, 0];
1095
- var y = c(this.props, v, this._instanceProps), M = h(this.props, y, v, this._instanceProps), b = !g || x === "backward" ? Math.max(1, u) : 1, C = !g || x === "forward" ? Math.max(1, u) : 1;
1096
- return [Math.max(0, y - b), Math.max(0, Math.min(p - 1, M + C)), y, M];
1097
- }, A;
1106
+ var T = p(this.props, v, this._instanceProps), O = u(this.props, T, v, this._instanceProps), x = !g || y === "backward" ? Math.max(1, m) : 1, w = !g || y === "forward" ? Math.max(1, m) : 1;
1107
+ return [Math.max(0, T - x), Math.max(0, Math.min(l - 1, O + w)), T, O];
1108
+ }, M;
1098
1109
  }(Ce), t.defaultProps = {
1099
1110
  direction: "ltr",
1100
1111
  itemData: void 0,
@@ -1118,20 +1129,20 @@ var ts = function(t, n) {
1118
1129
  var n = t.itemCount, i = t.itemSize;
1119
1130
  return i * n;
1120
1131
  },
1121
- getOffsetForIndexAndAlignment: function(t, n, i, r, m, c) {
1122
- var h = t.direction, d = t.height, f = t.itemCount, N = t.itemSize, D = t.layout, A = t.width, S = h === "horizontal" || D === "horizontal", T = S ? A : d, a = Math.max(0, f * N - T), p = Math.min(a, n * N), u = Math.max(0, n * N - T + N + c);
1123
- switch (i === "smart" && (r >= u - T && r <= p + T ? i = "auto" : i = "center"), i) {
1132
+ getOffsetForIndexAndAlignment: function(t, n, i, r, h, p) {
1133
+ var u = t.direction, c = t.height, f = t.itemCount, N = t.itemSize, S = t.layout, M = t.width, z = u === "horizontal" || S === "horizontal", A = z ? M : c, a = Math.max(0, f * N - A), l = Math.min(a, n * N), m = Math.max(0, n * N - A + N + p);
1134
+ switch (i === "smart" && (r >= m - A && r <= l + A ? i = "auto" : i = "center"), i) {
1124
1135
  case "start":
1125
- return p;
1136
+ return l;
1126
1137
  case "end":
1127
- return u;
1138
+ return m;
1128
1139
  case "center": {
1129
- var I = Math.round(u + (p - u) / 2);
1130
- return I < Math.ceil(T / 2) ? 0 : I > a + Math.floor(T / 2) ? a : I;
1140
+ var I = Math.round(m + (l - m) / 2);
1141
+ return I < Math.ceil(A / 2) ? 0 : I > a + Math.floor(A / 2) ? a : I;
1131
1142
  }
1132
1143
  case "auto":
1133
1144
  default:
1134
- return r >= u && r <= p ? r : r < u ? u : p;
1145
+ return r >= m && r <= l ? r : r < m ? m : l;
1135
1146
  }
1136
1147
  },
1137
1148
  getStartIndexForOffset: function(t, n) {
@@ -1139,10 +1150,10 @@ var ts = function(t, n) {
1139
1150
  return Math.max(0, Math.min(i - 1, Math.floor(n / r)));
1140
1151
  },
1141
1152
  getStopIndexForStartIndex: function(t, n, i) {
1142
- var r = t.direction, m = t.height, c = t.itemCount, h = t.itemSize, d = t.layout, f = t.width, N = r === "horizontal" || d === "horizontal", D = n * h, A = N ? f : m, S = Math.ceil((A + i - D) / h);
1153
+ var r = t.direction, h = t.height, p = t.itemCount, u = t.itemSize, c = t.layout, f = t.width, N = r === "horizontal" || c === "horizontal", S = n * u, M = N ? f : h, z = Math.ceil((M + i - S) / u);
1143
1154
  return Math.max(0, Math.min(
1144
- c - 1,
1145
- n + S - 1
1155
+ p - 1,
1156
+ n + z - 1
1146
1157
  // -1 is because stop index is inclusive
1147
1158
  ));
1148
1159
  },
@@ -1158,24 +1169,24 @@ function ss(e) {
1158
1169
  return !(i > n || r < t);
1159
1170
  }
1160
1171
  function is(e) {
1161
- for (var t = e.isItemLoaded, n = e.itemCount, i = e.minimumBatchSize, r = e.startIndex, m = e.stopIndex, c = [], h = null, d = null, f = r; f <= m; f++) {
1172
+ for (var t = e.isItemLoaded, n = e.itemCount, i = e.minimumBatchSize, r = e.startIndex, h = e.stopIndex, p = [], u = null, c = null, f = r; f <= h; f++) {
1162
1173
  var N = t(f);
1163
- N ? d !== null && (c.push(h, d), h = d = null) : (d = f, h === null && (h = f));
1174
+ N ? c !== null && (p.push(u, c), u = c = null) : (c = f, u === null && (u = f));
1164
1175
  }
1165
- if (d !== null) {
1166
- for (var D = Math.min(Math.max(d, h + i - 1), n - 1), A = d + 1; A <= D && !t(A); A++)
1167
- d = A;
1168
- c.push(h, d);
1176
+ if (c !== null) {
1177
+ for (var S = Math.min(Math.max(c, u + i - 1), n - 1), M = c + 1; M <= S && !t(M); M++)
1178
+ c = M;
1179
+ p.push(u, c);
1169
1180
  }
1170
- if (c.length)
1171
- for (; c[1] - c[0] + 1 < i && c[0] > 0; ) {
1172
- var S = c[0] - 1;
1173
- if (!t(S))
1174
- c[0] = S;
1181
+ if (p.length)
1182
+ for (; p[1] - p[0] + 1 < i && p[0] > 0; ) {
1183
+ var z = p[0] - 1;
1184
+ if (!t(z))
1185
+ p[0] = z;
1175
1186
  else
1176
1187
  break;
1177
1188
  }
1178
- return c;
1189
+ return p;
1179
1190
  }
1180
1191
  var rs = function(e, t) {
1181
1192
  if (!(e instanceof t))
@@ -1201,23 +1212,23 @@ var rs = function(e, t) {
1201
1212
  configurable: !0
1202
1213
  }
1203
1214
  }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
1204
- }, ze = function(e, t) {
1215
+ }, Oe = function(e, t) {
1205
1216
  if (!e)
1206
1217
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1207
1218
  return t && (typeof t == "object" || typeof t == "function") ? t : e;
1208
1219
  }, ls = function(e) {
1209
1220
  as(t, e);
1210
1221
  function t() {
1211
- var n, i, r, m;
1222
+ var n, i, r, h;
1212
1223
  rs(this, t);
1213
- for (var c = arguments.length, h = Array(c), d = 0; d < c; d++)
1214
- h[d] = arguments[d];
1215
- return m = (i = (r = ze(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(h))), r), r._lastRenderedStartIndex = -1, r._lastRenderedStopIndex = -1, r._memoizedUnloadedRanges = [], r._onItemsRendered = function(f) {
1216
- var N = f.visibleStartIndex, D = f.visibleStopIndex;
1217
- r._lastRenderedStartIndex = N, r._lastRenderedStopIndex = D, r._ensureRowsLoaded(N, D);
1224
+ for (var p = arguments.length, u = Array(p), c = 0; c < p; c++)
1225
+ u[c] = arguments[c];
1226
+ return h = (i = (r = Oe(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(u))), r), r._lastRenderedStartIndex = -1, r._lastRenderedStopIndex = -1, r._memoizedUnloadedRanges = [], r._onItemsRendered = function(f) {
1227
+ var N = f.visibleStartIndex, S = f.visibleStopIndex;
1228
+ r._lastRenderedStartIndex = N, r._lastRenderedStopIndex = S, r._ensureRowsLoaded(N, S);
1218
1229
  }, r._setRef = function(f) {
1219
1230
  r._listRef = f;
1220
- }, i), ze(r, m);
1231
+ }, i), Oe(r, h);
1221
1232
  }
1222
1233
  return os(t, [{
1223
1234
  key: "resetloadMoreItemsCache",
@@ -1241,36 +1252,36 @@ var rs = function(e, t) {
1241
1252
  }, {
1242
1253
  key: "_ensureRowsLoaded",
1243
1254
  value: function(i, r) {
1244
- var m = this.props, c = m.isItemLoaded, h = m.itemCount, d = m.minimumBatchSize, f = d === void 0 ? 10 : d, N = m.threshold, D = N === void 0 ? 15 : N, A = is({
1245
- isItemLoaded: c,
1246
- itemCount: h,
1255
+ var h = this.props, p = h.isItemLoaded, u = h.itemCount, c = h.minimumBatchSize, f = c === void 0 ? 10 : c, N = h.threshold, S = N === void 0 ? 15 : N, M = is({
1256
+ isItemLoaded: p,
1257
+ itemCount: u,
1247
1258
  minimumBatchSize: f,
1248
- startIndex: Math.max(0, i - D),
1249
- stopIndex: Math.min(h - 1, r + D)
1259
+ startIndex: Math.max(0, i - S),
1260
+ stopIndex: Math.min(u - 1, r + S)
1250
1261
  });
1251
- (this._memoizedUnloadedRanges.length !== A.length || this._memoizedUnloadedRanges.some(function(S, T) {
1252
- return A[T] !== S;
1253
- })) && (this._memoizedUnloadedRanges = A, this._loadUnloadedRanges(A));
1262
+ (this._memoizedUnloadedRanges.length !== M.length || this._memoizedUnloadedRanges.some(function(z, A) {
1263
+ return M[A] !== z;
1264
+ })) && (this._memoizedUnloadedRanges = M, this._loadUnloadedRanges(M));
1254
1265
  }
1255
1266
  }, {
1256
1267
  key: "_loadUnloadedRanges",
1257
1268
  value: function(i) {
1258
- for (var r = this, m = this.props.loadMoreItems || this.props.loadMoreRows, c = function(f) {
1259
- var N = i[f], D = i[f + 1], A = m(N, D);
1260
- A != null && A.then(function() {
1269
+ for (var r = this, h = this.props.loadMoreItems || this.props.loadMoreRows, p = function(f) {
1270
+ var N = i[f], S = i[f + 1], M = h(N, S);
1271
+ M != null && M.then(function() {
1261
1272
  if (ss({
1262
1273
  lastRenderedStartIndex: r._lastRenderedStartIndex,
1263
1274
  lastRenderedStopIndex: r._lastRenderedStopIndex,
1264
1275
  startIndex: N,
1265
- stopIndex: D
1276
+ stopIndex: S
1266
1277
  })) {
1267
1278
  if (r._listRef == null)
1268
1279
  return;
1269
1280
  typeof r._listRef.resetAfterIndex == "function" ? r._listRef.resetAfterIndex(N, !0) : (typeof r._listRef._getItemStyleCache == "function" && r._listRef._getItemStyleCache(-1), r._listRef.forceUpdate());
1270
1281
  }
1271
1282
  });
1272
- }, h = 0; h < i.length; h += 2)
1273
- c(h);
1283
+ }, u = 0; u < i.length; u += 2)
1284
+ p(u);
1274
1285
  }
1275
1286
  }]), t;
1276
1287
  }(Ce);
@@ -1302,7 +1313,7 @@ const cs = /* @__PURE__ */ o("div")({
1302
1313
  name: "Name",
1303
1314
  class: "njsrqgr",
1304
1315
  propsAsIs: !1
1305
- }), fs = () => j, gs = /* @__PURE__ */ o(fs())({
1316
+ }), fs = () => b, gs = /* @__PURE__ */ o(fs())({
1306
1317
  name: "CurrentUserBadge",
1307
1318
  class: "c17uc4zr",
1308
1319
  propsAsIs: !0
@@ -1312,18 +1323,18 @@ const cs = /* @__PURE__ */ o("div")({
1312
1323
  name: n,
1313
1324
  points: i,
1314
1325
  isCurrentUser: r,
1315
- openItemDetail: m,
1316
- style: c
1317
- }) => /* @__PURE__ */ l(cs, { onClick: m, style: c, children: [
1326
+ openItemDetail: h,
1327
+ style: p
1328
+ }) => /* @__PURE__ */ d(cs, { onClick: h, style: p, children: [
1318
1329
  /* @__PURE__ */ s(ds, { children: e || 0 }),
1319
- /* @__PURE__ */ l(ms, { children: [
1320
- t ? /* @__PURE__ */ s(us, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ s(ps, { children: Ee(n || "") }),
1321
- /* @__PURE__ */ l(hs, { children: [
1330
+ /* @__PURE__ */ d(ms, { children: [
1331
+ t ? /* @__PURE__ */ s(us, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ s(ps, { children: $e(n || "") }),
1332
+ /* @__PURE__ */ d(hs, { children: [
1322
1333
  /* @__PURE__ */ s(Is, { children: n || "" }),
1323
1334
  r && /* @__PURE__ */ s(gs, { name: "icon-star" })
1324
1335
  ] })
1325
1336
  ] }),
1326
- /* @__PURE__ */ s("div", { children: Le(i) })
1337
+ /* @__PURE__ */ s("div", { children: Re(i) })
1327
1338
  ] }), Ms = /* @__PURE__ */ o("div")({
1328
1339
  name: "ScrollContainer",
1329
1340
  class: "s13d8sg6",
@@ -1333,36 +1344,36 @@ const cs = /* @__PURE__ */ o("div")({
1333
1344
  currentUserId: t,
1334
1345
  openItemDetail: n,
1335
1346
  fetchMore: i
1336
- }) => /* @__PURE__ */ s(Ve, { children: ({ width: r, height: m }) => /* @__PURE__ */ s(
1347
+ }) => /* @__PURE__ */ s(Ve, { children: ({ width: r, height: h }) => /* @__PURE__ */ s(
1337
1348
  ls,
1338
1349
  {
1339
- isItemLoaded: (c) => c < e.length,
1350
+ isItemLoaded: (p) => p < e.length,
1340
1351
  itemCount: e.length + 1,
1341
1352
  loadMoreItems: i,
1342
- children: ({ onItemsRendered: c, ref: h }) => /* @__PURE__ */ s(Ms, { children: /* @__PURE__ */ s(
1353
+ children: ({ onItemsRendered: p, ref: u }) => /* @__PURE__ */ s(Ms, { children: /* @__PURE__ */ s(
1343
1354
  ns,
1344
1355
  {
1345
1356
  itemSize: 56,
1346
- onItemsRendered: c,
1347
- ref: h,
1357
+ onItemsRendered: p,
1358
+ ref: u,
1348
1359
  itemCount: e.length,
1349
1360
  width: r,
1350
- height: m,
1351
- children: ({ index: d, style: f }) => /* @__PURE__ */ s(
1361
+ height: h,
1362
+ children: ({ index: c, style: f }) => /* @__PURE__ */ s(
1352
1363
  vs,
1353
1364
  {
1354
1365
  style: { ...f, maxHeight: 48 },
1355
- ...e[d],
1356
- openItemDetail: () => n(e[d].userId),
1357
- isCurrentUser: !!t && t === e[d].userId
1366
+ ...e[c],
1367
+ openItemDetail: () => n(e[c].userId),
1368
+ isCurrentUser: !!t && t === e[c].userId
1358
1369
  },
1359
- e[d].userId
1370
+ e[c].userId
1360
1371
  )
1361
1372
  }
1362
1373
  ) })
1363
1374
  }
1364
1375
  ) }), Ns = ({ deepLink: e }) => {
1365
- const { data: t } = Q(e.$store), n = t == null ? void 0 : t.url, i = e.desktopLink;
1376
+ const { data: t } = q(e.$store), n = t == null ? void 0 : t.url, i = e.desktopLink;
1366
1377
  return /* @__PURE__ */ s(
1367
1378
  We,
1368
1379
  {
@@ -1379,12 +1390,12 @@ const cs = /* @__PURE__ */ o("div")({
1379
1390
  label: "X"
1380
1391
  }
1381
1392
  ],
1382
- inviteCardTitle: "It’s more fun with friends",
1393
+ inviteCardTitle: "It’s More Fun With Friends",
1383
1394
  inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
1384
1395
  }
1385
1396
  );
1386
- }, ys = ({ gamification: e }) => {
1387
- const { data: t } = Q(e.leaderboardList.$store);
1397
+ }, Ts = ({ gamification: e }) => {
1398
+ const { data: t } = q(e.leaderboardList.$store);
1388
1399
  return t != null && t.length ? /* @__PURE__ */ s(
1389
1400
  As,
1390
1401
  {
@@ -1394,7 +1405,7 @@ const cs = /* @__PURE__ */ o("div")({
1394
1405
  currentUserId: e.currentUserId.get()
1395
1406
  }
1396
1407
  ) : /* @__PURE__ */ s(Ns, { deepLink: e.deepLink });
1397
- }, Ts = /* @__PURE__ */ o("div")({
1408
+ }, ys = /* @__PURE__ */ o("div")({
1398
1409
  name: "QuestionItem",
1399
1410
  class: "q1w97g3p",
1400
1411
  propsAsIs: !1
@@ -1410,11 +1421,11 @@ const cs = /* @__PURE__ */ o("div")({
1410
1421
  name: "QuestionAction",
1411
1422
  class: "q105uluy",
1412
1423
  propsAsIs: !1
1413
- }), xs = () => j, Z = /* @__PURE__ */ o(xs())({
1424
+ }), xs = () => b, X = /* @__PURE__ */ o(xs())({
1414
1425
  name: "QuestionActionIcon",
1415
1426
  class: "q1fa0b9h",
1416
1427
  propsAsIs: !0
1417
- }), Os = () => j, js = /* @__PURE__ */ o(Os())({
1428
+ }), Os = () => b, js = /* @__PURE__ */ o(Os())({
1418
1429
  name: "QuestionTypeIcon",
1419
1430
  class: "qxlt78s",
1420
1431
  propsAsIs: !0
@@ -1422,7 +1433,7 @@ const cs = /* @__PURE__ */ o("div")({
1422
1433
  name: "QuestionTypeLabel",
1423
1434
  class: "qmg0vkx",
1424
1435
  propsAsIs: !1
1425
- }), Cs = /* @__PURE__ */ o("div")({
1436
+ }), ws = /* @__PURE__ */ o("div")({
1426
1437
  name: "QuestionContent",
1427
1438
  class: "q1uz5j1g",
1428
1439
  propsAsIs: !1
@@ -1430,40 +1441,40 @@ const cs = /* @__PURE__ */ o("div")({
1430
1441
  name: "PlayButton",
1431
1442
  class: "p1pba9p1",
1432
1443
  propsAsIs: !1
1433
- }), ws = {
1434
- [B.LOST]: /* @__PURE__ */ s(Z, { name: "incorrectVoted" }),
1435
- [B.WON]: /* @__PURE__ */ s(Z, { name: "icon-check" }),
1436
- [B.UNSET]: /* @__PURE__ */ s(Z, { name: "icon-arrow" }),
1437
- [B.DNP]: /* @__PURE__ */ s(Z, { name: "icon-arrow" })
1444
+ }), Cs = {
1445
+ [Z.LOST]: /* @__PURE__ */ s(X, { name: "incorrectVoted" }),
1446
+ [Z.WON]: /* @__PURE__ */ s(X, { name: "icon-check" }),
1447
+ [Z.UNSET]: /* @__PURE__ */ s(X, { name: "icon-arrow" }),
1448
+ [Z.DNP]: /* @__PURE__ */ s(X, { name: "icon-arrow" })
1438
1449
  }, Es = ({
1439
1450
  questionId: e,
1440
1451
  questionType: t,
1441
1452
  questionStatus: n,
1442
1453
  subject: i,
1443
1454
  openForVoting: r,
1444
- openQuestion: m,
1445
- status: c
1455
+ openQuestion: h,
1456
+ status: p
1446
1457
  }) => {
1447
- const h = Oe[t], d = ws[c];
1448
- return h ? /* @__PURE__ */ l(Ts, { onClick: () => m == null ? void 0 : m(e), children: [
1449
- /* @__PURE__ */ l(Cs, { children: [
1450
- /* @__PURE__ */ l(Ds, { children: [
1458
+ const u = be[t], c = Cs[p];
1459
+ return u ? /* @__PURE__ */ d(ys, { onClick: () => h == null ? void 0 : h(e), children: [
1460
+ /* @__PURE__ */ d(ws, { children: [
1461
+ /* @__PURE__ */ d(Ds, { children: [
1451
1462
  /* @__PURE__ */ s(
1452
1463
  js,
1453
1464
  {
1454
- "data-type-trivia": t === z.TRIVIA,
1455
- "data-type-poll": t === z.POLL,
1456
- name: h.iconName
1465
+ "data-type-trivia": t === D.TRIVIA,
1466
+ "data-type-poll": t === D.POLL,
1467
+ name: u.iconName
1457
1468
  }
1458
1469
  ),
1459
- /* @__PURE__ */ l(bs, { children: [
1460
- h.label,
1461
- t === z.TRIVIA && n === E.RESOLVED && " • Expired"
1470
+ /* @__PURE__ */ d(bs, { children: [
1471
+ u.label,
1472
+ t === D.TRIVIA && n === k.RESOLVED && " • Expired"
1462
1473
  ] })
1463
1474
  ] }),
1464
1475
  /* @__PURE__ */ s(Ss, { children: i || "" })
1465
1476
  ] }),
1466
- /* @__PURE__ */ s(zs, { children: r ? /* @__PURE__ */ s(ks, { children: "Play" }) : d })
1477
+ /* @__PURE__ */ s(zs, { children: r ? /* @__PURE__ */ s(ks, { children: "Play" }) : c })
1467
1478
  ] }) : null;
1468
1479
  }, Ls = /* @__PURE__ */ o("div")({
1469
1480
  name: "Container",
@@ -1477,8 +1488,8 @@ const cs = /* @__PURE__ */ o("div")({
1477
1488
  openInsight: e,
1478
1489
  questionId: t,
1479
1490
  ...n
1480
- }) => /* @__PURE__ */ l(Ls, { children: [
1481
- /* @__PURE__ */ s(Qe, { questionId: t, ...n, isPickHistory: !0 }),
1491
+ }) => /* @__PURE__ */ d(Ls, { children: [
1492
+ /* @__PURE__ */ s(qe, { questionId: t, ...n, isPickHistory: !0 }),
1482
1493
  e && /* @__PURE__ */ s($s, { onClick: () => e(t), children: "View Insight" })
1483
1494
  ] }), Qs = /* @__PURE__ */ o("div")({
1484
1495
  name: "Container",
@@ -1501,25 +1512,25 @@ const cs = /* @__PURE__ */ o("div")({
1501
1512
  created: t,
1502
1513
  ...n
1503
1514
  }) => {
1504
- const i = w(() => {
1515
+ const i = E(() => {
1505
1516
  if (t) {
1506
1517
  const r = new Date(t);
1507
- if (ue(r))
1518
+ if (he(r))
1508
1519
  return {
1509
- date: ce(r),
1510
- time: de(r)
1520
+ date: pe(r),
1521
+ time: me(r)
1511
1522
  };
1512
1523
  }
1513
1524
  return null;
1514
1525
  }, [t]);
1515
- return /* @__PURE__ */ l(Qs, { children: [
1516
- i && /* @__PURE__ */ l(Ps, { children: [
1526
+ return /* @__PURE__ */ d(Qs, { children: [
1527
+ i && /* @__PURE__ */ d(Ps, { children: [
1517
1528
  i.date,
1518
1529
  " · ",
1519
1530
  i.time
1520
1531
  ] }),
1521
1532
  n.title && /* @__PURE__ */ s(_s, { children: n.title }),
1522
- /* @__PURE__ */ s(je, { ...n }),
1533
+ /* @__PURE__ */ s(we, { ...n }),
1523
1534
  e && /* @__PURE__ */ s(qs, { onClick: () => e(n.tweetId), children: "View Insight" })
1524
1535
  ] });
1525
1536
  }, Vs = /* @__PURE__ */ o("div")({
@@ -1527,46 +1538,46 @@ const cs = /* @__PURE__ */ o("div")({
1527
1538
  class: "qvghv3l",
1528
1539
  propsAsIs: !1
1529
1540
  }), Ws = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ s(Vs, { children: e == null ? void 0 : e.map((n) => {
1530
- var i, r, m;
1541
+ var i, r, h;
1531
1542
  if (n.type === "question" && ((i = n.attributes) == null ? void 0 : i.attributes.case) === "question") {
1532
- const c = n.attributes.attributes.value;
1533
- return /* @__PURE__ */ s(Es, { openQuestion: t, ...c }, c.questionId);
1543
+ const p = n.attributes.attributes.value;
1544
+ return /* @__PURE__ */ s(Es, { openQuestion: t, ...p }, p.questionId);
1534
1545
  }
1535
1546
  if (n.type === "insight" && ((r = n.attributes) == null ? void 0 : r.attributes.case) === "insight") {
1536
- const c = n.attributes.attributes.value;
1537
- return /* @__PURE__ */ s(Rs, { openInsight: t, ...c }, c.questionId);
1547
+ const p = n.attributes.attributes.value, u = n.attributes.created;
1548
+ return /* @__PURE__ */ s(Rs, { openInsight: t, ...p, created: u }, p.questionId);
1538
1549
  }
1539
- if (n.type === "tweet" && ((m = n.attributes) == null ? void 0 : m.attributes.case) === "tweet") {
1540
- const c = n.attributes.attributes.value, h = n.attributes.id, d = n.attributes.created;
1541
- return /* @__PURE__ */ s(Ys, { openTweet: t, ...c, tweetId: h, created: d }, h);
1550
+ if (n.type === "tweet" && ((h = n.attributes) == null ? void 0 : h.attributes.case) === "tweet") {
1551
+ const p = n.attributes.attributes.value, u = n.attributes.id, c = n.attributes.created;
1552
+ return /* @__PURE__ */ s(Ys, { openTweet: t, ...p, tweetId: u, created: c }, u);
1542
1553
  }
1543
1554
  return null;
1544
1555
  }) }), Fs = ({ store: e, openQuestion: t }) => {
1545
- const n = Q(e);
1556
+ const n = q(e);
1546
1557
  return n != null && n.data ? /* @__PURE__ */ s(Ws, { openQuestion: t, questions: n.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
1547
1558
  }, Bs = ({ userSummary: e }) => {
1548
1559
  var t;
1549
- const [n, i] = L(void 0);
1550
- return be(() => {
1551
- const r = e.subscribe((m) => {
1552
- m != null && m.data && i(m.data);
1560
+ const [n, i] = R(void 0);
1561
+ return ke(() => {
1562
+ const r = e.subscribe((h) => {
1563
+ h != null && h.data && i(h.data);
1553
1564
  });
1554
1565
  return () => {
1555
1566
  r();
1556
1567
  };
1557
- }, [e]), n != null && n.summary ? /* @__PURE__ */ s($e, { ...n.summary, successRate: (t = n.percentage) == null ? void 0 : t.correct }) : /* @__PURE__ */ s("div", { children: "wait user..." });
1568
+ }, [e]), n != null && n.summary ? /* @__PURE__ */ s(Qe, { ...n.summary, successRate: (t = n.percentage) == null ? void 0 : t.correct }) : /* @__PURE__ */ s("div", { children: "wait user..." });
1558
1569
  }, Hs = ({
1559
1570
  gamification: e
1560
1571
  }) => {
1561
- const [t, n] = L(J.HOME);
1562
- return /* @__PURE__ */ l("div", {
1572
+ const [t, n] = R(ee.HOME);
1573
+ return /* @__PURE__ */ d("div", {
1563
1574
  style: {
1564
1575
  height: "100%",
1565
1576
  display: "flex",
1566
1577
  flexDirection: "column",
1567
1578
  overflow: "hidden"
1568
1579
  },
1569
- children: [/* @__PURE__ */ s(re, {
1580
+ children: [/* @__PURE__ */ s(le, {
1570
1581
  style: {
1571
1582
  paddingBottom: "4px"
1572
1583
  },
@@ -1574,8 +1585,8 @@ const cs = /* @__PURE__ */ o("div")({
1574
1585
  activePage: t,
1575
1586
  toggleActivePage: n
1576
1587
  })
1577
- }), t === J.HOME && /* @__PURE__ */ l(le, {
1578
- children: [/* @__PURE__ */ s(re, {
1588
+ }), t === ee.HOME && /* @__PURE__ */ d(ue, {
1589
+ children: [/* @__PURE__ */ s(le, {
1579
1590
  style: {
1580
1591
  paddingTop: "12px"
1581
1592
  },
@@ -1588,14 +1599,14 @@ const cs = /* @__PURE__ */ o("div")({
1588
1599
  store: e.feedList.getStore()
1589
1600
  })
1590
1601
  })]
1591
- }), t === J.LEADERBOARD && /* @__PURE__ */ s("div", {
1602
+ }), t === ee.LEADERBOARD && /* @__PURE__ */ s("div", {
1592
1603
  className: "c1bp9dj2",
1593
- children: /* @__PURE__ */ s(ys, {
1604
+ children: /* @__PURE__ */ s(Ts, {
1594
1605
  gamification: e
1595
1606
  })
1596
1607
  })]
1597
1608
  });
1598
- }, Gs = () => He, xe = /* @__PURE__ */ o(Gs())({
1609
+ }, Gs = () => He, je = /* @__PURE__ */ o(Gs())({
1599
1610
  name: "OpenedContainer",
1600
1611
  class: "oar61gl",
1601
1612
  propsAsIs: !0
@@ -1613,27 +1624,27 @@ const cs = /* @__PURE__ */ o("div")({
1613
1624
  gamification: e,
1614
1625
  className: t
1615
1626
  }) => {
1616
- const n = Q(e.openedQuestion.$store), i = Q(e.openedUser);
1617
- return /* @__PURE__ */ l(k, {
1618
- children: [n && /* @__PURE__ */ s(xe, {
1627
+ const n = q(e.openedQuestion.$store), i = q(e.openedUser);
1628
+ return /* @__PURE__ */ d(C, {
1629
+ children: [n && /* @__PURE__ */ s(je, {
1619
1630
  className: t,
1620
1631
  children: /* @__PURE__ */ s(Pn, {
1621
1632
  gamification: e
1622
1633
  })
1623
- }), i && /* @__PURE__ */ s(xe, {
1634
+ }), i && /* @__PURE__ */ s(je, {
1624
1635
  className: t,
1625
- children: /* @__PURE__ */ l(Zs, {
1626
- children: [/* @__PURE__ */ s(we, {
1636
+ children: /* @__PURE__ */ d(Zs, {
1637
+ children: [/* @__PURE__ */ s(Le, {
1627
1638
  label: "Friend's Rank",
1628
1639
  close: e.closeUser
1629
- }), /* @__PURE__ */ s(re, {
1630
- children: /* @__PURE__ */ s($e, {
1640
+ }), /* @__PURE__ */ s(le, {
1641
+ children: /* @__PURE__ */ s(Qe, {
1631
1642
  ...i,
1632
1643
  successRate: Js(i)
1633
1644
  })
1634
1645
  })]
1635
1646
  })
1636
- }), /* @__PURE__ */ s(le, {
1647
+ }), /* @__PURE__ */ s(ue, {
1637
1648
  className: t,
1638
1649
  "data-nav": "true",
1639
1650
  children: /* @__PURE__ */ s(Hs, {