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