@streamlayer/react 0.32.4 → 0.32.5

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,6 +1,6 @@
1
- import { jsxs as f, jsx as s, Fragment as R } from "react/jsx-runtime";
2
- import { s as a, n as j, Q as x, o as Se, a as b, b as U, d as ze, E as L, r as ie, w as We, u as w, A as Ve, O as Fe, P as V, c as ee, e as Be, f as He } from "./masters.js";
3
- import P, { useRef as C, useState as _, useCallback as q, useEffect as Ge, useLayoutEffect as Ze, useMemo as $, createElement as Z, PureComponent as xe } from "react";
1
+ import { jsxs as f, jsx as r, Fragment as R } from "react/jsx-runtime";
2
+ import { s as a, n as j, Q as x, o as Se, a as L, b as P, d as ze, E as b, r as se, w as Ve, u as $, A as Fe, O as Be, P as V, c as ee, e as He, f as Ge } from "./masters.js";
3
+ import _, { useRef as w, useState as Q, useCallback as q, useEffect as xe, useLayoutEffect as Ze, useMemo as C, createElement as Z, PureComponent as Oe } from "react";
4
4
  const Je = /* @__PURE__ */ a("div")({
5
5
  name: "Container",
6
6
  class: "c1vwopgc",
@@ -21,27 +21,27 @@ const Je = /* @__PURE__ */ a("div")({
21
21
  name: "CloseButton",
22
22
  class: "c1ao1jtv",
23
23
  propsAsIs: !1
24
- }), it = () => j, st = /* @__PURE__ */ a(it())({
24
+ }), st = () => j, it = /* @__PURE__ */ a(st())({
25
25
  name: "CloseIcon",
26
26
  class: "cvsl7l3",
27
27
  propsAsIs: !0
28
- }), Oe = ({ type: e, close: t, label: i }) => {
29
- const n = e ? Se[e] : { label: i, iconName: void 0 };
28
+ }), je = ({ type: e, close: t, label: n }) => {
29
+ const s = e ? Se[e] : { label: n, iconName: void 0 };
30
30
  return /* @__PURE__ */ f(Je, { children: [
31
31
  /* @__PURE__ */ f(Ke, { children: [
32
- (n == null ? void 0 : n.iconName) && /* @__PURE__ */ s(
32
+ (s == null ? void 0 : s.iconName) && /* @__PURE__ */ r(
33
33
  et,
34
34
  {
35
35
  "data-type-trivia": e === x.TRIVIA,
36
36
  "data-type-poll": e === x.POLL,
37
- name: n.iconName
37
+ name: s.iconName
38
38
  }
39
39
  ),
40
- (n == null ? void 0 : n.label) && /* @__PURE__ */ s(tt, { children: n.label })
40
+ (s == null ? void 0 : s.label) && /* @__PURE__ */ r(tt, { children: s.label })
41
41
  ] }),
42
- /* @__PURE__ */ s(nt, { onClick: t, children: /* @__PURE__ */ s(st, { name: "icon-cross" }) })
42
+ /* @__PURE__ */ r(nt, { onClick: t, children: /* @__PURE__ */ r(it, { name: "icon-cross" }) })
43
43
  ] });
44
- }, je = (e) => e.split(/\s+/).map((t) => t[0]).join("").toUpperCase(), ke = (e) => e ? e.toLocaleString("en-US") : "0", rt = (e) => e.toLocaleDateString("en-US", {
44
+ }, ke = (e) => e.split(/\s+/).map((t) => t[0]).join("").toUpperCase(), we = (e) => e ? e.toLocaleString("en-US") : "0", rt = (e) => e.toLocaleDateString("en-US", {
45
45
  weekday: "short",
46
46
  month: "short",
47
47
  day: "numeric"
@@ -61,8 +61,8 @@ const Je = /* @__PURE__ */ a("div")({
61
61
  class: "i1fbnvpb",
62
62
  propsAsIs: !1
63
63
  }), le = ({ indicator: e, title: t }) => /* @__PURE__ */ f(lt, { children: [
64
- /* @__PURE__ */ s(ct, { children: t }),
65
- /* @__PURE__ */ s(dt, { children: e })
64
+ /* @__PURE__ */ r(ct, { children: t }),
65
+ /* @__PURE__ */ r(dt, { children: e })
66
66
  ] }), ut = /* @__PURE__ */ a("div")({
67
67
  name: "Container",
68
68
  class: "ctmhwyc",
@@ -76,8 +76,8 @@ const Je = /* @__PURE__ */ a("div")({
76
76
  class: "t8s05oq",
77
77
  propsAsIs: !1
78
78
  }), F = ({ indicator: e, title: t }) => /* @__PURE__ */ f(ut, { children: [
79
- /* @__PURE__ */ s(pt, { children: e }),
80
- /* @__PURE__ */ s(mt, { children: t })
79
+ /* @__PURE__ */ r(pt, { children: e }),
80
+ /* @__PURE__ */ r(mt, { children: t })
81
81
  ] }), ht = /* @__PURE__ */ a("div")({
82
82
  name: "Container",
83
83
  class: "c1yrpn9o",
@@ -146,34 +146,34 @@ const Je = /* @__PURE__ */ a("div")({
146
146
  name: "UserAccountBtn",
147
147
  class: "uxareh6",
148
148
  propsAsIs: !1
149
- }), wt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY5MTk3IDQuNjY2NjJDMy42OTE5NyA1Ljk5NzA1IDMuOTI5MTQgNy4xNzc4NyA0LjQwMzUgOC4yMDkxMkMzLjQ5OTY2IDguMDI0NTEgMi43NDQ4NyA3LjY2NDg2IDIuMTM5MSA3LjEzMDE0QzEuNTMzMzMgNi41OTU0MiAxLjIzMDQ2IDYuMDc5OCAxLjIzMDQ2IDUuNTgzMjhWNC42NjY2MkgzLjY5MTk3Wk0xNC43Njg2IDQuNjY2NjJWNS41ODMyOEMxNC43Njg2IDYuMDc5OCAxNC40NjU4IDYuNTk1NDIgMTMuODYgNy4xMzAxNEMxMy4yNTQyIDcuNjY0ODYgMTIuNDk5NCA4LjAyNDUxIDExLjU5NTYgOC4yMDkxMkMxMi4wNjk5IDcuMTc3ODcgMTIuMzA3MSA1Ljk5NzA1IDEyLjMwNzEgNC42NjY2MkgxNC43Njg2Wk0xNS45OTk4IDUuNTgzMjlWNC4zNjEwOEMxNS45OTk4IDQuMTA2NDUgMTUuOTEwMSAzLjg5MDAyIDE1LjczMDYgMy43MTE3OEMxNS41NTExIDMuNTMzNTQgMTUuMzMzMiAzLjQ0NDQyIDE1LjA3NjggMy40NDQ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xNC41MjM5IDguMTkwMDNDMTQuOTc1OCA3LjgyMDgyIDE1LjMzNDggNy40MDcwNSAxNS42MDA4IDYuOTQ4NzJDMTUuODY2OCA2LjQ5MDM5IDE1Ljk5OTggNi4wMzUyNSAxNS45OTk4IDUuNTgzMjlaTTYuNzYwNDcgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=", Ce = ({
150
150
  avatar: e,
151
151
  name: t,
152
- points: i,
153
- friendsRank: n,
154
- rank: r,
152
+ points: n,
153
+ friendsRank: s,
154
+ rank: i,
155
155
  streak: l,
156
156
  correct: c,
157
157
  incorrect: m,
158
158
  inTop: u,
159
159
  successRate: h
160
160
  }) => /* @__PURE__ */ f(ht, { children: [
161
- /* @__PURE__ */ s(It, { children: /* @__PURE__ */ f(gt, { children: [
161
+ /* @__PURE__ */ r(It, { children: /* @__PURE__ */ f(gt, { children: [
162
162
  /* @__PURE__ */ f(kt, { children: [
163
- e && /* @__PURE__ */ s(vt, { alt: "avatar", src: e }),
164
- !e && /* @__PURE__ */ s(jt, { children: je(t || "") })
163
+ e && /* @__PURE__ */ r(vt, { alt: "avatar", src: e }),
164
+ !e && /* @__PURE__ */ r(jt, { children: ke(t || "") })
165
165
  ] }),
166
166
  /* @__PURE__ */ f(Mt, { children: [
167
- /* @__PURE__ */ s(yt, { children: t }),
167
+ /* @__PURE__ */ r(yt, { children: t }),
168
168
  /* @__PURE__ */ f(Nt, { children: [
169
169
  /* @__PURE__ */ f(At, { children: [
170
- /* @__PURE__ */ s(Tt, { alt: "rank-icon", src: wt }),
170
+ /* @__PURE__ */ r(Tt, { alt: "rank-icon", src: wt }),
171
171
  /* @__PURE__ */ f(Dt, { children: [
172
- ke(i),
173
- /* @__PURE__ */ s(St, { children: "PTS" })
172
+ we(n),
173
+ /* @__PURE__ */ r(St, { children: "PTS" })
174
174
  ] })
175
175
  ] }),
176
- /* @__PURE__ */ s(zt, {}),
176
+ /* @__PURE__ */ r(zt, {}),
177
177
  /* @__PURE__ */ f("div", { children: [
178
178
  "TOP ",
179
179
  u || 0,
@@ -184,26 +184,26 @@ const Je = /* @__PURE__ */ a("div")({
184
184
  ] }) }),
185
185
  /* @__PURE__ */ f(ft, { children: [
186
186
  /* @__PURE__ */ f(xt, { children: [
187
- /* @__PURE__ */ s(le, { indicator: n || 0, title: "Friends rank" }),
188
- /* @__PURE__ */ s(le, { indicator: r || 0, title: "Global rank" })
187
+ /* @__PURE__ */ r(le, { indicator: s || 0, title: "Friends rank" }),
188
+ /* @__PURE__ */ r(le, { indicator: i || 0, title: "Global rank" })
189
189
  ] }),
190
190
  /* @__PURE__ */ f(Ot, { children: [
191
- /* @__PURE__ */ s(F, { indicator: l || 0, title: "Win streak" }),
192
- /* @__PURE__ */ s(F, { indicator: c || 0, title: "Correct" }),
193
- /* @__PURE__ */ s(F, { indicator: m || 0, title: "Incorrect" }),
194
- /* @__PURE__ */ s(F, { indicator: `${h || 0}%`, title: "Succ. rate" })
191
+ /* @__PURE__ */ r(F, { indicator: l || 0, title: "Win streak" }),
192
+ /* @__PURE__ */ r(F, { indicator: c || 0, title: "Correct" }),
193
+ /* @__PURE__ */ r(F, { indicator: m || 0, title: "Incorrect" }),
194
+ /* @__PURE__ */ r(F, { indicator: `${h || 0}%`, title: "Succ. rate" })
195
195
  ] })
196
196
  ] })
197
197
  ] }), Ct = /* @__PURE__ */ a("div")({
198
198
  name: "SponsorLogoWrap",
199
199
  class: "s8p5v5z",
200
200
  propsAsIs: !1
201
- }), $t = () => j, Lt = /* @__PURE__ */ a($t())({
201
+ }), bt = () => j, Lt = /* @__PURE__ */ a(bt())({
202
202
  name: "SponsorLogo",
203
203
  class: "s755yti",
204
204
  propsAsIs: !0
205
- }), bt = () => /* @__PURE__ */ s(Ct, {
206
- children: /* @__PURE__ */ s(Lt, {
205
+ }), $t = () => /* @__PURE__ */ r(Ct, {
206
+ children: /* @__PURE__ */ r(Lt, {
207
207
  name: "mastersLogo"
208
208
  })
209
209
  }), Et = /* @__PURE__ */ a("div")({
@@ -219,9 +219,9 @@ const Je = /* @__PURE__ */ a("div")({
219
219
  class: "dlaj9xp",
220
220
  propsAsIs: !1
221
221
  }), Ut = ({ title: e, description: t }) => /* @__PURE__ */ f(Et, { children: [
222
- /* @__PURE__ */ s(j, { name: "icon-check-circle" }),
223
- /* @__PURE__ */ s(Rt, { children: e }),
224
- /* @__PURE__ */ s(Qt, { children: t })
222
+ /* @__PURE__ */ r(j, { name: "icon-check-circle" }),
223
+ /* @__PURE__ */ r(Rt, { children: e }),
224
+ /* @__PURE__ */ r(Qt, { children: t })
225
225
  ] }), Pt = /* @__PURE__ */ a("div")({
226
226
  name: "Container",
227
227
  class: "c16sbdnm",
@@ -253,32 +253,32 @@ const Je = /* @__PURE__ */ a("div")({
253
253
  }), Vt = ({
254
254
  feedbackMessages: e,
255
255
  questionVotedCorrectly: t,
256
- questionVoted: i,
257
- questionType: n,
258
- hasCorrectAnswer: r,
256
+ questionVoted: n,
257
+ questionType: s,
258
+ hasCorrectAnswer: i,
259
259
  questionStatus: l
260
260
  }) => {
261
- const c = i && (n === x.TRIVIA || n === x.PREDICTION);
262
- if (!c && l !== b.RESOLVED || l === b.RESOLVED && n === x.PREDICTION && !i)
261
+ const c = n && (s === x.TRIVIA || s === x.PREDICTION);
262
+ if (!c && l !== L.RESOLVED || l === L.RESOLVED && s === x.PREDICTION && !n)
263
263
  return null;
264
- const m = n === x.PREDICTION && !r, u = t ? "correct" : "incorrect", h = t ? e.correctFeedback : e.incorrectFeedback;
264
+ const m = s === x.PREDICTION && !i, u = t ? "correct" : "incorrect", h = t ? e.correctFeedback : e.incorrectFeedback;
265
265
  return /* @__PURE__ */ f(Pt, { "data-isPrediction": m, children: [
266
- l === b.RESOLVED && n === x.TRIVIA && !i && /* @__PURE__ */ f(R, { children: [
267
- /* @__PURE__ */ s(ce, { children: /* @__PURE__ */ s(j, { name: "questionExpired" }) }),
266
+ l === L.RESOLVED && s === x.TRIVIA && !n && /* @__PURE__ */ f(R, { children: [
267
+ /* @__PURE__ */ r(ce, { children: /* @__PURE__ */ r(j, { name: "questionExpired" }) }),
268
268
  /* @__PURE__ */ f("div", { children: [
269
- /* @__PURE__ */ s(de, { children: /* @__PURE__ */ s(J, { children: "Question Expired" }) }),
270
- /* @__PURE__ */ s(Wt, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
269
+ /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(J, { children: "Question Expired" }) }),
270
+ /* @__PURE__ */ r(Wt, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
271
271
  ] })
272
272
  ] }),
273
273
  c && m && /* @__PURE__ */ f(R, { children: [
274
- /* @__PURE__ */ s(qt, { name: "icon-prediction" }),
275
- /* @__PURE__ */ s(J, { children: "Stay tuned to see if your prediction was correct." })
274
+ /* @__PURE__ */ r(qt, { name: "icon-prediction" }),
275
+ /* @__PURE__ */ r(J, { children: "Stay tuned to see if your prediction was correct." })
276
276
  ] }),
277
- c && r && /* @__PURE__ */ f(R, { children: [
278
- /* @__PURE__ */ s(ce, { "data-feedbackType": u, children: /* @__PURE__ */ s(j, { name: u }) }),
279
- /* @__PURE__ */ s("div", { children: /* @__PURE__ */ f(de, { children: [
280
- /* @__PURE__ */ s(Yt, { "data-feedbackType": u, children: h == null ? void 0 : h.title }),
281
- /* @__PURE__ */ s(J, { children: h == null ? void 0 : h.description })
277
+ c && i && /* @__PURE__ */ f(R, { children: [
278
+ /* @__PURE__ */ r(ce, { "data-feedbackType": u, children: /* @__PURE__ */ r(j, { name: u }) }),
279
+ /* @__PURE__ */ r("div", { children: /* @__PURE__ */ f(de, { children: [
280
+ /* @__PURE__ */ r(Yt, { "data-feedbackType": u, children: h == null ? void 0 : h.title }),
281
+ /* @__PURE__ */ r(J, { children: h == null ? void 0 : h.description })
282
282
  ] }) })
283
283
  ] })
284
284
  ] });
@@ -318,15 +318,15 @@ const Je = /* @__PURE__ */ a("div")({
318
318
  name: "IconWrap",
319
319
  class: "i19tpfua",
320
320
  propsAsIs: !1
321
- }), Ce = /* @__PURE__ */ a("img")({
321
+ }), be = /* @__PURE__ */ a("img")({
322
322
  name: "Icon",
323
323
  class: "i1tubmma",
324
324
  propsAsIs: !1
325
- }), tn = () => Ce, nn = /* @__PURE__ */ a(tn())({
325
+ }), tn = () => be, nn = /* @__PURE__ */ a(tn())({
326
326
  name: "IconDefault",
327
327
  class: "i1grrgwj",
328
328
  propsAsIs: !0
329
- }), sn = () => Ce, rn = /* @__PURE__ */ a(sn())({
329
+ }), sn = () => be, rn = /* @__PURE__ */ a(sn())({
330
330
  name: "IconCircle",
331
331
  class: "ibemyq8",
332
332
  propsAsIs: !0
@@ -347,34 +347,34 @@ const Je = /* @__PURE__ */ a("div")({
347
347
  class: "cu9kmlb",
348
348
  propsAsIs: !0
349
349
  }), ue = {
350
- [U.CENTERED]: (e) => /* @__PURE__ */ s(nn, { alt: "option-icon", src: e }),
351
- [U.TRANSPARENT]: (e) => /* @__PURE__ */ s(Xt, { children: /* @__PURE__ */ s(en, { style: { backgroundImage: `url(${e})` } }) }),
352
- [U.ROUNDED]: (e) => /* @__PURE__ */ s(rn, { alt: "option-icon", src: e }),
353
- [U.NONE]: () => null,
354
- [U.UNSET]: () => null
355
- }, un = ({ questionType: e, hasCorrectAnswer: t, correct: i, youVoted: n, questionVoted: r }) => {
356
- if (e === x.POLL && n)
350
+ [P.CENTERED]: (e) => /* @__PURE__ */ r(nn, { alt: "option-icon", src: e }),
351
+ [P.TRANSPARENT]: (e) => /* @__PURE__ */ r(Xt, { children: /* @__PURE__ */ r(en, { style: { backgroundImage: `url(${e})` } }) }),
352
+ [P.ROUNDED]: (e) => /* @__PURE__ */ r(rn, { alt: "option-icon", src: e }),
353
+ [P.NONE]: () => null,
354
+ [P.UNSET]: () => null
355
+ }, un = ({ questionType: e, hasCorrectAnswer: t, correct: n, youVoted: s, questionVoted: i }) => {
356
+ if (e === x.POLL && s)
357
357
  return "correct";
358
358
  if (e === x.PREDICTION) {
359
- if (t && r)
360
- return n ? i ? "correct" : "incorrect" : "unset";
361
- if (n)
359
+ if (t && i)
360
+ return s ? n ? "correct" : "incorrect" : "unset";
361
+ if (s)
362
362
  return "correct";
363
363
  }
364
- return e === x.TRIVIA && r && n ? i ? "correct" : "incorrect" : "unset";
364
+ return e === x.TRIVIA && i && s ? n ? "correct" : "incorrect" : "unset";
365
365
  }, pn = ({
366
366
  questionType: e,
367
367
  questionVoted: t,
368
- correct: i,
369
- hasCorrectAnswer: n,
370
- questionStatus: r
371
- }) => e === x.TRIVIA ? t && i : e === x.PREDICTION ? t && i && n || r === b.RESOLVED && i : !1, mn = (e) => {
368
+ correct: n,
369
+ hasCorrectAnswer: s,
370
+ questionStatus: i
371
+ }) => e === x.TRIVIA ? t && n : e === x.PREDICTION ? t && n && s || i === L.RESOLVED && n : !1, mn = (e) => {
372
372
  var t;
373
373
  const {
374
374
  // option props
375
- id: i,
376
- icon: n,
377
- text: r,
375
+ id: n,
376
+ icon: s,
377
+ text: i,
378
378
  percentageDecimal: l,
379
379
  // extra props
380
380
  onVote: c,
@@ -388,32 +388,32 @@ const Je = /* @__PURE__ */ a("div")({
388
388
  questionType: T,
389
389
  correct: D,
390
390
  hasCorrectAnswer: o
391
- } = e, d = un(e), p = pn({ questionType: T, questionVoted: u, correct: D, hasCorrectAnswer: o, questionStatus: M }), I = M === b.RESOLVED && T === x.PREDICTION, g = u || I;
391
+ } = e, d = un(e), p = pn({ questionType: T, questionVoted: u, correct: D, hasCorrectAnswer: o, questionStatus: M }), I = M === L.RESOLVED && T === x.PREDICTION, g = u || I;
392
392
  return /* @__PURE__ */ f(
393
393
  Zt,
394
394
  {
395
- value: i,
395
+ value: n,
396
396
  "data-selected": m,
397
397
  "data-answerState": d,
398
398
  disabled: u || v || N || I,
399
399
  "data-isNotChecked": u && !m && d !== "incorrect",
400
400
  onClick: c,
401
401
  children: [
402
- /* @__PURE__ */ s(Jt, { "data-answerState": d, style: { width: `${g ? l : 0}%` } }),
402
+ /* @__PURE__ */ r(Jt, { "data-answerState": d, style: { width: `${g ? l : 0}%` } }),
403
403
  /* @__PURE__ */ f(Kt, { children: [
404
- n && h && ((t = ue[h]) == null ? void 0 : t.call(ue, n)),
405
- /* @__PURE__ */ s(on, { children: r }),
404
+ s && h && ((t = ue[h]) == null ? void 0 : t.call(ue, s)),
405
+ /* @__PURE__ */ r(on, { children: i }),
406
406
  g && /* @__PURE__ */ f(an, { children: [
407
- p && /* @__PURE__ */ s(dn, { name: "selected" }),
408
- /* @__PURE__ */ s(ln, { children: /* @__PURE__ */ s(ze, { value: l, suffix: "%" }) })
407
+ p && /* @__PURE__ */ r(dn, { name: "selected" }),
408
+ /* @__PURE__ */ r(ln, { children: /* @__PURE__ */ r(ze, { value: l, suffix: "%" }) })
409
409
  ] })
410
410
  ] })
411
411
  ]
412
412
  }
413
413
  );
414
414
  };
415
- var pe = typeof window > "u" ? Ge : Ze, hn = ({ isPlaying: e, duration: t, startAt: i = 0, updateInterval: n = 0, onComplete: r, onUpdate: l }) => {
416
- let [c, m] = _(i), u = C(0), h = C(i), N = C(i * -1e3), M = C(null), v = C(null), T = C(null), D = (p) => {
415
+ var pe = typeof window > "u" ? xe : Ze, hn = ({ isPlaying: e, duration: t, startAt: n = 0, updateInterval: s = 0, onComplete: i, onUpdate: l }) => {
416
+ let [c, m] = Q(n), u = w(0), h = w(n), N = w(n * -1e3), M = w(null), v = w(null), T = w(null), D = (p) => {
417
417
  let I = p / 1e3;
418
418
  if (v.current === null) {
419
419
  v.current = I, M.current = requestAnimationFrame(D);
@@ -421,47 +421,47 @@ var pe = typeof window > "u" ? Ge : Ze, hn = ({ isPlaying: e, duration: t, start
421
421
  }
422
422
  let g = I - v.current, S = u.current + g;
423
423
  v.current = I, u.current = S;
424
- let y = h.current + (n === 0 ? S : (S / n | 0) * n), z = h.current + S, A = typeof t == "number" && z >= t;
424
+ let y = h.current + (s === 0 ? S : (S / s | 0) * s), z = h.current + S, A = typeof t == "number" && z >= t;
425
425
  m(A ? t : y), A || (M.current = requestAnimationFrame(D));
426
426
  }, o = () => {
427
427
  M.current && cancelAnimationFrame(M.current), T.current && clearTimeout(T.current), v.current = null;
428
428
  }, d = q((p) => {
429
429
  o(), u.current = 0;
430
- let I = typeof p == "number" ? p : i;
430
+ let I = typeof p == "number" ? p : n;
431
431
  h.current = I, m(I), e && (M.current = requestAnimationFrame(D));
432
- }, [e, i]);
432
+ }, [e, n]);
433
433
  return pe(() => {
434
434
  if (l == null || l(c), t && c >= t) {
435
435
  N.current += t * 1e3;
436
- let { shouldRepeat: p = !1, delay: I = 0, newStartAt: g } = (r == null ? void 0 : r(N.current / 1e3)) || {};
436
+ let { shouldRepeat: p = !1, delay: I = 0, newStartAt: g } = (i == null ? void 0 : i(N.current / 1e3)) || {};
437
437
  p && (T.current = setTimeout(() => d(g), I * 1e3));
438
438
  }
439
- }, [c, t]), pe(() => (e && (M.current = requestAnimationFrame(D)), o), [e, t, n]), { elapsedTime: c, reset: d };
440
- }, In = (e, t, i) => {
441
- let n = e / 2, r = t / 2, l = n - r, c = 2 * l, m = i === "clockwise" ? "1,0" : "0,1", u = 2 * Math.PI * l;
442
- return { path: `m ${n},${r} a ${l},${l} 0 ${m} 0,${c} a ${l},${l} 0 ${m} 0,-${c}`, pathLength: u };
443
- }, me = (e, t) => e === 0 || e === t ? 0 : typeof t == "number" ? e - t : 0, fn = (e) => ({ position: "relative", width: e, height: e }), gn = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, $e = (e, t, i, n, r) => {
444
- if (n === 0)
439
+ }, [c, t]), pe(() => (e && (M.current = requestAnimationFrame(D)), o), [e, t, s]), { elapsedTime: c, reset: d };
440
+ }, In = (e, t, n) => {
441
+ let s = e / 2, i = t / 2, l = s - i, c = 2 * l, m = n === "clockwise" ? "1,0" : "0,1", u = 2 * Math.PI * l;
442
+ return { path: `m ${s},${i} a ${l},${l} 0 ${m} 0,${c} a ${l},${l} 0 ${m} 0,-${c}`, pathLength: u };
443
+ }, me = (e, t) => e === 0 || e === t ? 0 : typeof t == "number" ? e - t : 0, fn = (e) => ({ position: "relative", width: e, height: e }), gn = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, Le = (e, t, n, s, i) => {
444
+ if (s === 0)
445
445
  return t;
446
- let l = (r ? n - e : e) / n;
447
- return t + i * l;
446
+ let l = (i ? s - e : e) / s;
447
+ return t + n * l;
448
448
  }, he = (e) => {
449
- var t, i;
450
- return (i = (t = e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (n, r, l, c) => `#${r}${r}${l}${l}${c}${c}`).substring(1).match(/.{2}/g)) == null ? void 0 : t.map((n) => parseInt(n, 16))) != null ? i : [];
449
+ var t, n;
450
+ return (n = (t = e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (s, i, l, c) => `#${i}${i}${l}${l}${c}${c}`).substring(1).match(/.{2}/g)) == null ? void 0 : t.map((s) => parseInt(s, 16))) != null ? n : [];
451
451
  }, vn = (e, t) => {
452
- var i;
453
- let { colors: n, colorsTime: r, isSmoothColorTransition: l = !0 } = e;
454
- if (typeof n == "string")
455
- return n;
456
- let c = (i = r == null ? void 0 : r.findIndex((v, T) => v >= t && t >= r[T + 1])) != null ? i : -1;
457
- if (!r || c === -1)
458
- return n[0];
452
+ var n;
453
+ let { colors: s, colorsTime: i, isSmoothColorTransition: l = !0 } = e;
454
+ if (typeof s == "string")
455
+ return s;
456
+ let c = (n = i == null ? void 0 : i.findIndex((v, T) => v >= t && t >= i[T + 1])) != null ? n : -1;
457
+ if (!i || c === -1)
458
+ return s[0];
459
459
  if (!l)
460
- return n[c];
461
- let m = r[c] - t, u = r[c] - r[c + 1], h = he(n[c]), N = he(n[c + 1]), M = !!e.isGrowing;
462
- return `rgb(${h.map((v, T) => $e(m, v, N[T] - v, u, M) | 0).join(",")})`;
460
+ return s[c];
461
+ let m = i[c] - t, u = i[c] - i[c + 1], h = he(s[c]), N = he(s[c + 1]), M = !!e.isGrowing;
462
+ return `rgb(${h.map((v, T) => Le(m, v, N[T] - v, u, M) | 0).join(",")})`;
463
463
  }, Mn = (e) => {
464
- let { duration: t, initialRemainingTime: i, updateInterval: n, size: r = 180, strokeWidth: l = 12, trailStrokeWidth: c, isPlaying: m = !1, isGrowing: u = !1, rotation: h = "clockwise", onComplete: N, onUpdate: M } = e, v = C(), T = Math.max(l, c ?? 0), { path: D, pathLength: o } = In(r, T, h), { elapsedTime: d } = hn({ isPlaying: m, duration: t, startAt: me(t, i), updateInterval: n, onUpdate: typeof M == "function" ? (I) => {
464
+ let { duration: t, initialRemainingTime: n, updateInterval: s, size: i = 180, strokeWidth: l = 12, trailStrokeWidth: c, isPlaying: m = !1, isGrowing: u = !1, rotation: h = "clockwise", onComplete: N, onUpdate: M } = e, v = w(), T = Math.max(l, c ?? 0), { path: D, pathLength: o } = In(i, T, h), { elapsedTime: d } = hn({ isPlaying: m, duration: t, startAt: me(t, n), updateInterval: s, onUpdate: typeof M == "function" ? (I) => {
465
465
  let g = Math.ceil(t - I);
466
466
  g !== v.current && (v.current = g, M(g));
467
467
  } : void 0, onComplete: typeof N == "function" ? (I) => {
@@ -470,31 +470,31 @@ var pe = typeof window > "u" ? Ge : Ze, hn = ({ isPlaying: e, duration: t, start
470
470
  if (S)
471
471
  return { shouldRepeat: S, delay: y, newStartAt: me(t, z) };
472
472
  } : void 0 }), p = t - d;
473
- return { elapsedTime: d, path: D, pathLength: o, remainingTime: Math.ceil(p), rotation: h, size: r, stroke: vn(e, p), strokeDashoffset: $e(d, 0, o, t, u), strokeWidth: l };
474
- }, Le = (e) => {
475
- let { children: t, strokeLinecap: i, trailColor: n, trailStrokeWidth: r } = e, { path: l, pathLength: c, stroke: m, strokeDashoffset: u, remainingTime: h, elapsedTime: N, size: M, strokeWidth: v } = Mn(e);
476
- return P.createElement("div", { style: fn(M) }, P.createElement("svg", { viewBox: `0 0 ${M} ${M}`, width: M, height: M, xmlns: "http://www.w3.org/2000/svg" }, P.createElement("path", { d: l, fill: "none", stroke: n ?? "#d9d9d9", strokeWidth: r ?? v }), P.createElement("path", { d: l, fill: "none", stroke: m, strokeLinecap: i ?? "round", strokeWidth: v, strokeDasharray: c, strokeDashoffset: u })), typeof t == "function" && P.createElement("div", { style: gn }, t({ remainingTime: h, elapsedTime: N, color: m })));
473
+ return { elapsedTime: d, path: D, pathLength: o, remainingTime: Math.ceil(p), rotation: h, size: i, stroke: vn(e, p), strokeDashoffset: Le(d, 0, o, t, u), strokeWidth: l };
474
+ }, $e = (e) => {
475
+ let { children: t, strokeLinecap: n, trailColor: s, trailStrokeWidth: i } = e, { path: l, pathLength: c, stroke: m, strokeDashoffset: u, remainingTime: h, elapsedTime: N, size: M, strokeWidth: v } = Mn(e);
476
+ return _.createElement("div", { style: fn(M) }, _.createElement("svg", { viewBox: `0 0 ${M} ${M}`, width: M, height: M, xmlns: "http://www.w3.org/2000/svg" }, _.createElement("path", { d: l, fill: "none", stroke: s ?? "#d9d9d9", strokeWidth: i ?? v }), _.createElement("path", { d: l, fill: "none", stroke: m, strokeLinecap: n ?? "round", strokeWidth: v, strokeDasharray: c, strokeDashoffset: u })), typeof t == "function" && _.createElement("div", { style: gn }, t({ remainingTime: h, elapsedTime: N, color: m })));
477
477
  };
478
- Le.displayName = "CountdownCircleTimer";
479
- const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRAY3], Nn = [10, 10, 1, 0], Tn = /* @__PURE__ */ a("div")({
478
+ $e.displayName = "CountdownCircleTimer";
479
+ const yn = [b.PRIMARY_GREEN1, b.SECONDARY_RED1, b.SECONDARY_RED1, b.NEUTRALS_GRAY3], Nn = [10, 10, 1, 0], Tn = /* @__PURE__ */ a("div")({
480
480
  name: "RemainingTime",
481
481
  class: "r165427",
482
482
  propsAsIs: !1
483
- }), An = L.SECONDARY_GREEN6, Ie = L.SECONDARY_RED3, Dn = L.NEUTRALS_GRAY3, Sn = ({
483
+ }), An = b.SECONDARY_GREEN6, Ie = b.SECONDARY_RED3, Dn = b.NEUTRALS_GRAY3, Sn = ({
484
484
  isPlaying: e = !0,
485
485
  duration: t = 30,
486
- onTimerExpired: i
486
+ onTimerExpired: n
487
487
  }) => {
488
- const [n, r] = _(t > 10 ? An : Ie), l = ({
488
+ const [s, i] = Q(t > 10 ? An : Ie), l = ({
489
489
  remainingTime: u
490
- }) => /* @__PURE__ */ s(Tn, {
490
+ }) => /* @__PURE__ */ r(Tn, {
491
491
  children: u
492
492
  }), c = q(() => {
493
- i == null || i(), r(Dn);
494
- }, [i, r]), m = q((u) => {
495
- u === 10 && r(Ie);
496
- }, [r]);
497
- return /* @__PURE__ */ s(Le, {
493
+ n == null || n(), i(Dn);
494
+ }, [n, i]), m = q((u) => {
495
+ u === 10 && i(Ie);
496
+ }, [i]);
497
+ return /* @__PURE__ */ r($e, {
498
498
  isPlaying: e,
499
499
  duration: t,
500
500
  colors: yn,
@@ -502,7 +502,7 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
502
502
  size: 32,
503
503
  strokeWidth: 2,
504
504
  trailStrokeWidth: 2,
505
- trailColor: n,
505
+ trailColor: s,
506
506
  onComplete: c,
507
507
  onUpdate: m,
508
508
  children: l
@@ -531,52 +531,52 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
531
531
  name: "PointsCount",
532
532
  class: "po9i64o",
533
533
  propsAsIs: !1
534
- }), $n = /* @__PURE__ */ a("span")({
534
+ }), bn = /* @__PURE__ */ a("span")({
535
535
  name: "PointsUnits",
536
536
  class: "pe5g05h",
537
537
  propsAsIs: !1
538
538
  }), Ln = ({
539
539
  title: e,
540
540
  points: t,
541
- isPlayingTimer: i,
542
- isTimer: n,
543
- questionType: r,
541
+ isPlayingTimer: n,
542
+ isTimer: s,
543
+ questionType: i,
544
544
  timerDuration: l,
545
545
  onTimerExpired: c
546
546
  }) => /* @__PURE__ */ f(zn, { children: [
547
547
  /* @__PURE__ */ f(xn, { children: [
548
- e && /* @__PURE__ */ s(On, { children: e }),
549
- t !== void 0 && r !== x.POLL && /* @__PURE__ */ f(R, { children: [
550
- /* @__PURE__ */ s(kn, { name: "icon-trophy" }),
548
+ e && /* @__PURE__ */ r(On, { children: e }),
549
+ t !== void 0 && i !== x.POLL && /* @__PURE__ */ f(R, { children: [
550
+ /* @__PURE__ */ r(kn, { name: "icon-trophy" }),
551
551
  /* @__PURE__ */ f(wn, { children: [
552
- /* @__PURE__ */ s(Cn, { children: /* @__PURE__ */ s(ze, { value: t }) }),
553
- /* @__PURE__ */ s($n, { children: "PTS" })
552
+ /* @__PURE__ */ r(Cn, { children: /* @__PURE__ */ r(ze, { value: t }) }),
553
+ /* @__PURE__ */ r(bn, { children: "PTS" })
554
554
  ] })
555
555
  ] })
556
556
  ] }),
557
- n && /* @__PURE__ */ s(Sn, { isPlaying: i, onTimerExpired: c, duration: l })
558
- ] }), bn = ({ openedQuestion: e, isLoading: t, vote: i, close: n }) => {
559
- var r, l;
560
- const c = e.subject, m = e.type, u = (r = e.options) == null ? void 0 : r.options, [h, N] = _(!1), [M, v] = _(""), T = e == null ? void 0 : e.id, D = q(
557
+ s && /* @__PURE__ */ r(Sn, { isPlaying: n, onTimerExpired: c, duration: l })
558
+ ] }), $n = ({ openedQuestion: e, isLoading: t, vote: n, close: s }) => {
559
+ var i, l;
560
+ const c = e.subject, m = e.type, u = (i = e.options) == null ? void 0 : i.options, [h, N] = Q(!1), [M, v] = Q(""), T = e == null ? void 0 : e.id, D = q(
561
561
  async (A) => {
562
562
  if (T) {
563
563
  const O = A.currentTarget.value;
564
- v(O), await i(T, O);
564
+ v(O), await n(T, O);
565
565
  }
566
566
  },
567
- [T, v, i]
567
+ [T, v, n]
568
568
  ), o = q(() => {
569
- N(!0), setTimeout(n, 3e3);
570
- }, [n]), d = $(
569
+ N(!0), setTimeout(s, 3e3);
570
+ }, [s]), d = C(
571
571
  () => e == null ? void 0 : e.answers.find((A) => A.youVoted === !0),
572
572
  [e]
573
- ), p = $(
573
+ ), p = C(
574
574
  () => !!(e != null && e.answers.find((A) => A.correct === !0)),
575
575
  [e]
576
- ), I = $(
576
+ ), I = C(
577
577
  () => e == null ? void 0 : e.answers.find((A) => A.correct === !0),
578
578
  [e]
579
- ), g = $(() => e ? e.answers.map((A) => {
579
+ ), g = C(() => e ? e.answers.map((A) => {
580
580
  var O;
581
581
  return {
582
582
  ...A,
@@ -591,14 +591,14 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
591
591
  // ToDo: Figure out why imageMode is not in the response
592
592
  onVote: D
593
593
  };
594
- }) : [], [p, h, t, e, d, D, M]), S = u && (u.case === "trivia" || u.case === "prediction") ? u.value : void 0, y = $(() => {
595
- if (e.status === b.RESOLVED)
594
+ }) : [], [p, h, t, e, d, D, M]), S = u && (u.case === "trivia" || u.case === "prediction") ? u.value : void 0, y = C(() => {
595
+ if (e.status === L.RESOLVED)
596
596
  return 0;
597
597
  if (!h)
598
598
  return d ? d.correct ? d.points : 0 : I == null ? void 0 : I.points;
599
- }, [h, d, I, e.status]), z = $(() => h ? "Time expired" : e.type === x.POLL ? "Time remaining" : d ? "You won" : "To win", [h, e.type, d]);
600
- return /* @__PURE__ */ s(ie, { "data-question-header": "true", children: /* @__PURE__ */ s(Ft, { children: /* @__PURE__ */ f(Bt, { children: [
601
- S && /* @__PURE__ */ s(
599
+ }, [h, d, I, e.status]), z = C(() => h ? "Time expired" : e.type === x.POLL ? "Time remaining" : d ? "You won" : "To win", [h, e.type, d]);
600
+ return /* @__PURE__ */ r(se, { "data-question-header": "true", children: /* @__PURE__ */ r(Ft, { children: /* @__PURE__ */ f(Bt, { children: [
601
+ S && /* @__PURE__ */ r(
602
602
  Vt,
603
603
  {
604
604
  feedbackMessages: S,
@@ -609,7 +609,7 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
609
609
  questionStatus: e.status
610
610
  }
611
611
  ),
612
- e.type !== x.PREDICTION && /* @__PURE__ */ s(
612
+ e.type !== x.PREDICTION && /* @__PURE__ */ r(
613
613
  Ln,
614
614
  {
615
615
  title: z,
@@ -621,15 +621,15 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
621
621
  timerDuration: d ? 0 : Number(((l = e == null ? void 0 : e.appearance) == null ? void 0 : l.autoHideInterval) || "30")
622
622
  }
623
623
  ),
624
- h ? /* @__PURE__ */ s(
624
+ h ? /* @__PURE__ */ r(
625
625
  Ut,
626
626
  {
627
627
  title: "More to come...",
628
628
  description: "Watch for additional enhanced stream interactive experience."
629
629
  }
630
630
  ) : /* @__PURE__ */ f(R, { children: [
631
- /* @__PURE__ */ s(Ht, { "data-isPrediction": e.type === x.PREDICTION, children: c }),
632
- /* @__PURE__ */ s(Gt, { children: g.map((A) => /* @__PURE__ */ s(mn, { ...A }, A.id)) })
631
+ /* @__PURE__ */ r(Ht, { "data-isPrediction": e.type === x.PREDICTION, children: c }),
632
+ /* @__PURE__ */ r(Gt, { children: g.map((A) => /* @__PURE__ */ r(mn, { ...A }, A.id)) })
633
633
  ] })
634
634
  ] }) }) });
635
635
  }, En = /* @__PURE__ */ a("div")({
@@ -656,8 +656,8 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
656
656
  name: "Image",
657
657
  class: "i1gfjeu5",
658
658
  propsAsIs: !1
659
- }), be = ({ created: e, image: t, title: i, instantView: n }) => {
660
- const r = $(() => {
659
+ }), Ee = ({ created: e, image: t, title: n, instantView: s }) => {
660
+ const i = C(() => {
661
661
  if (e) {
662
662
  const c = new Date(e);
663
663
  if (at(c))
@@ -667,18 +667,18 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
667
667
  };
668
668
  }
669
669
  return null;
670
- }, [e]), l = (n == null ? void 0 : n.image) || t;
670
+ }, [e]), l = (s == null ? void 0 : s.image) || t;
671
671
  return /* @__PURE__ */ f(En, { children: [
672
- r && /* @__PURE__ */ f(Pn, { children: [
673
- r.date,
672
+ i && /* @__PURE__ */ f(Pn, { children: [
673
+ i.date,
674
674
  " · ",
675
- r.time
675
+ i.time
676
676
  ] }),
677
- (n == null ? void 0 : n.video) && /* @__PURE__ */ s(We, { source: n.video.url, poster: n.video.thumbnailUrl }),
678
- l && /* @__PURE__ */ s(_n, { src: l }),
677
+ (s == null ? void 0 : s.video) && /* @__PURE__ */ r(Ve, { source: s.video.url, poster: s.video.thumbnailUrl }),
678
+ l && /* @__PURE__ */ r(_n, { src: l }),
679
679
  /* @__PURE__ */ f(Rn, { children: [
680
- /* @__PURE__ */ s(Qn, { children: (n == null ? void 0 : n.heading) || i }),
681
- /* @__PURE__ */ s(Un, { children: n == null ? void 0 : n.body })
680
+ /* @__PURE__ */ r(Qn, { children: (s == null ? void 0 : s.heading) || n }),
681
+ /* @__PURE__ */ r(Un, { children: s == null ? void 0 : s.body })
682
682
  ] })
683
683
  ] });
684
684
  }, qn = /* @__PURE__ */ a("div")({
@@ -690,10 +690,10 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
690
690
  class: "w19zie3h",
691
691
  propsAsIs: !1
692
692
  }), Wn = ({ instantView: e, ...t }) => /* @__PURE__ */ f(qn, { children: [
693
- /* @__PURE__ */ s(be, { instantView: e, ...t }),
693
+ /* @__PURE__ */ r(Ee, { instantView: e, ...t }),
694
694
  (e == null ? void 0 : e.webLink) && /* @__PURE__ */ f(Yn, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
695
695
  "Explore more of the Masters History",
696
- /* @__PURE__ */ s(j, { name: "icon-external-link" })
696
+ /* @__PURE__ */ r(j, { name: "icon-external-link" })
697
697
  ] })
698
698
  ] }), Vn = /* @__PURE__ */ a("div")({
699
699
  name: "QuestionContainer",
@@ -703,44 +703,44 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
703
703
  openedQuestion: e
704
704
  }) => {
705
705
  var t;
706
- return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ s(Wn, {
706
+ return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ r(Wn, {
707
707
  created: e.attributes.created,
708
708
  ...e.attributes.attributes.value
709
709
  }) : null;
710
710
  }, Bn = ({
711
711
  extendedQuestion: e,
712
712
  vote: t,
713
- close: i
713
+ close: n
714
714
  }) => {
715
715
  const {
716
- loading: n,
717
- data: r
716
+ loading: s,
717
+ data: i
718
718
  } = e;
719
- return r ? /* @__PURE__ */ s(bn, {
719
+ return i ? /* @__PURE__ */ r($n, {
720
720
  vote: t,
721
- close: i,
722
- openedQuestion: r,
723
- isLoading: !!n
721
+ close: n,
722
+ openedQuestion: i,
723
+ isLoading: !!s
724
724
  }) : null;
725
725
  }, Hn = ({
726
726
  gamification: e
727
727
  }) => {
728
728
  var t;
729
- const i = w(e.openedQuestion.$store), n = w(e.openedQuestion.$extendedStore);
730
- if (!i)
729
+ const n = $(e.openedQuestion.$store), s = $(e.openedQuestion.$extendedStore);
730
+ if (!n)
731
731
  return null;
732
- const r = i.type;
732
+ const i = n.type;
733
733
  return /* @__PURE__ */ f(Vn, {
734
- children: [/* @__PURE__ */ s(Oe, {
734
+ children: [/* @__PURE__ */ r(je, {
735
735
  close: e.closeQuestion,
736
- type: ((t = i.attributes) == null ? void 0 : t.type) || x.UNSET
737
- }), r === "question" && /* @__PURE__ */ s(Bn, {
736
+ type: ((t = n.attributes) == null ? void 0 : t.type) || x.UNSET
737
+ }), i === "question" && /* @__PURE__ */ r(Bn, {
738
738
  vote: e.submitAnswer,
739
739
  close: e.closeQuestion,
740
- extendedQuestion: n
741
- }), r !== "question" && /* @__PURE__ */ s(Fn, {
742
- openedQuestion: i
743
- }), /* @__PURE__ */ s(bt, {
740
+ extendedQuestion: s
741
+ }), i !== "question" && /* @__PURE__ */ r(Fn, {
742
+ openedQuestion: n
743
+ }), /* @__PURE__ */ r($t, {
744
744
  sponsorLogo: ""
745
745
  })]
746
746
  });
@@ -762,12 +762,12 @@ const yn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1, L.NEUTRALS_GRA
762
762
  propsAsIs: !1
763
763
  });
764
764
  var H = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(H || {});
765
- const fe = ({ title: e, active: t, onClick: i }) => /* @__PURE__ */ s(Jn, { onClick: i, "data-selected": t, children: /* @__PURE__ */ s(Kn, { children: e }) }), Xn = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ s(Gn, { children: /* @__PURE__ */ f(Zn, { "data-position": e === "home" ? "left" : "right", children: [
766
- /* @__PURE__ */ s(fe, { title: "Home", active: e === "home", onClick: () => t(
765
+ const fe = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ r(Jn, { onClick: n, "data-selected": t, children: /* @__PURE__ */ r(Kn, { children: e }) }), Xn = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ r(Gn, { children: /* @__PURE__ */ f(Zn, { "data-position": e === "home" ? "left" : "right", children: [
766
+ /* @__PURE__ */ r(fe, { title: "Home", active: e === "home", onClick: () => t(
767
767
  "home"
768
768
  /* HOME */
769
769
  ) }),
770
- /* @__PURE__ */ s(
770
+ /* @__PURE__ */ r(
771
771
  fe,
772
772
  {
773
773
  title: "Leader Board",
@@ -782,9 +782,9 @@ const fe = ({ title: e, active: t, onClick: i }) => /* @__PURE__ */ s(Jn, { onCl
782
782
  function te() {
783
783
  return te = Object.assign ? Object.assign.bind() : function(e) {
784
784
  for (var t = 1; t < arguments.length; t++) {
785
- var i = arguments[t];
786
- for (var n in i)
787
- Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
785
+ var n = arguments[t];
786
+ for (var s in n)
787
+ Object.prototype.hasOwnProperty.call(n, s) && (e[s] = n[s]);
788
788
  }
789
789
  return e;
790
790
  }, te.apply(this, arguments);
@@ -795,38 +795,38 @@ function ge(e) {
795
795
  return e;
796
796
  }
797
797
  function ne(e, t) {
798
- return ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
799
- return n.__proto__ = r, n;
798
+ return ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(s, i) {
799
+ return s.__proto__ = i, s;
800
800
  }, ne(e, t);
801
801
  }
802
- function ei(e, t) {
802
+ function es(e, t) {
803
803
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ne(e, t);
804
804
  }
805
805
  var ve = Number.isNaN || function(t) {
806
806
  return typeof t == "number" && t !== t;
807
807
  };
808
- function ti(e, t) {
808
+ function ts(e, t) {
809
809
  return !!(e === t || ve(e) && ve(t));
810
810
  }
811
- function ni(e, t) {
811
+ function ns(e, t) {
812
812
  if (e.length !== t.length)
813
813
  return !1;
814
- for (var i = 0; i < e.length; i++)
815
- if (!ti(e[i], t[i]))
814
+ for (var n = 0; n < e.length; n++)
815
+ if (!ts(e[n], t[n]))
816
816
  return !1;
817
817
  return !0;
818
818
  }
819
819
  function K(e, t) {
820
- t === void 0 && (t = ni);
821
- var i, n = [], r, l = !1;
820
+ t === void 0 && (t = ns);
821
+ var n, s = [], i, l = !1;
822
822
  function c() {
823
823
  for (var m = [], u = 0; u < arguments.length; u++)
824
824
  m[u] = arguments[u];
825
- return l && i === this && t(m, n) || (r = e.apply(this, m), l = !0, i = this, n = m), r;
825
+ return l && n === this && t(m, s) || (i = e.apply(this, m), l = !0, n = this, s = m), i;
826
826
  }
827
827
  return c;
828
828
  }
829
- var ii = typeof performance == "object" && typeof performance.now == "function", Me = ii ? function() {
829
+ var ss = typeof performance == "object" && typeof performance.now == "function", Me = ss ? function() {
830
830
  return performance.now();
831
831
  } : function() {
832
832
  return Date.now();
@@ -834,41 +834,41 @@ var ii = typeof performance == "object" && typeof performance.now == "function",
834
834
  function ye(e) {
835
835
  cancelAnimationFrame(e.id);
836
836
  }
837
- function si(e, t) {
838
- var i = Me();
839
- function n() {
840
- Me() - i >= t ? e.call(null) : r.id = requestAnimationFrame(n);
837
+ function is(e, t) {
838
+ var n = Me();
839
+ function s() {
840
+ Me() - n >= t ? e.call(null) : i.id = requestAnimationFrame(s);
841
841
  }
842
- var r = {
843
- id: requestAnimationFrame(n)
842
+ var i = {
843
+ id: requestAnimationFrame(s)
844
844
  };
845
- return r;
845
+ return i;
846
846
  }
847
847
  var X = -1;
848
848
  function Ne(e) {
849
849
  if (e === void 0 && (e = !1), X === -1 || e) {
850
- var t = document.createElement("div"), i = t.style;
851
- i.width = "50px", i.height = "50px", i.overflow = "scroll", document.body.appendChild(t), X = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
850
+ var t = document.createElement("div"), n = t.style;
851
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), X = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
852
852
  }
853
853
  return X;
854
854
  }
855
855
  var E = null;
856
856
  function Te(e) {
857
857
  if (e === void 0 && (e = !1), E === null || e) {
858
- var t = document.createElement("div"), i = t.style;
859
- i.width = "50px", i.height = "50px", i.overflow = "scroll", i.direction = "rtl";
860
- var n = document.createElement("div"), r = n.style;
861
- return r.width = "100px", r.height = "100px", t.appendChild(n), document.body.appendChild(t), t.scrollLeft > 0 ? E = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? E = "negative" : E = "positive-ascending"), document.body.removeChild(t), E;
858
+ var t = document.createElement("div"), n = t.style;
859
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
860
+ var s = document.createElement("div"), i = s.style;
861
+ return i.width = "100px", i.height = "100px", t.appendChild(s), document.body.appendChild(t), t.scrollLeft > 0 ? E = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? E = "negative" : E = "positive-ascending"), document.body.removeChild(t), E;
862
862
  }
863
863
  return E;
864
864
  }
865
- var ri = 150, oi = function(t, i) {
865
+ var rs = 150, os = function(t, n) {
866
866
  return t;
867
867
  };
868
- function ai(e) {
869
- var t, i = e.getItemOffset, n = e.getEstimatedTotalSize, r = e.getItemSize, l = e.getOffsetForIndexAndAlignment, c = e.getStartIndexForOffset, m = e.getStopIndexForStartIndex, u = e.initInstanceProps, h = e.shouldResetStyleCacheOnItemSizeChange, N = e.validateProps;
868
+ function as(e) {
869
+ var t, n = e.getItemOffset, s = e.getEstimatedTotalSize, i = e.getItemSize, l = e.getOffsetForIndexAndAlignment, c = e.getStartIndexForOffset, m = e.getStopIndexForStartIndex, u = e.initInstanceProps, h = e.shouldResetStyleCacheOnItemSizeChange, N = e.validateProps;
870
870
  return t = /* @__PURE__ */ function(M) {
871
- ei(v, M);
871
+ es(v, M);
872
872
  function v(D) {
873
873
  var o;
874
874
  return o = M.call(this, D) || this, o._instanceProps = u(o.props, ge(o)), o._outerRef = void 0, o._resetIsScrollingTimeoutId = null, o.state = {
@@ -895,7 +895,7 @@ function ai(e) {
895
895
  if (y.hasOwnProperty(d))
896
896
  z = y[d];
897
897
  else {
898
- var A = i(o.props, d, o._instanceProps), O = r(o.props, d, o._instanceProps), k = I === "horizontal" || S === "horizontal", Y = I === "rtl", W = k ? A : 0;
898
+ var A = n(o.props, d, o._instanceProps), O = i(o.props, d, o._instanceProps), k = I === "horizontal" || S === "horizontal", Y = I === "rtl", W = k ? A : 0;
899
899
  y[d] = z = {
900
900
  position: "absolute",
901
901
  left: Y ? void 0 : W,
@@ -947,7 +947,7 @@ function ai(e) {
947
947
  var p = o.props.outerRef;
948
948
  o._outerRef = d, typeof p == "function" ? p(d) : p != null && typeof p == "object" && p.hasOwnProperty("current") && (p.current = d);
949
949
  }, o._resetIsScrollingDebounced = function() {
950
- o._resetIsScrollingTimeoutId !== null && ye(o._resetIsScrollingTimeoutId), o._resetIsScrollingTimeoutId = si(o._resetIsScrolling, ri);
950
+ o._resetIsScrollingTimeoutId !== null && ye(o._resetIsScrollingTimeoutId), o._resetIsScrollingTimeoutId = is(o._resetIsScrolling, rs);
951
951
  }, o._resetIsScrolling = function() {
952
952
  o._resetIsScrollingTimeoutId = null, o.setState({
953
953
  isScrolling: !1
@@ -957,7 +957,7 @@ function ai(e) {
957
957
  }, o;
958
958
  }
959
959
  v.getDerivedStateFromProps = function(o, d) {
960
- return li(o, d), N(o), null;
960
+ return ls(o, d), N(o), null;
961
961
  };
962
962
  var T = v.prototype;
963
963
  return T.scrollTo = function(o) {
@@ -1012,36 +1012,36 @@ function ai(e) {
1012
1012
  }, T.componentWillUnmount = function() {
1013
1013
  this._resetIsScrollingTimeoutId !== null && ye(this._resetIsScrollingTimeoutId);
1014
1014
  }, T.render = function() {
1015
- var o = this.props, d = o.children, p = o.className, I = o.direction, g = o.height, S = o.innerRef, y = o.innerElementType, z = o.innerTagName, A = o.itemCount, O = o.itemData, k = o.itemKey, Y = k === void 0 ? oi : k, W = o.layout, Ee = o.outerElementType, Re = o.outerTagName, Qe = o.style, Ue = o.useIsScrolling, Pe = o.width, se = this.state.isScrolling, G = I === "horizontal" || W === "horizontal", _e = G ? this._onScrollHorizontal : this._onScrollVertical, re = this._getRangeToRender(), qe = re[0], Ye = re[1], oe = [];
1015
+ var o = this.props, d = o.children, p = o.className, I = o.direction, g = o.height, S = o.innerRef, y = o.innerElementType, z = o.innerTagName, A = o.itemCount, O = o.itemData, k = o.itemKey, Y = k === void 0 ? os : k, W = o.layout, Re = o.outerElementType, Qe = o.outerTagName, Ue = o.style, Pe = o.useIsScrolling, _e = o.width, ie = this.state.isScrolling, G = I === "horizontal" || W === "horizontal", qe = G ? this._onScrollHorizontal : this._onScrollVertical, re = this._getRangeToRender(), Ye = re[0], We = re[1], oe = [];
1016
1016
  if (A > 0)
1017
- for (var Q = qe; Q <= Ye; Q++)
1017
+ for (var U = Ye; U <= We; U++)
1018
1018
  oe.push(Z(d, {
1019
1019
  data: O,
1020
- key: Y(Q, O),
1021
- index: Q,
1022
- isScrolling: Ue ? se : void 0,
1023
- style: this._getItemStyle(Q)
1020
+ key: Y(U, O),
1021
+ index: U,
1022
+ isScrolling: Pe ? ie : void 0,
1023
+ style: this._getItemStyle(U)
1024
1024
  }));
1025
- var ae = n(this.props, this._instanceProps);
1026
- return Z(Ee || Re || "div", {
1025
+ var ae = s(this.props, this._instanceProps);
1026
+ return Z(Re || Qe || "div", {
1027
1027
  className: p,
1028
- onScroll: _e,
1028
+ onScroll: qe,
1029
1029
  ref: this._outerRefSetter,
1030
1030
  style: te({
1031
1031
  position: "relative",
1032
1032
  height: g,
1033
- width: Pe,
1033
+ width: _e,
1034
1034
  overflow: "auto",
1035
1035
  WebkitOverflowScrolling: "touch",
1036
1036
  willChange: "transform",
1037
1037
  direction: I
1038
- }, Qe)
1038
+ }, Ue)
1039
1039
  }, Z(y || z || "div", {
1040
1040
  children: oe,
1041
1041
  ref: S,
1042
1042
  style: {
1043
1043
  height: G ? "100%" : ae,
1044
- pointerEvents: se ? "none" : void 0,
1044
+ pointerEvents: ie ? "none" : void 0,
1045
1045
  width: G ? ae : "100%"
1046
1046
  }
1047
1047
  }));
@@ -1064,7 +1064,7 @@ function ai(e) {
1064
1064
  var z = c(this.props, y, this._instanceProps), A = m(this.props, z, y, this._instanceProps), O = !g || S === "backward" ? Math.max(1, p) : 1, k = !g || S === "forward" ? Math.max(1, p) : 1;
1065
1065
  return [Math.max(0, z - O), Math.max(0, Math.min(d - 1, A + k)), z, A];
1066
1066
  }, v;
1067
- }(xe), t.defaultProps = {
1067
+ }(Oe), t.defaultProps = {
1068
1068
  direction: "ltr",
1069
1069
  itemData: void 0,
1070
1070
  layout: "vertical",
@@ -1072,24 +1072,24 @@ function ai(e) {
1072
1072
  useIsScrolling: !1
1073
1073
  }, t;
1074
1074
  }
1075
- var li = function(t, i) {
1076
- t.children, t.direction, t.height, t.layout, t.innerTagName, t.outerTagName, t.width, i.instance;
1077
- }, ci = /* @__PURE__ */ ai({
1078
- getItemOffset: function(t, i) {
1079
- var n = t.itemSize;
1080
- return i * n;
1075
+ var ls = function(t, n) {
1076
+ t.children, t.direction, t.height, t.layout, t.innerTagName, t.outerTagName, t.width, n.instance;
1077
+ }, cs = /* @__PURE__ */ as({
1078
+ getItemOffset: function(t, n) {
1079
+ var s = t.itemSize;
1080
+ return n * s;
1081
1081
  },
1082
- getItemSize: function(t, i) {
1083
- var n = t.itemSize;
1084
- return n;
1082
+ getItemSize: function(t, n) {
1083
+ var s = t.itemSize;
1084
+ return s;
1085
1085
  },
1086
1086
  getEstimatedTotalSize: function(t) {
1087
- var i = t.itemCount, n = t.itemSize;
1088
- return n * i;
1087
+ var n = t.itemCount, s = t.itemSize;
1088
+ return s * n;
1089
1089
  },
1090
- getOffsetForIndexAndAlignment: function(t, i, n, r, l, c) {
1091
- var m = t.direction, u = t.height, h = t.itemCount, N = t.itemSize, M = t.layout, v = t.width, T = m === "horizontal" || M === "horizontal", D = T ? v : u, o = Math.max(0, h * N - D), d = Math.min(o, i * N), p = Math.max(0, i * N - D + N + c);
1092
- switch (n === "smart" && (r >= p - D && r <= d + D ? n = "auto" : n = "center"), n) {
1090
+ getOffsetForIndexAndAlignment: function(t, n, s, i, l, c) {
1091
+ var m = t.direction, u = t.height, h = t.itemCount, N = t.itemSize, M = t.layout, v = t.width, T = m === "horizontal" || M === "horizontal", D = T ? v : u, o = Math.max(0, h * N - D), d = Math.min(o, n * N), p = Math.max(0, n * N - D + N + c);
1092
+ switch (s === "smart" && (i >= p - D && i <= d + D ? s = "auto" : s = "center"), s) {
1093
1093
  case "start":
1094
1094
  return d;
1095
1095
  case "end":
@@ -1100,18 +1100,18 @@ var li = function(t, i) {
1100
1100
  }
1101
1101
  case "auto":
1102
1102
  default:
1103
- return r >= p && r <= d ? r : r < p ? p : d;
1103
+ return i >= p && i <= d ? i : i < p ? p : d;
1104
1104
  }
1105
1105
  },
1106
- getStartIndexForOffset: function(t, i) {
1107
- var n = t.itemCount, r = t.itemSize;
1108
- return Math.max(0, Math.min(n - 1, Math.floor(i / r)));
1106
+ getStartIndexForOffset: function(t, n) {
1107
+ var s = t.itemCount, i = t.itemSize;
1108
+ return Math.max(0, Math.min(s - 1, Math.floor(n / i)));
1109
1109
  },
1110
- getStopIndexForStartIndex: function(t, i, n) {
1111
- var r = t.direction, l = t.height, c = t.itemCount, m = t.itemSize, u = t.layout, h = t.width, N = r === "horizontal" || u === "horizontal", M = i * m, v = N ? h : l, T = Math.ceil((v + n - M) / m);
1110
+ getStopIndexForStartIndex: function(t, n, s) {
1111
+ var i = t.direction, l = t.height, c = t.itemCount, m = t.itemSize, u = t.layout, h = t.width, N = i === "horizontal" || u === "horizontal", M = n * m, v = N ? h : l, T = Math.ceil((v + s - M) / m);
1112
1112
  return Math.max(0, Math.min(
1113
1113
  c - 1,
1114
- i + T - 1
1114
+ n + T - 1
1115
1115
  // -1 is because stop index is inclusive
1116
1116
  ));
1117
1117
  },
@@ -1122,22 +1122,22 @@ var li = function(t, i) {
1122
1122
  t.itemSize;
1123
1123
  }
1124
1124
  });
1125
- function di(e) {
1126
- var t = e.lastRenderedStartIndex, i = e.lastRenderedStopIndex, n = e.startIndex, r = e.stopIndex;
1127
- return !(n > i || r < t);
1125
+ function ds(e) {
1126
+ var t = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, s = e.startIndex, i = e.stopIndex;
1127
+ return !(s > n || i < t);
1128
1128
  }
1129
- function ui(e) {
1130
- for (var t = e.isItemLoaded, i = e.itemCount, n = e.minimumBatchSize, r = e.startIndex, l = e.stopIndex, c = [], m = null, u = null, h = r; h <= l; h++) {
1129
+ function us(e) {
1130
+ for (var t = e.isItemLoaded, n = e.itemCount, s = e.minimumBatchSize, i = e.startIndex, l = e.stopIndex, c = [], m = null, u = null, h = i; h <= l; h++) {
1131
1131
  var N = t(h);
1132
1132
  N ? u !== null && (c.push(m, u), m = u = null) : (u = h, m === null && (m = h));
1133
1133
  }
1134
1134
  if (u !== null) {
1135
- for (var M = Math.min(Math.max(u, m + n - 1), i - 1), v = u + 1; v <= M && !t(v); v++)
1135
+ for (var M = Math.min(Math.max(u, m + s - 1), n - 1), v = u + 1; v <= M && !t(v); v++)
1136
1136
  u = v;
1137
1137
  c.push(m, u);
1138
1138
  }
1139
1139
  if (c.length)
1140
- for (; c[1] - c[0] + 1 < n && c[0] > 0; ) {
1140
+ for (; c[1] - c[0] + 1 < s && c[0] > 0; ) {
1141
1141
  var T = c[0] - 1;
1142
1142
  if (!t(T))
1143
1143
  c[0] = T;
@@ -1146,20 +1146,20 @@ function ui(e) {
1146
1146
  }
1147
1147
  return c;
1148
1148
  }
1149
- var pi = function(e, t) {
1149
+ var ps = function(e, t) {
1150
1150
  if (!(e instanceof t))
1151
1151
  throw new TypeError("Cannot call a class as a function");
1152
- }, mi = function() {
1153
- function e(t, i) {
1154
- for (var n = 0; n < i.length; n++) {
1155
- var r = i[n];
1156
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1152
+ }, ms = function() {
1153
+ function e(t, n) {
1154
+ for (var s = 0; s < n.length; s++) {
1155
+ var i = n[s];
1156
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
1157
1157
  }
1158
1158
  }
1159
- return function(t, i, n) {
1160
- return i && e(t.prototype, i), n && e(t, n), t;
1159
+ return function(t, n, s) {
1160
+ return n && e(t.prototype, n), s && e(t, s), t;
1161
1161
  };
1162
- }(), hi = function(e, t) {
1162
+ }(), hs = function(e, t) {
1163
1163
  if (typeof t != "function" && t !== null)
1164
1164
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
1165
1165
  e.prototype = Object.create(t && t.prototype, {
@@ -1174,25 +1174,25 @@ var pi = function(e, t) {
1174
1174
  if (!e)
1175
1175
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1176
1176
  return t && (typeof t == "object" || typeof t == "function") ? t : e;
1177
- }, Ii = function(e) {
1178
- hi(t, e);
1177
+ }, Is = function(e) {
1178
+ hs(t, e);
1179
1179
  function t() {
1180
- var i, n, r, l;
1181
- pi(this, t);
1180
+ var n, s, i, l;
1181
+ ps(this, t);
1182
1182
  for (var c = arguments.length, m = Array(c), u = 0; u < c; u++)
1183
1183
  m[u] = arguments[u];
1184
- return l = (n = (r = Ae(this, (i = t.__proto__ || Object.getPrototypeOf(t)).call.apply(i, [this].concat(m))), r), r._lastRenderedStartIndex = -1, r._lastRenderedStopIndex = -1, r._memoizedUnloadedRanges = [], r._onItemsRendered = function(h) {
1184
+ return l = (s = (i = Ae(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(m))), i), i._lastRenderedStartIndex = -1, i._lastRenderedStopIndex = -1, i._memoizedUnloadedRanges = [], i._onItemsRendered = function(h) {
1185
1185
  var N = h.visibleStartIndex, M = h.visibleStopIndex;
1186
- r._lastRenderedStartIndex = N, r._lastRenderedStopIndex = M, r._ensureRowsLoaded(N, M);
1187
- }, r._setRef = function(h) {
1188
- r._listRef = h;
1189
- }, n), Ae(r, l);
1186
+ i._lastRenderedStartIndex = N, i._lastRenderedStopIndex = M, i._ensureRowsLoaded(N, M);
1187
+ }, i._setRef = function(h) {
1188
+ i._listRef = h;
1189
+ }, s), Ae(i, l);
1190
1190
  }
1191
- return mi(t, [{
1191
+ return ms(t, [{
1192
1192
  key: "resetloadMoreItemsCache",
1193
1193
  value: function() {
1194
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1195
- this._memoizedUnloadedRanges = [], n && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
1194
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1195
+ this._memoizedUnloadedRanges = [], s && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
1196
1196
  }
1197
1197
  }, {
1198
1198
  key: "componentDidMount",
@@ -1201,21 +1201,21 @@ var pi = function(e, t) {
1201
1201
  }, {
1202
1202
  key: "render",
1203
1203
  value: function() {
1204
- var n = this.props.children;
1205
- return n({
1204
+ var s = this.props.children;
1205
+ return s({
1206
1206
  onItemsRendered: this._onItemsRendered,
1207
1207
  ref: this._setRef
1208
1208
  });
1209
1209
  }
1210
1210
  }, {
1211
1211
  key: "_ensureRowsLoaded",
1212
- value: function(n, r) {
1213
- var l = this.props, c = l.isItemLoaded, m = l.itemCount, u = l.minimumBatchSize, h = u === void 0 ? 10 : u, N = l.threshold, M = N === void 0 ? 15 : N, v = ui({
1212
+ value: function(s, i) {
1213
+ var l = this.props, c = l.isItemLoaded, m = l.itemCount, u = l.minimumBatchSize, h = u === void 0 ? 10 : u, N = l.threshold, M = N === void 0 ? 15 : N, v = us({
1214
1214
  isItemLoaded: c,
1215
1215
  itemCount: m,
1216
1216
  minimumBatchSize: h,
1217
- startIndex: Math.max(0, n - M),
1218
- stopIndex: Math.min(m - 1, r + M)
1217
+ startIndex: Math.max(0, s - M),
1218
+ stopIndex: Math.min(m - 1, i + M)
1219
1219
  });
1220
1220
  (this._memoizedUnloadedRanges.length !== v.length || this._memoizedUnloadedRanges.some(function(T, D) {
1221
1221
  return v[D] !== T;
@@ -1223,106 +1223,106 @@ var pi = function(e, t) {
1223
1223
  }
1224
1224
  }, {
1225
1225
  key: "_loadUnloadedRanges",
1226
- value: function(n) {
1227
- for (var r = this, l = this.props.loadMoreItems || this.props.loadMoreRows, c = function(h) {
1228
- var N = n[h], M = n[h + 1], v = l(N, M);
1226
+ value: function(s) {
1227
+ for (var i = this, l = this.props.loadMoreItems || this.props.loadMoreRows, c = function(h) {
1228
+ var N = s[h], M = s[h + 1], v = l(N, M);
1229
1229
  v != null && v.then(function() {
1230
- if (di({
1231
- lastRenderedStartIndex: r._lastRenderedStartIndex,
1232
- lastRenderedStopIndex: r._lastRenderedStopIndex,
1230
+ if (ds({
1231
+ lastRenderedStartIndex: i._lastRenderedStartIndex,
1232
+ lastRenderedStopIndex: i._lastRenderedStopIndex,
1233
1233
  startIndex: N,
1234
1234
  stopIndex: M
1235
1235
  })) {
1236
- if (r._listRef == null)
1236
+ if (i._listRef == null)
1237
1237
  return;
1238
- typeof r._listRef.resetAfterIndex == "function" ? r._listRef.resetAfterIndex(N, !0) : (typeof r._listRef._getItemStyleCache == "function" && r._listRef._getItemStyleCache(-1), r._listRef.forceUpdate());
1238
+ typeof i._listRef.resetAfterIndex == "function" ? i._listRef.resetAfterIndex(N, !0) : (typeof i._listRef._getItemStyleCache == "function" && i._listRef._getItemStyleCache(-1), i._listRef.forceUpdate());
1239
1239
  }
1240
1240
  });
1241
- }, m = 0; m < n.length; m += 2)
1241
+ }, m = 0; m < s.length; m += 2)
1242
1242
  c(m);
1243
1243
  }
1244
1244
  }]), t;
1245
- }(xe);
1246
- const fi = /* @__PURE__ */ a("div")({
1245
+ }(Oe);
1246
+ const fs = /* @__PURE__ */ a("div")({
1247
1247
  name: "Container",
1248
1248
  class: "culdu4a",
1249
1249
  propsAsIs: !1
1250
- }), gi = /* @__PURE__ */ a("div")({
1250
+ }), gs = /* @__PURE__ */ a("div")({
1251
1251
  name: "Position",
1252
1252
  class: "pwf8e69",
1253
1253
  propsAsIs: !1
1254
- }), vi = /* @__PURE__ */ a("img")({
1254
+ }), vs = /* @__PURE__ */ a("img")({
1255
1255
  name: "Avatar",
1256
1256
  class: "atf4yh4",
1257
1257
  propsAsIs: !1
1258
- }), Mi = /* @__PURE__ */ a("div")({
1258
+ }), Ms = /* @__PURE__ */ a("div")({
1259
1259
  name: "AvatarPlaceholder",
1260
1260
  class: "a1dg29ja",
1261
1261
  propsAsIs: !1
1262
- }), yi = /* @__PURE__ */ a("div")({
1262
+ }), ys = /* @__PURE__ */ a("div")({
1263
1263
  name: "Content",
1264
1264
  class: "c10a68rc",
1265
1265
  propsAsIs: !1
1266
- }), Ni = /* @__PURE__ */ a("div")({
1266
+ }), Ns = /* @__PURE__ */ a("div")({
1267
1267
  name: "NameContainer",
1268
1268
  class: "nc4kck5",
1269
1269
  propsAsIs: !1
1270
- }), Ti = /* @__PURE__ */ a("span")({
1270
+ }), Ts = /* @__PURE__ */ a("span")({
1271
1271
  name: "Name",
1272
1272
  class: "njsrqgr",
1273
1273
  propsAsIs: !1
1274
- }), Ai = () => j, Di = /* @__PURE__ */ a(Ai())({
1274
+ }), As = () => j, Ds = /* @__PURE__ */ a(As())({
1275
1275
  name: "CurrentUserBadge",
1276
1276
  class: "c17uc4zr",
1277
1277
  propsAsIs: !0
1278
- }), Si = ({
1278
+ }), Ss = ({
1279
1279
  rank: e,
1280
1280
  avatar: t,
1281
- name: i,
1282
- points: n,
1283
- isCurrentUser: r,
1281
+ name: n,
1282
+ points: s,
1283
+ isCurrentUser: i,
1284
1284
  openItemDetail: l,
1285
1285
  style: c
1286
- }) => /* @__PURE__ */ f(fi, { onClick: l, style: c, children: [
1287
- /* @__PURE__ */ s(gi, { children: e || 0 }),
1288
- /* @__PURE__ */ f(yi, { children: [
1289
- t ? /* @__PURE__ */ s(vi, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ s(Mi, { children: je(i || "") }),
1290
- /* @__PURE__ */ f(Ni, { children: [
1291
- /* @__PURE__ */ s(Ti, { children: i || "" }),
1292
- r && /* @__PURE__ */ s(Di, { name: "icon-star" })
1286
+ }) => /* @__PURE__ */ f(fs, { onClick: l, style: c, children: [
1287
+ /* @__PURE__ */ r(gs, { children: e || 0 }),
1288
+ /* @__PURE__ */ f(ys, { children: [
1289
+ t ? /* @__PURE__ */ r(vs, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ r(Ms, { children: ke(n || "") }),
1290
+ /* @__PURE__ */ f(Ns, { children: [
1291
+ /* @__PURE__ */ r(Ts, { children: n || "" }),
1292
+ i && /* @__PURE__ */ r(Ds, { name: "icon-star" })
1293
1293
  ] })
1294
1294
  ] }),
1295
- /* @__PURE__ */ s("div", { children: ke(n) })
1296
- ] }), zi = /* @__PURE__ */ a("div")({
1295
+ /* @__PURE__ */ r("div", { children: we(s) })
1296
+ ] }), zs = /* @__PURE__ */ a("div")({
1297
1297
  name: "ScrollContainer",
1298
1298
  class: "s13d8sg6",
1299
1299
  propsAsIs: !1
1300
- }), xi = ({
1300
+ }), xs = ({
1301
1301
  items: e,
1302
1302
  currentUserId: t,
1303
- openItemDetail: i,
1304
- fetchMore: n
1305
- }) => /* @__PURE__ */ s(Ve, { children: ({ width: r, height: l }) => /* @__PURE__ */ s(
1306
- Ii,
1303
+ openItemDetail: n,
1304
+ fetchMore: s
1305
+ }) => /* @__PURE__ */ r(Fe, { children: ({ width: i, height: l }) => /* @__PURE__ */ r(
1306
+ Is,
1307
1307
  {
1308
1308
  isItemLoaded: (c) => c < e.length,
1309
1309
  itemCount: e.length + 1,
1310
- loadMoreItems: n,
1311
- children: ({ onItemsRendered: c, ref: m }) => /* @__PURE__ */ s(zi, { children: /* @__PURE__ */ s(
1312
- ci,
1310
+ loadMoreItems: s,
1311
+ children: ({ onItemsRendered: c, ref: m }) => /* @__PURE__ */ r(zs, { children: /* @__PURE__ */ r(
1312
+ cs,
1313
1313
  {
1314
1314
  itemSize: 56,
1315
1315
  onItemsRendered: c,
1316
1316
  ref: m,
1317
1317
  itemCount: e.length,
1318
- width: r,
1318
+ width: i,
1319
1319
  height: l,
1320
- children: ({ index: u, style: h }) => /* @__PURE__ */ s(
1321
- Si,
1320
+ children: ({ index: u, style: h }) => /* @__PURE__ */ r(
1321
+ Ss,
1322
1322
  {
1323
1323
  style: { ...h, maxHeight: 48 },
1324
1324
  ...e[u],
1325
- openItemDetail: () => i(e[u].userId),
1325
+ openItemDetail: () => n(e[u].userId),
1326
1326
  isCurrentUser: !!t && t === e[u].userId
1327
1327
  },
1328
1328
  e[u].userId
@@ -1330,12 +1330,12 @@ const fi = /* @__PURE__ */ a("div")({
1330
1330
  }
1331
1331
  ) })
1332
1332
  }
1333
- ) }), Oi = ({ deepLink: e }) => {
1334
- const { data: t } = w(e.$store), i = t == null ? void 0 : t.url, n = e.desktopLink;
1335
- return /* @__PURE__ */ s(
1336
- Fe,
1333
+ ) }), Os = ({ deepLink: e }) => {
1334
+ const { data: t } = $(e.$store), n = t == null ? void 0 : t.url, s = e.desktopLink;
1335
+ return /* @__PURE__ */ r(
1336
+ Be,
1337
1337
  {
1338
- inviteLink: i || n,
1338
+ inviteLink: n || s,
1339
1339
  socialLinks: [
1340
1340
  {
1341
1341
  icon: "icon-facebook",
@@ -1352,129 +1352,136 @@ const fi = /* @__PURE__ */ a("div")({
1352
1352
  inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
1353
1353
  }
1354
1354
  );
1355
- }, ji = ({ gamification: e }) => {
1356
- const { data: t } = w(e.leaderboardList.$store);
1357
- return t != null && t.length ? /* @__PURE__ */ s(
1358
- xi,
1355
+ }, js = ({ gamification: e }) => {
1356
+ const { data: t } = $(e.leaderboardList.$store);
1357
+ return t != null && t.length ? /* @__PURE__ */ r(
1358
+ xs,
1359
1359
  {
1360
1360
  fetchMore: e.leaderboardList.fetchMore,
1361
1361
  items: t,
1362
1362
  openItemDetail: e.openUser,
1363
1363
  currentUserId: e.currentUserId.get()
1364
1364
  }
1365
- ) : /* @__PURE__ */ s(Oi, { deepLink: e.deepLink });
1366
- }, ki = /* @__PURE__ */ a("div")({
1365
+ ) : /* @__PURE__ */ r(Os, { deepLink: e.deepLink });
1366
+ }, ks = /* @__PURE__ */ a("div")({
1367
1367
  name: "QuestionItem",
1368
1368
  class: "q1w97g3p",
1369
1369
  propsAsIs: !1
1370
- }), wi = /* @__PURE__ */ a("div")({
1370
+ }), ws = /* @__PURE__ */ a("div")({
1371
1371
  name: "QuestionCaption",
1372
1372
  class: "q2sl39u",
1373
1373
  propsAsIs: !1
1374
- }), Ci = /* @__PURE__ */ a("div")({
1374
+ }), Cs = /* @__PURE__ */ a("div")({
1375
1375
  name: "QuestionBody",
1376
1376
  class: "qd5h0uc",
1377
1377
  propsAsIs: !1
1378
- }), $i = /* @__PURE__ */ a("div")({
1378
+ }), bs = /* @__PURE__ */ a("div")({
1379
1379
  name: "QuestionAction",
1380
1380
  class: "q105uluy",
1381
1381
  propsAsIs: !1
1382
- }), Li = () => j, B = /* @__PURE__ */ a(Li())({
1382
+ }), Ls = () => j, B = /* @__PURE__ */ a(Ls())({
1383
1383
  name: "QuestionActionIcon",
1384
1384
  class: "q1fa0b9h",
1385
1385
  propsAsIs: !0
1386
- }), bi = () => j, Ei = /* @__PURE__ */ a(bi())({
1386
+ }), $s = () => j, Es = /* @__PURE__ */ a($s())({
1387
1387
  name: "QuestionTypeIcon",
1388
1388
  class: "qxlt78s",
1389
1389
  propsAsIs: !0
1390
- }), Ri = /* @__PURE__ */ a("div")({
1390
+ }), Rs = /* @__PURE__ */ a("div")({
1391
1391
  name: "QuestionTypeLabel",
1392
1392
  class: "qmg0vkx",
1393
1393
  propsAsIs: !1
1394
- }), Qi = /* @__PURE__ */ a("div")({
1394
+ }), Qs = /* @__PURE__ */ a("div")({
1395
1395
  name: "QuestionContent",
1396
1396
  class: "q1uz5j1g",
1397
1397
  propsAsIs: !1
1398
- }), Ui = /* @__PURE__ */ a("button")({
1398
+ }), Us = /* @__PURE__ */ a("button")({
1399
1399
  name: "PlayButton",
1400
1400
  class: "p1pba9p1",
1401
1401
  propsAsIs: !1
1402
- }), Pi = {
1403
- [V.LOST]: /* @__PURE__ */ s(B, { name: "incorrectVoted" }),
1404
- [V.WON]: /* @__PURE__ */ s(B, { name: "icon-check" }),
1405
- [V.UNSET]: /* @__PURE__ */ s(B, { name: "icon-arrow" }),
1406
- [V.DNP]: /* @__PURE__ */ s(B, { name: "icon-arrow" })
1407
- }, _i = ({
1402
+ }), Ps = {
1403
+ [V.LOST]: /* @__PURE__ */ r(B, { name: "incorrectVoted" }),
1404
+ [V.WON]: /* @__PURE__ */ r(B, { name: "icon-check" }),
1405
+ [V.UNSET]: /* @__PURE__ */ r(B, { name: "icon-arrow" }),
1406
+ [V.DNP]: /* @__PURE__ */ r(B, { name: "icon-arrow" })
1407
+ }, _s = ({
1408
1408
  questionId: e,
1409
1409
  questionType: t,
1410
- questionStatus: i,
1411
- subject: n,
1412
- openForVoting: r,
1410
+ questionStatus: n,
1411
+ subject: s,
1412
+ openForVoting: i,
1413
1413
  openQuestion: l,
1414
1414
  status: c
1415
1415
  }) => {
1416
- const m = Se[t], u = Pi[c];
1417
- return m ? /* @__PURE__ */ f(ki, { onClick: () => l == null ? void 0 : l(e), children: [
1418
- /* @__PURE__ */ f(Qi, { children: [
1419
- /* @__PURE__ */ f(wi, { children: [
1420
- /* @__PURE__ */ s(
1421
- Ei,
1416
+ const m = Se[t], u = Ps[c];
1417
+ return m ? /* @__PURE__ */ f(ks, { onClick: () => l == null ? void 0 : l(e), children: [
1418
+ /* @__PURE__ */ f(Qs, { children: [
1419
+ /* @__PURE__ */ f(ws, { children: [
1420
+ /* @__PURE__ */ r(
1421
+ Es,
1422
1422
  {
1423
1423
  "data-type-trivia": t === x.TRIVIA,
1424
1424
  "data-type-poll": t === x.POLL,
1425
1425
  name: m.iconName
1426
1426
  }
1427
1427
  ),
1428
- /* @__PURE__ */ f(Ri, { children: [
1428
+ /* @__PURE__ */ f(Rs, { children: [
1429
1429
  m.label,
1430
- t === x.TRIVIA && i === b.RESOLVED && " • Expired"
1430
+ t === x.TRIVIA && n === L.RESOLVED && " • Expired"
1431
1431
  ] })
1432
1432
  ] }),
1433
- /* @__PURE__ */ s(Ci, { children: n || "" })
1433
+ /* @__PURE__ */ r(Cs, { children: s || "" })
1434
1434
  ] }),
1435
- /* @__PURE__ */ s($i, { children: r ? /* @__PURE__ */ s(Ui, { children: "Play" }) : u })
1435
+ /* @__PURE__ */ r(bs, { children: i ? /* @__PURE__ */ r(Us, { children: "Play" }) : u })
1436
1436
  ] }) : null;
1437
- }, qi = /* @__PURE__ */ a("div")({
1437
+ }, qs = /* @__PURE__ */ a("div")({
1438
1438
  name: "Container",
1439
1439
  class: "cll3md7",
1440
1440
  propsAsIs: !1
1441
- }), Yi = /* @__PURE__ */ a("button")({
1441
+ }), Ys = /* @__PURE__ */ a("button")({
1442
1442
  name: "ActionBtn",
1443
1443
  class: "a10g1iik",
1444
1444
  propsAsIs: !1
1445
- }), Wi = ({
1445
+ }), Ws = ({
1446
1446
  openInsight: e,
1447
1447
  questionId: t,
1448
- ...i
1449
- }) => /* @__PURE__ */ f(qi, { children: [
1450
- /* @__PURE__ */ s(be, { questionId: t, ...i }),
1451
- e && /* @__PURE__ */ s(Yi, { onClick: () => e(t), children: "View Insight" })
1452
- ] }), Vi = /* @__PURE__ */ a("div")({
1448
+ ...n
1449
+ }) => /* @__PURE__ */ f(qs, { children: [
1450
+ /* @__PURE__ */ r(Ee, { questionId: t, ...n }),
1451
+ e && /* @__PURE__ */ r(Ys, { onClick: () => e(t), children: "View Insight" })
1452
+ ] }), Vs = /* @__PURE__ */ a("div")({
1453
1453
  name: "QuestionsContainer",
1454
1454
  class: "qvghv3l",
1455
1455
  propsAsIs: !1
1456
- }), Fi = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ s(Vi, { children: e == null ? void 0 : e.map((i) => {
1457
- var n, r;
1458
- if (i.type === "question" && ((n = i.attributes) == null ? void 0 : n.attributes.case) === "question") {
1459
- const l = i.attributes.attributes.value;
1460
- return /* @__PURE__ */ s(_i, { openQuestion: t, ...l }, l.questionId);
1456
+ }), Fs = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ r(Vs, { children: e == null ? void 0 : e.map((n) => {
1457
+ var s, i;
1458
+ if (n.type === "question" && ((s = n.attributes) == null ? void 0 : s.attributes.case) === "question") {
1459
+ const l = n.attributes.attributes.value;
1460
+ return /* @__PURE__ */ r(_s, { openQuestion: t, ...l }, l.questionId);
1461
1461
  }
1462
- if (i.type === "insight" && ((r = i.attributes) == null ? void 0 : r.attributes.case) === "insight") {
1463
- const l = i.attributes.attributes.value;
1464
- return /* @__PURE__ */ s(Wi, { openInsight: t, ...l }, l.questionId);
1462
+ if (n.type === "insight" && ((i = n.attributes) == null ? void 0 : i.attributes.case) === "insight") {
1463
+ const l = n.attributes.attributes.value;
1464
+ return /* @__PURE__ */ r(Ws, { openInsight: t, ...l }, l.questionId);
1465
1465
  }
1466
1466
  return null;
1467
- }) }), Bi = ({ store: e, openQuestion: t }) => {
1468
- const i = w(e);
1469
- return i != null && i.data ? /* @__PURE__ */ s(Fi, { openQuestion: t, questions: i.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
1470
- }, Hi = ({ userSummary: e }) => {
1471
- var t, i;
1472
- const n = w(e.getStore());
1473
- return (t = n.data) != null && t.summary ? /* @__PURE__ */ s(we, { ...n.data.summary, successRate: (i = n.data.percentage) == null ? void 0 : i.correct }) : /* @__PURE__ */ s("div", { children: "wait user..." });
1474
- }, Gi = ({
1467
+ }) }), Bs = ({ store: e, openQuestion: t }) => {
1468
+ const n = $(e);
1469
+ return n != null && n.data ? /* @__PURE__ */ r(Fs, { openQuestion: t, questions: n.data }) : /* @__PURE__ */ r("div", { children: "wait questions..." });
1470
+ }, Hs = ({ userSummary: e }) => {
1471
+ var t;
1472
+ const [n, s] = Q(void 0);
1473
+ return xe(() => {
1474
+ const i = e.subscribe((l) => {
1475
+ l != null && l.data && s(l.data);
1476
+ });
1477
+ return () => {
1478
+ i();
1479
+ };
1480
+ }, [e]), n != null && n.summary ? /* @__PURE__ */ r(Ce, { ...n.summary, successRate: (t = n.percentage) == null ? void 0 : t.correct }) : /* @__PURE__ */ r("div", { children: "wait user..." });
1481
+ }, Gs = ({
1475
1482
  gamification: e
1476
1483
  }) => {
1477
- const [t, i] = _(H.HOME);
1484
+ const [t, n] = Q(H.HOME);
1478
1485
  return /* @__PURE__ */ f("div", {
1479
1486
  style: {
1480
1487
  height: "100%",
@@ -1482,82 +1489,82 @@ const fi = /* @__PURE__ */ a("div")({
1482
1489
  flexDirection: "column",
1483
1490
  overflow: "hidden"
1484
1491
  },
1485
- children: [/* @__PURE__ */ s(ee, {
1492
+ children: [/* @__PURE__ */ r(ee, {
1486
1493
  style: {
1487
1494
  paddingBottom: "4px"
1488
1495
  },
1489
- children: /* @__PURE__ */ s(Xn, {
1496
+ children: /* @__PURE__ */ r(Xn, {
1490
1497
  activePage: t,
1491
- toggleActivePage: i
1498
+ toggleActivePage: n
1492
1499
  })
1493
- }), t === H.HOME && /* @__PURE__ */ f(ie, {
1494
- children: [/* @__PURE__ */ s(ee, {
1500
+ }), t === H.HOME && /* @__PURE__ */ f(se, {
1501
+ children: [/* @__PURE__ */ r(ee, {
1495
1502
  style: {
1496
1503
  paddingTop: "12px"
1497
1504
  },
1498
- children: /* @__PURE__ */ s(Hi, {
1505
+ children: /* @__PURE__ */ r(Hs, {
1499
1506
  userSummary: e.userSummary
1500
1507
  })
1501
- }), /* @__PURE__ */ s(Be, {
1502
- children: /* @__PURE__ */ s(Bi, {
1508
+ }), /* @__PURE__ */ r(He, {
1509
+ children: /* @__PURE__ */ r(Bs, {
1503
1510
  openQuestion: e.openQuestion,
1504
1511
  store: e.feedList.getStore()
1505
1512
  })
1506
1513
  })]
1507
- }), t === H.LEADERBOARD && /* @__PURE__ */ s("div", {
1514
+ }), t === H.LEADERBOARD && /* @__PURE__ */ r("div", {
1508
1515
  className: "c1bp9dj2",
1509
- children: /* @__PURE__ */ s(ji, {
1516
+ children: /* @__PURE__ */ r(js, {
1510
1517
  gamification: e
1511
1518
  })
1512
1519
  })]
1513
1520
  });
1514
- }, Zi = () => He, De = /* @__PURE__ */ a(Zi())({
1521
+ }, Zs = () => Ge, De = /* @__PURE__ */ a(Zs())({
1515
1522
  name: "OpenedContainer",
1516
1523
  class: "oar61gl",
1517
1524
  propsAsIs: !0
1518
- }), Ji = /* @__PURE__ */ a("div")({
1525
+ }), Js = /* @__PURE__ */ a("div")({
1519
1526
  name: "UserContainer",
1520
1527
  class: "u14zaal4",
1521
1528
  propsAsIs: !1
1522
- }), Ki = ({
1529
+ }), Ks = ({
1523
1530
  correct: e,
1524
1531
  incorrect: t
1525
1532
  }) => {
1526
- const i = e + t;
1527
- return i === 0 ? 0 : Math.round(e / i * 100);
1528
- }, ns = ({
1533
+ const n = e + t;
1534
+ return n === 0 ? 0 : Math.round(e / n * 100);
1535
+ }, ni = ({
1529
1536
  gamification: e,
1530
1537
  className: t
1531
1538
  }) => {
1532
- const i = w(e.openedQuestion.$store), n = w(e.openedUser);
1539
+ const n = $(e.openedQuestion.$store), s = $(e.openedUser);
1533
1540
  return /* @__PURE__ */ f(R, {
1534
- children: [i && /* @__PURE__ */ s(De, {
1541
+ children: [n && /* @__PURE__ */ r(De, {
1535
1542
  className: t,
1536
- children: /* @__PURE__ */ s(Hn, {
1543
+ children: /* @__PURE__ */ r(Hn, {
1537
1544
  gamification: e
1538
1545
  })
1539
- }), n && /* @__PURE__ */ s(De, {
1546
+ }), s && /* @__PURE__ */ r(De, {
1540
1547
  className: t,
1541
- children: /* @__PURE__ */ f(Ji, {
1542
- children: [/* @__PURE__ */ s(Oe, {
1548
+ children: /* @__PURE__ */ f(Js, {
1549
+ children: [/* @__PURE__ */ r(je, {
1543
1550
  label: "Friend's Rank",
1544
1551
  close: e.closeUser
1545
- }), /* @__PURE__ */ s(ee, {
1546
- children: /* @__PURE__ */ s(we, {
1547
- ...n,
1548
- successRate: Ki(n)
1552
+ }), /* @__PURE__ */ r(ee, {
1553
+ children: /* @__PURE__ */ r(Ce, {
1554
+ ...s,
1555
+ successRate: Ks(s)
1549
1556
  })
1550
1557
  })]
1551
1558
  })
1552
- }), /* @__PURE__ */ s(ie, {
1559
+ }), /* @__PURE__ */ r(se, {
1553
1560
  className: t,
1554
1561
  "data-nav": "true",
1555
- children: /* @__PURE__ */ s(Gi, {
1562
+ children: /* @__PURE__ */ r(Gs, {
1556
1563
  gamification: e
1557
1564
  })
1558
1565
  })]
1559
1566
  });
1560
1567
  };
1561
1568
  export {
1562
- ns as default
1569
+ ni as default
1563
1570
  };