@streamlayer/react 0.31.7 → 0.31.9

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.
@@ -25,19 +25,19 @@ const Je = /* @__PURE__ */ a("div")({
25
25
  name: "CloseIcon",
26
26
  class: "cvsl7l3",
27
27
  propsAsIs: !0
28
- }), xe = ({ type: e, close: t, label: n }) => {
29
- const i = e ? Se[e] : { label: n, iconName: void 0 };
28
+ }), xe = ({ type: e, close: t, label: i }) => {
29
+ const n = e ? Se[e] : { label: i, iconName: void 0 };
30
30
  return /* @__PURE__ */ f(Je, { children: [
31
31
  /* @__PURE__ */ f(Ke, { children: [
32
- (i == null ? void 0 : i.iconName) && /* @__PURE__ */ r(
32
+ (n == null ? void 0 : n.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: i.iconName
37
+ name: n.iconName
38
38
  }
39
39
  ),
40
- (i == null ? void 0 : i.label) && /* @__PURE__ */ r(tt, { children: i.label })
40
+ (n == null ? void 0 : n.label) && /* @__PURE__ */ r(tt, { children: n.label })
41
41
  ] }),
42
42
  /* @__PURE__ */ r(nt, { onClick: t, children: /* @__PURE__ */ r(st, { name: "icon-cross" }) })
43
43
  ] });
@@ -149,8 +149,8 @@ const Je = /* @__PURE__ */ a("div")({
149
149
  }), wt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY5MTk3IDQuNjY2NjJDMy42OTE5NyA1Ljk5NzA1IDMuOTI5MTQgNy4xNzc4NyA0LjQwMzUgOC4yMDkxMkMzLjQ5OTY2IDguMDI0NTEgMi43NDQ4NyA3LjY2NDg2IDIuMTM5MSA3LjEzMDE0QzEuNTMzMzMgNi41OTU0MiAxLjIzMDQ2IDYuMDc5OCAxLjIzMDQ2IDUuNTgzMjhWNC42NjY2MkgzLjY5MTk3Wk0xNC43Njg2IDQuNjY2NjJWNS41ODMyOEMxNC43Njg2IDYuMDc5OCAxNC40NjU4IDYuNTk1NDIgMTMuODYgNy4xMzAxNEMxMy4yNTQyIDcuNjY0ODYgMTIuNDk5NCA4LjAyNDUxIDExLjU5NTYgOC4yMDkxMkMxMi4wNjk5IDcuMTc3ODcgMTIuMzA3MSA1Ljk5NzA1IDEyLjMwNzEgNC42NjY2MkgxNC43Njg2Wk0xNS45OTk4IDUuNTgzMjlWNC4zNjEwOEMxNS45OTk4IDQuMTA2NDUgMTUuOTEwMSAzLjg5MDAyIDE1LjczMDYgMy43MTE3OEMxNS41NTExIDMuNTMzNTQgMTUuMzMzMiAzLjQ0NDQyIDE1LjA3NjggMy40NDQ0MkgxMi4zMDc2VjIuNTI3NzZDMTIuMzA3NiAyLjEwNzYzIDEyLjE1NjkgMS43NDc5NyAxMS44NTU2IDEuNDQ4NzhDMTEuNTU0NCAxLjE0OTU5IDExLjE5MjIgMSAxMC43NjkxIDFINS4yMzA3MkM0LjgwNzY0IDEgNC40NDU0NyAxLjE0OTU5IDQuMTQ0MTkgMS40NDg3OEMzLjg0MjkxIDEuNzQ3OTcgMy42OTIyNyAyLjEwNzYzIDMuNjkyMjcgMi41Mjc3NlYzLjQ0NDQySDAuOTIzMDY4QzAuNjY2NjU5IDMuNDQ0NDIgMC40NDg3MTQgMy41MzM1NCAwLjI2OTIyOCAzLjcxMTc4QzAuMDg5NzQxOCAzLjg5MDAyIDAgNC4xMDY0NSAwIDQuMzYxMDhWNS41ODMyOUMwIDYuMDM1MjUgMC4xMzMwMSA2LjQ5MDM5IDAuMzk5MDM0IDYuOTQ4NzJDMC42NjUwNTkgNy40MDcwNSAxLjAyNDAzIDcuODIwODIgMS40NzU5NSA4LjE5MDAzQzEuOTI3ODcgOC41NTkyNCAyLjQ4MjM0IDguODY5NTcgMy4xMzkzOSA5LjEyMTAxQzMuNzk2NDQgOS4zNzI0NiA0LjQ4NzEzIDkuNTE0MDkgNS4yMTE0OSA5LjU0NTkyQzUuNDgwNzEgOS44ODk2NyA1Ljc4NTIgMTAuMTkyIDYuMTI0OTQgMTAuNDUzQzYuMzY4NTMgMTAuNjY5NSA2LjUzNjc5IDEwLjkwMDIgNi42Mjk3NCAxMS4xNDUzQzYuNzIyNjkgMTEuMzkwNCA2Ljc2OTE2IDExLjY3NTIgNi43NjkxNiAxMS45OTk5QzYuNzY5MTYgMTIuMzQzNiA2LjY3MTQxIDEyLjYzMzMgNi40NzU5IDEyLjg2ODhDNi4yODAzOCAxMy4xMDQzIDUuOTY3ODkgMTMuMjIyMSA1LjUzODQxIDEzLjIyMjFDNS4wNTc2NCAxMy4yMjIxIDQuNjI5NzYgMTMuMzY2OSA0LjI1NDc2IDEzLjY1NjZDMy44Nzk3NyAxMy45NDYyIDMuNjkyMjcgMTQuMzEwNiAzLjY5MjI3IDE0Ljc0OTlWMTUuMzYxQzMuNjkyMjcgMTUuNDUwMSAzLjcyMTEyIDE1LjUyMzMgMy43Nzg4MSAxNS41ODA2QzMuODM2NSAxNS42Mzc5IDMuOTEwMjIgMTUuNjY2NSAzLjk5OTk2IDE1LjY2NjVIMTEuOTk5OUMxMi4wODk2IDE1LjY2NjUgMTIuMTYzMyAxNS42Mzc5IDEyLjIyMSAxNS41ODA2QzEyLjI3ODcgMTUuNTIzMyAxMi4zMDc2IDE1LjQ1MDEgMTIuMzA3NiAxNS4zNjFWMTQuNzQ5OUMxMi4zMDc2IDE0LjMxMDYgMTIuMTIwMSAxMy45NDYyIDExLjc0NTEgMTMuNjU2NkMxMS4zNzAxIDEzLjM2NjkgMTAuOTQyMiAxMy4yMjIxIDEwLjQ2MTQgMTMuMjIyMUMxMC4wMzE5IDEzLjIyMjEgOS43MTk0NSAxMy4xMDQzIDkuNTIzOTQgMTIuODY4OEM5LjMyODQzIDEyLjYzMzMgOS4yMzA2OCAxMi4zNDM2IDkuMjMwNjggMTEuOTk5OUM5LjIzMDY4IDExLjY3NTIgOS4yNzcxNSAxMS4zOTA0IDkuMzcwMSAxMS4xNDUzQzkuNDYzMDUgMTAuOTAwMiA5LjYzMTMxIDEwLjY2OTUgOS44NzQ5IDEwLjQ1M0MxMC4yMTQ2IDEwLjE5MiAxMC41MTkxIDkuODg5NjcgMTAuNzg4NCA5LjU0NTkyQzExLjUxMjcgOS41MTQwOSAxMi4yMDM0IDkuMzcyNDYgMTIuODYwNCA5LjEyMTAxQzEzLjUxNzUgOC44Njk1NyAxNC4wNzIgOC41NTkyNCAxNC41MjM5IDguMTkwMDNDMTQuOTc1OCA3LjgyMDgyIDE1LjMzNDggNy40MDcwNSAxNS42MDA4IDYuOTQ4NzJDMTUuODY2OCA2LjQ5MDM5IDE1Ljk5OTggNi4wMzUyNSAxNS45OTk4IDUuNTgzMjlaTTYuNzYwNDcgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=", ke = ({
150
150
  avatar: e,
151
151
  name: t,
152
- points: n,
153
- friendsRank: i,
152
+ points: i,
153
+ friendsRank: n,
154
154
  rank: s,
155
155
  streak: c,
156
156
  correct: l,
@@ -169,7 +169,7 @@ const Je = /* @__PURE__ */ a("div")({
169
169
  /* @__PURE__ */ f(At, { children: [
170
170
  /* @__PURE__ */ r(Tt, { alt: "rank-icon", src: wt }),
171
171
  /* @__PURE__ */ f(Dt, { children: [
172
- Oe(n),
172
+ Oe(i),
173
173
  /* @__PURE__ */ r(St, { children: "PTS" })
174
174
  ] })
175
175
  ] }),
@@ -184,7 +184,7 @@ const Je = /* @__PURE__ */ a("div")({
184
184
  ] }) }),
