@streamlayer/react 0.32.7 → 0.32.8

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
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 || "") })
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: m || 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: m,
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 && m && l && d, N = c === L.RESOLVED && i === x.PREDICTION && !n && !d || i === x.PREDICTION && m && l && d, D = f && A, o = f && r, p = n && i === x.POLL && l;
265
+ if (!M && !v && !D && !o && !N && !p)
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
+ p && /* @__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: m,
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: p,
413
+ votedAfterQuestionClosed: u,
414
+ enteredAnActiveQuestion: I
415
+ } = e, g = mn(e), z = hn({ questionType: D, questionVoted: f, correct: o, hasCorrectAnswer: p, 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
+ m(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, m] = $(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
+ m(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
+ }, p = W((u) => {
455
+ o(), d.current = 0;
456
+ let I = typeof u == "number" ? u : n;
457
+ f.current = I, m(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(() => p(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: p };
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, m = n === "clockwise" ? "1,0" : "0,1", d = 2 * Math.PI * c;
468
+ return { path: `m ${i},${r} a ${c},${c} 0 ${m} 0,${l} a ${c},${c} 0 ${m} 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 m = 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(m, 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: m = !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: p } = fn({ isPlaying: m, 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 - p;
499
+ return { elapsedTime: p, path: D, pathLength: o, remainingTime: Math.ceil(u), rotation: f, size: r, stroke: yn(e, u), strokeDashoffset: Ye(p, 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: m, 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: m, strokeLinecap: n ?? "round", strokeWidth: v, strokeDasharray: l, strokeDashoffset: d })), typeof t == "function" && B.createElement("div", { style: Mn }, t({ remainingTime: f, elapsedTime: A, color: m })));
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]), m = 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
533
  onUpdate: m,
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,213 @@ 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, m = e.type, d = (r = e.options) == null ? void 0 : r.options, [f, A] = $(!1), [M, v] = $(!1), [N, D] = $(!0), [o, p] = $(!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
+ p(!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,
635
+ feedbackMessages: P,
636
+ questionVoted: !!T,
637
+ questionVotedCorrectly: T == null ? void 0 : T.correct,
607
638
  questionType: m,
608
- hasCorrectAnswer: p,
609
- questionStatus: e.status
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 = ({ created: e, image: t, title: n, instantView: i }) => {
703
+ const r = C(() => {
661
704
  if (e) {
662
705
  const l = new Date(e);
663
- if (oe(l))
706
+ if (he(l))
664
707
  return {
665
- date: ie(l),
666
- time: re(l)
708
+ date: pe(l),
709
+ time: me(l)
667
710
  };
668
711
  }
669
712
  return null;
670
- }, [e]), c = (s == null ? void 0 : s.image) || t;
671
- return /* @__PURE__ */ I(Qn, { children: [
672
- r && /* @__PURE__ */ I(_n, { children: [
713
+ }, [e]), c = (i == null ? void 0 : i.image) || t;
714
+ return /* @__PURE__ */ h(Qn, { children: [
715
+ r && /* @__PURE__ */ h(_n, { children: [
673
716
  r.date,
674
717
  " · ",
675
718
  r.time
676
719
  ] }),
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 })
720
+ (i == null ? void 0 : i.video) && /* @__PURE__ */ s(Ze, { source: i.video.url, poster: i.video.thumbnailUrl }),
721
+ c && !(i != null && i.video) && /* @__PURE__ */ s(Yn, { src: c }),
722
+ /* @__PURE__ */ h(Un, { children: [
723
+ /* @__PURE__ */ s(qn, { children: (i == null ? void 0 : i.heading) || n }),
724
+ /* @__PURE__ */ s(Pn, { children: i == null ? void 0 : i.body })
682
725
  ] })
683
726
  ] });
684
- }, Wn = /* @__PURE__ */ o("div")({
727
+ }, Wn = /* @__PURE__ */ a("div")({
685
728
  name: "Container",
686
729
  class: "c1euiow",
687
730
  propsAsIs: !1
688
- }), Vn = /* @__PURE__ */ o("a")({
731
+ }), Vn = /* @__PURE__ */ a("a")({
689
732
  name: "WebLinkBtn",
690
733
  class: "w19zie3h",
691
734
  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: [
735
+ }), Fn = ({ instantView: e, ...t }) => /* @__PURE__ */ h(Wn, { children: [
736
+ /* @__PURE__ */ s(Ve, { instantView: e, ...t }),
737
+ (e == null ? void 0 : e.webLink) && /* @__PURE__ */ h(Vn, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
695
738
  "Explore more of the Masters History",
696
- /* @__PURE__ */ i(j, { name: "icon-external-link" })
739
+ /* @__PURE__ */ s(k, { name: "icon-external-link" })
697
740
  ] })
698
- ] }), Bn = /* @__PURE__ */ o("div")({
741
+ ] }), Bn = /* @__PURE__ */ a("div")({
699
742
  name: "Container",
700
743
  class: "c1dcxmvf",
701
744
  propsAsIs: !1
702
- }), Hn = /* @__PURE__ */ o("div")({
745
+ }), Hn = /* @__PURE__ */ a("div")({
703
746
  name: "DateTime",
704
747
  class: "db4q22c",
705
748
  propsAsIs: !1
706
- }), Gn = /* @__PURE__ */ o("blockquote")({
749
+ }), Gn = /* @__PURE__ */ a("blockquote")({
707
750
  name: "Quote",
708
751
  class: "q111mmic",
709
752
  propsAsIs: !1
710
753
  }), Zn = ({ created: e, ...t }) => {
711
- const n = w(() => {
754
+ const n = C(() => {
712
755
  if (e) {
713
- const s = new Date(e);
714
- if (oe(s))
756
+ const i = new Date(e);
757
+ if (he(i))
715
758
  return {
716
- date: ie(s),
717
- time: re(s)
759
+ date: pe(i),
760
+ time: me(i)
718
761
  };
719
762
  }
720
763
  return null;
721
764
  }, [e]);
722
- return /* @__PURE__ */ I(Bn, { children: [
723
- n && /* @__PURE__ */ I(Hn, { children: [
765
+ return /* @__PURE__ */ h(Bn, { children: [
766
+ n && /* @__PURE__ */ h(Hn, { children: [
724
767
  n.date,
725
768
  " · ",
726
769
  n.time
727
770
  ] }),
728
- t.title && /* @__PURE__ */ i(Gn, { children: t.title }),
729
- /* @__PURE__ */ i(ke, { ...t })
771
+ t.title && /* @__PURE__ */ s(Gn, { children: t.title }),
772
+ /* @__PURE__ */ s(Ee, { ...t })
730
773
  ] });
731
- }, Jn = /* @__PURE__ */ o("div")({
774
+ }, Jn = /* @__PURE__ */ a("div")({
732
775
  name: "QuestionContainer",
733
776
  class: "qdri6g3",
734
777
  propsAsIs: !1
@@ -736,10 +779,10 @@ const Tn = [C.PRIMARY_GREEN1, C.SECONDARY_RED1, C.SECONDARY_RED1, C.NEUTRALS_GRA
736
779
  openedQuestion: e
737
780
  }) => {
738
781
  var t, n;
739
- return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ i(Fn, {
782
+ return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ s(Fn, {
740
783
  created: e.attributes.created,
741
784
  ...e.attributes.attributes.value
742
- }) : ((n = e == null ? void 0 : e.attributes) == null ? void 0 : n.attributes.case) === "tweet" ? /* @__PURE__ */ i(Zn, {
785
+ }) : ((n = e == null ? void 0 : e.attributes) == null ? void 0 : n.attributes.case) === "tweet" ? /* @__PURE__ */ s(Zn, {
743
786
  created: e.attributes.created,
744
787
  ...e.attributes.attributes.value
745
788
  }) : null;
@@ -749,62 +792,62 @@ const Tn = [C.PRIMARY_GREEN1, C.SECONDARY_RED1, C.SECONDARY_RED1, C.NEUTRALS_GRA
749
792
  close: n
750
793
  }) => {
751
794
  const {
752
- loading: s,
795
+ loading: i,
753
796
  data: r
754
797
  } = e;
755
- return r ? /* @__PURE__ */ i(Rn, {
798
+ return r ? /* @__PURE__ */ s(Rn, {
756
799
  vote: t,
757
800
  close: n,
758
801
  openedQuestion: r,
759
- isLoading: !!s
802
+ isLoading: !!i
760
803
  }) : null;
761
- }, es = ({
804
+ }, ei = ({
762
805
  gamification: e
763
806
  }) => {
764
807
  var t;
765
- const n = L(e.openedQuestion.$store), s = L(e.openedQuestion.$extendedStore);
808
+ const n = U(e.openedQuestion.$store), i = U(e.openedQuestion.$extendedStore);
766
809
  if (!n)
767
810
  return null;
768
811
  const r = n.type;
769
- return /* @__PURE__ */ I(Jn, {
770
- children: [/* @__PURE__ */ i(Ce, {
812
+ return /* @__PURE__ */ h(Jn, {
813
+ children: [/* @__PURE__ */ s(Qe, {
771
814
  close: e.closeQuestion,
772
815
  type: ((t = n.attributes) == null ? void 0 : t.type) || x.UNSET
773
- }), r === "question" && /* @__PURE__ */ i(Xn, {
816
+ }), r === "question" && /* @__PURE__ */ s(Xn, {
774
817
  vote: e.submitAnswer,
775
818
  close: e.closeQuestion,
776
- extendedQuestion: s
777
- }), r !== "question" && /* @__PURE__ */ i(Kn, {
819
+ extendedQuestion: i
820
+ }), r !== "question" && /* @__PURE__ */ s(Kn, {
778
821
  openedQuestion: n
779
- }), /* @__PURE__ */ i(Rt, {
822
+ }), /* @__PURE__ */ s(Qt, {
780
823
  sponsorLogo: ""
781
824
  })]
782
825
  });
783
- }, ts = /* @__PURE__ */ o("div")({
826
+ }, ti = /* @__PURE__ */ a("div")({
784
827
  name: "Container",
785
828
  class: "c115qtkr",
786
829
  propsAsIs: !1
787
- }), ns = /* @__PURE__ */ o("div")({
830
+ }), ni = /* @__PURE__ */ a("div")({
788
831
  name: "STabs",
789
832
  class: "sxnslc8",
790
833
  propsAsIs: !1
791
- }), ss = /* @__PURE__ */ o("button")({
834
+ }), ii = /* @__PURE__ */ a("button")({
792
835
  name: "Button",
793
836
  class: "b1umzux0",
794
837
  propsAsIs: !1
795
- }), is = /* @__PURE__ */ o("span")({
838
+ }), si = /* @__PURE__ */ a("span")({
796
839
  name: "Title",
797
840
  class: "tspsaas",
798
841
  propsAsIs: !1
799
842
  });
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(
843
+ var X = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(X || {});
844
+ 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: [
845
+ /* @__PURE__ */ s(Se, { title: "Home", active: e === "home", onClick: () => t(
803
846
  "home"
804
847
  /* HOME */
805
848
  ) }),
806
- /* @__PURE__ */ i(
807
- Me,
849
+ /* @__PURE__ */ s(
850
+ Se,
808
851
  {
809
852
  title: "Leader Board",
810
853
  active: e === "leaderboard",
@@ -815,219 +858,219 @@ const Me = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ i(ss, { onCl
815
858
  }
816
859
  )
817
860
  ] }) });
818
- function te() {
819
- return te = Object.assign ? Object.assign.bind() : function(e) {
861
+ function le() {
862
+ return le = Object.assign ? Object.assign.bind() : function(e) {
820
863
  for (var t = 1; t < arguments.length; t++) {
821
864
  var n = arguments[t];
822
- for (var s in n)
823
- Object.prototype.hasOwnProperty.call(n, s) && (e[s] = n[s]);
865
+ for (var i in n)
866
+ Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
824
867
  }
825
868
  return e;
826
- }, te.apply(this, arguments);
869
+ }, le.apply(this, arguments);
827
870
  }
828
- function ye(e) {
871
+ function ze(e) {
829
872
  if (e === void 0)
830
873
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
831
874
  return e;
832
875
  }
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);
876
+ function ce(e, t) {
877
+ return ce = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
878
+ return i.__proto__ = r, i;
879
+ }, ce(e, t);
837
880
  }
838
- function os(e, t) {
839
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ne(e, t);
881
+ function oi(e, t) {
882
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ce(e, t);
840
883
  }
841
- var Ae = Number.isNaN || function(t) {
884
+ var xe = Number.isNaN || function(t) {
842
885
  return typeof t == "number" && t !== t;
843
886
  };
844
- function as(e, t) {
845
- return !!(e === t || Ae(e) && Ae(t));
887
+ function ai(e, t) {
888
+ return !!(e === t || xe(e) && xe(t));
846
889
  }
847
- function ls(e, t) {
890
+ function li(e, t) {
848
891
  if (e.length !== t.length)
849
892
  return !1;
850
893
  for (var n = 0; n < e.length; n++)
851
- if (!as(e[n], t[n]))
894
+ if (!ai(e[n], t[n]))
852
895
  return !1;
853
896
  return !0;
854
897
  }
855
- function K(e, t) {
856
- t === void 0 && (t = ls);
857
- var n, s = [], r, c = !1;
898
+ function re(e, t) {
899
+ t === void 0 && (t = li);
900
+ var n, i = [], r, c = !1;
858
901
  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;
902
+ for (var m = [], d = 0; d < arguments.length; d++)
903
+ m[d] = arguments[d];
904
+ return c && n === this && t(m, i) || (r = e.apply(this, m), c = !0, n = this, i = m), r;
862
905
  }
863
906
  return l;
864
907
  }
865
- var cs = typeof performance == "object" && typeof performance.now == "function", Te = cs ? function() {
908
+ var ci = typeof performance == "object" && typeof performance.now == "function", Oe = ci ? function() {
866
909
  return performance.now();
867
910
  } : function() {
868
911
  return Date.now();
869
912
  };
870
- function Ne(e) {
913
+ function ke(e) {
871
914
  cancelAnimationFrame(e.id);
872
915
  }
873
- function ds(e, t) {
874
- var n = Te();
875
- function s() {
876
- Te() - n >= t ? e.call(null) : r.id = requestAnimationFrame(s);
916
+ function di(e, t) {
917
+ var n = Oe();
918
+ function i() {
919
+ Oe() - n >= t ? e.call(null) : r.id = requestAnimationFrame(i);
877
920
  }
878
921
  var r = {
879
- id: requestAnimationFrame(s)
922
+ id: requestAnimationFrame(i)
880
923
  };
881
924
  return r;
882
925
  }
883
- var X = -1;
884
- function De(e) {
885
- if (e === void 0 && (e = !1), X === -1 || e) {
926
+ var oe = -1;
927
+ function we(e) {
928
+ if (e === void 0 && (e = !1), oe === -1 || e) {
886
929
  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);
930
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), oe = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
888
931
  }
889
- return X;
932
+ return oe;
890
933
  }
891
- var E = null;
892
- function Se(e) {
893
- if (e === void 0 && (e = !1), E === null || e) {
934
+ var Y = null;
935
+ function je(e) {
936
+ if (e === void 0 && (e = !1), Y === null || e) {
894
937
  var t = document.createElement("div"), n = t.style;
895
938
  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;
939
+ var i = document.createElement("div"), r = i.style;
940
+ 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
941
  }
899
- return E;
942
+ return Y;
900
943
  }
901
- var us = 150, ps = function(t, n) {
944
+ var ui = 150, pi = function(t, n) {
902
945
  return t;
903
946
  };
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;
947
+ function mi(e) {
948
+ var t, n = e.getItemOffset, i = e.getEstimatedTotalSize, r = e.getItemSize, c = e.getOffsetForIndexAndAlignment, l = e.getStartIndexForOffset, m = e.getStopIndexForStartIndex, d = e.initInstanceProps, f = e.shouldResetStyleCacheOnItemSizeChange, A = e.validateProps;
906
949
  return t = /* @__PURE__ */ function(M) {
907
- os(v, M);
950
+ oi(v, M);
908
951
  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),
952
+ var o;
953
+ return o = M.call(this, D) || this, o._instanceProps = d(o.props, ze(o)), o._outerRef = void 0, o._resetIsScrollingTimeoutId = null, o.state = {
954
+ instance: ze(o),
912
955
  isScrolling: !1,
913
956
  scrollDirection: "forward",
914
- scrollOffset: typeof a.props.initialScrollOffset == "number" ? a.props.initialScrollOffset : 0,
957
+ scrollOffset: typeof o.props.initialScrollOffset == "number" ? o.props.initialScrollOffset : 0,
915
958
  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,
959
+ }, o._callOnItemsRendered = void 0, o._callOnItemsRendered = re(function(p, u, I, g) {
960
+ return o.props.onItemsRendered({
961
+ overscanStartIndex: p,
962
+ overscanStopIndex: u,
963
+ visibleStartIndex: I,
921
964
  visibleStopIndex: g
922
965
  });
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
966
+ }), o._callOnScroll = void 0, o._callOnScroll = re(function(p, u, I) {
967
+ return o.props.onScroll({
968
+ scrollDirection: p,
969
+ scrollOffset: u,
970
+ scrollUpdateWasRequested: I
928
971
  });
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];
972
+ }), o._getItemStyle = void 0, o._getItemStyle = function(p) {
973
+ var u = o.props, I = u.direction, g = u.itemSize, z = u.layout, y = o._getItemStyleCache(f && g, f && z, f && I), S;
974
+ if (y.hasOwnProperty(p))
975
+ S = y[p];
933
976
  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 = {
977
+ var T = n(o.props, p, o._instanceProps), w = r(o.props, p, o._instanceProps), j = I === "horizontal" || z === "horizontal", q = I === "rtl", P = j ? T : 0;
978
+ y[p] = S = {
936
979
  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%"
980
+ left: q ? void 0 : P,
981
+ right: q ? P : void 0,
982
+ top: j ? 0 : T,
983
+ height: j ? "100%" : w,
984
+ width: j ? w : "100%"
942
985
  };
943
986
  }
944
- return z;
945
- }, a._getItemStyleCache = void 0, a._getItemStyleCache = K(function(d, p, f) {
987
+ return S;
988
+ }, o._getItemStyleCache = void 0, o._getItemStyleCache = re(function(p, u, I) {
946
989
  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) {
990
+ }), o._onScrollHorizontal = function(p) {
991
+ var u = p.currentTarget, I = u.clientWidth, g = u.scrollLeft, z = u.scrollWidth;
992
+ o.setState(function(y) {
950
993
  if (y.scrollOffset === g)
951
994
  return null;
952
- var z = a.props.direction, N = g;
953
- if (z === "rtl")
954
- switch (Se()) {
995
+ var S = o.props.direction, T = g;
996
+ if (S === "rtl")
997
+ switch (je()) {
955
998
  case "negative":
956
- N = -g;
999
+ T = -g;
957
1000
  break;
958
1001
  case "positive-descending":
959
- N = S - f - g;
1002
+ T = z - I - g;
960
1003
  break;
961
1004
  }
962
- return N = Math.max(0, Math.min(N, S - f)), {
1005
+ return T = Math.max(0, Math.min(T, z - I)), {
963
1006
  isScrolling: !0,
964
1007
  scrollDirection: y.scrollOffset < g ? "forward" : "backward",
965
- scrollOffset: N,
1008
+ scrollOffset: T,
966
1009
  scrollUpdateWasRequested: !1
967
1010
  };
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)
1011
+ }, o._resetIsScrollingDebounced);
1012
+ }, o._onScrollVertical = function(p) {
1013
+ var u = p.currentTarget, I = u.clientHeight, g = u.scrollHeight, z = u.scrollTop;
1014
+ o.setState(function(y) {
1015
+ if (y.scrollOffset === z)
973
1016
  return null;
974
- var z = Math.max(0, Math.min(S, g - f));
1017
+ var S = Math.max(0, Math.min(z, g - I));
975
1018
  return {
976
1019
  isScrolling: !0,
977
- scrollDirection: y.scrollOffset < z ? "forward" : "backward",
978
- scrollOffset: z,
1020
+ scrollDirection: y.scrollOffset < S ? "forward" : "backward",
1021
+ scrollOffset: S,
979
1022
  scrollUpdateWasRequested: !1
980
1023
  };
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({
1024
+ }, o._resetIsScrollingDebounced);
1025
+ }, o._outerRefSetter = function(p) {
1026
+ var u = o.props.outerRef;
1027
+ o._outerRef = p, typeof u == "function" ? u(p) : u != null && typeof u == "object" && u.hasOwnProperty("current") && (u.current = p);
1028
+ }, o._resetIsScrollingDebounced = function() {
1029
+ o._resetIsScrollingTimeoutId !== null && ke(o._resetIsScrollingTimeoutId), o._resetIsScrollingTimeoutId = di(o._resetIsScrolling, ui);
1030
+ }, o._resetIsScrolling = function() {
1031
+ o._resetIsScrollingTimeoutId = null, o.setState({
989
1032
  isScrolling: !1
990
1033
  }, function() {
991
- a._getItemStyleCache(-1, null);
1034
+ o._getItemStyleCache(-1, null);
992
1035
  });
993
- }, a;
1036
+ }, o;
994
1037
  }
995
- v.getDerivedStateFromProps = function(a, d) {
996
- return hs(a, d), A(a), null;
1038
+ v.getDerivedStateFromProps = function(o, p) {
1039
+ return hi(o, p), A(o), null;
997
1040
  };
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,
1041
+ var N = v.prototype;
1042
+ return N.scrollTo = function(o) {
1043
+ o = Math.max(0, o), this.setState(function(p) {
1044
+ return p.scrollOffset === o ? null : {
1045
+ scrollDirection: p.scrollOffset < o ? "forward" : "backward",
1046
+ scrollOffset: o,
1004
1047
  scrollUpdateWasRequested: !0
1005
1048
  };
1006
1049
  }, 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));
1050
+ }, N.scrollToItem = function(o, p) {
1051
+ p === void 0 && (p = "auto");
1052
+ var u = this.props, I = u.itemCount, g = u.layout, z = this.state.scrollOffset;
1053
+ o = Math.max(0, Math.min(o, I - 1));
1011
1054
  var y = 0;
1012
1055
  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;
1056
+ var S = this._outerRef;
1057
+ g === "vertical" ? y = S.scrollWidth > S.clientWidth ? we() : 0 : y = S.scrollHeight > S.clientHeight ? we() : 0;
1015
1058
  }
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) {
1059
+ this.scrollTo(c(this.props, o, p, z, this._instanceProps, y));
1060
+ }, N.componentDidMount = function() {
1061
+ var o = this.props, p = o.direction, u = o.initialScrollOffset, I = o.layout;
1062
+ if (typeof u == "number" && this._outerRef != null) {
1020
1063
  var g = this._outerRef;
1021
- d === "horizontal" || f === "horizontal" ? g.scrollLeft = p : g.scrollTop = p;
1064
+ p === "horizontal" || I === "horizontal" ? g.scrollLeft = u : g.scrollTop = u;
1022
1065
  }
1023
1066
  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) {
1067
+ }, N.componentDidUpdate = function() {
1068
+ var o = this.props, p = o.direction, u = o.layout, I = this.state, g = I.scrollOffset, z = I.scrollUpdateWasRequested;
1069
+ if (z && this._outerRef != null) {
1027
1070
  var y = this._outerRef;
1028
- if (d === "horizontal" || p === "horizontal")
1029
- if (d === "rtl")
1030
- switch (Se()) {
1071
+ if (p === "horizontal" || u === "horizontal")
1072
+ if (p === "rtl")
1073
+ switch (je()) {
1031
1074
  case "negative":
1032
1075
  y.scrollLeft = -g;
1033
1076
  break;
@@ -1035,8 +1078,8 @@ function ms(e) {
1035
1078
  y.scrollLeft = g;
1036
1079
  break;
1037
1080
  default:
1038
- var z = y.clientWidth, N = y.scrollWidth;
1039
- y.scrollLeft = N - z - g;
1081
+ var S = y.clientWidth, T = y.scrollWidth;
1082
+ y.scrollLeft = T - S - g;
1040
1083
  break;
1041
1084
  }
1042
1085
  else
@@ -1045,62 +1088,62 @@ function ms(e) {
1045
1088
  y.scrollTop = g;
1046
1089
  }
1047
1090
  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)
1091
+ }, N.componentWillUnmount = function() {
1092
+ this._resetIsScrollingTimeoutId !== null && ke(this._resetIsScrollingTimeoutId);
1093
+ }, N.render = function() {
1094
+ var o = this.props, p = 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 = [];
1095
+ if (T > 0)
1096
+ for (var V = He; V <= Ge; V++)
1097
+ ge.push(ie(p, {
1098
+ data: w,
1099
+ key: q(V, w),
1100
+ index: V,
1101
+ isScrolling: E ? Ie : void 0,
1102
+ style: this._getItemStyle(V)
1060
1103
  }));
1061
- var de = s(this.props, this._instanceProps);
1062
- return Z(Pe || _e || "div", {
1063
- className: p,
1064
- onScroll: Fe,
1104
+ var ve = i(this.props, this._instanceProps);
1105
+ return ie(ee || te || "div", {
1106
+ className: u,
1107
+ onScroll: Be,
1065
1108
  ref: this._outerRefSetter,
1066
- style: te({
1109
+ style: le({
1067
1110
  position: "relative",
1068
1111
  height: g,
1069
- width: Ve,
1112
+ width: Fe,
1070
1113
  overflow: "auto",
1071
1114
  WebkitOverflowScrolling: "touch",
1072
1115
  willChange: "transform",
1073
- direction: f
1074
- }, Ye)
1075
- }, Z(y || z || "div", {
1076
- children: ce,
1077
- ref: S,
1116
+ direction: I
1117
+ }, O)
1118
+ }, ie(y || S || "div", {
1119
+ children: ge,
1120
+ ref: z,
1078
1121
  style: {
1079
- height: G ? "100%" : de,
1080
- pointerEvents: ae ? "none" : void 0,
1081
- width: G ? de : "100%"
1122
+ height: ne ? "100%" : ve,
1123
+ pointerEvents: Ie ? "none" : void 0,
1124
+ width: ne ? ve : "100%"
1082
1125
  }
1083
1126
  }));
1084
- }, T._callPropsCallbacks = function() {
1127
+ }, N._callPropsCallbacks = function() {
1085
1128
  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);
1129
+ var o = this.props.itemCount;
1130
+ if (o > 0) {
1131
+ var p = this._getRangeToRender(), u = p[0], I = p[1], g = p[2], z = p[3];
1132
+ this._callOnItemsRendered(u, I, g, z);
1090
1133
  }
1091
1134
  }
1092
1135
  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);
1136
+ var y = this.state, S = y.scrollDirection, T = y.scrollOffset, w = y.scrollUpdateWasRequested;
1137
+ this._callOnScroll(S, T, w);
1095
1138
  }
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)
1139
+ }, N._getRangeToRender = function() {
1140
+ var o = this.props, p = o.itemCount, u = o.overscanCount, I = this.state, g = I.isScrolling, z = I.scrollDirection, y = I.scrollOffset;
1141
+ if (p === 0)
1099
1142
  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];
1143
+ var S = l(this.props, y, this._instanceProps), T = m(this.props, S, y, this._instanceProps), w = !g || z === "backward" ? Math.max(1, u) : 1, j = !g || z === "forward" ? Math.max(1, u) : 1;
1144
+ return [Math.max(0, S - w), Math.max(0, Math.min(p - 1, T + j)), S, T];
1102
1145
  }, v;
1103
- }(be), t.defaultProps = {
1146
+ }(Re), t.defaultProps = {
1104
1147
  direction: "ltr",
1105
1148
  itemData: void 0,
1106
1149
  layout: "vertical",
@@ -1108,46 +1151,46 @@ function ms(e) {
1108
1151
  useIsScrolling: !1
1109
1152
  }, t;
1110
1153
  }
1111
- var hs = function(t, n) {
1154
+ var hi = function(t, n) {
1112
1155
  t.children, t.direction, t.height, t.layout, t.innerTagName, t.outerTagName, t.width, n.instance;
1113
- }, Is = /* @__PURE__ */ ms({
1156
+ }, Ii = /* @__PURE__ */ mi({
1114
1157
  getItemOffset: function(t, n) {
1115
- var s = t.itemSize;
1116
- return n * s;
1158
+ var i = t.itemSize;
1159
+ return n * i;
1117
1160
  },
1118
1161
  getItemSize: function(t, n) {
1119
- var s = t.itemSize;
1120
- return s;
1162
+ var i = t.itemSize;
1163
+ return i;
1121
1164
  },
1122
1165
  getEstimatedTotalSize: function(t) {
1123
- var n = t.itemCount, s = t.itemSize;
1124
- return s * n;
1166
+ var n = t.itemCount, i = t.itemSize;
1167
+ return i * n;
1125
1168
  },
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) {
1169
+ getOffsetForIndexAndAlignment: function(t, n, i, r, c, l) {
1170
+ var m = t.direction, d = t.height, f = t.itemCount, A = t.itemSize, M = t.layout, v = t.width, N = m === "horizontal" || M === "horizontal", D = N ? v : d, o = Math.max(0, f * A - D), p = Math.min(o, n * A), u = Math.max(0, n * A - D + A + l);
1171
+ switch (i === "smart" && (r >= u - D && r <= p + D ? i = "auto" : i = "center"), i) {
1129
1172
  case "start":
1130
- return d;
1131
- case "end":
1132
1173
  return p;
1174
+ case "end":
1175
+ return u;
1133
1176
  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;
1177
+ var I = Math.round(u + (p - u) / 2);
1178
+ return I < Math.ceil(D / 2) ? 0 : I > o + Math.floor(D / 2) ? o : I;
1136
1179
  }
1137
1180
  case "auto":
1138
1181
  default:
1139
- return r >= p && r <= d ? r : r < p ? p : d;
1182
+ return r >= u && r <= p ? r : r < u ? u : p;
1140
1183
  }
1141
1184
  },
1142
1185
  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)));
1186
+ var i = t.itemCount, r = t.itemSize;
1187
+ return Math.max(0, Math.min(i - 1, Math.floor(n / r)));
1145
1188
  },
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);
1189
+ getStopIndexForStartIndex: function(t, n, i) {
1190
+ var r = t.direction, c = t.height, l = t.itemCount, m = t.itemSize, d = t.layout, f = t.width, A = r === "horizontal" || d === "horizontal", M = n * m, v = A ? f : c, N = Math.ceil((v + i - M) / m);
1148
1191
  return Math.max(0, Math.min(
1149
1192
  l - 1,
1150
- n + T - 1
1193
+ n + N - 1
1151
1194
  // -1 is because stop index is inclusive
1152
1195
  ));
1153
1196
  },
@@ -1158,44 +1201,44 @@ var hs = function(t, n) {
1158
1201
  t.itemSize;
1159
1202
  }
1160
1203
  });
1161
- function fs(e) {
1162
- var t = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, s = e.startIndex, r = e.stopIndex;
1163
- return !(s > n || r < t);
1204
+ function fi(e) {
1205
+ var t = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, i = e.startIndex, r = e.stopIndex;
1206
+ return !(i > n || r < t);
1164
1207
  }
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));
1208
+ function gi(e) {
1209
+ for (var t = e.isItemLoaded, n = e.itemCount, i = e.minimumBatchSize, r = e.startIndex, c = e.stopIndex, l = [], m = null, d = null, f = r; f <= c; f++) {
1210
+ var A = t(f);
1211
+ A ? d !== null && (l.push(m, d), m = d = null) : (d = f, m === null && (m = f));
1169
1212
  }
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);
1213
+ if (d !== null) {
1214
+ for (var M = Math.min(Math.max(d, m + i - 1), n - 1), v = d + 1; v <= M && !t(v); v++)
1215
+ d = v;
1216
+ l.push(m, d);
1174
1217
  }
1175
1218
  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;
1219
+ for (; l[1] - l[0] + 1 < i && l[0] > 0; ) {
1220
+ var N = l[0] - 1;
1221
+ if (!t(N))
1222
+ l[0] = N;
1180
1223
  else
1181
1224
  break;
1182
1225
  }
1183
1226
  return l;
1184
1227
  }
1185
- var vs = function(e, t) {
1228
+ var vi = function(e, t) {
1186
1229
  if (!(e instanceof t))
1187
1230
  throw new TypeError("Cannot call a class as a function");
1188
- }, Ms = function() {
1231
+ }, Mi = function() {
1189
1232
  function e(t, n) {
1190
- for (var s = 0; s < n.length; s++) {
1191
- var r = n[s];
1233
+ for (var i = 0; i < n.length; i++) {
1234
+ var r = n[i];
1192
1235
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1193
1236
  }
1194
1237
  }
1195
- return function(t, n, s) {
1196
- return n && e(t.prototype, n), s && e(t, s), t;
1238
+ return function(t, n, i) {
1239
+ return n && e(t.prototype, n), i && e(t, i), t;
1197
1240
  };
1198
- }(), ys = function(e, t) {
1241
+ }(), yi = function(e, t) {
1199
1242
  if (typeof t != "function" && t !== null)
1200
1243
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
1201
1244
  e.prototype = Object.create(t && t.prototype, {
@@ -1206,29 +1249,29 @@ var vs = function(e, t) {
1206
1249
  configurable: !0
1207
1250
  }
1208
1251
  }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
1209
- }, ze = function(e, t) {
1252
+ }, be = function(e, t) {
1210
1253
  if (!e)
1211
1254
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1212
1255
  return t && (typeof t == "object" || typeof t == "function") ? t : e;
1213
- }, As = function(e) {
1214
- ys(t, e);
1256
+ }, Ai = function(e) {
1257
+ yi(t, e);
1215
1258
  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;
1259
+ var n, i, r, c;
1260
+ vi(this, t);
1261
+ for (var l = arguments.length, m = Array(l), d = 0; d < l; d++)
1262
+ m[d] = arguments[d];
1263
+ return c = (i = (r = be(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(f) {
1264
+ var A = f.visibleStartIndex, M = f.visibleStopIndex;
1222
1265
  r._lastRenderedStartIndex = A, r._lastRenderedStopIndex = M, r._ensureRowsLoaded(A, M);
1223
- }, r._setRef = function(h) {
1224
- r._listRef = h;
1225
- }, s), ze(r, c);
1266
+ }, r._setRef = function(f) {
1267
+ r._listRef = f;
1268
+ }, i), be(r, c);
1226
1269
  }
1227
- return Ms(t, [{
1270
+ return Mi(t, [{
1228
1271
  key: "resetloadMoreItemsCache",
1229
1272
  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);
1273
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1274
+ this._memoizedUnloadedRanges = [], i && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
1232
1275
  }
1233
1276
  }, {
1234
1277
  key: "componentDidMount",
@@ -1237,33 +1280,33 @@ var vs = function(e, t) {
1237
1280
  }, {
1238
1281
  key: "render",
1239
1282
  value: function() {
1240
- var s = this.props.children;
1241
- return s({
1283
+ var i = this.props.children;
1284
+ return i({
1242
1285
  onItemsRendered: this._onItemsRendered,
1243
1286
  ref: this._setRef
1244
1287
  });
1245
1288
  }
1246
1289
  }, {
1247
1290
  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({
1291
+ value: function(i, r) {
1292
+ var c = this.props, l = c.isItemLoaded, m = c.itemCount, d = c.minimumBatchSize, f = d === void 0 ? 10 : d, A = c.threshold, M = A === void 0 ? 15 : A, v = gi({
1250
1293
  isItemLoaded: l,
1251
1294
  itemCount: m,
1252
- minimumBatchSize: h,
1253
- startIndex: Math.max(0, s - M),
1295
+ minimumBatchSize: f,
1296
+ startIndex: Math.max(0, i - M),
1254
1297
  stopIndex: Math.min(m - 1, r + M)
1255
1298
  });
1256
- (this._memoizedUnloadedRanges.length !== v.length || this._memoizedUnloadedRanges.some(function(T, D) {
1257
- return v[D] !== T;
1299
+ (this._memoizedUnloadedRanges.length !== v.length || this._memoizedUnloadedRanges.some(function(N, D) {
1300
+ return v[D] !== N;
1258
1301
  })) && (this._memoizedUnloadedRanges = v, this._loadUnloadedRanges(v));
1259
1302
  }
1260
1303
  }, {
1261
1304
  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);
1305
+ value: function(i) {
1306
+ for (var r = this, c = this.props.loadMoreItems || this.props.loadMoreRows, l = function(f) {
1307
+ var A = i[f], M = i[f + 1], v = c(A, M);
1265
1308
  v != null && v.then(function() {
1266
- if (fs({
1309
+ if (fi({
1267
1310
  lastRenderedStartIndex: r._lastRenderedStartIndex,
1268
1311
  lastRenderedStopIndex: r._lastRenderedStopIndex,
1269
1312
  startIndex: A,
@@ -1274,78 +1317,78 @@ var vs = function(e, t) {
1274
1317
  typeof r._listRef.resetAfterIndex == "function" ? r._listRef.resetAfterIndex(A, !0) : (typeof r._listRef._getItemStyleCache == "function" && r._listRef._getItemStyleCache(-1), r._listRef.forceUpdate());
1275
1318
  }
1276
1319
  });
1277
- }, m = 0; m < s.length; m += 2)
1320
+ }, m = 0; m < i.length; m += 2)
1278
1321
  l(m);
1279
1322
  }
1280
1323
  }]), t;
1281
- }(be);
1282
- const Ts = /* @__PURE__ */ o("div")({
1324
+ }(Re);
1325
+ const Ti = /* @__PURE__ */ a("div")({
1283
1326
  name: "Container",
1284
1327
  class: "culdu4a",
1285
1328
  propsAsIs: !1
1286
- }), Ns = /* @__PURE__ */ o("div")({
1329
+ }), Ni = /* @__PURE__ */ a("div")({
1287
1330
  name: "Position",
1288
1331
  class: "pwf8e69",
1289
1332
  propsAsIs: !1
1290
- }), Ds = /* @__PURE__ */ o("img")({
1333
+ }), Di = /* @__PURE__ */ a("img")({
1291
1334
  name: "Avatar",
1292
1335
  class: "atf4yh4",
1293
1336
  propsAsIs: !1
1294
- }), Ss = /* @__PURE__ */ o("div")({
1337
+ }), Si = /* @__PURE__ */ a("div")({
1295
1338
  name: "AvatarPlaceholder",
1296
1339
  class: "a1dg29ja",
1297
1340
  propsAsIs: !1
1298
- }), zs = /* @__PURE__ */ o("div")({
1341
+ }), zi = /* @__PURE__ */ a("div")({
1299
1342
  name: "Content",
1300
1343
  class: "c10a68rc",
1301
1344
  propsAsIs: !1
1302
- }), xs = /* @__PURE__ */ o("div")({
1345
+ }), xi = /* @__PURE__ */ a("div")({
1303
1346
  name: "NameContainer",
1304
1347
  class: "nc4kck5",
1305
1348
  propsAsIs: !1
1306
- }), Os = /* @__PURE__ */ o("span")({
1349
+ }), Oi = /* @__PURE__ */ a("span")({
1307
1350
  name: "Name",
1308
1351
  class: "njsrqgr",
1309
1352
  propsAsIs: !1
1310
- }), js = () => j, ks = /* @__PURE__ */ o(js())({
1353
+ }), ki = () => k, wi = /* @__PURE__ */ a(ki())({
1311
1354
  name: "CurrentUserBadge",
1312
1355
  class: "c17uc4zr",
1313
1356
  propsAsIs: !0
1314
- }), ws = ({
1357
+ }), ji = ({
1315
1358
  rank: e,
1316
1359
  avatar: t,
1317
1360
  name: n,
1318
- points: s,
1361
+ points: i,
1319
1362
  isCurrentUser: r,
1320
1363
  openItemDetail: c,
1321
1364
  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" })
1365
+ }) => /* @__PURE__ */ h(Ti, { onClick: c, style: l, children: [
1366
+ /* @__PURE__ */ s(Ni, { children: e || 0 }),
1367
+ /* @__PURE__ */ h(zi, { children: [
1368
+ t ? /* @__PURE__ */ s(Di, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ s(Si, { children: Ue(n || "") }),
1369
+ /* @__PURE__ */ h(xi, { children: [
1370
+ /* @__PURE__ */ s(Oi, { children: n || "" }),
1371
+ r && /* @__PURE__ */ s(wi, { name: "icon-star" })
1329
1372
  ] })
1330
1373
  ] }),
1331
- /* @__PURE__ */ i("div", { children: Le(s) })
1332
- ] }), bs = /* @__PURE__ */ o("div")({
1374
+ /* @__PURE__ */ s("div", { children: qe(i) })
1375
+ ] }), bi = /* @__PURE__ */ a("div")({
1333
1376
  name: "ScrollContainer",
1334
1377
  class: "s13d8sg6",
1335
1378
  propsAsIs: !1
1336
- }), Cs = ({
1379
+ }), Ci = ({
1337
1380
  items: e,
1338
1381
  currentUserId: t,
1339
1382
  openItemDetail: n,
1340
- fetchMore: s
1341
- }) => /* @__PURE__ */ i(Ze, { children: ({ width: r, height: c }) => /* @__PURE__ */ i(
1342
- As,
1383
+ fetchMore: i
1384
+ }) => /* @__PURE__ */ s(Je, { children: ({ width: r, height: c }) => /* @__PURE__ */ s(
1385
+ Ai,
1343
1386
  {
1344
1387
  isItemLoaded: (l) => l < e.length,
1345
1388
  itemCount: e.length + 1,
1346
- loadMoreItems: s,
1347
- children: ({ onItemsRendered: l, ref: m }) => /* @__PURE__ */ i(bs, { children: /* @__PURE__ */ i(
1348
- Is,
1389
+ loadMoreItems: i,
1390
+ children: ({ onItemsRendered: l, ref: m }) => /* @__PURE__ */ s(bi, { children: /* @__PURE__ */ s(
1391
+ Ii,
1349
1392
  {
1350
1393
  itemSize: 56,
1351
1394
  onItemsRendered: l,
@@ -1353,25 +1396,25 @@ const Ts = /* @__PURE__ */ o("div")({
1353
1396
  itemCount: e.length,
1354
1397
  width: r,
1355
1398
  height: c,
1356
- children: ({ index: u, style: h }) => /* @__PURE__ */ i(
1357
- ws,
1399
+ children: ({ index: d, style: f }) => /* @__PURE__ */ s(
1400
+ ji,
1358
1401
  {
1359
- style: { ...h, maxHeight: 48 },
1360
- ...e[u],
1361
- openItemDetail: () => n(e[u].userId),
1362
- isCurrentUser: !!t && t === e[u].userId
1402
+ style: { ...f, maxHeight: 48 },
1403
+ ...e[d],
1404
+ openItemDetail: () => n(e[d].userId),
1405
+ isCurrentUser: !!t && t === e[d].userId
1363
1406
  },
1364
- e[u].userId
1407
+ e[d].userId
1365
1408
  )
1366
1409
  }
1367
1410
  ) })
1368
1411
  }
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,
1412
+ ) }), $i = ({ deepLink: e }) => {
1413
+ const { data: t } = U(e.$store), n = t == null ? void 0 : t.url, i = e.desktopLink;
1414
+ return /* @__PURE__ */ s(
1415
+ Ke,
1373
1416
  {
1374
- inviteLink: n || s,
1417
+ inviteLink: n || i,
1375
1418
  socialLinks: [
1376
1419
  {
1377
1420
  icon: "icon-facebook",
@@ -1388,265 +1431,265 @@ const Ts = /* @__PURE__ */ o("div")({
1388
1431
  inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
1389
1432
  }
1390
1433
  );
1391
- }, Ls = ({ gamification: e }) => {
1392
- const { data: t } = L(e.leaderboardList.$store);
1393
- return t != null && t.length ? /* @__PURE__ */ i(
1394
- Cs,
1434
+ }, Li = ({ gamification: e }) => {
1435
+ const { data: t } = U(e.leaderboardList.$store);
1436
+ return t != null && t.length ? /* @__PURE__ */ s(
1437
+ Ci,
1395
1438
  {
1396
1439
  fetchMore: e.leaderboardList.fetchMore,
1397
1440
  items: t,
1398
1441
  openItemDetail: e.openUser,
1399
1442
  currentUserId: e.currentUserId.get()
1400
1443
  }
1401
- ) : /* @__PURE__ */ i($s, { deepLink: e.deepLink });
1402
- }, Es = /* @__PURE__ */ o("div")({
1444
+ ) : /* @__PURE__ */ s($i, { deepLink: e.deepLink });
1445
+ }, Ei = /* @__PURE__ */ a("div")({
1403
1446
  name: "QuestionItem",
1404
1447
  class: "q1w97g3p",
1405
1448
  propsAsIs: !1
1406
- }), Rs = /* @__PURE__ */ o("div")({
1449
+ }), Ri = /* @__PURE__ */ a("div")({
1407
1450
  name: "QuestionCaption",
1408
1451
  class: "q2sl39u",
1409
1452
  propsAsIs: !1
1410
- }), Qs = /* @__PURE__ */ o("div")({
1453
+ }), Qi = /* @__PURE__ */ a("div")({
1411
1454
  name: "QuestionBody",
1412
1455
  class: "qd5h0uc",
1413
1456
  propsAsIs: !1
1414
- }), Us = /* @__PURE__ */ o("div")({
1457
+ }), Ui = /* @__PURE__ */ a("div")({
1415
1458
  name: "QuestionAction",
1416
1459
  class: "q105uluy",
1417
1460
  propsAsIs: !1
1418
- }), qs = () => j, B = /* @__PURE__ */ o(qs())({
1461
+ }), qi = () => k, K = /* @__PURE__ */ a(qi())({
1419
1462
  name: "QuestionActionIcon",
1420
1463
  class: "q1fa0b9h",
1421
1464
  propsAsIs: !0
1422
- }), Ps = () => j, _s = /* @__PURE__ */ o(Ps())({
1465
+ }), Pi = () => k, _i = /* @__PURE__ */ a(Pi())({
1423
1466
  name: "QuestionTypeIcon",
1424
1467
  class: "qxlt78s",
1425
1468
  propsAsIs: !0
1426
- }), Ys = /* @__PURE__ */ o("div")({
1469
+ }), Yi = /* @__PURE__ */ a("div")({
1427
1470
  name: "QuestionTypeLabel",
1428
1471
  class: "qmg0vkx",
1429
1472
  propsAsIs: !1
1430
- }), Ws = /* @__PURE__ */ o("div")({
1473
+ }), Wi = /* @__PURE__ */ a("div")({
1431
1474
  name: "QuestionContent",
1432
1475
  class: "q1uz5j1g",
1433
1476
  propsAsIs: !1
1434
- }), Vs = /* @__PURE__ */ o("button")({
1477
+ }), Vi = /* @__PURE__ */ a("button")({
1435
1478
  name: "PlayButton",
1436
1479
  class: "p1pba9p1",
1437
1480
  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 = ({
1481
+ }), Fi = {
1482
+ [G.LOST]: /* @__PURE__ */ s(K, { name: "incorrectVoted" }),
1483
+ [G.WON]: /* @__PURE__ */ s(K, { name: "icon-check" }),
1484
+ [G.UNSET]: /* @__PURE__ */ s(K, { name: "icon-arrow" }),
1485
+ [G.DNP]: /* @__PURE__ */ s(K, { name: "icon-arrow" })
1486
+ }, Bi = ({
1444
1487
  questionId: e,
1445
1488
  questionType: t,
1446
1489
  questionStatus: n,
1447
- subject: s,
1490
+ subject: i,
1448
1491
  openForVoting: r,
1449
1492
  openQuestion: c,
1450
1493
  status: l
1451
1494
  }) => {
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,
1495
+ const m = $e[t], d = Fi[l];
1496
+ return m ? /* @__PURE__ */ h(Ei, { onClick: () => c == null ? void 0 : c(e), children: [
1497
+ /* @__PURE__ */ h(Wi, { children: [
1498
+ /* @__PURE__ */ h(Ri, { children: [
1499
+ /* @__PURE__ */ s(
1500
+ _i,
1458
1501
  {
1459
1502
  "data-type-trivia": t === x.TRIVIA,
1460
1503
  "data-type-poll": t === x.POLL,
1461
1504
  name: m.iconName
1462
1505
  }
1463
1506
  ),
1464
- /* @__PURE__ */ I(Ys, { children: [
1507
+ /* @__PURE__ */ h(Yi, { children: [
1465
1508
  m.label,
1466
- t === x.TRIVIA && n === $.RESOLVED && " • Expired"
1509
+ t === x.TRIVIA && n === L.RESOLVED && " • Expired"
1467
1510
  ] })
1468
1511
  ] }),
1469
- /* @__PURE__ */ i(Qs, { children: s || "" })
1512
+ /* @__PURE__ */ s(Qi, { children: i || "" })
1470
1513
  ] }),
1471
- /* @__PURE__ */ i(Us, { children: r ? /* @__PURE__ */ i(Vs, { children: "Play" }) : u })
1514
+ /* @__PURE__ */ s(Ui, { children: r ? /* @__PURE__ */ s(Vi, { children: "Play" }) : d })
1472
1515
  ] }) : null;
1473
- }, Hs = /* @__PURE__ */ o("div")({
1516
+ }, Hi = /* @__PURE__ */ a("div")({
1474
1517
  name: "Container",
1475
1518
  class: "cll3md7",
1476
1519
  propsAsIs: !1
1477
- }), Gs = /* @__PURE__ */ o("button")({
1520
+ }), Gi = /* @__PURE__ */ a("button")({
1478
1521
  name: "ActionBtn",
1479
1522
  class: "a10g1iik",
1480
1523
  propsAsIs: !1
1481
- }), Zs = ({
1524
+ }), Zi = ({
1482
1525
  openInsight: e,
1483
1526
  questionId: t,
1484
1527
  ...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")({
1528
+ }) => /* @__PURE__ */ h(Hi, { children: [
1529
+ /* @__PURE__ */ s(Ve, { questionId: t, ...n }),
1530
+ e && /* @__PURE__ */ s(Gi, { onClick: () => e(t), children: "View Insight" })
1531
+ ] }), Ji = /* @__PURE__ */ a("div")({
1489
1532
  name: "Container",
1490
1533
  class: "cl56x6b",
1491
1534
  propsAsIs: !1
1492
- }), Ks = () => Ke, Xs = /* @__PURE__ */ o(Ks())({
1535
+ }), Ki = () => Xe, Xi = /* @__PURE__ */ a(Ki())({
1493
1536
  name: "ActionButton",
1494
1537
  class: "a11pzf92",
1495
1538
  propsAsIs: !0
1496
- }), ei = /* @__PURE__ */ o("div")({
1539
+ }), es = /* @__PURE__ */ a("div")({
1497
1540
  name: "DateTime",
1498
1541
  class: "d1hbaleq",
1499
1542
  propsAsIs: !1
1500
- }), ti = /* @__PURE__ */ o("blockquote")({
1543
+ }), ts = /* @__PURE__ */ a("blockquote")({
1501
1544
  name: "Quote",
1502
1545
  class: "qvvgqjm",
1503
1546
  propsAsIs: !1
1504
- }), ni = ({
1547
+ }), ns = ({
1505
1548
  openTweet: e,
1506
1549
  created: t,
1507
1550
  ...n
1508
1551
  }) => {
1509
- const s = w(() => {
1552
+ const i = C(() => {
1510
1553
  if (t) {
1511
1554
  const r = new Date(t);
1512
- if (oe(r))
1555
+ if (he(r))
1513
1556
  return {
1514
- date: ie(r),
1515
- time: re(r)
1557
+ date: pe(r),
1558
+ time: me(r)
1516
1559
  };
1517
1560
  }
1518
1561
  return null;
1519
1562
  }, [t]);
1520
- return /* @__PURE__ */ I(Js, { children: [
1521
- s && /* @__PURE__ */ I(ei, { children: [
1522
- s.date,
1563
+ return /* @__PURE__ */ h(Ji, { children: [
1564
+ i && /* @__PURE__ */ h(es, { children: [
1565
+ i.date,
1523
1566
  " · ",
1524
- s.time
1567
+ i.time
1525
1568
  ] }),
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" })
1569
+ n.title && /* @__PURE__ */ s(ts, { children: n.title }),
1570
+ /* @__PURE__ */ s(Ee, { ...n }),
1571
+ e && /* @__PURE__ */ s(Xi, { onClick: () => e(n.tweetId), children: "View Insight" })
1529
1572
  ] });
1530
- }, si = /* @__PURE__ */ o("div")({
1573
+ }, is = /* @__PURE__ */ a("div")({
1531
1574
  name: "QuestionsContainer",
1532
1575
  class: "qvghv3l",
1533
1576
  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") {
1577
+ }), ss = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ s(is, { children: e == null ? void 0 : e.map((n) => {
1578
+ var i, r, c;
1579
+ if (n.type === "question" && ((i = n.attributes) == null ? void 0 : i.attributes.case) === "question") {
1537
1580
  const l = n.attributes.attributes.value;
1538
- return /* @__PURE__ */ i(Bs, { openQuestion: t, ...l }, l.questionId);
1581
+ return /* @__PURE__ */ s(Bi, { openQuestion: t, ...l }, l.questionId);
1539
1582
  }
1540
1583
  if (n.type === "insight" && ((r = n.attributes) == null ? void 0 : r.attributes.case) === "insight") {
1541
1584
  const l = n.attributes.attributes.value;
1542
- return /* @__PURE__ */ i(Zs, { openInsight: t, ...l }, l.questionId);
1585
+ return /* @__PURE__ */ s(Zi, { openInsight: t, ...l }, l.questionId);
1543
1586
  }
1544
1587
  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);
1588
+ const l = n.attributes.attributes.value, m = n.attributes.id, d = n.attributes.created;
1589
+ return /* @__PURE__ */ s(ns, { openTweet: t, ...l, tweetId: m, created: d }, m);
1547
1590
  }
1548
1591
  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 }) => {
1592
+ }) }), rs = ({ store: e, openQuestion: t }) => {
1593
+ const n = U(e);
1594
+ return n != null && n.data ? /* @__PURE__ */ s(ss, { openQuestion: t, questions: n.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
1595
+ }, os = ({ userSummary: e }) => {
1553
1596
  var t;
1554
- const [n, s] = Q(void 0);
1555
- return we(() => {
1597
+ const [n, i] = $(void 0);
1598
+ return ue(() => {
1556
1599
  const r = e.subscribe((c) => {
1557
- c != null && c.data && s(c.data);
1600
+ c != null && c.data && i(c.data);
1558
1601
  });
1559
1602
  return () => {
1560
1603
  r();
1561
1604
  };
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 = ({
1605
+ }, [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..." });
1606
+ }, as = ({
1564
1607
  gamification: e
1565
1608
  }) => {
1566
- const [t, n] = Q(H.HOME);
1567
- return /* @__PURE__ */ I("div", {
1609
+ const [t, n] = $(X.HOME);
1610
+ return /* @__PURE__ */ h("div", {
1568
1611
  style: {
1569
1612
  height: "100%",
1570
1613
  display: "flex",
1571
1614
  flexDirection: "column",
1572
1615
  overflow: "hidden"
1573
1616
  },
1574
- children: [/* @__PURE__ */ i(ee, {
1617
+ children: [/* @__PURE__ */ s(ae, {
1575
1618
  style: {
1576
1619
  paddingBottom: "4px"
1577
1620
  },
1578
- children: /* @__PURE__ */ i(rs, {
1621
+ children: /* @__PURE__ */ s(ri, {
1579
1622
  activePage: t,
1580
1623
  toggleActivePage: n
1581
1624
  })
1582
- }), t === H.HOME && /* @__PURE__ */ I(se, {
1583
- children: [/* @__PURE__ */ i(ee, {
1625
+ }), t === X.HOME && /* @__PURE__ */ h(de, {
1626
+ children: [/* @__PURE__ */ s(ae, {
1584
1627
  style: {
1585
1628
  paddingTop: "12px"
1586
1629
  },
1587
- children: /* @__PURE__ */ i(oi, {
1630
+ children: /* @__PURE__ */ s(os, {
1588
1631
  userSummary: e.userSummary
1589
1632
  })
1590
- }), /* @__PURE__ */ i(Xe, {
1591
- children: /* @__PURE__ */ i(ri, {
1633
+ }), /* @__PURE__ */ s(et, {
1634
+ children: /* @__PURE__ */ s(rs, {
1592
1635
  openQuestion: e.openQuestion,
1593
1636
  store: e.feedList.getStore()
1594
1637
  })
1595
1638
  })]
1596
- }), t === H.LEADERBOARD && /* @__PURE__ */ i("div", {
1639
+ }), t === X.LEADERBOARD && /* @__PURE__ */ s("div", {
1597
1640
  className: "c1bp9dj2",
1598
- children: /* @__PURE__ */ i(Ls, {
1641
+ children: /* @__PURE__ */ s(Li, {
1599
1642
  gamification: e
1600
1643
  })
1601
1644
  })]
1602
1645
  });
1603
- }, li = () => et, xe = /* @__PURE__ */ o(li())({
1646
+ }, ls = () => tt, Ce = /* @__PURE__ */ a(ls())({
1604
1647
  name: "OpenedContainer",
1605
1648
  class: "oar61gl",
1606
1649
  propsAsIs: !0
1607
- }), ci = /* @__PURE__ */ o("div")({
1650
+ }), cs = /* @__PURE__ */ a("div")({
1608
1651
  name: "UserContainer",
1609
1652
  class: "u14zaal4",
1610
1653
  propsAsIs: !1
1611
- }), di = ({
1654
+ }), ds = ({
1612
1655
  correct: e,
1613
1656
  incorrect: t
1614
1657
  }) => {
1615
1658
  const n = e + t;
1616
1659
  return n === 0 ? 0 : Math.round(e / n * 100);
1617
- }, hi = ({
1660
+ }, hs = ({
1618
1661
  gamification: e,
1619
1662
  className: t
1620
1663
  }) => {
1621
- const n = L(e.openedQuestion.$store), s = L(e.openedUser);
1622
- return /* @__PURE__ */ I(R, {
1623
- children: [n && /* @__PURE__ */ i(xe, {
1664
+ const n = U(e.openedQuestion.$store), i = U(e.openedUser);
1665
+ return /* @__PURE__ */ h(b, {
1666
+ children: [n && /* @__PURE__ */ s(Ce, {
1624
1667
  className: t,
1625
- children: /* @__PURE__ */ i(es, {
1668
+ children: /* @__PURE__ */ s(ei, {
1626
1669
  gamification: e
1627
1670
  })
1628
- }), s && /* @__PURE__ */ i(xe, {
1671
+ }), i && /* @__PURE__ */ s(Ce, {
1629
1672
  className: t,
1630
- children: /* @__PURE__ */ I(ci, {
1631
- children: [/* @__PURE__ */ i(Ce, {
1673
+ children: /* @__PURE__ */ h(cs, {
1674
+ children: [/* @__PURE__ */ s(Qe, {
1632
1675
  label: "Friend's Rank",
1633
1676
  close: e.closeUser
1634
- }), /* @__PURE__ */ i(ee, {
1635
- children: /* @__PURE__ */ i(Ee, {
1636
- ...s,
1637
- successRate: di(s)
1677
+ }), /* @__PURE__ */ s(ae, {
1678
+ children: /* @__PURE__ */ s(Pe, {
1679
+ ...i,
1680
+ successRate: ds(i)
1638
1681
  })
1639
1682
  })]
1640
1683
  })
1641
- }), /* @__PURE__ */ i(se, {
1684
+ }), /* @__PURE__ */ s(de, {
1642
1685
  className: t,
1643
1686
  "data-nav": "true",
1644
- children: /* @__PURE__ */ i(ai, {
1687
+ children: /* @__PURE__ */ s(as, {
1645
1688
  gamification: e
1646
1689
  })
1647
1690
  })]
1648
1691
  });
1649
1692
  };
1650
1693
  export {
1651
- hi as default
1694
+ hs as default
1652
1695
  };