@streamlayer/react 0.32.3 → 0.32.5

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