185
185
  /* @__PURE__ */ f(ft, { children: [
186
186
  /* @__PURE__ */ f(xt, { children: [
187
- /* @__PURE__ */ r(le, { indicator: i || 0, title: "Friends rank" }),
187
+ /* @__PURE__ */ r(le, { indicator: n || 0, title: "Friends rank" }),
188
188
  /* @__PURE__ */ r(le, { indicator: s || 0, title: "Global rank" })
189
189
  ] }),
190
190
  /* @__PURE__ */ f(jt, { children: [
@@ -241,17 +241,17 @@ const Je = /* @__PURE__ */ a("div")({
241
241
  }), _t = ({
242
242
  feedbackMessages: e,
243
243
  questionVotedCorrectly: t,
244
- questionVoted: n,
245
- questionType: i,
244
+ questionVoted: i,
245
+ questionType: n,
246
246
  hasCorrectAnswer: s,
247
247
  questionStatus: c
248
248
  }) => {
249
- const l = n && (i === x.TRIVIA || i === x.PREDICTION);
249
+ const l = i && (n === x.TRIVIA || n === x.PREDICTION);
250
250
  if (!l && c !== U.RESOLVED)
251
251
  return null;
252
- const m = i === x.PREDICTION && !s, d = t ? "correct" : "incorrect", h = t ? e.correctFeedback : e.incorrectFeedback;
252
+ const m = n === x.PREDICTION && !s, d = t ? "correct" : "incorrect", h = t ? e.correctFeedback : e.incorrectFeedback;
253
253
  return /* @__PURE__ */ f(Et, { "data-isPrediction": m, children: [
254
- c === U.RESOLVED && i === x.TRIVIA && !n && /* @__PURE__ */ f($, { children: [
254
+ c === U.RESOLVED && n === x.TRIVIA && !i && /* @__PURE__ */ f($, { children: [
255
255
  /* @__PURE__ */ r(ce, { children: /* @__PURE__ */ r(j, { name: "questionExpired" }) }),
256
256
  /* @__PURE__ */ f("div", { children: [
257
257
  /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(J, { children: "Question Expired" }) }),
@@ -340,28 +340,28 @@ const Je = /* @__PURE__ */ a("div")({
340
340
  [R.ROUNDED]: (e) => /* @__PURE__ */ r(en, { alt: "option-icon", src: e }),
341
341
  [R.NONE]: () => null,
342
342
  [R.UNSET]: () => null
343
- }, an = ({ questionType: e, hasCorrectAnswer: t, correct: n, youVoted: i, questionVoted: s }) => {
344
- if (e === x.POLL && i)
343
+ }, an = ({ questionType: e, hasCorrectAnswer: t, correct: i, youVoted: n, questionVoted: s }) => {
344
+ if (e === x.POLL && n)
345
345
  return "correct";
346
346
  if (e === x.PREDICTION) {
347
347
  if (t && s)
348
- return i ? n ? "correct" : "incorrect" : n ? "correct" : "unset";
349
- if (i)
348
+ return n ? i ? "correct" : "incorrect" : "unset";
349
+ if (n)
350
350
  return "correct";
351
351
  }
352
- return e === x.TRIVIA && s ? i ? n ? "correct" : "incorrect" : n ? "correct" : "unset" : "unset";
352
+ return e === x.TRIVIA && s && n ? i ? "correct" : "incorrect" : "unset";
353
353
  }, ln = ({
354
354
  questionType: e,
355
355
  questionVoted: t,
356
- correct: n,
357
- hasCorrectAnswer: i,
356
+ correct: i,
357
+ hasCorrectAnswer: n,
358
358
  questionStatus: s
359
- }) => e === x.TRIVIA ? t && n : e === x.PREDICTION ? t && n && i || s === U.RESOLVED && n : !1, cn = (e) => {
359
+ }) => e === x.TRIVIA ? t && i : e === x.PREDICTION ? t && i && n || s === U.RESOLVED && i : !1, cn = (e) => {
360
360
  var t;
361
361
  const {
362
362
  // option props
363
- id: n,
364
- icon: i,
363
+ id: i,
364
+ icon: n,
365
365
  text: s,
366
366
  percentageDecimal: c,
367
367
  // extra props
@@ -380,15 +380,16 @@ const Je = /* @__PURE__ */ a("div")({
380
380
  return /* @__PURE__ */ f(
381
381
  Ft,
382
382
  {
383
- value: n,
383
+ value: i,
384
384
  "data-selected": m,
385
385
  "data-answerState": u,
386
386
  disabled: d || g || T,
387
+ "data-isNotChecked": d && !m && u !== "incorrect",
387
388
  onClick: l,
388
389
  children: [
389
- I && /* @__PURE__ */ r(Bt, { "data-answerState": u, style: { width: `${c}%` } }),
390
+ /* @__PURE__ */ r(Bt, { "data-answerState": u, style: { width: `${I ? c : 0}%` } }),
390
391
  /* @__PURE__ */ f(Ht, { children: [
391
- i && h && ((t = ue[h]) == null ? void 0 : t.call(ue, i)),
392
+ n && h && ((t = ue[h]) == null ? void 0 : t.call(ue, n)),
392
393
  /* @__PURE__ */ r(tn, { children: s }),
393
394
  I && /* @__PURE__ */ f(nn, { children: [
394
395
  p && /* @__PURE__ */ r(on, { name: "selected" }),
@@ -399,8 +400,8 @@ const Je = /* @__PURE__ */ a("div")({
399
400
  }
400
401
  );
401
402
  };
402
- var pe = typeof window > "u" ? Ge : Ze, dn = ({ isPlaying: e, duration: t, startAt: n = 0, updateInterval: i = 0, onComplete: s, onUpdate: c }) => {
403
- let [l, m] = P(n), d = C(0), h = C(n), T = C(n * -1e3), M = C(null), g = C(null), A = C(null), D = (p) => {
403
+ var pe = typeof window > "u" ? Ge : Ze, dn = ({ isPlaying: e, duration: t, startAt: i = 0, updateInterval: n = 0, onComplete: s, onUpdate: c }) => {
404
+ let [l, m] = P(i), d = C(0), h = C(i), T = C(i * -1e3), M = C(null), g = C(null), A = C(null), D = (p) => {
404
405
  let I = p / 1e3;
405
406
  if (g.current === null) {
406
407
  g.current = I, M.current = requestAnimationFrame(D);
@@ -408,47 +409,47 @@ var pe = typeof window > "u" ? Ge : Ze, dn = ({ isPlaying: e, duration: t, start
408
409
  }
409
410
  let v = I - g.current, N = d.current + v;
410
411
  g.current = I, d.current = N;
411
- let y = h.current + (i === 0 ? N : (N / i | 0) * i), S = h.current + N, z = typeof t == "number" && S >= t;
412
+ let y = h.current + (n === 0 ? N : (N / n | 0) * n), S = h.current + N, z = typeof t == "number" && S >= t;
412
413
  m(z ? t : y), z || (M.current = requestAnimationFrame(D));
413
414
  }, o = () => {
414
415
  M.current && cancelAnimationFrame(M.current), A.current && clearTimeout(A.current), g.current = null;
415
416
  }, u = _((p) => {
416
417
  o(), d.current = 0;
417
- let I = typeof p == "number" ? p : n;
418
+ let I = typeof p == "number" ? p : i;
418
419
  h.current = I, m(I), e && (M.current = requestAnimationFrame(D));
419
- }, [e, n]);
420
+ }, [e, i]);
420
421
  return pe(() => {
421
422
  if (c == null || c(l), t && l >= t) {
422
423
  T.current += t * 1e3;
423
424
  let { shouldRepeat: p = !1, delay: I = 0, newStartAt: v } = (s == null ? void 0 : s(T.current / 1e3)) || {};
424
425
  p && (A.current = setTimeout(() => u(v), I * 1e3));
425
426
  }
426
- }, [l, t]), pe(() => (e && (M.current = requestAnimationFrame(D)), o), [e, t, i]), { elapsedTime: l, reset: u };
427
- }, un = (e, t, n) => {
428
- let i = e / 2, s = t / 2, c = i - s, l = 2 * c, m = n === "clockwise" ? "1,0" : "0,1", d = 2 * Math.PI * c;
429
- return { path: `m ${i},${s} a ${c},${c} 0 ${m} 0,${l} a ${c},${c} 0 ${m} 0,-${l}`, pathLength: d };
430
- }, me = (e, t) => e === 0 || e === t ? 0 : typeof t == "number" ? e - t : 0, pn = (e) => ({ position: "relative", width: e, height: e }), mn = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, Ce = (e, t, n, i, s) => {
431
- if (i === 0)
427
+ }, [l, t]), pe(() => (e && (M.current = requestAnimationFrame(D)), o), [e, t, n]), { elapsedTime: l, reset: u };
428
+ }, un = (e, t, i) => {
429
+ let n = e / 2, s = t / 2, c = n - s, l = 2 * c, m = i === "clockwise" ? "1,0" : "0,1", d = 2 * Math.PI * c;
430
+ return { path: `m ${n},${s} a ${c},${c} 0 ${m} 0,${l} a ${c},${c} 0 ${m} 0,-${l}`, pathLength: d };
431
+ }, me = (e, t) => e === 0 || e === t ? 0 : typeof t == "number" ? e - t : 0, pn = (e) => ({ position: "relative", width: e, height: e }), mn = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, Ce = (e, t, i, n, s) => {
432
+ if (n === 0)
432
433
  return t;
433
- let c = (s ? i - e : e) / i;
434
- return t + n * c;
434
+ let c = (s ? n - e : e) / n;
435
+ return t + i * c;
435
436
  }, he = (e) => {
436
- var t, n;
437
- return (n = (t = e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (i, s, c, l) => `#${s}${s}${c}${c}${l}${l}`).substring(1).match(/.{2}/g)) == null ? void 0 : t.map((i) => parseInt(i, 16))) != null ? n : [];
437
+ var t, i;
438
+ return (i = (t = e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (n, s, c, l) => `#${s}${s}${c}${c}${l}${l}`).substring(1).match(/.{2}/g)) == null ? void 0 : t.map((n) => parseInt(n, 16))) != null ? i : [];
438
439
  }, hn = (e, t) => {
439
- var n;
440
- let { colors: i, colorsTime: s, isSmoothColorTransition: c = !0 } = e;
441
- if (typeof i == "string")
442
- return i;
443
- let l = (n = s == null ? void 0 : s.findIndex((g, A) => g >= t && t >= s[A + 1])) != null ? n : -1;
440
+ var i;
441
+ let { colors: n, colorsTime: s, isSmoothColorTransition: c = !0 } = e;
442
+ if (typeof n == "string")
443
+ return n;
444
+ let l = (i = s == null ? void 0 : s.findIndex((g, A) => g >= t && t >= s[A + 1])) != null ? i : -1;
444
445
  if (!s || l === -1)
445
- return i[0];
446
+ return n[0];
446
447
  if (!c)
447
- return i[l];
448
- let m = s[l] - t, d = s[l] - s[l + 1], h = he(i[l]), T = he(i[l + 1]), M = !!e.isGrowing;
448
+ return n[l];
449
+ let m = s[l] - t, d = s[l] - s[l + 1], h = he(n[l]), T = he(n[l + 1]), M = !!e.isGrowing;
449
450
  return `rgb(${h.map((g, A) => Ce(m, g, T[A] - g, d, M) | 0).join(",")})`;
450
451
  }, In = (e) => {
451
- let { duration: t, initialRemainingTime: n, updateInterval: i, size: s = 180, strokeWidth: c = 12, trailStrokeWidth: l, isPlaying: m = !1, isGrowing: d = !1, rotation: h = "clockwise", onComplete: T, onUpdate: M } = e, g = C(), A = Math.max(c, l ?? 0), { path: D, pathLength: o } = un(s, A, h), { elapsedTime: u } = dn({ isPlaying: m, duration: t, startAt: me(t, n), updateInterval: i, onUpdate: typeof M == "function" ? (I) => {
452
+ let { duration: t, initialRemainingTime: i, updateInterval: n, size: s = 180, strokeWidth: c = 12, trailStrokeWidth: l, isPlaying: m = !1, isGrowing: d = !1, rotation: h = "clockwise", onComplete: T, onUpdate: M } = e, g = C(), A = Math.max(c, l ?? 0), { path: D, pathLength: o } = un(s, A, h), { elapsedTime: u } = dn({ isPlaying: m, duration: t, startAt: me(t, i), updateInterval: n, onUpdate: typeof M == "function" ? (I) => {
452
453
  let v = Math.ceil(t - I);
453
454
  v !== g.current && (g.current = v, M(v));
454
455
  } : void 0, onComplete: typeof T == "function" ? (I) => {
@@ -459,8 +460,8 @@ var pe = typeof window > "u" ? Ge : Ze, dn = ({ isPlaying: e, duration: t, start
459
460
  } : void 0 }), p = t - u;
460
461
  return { elapsedTime: u, path: D, pathLength: o, remainingTime: Math.ceil(p), rotation: h, size: s, stroke: hn(e, p), strokeDashoffset: Ce(u, 0, o, t, d), strokeWidth: c };
461
462
  }, be = (e) => {
462
- let { children: t, strokeLinecap: n, trailColor: i, trailStrokeWidth: s } = e, { path: c, pathLength: l, stroke: m, strokeDashoffset: d, remainingTime: h, elapsedTime: T, size: M, strokeWidth: g } = In(e);
463
- return Q.createElement("div", { style: pn(M) }, Q.createElement("svg", { viewBox: `0 0 ${M} ${M}`, width: M, height: M, xmlns: "http://www.w3.org/2000/svg" }, Q.createElement("path", { d: c, fill: "none", stroke: i ?? "#d9d9d9", strokeWidth: s ?? g }), Q.createElement("path", { d: c, fill: "none", stroke: m, strokeLinecap: n ?? "round", strokeWidth: g, strokeDasharray: l, strokeDashoffset: d })), typeof t == "function" && Q.createElement("div", { style: mn }, t({ remainingTime: h, elapsedTime: T, color: m })));
463
+ let { children: t, strokeLinecap: i, trailColor: n, trailStrokeWidth: s } = e, { path: c, pathLength: l, stroke: m, strokeDashoffset: d, remainingTime: h, elapsedTime: T, size: M, strokeWidth: g } = In(e);
464
+ return Q.createElement("div", { style: pn(M) }, Q.createElement("svg", { viewBox: `0 0 ${M} ${M}`, width: M, height: M, xmlns: "http://www.w3.org/2000/svg" }, Q.createElement("path", { d: c, fill: "none", stroke: n ?? "#d9d9d9", strokeWidth: s ?? g }), Q.createElement("path", { d: c, fill: "none", stroke: m, strokeLinecap: i ?? "round", strokeWidth: g, strokeDasharray: l, strokeDashoffset: d })), typeof t == "function" && Q.createElement("div", { style: mn }, t({ remainingTime: h, elapsedTime: T, color: m })));
464
465
  };
465
466
  be.displayName = "CountdownCircleTimer";
466
467
  const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10, 0], vn = /* @__PURE__ */ a("div")({
@@ -470,15 +471,15 @@ const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10,
470
471
  }), Mn = L.SECONDARY_GREEN6, Ie = L.SECONDARY_RED3, yn = L.NEUTRALS_GRAY3, Nn = ({
471
472
  isPlaying: e = !0,
472
473
  duration: t = 30,
473
- onTimerExpired: n
474
+ onTimerExpired: i
474
475
  }) => {
475
- const [i, s] = P(t > 10 ? Mn : Ie), c = ({
476
+ const [n, s] = P(t > 10 ? Mn : Ie), c = ({
476
477
  remainingTime: d
477
478
  }) => /* @__PURE__ */ r(vn, {
478
479
  children: d
479
480
  }), l = _(() => {
480
- n == null || n(), s(yn);
481
- }, [n, s]), m = _((d) => {
481
+ i == null || i(), s(yn);
482
+ }, [i, s]), m = _((d) => {
482
483
  d === 10 && s(Ie);
483
484
  }, [s]);
484
485
  return /* @__PURE__ */ r(be, {
@@ -489,7 +490,7 @@ const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10,
489
490
  size: 32,
490
491
  strokeWidth: 2,
491
492
  trailStrokeWidth: 2,
492
- trailColor: i,
493
+ trailColor: n,
493
494
  onComplete: l,
494
495
  onUpdate: m,
495
496
  children: c
@@ -525,8 +526,8 @@ const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10,
525
526
  }), kn = ({
526
527
  title: e,
527
528
  points: t,
528
- isPlayingTimer: n,
529
- isTimer: i,
529
+ isPlayingTimer: i,
530
+ isTimer: n,
530
531
  questionType: s,
531
532
  timerDuration: c,
532
533
  onTimerExpired: l
@@ -541,20 +542,20 @@ const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10,
541
542
  ] })
542
543
  ] })
543
544
  ] }),
544
- i && /* @__PURE__ */ r(Nn, { isPlaying: n, onTimerExpired: l, duration: c })
545
- ] }), wn = ({ openedQuestion: e, isLoading: t, vote: n, close: i }) => {
545
+ n && /* @__PURE__ */ r(Nn, { isPlaying: i, onTimerExpired: l, duration: c })
546
+ ] }), wn = ({ openedQuestion: e, isLoading: t, vote: i, close: n }) => {
546
547
  var s, c;
547
548
  const l = e.subject, m = e.type, d = (s = e.options) == null ? void 0 : s.options, [h, T] = P(!1), [M, g] = P(""), A = e == null ? void 0 : e.id, D = _(
548
549
  async (N) => {
549
550
  if (A) {
550
551
  const y = N.currentTarget.value;
551
- g(y), await n(A, y);
552
+ g(y), await i(A, y);
552
553
  }
553
554
  },
554
- [A, g, n]
555
+ [A, g, i]
555
556
  ), o = _(() => {
556
- T(!0), setTimeout(i, 3e3);
557
- }, [i]), u = B(
557
+ T(!0), setTimeout(n, 3e3);
558
+ }, [n]), u = B(
558
559
  () => e == null ? void 0 : e.answers.find((N) => N.youVoted === !0),
559
560
  [e]
560
561
  ), p = B(
@@ -635,7 +636,7 @@ const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10,
635
636
  name: "Image",
636
637
  class: "i1gfjeu5",
637
638
  propsAsIs: !1
638
- }), $e = ({ created: e, image: t, title: n, instantView: i }) => {
639
+ }), $e = ({ created: e, image: t, title: i, instantView: n }) => {
639
640
  const s = B(() => {
640
641
  if (e) {
641
642
  const l = new Date(e);
@@ -646,18 +647,18 @@ const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10,
646
647
  };
647
648
  }
648
649
  return null;
649
- }, [e]), c = (i == null ? void 0 : i.image) || t;
650
+ }, [e]), c = (n == null ? void 0 : n.image) || t;
650
651
  return /* @__PURE__ */ f(Cn, { children: [
651
652
  s && /* @__PURE__ */ f(En, { children: [
652
653
  s.date,
653
654
  " · ",
654
655
  s.time
655
656
  ] }),
656
- (i == null ? void 0 : i.video) && /* @__PURE__ */ r(We, { source: i.video.url, poster: i.video.thumbnailUrl }),
657
+ (n == null ? void 0 : n.video) && /* @__PURE__ */ r(We, { source: n.video.url, poster: n.video.thumbnailUrl }),
657
658
  c && /* @__PURE__ */ r(Rn, { src: c }),
658
659
  /* @__PURE__ */ f(bn, { children: [
659
- /* @__PURE__ */ r($n, { children: (i == null ? void 0 : i.heading) || n }),
660
- /* @__PURE__ */ r(Ln, { children: i == null ? void 0 : i.body })
660
+ /* @__PURE__ */ r($n, { children: (n == null ? void 0 : n.heading) || i }),
661
+ /* @__PURE__ */ r(Ln, { children: n == null ? void 0 : n.body })
661
662
  ] })
662
663
  ] });
663
664
  }, Qn = /* @__PURE__ */ a("div")({
@@ -689,36 +690,36 @@ const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10,
689
690
  }, Yn = ({
690
691
  extendedQuestion: e,
691
692
  vote: t,
692
- close: n
693
+ close: i
693
694
  }) => {
694
695
  const {
695
- loading: i,
696
+ loading: n,
696
697
  data: s
697
698
  } = e;
698
699
  return s ? /* @__PURE__ */ r(wn, {
699
700
  vote: t,
700
- close: n,
701
+ close: i,
701
702
  openedQuestion: s,
702
- isLoading: !!i
703
+ isLoading: !!n
703
704
  }) : null;
704
705
  }, Wn = ({
705
706
  gamification: e
706
707
  }) => {
707
708
  var t;
708
- const n = w(e.openedQuestion.$store), i = w(e.openedQuestion.$extendedStore);
709
- if (!n)
709
+ const i = w(e.openedQuestion.$store), n = w(e.openedQuestion.$extendedStore);
710
+ if (!i)
710
711
  return null;
711
- const s = n.type;
712
+ const s = i.type;
712
713
  return /* @__PURE__ */ f(_n, {
713
714
  children: [/* @__PURE__ */ r(xe, {
714
715
  close: e.closeQuestion,
715
- type: ((t = n.attributes) == null ? void 0 : t.type) || x.UNSET
716
+ type: ((t = i.attributes) == null ? void 0 : t.type) || x.UNSET
716
717
  }), s === "question" && /* @__PURE__ */ r(Yn, {
717
718
  vote: e.submitAnswer,
718
719
  close: e.closeQuestion,
719
- extendedQuestion: i
720
+ extendedQuestion: n
720
721
  }), s !== "question" && /* @__PURE__ */ r(qn, {
721
- openedQuestion: n
722
+ openedQuestion: i
722
723
  })]
723
724
  });
724
725
  }, Vn = /* @__PURE__ */ a("div")({
@@ -739,7 +740,7 @@ const fn = [L.PRIMARY_GREEN1, L.SECONDARY_RED1, L.SECONDARY_RED1], gn = [10, 10,
739
740
  propsAsIs: !1
740
741
  });
741
742
  var H = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(H || {});
742
- const fe = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ r(Bn, { onClick: n, "data-selected": t, children: /* @__PURE__ */ r(Hn, { children: e }) }), Gn = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ r(Vn, { children: /* @__PURE__ */ f(Fn, { "data-position": e === "home" ? "left" : "right", children: [
743
+ const fe = ({ title: e, active: t, onClick: i }) => /* @__PURE__ */ r(Bn, { onClick: i, "data-selected": t, children: /* @__PURE__ */ r(Hn, { children: e }) }), Gn = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ r(Vn, { children: /* @__PURE__ */ f(Fn, { "data-position": e === "home" ? "left" : "right", children: [
743
744
  /* @__PURE__ */ r(fe, { title: "Home", active: e === "home", onClick: () => t(
744
745
  "home"
745
746
  /* HOME */
@@ -759,9 +760,9 @@ const fe = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ r(Bn, { onCl
759
760
  function te() {
760
761
  return te = Object.assign ? Object.assign.bind() : function(e) {
761
762
  for (var t = 1; t < arguments.length; t++) {
762
- var n = arguments[t];
763
- for (var i in n)
764
- Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
763
+ var i = arguments[t];
764
+ for (var n in i)
765
+ Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
765
766
  }
766
767
  return e;
767
768
  }, te.apply(this, arguments);
@@ -772,8 +773,8 @@ function ge(e) {
772
773
  return e;
773
774
  }
774
775
  function ne(e, t) {
775
- return ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
776
- return i.__proto__ = s, i;
776
+ return ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, s) {
777
+ return n.__proto__ = s, n;
777
778
  }, ne(e, t);
778
779
  }
779
780
  function Zn(e, t) {
@@ -788,18 +789,18 @@ function Jn(e, t) {
788
789
  function Kn(e, t) {
789
790
  if (e.length !== t.length)
790
791
  return !1;
791
- for (var n = 0; n < e.length; n++)
792
- if (!Jn(e[n], t[n]))
792
+ for (var i = 0; i < e.length; i++)
793
+ if (!Jn(e[i], t[i]))
793
794
  return !1;
794
795
  return !0;
795
796
  }
796
797
  function K(e, t) {
797
798
  t === void 0 && (t = Kn);
798
- var n, i = [], s, c = !1;
799
+ var i, n = [], s, c = !1;
799
800
  function l() {
800
801
  for (var m = [], d = 0; d < arguments.length; d++)
801
802
  m[d] = arguments[d];
802
- return c && n === this && t(m, i) || (s = e.apply(this, m), c = !0, n = this, i = m), s;
803
+ return c && i === this && t(m, n) || (s = e.apply(this, m), c = !0, i = this, n = m), s;
803
804
  }
804
805
  return l;
805
806
  }
@@ -812,38 +813,38 @@ function ye(e) {
812
813
  cancelAnimationFrame(e.id);
813
814
  }
814
815
  function ei(e, t) {
815
- var n = Me();
816
- function i() {
817
- Me() - n >= t ? e.call(null) : s.id = requestAnimationFrame(i);
816
+ var i = Me();
817
+ function n() {
818
+ Me() - i >= t ? e.call(null) : s.id = requestAnimationFrame(n);
818
819
  }
819
820
  var s = {
820
- id: requestAnimationFrame(i)
821
+ id: requestAnimationFrame(n)
821
822
  };
822
823
  return s;
823
824
  }
824
825
  var X = -1;
825
826
  function Ne(e) {
826
827
  if (e === void 0 && (e = !1), X === -1 || e) {
827
- var t = document.createElement("div"), n = t.style;
828
- n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), X = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
828
+ var t = document.createElement("div"), i = t.style;
829
+ i.width = "50px", i.height = "50px", i.overflow = "scroll", document.body.appendChild(t), X = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
829
830
  }
830
831
  return X;
831
832
  }
832
833
  var b = null;
833
834
  function Te(e) {
834
835
  if (e === void 0 && (e = !1), b === null || e) {
835
- var t = document.createElement("div"), n = t.style;
836
- n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
837
- var i = document.createElement("div"), s = i.style;
838
- return s.width = "100px", s.height = "100px", t.appendChild(i), document.body.appendChild(t), t.scrollLeft > 0 ? b = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? b = "negative" : b = "positive-ascending"), document.body.removeChild(t), b;
836
+ var t = document.createElement("div"), i = t.style;
837
+ i.width = "50px", i.height = "50px", i.overflow = "scroll", i.direction = "rtl";
838
+ var n = document.createElement("div"), s = n.style;
839
+ return s.width = "100px", s.height = "100px", t.appendChild(n), document.body.appendChild(t), t.scrollLeft > 0 ? b = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? b = "negative" : b = "positive-ascending"), document.body.removeChild(t), b;
839
840
  }
840
841
  return b;
841
842
  }
842
- var ti = 150, ni = function(t, n) {
843
+ var ti = 150, ni = function(t, i) {
843
844
  return t;
844
845
  };
845
846
  function ii(e) {
846
- var t, n = e.getItemOffset, i = e.getEstimatedTotalSize, s = e.getItemSize, c = e.getOffsetForIndexAndAlignment, l = e.getStartIndexForOffset, m = e.getStopIndexForStartIndex, d = e.initInstanceProps, h = e.shouldResetStyleCacheOnItemSizeChange, T = e.validateProps;
847
+ var t, i = e.getItemOffset, n = e.getEstimatedTotalSize, s = e.getItemSize, c = e.getOffsetForIndexAndAlignment, l = e.getStartIndexForOffset, m = e.getStopIndexForStartIndex, d = e.initInstanceProps, h = e.shouldResetStyleCacheOnItemSizeChange, T = e.validateProps;
847
848
  return t = /* @__PURE__ */ function(M) {
848
849
  Zn(g, M);
849
850
  function g(D) {
@@ -872,7 +873,7 @@ function ii(e) {
872
873
  if (y.hasOwnProperty(u))
873
874
  S = y[u];
874
875
  else {
875
- var z = n(o.props, u, o._instanceProps), O = s(o.props, u, o._instanceProps), k = I === "horizontal" || N === "horizontal", q = I === "rtl", Y = k ? z : 0;
876
+ var z = i(o.props, u, o._instanceProps), O = s(o.props, u, o._instanceProps), k = I === "horizontal" || N === "horizontal", q = I === "rtl", Y = k ? z : 0;
876
877
  y[u] = S = {
877
878
  position: "absolute",
878
879
  left: q ? void 0 : Y,
@@ -999,7 +1000,7 @@ function ii(e) {
999
1000
  isScrolling: Qe ? se : void 0,
1000
1001
  style: this._getItemStyle(E)
1001
1002
  }));
1002
- var ae = i(this.props, this._instanceProps);
1003
+ var ae = n(this.props, this._instanceProps);
1003
1004
  return Z(Le || Ee || "div", {
1004
1005
  className: p,
1005
1006
  onScroll: Pe,
@@ -1049,24 +1050,24 @@ function ii(e) {
1049
1050
  useIsScrolling: !1
1050
1051
  }, t;
1051
1052
  }
1052
- var si = function(t, n) {
1053
- t.children, t.direction, t.height, t.layout, t.innerTagName, t.outerTagName, t.width, n.instance;
1053
+ var si = function(t, i) {
1054
+ t.children, t.direction, t.height, t.layout, t.innerTagName, t.outerTagName, t.width, i.instance;
1054
1055
  }, ri = /* @__PURE__ */ ii({
1055
- getItemOffset: function(t, n) {
1056
- var i = t.itemSize;
1057
- return n * i;
1056
+ getItemOffset: function(t, i) {
1057
+ var n = t.itemSize;
1058
+ return i * n;
1058
1059
  },
1059
- getItemSize: function(t, n) {
1060
- var i = t.itemSize;
1061
- return i;
1060
+ getItemSize: function(t, i) {
1061
+ var n = t.itemSize;
1062
+ return n;
1062
1063
  },
1063
1064
  getEstimatedTotalSize: function(t) {
1064
- var n = t.itemCount, i = t.itemSize;
1065
- return i * n;
1065
+ var i = t.itemCount, n = t.itemSize;
1066
+ return n * i;
1066
1067
  },
1067
- getOffsetForIndexAndAlignment: function(t, n, i, s, c, l) {
1068
- var m = t.direction, d = t.height, h = t.itemCount, T = t.itemSize, M = t.layout, g = t.width, A = m === "horizontal" || M === "horizontal", D = A ? g : d, o = Math.max(0, h * T - D), u = Math.min(o, n * T), p = Math.max(0, n * T - D + T + l);
1069
- switch (i === "smart" && (s >= p - D && s <= u + D ? i = "auto" : i = "center"), i) {
1068
+ getOffsetForIndexAndAlignment: function(t, i, n, s, c, l) {
1069
+ var m = t.direction, d = t.height, h = t.itemCount, T = t.itemSize, M = t.layout, g = t.width, A = m === "horizontal" || M === "horizontal", D = A ? g : d, o = Math.max(0, h * T - D), u = Math.min(o, i * T), p = Math.max(0, i * T - D + T + l);
1070
+ switch (n === "smart" && (s >= p - D && s <= u + D ? n = "auto" : n = "center"), n) {
1070
1071
  case "start":
1071
1072
  return u;
1072
1073
  case "end":
@@ -1080,15 +1081,15 @@ var si = function(t, n) {
1080
1081
  return s >= p && s <= u ? s : s < p ? p : u;
1081
1082
  }
1082
1083
  },
1083
- getStartIndexForOffset: function(t, n) {
1084
- var i = t.itemCount, s = t.itemSize;
1085
- return Math.max(0, Math.min(i - 1, Math.floor(n / s)));
1084
+ getStartIndexForOffset: function(t, i) {
1085
+ var n = t.itemCount, s = t.itemSize;
1086
+ return Math.max(0, Math.min(n - 1, Math.floor(i / s)));
1086
1087
  },
1087
- getStopIndexForStartIndex: function(t, n, i) {
1088
- var s = t.direction, c = t.height, l = t.itemCount, m = t.itemSize, d = t.layout, h = t.width, T = s === "horizontal" || d === "horizontal", M = n * m, g = T ? h : c, A = Math.ceil((g + i - M) / m);
1088
+ getStopIndexForStartIndex: function(t, i, n) {
1089
+ var s = t.direction, c = t.height, l = t.itemCount, m = t.itemSize, d = t.layout, h = t.width, T = s === "horizontal" || d === "horizontal", M = i * m, g = T ? h : c, A = Math.ceil((g + n - M) / m);
1089
1090
  return Math.max(0, Math.min(
1090
1091
  l - 1,
1091
- n + A - 1
1092
+ i + A - 1
1092
1093
  // -1 is because stop index is inclusive
1093
1094
  ));
1094
1095
  },
@@ -1100,21 +1101,21 @@ var si = function(t, n) {
1100
1101
  }
1101
1102
  });
1102
1103
  function oi(e) {
1103
- var t = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, i = e.startIndex, s = e.stopIndex;
1104
- return !(i > n || s < t);
1104
+ var t = e.lastRenderedStartIndex, i = e.lastRenderedStopIndex, n = e.startIndex, s = e.stopIndex;
1105
+ return !(n > i || s < t);
1105
1106
  }
1106
1107
  function ai(e) {
1107
- for (var t = e.isItemLoaded, n = e.itemCount, i = e.minimumBatchSize, s = e.startIndex, c = e.stopIndex, l = [], m = null, d = null, h = s; h <= c; h++) {
1108
+ for (var t = e.isItemLoaded, i = e.itemCount, n = e.minimumBatchSize, s = e.startIndex, c = e.stopIndex, l = [], m = null, d = null, h = s; h <= c; h++) {
1108
1109
  var T = t(h);
1109
1110
  T ? d !== null && (l.push(m, d), m = d = null) : (d = h, m === null && (m = h));
1110
1111
  }
1111
1112
  if (d !== null) {
1112
- for (var M = Math.min(Math.max(d, m + i - 1), n - 1), g = d + 1; g <= M && !t(g); g++)
1113
+ for (var M = Math.min(Math.max(d, m + n - 1), i - 1), g = d + 1; g <= M && !t(g); g++)
1113
1114
  d = g;
1114
1115
  l.push(m, d);
1115
1116
  }
1116
1117
  if (l.length)
1117
- for (; l[1] - l[0] + 1 < i && l[0] > 0; ) {
1118
+ for (; l[1] - l[0] + 1 < n && l[0] > 0; ) {
1118
1119
  var A = l[0] - 1;
1119
1120
  if (!t(A))
1120
1121
  l[0] = A;
@@ -1127,14 +1128,14 @@ var li = function(e, t) {
1127
1128
  if (!(e instanceof t))
1128
1129
  throw new TypeError("Cannot call a class as a function");
1129
1130
  }, ci = function() {
1130
- function e(t, n) {
1131
- for (var i = 0; i < n.length; i++) {
1132
- var s = n[i];
1131
+ function e(t, i) {
1132
+ for (var n = 0; n < i.length; n++) {
1133
+ var s = i[n];
1133
1134
  s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(t, s.key, s);
1134
1135
  }
1135
1136
  }
1136
- return function(t, n, i) {
1137
- return n && e(t.prototype, n), i && e(t, i), t;
1137
+ return function(t, i, n) {
1138
+ return i && e(t.prototype, i), n && e(t, n), t;
1138
1139
  };
1139
1140
  }(), di = function(e, t) {
1140
1141
  if (typeof t != "function" && t !== null)
@@ -1154,22 +1155,22 @@ var li = function(e, t) {
1154
1155
  }, ui = function(e) {
1155
1156
  di(t, e);
1156
1157
  function t() {
1157
- var n, i, s, c;
1158
+ var i, n, s, c;
1158
1159
  li(this, t);
1159
1160
  for (var l = arguments.length, m = Array(l), d = 0; d < l; d++)
1160
1161
  m[d] = arguments[d];
1161
- return c = (i = (s = Ae(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(m))), s), s._lastRenderedStartIndex = -1, s._lastRenderedStopIndex = -1, s._memoizedUnloadedRanges = [], s._onItemsRendered = function(h) {
1162
+ return c = (n = (s = Ae(this, (i = t.__proto__ || Object.getPrototypeOf(t)).call.apply(i, [this].concat(m))), s), s._lastRenderedStartIndex = -1, s._lastRenderedStopIndex = -1, s._memoizedUnloadedRanges = [], s._onItemsRendered = function(h) {
1162
1163
  var T = h.visibleStartIndex, M = h.visibleStopIndex;
1163
1164
  s._lastRenderedStartIndex = T, s._lastRenderedStopIndex = M, s._ensureRowsLoaded(T, M);
1164
1165
  }, s._setRef = function(h) {
1165
1166
  s._listRef = h;
1166
- }, i), Ae(s, c);
1167
+ }, n), Ae(s, c);
1167
1168
  }
1168
1169
  return ci(t, [{
1169
1170
  key: "resetloadMoreItemsCache",
1170
1171
  value: function() {
1171
- var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1172
- this._memoizedUnloadedRanges = [], i && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
1172
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1173
+ this._memoizedUnloadedRanges = [], n && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
1173
1174
  }
1174
1175
  }, {
1175
1176
  key: "componentDidMount",
@@ -1178,20 +1179,20 @@ var li = function(e, t) {
1178
1179
  }, {
1179
1180
  key: "render",
1180
1181
  value: function() {
1181
- var i = this.props.children;
1182
- return i({
1182
+ var n = this.props.children;
1183
+ return n({
1183
1184
  onItemsRendered: this._onItemsRendered,
1184
1185
  ref: this._setRef
1185
1186
  });
1186
1187
  }
1187
1188
  }, {
1188
1189
  key: "_ensureRowsLoaded",
1189
- value: function(i, s) {
1190
+ value: function(n, s) {
1190
1191
  var c = this.props, l = c.isItemLoaded, m = c.itemCount, d = c.minimumBatchSize, h = d === void 0 ? 10 : d, T = c.threshold, M = T === void 0 ? 15 : T, g = ai({
1191
1192
  isItemLoaded: l,
1192
1193
  itemCount: m,
1193
1194
  minimumBatchSize: h,
1194
- startIndex: Math.max(0, i - M),
1195
+ startIndex: Math.max(0, n - M),
1195
1196
  stopIndex: Math.min(m - 1, s + M)
1196
1197
  });
1197
1198
  (this._memoizedUnloadedRanges.length !== g.length || this._memoizedUnloadedRanges.some(function(A, D) {
@@ -1200,9 +1201,9 @@ var li = function(e, t) {
1200
1201
  }
1201
1202
  }, {
1202
1203
  key: "_loadUnloadedRanges",
1203
- value: function(i) {
1204
+ value: function(n) {
1204
1205
  for (var s = this, c = this.props.loadMoreItems || this.props.loadMoreRows, l = function(h) {
1205
- var T = i[h], M = i[h + 1], g = c(T, M);
1206
+ var T = n[h], M = n[h + 1], g = c(T, M);
1206
1207
  g != null && g.then(function() {
1207
1208
  if (oi({
1208
1209
  lastRenderedStartIndex: s._lastRenderedStartIndex,
@@ -1215,7 +1216,7 @@ var li = function(e, t) {
1215
1216
  typeof s._listRef.resetAfterIndex == "function" ? s._listRef.resetAfterIndex(T, !0) : (typeof s._listRef._getItemStyleCache == "function" && s._listRef._getItemStyleCache(-1), s._listRef.forceUpdate());
1216
1217
  }
1217
1218
  });
1218
- }, m = 0; m < i.length; m += 2)
1219
+ }, m = 0; m < n.length; m += 2)
1219
1220
  l(m);
1220
1221
  }
1221
1222
  }]), t;
@@ -1255,21 +1256,21 @@ const pi = /* @__PURE__ */ a("div")({
1255
1256
  }), Ni = ({
1256
1257
  rank: e,
1257
1258
  avatar: t,
1258
- name: n,
1259
- points: i,
1259
+ name: i,
1260
+ points: n,
1260
1261
  isCurrentUser: s,
1261
1262
  openItemDetail: c,
1262
1263
  style: l
1263
1264
  }) => /* @__PURE__ */ f(pi, { onClick: c, style: l, children: [
1264
1265
  /* @__PURE__ */ r(mi, { children: e || 0 }),
1265
1266
  /* @__PURE__ */ f(fi, { children: [
1266
- t ? /* @__PURE__ */ r(hi, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ r(Ii, { children: je(n || "") }),
1267
+ t ? /* @__PURE__ */ r(hi, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ r(Ii, { children: je(i || "") }),
1267
1268
  /* @__PURE__ */ f(gi, { children: [
1268
- /* @__PURE__ */ r(vi, { children: n || "" }),
1269
+ /* @__PURE__ */ r(vi, { children: i || "" }),
1269
1270
  s && /* @__PURE__ */ r(yi, { name: "icon-star" })
1270
1271
  ] })
1271
1272
  ] }),
1272
- /* @__PURE__ */ r("div", { children: Oe(i) })
1273
+ /* @__PURE__ */ r("div", { children: Oe(n) })
1273
1274
  ] }), Ti = /* @__PURE__ */ a("div")({
1274
1275
  name: "ScrollContainer",
1275
1276
  class: "s13d8sg6",
@@ -1277,14 +1278,14 @@ const pi = /* @__PURE__ */ a("div")({
1277
1278
  }), Ai = ({
1278
1279
  items: e,
1279
1280
  currentUserId: t,
1280
- openItemDetail: n,
1281
- fetchMore: i
1281
+ openItemDetail: i,
1282
+ fetchMore: n
1282
1283
  }) => /* @__PURE__ */ r(Ve, { children: ({ width: s, height: c }) => /* @__PURE__ */ r(
1283
1284
  ui,
1284
1285
  {
1285
1286
  isItemLoaded: (l) => l < e.length,
1286
1287
  itemCount: e.length + 1,
1287
- loadMoreItems: i,
1288
+ loadMoreItems: n,
1288
1289
  children: ({ onItemsRendered: l, ref: m }) => /* @__PURE__ */ r(Ti, { children: /* @__PURE__ */ r(
1289
1290
  ri,
1290
1291
  {
@@ -1299,7 +1300,7 @@ const pi = /* @__PURE__ */ a("div")({
1299
1300
  {
1300
1301
  style: { ...h, maxHeight: 48 },
1301
1302
  ...e[d],
1302
- openItemDetail: () => n(e[d].userId),
1303
+ openItemDetail: () => i(e[d].userId),
1303
1304
  isCurrentUser: !!t && t === e[d].userId
1304
1305
  },
1305
1306
  e[d].userId
@@ -1384,8 +1385,8 @@ const pi = /* @__PURE__ */ a("div")({
1384
1385
  }, Ri = ({
1385
1386
  questionId: e,
1386
1387
  questionType: t,
1387
- questionStatus: n,
1388
- subject: i,
1388
+ questionStatus: i,
1389
+ subject: n,
1389
1390
  openForVoting: s,
1390
1391
  openQuestion: c,
1391
1392
  status: l
@@ -1404,10 +1405,10 @@ const pi = /* @__PURE__ */ a("div")({
1404
1405
  ),
1405
1406
  /* @__PURE__ */ f(bi, { children: [
1406
1407
  m.label,
1407
- t === x.TRIVIA && n === U.RESOLVED && " • Expired"
1408
+ t === x.TRIVIA && i === U.RESOLVED && " • Expired"
1408
1409
  ] })
1409
1410
  ] }),
1410
- /* @__PURE__ */ r(ji, { children: i || "" })
1411
+ /* @__PURE__ */ r(ji, { children: n || "" })
1411
1412
  ] }),
1412
1413
  /* @__PURE__ */ r(Oi, { children: s ? /* @__PURE__ */ r(Li, { children: "Play" }) : d })
1413
1414
  ] }) : null;
@@ -1422,36 +1423,36 @@ const pi = /* @__PURE__ */ a("div")({
1422
1423
  }), Pi = ({
1423
1424
  openInsight: e,
1424
1425
  questionId: t,
1425
- ...n
1426
+ ...i
1426
1427
  }) => /* @__PURE__ */ f(Qi, { children: [
1427
- /* @__PURE__ */ r($e, { questionId: t, ...n }),
1428
+ /* @__PURE__ */ r($e, { questionId: t, ...i }),
1428
1429
  e && /* @__PURE__ */ r(Ui, { onClick: () => e(t), children: "View Insight" })
1429
1430
  ] }), _i = /* @__PURE__ */ a("div")({
1430
1431
  name: "QuestionsContainer",
1431
1432
  class: "qvghv3l",
1432
1433
  propsAsIs: !1
1433
- }), qi = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ r(_i, { children: e == null ? void 0 : e.map((n) => {
1434
- var i, s;
1435
- if (n.type === "question" && ((i = n.attributes) == null ? void 0 : i.attributes.case) === "question") {
1436
- const c = n.attributes.attributes.value;
1434
+ }), qi = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ r(_i, { children: e == null ? void 0 : e.map((i) => {
1435
+ var n, s;
1436
+ if (i.type === "question" && ((n = i.attributes) == null ? void 0 : n.attributes.case) === "question") {
1437
+ const c = i.attributes.attributes.value;
1437
1438
  return /* @__PURE__ */ r(Ri, { openQuestion: t, ...c }, c.questionId);
1438
1439
  }
1439
- if (n.type === "insight" && ((s = n.attributes) == null ? void 0 : s.attributes.case) === "insight") {
1440
- const c = n.attributes.attributes.value;
1440
+ if (i.type === "insight" && ((s = i.attributes) == null ? void 0 : s.attributes.case) === "insight") {
1441
+ const c = i.attributes.attributes.value;
1441
1442
  return /* @__PURE__ */ r(Pi, { openInsight: t, ...c }, c.questionId);
1442
1443
  }
1443
1444
  return null;
1444
1445
  }) }), Yi = ({ store: e, openQuestion: t }) => {
1445
- const n = w(e);
1446
- return n != null && n.data ? /* @__PURE__ */ r(qi, { openQuestion: t, questions: n.data }) : /* @__PURE__ */ r("div", { children: "wait questions..." });
1446
+ const i = w(e);
1447
+ return i != null && i.data ? /* @__PURE__ */ r(qi, { openQuestion: t, questions: i.data }) : /* @__PURE__ */ r("div", { children: "wait questions..." });
1447
1448
  }, Wi = ({ userSummary: e }) => {
1448
- var t, n;
1449
- const i = w(e.getStore());
1450
- return (t = i.data) != null && t.summary ? /* @__PURE__ */ r(ke, { ...i.data.summary, successRate: (n = i.data.percentage) == null ? void 0 : n.correct }) : /* @__PURE__ */ r("div", { children: "wait user..." });
1449
+ var t, i;
1450
+ const n = w(e.getStore());
1451
+ return (t = n.data) != null && t.summary ? /* @__PURE__ */ r(ke, { ...n.data.summary, successRate: (i = n.data.percentage) == null ? void 0 : i.correct }) : /* @__PURE__ */ r("div", { children: "wait user..." });
1451
1452
  }, Vi = ({
1452
1453
  gamification: e
1453
1454
  }) => {
1454
- const [t, n] = P(H.HOME);
1455
+ const [t, i] = P(H.HOME);
1455
1456
  return /* @__PURE__ */ f("div", {
1456
1457
  style: {
1457
1458
  height: "100%",
@@ -1465,7 +1466,7 @@ const pi = /* @__PURE__ */ a("div")({
1465
1466
  },
1466
1467
  children: /* @__PURE__ */ r(Gn, {
1467
1468
  activePage: t,
1468
- toggleActivePage: n
1469
+ toggleActivePage: i
1469
1470
  })
1470
1471
  }), t === H.HOME && /* @__PURE__ */ f(ie, {
1471
1472
  children: [/* @__PURE__ */ r(ee, {
@@ -1500,20 +1501,20 @@ const pi = /* @__PURE__ */ a("div")({
1500
1501
  correct: e,
1501
1502
  incorrect: t
1502
1503
  }) => {
1503
- const n = e + t;
1504
- return n === 0 ? 0 : Math.round(e / n * 100);
1504
+ const i = e + t;
1505
+ return i === 0 ? 0 : Math.round(e / i * 100);
1505
1506
  }, Ki = ({
1506
1507
  gamification: e,
1507
1508
  className: t
1508
1509
  }) => {
1509
- const n = w(e.openedQuestion.$store), i = w(e.openedUser);
1510
+ const i = w(e.openedQuestion.$store), n = w(e.openedUser);
1510
1511
  return /* @__PURE__ */ f($, {
1511
- children: [n && /* @__PURE__ */ r(De, {
1512
+ children: [i && /* @__PURE__ */ r(De, {
1512
1513
  className: t,
1513
1514
  children: /* @__PURE__ */ r(Wn, {
1514
1515
  gamification: e
1515
1516
  })
1516
- }), i && /* @__PURE__ */ r(De, {
1517
+ }), n && /* @__PURE__ */ r(De, {
1517
1518
  className: t,
1518
1519
  children: /* @__PURE__ */ f(Bi, {
1519
1520
  children: [/* @__PURE__ */ r(xe, {
@@ -1521,8 +1522,8 @@ const pi = /* @__PURE__ */ a("div")({
1521
1522
  close: e.closeUser
1522
1523
  }), /* @__PURE__ */ r(ee, {
1523
1524
  children: /* @__PURE__ */ r(ke, {
1524
- ...i,
1525
- successRate: Hi(i)
1525
+ ...n,
1526
+ successRate: Hi(n)
1526
1527
  })
1527
1528
  })]
1528
1529
  })