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