@streamlayer/react 0.30.6 → 0.31.1

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,141 +1,149 @@
1
1
  import { jsxs as p, jsx as s, Fragment as b } from "react/jsx-runtime";
2
- import { s as o, i as j } from "./index3.js";
2
+ import { s as o, i as j } from "./index4.js";
3
3
  import { useStore as k } from "@nanostores/react";
4
4
  import { o as Ne, r as te, w as $e, A as Re, O as Qe, a as K, n as Ue, d as _e } from "./masters2.js";
5
- import { useState as R, useCallback as F, useMemo as W, createElement as H, PureComponent as Ae } from "react";
5
+ import { useState as R, useCallback as F, useMemo as W, createElement as H, PureComponent as ye } from "react";
6
6
  import { QuestionType as x, QuestionStatus as Q, QuestionImages as $, PickHistoryStatus as q } from "@streamlayer/sdk-web-types";
7
- import { o as ye, i as Te, r as qe, a as Ye, n as Pe } from "./common.js";
8
- import { CountdownCircleTimer as We } from "react-countdown-circle-timer";
7
+ import { m as qe } from "./index3.js";
8
+ import "react-countup";
9
+ import { CountdownCircleTimer as Pe } from "react-countdown-circle-timer";
9
10
  import { E } from "./index2.js";
10
11
  import "@streamlayer/sdk-web-interfaces";
11
12
  import "@streamlayer/sdk-web-notifications";
12
13
  import "@lottiefiles/react-lottie-player";
13
14
  import "./useStreamLayerApp.js";
14
15
  import "@streamlayer/sdk-web";
