@streamlayer/react 0.33.4 → 0.33.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,5 +1,5 @@
1
1
  import { jsxs as I, jsx as s, Fragment as R } from "react/jsx-runtime";
2
- import { s as a, r as C, Q as b, o as Ye, a as Q, b as H, d as fe, E as _, c as Te, w as it, u as We, e as Y, f as te, g as rt, A as st, O as ot, P as ne, h as at, i as ge, n as lt, j as ct } from "./masters.js";
2
+ import { s as a, r as C, Q as z, o as Ye, a as Q, b as H, d as fe, E as _, c as Te, w as it, u as We, e as Y, f as te, g as rt, A as st, O as ot, P as ne, h as at, i as ge, n as lt, j as ct } from "./masters.js";
3
3
  import G, { useRef as $, useState as L, useCallback as P, useEffect as ae, useLayoutEffect as dt, useMemo as E, createElement as ue, PureComponent as Ve, useTransition as ut } from "react";
4
4
  const pt = /* @__PURE__ */ a("div")({
5
5
  name: "Container",
@@ -32,8 +32,8 @@ const pt = /* @__PURE__ */ a("div")({
32
32
  (i == null ? void 0 : i.iconName) && /* @__PURE__ */ s(
33
33
  It,
34
34
  {
35
- "data-type-trivia": e === b.TRIVIA,
36
- "data-type-poll": e === b.POLL,
35
+ "data-type-trivia": e === z.TRIVIA,
36
+ "data-type-poll": e === z.POLL,
37
37
  name: i.iconName
38
38
  }
39
39
  ),
@@ -82,11 +82,11 @@ const pt = /* @__PURE__ */ a("div")({
82
82
  name: "Container",
83
83
  class: "c1yrpn9o",
84
84
  propsAsIs: !1
85
- }), zt = /* @__PURE__ */ a("div")({
85
+ }), bt = /* @__PURE__ */ a("div")({
86
86
  name: "TopInfo",
87
87
  class: "t17fwahh",
88
88
  propsAsIs: !1
89
- }), bt = /* @__PURE__ */ a("div")({
89
+ }), zt = /* @__PURE__ */ a("div")({
90
90
  name: "BottomInfo",
91
91
  class: "by6w7e9",
92
92
  propsAsIs: !1
@@ -158,7 +158,7 @@ const pt = /* @__PURE__ */ a("div")({
158
158
  inTop: u,
159
159
  successRate: f
160
160
  }) => /* @__PURE__ */ I(xt, { children: [
161
- /* @__PURE__ */ s(zt, { children: /* @__PURE__ */ I(Ot, { children: [
161
+ /* @__PURE__ */ s(bt, { children: /* @__PURE__ */ I(Ot, { children: [
162
162
  /* @__PURE__ */ I(_t, { children: [
163
163
  e && /* @__PURE__ */ s(kt, { alt: "avatar", src: e }),
164
164
  !e && /* @__PURE__ */ s(qt, { children: Be(t || "") })
@@ -182,7 +182,7 @@ const pt = /* @__PURE__ */ a("div")({
182
182
  ] })
183
183
  ] })
184
184
  ] }) }),
185
- /* @__PURE__ */ I(bt, { children: [
185
+ /* @__PURE__ */ I(zt, { children: [
186
186
  /* @__PURE__ */ I(Ut, { children: [
187
187
  /* @__PURE__ */ s(xe, { indicator: i || 0, title: "Friends rank" }),
188
188
  /* @__PURE__ */ s(xe, { indicator: r || 0, title: "Global rank" })
@@ -264,7 +264,7 @@ const pt = /* @__PURE__ */ a("div")({
264
264
  enteredAnActiveQuestion: M,
265
265
  marketClosed: v
266
266
  }) => {
267
- const h = n && (i === b.TRIVIA || i === b.PREDICTION) && u && d !== Q.RESOLVED, A = i === b.PREDICTION && !r, S = v && i === b.PREDICTION && !n && !M || i === b.PREDICTION && f && u && M, o = h && A, m = h && r, p = i === b.PREDICTION && n && u && r, g = n && i === b.POLL && u;
267
+ const h = n && (i === z.TRIVIA || i === z.PREDICTION) && u && d !== Q.RESOLVED, A = i === z.PREDICTION && !r, S = v && i === z.PREDICTION && !n && !M || i === z.PREDICTION && f && u && M, o = h && A, m = h && r, p = i === z.PREDICTION && n && u && r, g = n && i === z.POLL && u;
268
268
  if (!c && !l && !o && !m && !S && !g && !p)
269
269
  return null;
270
270
  const T = t ? "correct" : "incorrect", D = t ? e == null ? void 0 : e.correctFeedback : e == null ? void 0 : e.incorrectFeedback;
@@ -374,29 +374,29 @@ const pt = /* @__PURE__ */ a("div")({
374
374
  name: "CheckIcon",
375
375
  class: "c1j2j0s0",
376
376
  propsAsIs: !0
377
- }), ze = {
377
+ }), be = {
378
378
  [H.CENTERED]: (e) => /* @__PURE__ */ s(hn, { alt: "option-icon", src: e }),
379
379
  [H.TRANSPARENT]: (e) => /* @__PURE__ */ s(un, { children: /* @__PURE__ */ s(pn, { style: { backgroundImage: `url(${e})` } }) }),
380
380
  [H.ROUNDED]: (e) => /* @__PURE__ */ s(fn, { alt: "option-icon", src: e }),
381
381
  [H.NONE]: () => null,
382
382
  [H.UNSET]: () => null
383
383
  }, Nn = ({ questionType: e, hasCorrectAnswer: t, correct: n, youVoted: i, questionVoted: r }) => {
384
- if (e === b.POLL && i)
384
+ if (e === z.POLL && i)
385
385
  return "correct";
386
- if (e === b.PREDICTION) {
386
+ if (e === z.PREDICTION) {
387
387
  if (t && r)
388
388
  return i ? n ? "correct" : "incorrect" : "unset";
389
389
  if (i)
390
390
  return "correct";
391
391
  }
392
- return e === b.TRIVIA && r && i ? n ? "correct" : "incorrect" : "unset";
392
+ return e === z.TRIVIA && r && i ? n ? "correct" : "incorrect" : "unset";
393
393
  }, Dn = ({
394
394
  questionType: e,
395
395
  questionVoted: t,
396
396
  correct: n,
397
397
  hasCorrectAnswer: i,
398
398
  questionStatus: r
399
- }) => e === b.TRIVIA ? t && n : e === b.PREDICTION ? t && n && i || r === Q.RESOLVED && n : !1, Sn = (e) => {
399
+ }) => e === z.TRIVIA ? t && n : e === z.PREDICTION ? t && n && i || r === Q.RESOLVED && n : !1, Sn = (e) => {
400
400
  var t;
401
401
  const {
402
402
  // option props
@@ -420,7 +420,7 @@ const pt = /* @__PURE__ */ a("div")({
420
420
  votedAfterQuestionClosed: g,
421
421
  enteredAnActiveQuestion: T,
422
422
  marketClosed: D
423
- } = e, N = Nn(e), y = Dn({ questionType: o, questionVoted: M, correct: m, hasCorrectAnswer: p, questionStatus: A }), x = D && o === b.PREDICTION, O = M || x, z = o === b.PREDICTION && !M && A !== Q.RESOLVED;
423
+ } = e, N = Nn(e), y = Dn({ questionType: o, questionVoted: M, correct: m, hasCorrectAnswer: p, questionStatus: A }), x = D && o === z.PREDICTION, O = M || x, b = o === z.PREDICTION && !M && A !== Q.RESOLVED;
424
424
  return /* @__PURE__ */ I(
425
425
  ln,
426
426
  {
@@ -431,15 +431,15 @@ const pt = /* @__PURE__ */ a("div")({
431
431
  "data-isNotChecked": M && !f && N !== "incorrect",
432
432
  onClick: (k) => {
433
433
  u(
434
- o === b.PREDICTION ? D : A === Q.RESOLVED
434
+ o === z.PREDICTION ? D : A === Q.RESOLVED
435
435
  ), l(k);
436
436
  },
437
437
  children: [
438
438
  /* @__PURE__ */ s(cn, { "data-answerState": N, style: { width: `${O ? d : 0}%` } }),
439
439
  /* @__PURE__ */ I(dn, { children: [
440
- i && v && ((t = ze[v]) == null ? void 0 : t.call(ze, i)),
440
+ i && v && ((t = be[v]) == null ? void 0 : t.call(be, i)),
441
441
  /* @__PURE__ */ s(gn, { children: r }),
442
- z && /* @__PURE__ */ I("div", { children: [
442
+ b && /* @__PURE__ */ I("div", { children: [
443
443
  /* @__PURE__ */ s(fe, { value: c }),
444
444
  /* @__PURE__ */ s(Mn, { children: "pts" })
445
445
  ] }),
@@ -452,7 +452,7 @@ const pt = /* @__PURE__ */ a("div")({
452
452
  }
453
453
  );
454
454
  };
455
- var be = typeof window > "u" ? ae : dt, xn = ({ isPlaying: e, duration: t, startAt: n = 0, updateInterval: i = 0, onComplete: r, onUpdate: d }) => {
455
+ var ze = typeof window > "u" ? ae : dt, xn = ({ isPlaying: e, duration: t, startAt: n = 0, updateInterval: i = 0, onComplete: r, onUpdate: d }) => {
456
456
  let [c, l] = L(n), u = $(0), f = $(n), M = $(n * -1e3), v = $(null), h = $(null), A = $(null), S = (p) => {
457
457
  let g = p / 1e3;
458
458
  if (h.current === null) {
@@ -470,17 +470,17 @@ var be = typeof window > "u" ? ae : dt, xn = ({ isPlaying: e, duration: t, start
470
470
  let g = typeof p == "number" ? p : n;
471
471
  f.current = g, l(g), e && (v.current = requestAnimationFrame(S));
472
472
  }, [e, n]);
473
- return be(() => {
473
+ return ze(() => {
474
474
  if (d == null || d(c), t && c >= t) {
475
475
  M.current += t * 1e3;
476
476
  let { shouldRepeat: p = !1, delay: g = 0, newStartAt: T } = (r == null ? void 0 : r(M.current / 1e3)) || {};
477
477
  p && (A.current = setTimeout(() => m(T), g * 1e3));
478
478
  }
479
- }, [c, t]), be(() => (e && (v.current = requestAnimationFrame(S)), o), [e, t, i]), { elapsedTime: c, reset: m };
480
- }, zn = (e, t, n) => {
479
+ }, [c, t]), ze(() => (e && (v.current = requestAnimationFrame(S)), o), [e, t, i]), { elapsedTime: c, reset: m };
480
+ }, bn = (e, t, n) => {
481
481
  let i = e / 2, r = t / 2, d = i - r, c = 2 * d, l = n === "clockwise" ? "1,0" : "0,1", u = 2 * Math.PI * d;
482
482
  return { path: `m ${i},${r} a ${d},${d} 0 ${l} 0,${c} a ${d},${d} 0 ${l} 0,-${c}`, pathLength: u };
483
- }, Oe = (e, t) => e === 0 || e === t ? 0 : typeof t == "number" ? e - t : 0, bn = (e) => ({ position: "relative", width: e, height: e }), On = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, Je = (e, t, n, i, r) => {
483
+ }, Oe = (e, t) => e === 0 || e === t ? 0 : typeof t == "number" ? e - t : 0, zn = (e) => ({ position: "relative", width: e, height: e }), On = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, Je = (e, t, n, i, r) => {
484
484
  if (i === 0)
485
485
  return t;
486
486
  let d = (r ? i - e : e) / i;
@@ -501,7 +501,7 @@ var be = typeof window > "u" ? ae : dt, xn = ({ isPlaying: e, duration: t, start
501
501
  let l = r[c] - t, u = r[c] - r[c + 1], f = ke(i[c]), M = ke(i[c + 1]), v = !!e.isGrowing;
502
502
  return `rgb(${f.map((h, A) => Je(l, h, M[A] - h, u, v) | 0).join(",")})`;
503
503
  }, jn = (e) => {
504
- let { duration: t, initialRemainingTime: n, updateInterval: i, size: r = 180, strokeWidth: d = 12, trailStrokeWidth: c, isPlaying: l = !1, isGrowing: u = !1, rotation: f = "clockwise", onComplete: M, onUpdate: v } = e, h = $(), A = Math.max(d, c ?? 0), { path: S, pathLength: o } = zn(r, A, f), { elapsedTime: m } = xn({ isPlaying: l, duration: t, startAt: Oe(t, n), updateInterval: i, onUpdate: typeof v == "function" ? (g) => {
504
+ let { duration: t, initialRemainingTime: n, updateInterval: i, size: r = 180, strokeWidth: d = 12, trailStrokeWidth: c, isPlaying: l = !1, isGrowing: u = !1, rotation: f = "clockwise", onComplete: M, onUpdate: v } = e, h = $(), A = Math.max(d, c ?? 0), { path: S, pathLength: o } = bn(r, A, f), { elapsedTime: m } = xn({ isPlaying: l, duration: t, startAt: Oe(t, n), updateInterval: i, onUpdate: typeof v == "function" ? (g) => {
505
505
  let T = Math.ceil(t - g);
506
506
  T !== h.current && (h.current = T, v(T));
507
507
  } : void 0, onComplete: typeof M == "function" ? (g) => {
@@ -513,7 +513,7 @@ var be = typeof window > "u" ? ae : dt, xn = ({ isPlaying: e, duration: t, start
513
513
  return { elapsedTime: m, path: S, pathLength: o, remainingTime: Math.ceil(p), rotation: f, size: r, stroke: kn(e, p), strokeDashoffset: Je(m, 0, o, t, u), strokeWidth: d };
514
514
  }, Ke = (e) => {
515
515
  let { children: t, strokeLinecap: n, trailColor: i, trailStrokeWidth: r } = e, { path: d, pathLength: c, stroke: l, strokeDashoffset: u, remainingTime: f, elapsedTime: M, size: v, strokeWidth: h } = jn(e);
516
- return G.createElement("div", { style: bn(v) }, G.createElement("svg", { viewBox: `0 0 ${v} ${v}`, width: v, height: v, xmlns: "http://www.w3.org/2000/svg" }, G.createElement("path", { d, fill: "none", stroke: i ?? "#d9d9d9", strokeWidth: r ?? h }), G.createElement("path", { d, fill: "none", stroke: l, strokeLinecap: n ?? "round", strokeWidth: h, strokeDasharray: c, strokeDashoffset: u })), typeof t == "function" && G.createElement("div", { style: On }, t({ remainingTime: f, elapsedTime: M, color: l })));
516
+ return G.createElement("div", { style: zn(v) }, G.createElement("svg", { viewBox: `0 0 ${v} ${v}`, width: v, height: v, xmlns: "http://www.w3.org/2000/svg" }, G.createElement("path", { d, fill: "none", stroke: i ?? "#d9d9d9", strokeWidth: r ?? h }), G.createElement("path", { d, fill: "none", stroke: l, strokeLinecap: n ?? "round", strokeWidth: h, strokeDasharray: c, strokeDashoffset: u })), typeof t == "function" && G.createElement("div", { style: On }, t({ remainingTime: f, elapsedTime: M, color: l })));
517
517
  };
518
518
  Ke.displayName = "CountdownCircleTimer";
519
519
  const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRAY3], Cn = [10, 10, 1, 0], En = /* @__PURE__ */ a("div")({
@@ -583,10 +583,10 @@ const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRA
583
583
  questionType: r,
584
584
  timerDuration: d,
585
585
  onTimerExpired: c
586
- }) => /* @__PURE__ */ I(Qn, { "data-centeredItems": r === b.PREDICTION, children: [
586
+ }) => /* @__PURE__ */ I(Qn, { "data-centeredItems": r === z.PREDICTION, children: [
587
587
  /* @__PURE__ */ I(Un, { children: [
588
588
  e && /* @__PURE__ */ s(Pn, { children: e }),
589
- t !== void 0 && r !== b.POLL && /* @__PURE__ */ I(R, { children: [
589
+ t !== void 0 && r !== z.POLL && /* @__PURE__ */ I(R, { children: [
590
590
  /* @__PURE__ */ s(_n, { name: "icon-trophy" }),
591
591
  /* @__PURE__ */ I(Yn, { children: [
592
592
  /* @__PURE__ */ s(Wn, { children: /* @__PURE__ */ s(fe, { value: t }) }),
@@ -594,12 +594,12 @@ const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRA
594
594
  ] })
595
595
  ] })
596
596
  ] }),
597
- i && r !== b.PREDICTION && /* @__PURE__ */ s(Rn, { isPlaying: n, onTimerExpired: c, duration: d })
597
+ i && r !== z.PREDICTION && /* @__PURE__ */ s(Rn, { isPlaying: n, onTimerExpired: c, duration: d })
598
598
  ] }), Bn = ({ openedQuestion: e, isLoading: t, vote: n, close: i }) => {
599
599
  var r, d;
600
600
  const c = e.subject, l = e.type, u = e.status, f = (r = e.options) == null ? void 0 : r.options, M = e.marketClosed, [v, h] = L(!1), [A, S] = L(!1), [o, m] = L(!0), [p, g] = L(!1), [T, D] = L(""), N = e == null ? void 0 : e.id;
601
601
  ae(() => {
602
- l === b.PREDICTION ? M && m(!1) : u === Q.RESOLVED && m(!1);
602
+ l === z.PREDICTION ? M && m(!1) : u === Q.RESOLVED && m(!1);
603
603
  }, []);
604
604
  const y = P((j) => {
605
605
  S(j), h(!0);
@@ -613,7 +613,7 @@ const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRA
613
613
  [N, D, n]
614
614
  ), O = P(() => {
615
615
  g(!0), setTimeout(i, 3e3);
616
- }, [i]), z = E(
616
+ }, [i]), b = E(
617
617
  () => e == null ? void 0 : e.answers.find((j) => j.youVoted === !0),
618
618
  [e]
619
619
  ), k = E(
@@ -626,7 +626,7 @@ const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRA
626
626
  var q;
627
627
  return {
628
628
  ...j,
629
- questionVoted: !!z,
629
+ questionVoted: !!b,
630
630
  youSelected: T === j.id,
631
631
  isLoading: t,
632
632
  hasCorrectAnswer: k,
@@ -641,31 +641,31 @@ const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRA
641
641
  p,
642
642
  t,
643
643
  e,
644
- z,
644
+ b,
645
645
  u,
646
646
  x,
647
647
  T
648
- ]), ce = f && (f.case === "trivia" || f.case === "prediction") ? f.value : void 0, U = u === Q.RESOLVED && l === b.TRIVIA && !z && !o, K = l === b.TRIVIA && A && v && o, X = E(() => l === b.PREDICTION ? !!(z && !k || z && k && w != null && w.youVoted) : !0, [l, z, k, w]), ee = E(() => {
649
- if (l === b.PREDICTION && z && (!k || k && w != null && w.youVoted))
650
- return z.points;
648
+ ]), ce = f && (f.case === "trivia" || f.case === "prediction") ? f.value : void 0, U = u === Q.RESOLVED && l === z.TRIVIA && !b && !o, K = l === z.TRIVIA && A && v && o, X = E(() => l === z.PREDICTION ? !!(b && !k || b && k && w != null && w.youVoted) : !0, [l, b, k, w]), ee = E(() => {
649
+ if (l === z.PREDICTION && b && (!k || k && w != null && w.youVoted))
650
+ return b.points;
651
651
  if (!(U || p))
652
- return u === Q.RESOLVED ? 0 : z ? z.correct ? z.points : 0 : w == null ? void 0 : w.points;
652
+ return u === Q.RESOLVED ? 0 : b ? b.correct ? b.points : 0 : w == null ? void 0 : w.points;
653
653
  }, [
654
654
  p,
655
- z,
655
+ b,
656
656
  w,
657
657
  u,
658
658
  U,
659
659
  l,
660
660
  k
661
- ]), F = E(() => l === b.PREDICTION && z ? k ? k && w != null && w.youVoted ? "You won" : "" : "To win" : U || p ? "Time expired" : l === b.POLL ? "Time remaining" : z ? "You won" : "To win", [p, l, z, U, k, w]), de = z || U || K || l === b.TRIVIA && u === Q.RESOLVED && o;
661
+ ]), F = E(() => l === z.PREDICTION && b ? k ? k && w != null && w.youVoted ? "You won" : "" : "To win" : U || p ? "Time expired" : l === z.POLL ? "Time remaining" : b ? "You won" : "To win", [p, l, b, U, k, w]), de = b || U || K || l === z.TRIVIA && u === Q.RESOLVED && o;
662
662
  return /* @__PURE__ */ s(Te, { "data-question-header": "true", children: /* @__PURE__ */ s(rn, { children: /* @__PURE__ */ I(sn, { children: [
663
663
  /* @__PURE__ */ s(
664
664
  nn,
665
665
  {
666
666
  feedbackMessages: ce,
667
- questionVoted: !!z,
668
- questionVotedCorrectly: z == null ? void 0 : z.correct,
667
+ questionVoted: !!b,
668
+ questionVotedCorrectly: b == null ? void 0 : b.correct,
669
669
  questionType: l,
670
670
  hasCorrectAnswer: k,
671
671
  questionStatus: u,
@@ -685,7 +685,7 @@ const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRA
685
685
  onTimerExpired: O,
686
686
  questionType: e.type,
687
687
  isTimer: !t,
688
- isPlayingTimer: !z,
688
+ isPlayingTimer: !b,
689
689
  timerDuration: de ? 0 : Number(((d = e == null ? void 0 : e.appearance) == null ? void 0 : d.autoHideInterval) || "30")
690
690
  }
691
691
  ),
@@ -739,30 +739,31 @@ const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRA
739
739
  image: t,
740
740
  title: n,
741
741
  isPickHistory: i,
742
- instantView: r
742
+ instantView: r,
743
+ notification: d
743
744
  }) => {
744
- const d = E(() => {
745
+ const c = E(() => {
745
746
  if (e) {
746
- const l = new Date(e);
747
- if (Ne(l))
747
+ const u = new Date(e);
748
+ if (Ne(u))
748
749
  return {
749
- date: ye(l),
750
- time: Ae(l)
750
+ date: ye(u),
751
+ time: Ae(u)
751
752
  };
752
753
  }
753
754
  return null;
754
- }, [e]), c = (r == null ? void 0 : r.image) || t;
755
+ }, [e]), l = (r == null ? void 0 : r.image) || t;
755
756
  return /* @__PURE__ */ I(Hn, { children: [
756
- d && /* @__PURE__ */ I(Kn, { children: [
757
- d.date,
757
+ c && /* @__PURE__ */ I(Kn, { children: [
758
+ c.date,
758
759
  " · ",
759
- d.time
760
+ c.time
760
761
  ] }),
761
762
  (r == null ? void 0 : r.video) && /* @__PURE__ */ s(it, { source: r.video.url, poster: r.video.thumbnailUrl }),
762
- c && !(r != null && r.video) && /* @__PURE__ */ s(Xn, { src: c }),
763
+ l && !(r != null && r.video) && /* @__PURE__ */ s(Xn, { src: l }),
763
764
  /* @__PURE__ */ I(Gn, { children: [
764
765
  /* @__PURE__ */ s(Zn, { children: i ? n : r == null ? void 0 : r.heading }),
765
- !i && /* @__PURE__ */ s(Jn, { children: r == null ? void 0 : r.body })
766
+ /* @__PURE__ */ s(Jn, { children: i ? d == null ? void 0 : d.body : r == null ? void 0 : r.body })
766
767
  ] })
767
768
  ] });
768
769
  }, ei = /* @__PURE__ */ a("div")({
@@ -853,7 +854,7 @@ const wn = [_.PRIMARY_GREEN1, _.SECONDARY_RED1, _.SECONDARY_RED1, _.NEUTRALS_GRA
853
854
  return /* @__PURE__ */ I(ai, {
854
855
  children: [/* @__PURE__ */ s(Fe, {
855
856
  close: e.closeQuestion,
856
- type: ((t = n.attributes) == null ? void 0 : t.type) || b.UNSET
857
+ type: ((t = n.attributes) == null ? void 0 : t.type) || z.UNSET
857
858
  }), r === "question" && /* @__PURE__ */ s(ci, {
858
859
  vote: e.submitAnswer,
859
860
  close: e.closeQuestion,
@@ -881,8 +882,8 @@ function Di(e, t, n) {
881
882
  return f = y, l = setTimeout(p, t), M ? A(y) : c;
882
883
  }
883
884
  function o(y) {
884
- var x = y - u, O = y - f, z = t - x;
885
- return v ? Ni(z, d - O) : z;
885
+ var x = y - u, O = y - f, b = t - x;
886
+ return v ? Ni(b, d - O) : b;
886
887
  }
887
888
  function m(y) {
888
889
  var x = y - u, O = y - f;
@@ -932,13 +933,13 @@ function oe(e) {
932
933
  function xi(e) {
933
934
  return !!e && typeof e == "object";
934
935
  }
935
- function zi(e) {
936
+ function bi(e) {
936
937
  return typeof e == "symbol" || xi(e) && yi.call(e) == ui;
937
938
  }
938
939
  function Ce(e) {
939
940
  if (typeof e == "number")
940
941
  return e;
941
- if (zi(e))
942
+ if (bi(e))
942
943
  return we;
943
944
  if (oe(e)) {
944
945
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -950,8 +951,8 @@ function Ce(e) {
950
951
  var n = hi.test(e);
951
952
  return n || Ii.test(e) ? fi(e.slice(2), n ? 2 : 8) : mi.test(e) ? we : +e;
952
953
  }
953
- var bi = Si;
954
- const tt = /* @__PURE__ */ rt(bi), Oi = /* @__PURE__ */ a("div")({
954
+ var zi = Si;
955
+ const tt = /* @__PURE__ */ rt(zi), Oi = /* @__PURE__ */ a("div")({
955
956
  name: "Container",
956
957
  class: "c115qtkr",
957
958
  propsAsIs: !1
@@ -1102,14 +1103,14 @@ function qi(e) {
1102
1103
  if (N.hasOwnProperty(m))
1103
1104
  y = N[m];
1104
1105
  else {
1105
- var x = n(o.props, m, o._instanceProps), O = r(o.props, m, o._instanceProps), z = g === "horizontal" || D === "horizontal", k = g === "rtl", w = z ? x : 0;
1106
+ var x = n(o.props, m, o._instanceProps), O = r(o.props, m, o._instanceProps), b = g === "horizontal" || D === "horizontal", k = g === "rtl", w = b ? x : 0;
1106
1107
  N[m] = y = {
1107
1108
  position: "absolute",
1108
1109
  left: k ? void 0 : w,
1109
1110
  right: k ? w : void 0,
1110
- top: z ? 0 : x,
1111
- height: z ? "100%" : O,
1112
- width: z ? O : "100%"
1111
+ top: b ? 0 : x,
1112
+ height: b ? "100%" : O,
1113
+ width: b ? O : "100%"
1113
1114
  };
1114
1115
  }
1115
1116
  return y;
@@ -1219,7 +1220,7 @@ function qi(e) {
1219
1220
  }, A.componentWillUnmount = function() {
1220
1221
  this._resetIsScrollingTimeoutId !== null && Qe(this._resetIsScrollingTimeoutId);
1221
1222
  }, A.render = function() {
1222
- var o = this.props, m = o.children, p = o.className, g = o.direction, T = o.height, D = o.innerRef, N = o.innerElementType, y = o.innerTagName, x = o.itemCount, O = o.itemData, z = o.itemKey, k = z === void 0 ? Pi : z, w = o.layout, le = o.outerElementType, ce = o.outerTagName, U = o.style, K = o.useIsScrolling, X = o.width, ee = this.state.isScrolling, F = g === "horizontal" || w === "horizontal", de = F ? this._onScrollHorizontal : this._onScrollVertical, j = this._getRangeToRender(), q = j[0], nt = j[1], De = [];
1223
+ var o = this.props, m = o.children, p = o.className, g = o.direction, T = o.height, D = o.innerRef, N = o.innerElementType, y = o.innerTagName, x = o.itemCount, O = o.itemData, b = o.itemKey, k = b === void 0 ? Pi : b, w = o.layout, le = o.outerElementType, ce = o.outerTagName, U = o.style, K = o.useIsScrolling, X = o.width, ee = this.state.isScrolling, F = g === "horizontal" || w === "horizontal", de = F ? this._onScrollHorizontal : this._onScrollVertical, j = this._getRangeToRender(), q = j[0], nt = j[1], De = [];
1223
1224
  if (x > 0)
1224
1225
  for (var B = q; B <= nt; B++)
1225
1226
  De.push(ue(m, {
@@ -1268,8 +1269,8 @@ function qi(e) {
1268
1269
  var o = this.props, m = o.itemCount, p = o.overscanCount, g = this.state, T = g.isScrolling, D = g.scrollDirection, N = g.scrollOffset;
1269
1270
  if (m === 0)
1270
1271
  return [0, 0, 0, 0];
1271
- var y = c(this.props, N, this._instanceProps), x = l(this.props, y, N, this._instanceProps), O = !T || D === "backward" ? Math.max(1, p) : 1, z = !T || D === "forward" ? Math.max(1, p) : 1;
1272
- return [Math.max(0, y - O), Math.max(0, Math.min(m - 1, x + z)), y, x];
1272
+ var y = c(this.props, N, this._instanceProps), x = l(this.props, y, N, this._instanceProps), O = !T || D === "backward" ? Math.max(1, p) : 1, b = !T || D === "forward" ? Math.max(1, p) : 1;
1273
+ return [Math.max(0, y - O), Math.max(0, Math.min(m - 1, x + b)), y, x];
1273
1274
  }, h;
1274
1275
  }(Ve), t.defaultProps = {
1275
1276
  direction: "ltr",
@@ -1635,14 +1636,14 @@ const Zi = /* @__PURE__ */ a("div")({
1635
1636
  /* @__PURE__ */ s(
1636
1637
  fr,
1637
1638
  {
1638
- "data-type-trivia": t === b.TRIVIA,
1639
- "data-type-poll": t === b.POLL,
1639
+ "data-type-trivia": t === z.TRIVIA,
1640
+ "data-type-poll": t === z.POLL,
1640
1641
  name: l.iconName
1641
1642
  }
1642
1643
  ),
1643
1644
  /* @__PURE__ */ I(gr, { children: [
1644
1645
  l.label,
1645
- t === b.TRIVIA && n === Q.RESOLVED && " • Expired"
1646
+ t === z.TRIVIA && n === Q.RESOLVED && " • Expired"
1646
1647
  ] })
1647
1648
  ] }),
1648
1649
  /* @__PURE__ */ s(pr, { children: i || "" })
@@ -1668,11 +1669,11 @@ const Zi = /* @__PURE__ */ a("div")({
1668
1669
  name: "Container",
1669
1670
  class: "cl56x6b",
1670
1671
  propsAsIs: !1
1671
- }), xr = () => at, zr = /* @__PURE__ */ a(xr())({
1672
+ }), xr = () => at, br = /* @__PURE__ */ a(xr())({
1672
1673
  name: "ActionButton",
1673
1674
  class: "a11pzf92",
1674
1675
  propsAsIs: !0
1675
- }), br = /* @__PURE__ */ a("div")({
1676
+ }), zr = /* @__PURE__ */ a("div")({
1676
1677
  name: "DateTime",
1677
1678
  class: "d1hbaleq",
1678
1679
  propsAsIs: !1
@@ -1697,14 +1698,14 @@ const Zi = /* @__PURE__ */ a("div")({
1697
1698
  return null;
1698
1699
  }, [t]);
1699
1700
  return /* @__PURE__ */ I(Sr, { children: [
1700
- i && /* @__PURE__ */ I(br, { children: [
1701
+ i && /* @__PURE__ */ I(zr, { children: [
1701
1702
  i.date,
1702
1703
  " · ",
1703
1704
  i.time
1704
1705
  ] }),
1705
1706
  n.title && /* @__PURE__ */ s(Or, { children: n.title }),
1706
1707
  /* @__PURE__ */ s(We, { ...n }),
1707
- e && /* @__PURE__ */ s(zr, { onClick: () => e(n.tweetId), children: "View Insight" })
1708
+ e && /* @__PURE__ */ s(br, { onClick: () => e(n.tweetId), children: "View Insight" })
1708
1709
  ] });
1709
1710
  }, jr = /* @__PURE__ */ a("div")({
1710
1711
  name: "QuestionsContainer",