15
- const Ve = /* @__PURE__ */ o("div")({
16
+ const Ye = /* @__PURE__ */ o("div")({
16
17
  name: "Container",
17
18
  class: "c1vwopgc",
18
19
  propsAsIs: !1
19
- }), Fe = /* @__PURE__ */ o("div")({
20
+ }), We = /* @__PURE__ */ o("div")({
20
21
  name: "QuestionTypeWrap",
21
22
  class: "qyktpt0",
22
23
  propsAsIs: !1
23
- }), Be = () => j, He = /* @__PURE__ */ o(Be())({
24
+ }), Ve = () => j, Fe = /* @__PURE__ */ o(Ve())({
24
25
  name: "QuestionTypeIcon",
25
26
  class: "q951jdx",
26
27
  propsAsIs: !0
27
- }), Ze = /* @__PURE__ */ o("span")({
28
+ }), Be = /* @__PURE__ */ o("span")({
28
29
  name: "QuestionTypeTitle",
29
30
  class: "qss5f0e",
30
31
  propsAsIs: !1
31
- }), Ge = /* @__PURE__ */ o("button")({
32
+ }), He = /* @__PURE__ */ o("button")({
32
33
  name: "CloseButton",
33
34
  class: "c1ao1jtv",
34
35
  propsAsIs: !1
35
- }), Je = () => j, Ke = /* @__PURE__ */ o(Je())({
36
+ }), Ze = () => j, Ge = /* @__PURE__ */ o(Ze())({
36
37
  name: "CloseIcon",
37
38
  class: "cvsl7l3",
38
39
  propsAsIs: !0
39
- }), De = ({ type: e, close: t, label: n }) => {
40
+ }), Ae = ({ type: e, close: t, label: n }) => {
40
41
  const i = e ? Ne[e] : { label: n, iconName: void 0 };
41
- return /* @__PURE__ */ p(Ve, { children: [
42
- /* @__PURE__ */ p(Fe, { children: [
43
- (i == null ? void 0 : i.iconName) && /* @__PURE__ */ s(He, { name: i.iconName }),
44
- (i == null ? void 0 : i.label) && /* @__PURE__ */ s(Ze, { children: i.label })
42
+ return /* @__PURE__ */ p(Ye, { children: [
43
+ /* @__PURE__ */ p(We, { children: [
44
+ (i == null ? void 0 : i.iconName) && /* @__PURE__ */ s(Fe, { name: i.iconName }),
45
+ (i == null ? void 0 : i.label) && /* @__PURE__ */ s(Be, { children: i.label })
45
46
  ] }),
46
- /* @__PURE__ */ s(Ge, { onClick: t, children: /* @__PURE__ */ s(Ke, { name: "icon-cross" }) })
47
+ /* @__PURE__ */ s(He, { onClick: t, children: /* @__PURE__ */ s(Ge, { name: "icon-cross" }) })
47
48
  ] });
48
- }, Xe = /* @__PURE__ */ o("div")({
49
+ }, Te = (e) => e.split(/\s+/).map((t) => t[0]).join("").toUpperCase(), De = (e) => e ? e.toLocaleString("en-US") : "0", Je = (e) => e.toLocaleDateString("en-US", {
50
+ weekday: "short",
51
+ month: "short",
52
+ day: "numeric"
53
+ }), Ke = (e) => e.toLocaleTimeString("en-US", {
54
+ hour: "2-digit",
55
+ minute: "2-digit"
56
+ }), Xe = (e) => !isNaN(e.getTime()), et = /* @__PURE__ */ o("div")({
49
57
  name: "Container",
50
58
  class: "c1zy8a",
51
59
  propsAsIs: !1
52
- }), et = /* @__PURE__ */ o("div")({
60
+ }), tt = /* @__PURE__ */ o("div")({
53
61
  name: "Title",
54
62
  class: "t1vih9p5",
55
63
  propsAsIs: !1
56
- }), tt = /* @__PURE__ */ o("div")({
64
+ }), nt = /* @__PURE__ */ o("div")({
57
65
  name: "Indicator",
58
66
  class: "i1fbnvpb",
59
67
  propsAsIs: !1
60
- }), oe = ({ indicator: e, title: t }) => /* @__PURE__ */ p(Xe, { children: [
61
- /* @__PURE__ */ s(et, { children: t }),
62
- /* @__PURE__ */ s(tt, { children: e })
63
- ] }), nt = /* @__PURE__ */ o("div")({
68
+ }), oe = ({ indicator: e, title: t }) => /* @__PURE__ */ p(et, { children: [
69
+ /* @__PURE__ */ s(tt, { children: t }),
70
+ /* @__PURE__ */ s(nt, { children: e })
71
+ ] }), st = /* @__PURE__ */ o("div")({
64
72
  name: "Container",
65
73
  class: "ctmhwyc",
66
74
  propsAsIs: !1
67
- }), st = /* @__PURE__ */ o("div")({
75
+ }), it = /* @__PURE__ */ o("div")({
68
76
  name: "Indicator",
69
77
  class: "i1jri200",
70
78
  propsAsIs: !1
71
- }), it = /* @__PURE__ */ o("div")({
79
+ }), rt = /* @__PURE__ */ o("div")({
72
80
  name: "Title",
73
81
  class: "t8s05oq",
74
82
  propsAsIs: !1
75
- }), Y = ({ indicator: e, title: t }) => /* @__PURE__ */ p(nt, { children: [
76
- /* @__PURE__ */ s(st, { children: e }),
77
- /* @__PURE__ */ s(it, { children: t })
78
- ] }), rt = /* @__PURE__ */ o("div")({
83
+ }), P = ({ indicator: e, title: t }) => /* @__PURE__ */ p(st, { children: [
84
+ /* @__PURE__ */ s(it, { children: e }),
85
+ /* @__PURE__ */ s(rt, { children: t })
86
+ ] }), ot = /* @__PURE__ */ o("div")({
79
87
  name: "Container",
80
88
  class: "c1yrpn9o",
81
89
  propsAsIs: !1
82
- }), ot = /* @__PURE__ */ o("div")({
90
+ }), at = /* @__PURE__ */ o("div")({
83
91
  name: "TopInfo",
84
92
  class: "t17fwahh",
85
93
  propsAsIs: !1
86
- }), at = /* @__PURE__ */ o("div")({
94
+ }), lt = /* @__PURE__ */ o("div")({
87
95
  name: "BottomInfo",
88
96
  class: "by6w7e9",
89
97
  propsAsIs: !1
90
- }), lt = /* @__PURE__ */ o("div")({
98
+ }), ct = /* @__PURE__ */ o("div")({
91
99
  name: "User",
92
100
  class: "u1g7arbm",
93
101
  propsAsIs: !1
94
- }), ct = /* @__PURE__ */ o("img")({
102
+ }), dt = /* @__PURE__ */ o("img")({
95
103
  name: "Avatar",
96
104
  class: "a1ldeata",
97
105
  propsAsIs: !1
98
- }), dt = /* @__PURE__ */ o("div")({
106
+ }), ut = /* @__PURE__ */ o("div")({
99
107
  name: "UserInfo",
100
108
  class: "u10d4koz",
101
109
  propsAsIs: !1
102
- }), ut = /* @__PURE__ */ o("div")({
110
+ }), pt = /* @__PURE__ */ o("div")({
103
111
  name: "UserName",
104
112
  class: "u1q6roj0",
105
113
  propsAsIs: !1
106
- }), pt = /* @__PURE__ */ o("div")({
114
+ }), mt = /* @__PURE__ */ o("div")({
107
115
  name: "UserRating",
108
116
  class: "ui0m425",
109
117
  propsAsIs: !1
110
- }), mt = /* @__PURE__ */ o("img")({
118
+ }), It = /* @__PURE__ */ o("img")({
111
119
  name: "TrophyIcon",
112
120
  class: "t1el3mrn",
113
121
  propsAsIs: !1
114
- }), It = /* @__PURE__ */ o("div")({
122
+ }), ht = /* @__PURE__ */ o("div")({
115
123
  name: "Rts",
116
124
  class: "r2vgnxv",
117
125
  propsAsIs: !1
118
- }), ht = /* @__PURE__ */ o("div")({
126
+ }), ft = /* @__PURE__ */ o("div")({
119
127
  name: "RtsIndicator",
120
128
  class: "roqn06j",
121
129
  propsAsIs: !1
122
- }), ft = /* @__PURE__ */ o("div")({
130
+ }), gt = /* @__PURE__ */ o("div")({
123
131
  name: "RtsLabel",
124
132
  class: "r15adx7c",
125
133
  propsAsIs: !1
126
- }), gt = /* @__PURE__ */ o("div")({
134
+ }), Mt = /* @__PURE__ */ o("div")({
127
135
  name: "Divider",
128
136
  class: "dv59lta",
129
137
  propsAsIs: !1
130
- }), Mt = /* @__PURE__ */ o("div")({
138
+ }), vt = /* @__PURE__ */ o("div")({
131
139
  name: "Ranks",
132
140
  class: "r55lotb",
133
141
  propsAsIs: !1
134
- }), vt = /* @__PURE__ */ o("div")({
142
+ }), Nt = /* @__PURE__ */ o("div")({
135
143
  name: "Statistics",
136
144
  class: "s1knfgqt",
137
145
  propsAsIs: !1
138
- }), Nt = /* @__PURE__ */ o("div")({
146
+ }), yt = /* @__PURE__ */ o("div")({
139
147
  name: "AvatarPlaceholder",
140
148
  class: "a1mqo824",
141
149
  propsAsIs: !1
@@ -143,34 +151,34 @@ const Ve = /* @__PURE__ */ o("div")({
143
151
  name: "UserAccountBtn",
144
152
  class: "uxareh6",
145
153
  propsAsIs: !1
146
- }), yt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY5MTk3IDQuNjY2NjJDMy42OTE5NyA1Ljk5NzA1IDMuOTI5MTQgNy4xNzc4NyA0LjQwMzUgOC4yMDkxMkMzLjQ5OTY2IDguMDI0NTEgMi43NDQ4NyA3LjY2NDg2IDIuMTM5MSA3LjEzMDE0QzEuNTMzMzMgNi41OTU0MiAxLjIzMDQ2IDYuMDc5OCAxLjIzMDQ2ID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MxMC4wMzE5IDEzLjIyMjEgOS43MTk0NSAxMy4xMDQzIDkuNTIzOTQgMTIuODY4OEM5LjMyODQzIDEyLjYzMzMgOS4yMzA2OCAxMi4zNDM2IDkuMjMwNjggMTEuOTk5OUM5LjIzMDY4IDExLjY3NTIgOS4yNzcxNSAxMS4zOTA0IDkuMzcwMSAxMS4xNDUzQzkuNDYzMDUgMTAuOTAwMiA5LjYzMTMxIDEwLjY2OTUgOS44NzQ5IDEwLjQ1M0MxMC4yMTQ2IDEwLjE5MiAxMC41MTkxIDkuODg5NjcgMTAuNzg4NCA5LjU0NTkyQzExLjUxMjcgOS41MTQwOSAxMi4yMDM0IDkuMzcyNDYgMTIuODYwNCA5LjEyMTAxQzEzLjUxNzUgOC44Njk1NyAxNC4wNzIgOC41NTkyNCAxNC41MjM5IDguMTkwMDNDMTQuOTc1OCA3LjgyMDgyIDE1LjMzNDggNy40MDcwNSAxNS42MDA4IDYuOTQ4NzJDMTUuODY2OCA2LjQ5MDM5IDE1Ljk5OTggNi4wMzUyNSAxNS45OTk4IDUuNTgzMjlaTTYuNzYwNDcgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=", Se = ({
147
155
  avatar: e,
148
156
  name: t,
149
157
  points: n,
150
158
  friendsRank: i,
151
159
  rank: r,
152
- streak: I,
160
+ streak: m,
153
161
  correct: u,
154
- incorrect: m,
162
+ incorrect: I,
155
163
  inTop: d,
156
164
  successRate: h
157
- }) => /* @__PURE__ */ p(rt, { children: [
158
- /* @__PURE__ */ s(ot, { children: /* @__PURE__ */ p(lt, { children: [
165
+ }) => /* @__PURE__ */ p(ot, { children: [
166
+ /* @__PURE__ */ s(at, { children: /* @__PURE__ */ p(ct, { children: [
159
167
  /* @__PURE__ */ p(At, { children: [
160
- e && /* @__PURE__ */ s(ct, { alt: "avatar", src: e }),
161
- !e && /* @__PURE__ */ s(Nt, { children: ye(t || "") })
168
+ e && /* @__PURE__ */ s(dt, { alt: "avatar", src: e }),
169
+ !e && /* @__PURE__ */ s(yt, { children: Te(t || "") })
162
170
  ] }),
163
- /* @__PURE__ */ p(dt, { children: [
164
- /* @__PURE__ */ s(ut, { children: t }),
165
- /* @__PURE__ */ p(pt, { children: [
166
- /* @__PURE__ */ p(It, { children: [
167
- /* @__PURE__ */ s(mt, { alt: "rank-icon", src: yt }),
168
- /* @__PURE__ */ p(ht, { children: [
169
- Te(n),
170
- /* @__PURE__ */ s(ft, { children: "PTS" })
171
+ /* @__PURE__ */ p(ut, { children: [
172
+ /* @__PURE__ */ s(pt, { children: t }),
173
+ /* @__PURE__ */ p(mt, { children: [
174
+ /* @__PURE__ */ p(ht, { children: [
175
+ /* @__PURE__ */ s(It, { alt: "rank-icon", src: Tt }),
176
+ /* @__PURE__ */ p(ft, { children: [
177
+ De(n),
178
+ /* @__PURE__ */ s(gt, { children: "PTS" })
171
179
  ] })
172
180
  ] }),
173
- /* @__PURE__ */ s(gt, {}),
181
+ /* @__PURE__ */ s(Mt, {}),
174
182
  /* @__PURE__ */ p("div", { children: [
175
183
  "TOP ",
176
184
  d || 0,
@@ -179,39 +187,39 @@ const Ve = /* @__PURE__ */ o("div")({
179
187
  ] })
180
188
  ] })
181
189
  ] }) }),
182
- /* @__PURE__ */ p(at, { children: [
183
- /* @__PURE__ */ p(Mt, { children: [
190
+ /* @__PURE__ */ p(lt, { children: [
191
+ /* @__PURE__ */ p(vt, { children: [
184
192
  /* @__PURE__ */ s(oe, { indicator: i || 0, title: "Friends rank" }),
185
193
  /* @__PURE__ */ s(oe, { indicator: r || 0, title: "Global rank" })
186
194
  ] }),
187
- /* @__PURE__ */ p(vt, { children: [
188
- /* @__PURE__ */ s(Y, { indicator: I || 0, title: "Win streak" }),
189
- /* @__PURE__ */ s(Y, { indicator: u || 0, title: "Correct" }),
190
- /* @__PURE__ */ s(Y, { indicator: m || 0, title: "Incorrect" }),
191
- /* @__PURE__ */ s(Y, { indicator: `${h || 0}%`, title: "Succ. rate" })
195
+ /* @__PURE__ */ p(Nt, { children: [
196
+ /* @__PURE__ */ s(P, { indicator: m || 0, title: "Win streak" }),
197
+ /* @__PURE__ */ s(P, { indicator: u || 0, title: "Correct" }),
198
+ /* @__PURE__ */ s(P, { indicator: I || 0, title: "Incorrect" }),
199
+ /* @__PURE__ */ s(P, { indicator: `${h || 0}%`, title: "Succ. rate" })
192
200
  ] })
193
201
  ] })
194
- ] }), Tt = /* @__PURE__ */ o("div")({
202
+ ] }), Dt = /* @__PURE__ */ o("div")({
195
203
  name: "Container",
196
204
  class: "c38csyt",
197
205
  propsAsIs: !1
198
- }), Dt = /* @__PURE__ */ o("div")({
206
+ }), St = /* @__PURE__ */ o("div")({
199
207
  name: "Title",
200
208
  class: "ty221rx",
201
209
  propsAsIs: !1
202
- }), St = /* @__PURE__ */ o("div")({
210
+ }), zt = /* @__PURE__ */ o("div")({
203
211
  name: "Description",
204
212
  class: "dlaj9xp",
205
213
  propsAsIs: !1
206
- }), zt = ({ title: e, description: t }) => /* @__PURE__ */ p(Tt, { children: [
214
+ }), xt = ({ title: e, description: t }) => /* @__PURE__ */ p(Dt, { children: [
207
215
  /* @__PURE__ */ s(j, { name: "icon-check-circle" }),
208
- /* @__PURE__ */ s(Dt, { children: e }),
209
- /* @__PURE__ */ s(St, { children: t })
210
- ] }), xt = /* @__PURE__ */ o("div")({
216
+ /* @__PURE__ */ s(St, { children: e }),
217
+ /* @__PURE__ */ s(zt, { children: t })
218
+ ] }), jt = /* @__PURE__ */ o("div")({
211
219
  name: "Container",
212
220
  class: "c16sbdnm",
213
221
  propsAsIs: !1
214
- }), jt = () => j, Ot = /* @__PURE__ */ o(jt())({
222
+ }), Ot = () => j, Ct = /* @__PURE__ */ o(Ot())({
215
223
  name: "IconPrediction",
216
224
  class: "ibhorgl",
217
225
  propsAsIs: !0
@@ -223,7 +231,7 @@ const Ve = /* @__PURE__ */ o("div")({
223
231
  name: "FeedbackHeader",
224
232
  class: "f455ozj",
225
233
  propsAsIs: !1
226
- }), Ct = /* @__PURE__ */ o("span")({
234
+ }), kt = /* @__PURE__ */ o("span")({
227
235
  name: "FeedbackTitle",
228
236
  class: "f1913njx",
229
237
  propsAsIs: !1
@@ -231,75 +239,75 @@ const Ve = /* @__PURE__ */ o("div")({
231
239
  name: "FeedbackDescription",
232
240
  class: "fzfk69z",
233
241
  propsAsIs: !1
234
- }), kt = /* @__PURE__ */ o("div")({
242
+ }), wt = /* @__PURE__ */ o("div")({
235
243
  name: "FeedbackText",
236
244
  class: "fx87qaj",
237
245
  propsAsIs: !1
238
- }), wt = ({
246
+ }), bt = ({
239
247
  feedbackMessages: e,
240
248
  questionVotedCorrectly: t,
241
249
  questionVoted: n,
242
250
  questionType: i,
243
251
  hasCorrectAnswer: r,
244
- questionStatus: I
252
+ questionStatus: m
245
253
  }) => {
246
254
  const u = n && (i === x.TRIVIA || i === x.PREDICTION);
247
- if (!u && I !== Q.RESOLVED)
255
+ if (!u && m !== Q.RESOLVED)
248
256
  return null;
249
- const m = i === x.PREDICTION && !r, d = t ? "correct" : "incorrect", h = t ? e.correctFeedback : e.incorrectFeedback;
250
- return /* @__PURE__ */ p(xt, { "data-isPrediction": m, children: [
251
- I === Q.RESOLVED && i === x.TRIVIA && !n && /* @__PURE__ */ p(b, { children: [
257
+ const I = i === x.PREDICTION && !r, d = t ? "correct" : "incorrect", h = t ? e.correctFeedback : e.incorrectFeedback;
258
+ return /* @__PURE__ */ p(jt, { "data-isPrediction": I, children: [
259
+ m === Q.RESOLVED && i === x.TRIVIA && !n && /* @__PURE__ */ p(b, { children: [
252
260
  /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ s(j, { name: "questionExpired" }) }),
253
261
  /* @__PURE__ */ p("div", { children: [
254
262
  /* @__PURE__ */ s(le, { children: /* @__PURE__ */ s(Z, { children: "Question Expired" }) }),
255
- /* @__PURE__ */ s(kt, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
263
+ /* @__PURE__ */ s(wt, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
256
264
  ] })
257
265
  ] }),
258
- u && m && /* @__PURE__ */ p(b, { children: [
259
- /* @__PURE__ */ s(Ot, { name: "icon-prediction" }),
266
+ u && I && /* @__PURE__ */ p(b, { children: [
267
+ /* @__PURE__ */ s(Ct, { name: "icon-prediction" }),
260
268
  /* @__PURE__ */ s(Z, { children: "Stay tuned to see if your prediction was correct." })
261
269
  ] }),
262
270
  u && r && /* @__PURE__ */ p(b, { children: [
263
271
  /* @__PURE__ */ s(ae, { "data-feedbackType": d, children: /* @__PURE__ */ s(j, { name: d }) }),
264
272
  /* @__PURE__ */ s("div", { children: /* @__PURE__ */ p(le, { children: [
265
- /* @__PURE__ */ s(Ct, { "data-feedbackType": d, children: h == null ? void 0 : h.title }),
273
+ /* @__PURE__ */ s(kt, { "data-feedbackType": d, children: h == null ? void 0 : h.title }),
266
274
  /* @__PURE__ */ s(Z, { children: h == null ? void 0 : h.description })
267
275
  ] }) })
268
276
  ] })
269
277
  ] });
270
- }, bt = /* @__PURE__ */ o("div")({
278
+ }, Et = /* @__PURE__ */ o("div")({
271
279
  name: "Container",
272
280
  class: "c14ielyq",
273
281
  propsAsIs: !1
274
- }), Et = /* @__PURE__ */ o("div")({
282
+ }), Lt = /* @__PURE__ */ o("div")({
275
283
  name: "Content",
276
284
  class: "c1tlqx57",
277
285
  propsAsIs: !1
278
- }), Lt = /* @__PURE__ */ o("div")({
286
+ }), $t = /* @__PURE__ */ o("div")({
279
287
  name: "Title",
280
288
  class: "t1hq58md",
281
289
  propsAsIs: !1
282
- }), $t = /* @__PURE__ */ o("div")({
290
+ }), Rt = /* @__PURE__ */ o("div")({
283
291
  name: "Options",
284
292
  class: "o1c8nxcx",
285
293
  propsAsIs: !1
286
- }), Rt = /* @__PURE__ */ o("button")({
294
+ }), Qt = /* @__PURE__ */ o("button")({
287
295
  name: "ButtonContainer",
288
296
  class: "b1b6dl8t",
289
297
  propsAsIs: !1
290
- }), Qt = /* @__PURE__ */ o("div")({
298
+ }), Ut = /* @__PURE__ */ o("div")({
291
299
  name: "ButtonPct",
292
300
  class: "b4iik8i",
293
301
  propsAsIs: !1
294
- }), Ut = /* @__PURE__ */ o("span")({
302
+ }), _t = /* @__PURE__ */ o("span")({
295
303
  name: "ButtonBody",
296
304
  class: "b1gq1lnf",
297
305
  propsAsIs: !1
298
- }), _t = /* @__PURE__ */ o("div")({
306
+ }), qt = /* @__PURE__ */ o("div")({
299
307
  name: "IconContainer",
300
308
  class: "i1j65z51",
301
309
  propsAsIs: !1
302
- }), qt = /* @__PURE__ */ o("div")({
310
+ }), Pt = /* @__PURE__ */ o("div")({
303
311
  name: "IconWrap",
304
312
  class: "i19tpfua",
305
313
  propsAsIs: !1
@@ -307,37 +315,37 @@ const Ve = /* @__PURE__ */ o("div")({
307
315
  name: "Icon",
308
316
  class: "i1tubmma",
309
317
  propsAsIs: !1
310
- }), Yt = () => ze, Pt = /* @__PURE__ */ o(Yt())({
318
+ }), Yt = () => ze, Wt = /* @__PURE__ */ o(Yt())({
311
319
  name: "IconDefault",
312
320
  class: "i1grrgwj",
313
321
  propsAsIs: !0
314
- }), Wt = () => ze, Vt = /* @__PURE__ */ o(Wt())({
322
+ }), Vt = () => ze, Ft = /* @__PURE__ */ o(Vt())({
315
323
  name: "IconCircle",
316
324
  class: "ibemyq8",
317
325
  propsAsIs: !0
318
- }), Ft = /* @__PURE__ */ o("span")({
326
+ }), Bt = /* @__PURE__ */ o("span")({
319
327
  name: "Title",
320
328
  class: "t1dceht",
321
329
  propsAsIs: !1
322
- }), Bt = /* @__PURE__ */ o("span")({
330
+ }), Ht = /* @__PURE__ */ o("span")({
323
331
  name: "Indicators",
324
332
  class: "i116q4vq",
325
333
  propsAsIs: !1
326
- }), Ht = /* @__PURE__ */ o("span")({
334
+ }), Zt = /* @__PURE__ */ o("span")({
327
335
  name: "Percentage",
328
336
  class: "p17ajcu2",
329
337
  propsAsIs: !1
330
- }), Zt = () => j, Gt = /* @__PURE__ */ o(Zt())({
338
+ }), Gt = () => j, Jt = /* @__PURE__ */ o(Gt())({
331
339
  name: "CheckIcon",
332
340
  class: "cu9kmlb",
333
341
  propsAsIs: !0
334
342
  }), ce = {
335
- [$.CENTERED]: (e) => /* @__PURE__ */ s(Pt, { alt: "option-icon", src: e }),
336
- [$.TRANSPARENT]: (e) => /* @__PURE__ */ s(_t, { children: /* @__PURE__ */ s(qt, { style: { backgroundImage: `url(${e})` } }) }),
337
- [$.ROUNDED]: (e) => /* @__PURE__ */ s(Vt, { alt: "option-icon", src: e }),
343
+ [$.CENTERED]: (e) => /* @__PURE__ */ s(Wt, { alt: "option-icon", src: e }),
344
+ [$.TRANSPARENT]: (e) => /* @__PURE__ */ s(qt, { children: /* @__PURE__ */ s(Pt, { style: { backgroundImage: `url(${e})` } }) }),
345
+ [$.ROUNDED]: (e) => /* @__PURE__ */ s(Ft, { alt: "option-icon", src: e }),
338
346
  [$.NONE]: () => null,
339
347
  [$.UNSET]: () => null
340
- }, Jt = ({ questionType: e, hasCorrectAnswer: t, correct: n, youVoted: i, questionVoted: r }) => {
348
+ }, Kt = ({ questionType: e, hasCorrectAnswer: t, correct: n, youVoted: i, questionVoted: r }) => {
341
349
  if (e === x.POLL && i)
342
350
  return "correct";
343
351
  if (e === x.PREDICTION) {
@@ -347,138 +355,142 @@ const Ve = /* @__PURE__ */ o("div")({
347
355
  return "correct";
348
356
  }
349
357
  return e === x.TRIVIA && r ? i ? n ? "correct" : "incorrect" : n ? "correct" : "unset" : "unset";
350
- }, Kt = ({
358
+ }, Xt = ({
351
359
  questionType: e,
352
360
  questionVoted: t,
353
361
  correct: n,
354
362
  hasCorrectAnswer: i,
355
363
  questionStatus: r
356
- }) => e === x.TRIVIA ? t && n : e === x.PREDICTION ? t && n && i || r === Q.RESOLVED && n : !1, Xt = (e) => {
364
+ }) => e === x.TRIVIA ? t && n : e === x.PREDICTION ? t && n && i || r === Q.RESOLVED && n : !1, en = (e) => {
357
365
  var t;
358
366
  const {
359
367
  // option props
360
368
  id: n,
361
369
  icon: i,
362
370
  text: r,
363
- percentageDecimal: I,
371
+ percentageDecimal: m,
364
372
  // extra props
365
373
  onVote: u,
366
- youSelected: m,
374
+ youSelected: I,
367
375
  questionVoted: d,
368
376
  // ToDo: Figure out why imageMode is not in the response, and delete default value
369
377
  imageMode: h,
370
- answerTimeExpired: A,
378
+ answerTimeExpired: y,
371
379
  questionStatus: D,
372
380
  isLoading: N,
373
- questionType: y,
381
+ questionType: A,
374
382
  correct: T,
375
383
  hasCorrectAnswer: a
376
- } = e, l = Jt(e), c = Kt({ questionType: y, questionVoted: d, correct: T, hasCorrectAnswer: a, questionStatus: D }), f = d || D === Q.RESOLVED && y === x.PREDICTION;
384
+ } = e, l = Kt(e), c = Xt({ questionType: A, questionVoted: d, correct: T, hasCorrectAnswer: a, questionStatus: D }), f = d || D === Q.RESOLVED && A === x.PREDICTION;
377
385
  return /* @__PURE__ */ p(
378
- Rt,
386
+ Qt,
379
387
  {
380
388
  value: n,
381
- "data-selected": m,
389
+ "data-selected": I,
382
390
  "data-answerState": l,
383
- disabled: d || N || A,
391
+ disabled: d || N || y,
384
392
  onClick: u,
385
393
  children: [
386
- f && /* @__PURE__ */ s(Qt, { "data-answerState": l, style: { width: `${I}%` } }),
387
- /* @__PURE__ */ p(Ut, { children: [
394
+ f && /* @__PURE__ */ s(Ut, { "data-answerState": l, style: { width: `${m}%` } }),
395
+ /* @__PURE__ */ p(_t, { children: [
388
396
  i && h && ((t = ce[h]) == null ? void 0 : t.call(ce, i)),
389
- /* @__PURE__ */ s(Ft, { children: r }),
390
- f && /* @__PURE__ */ p(Bt, { children: [
391
- c && /* @__PURE__ */ s(Gt, { name: "selected" }),
392
- /* @__PURE__ */ p(Ht, { children: [
393
- I,
394
- "%"
395
- ] })
397
+ /* @__PURE__ */ s(Bt, { children: r }),
398
+ f && /* @__PURE__ */ p(Ht, { children: [
399
+ c && /* @__PURE__ */ s(Jt, { name: "selected" }),
400
+ /* @__PURE__ */ s(Zt, { children: /* @__PURE__ */ s(qe, { value: m, suffix: "%" }) })
396
401
  ] })
397
402
  ] })
398
403
  ]
399
404
  }
400
405
  );
401
- }, en = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], tn = [10, 10, 0], nn = /* @__PURE__ */ o("div")({
406
+ }, tn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], nn = [10, 10, 0], sn = /* @__PURE__ */ o("div")({
402
407
  name: "RemainingTime",
403
408
  class: "r165427",
404
409
  propsAsIs: !1
405
- }), sn = E.SECONDARY_GREEN6, de = E.SECONDARY_RED3, rn = E.NEUTRALS_GRAY3, on = ({
410
+ }), rn = E.SECONDARY_GREEN6, de = E.SECONDARY_RED3, on = E.NEUTRALS_GRAY3, an = ({
406
411
  isPlaying: e = !0,
407
412
  duration: t = 30,
408
413
  onTimerExpired: n
409
414
  }) => {
410
- const [i, r] = R(t > 10 ? sn : de), I = ({
415
+ const [i, r] = R(t > 10 ? rn : de), m = ({
411
416
  remainingTime: d
412
- }) => /* @__PURE__ */ s(nn, {
417
+ }) => /* @__PURE__ */ s(sn, {
413
418
  children: d
414
419
  }), u = F(() => {
415
- n == null || n(), r(rn);
416
- }, [n, r]), m = F((d) => {
420
+ n == null || n(), r(on);
421
+ }, [n, r]), I = F((d) => {
417
422
  d === 10 && r(de);
418
423
  }, [r]);
419
- return /* @__PURE__ */ s(We, {
424
+ return /* @__PURE__ */ s(Pe, {
420
425
  isPlaying: e,
421
426
  duration: t,
422
- colors: en,
423
- colorsTime: tn,
427
+ colors: tn,
428
+ colorsTime: nn,
424
429
  size: 32,
425
430
  strokeWidth: 2,
426
431
  trailStrokeWidth: 2,
427
432
  trailColor: i,
428
433
  onComplete: u,
429
- onUpdate: m,
430
- children: I
434
+ onUpdate: I,
435
+ children: m
431
436
  });
432
- }, an = /* @__PURE__ */ o("div")({
437
+ }, ln = /* @__PURE__ */ o("div")({
433
438
  name: "WinBarContainer",
434
439
  class: "wie6cqo",
435
440
  propsAsIs: !1
436
- }), ln = /* @__PURE__ */ o("div")({
441
+ }), cn = /* @__PURE__ */ o("div")({
437
442
  name: "Content",
438
443
  class: "cgizw4u",
439
444
  propsAsIs: !1
440
- }), cn = /* @__PURE__ */ o("div")({
445
+ }), dn = /* @__PURE__ */ o("div")({
441
446
  name: "Title",
442
447
  class: "t1l3ucjp",
443
448
  propsAsIs: !1
444
- }), dn = () => j, un = /* @__PURE__ */ o(dn())({
449
+ }), un = () => j, pn = /* @__PURE__ */ o(un())({
445
450
  name: "WinIcon",
446
451
  class: "wx7j799",
447
452
  propsAsIs: !0
448
- }), pn = /* @__PURE__ */ o("div")({
453
+ }), mn = /* @__PURE__ */ o("div")({
449
454
  name: "Points",
450
455
  class: "p4lwuj0",
451
456
  propsAsIs: !1
452
- }), mn = /* @__PURE__ */ o("span")({
457
+ }), In = /* @__PURE__ */ o("span")({
453
458
  name: "PointsCount",
454
459
  class: "po9i64o",
455
460
  propsAsIs: !1
456
- }), In = /* @__PURE__ */ o("span")({
461
+ }), hn = /* @__PURE__ */ o("span")({
457
462
  name: "PointsUnits",
458
463
  class: "pe5g05h",
459
464
  propsAsIs: !1
460
- }), hn = ({ title: e, points: t, isPlayingTimer: n, isTimer: i, onTimerExpired: r }) => /* @__PURE__ */ p(an, { children: [
461
- /* @__PURE__ */ p(ln, { children: [
462
- e && /* @__PURE__ */ s(cn, { children: e }),
465
+ }), fn = ({
466
+ title: e,
467
+ points: t,
468
+ isPlayingTimer: n,
469
+ isTimer: i,
470
+ timerDuration: r,
471
+ onTimerExpired: m
472
+ }) => /* @__PURE__ */ p(ln, { children: [
473
+ /* @__PURE__ */ p(cn, { children: [
474
+ e && /* @__PURE__ */ s(dn, { children: e }),
463
475
  t !== void 0 && /* @__PURE__ */ p(b, { children: [
464
- /* @__PURE__ */ s(un, { name: "icon-trophy" }),
465
- /* @__PURE__ */ p(pn, { children: [
466
- /* @__PURE__ */ s(mn, { children: t }),
467
- /* @__PURE__ */ s(In, { children: "PTS" })
476
+ /* @__PURE__ */ s(pn, { name: "icon-trophy" }),
477
+ /* @__PURE__ */ p(mn, { children: [
478
+ /* @__PURE__ */ s(In, { children: t }),
479
+ /* @__PURE__ */ s(hn, { children: "PTS" })
468
480
  ] })
469
481
  ] })
470
482
  ] }),
471
- i && /* @__PURE__ */ s(on, { isPlaying: n, onTimerExpired: r })
472
- ] }), fn = ({ openedQuestion: e, vote: t, close: n }) => {
483
+ i && /* @__PURE__ */ s(an, { isPlaying: n, onTimerExpired: m, duration: r })
484
+ ] }), gn = ({ openedQuestion: e, vote: t, close: n }) => {
473
485
  var i;
474
- const r = e.subject, I = e.type, u = (i = e.options) == null ? void 0 : i.options, [m, d] = R(!1), [h, A] = R(!1), [D, N] = R(""), y = e == null ? void 0 : e.id, T = F(
486
+ const r = e.subject, m = e.type, u = (i = e.options) == null ? void 0 : i.options, [I, d] = R(!1), [h, y] = R(!1), [D, N] = R(""), A = e == null ? void 0 : e.id, T = F(
475
487
  async (v) => {
476
- if (y) {
488
+ if (A) {
477
489
  const g = v.currentTarget.value;
478
- N(g), A(!0), await t(y, g), A(!1);
490
+ N(g), y(!0), await t(A, g), y(!1);
479
491
  }
480
492
  },
481
- [y, N, t]
493
+ [A, N, t]
482
494
  ), a = F(() => {
483
495
  d(!0), setTimeout(n, 3e3);
484
496
  }, [n]), l = W(
@@ -496,58 +508,60 @@ const Ve = /* @__PURE__ */ o("div")({
496
508
  isLoading: h,
497
509
  hasCorrectAnswer: c,
498
510
  questionType: e.type,
499
- answerTimeExpired: m,
511
+ answerTimeExpired: I,
500
512
  questionStatus: e.status,
501
513
  imageMode: (g = e.appearance) == null ? void 0 : g.images,
502
514
  // ToDo: Figure out why imageMode is not in the response
503
515
  onVote: T
504
516
  };
505
- }) : [], [c, m, h, e, l, T, D]), M = u && (u.case === "trivia" || u.case === "prediction") ? u.value : void 0;
506
- return /* @__PURE__ */ s(te, { "data-question-header": "true", children: /* @__PURE__ */ s(bt, { children: /* @__PURE__ */ p(Et, { children: [
517
+ }) : [], [c, I, h, e, l, T, D]), M = u && (u.case === "trivia" || u.case === "prediction") ? u.value : void 0;
518
+ return /* @__PURE__ */ s(te, { "data-question-header": "true", children: /* @__PURE__ */ s(Et, { children: /* @__PURE__ */ p(Lt, { children: [
507
519
  M && /* @__PURE__ */ s(
508
- wt,
520
+ bt,
509
521
  {
510
522
  feedbackMessages: M,
511
523
  questionVoted: !!l,
512
524
  questionVotedCorrectly: l == null ? void 0 : l.correct,
513
- questionType: I,
525
+ questionType: m,
514
526
  hasCorrectAnswer: c,
515
527
  questionStatus: e.status
516
528
  }
517
529
  ),
518
530
  e.type !== x.PREDICTION && /* @__PURE__ */ s(
519
- hn,
531
+ fn,
520
532
  {
521
- title: m ? "Time expired" : "To win",
522
- points: m ? void 0 : 100,
533
+ title: I ? "Time expired" : "To win",
534
+ points: I ? void 0 : 100,
523
535
  onTimerExpired: a,
524
- isTimer: !0
536
+ isTimer: !0,
537
+ isPlayingTimer: !l,
538
+ timerDuration: l ? 0 : 30
525
539
  }
526
540
  ),
527
- m ? /* @__PURE__ */ s(
528
- zt,
541
+ I ? /* @__PURE__ */ s(
542
+ xt,
529
543
  {
530
544
  title: "More to come...",
531
545
  description: "Watch for additional enhanced stream interactive experience."
532
546
  }
533
547
  ) : /* @__PURE__ */ p(b, { children: [
534
- /* @__PURE__ */ s(Lt, { "data-isPrediction": e.type === x.PREDICTION, children: r }),
535
- /* @__PURE__ */ s($t, { children: f.map((v) => /* @__PURE__ */ s(Xt, { ...v }, v.id)) })
548
+ /* @__PURE__ */ s($t, { "data-isPrediction": e.type === x.PREDICTION, children: r }),
549
+ /* @__PURE__ */ s(Rt, { children: f.map((v) => /* @__PURE__ */ s(en, { ...v }, v.id)) })
536
550
  ] })
537
551
  ] }) }) });
538
- }, gn = /* @__PURE__ */ o("div")({
552
+ }, Mn = /* @__PURE__ */ o("div")({
539
553
  name: "Container",
540
554
  class: "cgn5uen",
541
555
  propsAsIs: !1
542
- }), Mn = /* @__PURE__ */ o("div")({
556
+ }), vn = /* @__PURE__ */ o("div")({
543
557
  name: "Content",
544
558
  class: "c1px8nt6",
545
559
  propsAsIs: !1
546
- }), vn = /* @__PURE__ */ o("h3")({
560
+ }), Nn = /* @__PURE__ */ o("h3")({
547
561
  name: "Title",
548
562
  class: "t5et2jt",
549
563
  propsAsIs: !1
550
- }), Nn = /* @__PURE__ */ o("div")({
564
+ }), yn = /* @__PURE__ */ o("div")({
551
565
  name: "Description",
552
566
  class: "d1i2kpk2",
553
567
  propsAsIs: !1
@@ -555,7 +569,7 @@ const Ve = /* @__PURE__ */ o("div")({
555
569
  name: "DateWrap",
556
570
  class: "dd3lh3p",
557
571
  propsAsIs: !1
558
- }), yn = /* @__PURE__ */ o("img")({
572
+ }), Tn = /* @__PURE__ */ o("img")({
559
573
  name: "Image",
560
574
  class: "i1gfjeu5",
561
575
  propsAsIs: !1
@@ -563,54 +577,54 @@ const Ve = /* @__PURE__ */ o("div")({
563
577
  const r = W(() => {
564
578
  if (e) {
565
579
  const u = new Date(e);
566
- if (qe(u))
580
+ if (Xe(u))
567
581
  return {
568
- date: Ye(u),
569
- time: Pe(u)
582
+ date: Je(u),
583
+ time: Ke(u)
570
584
  };
571
585
  }
572
586
  return null;
573
- }, [e]), I = (i == null ? void 0 : i.image) || t;
574
- return /* @__PURE__ */ p(gn, { children: [
587
+ }, [e]), m = (i == null ? void 0 : i.image) || t;
588
+ return /* @__PURE__ */ p(Mn, { children: [
575
589
  r && /* @__PURE__ */ p(An, { children: [
576
590
  r.date,
577
591
  " · ",
578
592
  r.time
579
593
  ] }),
580
594
  (i == null ? void 0 : i.video) && /* @__PURE__ */ s($e, { source: i.video.url, poster: i.video.thumbnailUrl }),
581
- I && /* @__PURE__ */ s(yn, { src: I }),
582
- /* @__PURE__ */ p(Mn, { children: [
583
- /* @__PURE__ */ s(vn, { children: (i == null ? void 0 : i.heading) || n }),
584
- /* @__PURE__ */ s(Nn, { children: i == null ? void 0 : i.body })
595
+ m && /* @__PURE__ */ s(Tn, { src: m }),
596
+ /* @__PURE__ */ p(vn, { children: [
597
+ /* @__PURE__ */ s(Nn, { children: (i == null ? void 0 : i.heading) || n }),
598
+ /* @__PURE__ */ s(yn, { children: i == null ? void 0 : i.body })
585
599
  ] })
586
600
  ] });
587
- }, Tn = /* @__PURE__ */ o("div")({
601
+ }, Dn = /* @__PURE__ */ o("div")({
588
602
  name: "Container",
589
603
  class: "c1euiow",
590
604
  propsAsIs: !1
591
- }), Dn = /* @__PURE__ */ o("a")({
605
+ }), Sn = /* @__PURE__ */ o("a")({
592
606
  name: "WebLinkBtn",
593
607
  class: "w19zie3h",
594
608
  propsAsIs: !1
595
- }), Sn = ({ instantView: e, ...t }) => /* @__PURE__ */ p(Tn, { children: [
609
+ }), zn = ({ instantView: e, ...t }) => /* @__PURE__ */ p(Dn, { children: [
596
610
  /* @__PURE__ */ s(xe, { instantView: e, ...t }),
597
- (e == null ? void 0 : e.webLink) && /* @__PURE__ */ p(Dn, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
611
+ (e == null ? void 0 : e.webLink) && /* @__PURE__ */ p(Sn, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
598
612
  "Explore more of the Masters History",
599
613
  /* @__PURE__ */ s(j, { name: "icon-external-link" })
600
614
  ] })
601
- ] }), zn = /* @__PURE__ */ o("div")({
615
+ ] }), xn = /* @__PURE__ */ o("div")({
602
616
  name: "QuestionContainer",
603
617
  class: "qdri6g3",
604
618
  propsAsIs: !1
605
- }), xn = ({
619
+ }), jn = ({
606
620
  openedQuestion: e
607
621
  }) => {
608
622
  var t;
609
- return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ s(Sn, {
623
+ return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ s(zn, {
610
624
  created: e.attributes.created,
611
625
  ...e.attributes.attributes.value
612
626
  }) : null;
613
- }, jn = ({
627
+ }, On = ({
614
628
  extendedQuestion: e,
615
629
  vote: t,
616
630
  close: n
@@ -619,12 +633,12 @@ const Ve = /* @__PURE__ */ o("div")({
619
633
  loading: i,
620
634
  data: r
621
635
  } = e;
622
- return !i && r ? /* @__PURE__ */ s(fn, {
636
+ return !i && r ? /* @__PURE__ */ s(gn, {
623
637
  vote: t,
624
638
  close: n,
625
639
  openedQuestion: r
626
640
  }) : null;
627
- }, On = ({
641
+ }, Cn = ({
628
642
  gamification: e
629
643
  }) => {
630
644
  var t;
@@ -632,37 +646,37 @@ const Ve = /* @__PURE__ */ o("div")({
632
646
  if (!n)
633
647
  return null;
634
648
  const r = n.type;
635
- return /* @__PURE__ */ p(zn, {
636
- children: [/* @__PURE__ */ s(De, {
649
+ return /* @__PURE__ */ p(xn, {
650
+ children: [/* @__PURE__ */ s(Ae, {
637
651
  close: e.closeQuestion,
638
652
  type: ((t = n.attributes) == null ? void 0 : t.type) || x.UNSET
639
- }), r === "question" && /* @__PURE__ */ s(jn, {
653
+ }), r === "question" && /* @__PURE__ */ s(On, {
640
654
  vote: e.submitAnswer,
641
655
  close: e.closeQuestion,
642
656
  extendedQuestion: i
643
- }), r !== "question" && /* @__PURE__ */ s(xn, {
657
+ }), r !== "question" && /* @__PURE__ */ s(jn, {
644
658
  openedQuestion: n
645
659
  })]
646
660
  });
647
- }, Cn = /* @__PURE__ */ o("div")({
661
+ }, kn = /* @__PURE__ */ o("div")({
648
662
  name: "Container",
649
663
  class: "c115qtkr",
650
664
  propsAsIs: !1
651
- }), kn = /* @__PURE__ */ o("div")({
665
+ }), wn = /* @__PURE__ */ o("div")({
652
666
  name: "STabs",
653
667
  class: "sxnslc8",
654
668
  propsAsIs: !1
655
- }), wn = /* @__PURE__ */ o("button")({
669
+ }), bn = /* @__PURE__ */ o("button")({
656
670
  name: "Button",
657
671
  class: "b1umzux0",
658
672
  propsAsIs: !1
659
- }), bn = /* @__PURE__ */ o("span")({
673
+ }), En = /* @__PURE__ */ o("span")({
660
674
  name: "Title",
661
675
  class: "tspsaas",
662
676
  propsAsIs: !1
663
677
  });
664
678
  var V = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(V || {});
665
- const ue = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ s(wn, { onClick: n, "data-selected": t, children: /* @__PURE__ */ s(bn, { children: e }) }), En = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ s(Cn, { children: /* @__PURE__ */ p(kn, { "data-position": e === "home" ? "left" : "right", children: [
679
+ const ue = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ s(bn, { onClick: n, "data-selected": t, children: /* @__PURE__ */ s(En, { children: e }) }), Ln = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ s(kn, { children: /* @__PURE__ */ p(wn, { "data-position": e === "home" ? "left" : "right", children: [
666
680
  /* @__PURE__ */ s(ue, { title: "Home", active: e === "home", onClick: () => t(
667
681
  "home"
668
682
  /* HOME */
@@ -699,34 +713,34 @@ function ee(e, t) {
699
713
  return i.__proto__ = r, i;
700
714
  }, ee(e, t);
701
715
  }
702
- function Ln(e, t) {
716
+ function $n(e, t) {
703
717
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ee(e, t);
704
718
  }
705
719
  var me = Number.isNaN || function(t) {
706
720
  return typeof t == "number" && t !== t;
707
721
  };
708
- function $n(e, t) {
722
+ function Rn(e, t) {
709
723
  return !!(e === t || me(e) && me(t));
710
724
  }
711
- function Rn(e, t) {
725
+ function Qn(e, t) {
712
726
  if (e.length !== t.length)
713
727
  return !1;
714
728
  for (var n = 0; n < e.length; n++)
715
- if (!$n(e[n], t[n]))
729
+ if (!Rn(e[n], t[n]))
716
730
  return !1;
717
731
  return !0;
718
732
  }
719
733
  function G(e, t) {
720
- t === void 0 && (t = Rn);
721
- var n, i = [], r, I = !1;
734
+ t === void 0 && (t = Qn);
735
+ var n, i = [], r, m = !1;
722
736
  function u() {
723
- for (var m = [], d = 0; d < arguments.length; d++)
724
- m[d] = arguments[d];
725
- return I && n === this && t(m, i) || (r = e.apply(this, m), I = !0, n = this, i = m), r;
737
+ for (var I = [], d = 0; d < arguments.length; d++)
738
+ I[d] = arguments[d];
739
+ return m && n === this && t(I, i) || (r = e.apply(this, I), m = !0, n = this, i = I), r;
726
740
  }
727
741
  return u;
728
742
  }
729
- var Qn = typeof performance == "object" && typeof performance.now == "function", Ie = Qn ? function() {
743
+ var Un = typeof performance == "object" && typeof performance.now == "function", Ie = Un ? function() {
730
744
  return performance.now();
731
745
  } : function() {
732
746
  return Date.now();
@@ -734,7 +748,7 @@ var Qn = typeof performance == "object" && typeof performance.now == "function",
734
748
  function he(e) {
735
749
  cancelAnimationFrame(e.id);
736
750
  }
737
- function Un(e, t) {
751
+ function _n(e, t) {
738
752
  var n = Ie();
739
753
  function i() {
740
754
  Ie() - n >= t ? e.call(null) : r.id = requestAnimationFrame(i);
@@ -762,13 +776,13 @@ function ge(e) {
762
776
  }
763
777
  return w;
764
778
  }
765
- var _n = 150, qn = function(t, n) {
779
+ var qn = 150, Pn = function(t, n) {
766
780
  return t;
767
781
  };
768
782
  function Yn(e) {
769
- var t, n = e.getItemOffset, i = e.getEstimatedTotalSize, r = e.getItemSize, I = e.getOffsetForIndexAndAlignment, u = e.getStartIndexForOffset, m = e.getStopIndexForStartIndex, d = e.initInstanceProps, h = e.shouldResetStyleCacheOnItemSizeChange, A = e.validateProps;
783
+ var t, n = e.getItemOffset, i = e.getEstimatedTotalSize, r = e.getItemSize, m = e.getOffsetForIndexAndAlignment, u = e.getStartIndexForOffset, I = e.getStopIndexForStartIndex, d = e.initInstanceProps, h = e.shouldResetStyleCacheOnItemSizeChange, y = e.validateProps;
770
784
  return t = /* @__PURE__ */ function(D) {
771
- Ln(N, D);
785
+ $n(N, D);
772
786
  function N(T) {
773
787
  var a;
774
788
  return a = D.call(this, T) || this, a._instanceProps = d(a.props, pe(a)), a._outerRef = void 0, a._resetIsScrollingTimeoutId = null, a.state = {
@@ -847,7 +861,7 @@ function Yn(e) {
847
861
  var c = a.props.outerRef;
848
862
  a._outerRef = l, typeof c == "function" ? c(l) : c != null && typeof c == "object" && c.hasOwnProperty("current") && (c.current = l);
849
863
  }, a._resetIsScrollingDebounced = function() {
850
- a._resetIsScrollingTimeoutId !== null && he(a._resetIsScrollingTimeoutId), a._resetIsScrollingTimeoutId = Un(a._resetIsScrolling, _n);
864
+ a._resetIsScrollingTimeoutId !== null && he(a._resetIsScrollingTimeoutId), a._resetIsScrollingTimeoutId = _n(a._resetIsScrolling, qn);
851
865
  }, a._resetIsScrolling = function() {
852
866
  a._resetIsScrollingTimeoutId = null, a.setState({
853
867
  isScrolling: !1
@@ -857,10 +871,10 @@ function Yn(e) {
857
871
  }, a;
858
872
  }
859
873
  N.getDerivedStateFromProps = function(a, l) {
860
- return Pn(a, l), A(a), null;
874
+ return Wn(a, l), y(a), null;
861
875
  };
862
- var y = N.prototype;
863
- return y.scrollTo = function(a) {
876
+ var A = N.prototype;
877
+ return A.scrollTo = function(a) {
864
878
  a = Math.max(0, a), this.setState(function(l) {
865
879
  return l.scrollOffset === a ? null : {
866
880
  scrollDirection: l.scrollOffset < a ? "forward" : "backward",
@@ -868,7 +882,7 @@ function Yn(e) {
868
882
  scrollUpdateWasRequested: !0
869
883
  };
870
884
  }, this._resetIsScrollingDebounced);
871
- }, y.scrollToItem = function(a, l) {
885
+ }, A.scrollToItem = function(a, l) {
872
886
  l === void 0 && (l = "auto");
873
887
  var c = this.props, f = c.itemCount, M = c.layout, v = this.state.scrollOffset;
874
888
  a = Math.max(0, Math.min(a, f - 1));
@@ -877,15 +891,15 @@ function Yn(e) {
877
891
  var S = this._outerRef;
878
892
  M === "vertical" ? g = S.scrollWidth > S.clientWidth ? fe() : 0 : g = S.scrollHeight > S.clientHeight ? fe() : 0;
879
893
  }
880
- this.scrollTo(I(this.props, a, l, v, this._instanceProps, g));
881
- }, y.componentDidMount = function() {
894
+ this.scrollTo(m(this.props, a, l, v, this._instanceProps, g));
895
+ }, A.componentDidMount = function() {
882
896
  var a = this.props, l = a.direction, c = a.initialScrollOffset, f = a.layout;
883
897
  if (typeof c == "number" && this._outerRef != null) {
884
898
  var M = this._outerRef;
885
899
  l === "horizontal" || f === "horizontal" ? M.scrollLeft = c : M.scrollTop = c;
886
900
  }
887
901
  this._callPropsCallbacks();
888
- }, y.componentDidUpdate = function() {
902
+ }, A.componentDidUpdate = function() {
889
903
  var a = this.props, l = a.direction, c = a.layout, f = this.state, M = f.scrollOffset, v = f.scrollUpdateWasRequested;
890
904
  if (v && this._outerRef != null) {
891
905
  var g = this._outerRef;
@@ -909,10 +923,10 @@ function Yn(e) {
909
923
  g.scrollTop = M;
910
924
  }
911
925
  this._callPropsCallbacks();
912
- }, y.componentWillUnmount = function() {
926
+ }, A.componentWillUnmount = function() {
913
927
  this._resetIsScrollingTimeoutId !== null && he(this._resetIsScrollingTimeoutId);
914
- }, y.render = function() {
915
- var a = this.props, l = a.children, c = a.className, f = a.direction, M = a.height, v = a.innerRef, g = a.innerElementType, S = a.innerTagName, z = a.itemCount, O = a.itemData, C = a.itemKey, U = C === void 0 ? qn : C, _ = a.layout, je = a.outerElementType, Oe = a.outerTagName, Ce = a.style, ke = a.useIsScrolling, we = a.width, ne = this.state.isScrolling, B = f === "horizontal" || _ === "horizontal", be = B ? this._onScrollHorizontal : this._onScrollVertical, se = this._getRangeToRender(), Ee = se[0], Le = se[1], ie = [];
928
+ }, A.render = function() {
929
+ var a = this.props, l = a.children, c = a.className, f = a.direction, M = a.height, v = a.innerRef, g = a.innerElementType, S = a.innerTagName, z = a.itemCount, O = a.itemData, C = a.itemKey, U = C === void 0 ? Pn : C, _ = a.layout, je = a.outerElementType, Oe = a.outerTagName, Ce = a.style, ke = a.useIsScrolling, we = a.width, ne = this.state.isScrolling, B = f === "horizontal" || _ === "horizontal", be = B ? this._onScrollHorizontal : this._onScrollVertical, se = this._getRangeToRender(), Ee = se[0], Le = se[1], ie = [];
916
930
  if (z > 0)
917
931
  for (var L = Ee; L <= Le; L++)
918
932
  ie.push(H(l, {
@@ -945,7 +959,7 @@ function Yn(e) {
945
959
  width: B ? re : "100%"
946
960
  }
947
961
  }));
948
- }, y._callPropsCallbacks = function() {
962
+ }, A._callPropsCallbacks = function() {
949
963
  if (typeof this.props.onItemsRendered == "function") {
950
964
  var a = this.props.itemCount;
951
965
  if (a > 0) {
@@ -957,14 +971,14 @@ function Yn(e) {
957
971
  var g = this.state, S = g.scrollDirection, z = g.scrollOffset, O = g.scrollUpdateWasRequested;
958
972
  this._callOnScroll(S, z, O);
959
973
  }
960
- }, y._getRangeToRender = function() {
974
+ }, A._getRangeToRender = function() {
961
975
  var a = this.props, l = a.itemCount, c = a.overscanCount, f = this.state, M = f.isScrolling, v = f.scrollDirection, g = f.scrollOffset;
962
976
  if (l === 0)
963
977
  return [0, 0, 0, 0];
964
- var S = u(this.props, g, this._instanceProps), z = m(this.props, S, g, this._instanceProps), O = !M || v === "backward" ? Math.max(1, c) : 1, C = !M || v === "forward" ? Math.max(1, c) : 1;
978
+ var S = u(this.props, g, this._instanceProps), z = I(this.props, S, g, this._instanceProps), O = !M || v === "backward" ? Math.max(1, c) : 1, C = !M || v === "forward" ? Math.max(1, c) : 1;
965
979
  return [Math.max(0, S - O), Math.max(0, Math.min(l - 1, z + C)), S, z];
966
980
  }, N;
967
- }(Ae), t.defaultProps = {
981
+ }(ye), t.defaultProps = {
968
982
  direction: "ltr",
969
983
  itemData: void 0,
970
984
  layout: "vertical",
@@ -972,9 +986,9 @@ function Yn(e) {
972
986
  useIsScrolling: !1
973
987
  }, t;
974
988
  }
975
- var Pn = function(t, n) {
989
+ var Wn = function(t, n) {
976
990
  t.children, t.direction, t.height, t.layout, t.innerTagName, t.outerTagName, t.width, n.instance;
977
- }, Wn = /* @__PURE__ */ Yn({
991
+ }, Vn = /* @__PURE__ */ Yn({
978
992
  getItemOffset: function(t, n) {
979
993
  var i = t.itemSize;
980
994
  return n * i;
@@ -987,8 +1001,8 @@ var Pn = function(t, n) {
987
1001
  var n = t.itemCount, i = t.itemSize;
988
1002
  return i * n;
989
1003
  },
990
- getOffsetForIndexAndAlignment: function(t, n, i, r, I, u) {
991
- var m = t.direction, d = t.height, h = t.itemCount, A = t.itemSize, D = t.layout, N = t.width, y = m === "horizontal" || D === "horizontal", T = y ? N : d, a = Math.max(0, h * A - T), l = Math.min(a, n * A), c = Math.max(0, n * A - T + A + u);
1004
+ getOffsetForIndexAndAlignment: function(t, n, i, r, m, u) {
1005
+ var I = t.direction, d = t.height, h = t.itemCount, y = t.itemSize, D = t.layout, N = t.width, A = I === "horizontal" || D === "horizontal", T = A ? N : d, a = Math.max(0, h * y - T), l = Math.min(a, n * y), c = Math.max(0, n * y - T + y + u);
992
1006
  switch (i === "smart" && (r >= c - T && r <= l + T ? i = "auto" : i = "center"), i) {
993
1007
  case "start":
994
1008
  return l;
@@ -1008,10 +1022,10 @@ var Pn = function(t, n) {
1008
1022
  return Math.max(0, Math.min(i - 1, Math.floor(n / r)));
1009
1023
  },
1010
1024
  getStopIndexForStartIndex: function(t, n, i) {
1011
- var r = t.direction, I = t.height, u = t.itemCount, m = t.itemSize, d = t.layout, h = t.width, A = r === "horizontal" || d === "horizontal", D = n * m, N = A ? h : I, y = Math.ceil((N + i - D) / m);
1025
+ var r = t.direction, m = t.height, u = t.itemCount, I = t.itemSize, d = t.layout, h = t.width, y = r === "horizontal" || d === "horizontal", D = n * I, N = y ? h : m, A = Math.ceil((N + i - D) / I);
1012
1026
  return Math.max(0, Math.min(
1013
1027
  u - 1,
1014
- n + y - 1
1028
+ n + A - 1
1015
1029
  // -1 is because stop index is inclusive
1016
1030
  ));
1017
1031
  },
@@ -1022,34 +1036,34 @@ var Pn = function(t, n) {
1022
1036
  t.itemSize;
1023
1037
  }
1024
1038
  });
1025
- function Vn(e) {
1039
+ function Fn(e) {
1026
1040
  var t = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, i = e.startIndex, r = e.stopIndex;
1027
1041
  return !(i > n || r < t);
1028
1042
  }
1029
- function Fn(e) {
1030
- for (var t = e.isItemLoaded, n = e.itemCount, i = e.minimumBatchSize, r = e.startIndex, I = e.stopIndex, u = [], m = null, d = null, h = r; h <= I; h++) {
1031
- var A = t(h);
1032
- A ? d !== null && (u.push(m, d), m = d = null) : (d = h, m === null && (m = h));
1043
+ function Bn(e) {
1044
+ for (var t = e.isItemLoaded, n = e.itemCount, i = e.minimumBatchSize, r = e.startIndex, m = e.stopIndex, u = [], I = null, d = null, h = r; h <= m; h++) {
1045
+ var y = t(h);
1046
+ y ? d !== null && (u.push(I, d), I = d = null) : (d = h, I === null && (I = h));
1033
1047
  }
1034
1048
  if (d !== null) {
1035
- for (var D = Math.min(Math.max(d, m + i - 1), n - 1), N = d + 1; N <= D && !t(N); N++)
1049
+ for (var D = Math.min(Math.max(d, I + i - 1), n - 1), N = d + 1; N <= D && !t(N); N++)
1036
1050
  d = N;
1037
- u.push(m, d);
1051
+ u.push(I, d);
1038
1052
  }
1039
1053
  if (u.length)
1040
1054
  for (; u[1] - u[0] + 1 < i && u[0] > 0; ) {
1041
- var y = u[0] - 1;
1042
- if (!t(y))
1043
- u[0] = y;
1055
+ var A = u[0] - 1;
1056
+ if (!t(A))
1057
+ u[0] = A;
1044
1058
  else
1045
1059
  break;
1046
1060
  }
1047
1061
  return u;
1048
1062
  }
1049
- var Bn = function(e, t) {
1063
+ var Hn = function(e, t) {
1050
1064
  if (!(e instanceof t))
1051
1065
  throw new TypeError("Cannot call a class as a function");
1052
- }, Hn = function() {
1066
+ }, Zn = function() {
1053
1067
  function e(t, n) {
1054
1068
  for (var i = 0; i < n.length; i++) {
1055
1069
  var r = n[i];
@@ -1059,7 +1073,7 @@ var Bn = function(e, t) {
1059
1073
  return function(t, n, i) {
1060
1074
  return n && e(t.prototype, n), i && e(t, i), t;
1061
1075
  };
1062
- }(), Zn = function(e, t) {
1076
+ }(), Gn = function(e, t) {
1063
1077
  if (typeof t != "function" && t !== null)
1064
1078
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
1065
1079
  e.prototype = Object.create(t && t.prototype, {
@@ -1074,21 +1088,21 @@ var Bn = function(e, t) {
1074
1088
  if (!e)
1075
1089
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1076
1090
  return t && (typeof t == "object" || typeof t == "function") ? t : e;
1077
- }, Gn = function(e) {
1078
- Zn(t, e);
1091
+ }, Jn = function(e) {
1092
+ Gn(t, e);
1079
1093
  function t() {
1080
- var n, i, r, I;
1081
- Bn(this, t);
1082
- for (var u = arguments.length, m = Array(u), d = 0; d < u; d++)
1083
- m[d] = arguments[d];
1084
- return I = (i = (r = Me(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) {
1085
- var A = h.visibleStartIndex, D = h.visibleStopIndex;
1086
- r._lastRenderedStartIndex = A, r._lastRenderedStopIndex = D, r._ensureRowsLoaded(A, D);
1094
+ var n, i, r, m;
1095
+ Hn(this, t);
1096
+ for (var u = arguments.length, I = Array(u), d = 0; d < u; d++)
1097
+ I[d] = arguments[d];
1098
+ return m = (i = (r = Me(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(I))), r), r._lastRenderedStartIndex = -1, r._lastRenderedStopIndex = -1, r._memoizedUnloadedRanges = [], r._onItemsRendered = function(h) {
1099
+ var y = h.visibleStartIndex, D = h.visibleStopIndex;
1100
+ r._lastRenderedStartIndex = y, r._lastRenderedStopIndex = D, r._ensureRowsLoaded(y, D);
1087
1101
  }, r._setRef = function(h) {
1088
1102
  r._listRef = h;
1089
- }, i), Me(r, I);
1103
+ }, i), Me(r, m);
1090
1104
  }
1091
- return Hn(t, [{
1105
+ return Zn(t, [{
1092
1106
  key: "resetloadMoreItemsCache",
1093
1107
  value: function() {
1094
1108
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
@@ -1110,115 +1124,115 @@ var Bn = function(e, t) {
1110
1124
  }, {
1111
1125
  key: "_ensureRowsLoaded",
1112
1126
  value: function(i, r) {
1113
- var I = this.props, u = I.isItemLoaded, m = I.itemCount, d = I.minimumBatchSize, h = d === void 0 ? 10 : d, A = I.threshold, D = A === void 0 ? 15 : A, N = Fn({
1127
+ var m = this.props, u = m.isItemLoaded, I = m.itemCount, d = m.minimumBatchSize, h = d === void 0 ? 10 : d, y = m.threshold, D = y === void 0 ? 15 : y, N = Bn({
1114
1128
  isItemLoaded: u,
1115
- itemCount: m,
1129
+ itemCount: I,
1116
1130
  minimumBatchSize: h,
1117
1131
  startIndex: Math.max(0, i - D),
1118
- stopIndex: Math.min(m - 1, r + D)
1132
+ stopIndex: Math.min(I - 1, r + D)
1119
1133
  });
1120
- (this._memoizedUnloadedRanges.length !== N.length || this._memoizedUnloadedRanges.some(function(y, T) {
1121
- return N[T] !== y;
1134
+ (this._memoizedUnloadedRanges.length !== N.length || this._memoizedUnloadedRanges.some(function(A, T) {
1135
+ return N[T] !== A;
1122
1136
  })) && (this._memoizedUnloadedRanges = N, this._loadUnloadedRanges(N));
1123
1137
  }
1124
1138
  }, {
1125
1139
  key: "_loadUnloadedRanges",
1126
1140
  value: function(i) {
1127
- for (var r = this, I = this.props.loadMoreItems || this.props.loadMoreRows, u = function(h) {
1128
- var A = i[h], D = i[h + 1], N = I(A, D);
1141
+ for (var r = this, m = this.props.loadMoreItems || this.props.loadMoreRows, u = function(h) {
1142
+ var y = i[h], D = i[h + 1], N = m(y, D);
1129
1143
  N != null && N.then(function() {
1130
- if (Vn({
1144
+ if (Fn({
1131
1145
  lastRenderedStartIndex: r._lastRenderedStartIndex,
1132
1146
  lastRenderedStopIndex: r._lastRenderedStopIndex,
1133
- startIndex: A,
1147
+ startIndex: y,
1134
1148
  stopIndex: D
1135
1149
  })) {
1136
1150
  if (r._listRef == null)
1137
1151
  return;
1138
- typeof r._listRef.resetAfterIndex == "function" ? r._listRef.resetAfterIndex(A, !0) : (typeof r._listRef._getItemStyleCache == "function" && r._listRef._getItemStyleCache(-1), r._listRef.forceUpdate());
1152
+ typeof r._listRef.resetAfterIndex == "function" ? r._listRef.resetAfterIndex(y, !0) : (typeof r._listRef._getItemStyleCache == "function" && r._listRef._getItemStyleCache(-1), r._listRef.forceUpdate());
1139
1153
  }
1140
1154
  });
1141
- }, m = 0; m < i.length; m += 2)
1142
- u(m);
1155
+ }, I = 0; I < i.length; I += 2)
1156
+ u(I);
1143
1157
  }
1144
1158
  }]), t;
1145
- }(Ae);
1146
- const Jn = /* @__PURE__ */ o("div")({
1159
+ }(ye);
1160
+ const Kn = /* @__PURE__ */ o("div")({
1147
1161
  name: "Container",
1148
1162
  class: "culdu4a",
1149
1163
  propsAsIs: !1
1150
- }), Kn = /* @__PURE__ */ o("div")({
1164
+ }), Xn = /* @__PURE__ */ o("div")({
1151
1165
  name: "Position",
1152
1166
  class: "pwf8e69",
1153
1167
  propsAsIs: !1
1154
- }), Xn = /* @__PURE__ */ o("img")({
1168
+ }), es = /* @__PURE__ */ o("img")({
1155
1169
  name: "Avatar",
1156
1170
  class: "atf4yh4",
1157
1171
  propsAsIs: !1
1158
- }), es = /* @__PURE__ */ o("div")({
1172
+ }), ts = /* @__PURE__ */ o("div")({
1159
1173
  name: "AvatarPlaceholder",
1160
1174
  class: "a1dg29ja",
1161
1175
  propsAsIs: !1
1162
- }), ts = /* @__PURE__ */ o("div")({
1176
+ }), ns = /* @__PURE__ */ o("div")({
1163
1177
  name: "Content",
1164
1178
  class: "c10a68rc",
1165
1179
  propsAsIs: !1
1166
- }), ns = /* @__PURE__ */ o("div")({
1180
+ }), ss = /* @__PURE__ */ o("div")({
1167
1181
  name: "NameContainer",
1168
1182
  class: "nc4kck5",
1169
1183
  propsAsIs: !1
1170
- }), ss = /* @__PURE__ */ o("span")({
1184
+ }), is = /* @__PURE__ */ o("span")({
1171
1185
  name: "Name",
1172
1186
  class: "njsrqgr",
1173
1187
  propsAsIs: !1
1174
- }), is = () => j, rs = /* @__PURE__ */ o(is())({
1188
+ }), rs = () => j, os = /* @__PURE__ */ o(rs())({
1175
1189
  name: "CurrentUserBadge",
1176
1190
  class: "c17uc4zr",
1177
1191
  propsAsIs: !0
1178
- }), os = ({
1192
+ }), as = ({
1179
1193
  rank: e,
1180
1194
  avatar: t,
1181
1195
  name: n,
1182
1196
  points: i,
1183
1197
  isCurrentUser: r,
1184
- openItemDetail: I,
1198
+ openItemDetail: m,
1185
1199
  style: u
1186
- }) => /* @__PURE__ */ p(Jn, { onClick: I, style: u, children: [
1187
- /* @__PURE__ */ s(Kn, { children: e || 0 }),
1188
- /* @__PURE__ */ p(ts, { children: [
1189
- t ? /* @__PURE__ */ s(Xn, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ s(es, { children: ye(n || "") }),
1190
- /* @__PURE__ */ p(ns, { children: [
1191
- /* @__PURE__ */ s(ss, { children: n || "" }),
1192
- r && /* @__PURE__ */ s(rs, { name: "icon-star" })
1200
+ }) => /* @__PURE__ */ p(Kn, { onClick: m, style: u, children: [
1201
+ /* @__PURE__ */ s(Xn, { children: e || 0 }),
1202
+ /* @__PURE__ */ p(ns, { children: [
1203
+ t ? /* @__PURE__ */ s(es, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ s(ts, { children: Te(n || "") }),
1204
+ /* @__PURE__ */ p(ss, { children: [
1205
+ /* @__PURE__ */ s(is, { children: n || "" }),
1206
+ r && /* @__PURE__ */ s(os, { name: "icon-star" })
1193
1207
  ] })
1194
1208
  ] }),
1195
- /* @__PURE__ */ s("div", { children: Te(i) })
1196
- ] }), as = /* @__PURE__ */ o("div")({
1209
+ /* @__PURE__ */ s("div", { children: De(i) })
1210
+ ] }), ls = /* @__PURE__ */ o("div")({
1197
1211
  name: "ScrollContainer",
1198
1212
  class: "s13d8sg6",
1199
1213
  propsAsIs: !1
1200
- }), ls = ({
1214
+ }), cs = ({
1201
1215
  items: e,
1202
1216
  currentUserId: t,
1203
1217
  openItemDetail: n,
1204
1218
  fetchMore: i
1205
- }) => /* @__PURE__ */ s(Re, { children: ({ width: r, height: I }) => /* @__PURE__ */ s(
1206
- Gn,
1219
+ }) => /* @__PURE__ */ s(Re, { children: ({ width: r, height: m }) => /* @__PURE__ */ s(
1220
+ Jn,
1207
1221
  {
1208
1222
  isItemLoaded: (u) => u < e.length,
1209
1223
  itemCount: e.length + 1,
1210
1224
  loadMoreItems: i,
1211
- children: ({ onItemsRendered: u, ref: m }) => /* @__PURE__ */ s(as, { children: /* @__PURE__ */ s(
1212
- Wn,
1225
+ children: ({ onItemsRendered: u, ref: I }) => /* @__PURE__ */ s(ls, { children: /* @__PURE__ */ s(
1226
+ Vn,
1213
1227
  {
1214
1228
  itemSize: 56,
1215
1229
  onItemsRendered: u,
1216
- ref: m,
1230
+ ref: I,
1217
1231
  itemCount: e.length,
1218
1232
  width: r,
1219
- height: I,
1233
+ height: m,
1220
1234
  children: ({ index: d, style: h }) => /* @__PURE__ */ s(
1221
- os,
1235
+ as,
1222
1236
  {
1223
1237
  style: { ...h, maxHeight: 48 },
1224
1238
  ...e[d],
@@ -1230,7 +1244,7 @@ const Jn = /* @__PURE__ */ o("div")({
1230
1244
  }
1231
1245
  ) })
1232
1246
  }
1233
- ) }), cs = ({ deepLink: e }) => {
1247
+ ) }), ds = ({ deepLink: e }) => {
1234
1248
  const { data: t } = k(e.$store);
1235
1249
  return /* @__PURE__ */ s(
1236
1250
  Qe,
@@ -1252,119 +1266,119 @@ const Jn = /* @__PURE__ */ o("div")({
1252
1266
  inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
1253
1267
  }
1254
1268
  );
1255
- }, ds = ({ gamification: e }) => {
1269
+ }, us = ({ gamification: e }) => {
1256
1270
  const { data: t } = k(e.leaderboardList.$store);
1257
1271
  return t != null && t.length ? /* @__PURE__ */ s(
1258
- ls,
1272
+ cs,
1259
1273
  {
1260
1274
  fetchMore: e.leaderboardList.fetchMore,
1261
1275
  items: t,
1262
1276
  openItemDetail: e.openUser,
1263
1277
  currentUserId: e.currentUserId.get()
1264
1278
  }
1265
- ) : /* @__PURE__ */ s(cs, { deepLink: e.deepLink });
1266
- }, us = /* @__PURE__ */ o("div")({
1279
+ ) : /* @__PURE__ */ s(ds, { deepLink: e.deepLink });
1280
+ }, ps = /* @__PURE__ */ o("div")({
1267
1281
  name: "QuestionItem",
1268
1282
  class: "q1w97g3p",
1269
1283
  propsAsIs: !1
1270
- }), ps = /* @__PURE__ */ o("div")({
1284
+ }), ms = /* @__PURE__ */ o("div")({
1271
1285
  name: "QuestionCaption",
1272
1286
  class: "q2sl39u",
1273
1287
  propsAsIs: !1
1274
- }), ms = /* @__PURE__ */ o("div")({
1288
+ }), Is = /* @__PURE__ */ o("div")({
1275
1289
  name: "QuestionBody",
1276
1290
  class: "qd5h0uc",
1277
1291
  propsAsIs: !1
1278
- }), Is = /* @__PURE__ */ o("div")({
1292
+ }), hs = /* @__PURE__ */ o("div")({
1279
1293
  name: "QuestionAction",
1280
1294
  class: "q105uluy",
1281
1295
  propsAsIs: !1
1282
- }), hs = () => j, P = /* @__PURE__ */ o(hs())({
1296
+ }), fs = () => j, Y = /* @__PURE__ */ o(fs())({
1283
1297
  name: "QuestionActionIcon",
1284
1298
  class: "q1fa0b9h",
1285
1299
  propsAsIs: !0
1286
- }), fs = () => j, gs = /* @__PURE__ */ o(fs())({
1300
+ }), gs = () => j, Ms = /* @__PURE__ */ o(gs())({
1287
1301
  name: "QuestionTypeIcon",
1288
1302
  class: "qxlt78s",
1289
1303
  propsAsIs: !0
1290
- }), Ms = /* @__PURE__ */ o("div")({
1304
+ }), vs = /* @__PURE__ */ o("div")({
1291
1305
  name: "QuestionTypeLabel",
1292
1306
  class: "qmg0vkx",
1293
1307
  propsAsIs: !1
1294
- }), vs = /* @__PURE__ */ o("div")({
1308
+ }), Ns = /* @__PURE__ */ o("div")({
1295
1309
  name: "QuestionContent",
1296
1310
  class: "q1uz5j1g",
1297
1311
  propsAsIs: !1
1298
- }), Ns = /* @__PURE__ */ o("button")({
1312
+ }), ys = /* @__PURE__ */ o("button")({
1299
1313
  name: "PlayButton",
1300
1314
  class: "p1pba9p1",
1301
1315
  propsAsIs: !1
1302
1316
  }), As = {
1303
- [q.LOST]: /* @__PURE__ */ s(P, { name: "icon-cross" }),
1304
- [q.WON]: /* @__PURE__ */ s(P, { name: "icon-check" }),
1305
- [q.UNSET]: /* @__PURE__ */ s(P, { name: "icon-arrow" }),
1306
- [q.DNP]: /* @__PURE__ */ s(P, { name: "icon-arrow" })
1307
- }, ys = ({
1317
+ [q.LOST]: /* @__PURE__ */ s(Y, { name: "icon-cross" }),
1318
+ [q.WON]: /* @__PURE__ */ s(Y, { name: "icon-check" }),
1319
+ [q.UNSET]: /* @__PURE__ */ s(Y, { name: "icon-arrow" }),
1320
+ [q.DNP]: /* @__PURE__ */ s(Y, { name: "icon-arrow" })
1321
+ }, Ts = ({
1308
1322
  questionId: e,
1309
1323
  questionType: t,
1310
1324
  questionStatus: n,
1311
1325
  subject: i,
1312
1326
  openForVoting: r,
1313
- openQuestion: I,
1327
+ openQuestion: m,
1314
1328
  status: u
1315
1329
  }) => {
1316
- const m = Ne[t], d = As[u];
1317
- return m ? /* @__PURE__ */ p(us, { onClick: () => I == null ? void 0 : I(e), children: [
1318
- /* @__PURE__ */ p(vs, { children: [
1319
- /* @__PURE__ */ p(ps, { children: [
1320
- /* @__PURE__ */ s(gs, { name: m.iconName }),
1321
- /* @__PURE__ */ p(Ms, { children: [
1322
- m.label,
1330
+ const I = Ne[t], d = As[u];
1331
+ return I ? /* @__PURE__ */ p(ps, { onClick: () => m == null ? void 0 : m(e), children: [
1332
+ /* @__PURE__ */ p(Ns, { children: [
1333
+ /* @__PURE__ */ p(ms, { children: [
1334
+ /* @__PURE__ */ s(Ms, { name: I.iconName }),
1335
+ /* @__PURE__ */ p(vs, { children: [
1336
+ I.label,
1323
1337
  t === x.TRIVIA && n === Q.RESOLVED && " • Expired"
1324
1338
  ] })
1325
1339
  ] }),
1326
- /* @__PURE__ */ s(ms, { children: i || "" })
1340
+ /* @__PURE__ */ s(Is, { children: i || "" })
1327
1341
  ] }),
1328
- /* @__PURE__ */ s(Is, { children: r ? /* @__PURE__ */ s(Ns, { children: "Play" }) : d })
1342
+ /* @__PURE__ */ s(hs, { children: r ? /* @__PURE__ */ s(ys, { children: "Play" }) : d })
1329
1343
  ] }) : null;
1330
- }, Ts = /* @__PURE__ */ o("div")({
1344
+ }, Ds = /* @__PURE__ */ o("div")({
1331
1345
  name: "Container",
1332
1346
  class: "cll3md7",
1333
1347
  propsAsIs: !1
1334
- }), Ds = /* @__PURE__ */ o("button")({
1348
+ }), Ss = /* @__PURE__ */ o("button")({
1335
1349
  name: "ActionBtn",
1336
1350
  class: "a10g1iik",
1337
1351
  propsAsIs: !1
1338
- }), Ss = ({
1352
+ }), zs = ({
1339
1353
  openInsight: e,
1340
1354
  questionId: t,
1341
1355
  ...n
1342
- }) => /* @__PURE__ */ p(Ts, { children: [
1356
+ }) => /* @__PURE__ */ p(Ds, { children: [
1343
1357
  /* @__PURE__ */ s(xe, { questionId: t, ...n }),
1344
- e && /* @__PURE__ */ s(Ds, { onClick: () => e(t), children: "View Insight" })
1345
- ] }), zs = /* @__PURE__ */ o("div")({
1358
+ e && /* @__PURE__ */ s(Ss, { onClick: () => e(t), children: "View Insight" })
1359
+ ] }), xs = /* @__PURE__ */ o("div")({
1346
1360
  name: "QuestionsContainer",
1347
1361
  class: "qvghv3l",
1348
1362
  propsAsIs: !1
1349
- }), xs = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ s(zs, { children: e == null ? void 0 : e.map((n) => {
1363
+ }), js = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ s(xs, { children: e == null ? void 0 : e.map((n) => {
1350
1364
  var i, r;
1351
1365
  if (n.type === "question" && ((i = n.attributes) == null ? void 0 : i.attributes.case) === "question") {
1352
- const I = n.attributes.attributes.value;
1353
- return /* @__PURE__ */ s(ys, { openQuestion: t, ...I }, I.questionId);
1366
+ const m = n.attributes.attributes.value;
1367
+ return /* @__PURE__ */ s(Ts, { openQuestion: t, ...m }, m.questionId);
1354
1368
  }
1355
1369
  if (n.type === "insight" && ((r = n.attributes) == null ? void 0 : r.attributes.case) === "insight") {
1356
- const I = n.attributes.attributes.value;
1357
- return /* @__PURE__ */ s(Ss, { openInsight: t, ...I }, I.questionId);
1370
+ const m = n.attributes.attributes.value;
1371
+ return /* @__PURE__ */ s(zs, { openInsight: t, ...m }, m.questionId);
1358
1372
  }
1359
1373
  return null;
1360
- }) }), js = ({ store: e, openQuestion: t }) => {
1374
+ }) }), Os = ({ store: e, openQuestion: t }) => {
1361
1375
  const n = k(e);
1362
- return n != null && n.data ? /* @__PURE__ */ s(xs, { openQuestion: t, questions: n.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
1363
- }, Os = ({ userSummary: e }) => {
1376
+ return n != null && n.data ? /* @__PURE__ */ s(js, { openQuestion: t, questions: n.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
1377
+ }, Cs = ({ userSummary: e }) => {
1364
1378
  var t, n;
1365
1379
  const i = k(e.getStore());
1366
1380
  return (t = i.data) != null && t.summary ? /* @__PURE__ */ s(Se, { ...i.data.summary, successRate: (n = i.data.percentage) == null ? void 0 : n.correct }) : /* @__PURE__ */ s("div", { children: "wait user..." });
1367
- }, Cs = ({
1381
+ }, ks = ({
1368
1382
  gamification: e
1369
1383
  }) => {
1370
1384
  const [t, n] = R(V.HOME);
@@ -1379,7 +1393,7 @@ const Jn = /* @__PURE__ */ o("div")({
1379
1393
  style: {
1380
1394
  paddingBottom: "4px"
1381
1395
  },
1382
- children: /* @__PURE__ */ s(En, {
1396
+ children: /* @__PURE__ */ s(Ln, {
1383
1397
  activePage: t,
1384
1398
  toggleActivePage: n
1385
1399
  })
@@ -1388,37 +1402,37 @@ const Jn = /* @__PURE__ */ o("div")({
1388
1402
  style: {
1389
1403
  paddingTop: "12px"
1390
1404
  },
1391
- children: /* @__PURE__ */ s(Os, {
1405
+ children: /* @__PURE__ */ s(Cs, {
1392
1406
  userSummary: e.userSummary
1393
1407
  })
1394
1408
  }), /* @__PURE__ */ s(Ue, {
1395
- children: /* @__PURE__ */ s(js, {
1409
+ children: /* @__PURE__ */ s(Os, {
1396
1410
  openQuestion: e.openQuestion,
1397
1411
  store: e.feedList.getStore()
1398
1412
  })
1399
1413
  })]
1400
1414
  }), t === V.LEADERBOARD && /* @__PURE__ */ s("div", {
1401
1415
  className: "c1bp9dj2",
1402
- children: /* @__PURE__ */ s(ds, {
1416
+ children: /* @__PURE__ */ s(us, {
1403
1417
  gamification: e
1404
1418
  })
1405
1419
  })]
1406
1420
  });
1407
- }, ks = () => _e, ve = /* @__PURE__ */ o(ks())({
1421
+ }, ws = () => _e, ve = /* @__PURE__ */ o(ws())({
1408
1422
  name: "OpenedContainer",
1409
1423
  class: "oar61gl",
1410
1424
  propsAsIs: !0
1411
- }), ws = /* @__PURE__ */ o("div")({
1425
+ }), bs = /* @__PURE__ */ o("div")({
1412
1426
  name: "UserContainer",
1413
1427
  class: "u14zaal4",
1414
1428
  propsAsIs: !1
1415
- }), bs = ({
1429
+ }), Es = ({
1416
1430
  correct: e,
1417
1431
  incorrect: t
1418
1432
  }) => {
1419
1433
  const n = e + t;
1420
1434
  return n === 0 ? 0 : Math.round(e / n * 100);
1421
- }, Hs = ({
1435
+ }, Gs = ({
1422
1436
  gamification: e,
1423
1437
  className: t
1424
1438
  }) => {
@@ -1426,31 +1440,31 @@ const Jn = /* @__PURE__ */ o("div")({
1426
1440
  return /* @__PURE__ */ p(b, {
1427
1441
  children: [n && /* @__PURE__ */ s(ve, {
1428
1442
  className: t,
1429
- children: /* @__PURE__ */ s(On, {
1443
+ children: /* @__PURE__ */ s(Cn, {
1430
1444
  gamification: e
1431
1445
  })
1432
1446
  }), i && /* @__PURE__ */ s(ve, {
1433
1447
  className: t,
1434
- children: /* @__PURE__ */ p(ws, {
1435
- children: [/* @__PURE__ */ s(De, {
1448
+ children: /* @__PURE__ */ p(bs, {
1449
+ children: [/* @__PURE__ */ s(Ae, {
1436
1450
  label: "Friend's Rank",
1437
1451
  close: e.closeUser
1438
1452
  }), /* @__PURE__ */ s(K, {
1439
1453
  children: /* @__PURE__ */ s(Se, {
1440
1454
  ...i,
1441
- successRate: bs(i)
1455
+ successRate: Es(i)
1442
1456
  })
1443
1457
  })]
1444
1458
  })
1445
1459
  }), /* @__PURE__ */ s(te, {
1446
1460
  className: t,
1447
1461
  "data-nav": "true",
1448
- children: /* @__PURE__ */ s(Cs, {
1462
+ children: /* @__PURE__ */ s(ks, {
1449
1463
  gamification: e
1450
1464
  })
1451
1465
  })]
1452
1466
  });
1453
1467
  };
1454
1468
  export {
1455
- Hs as default
1469
+ Gs as default
1456
1470
  };