@streamlayer/react 0.37.0 → 0.37.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.
- package/lib/cjs/app.js +1 -1
- package/lib/cjs/gamification-feature.js +2 -2
- package/lib/cjs/index2.js +13 -3
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +30 -30
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/useSdkFeature.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +2 -2
- package/lib/dist/cjs/masters.js +76 -65
- package/lib/dist/es/gamification-feature.js +611 -610
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +22672 -20022
- package/lib/dist/index.d.ts +55 -55
- package/lib/dist/style.css +1 -1
- package/lib/es/app.js +5 -5
- package/lib/es/gamification-feature.js +614 -614
- package/lib/es/index2.js +59 -24
- package/lib/es/masters.js +4 -3
- package/lib/es/masters2.js +5728 -5677
- package/lib/es/points.js +21 -22
- package/lib/es/useSdkFeature.js +112 -97
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +14 -14
- package/lib/cjs/index3.js +0 -1
- package/lib/es/index3.js +0 -19
|
@@ -1,192 +1,191 @@
|
|
|
1
1
|
import { jsxs as a, jsx as s, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { s as
|
|
3
|
-
import { useStore as
|
|
4
|
-
import { useState as N, useCallback as B, useEffect as G, useMemo as q, PureComponent as
|
|
5
|
-
import { o as
|
|
6
|
-
import { QuestionType as h, QuestionStatus as
|
|
7
|
-
import { d as X } from "./index3.js";
|
|
2
|
+
import { s as i, c as g, d as me } from "./useSdkFeature.js";
|
|
3
|
+
import { useStore as D } from "@nanostores/react";
|
|
4
|
+
import { useState as N, useLayoutEffect as Se, useCallback as B, useEffect as G, useMemo as q, PureComponent as xe, useTransition as qe, useRef as Ee } from "react";
|
|
5
|
+
import { o as he, c as Ne, w as De, j as Ie, E as Le, K as Pe, a as Ve, p as Oe, C as Qe, n as ve, m as Me, b as _e, l as Ue, D as fe, Y as re, d as je } from "./masters2.js";
|
|
6
|
+
import { QuestionType as h, QuestionStatus as L, QuestionImages as U, PickHistoryStatus as F } from "@streamlayer/sdk-web-types";
|
|
8
7
|
import "react-countup";
|
|
9
|
-
import { CountdownCircleTimer as
|
|
8
|
+
import { CountdownCircleTimer as Be } from "react-countdown-circle-timer";
|
|
10
9
|
import { E as P } from "./index2.js";
|
|
11
|
-
import
|
|
10
|
+
import ze from "react-infinite-scroller";
|
|
11
|
+
import "lodash.throttle";
|
|
12
12
|
import "@streamlayer/sdk-web-interfaces";
|
|
13
13
|
import "@streamlayer/sdk-web-notifications";
|
|
14
|
-
import "lodash.throttle";
|
|
15
14
|
import "./useStreamLayerApp.js";
|
|
16
15
|
import "@streamlayer/sdk-web";
|
|
17
|
-
const
|
|
16
|
+
const Fe = /* @__PURE__ */ i("div")({
|
|
18
17
|
name: "Container",
|
|
19
18
|
class: "c1vwopgc",
|
|
20
19
|
propsAsIs: !1
|
|
21
|
-
}),
|
|
20
|
+
}), We = /* @__PURE__ */ i("div")({
|
|
22
21
|
name: "QuestionTypeWrap",
|
|
23
22
|
class: "qyktpt0",
|
|
24
23
|
propsAsIs: !1
|
|
25
|
-
}),
|
|
24
|
+
}), Ze = () => g, He = /* @__PURE__ */ i(Ze())({
|
|
26
25
|
name: "QuestionTypeIcon",
|
|
27
26
|
class: "q951jdx",
|
|
28
27
|
propsAsIs: !0
|
|
29
|
-
}),
|
|
28
|
+
}), Ye = /* @__PURE__ */ i("span")({
|
|
30
29
|
name: "QuestionTypeTitle",
|
|
31
30
|
class: "qss5f0e",
|
|
32
31
|
propsAsIs: !1
|
|
33
|
-
}),
|
|
34
|
-
name: "
|
|
32
|
+
}), Ge = /* @__PURE__ */ i("div")({
|
|
33
|
+
name: "CloseIconWrap",
|
|
35
34
|
class: "c1ao1jtv",
|
|
36
35
|
propsAsIs: !1
|
|
37
|
-
}),
|
|
36
|
+
}), Ke = () => g, Je = /* @__PURE__ */ i(Ke())({
|
|
38
37
|
name: "CloseIcon",
|
|
39
38
|
class: "cvsl7l3",
|
|
40
39
|
propsAsIs: !0
|
|
41
|
-
}),
|
|
42
|
-
const
|
|
43
|
-
return /* @__PURE__ */ a(
|
|
44
|
-
/* @__PURE__ */ a(
|
|
45
|
-
(
|
|
46
|
-
|
|
40
|
+
}), Ce = ({ type: e, close: n, label: t }) => {
|
|
41
|
+
const o = e ? he[e] : { label: t, iconName: void 0 };
|
|
42
|
+
return /* @__PURE__ */ a(Fe, { children: [
|
|
43
|
+
/* @__PURE__ */ a(We, { children: [
|
|
44
|
+
(o == null ? void 0 : o.iconName) && /* @__PURE__ */ s(
|
|
45
|
+
He,
|
|
47
46
|
{
|
|
48
47
|
"data-type-trivia": e === h.TRIVIA,
|
|
49
48
|
"data-type-poll": e === h.POLL,
|
|
50
|
-
name:
|
|
49
|
+
name: o.iconName
|
|
51
50
|
}
|
|
52
51
|
),
|
|
53
|
-
(
|
|
52
|
+
(o == null ? void 0 : o.label) && /* @__PURE__ */ s(Ye, { children: o.label })
|
|
54
53
|
] }),
|
|
55
|
-
/* @__PURE__ */ s(
|
|
54
|
+
/* @__PURE__ */ s(Ge, { onClick: n, children: /* @__PURE__ */ s(Je, { name: "icon-cross" }) })
|
|
56
55
|
] });
|
|
57
|
-
},
|
|
56
|
+
}, Ae = (e) => e.split(/\s+/).map((n) => n[0]).join("").toUpperCase(), ge = (e) => e ? e.toLocaleString("en-US") : "0", se = (e) => e.toLocaleDateString("en-US", {
|
|
58
57
|
weekday: "short",
|
|
59
58
|
month: "short",
|
|
60
59
|
day: "numeric"
|
|
61
|
-
}),
|
|
60
|
+
}), ne = (e) => e.toLocaleTimeString("en-US", {
|
|
62
61
|
hour: "2-digit",
|
|
63
62
|
minute: "2-digit"
|
|
64
|
-
}),
|
|
63
|
+
}), te = (e) => !isNaN(e.getTime()), Xe = /* @__PURE__ */ i("div")({
|
|
65
64
|
name: "Container",
|
|
66
65
|
class: "c1zy8a",
|
|
67
66
|
propsAsIs: !1
|
|
68
|
-
}),
|
|
67
|
+
}), es = /* @__PURE__ */ i("div")({
|
|
69
68
|
name: "Title",
|
|
70
69
|
class: "t1vih9p5",
|
|
71
70
|
propsAsIs: !1
|
|
72
|
-
}),
|
|
71
|
+
}), ss = /* @__PURE__ */ i("div")({
|
|
73
72
|
name: "Indicator",
|
|
74
73
|
class: "i1fbnvpb",
|
|
75
74
|
propsAsIs: !1
|
|
76
|
-
}),
|
|
77
|
-
/* @__PURE__ */ s(
|
|
78
|
-
/* @__PURE__ */ s(
|
|
79
|
-
] }),
|
|
75
|
+
}), ae = ({ indicator: e, title: n }) => /* @__PURE__ */ a(Xe, { children: [
|
|
76
|
+
/* @__PURE__ */ s(es, { children: n }),
|
|
77
|
+
/* @__PURE__ */ s(ss, { children: e })
|
|
78
|
+
] }), ns = /* @__PURE__ */ i("div")({
|
|
80
79
|
name: "Container",
|
|
81
80
|
class: "ctmhwyc",
|
|
82
81
|
propsAsIs: !1
|
|
83
|
-
}),
|
|
82
|
+
}), ts = /* @__PURE__ */ i("div")({
|
|
84
83
|
name: "Indicator",
|
|
85
84
|
class: "i1jri200",
|
|
86
85
|
propsAsIs: !1
|
|
87
|
-
}),
|
|
86
|
+
}), is = /* @__PURE__ */ i("div")({
|
|
88
87
|
name: "Title",
|
|
89
88
|
class: "t8s05oq",
|
|
90
89
|
propsAsIs: !1
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ s(
|
|
93
|
-
/* @__PURE__ */ s(
|
|
94
|
-
] }),
|
|
90
|
+
}), W = ({ indicator: e, title: n }) => /* @__PURE__ */ a(ns, { children: [
|
|
91
|
+
/* @__PURE__ */ s(ts, { children: e }),
|
|
92
|
+
/* @__PURE__ */ s(is, { children: n })
|
|
93
|
+
] }), os = /* @__PURE__ */ i("div")({
|
|
95
94
|
name: "Container",
|
|
96
95
|
class: "c1yrpn9o",
|
|
97
96
|
propsAsIs: !1
|
|
98
|
-
}),
|
|
97
|
+
}), rs = /* @__PURE__ */ i("div")({
|
|
99
98
|
name: "TopInfo",
|
|
100
99
|
class: "t17fwahh",
|
|
101
100
|
propsAsIs: !1
|
|
102
|
-
}),
|
|
101
|
+
}), as = /* @__PURE__ */ i("div")({
|
|
103
102
|
name: "BottomInfo",
|
|
104
103
|
class: "by6w7e9",
|
|
105
104
|
propsAsIs: !1
|
|
106
|
-
}),
|
|
105
|
+
}), ls = /* @__PURE__ */ i("div")({
|
|
107
106
|
name: "User",
|
|
108
107
|
class: "u1g7arbm",
|
|
109
108
|
propsAsIs: !1
|
|
110
|
-
}),
|
|
109
|
+
}), cs = /* @__PURE__ */ i("img")({
|
|
111
110
|
name: "Avatar",
|
|
112
111
|
class: "a1ldeata",
|
|
113
112
|
propsAsIs: !1
|
|
114
|
-
}),
|
|
113
|
+
}), ds = /* @__PURE__ */ i("div")({
|
|
115
114
|
name: "UserInfo",
|
|
116
115
|
class: "u10d4koz",
|
|
117
116
|
propsAsIs: !1
|
|
118
|
-
}),
|
|
117
|
+
}), ps = /* @__PURE__ */ i("div")({
|
|
119
118
|
name: "UserName",
|
|
120
119
|
class: "u1q6roj0",
|
|
121
120
|
propsAsIs: !1
|
|
122
|
-
}),
|
|
121
|
+
}), us = /* @__PURE__ */ i("div")({
|
|
123
122
|
name: "UserRating",
|
|
124
123
|
class: "ui0m425",
|
|
125
124
|
propsAsIs: !1
|
|
126
|
-
}),
|
|
125
|
+
}), ms = /* @__PURE__ */ i("img")({
|
|
127
126
|
name: "TrophyIcon",
|
|
128
127
|
class: "t1el3mrn",
|
|
129
128
|
propsAsIs: !1
|
|
130
|
-
}),
|
|
129
|
+
}), hs = /* @__PURE__ */ i("div")({
|
|
131
130
|
name: "Rts",
|
|
132
131
|
class: "r2vgnxv",
|
|
133
132
|
propsAsIs: !1
|
|
134
|
-
}),
|
|
133
|
+
}), Is = /* @__PURE__ */ i("div")({
|
|
135
134
|
name: "RtsIndicator",
|
|
136
135
|
class: "roqn06j",
|
|
137
136
|
propsAsIs: !1
|
|
138
|
-
}),
|
|
137
|
+
}), vs = /* @__PURE__ */ i("div")({
|
|
139
138
|
name: "RtsLabel",
|
|
140
139
|
class: "r15adx7c",
|
|
141
140
|
propsAsIs: !1
|
|
142
|
-
}),
|
|
141
|
+
}), fs = /* @__PURE__ */ i("div")({
|
|
143
142
|
name: "Divider",
|
|
144
143
|
class: "dv59lta",
|
|
145
144
|
propsAsIs: !1
|
|
146
|
-
}),
|
|
145
|
+
}), Cs = /* @__PURE__ */ i("div")({
|
|
147
146
|
name: "Ranks",
|
|
148
147
|
class: "r55lotb",
|
|
149
148
|
propsAsIs: !1
|
|
150
|
-
}),
|
|
149
|
+
}), As = /* @__PURE__ */ i("div")({
|
|
151
150
|
name: "Statistics",
|
|
152
151
|
class: "s1knfgqt",
|
|
153
152
|
propsAsIs: !1
|
|
154
|
-
}),
|
|
153
|
+
}), gs = /* @__PURE__ */ i("div")({
|
|
155
154
|
name: "AvatarPlaceholder",
|
|
156
155
|
class: "a1mqo824",
|
|
157
156
|
propsAsIs: !1
|
|
158
|
-
}),
|
|
157
|
+
}), $s = /* @__PURE__ */ i("button")({
|
|
159
158
|
name: "UserAccountBtn",
|
|
160
159
|
class: "uxareh6",
|
|
161
160
|
propsAsIs: !1
|
|
162
|
-
}),
|
|
161
|
+
}), bs = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e", $e = ({
|
|
163
162
|
avatar: e,
|
|
164
163
|
name: n,
|
|
165
164
|
points: t,
|
|
166
|
-
friendsRank:
|
|
165
|
+
friendsRank: o,
|
|
167
166
|
rank: r,
|
|
168
167
|
streak: p,
|
|
169
|
-
correct:
|
|
170
|
-
incorrect:
|
|
168
|
+
correct: d,
|
|
169
|
+
incorrect: l,
|
|
171
170
|
inTop: c,
|
|
172
|
-
successRate:
|
|
173
|
-
}) => /* @__PURE__ */ a(
|
|
174
|
-
/* @__PURE__ */ s(
|
|
175
|
-
/* @__PURE__ */ a(
|
|
176
|
-
e && /* @__PURE__ */ s(
|
|
177
|
-
!e && /* @__PURE__ */ s(
|
|
171
|
+
successRate: m
|
|
172
|
+
}) => /* @__PURE__ */ a(os, { children: [
|
|
173
|
+
/* @__PURE__ */ s(rs, { children: /* @__PURE__ */ a(ls, { children: [
|
|
174
|
+
/* @__PURE__ */ a($s, { children: [
|
|
175
|
+
e && /* @__PURE__ */ s(cs, { alt: "avatar", src: e }),
|
|
176
|
+
!e && /* @__PURE__ */ s(gs, { children: Ae(n || "") })
|
|
178
177
|
] }),
|
|
179
|
-
/* @__PURE__ */ a(
|
|
180
|
-
/* @__PURE__ */ s(
|
|
181
|
-
/* @__PURE__ */ a(
|
|
182
|
-
/* @__PURE__ */ a(
|
|
183
|
-
/* @__PURE__ */ s(
|
|
184
|
-
/* @__PURE__ */ a(
|
|
185
|
-
|
|
186
|
-
/* @__PURE__ */ s(
|
|
178
|
+
/* @__PURE__ */ a(ds, { children: [
|
|
179
|
+
/* @__PURE__ */ s(ps, { children: n }),
|
|
180
|
+
/* @__PURE__ */ a(us, { children: [
|
|
181
|
+
/* @__PURE__ */ a(hs, { children: [
|
|
182
|
+
/* @__PURE__ */ s(ms, { alt: "rank-icon", src: bs }),
|
|
183
|
+
/* @__PURE__ */ a(Is, { children: [
|
|
184
|
+
ge(t),
|
|
185
|
+
/* @__PURE__ */ s(vs, { children: "PTS" })
|
|
187
186
|
] })
|
|
188
187
|
] }),
|
|
189
|
-
/* @__PURE__ */ s(
|
|
188
|
+
/* @__PURE__ */ s(fs, {}),
|
|
190
189
|
/* @__PURE__ */ a("div", { children: [
|
|
191
190
|
"TOP ",
|
|
192
191
|
c || 0,
|
|
@@ -195,652 +194,652 @@ const Ue = /* @__PURE__ */ o("div")({
|
|
|
195
194
|
] })
|
|
196
195
|
] })
|
|
197
196
|
] }) }),
|
|
198
|
-
/* @__PURE__ */ a(
|
|
199
|
-
/* @__PURE__ */ a(
|
|
200
|
-
/* @__PURE__ */ s(
|
|
201
|
-
/* @__PURE__ */ s(
|
|
197
|
+
/* @__PURE__ */ a(as, { children: [
|
|
198
|
+
/* @__PURE__ */ a(Cs, { children: [
|
|
199
|
+
/* @__PURE__ */ s(ae, { indicator: o || 0, title: "Friends rank" }),
|
|
200
|
+
/* @__PURE__ */ s(ae, { indicator: r || 0, title: "Global rank" })
|
|
202
201
|
] }),
|
|
203
|
-
/* @__PURE__ */ a(
|
|
204
|
-
/* @__PURE__ */ s(
|
|
205
|
-
/* @__PURE__ */ s(
|
|
206
|
-
/* @__PURE__ */ s(
|
|
207
|
-
/* @__PURE__ */ s(
|
|
202
|
+
/* @__PURE__ */ a(As, { children: [
|
|
203
|
+
/* @__PURE__ */ s(W, { indicator: p || 0, title: "Win streak" }),
|
|
204
|
+
/* @__PURE__ */ s(W, { indicator: d || 0, title: "Correct" }),
|
|
205
|
+
/* @__PURE__ */ s(W, { indicator: l || 0, title: "Incorrect" }),
|
|
206
|
+
/* @__PURE__ */ s(W, { indicator: `${m || 0}%`, title: "Succ. rate" })
|
|
208
207
|
] })
|
|
209
208
|
] })
|
|
210
|
-
] }),
|
|
209
|
+
] }), ys = /* @__PURE__ */ i("div")({
|
|
211
210
|
name: "SponsorLogoWrap",
|
|
212
211
|
class: "s8p5v5z",
|
|
213
212
|
propsAsIs: !1
|
|
214
|
-
}),
|
|
213
|
+
}), ws = () => g, Rs = /* @__PURE__ */ i(ws())({
|
|
215
214
|
name: "SponsorLogo",
|
|
216
215
|
class: "s755yti",
|
|
217
216
|
propsAsIs: !0
|
|
218
|
-
}),
|
|
219
|
-
children: /* @__PURE__ */ s(
|
|
217
|
+
}), Ts = () => /* @__PURE__ */ s(ys, {
|
|
218
|
+
children: /* @__PURE__ */ s(Rs, {
|
|
220
219
|
name: "mastersLogo"
|
|
221
220
|
})
|
|
222
|
-
}),
|
|
221
|
+
}), ks = /* @__PURE__ */ i("div")({
|
|
223
222
|
name: "Container",
|
|
224
223
|
class: "c38csyt",
|
|
225
224
|
propsAsIs: !1
|
|
226
|
-
}),
|
|
225
|
+
}), Ss = /* @__PURE__ */ i("div")({
|
|
227
226
|
name: "Title",
|
|
228
227
|
class: "ty221rx",
|
|
229
228
|
propsAsIs: !1
|
|
230
|
-
}),
|
|
229
|
+
}), xs = /* @__PURE__ */ i("div")({
|
|
231
230
|
name: "Description",
|
|
232
231
|
class: "dlaj9xp",
|
|
233
232
|
propsAsIs: !1
|
|
234
|
-
}),
|
|
235
|
-
/* @__PURE__ */ s(
|
|
236
|
-
/* @__PURE__ */ s(
|
|
237
|
-
/* @__PURE__ */ s(
|
|
238
|
-
] }),
|
|
233
|
+
}), qs = ({ title: e, description: n }) => /* @__PURE__ */ a(ks, { children: [
|
|
234
|
+
/* @__PURE__ */ s(g, { name: "icon-check-circle" }),
|
|
235
|
+
/* @__PURE__ */ s(Ss, { children: e }),
|
|
236
|
+
/* @__PURE__ */ s(xs, { children: n })
|
|
237
|
+
] }), Es = /* @__PURE__ */ i("div")({
|
|
239
238
|
name: "Container",
|
|
240
239
|
class: "c16sbdnm",
|
|
241
240
|
propsAsIs: !1
|
|
242
|
-
}),
|
|
241
|
+
}), Ns = () => g, Ds = /* @__PURE__ */ i(Ns())({
|
|
243
242
|
name: "IconPrediction",
|
|
244
243
|
class: "ibhorgl",
|
|
245
244
|
propsAsIs: !0
|
|
246
|
-
}), j = /* @__PURE__ */
|
|
245
|
+
}), j = /* @__PURE__ */ i("div")({
|
|
247
246
|
name: "FeedbackIconWrap",
|
|
248
247
|
class: "f1g20ja7",
|
|
249
248
|
propsAsIs: !1
|
|
250
|
-
}),
|
|
249
|
+
}), Z = /* @__PURE__ */ i("div")({
|
|
251
250
|
name: "FeedbackHeader",
|
|
252
251
|
class: "f455ozj",
|
|
253
252
|
propsAsIs: !1
|
|
254
|
-
}),
|
|
253
|
+
}), Ls = /* @__PURE__ */ i("span")({
|
|
255
254
|
name: "FeedbackTitle",
|
|
256
255
|
class: "f1913njx",
|
|
257
256
|
propsAsIs: !1
|
|
258
|
-
}), Q = /* @__PURE__ */
|
|
257
|
+
}), Q = /* @__PURE__ */ i("span")({
|
|
259
258
|
name: "FeedbackDescription",
|
|
260
259
|
class: "fzfk69z",
|
|
261
260
|
propsAsIs: !1
|
|
262
|
-
}),
|
|
261
|
+
}), ee = /* @__PURE__ */ i("div")({
|
|
263
262
|
name: "FeedbackText",
|
|
264
263
|
class: "fx87qaj",
|
|
265
264
|
propsAsIs: !1
|
|
266
|
-
}),
|
|
265
|
+
}), Ps = ({
|
|
267
266
|
feedbackMessages: e,
|
|
268
267
|
questionVotedCorrectly: n,
|
|
269
268
|
questionVoted: t,
|
|
270
|
-
questionType:
|
|
269
|
+
questionType: o,
|
|
271
270
|
hasCorrectAnswer: r,
|
|
272
271
|
questionStatus: p,
|
|
273
|
-
showExpiredNotification:
|
|
274
|
-
showClosedNotificationTrivia:
|
|
272
|
+
showExpiredNotification: d,
|
|
273
|
+
showClosedNotificationTrivia: l,
|
|
275
274
|
votedInCurrentRender: c,
|
|
276
|
-
votedAfterQuestionClosed:
|
|
277
|
-
enteredAnActiveQuestion:
|
|
278
|
-
marketClosed:
|
|
275
|
+
votedAfterQuestionClosed: m,
|
|
276
|
+
enteredAnActiveQuestion: u,
|
|
277
|
+
marketClosed: f
|
|
279
278
|
}) => {
|
|
280
|
-
const I = t && (
|
|
281
|
-
if (!
|
|
279
|
+
const I = t && (o === h.TRIVIA || o === h.PREDICTION) && c && p !== L.RESOLVED, C = o === h.PREDICTION && !r, R = f && o === h.PREDICTION && !t && !u || o === h.PREDICTION && m && c && u, A = I && C, k = I && r, $ = o === h.PREDICTION && t && c && r, T = t && o === h.POLL && c;
|
|
280
|
+
if (!d && !l && !A && !k && !R && !T && !$)
|
|
282
281
|
return null;
|
|
283
|
-
const
|
|
284
|
-
return /* @__PURE__ */ a(
|
|
285
|
-
|
|
286
|
-
/* @__PURE__ */ s(j, { children: /* @__PURE__ */ s(
|
|
282
|
+
const S = n ? "correct" : "incorrect", x = n ? e == null ? void 0 : e.correctFeedback : e == null ? void 0 : e.incorrectFeedback;
|
|
283
|
+
return /* @__PURE__ */ a(Es, { "data-isPrediction": C, children: [
|
|
284
|
+
d && /* @__PURE__ */ a(E, { children: [
|
|
285
|
+
/* @__PURE__ */ s(j, { children: /* @__PURE__ */ s(g, { name: "questionExpired" }) }),
|
|
287
286
|
/* @__PURE__ */ a("div", { children: [
|
|
288
|
-
/* @__PURE__ */ s(
|
|
289
|
-
/* @__PURE__ */ s(
|
|
287
|
+
/* @__PURE__ */ s(Z, { children: /* @__PURE__ */ s(Q, { children: "Question Expired" }) }),
|
|
288
|
+
/* @__PURE__ */ s(ee, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
|
|
290
289
|
] })
|
|
291
290
|
] }),
|
|
292
|
-
|
|
293
|
-
/* @__PURE__ */ s(j, { children: /* @__PURE__ */ s(
|
|
291
|
+
l && /* @__PURE__ */ a(E, { children: [
|
|
292
|
+
/* @__PURE__ */ s(j, { children: /* @__PURE__ */ s(g, { name: "questionExpired" }) }),
|
|
294
293
|
/* @__PURE__ */ a("div", { children: [
|
|
295
|
-
/* @__PURE__ */ s(
|
|
296
|
-
/* @__PURE__ */ s(
|
|
294
|
+
/* @__PURE__ */ s(Z, { children: /* @__PURE__ */ s(Q, { children: "Question Closed" }) }),
|
|
295
|
+
/* @__PURE__ */ s(ee, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
|
|
297
296
|
] })
|
|
298
297
|
] }),
|
|
299
|
-
|
|
300
|
-
/* @__PURE__ */ s(j, { children: /* @__PURE__ */ s(
|
|
298
|
+
R && /* @__PURE__ */ a(E, { children: [
|
|
299
|
+
/* @__PURE__ */ s(j, { children: /* @__PURE__ */ s(g, { name: "questionExpired" }) }),
|
|
301
300
|
/* @__PURE__ */ a("div", { children: [
|
|
302
|
-
/* @__PURE__ */ s(
|
|
303
|
-
/* @__PURE__ */ s(
|
|
301
|
+
/* @__PURE__ */ s(Z, { children: /* @__PURE__ */ s(Q, { children: "Question Closed" }) }),
|
|
302
|
+
/* @__PURE__ */ s(ee, { children: "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
|
|
304
303
|
] })
|
|
305
304
|
] }),
|
|
306
305
|
A && /* @__PURE__ */ a(E, { children: [
|
|
307
|
-
/* @__PURE__ */ s(
|
|
306
|
+
/* @__PURE__ */ s(Ds, { name: "icon-prediction" }),
|
|
308
307
|
/* @__PURE__ */ s(Q, { children: "Stay tuned to see if your prediction was correct." })
|
|
309
308
|
] }),
|
|
310
|
-
|
|
311
|
-
/* @__PURE__ */ s(j, { "data-feedback-type": "correct", children: /* @__PURE__ */ s(
|
|
309
|
+
T && /* @__PURE__ */ a(E, { children: [
|
|
310
|
+
/* @__PURE__ */ s(j, { "data-feedback-type": "correct", children: /* @__PURE__ */ s(g, { name: "correct" }) }),
|
|
312
311
|
/* @__PURE__ */ s(Q, { children: "That's for answering. Please stay tuned for the next question." })
|
|
313
312
|
] }),
|
|
314
|
-
(
|
|
315
|
-
/* @__PURE__ */ s(j, { "data-feedback-type":
|
|
316
|
-
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ a(
|
|
317
|
-
/* @__PURE__ */ s(
|
|
318
|
-
/* @__PURE__ */ s(Q, { children:
|
|
313
|
+
(k || $) && /* @__PURE__ */ a(E, { children: [
|
|
314
|
+
/* @__PURE__ */ s(j, { "data-feedback-type": S, children: /* @__PURE__ */ s(g, { name: S }) }),
|
|
315
|
+
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ a(Z, { children: [
|
|
316
|
+
/* @__PURE__ */ s(Ls, { "data-feedback-type": S, children: x == null ? void 0 : x.title }),
|
|
317
|
+
/* @__PURE__ */ s(Q, { children: x == null ? void 0 : x.description })
|
|
319
318
|
] }) })
|
|
320
319
|
] })
|
|
321
320
|
] });
|
|
322
|
-
},
|
|
321
|
+
}, Vs = /* @__PURE__ */ i("div")({
|
|
323
322
|
name: "Container",
|
|
324
323
|
class: "c14ielyq",
|
|
325
324
|
propsAsIs: !1
|
|
326
|
-
}),
|
|
325
|
+
}), Os = () => Ne, Qs = /* @__PURE__ */ i(Os())({
|
|
327
326
|
name: "QuestionScrollContainer",
|
|
328
327
|
class: "q1tlqx57",
|
|
329
328
|
propsAsIs: !0
|
|
330
|
-
}),
|
|
329
|
+
}), Ms = /* @__PURE__ */ i("div")({
|
|
331
330
|
name: "Content",
|
|
332
331
|
class: "c1hq58md",
|
|
333
332
|
propsAsIs: !1
|
|
334
|
-
}),
|
|
333
|
+
}), _s = /* @__PURE__ */ i("div")({
|
|
335
334
|
name: "Title",
|
|
336
335
|
class: "t1c8nxcx",
|
|
337
336
|
propsAsIs: !1
|
|
338
|
-
}),
|
|
337
|
+
}), Us = /* @__PURE__ */ i("div")({
|
|
339
338
|
name: "Options",
|
|
340
339
|
class: "oiozuc3",
|
|
341
340
|
propsAsIs: !1
|
|
342
|
-
}),
|
|
341
|
+
}), js = /* @__PURE__ */ i("button")({
|
|
343
342
|
name: "ButtonContainer",
|
|
344
343
|
class: "b1b6dl8t",
|
|
345
344
|
propsAsIs: !1
|
|
346
|
-
}),
|
|
345
|
+
}), Bs = /* @__PURE__ */ i("div")({
|
|
347
346
|
name: "ButtonPct",
|
|
348
347
|
class: "b4iik8i",
|
|
349
348
|
propsAsIs: !1
|
|
350
|
-
}),
|
|
349
|
+
}), zs = /* @__PURE__ */ i("span")({
|
|
351
350
|
name: "ButtonBody",
|
|
352
351
|
class: "b1gq1lnf",
|
|
353
352
|
propsAsIs: !1
|
|
354
|
-
}),
|
|
353
|
+
}), Fs = /* @__PURE__ */ i("div")({
|
|
355
354
|
name: "IconContainer",
|
|
356
355
|
class: "i1j65z51",
|
|
357
356
|
propsAsIs: !1
|
|
358
|
-
}),
|
|
357
|
+
}), Ws = /* @__PURE__ */ i("div")({
|
|
359
358
|
name: "IconWrap",
|
|
360
359
|
class: "i19tpfua",
|
|
361
360
|
propsAsIs: !1
|
|
362
|
-
}),
|
|
361
|
+
}), be = /* @__PURE__ */ i("img")({
|
|
363
362
|
name: "Icon",
|
|
364
363
|
class: "i1tubmma",
|
|
365
364
|
propsAsIs: !1
|
|
366
|
-
}),
|
|
365
|
+
}), Zs = () => be, Hs = /* @__PURE__ */ i(Zs())({
|
|
367
366
|
name: "IconDefault",
|
|
368
367
|
class: "i1grrgwj",
|
|
369
368
|
propsAsIs: !0
|
|
370
|
-
}),
|
|
369
|
+
}), Ys = () => be, Gs = /* @__PURE__ */ i(Ys())({
|
|
371
370
|
name: "IconCircle",
|
|
372
371
|
class: "ibemyq8",
|
|
373
372
|
propsAsIs: !0
|
|
374
|
-
}),
|
|
373
|
+
}), Ks = /* @__PURE__ */ i("span")({
|
|
375
374
|
name: "Title",
|
|
376
375
|
class: "t1dceht",
|
|
377
376
|
propsAsIs: !1
|
|
378
|
-
}),
|
|
377
|
+
}), Js = /* @__PURE__ */ i("span")({
|
|
379
378
|
name: "Indicators",
|
|
380
379
|
class: "i116q4vq",
|
|
381
380
|
propsAsIs: !1
|
|
382
|
-
}),
|
|
381
|
+
}), Xs = /* @__PURE__ */ i("span")({
|
|
383
382
|
name: "Pts",
|
|
384
383
|
class: "p17ajcu2",
|
|
385
384
|
propsAsIs: !1
|
|
386
|
-
}),
|
|
385
|
+
}), en = /* @__PURE__ */ i("span")({
|
|
387
386
|
name: "Percentage",
|
|
388
387
|
class: "pu9kmlb",
|
|
389
388
|
propsAsIs: !1
|
|
390
|
-
}),
|
|
389
|
+
}), sn = () => g, nn = /* @__PURE__ */ i(sn())({
|
|
391
390
|
name: "CheckIcon",
|
|
392
391
|
class: "c1j2j0s0",
|
|
393
392
|
propsAsIs: !0
|
|
394
|
-
}),
|
|
395
|
-
[U.CENTERED]: (e) => /* @__PURE__ */ s(
|
|
396
|
-
[U.TRANSPARENT]: (e) => /* @__PURE__ */ s(
|
|
397
|
-
[U.ROUNDED]: (e) => /* @__PURE__ */ s(
|
|
393
|
+
}), le = {
|
|
394
|
+
[U.CENTERED]: (e) => /* @__PURE__ */ s(Hs, { alt: "option-icon", src: e }),
|
|
395
|
+
[U.TRANSPARENT]: (e) => /* @__PURE__ */ s(Fs, { children: /* @__PURE__ */ s(Ws, { style: { backgroundImage: `url(${e})` } }) }),
|
|
396
|
+
[U.ROUNDED]: (e) => /* @__PURE__ */ s(Gs, { alt: "option-icon", src: e }),
|
|
398
397
|
[U.NONE]: () => null,
|
|
399
398
|
[U.UNSET]: () => null
|
|
400
|
-
},
|
|
401
|
-
if (e === h.POLL &&
|
|
399
|
+
}, tn = ({ questionType: e, hasCorrectAnswer: n, correct: t, youVoted: o, questionVoted: r }) => {
|
|
400
|
+
if (e === h.POLL && o)
|
|
402
401
|
return "correct";
|
|
403
402
|
if (e === h.PREDICTION) {
|
|
404
403
|
if (n && r)
|
|
405
|
-
return
|
|
406
|
-
if (
|
|
404
|
+
return o ? t ? "correct" : "incorrect" : "unset";
|
|
405
|
+
if (o)
|
|
407
406
|
return "correct";
|
|
408
407
|
}
|
|
409
|
-
return e === h.TRIVIA && r &&
|
|
410
|
-
},
|
|
408
|
+
return e === h.TRIVIA && r && o ? t ? "correct" : "incorrect" : "unset";
|
|
409
|
+
}, on = ({
|
|
411
410
|
questionType: e,
|
|
412
411
|
questionVoted: n,
|
|
413
412
|
correct: t,
|
|
414
|
-
hasCorrectAnswer:
|
|
413
|
+
hasCorrectAnswer: o,
|
|
415
414
|
questionStatus: r
|
|
416
|
-
}) => e === h.TRIVIA ? n && t : e === h.PREDICTION ? n && t &&
|
|
415
|
+
}) => e === h.TRIVIA ? n && t : e === h.PREDICTION ? n && t && o || r === L.RESOLVED && t : !1, rn = (e) => {
|
|
417
416
|
var n;
|
|
418
417
|
const {
|
|
419
418
|
// option props
|
|
420
419
|
id: t,
|
|
421
|
-
icon:
|
|
420
|
+
icon: o,
|
|
422
421
|
text: r,
|
|
423
422
|
percentageDecimal: p,
|
|
424
|
-
points:
|
|
423
|
+
points: d,
|
|
425
424
|
// extra props
|
|
426
|
-
onVote:
|
|
425
|
+
onVote: l,
|
|
427
426
|
markThatVoted: c,
|
|
428
|
-
youSelected:
|
|
429
|
-
questionVoted:
|
|
430
|
-
imageMode:
|
|
427
|
+
youSelected: m,
|
|
428
|
+
questionVoted: u,
|
|
429
|
+
imageMode: f,
|
|
431
430
|
answerTimeExpired: I,
|
|
432
|
-
questionStatus:
|
|
433
|
-
isLoading:
|
|
431
|
+
questionStatus: C,
|
|
432
|
+
isLoading: R,
|
|
434
433
|
questionType: A,
|
|
435
|
-
correct:
|
|
436
|
-
hasCorrectAnswer:
|
|
437
|
-
votedAfterQuestionClosed:
|
|
438
|
-
enteredAnActiveQuestion:
|
|
439
|
-
marketClosed:
|
|
440
|
-
} = e, V =
|
|
441
|
-
return
|
|
442
|
-
|
|
434
|
+
correct: k,
|
|
435
|
+
hasCorrectAnswer: $,
|
|
436
|
+
votedAfterQuestionClosed: T,
|
|
437
|
+
enteredAnActiveQuestion: S,
|
|
438
|
+
marketClosed: x
|
|
439
|
+
} = e, [M, z] = N(p), V = tn(e), K = on({ questionType: A, questionVoted: u, correct: k, hasCorrectAnswer: $, questionStatus: C }), v = x && A === h.PREDICTION, b = u || v, y = A === h.PREDICTION && !u && !x, J = u && !m && V !== "incorrect";
|
|
440
|
+
return Se(() => {
|
|
441
|
+
p > 0 && (z(0), requestAnimationFrame(() => {
|
|
442
|
+
z(p);
|
|
443
|
+
}));
|
|
444
|
+
}, [p]), /* @__PURE__ */ a(
|
|
445
|
+
js,
|
|
443
446
|
{
|
|
444
447
|
value: t,
|
|
445
|
-
"data-selected":
|
|
448
|
+
"data-selected": m,
|
|
446
449
|
"data-answer-state": V,
|
|
447
|
-
disabled:
|
|
448
|
-
"data-is-not-checked":
|
|
449
|
-
onClick: (
|
|
450
|
+
disabled: u || R || I || v && !S || v && S && T,
|
|
451
|
+
"data-is-not-checked": J,
|
|
452
|
+
onClick: (X) => {
|
|
450
453
|
c(
|
|
451
|
-
A === h.PREDICTION ?
|
|
452
|
-
),
|
|
454
|
+
A === h.PREDICTION ? x : C === L.RESOLVED
|
|
455
|
+
), l(X);
|
|
453
456
|
},
|
|
454
457
|
children: [
|
|
455
|
-
/* @__PURE__ */ s(
|
|
456
|
-
/* @__PURE__ */ a(
|
|
457
|
-
|
|
458
|
-
/* @__PURE__ */ s(
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
/* @__PURE__ */ s(
|
|
458
|
+
/* @__PURE__ */ s(Bs, { "data-answer-state": V, style: { width: `${b ? M : 0}%` } }),
|
|
459
|
+
/* @__PURE__ */ a(zs, { children: [
|
|
460
|
+
o && f && ((n = le[f]) == null ? void 0 : n.call(le, o)),
|
|
461
|
+
/* @__PURE__ */ s(Ks, { children: r }),
|
|
462
|
+
y && /* @__PURE__ */ a("div", { children: [
|
|
463
|
+
d,
|
|
464
|
+
/* @__PURE__ */ s(Xs, { children: "pts" })
|
|
462
465
|
] }),
|
|
463
|
-
|
|
464
|
-
K && /* @__PURE__ */ s(
|
|
465
|
-
/* @__PURE__ */ s(
|
|
466
|
+
b && /* @__PURE__ */ a(Js, { children: [
|
|
467
|
+
K && /* @__PURE__ */ s(nn, { name: "selected" }),
|
|
468
|
+
/* @__PURE__ */ s(en, { children: /* @__PURE__ */ s(me, { value: p, suffix: "%" }) })
|
|
466
469
|
] })
|
|
467
470
|
] })
|
|
468
471
|
]
|
|
469
472
|
}
|
|
470
473
|
);
|
|
471
|
-
},
|
|
474
|
+
}, an = [P.PRIMARY_GREEN1, P.SECONDARY_RED1, P.SECONDARY_RED1, P.NEUTRALS_GRAY3], ln = [10, 10, 1, 0], cn = /* @__PURE__ */ i("div")({
|
|
472
475
|
name: "RemainingTime",
|
|
473
476
|
class: "r165427",
|
|
474
477
|
propsAsIs: !1
|
|
475
|
-
}),
|
|
478
|
+
}), dn = P.SECONDARY_GREEN6, ce = P.SECONDARY_RED3, pn = P.NEUTRALS_GRAY3, un = ({
|
|
476
479
|
isPlaying: e = !0,
|
|
477
480
|
duration: n = 30,
|
|
478
481
|
onTimerExpired: t
|
|
479
482
|
}) => {
|
|
480
|
-
const [
|
|
483
|
+
const [o, r] = N(n > 10 ? dn : ce), p = ({
|
|
481
484
|
remainingTime: c
|
|
482
|
-
}) => /* @__PURE__ */ s(
|
|
485
|
+
}) => /* @__PURE__ */ s(cn, {
|
|
483
486
|
children: c
|
|
484
|
-
}),
|
|
485
|
-
t == null || t(), r(
|
|
486
|
-
}, [t, r]),
|
|
487
|
-
c === 10 && r(
|
|
487
|
+
}), d = B(() => {
|
|
488
|
+
t == null || t(), r(pn);
|
|
489
|
+
}, [t, r]), l = B((c) => {
|
|
490
|
+
c === 10 && r(ce);
|
|
488
491
|
}, [r]);
|
|
489
|
-
return /* @__PURE__ */ s(
|
|
492
|
+
return /* @__PURE__ */ s(Be, {
|
|
490
493
|
isPlaying: e,
|
|
491
494
|
duration: n,
|
|
492
|
-
colors:
|
|
493
|
-
colorsTime:
|
|
495
|
+
colors: an,
|
|
496
|
+
colorsTime: ln,
|
|
494
497
|
size: 32,
|
|
495
498
|
strokeWidth: 2,
|
|
496
499
|
trailStrokeWidth: 2,
|
|
497
|
-
trailColor:
|
|
498
|
-
onComplete:
|
|
499
|
-
onUpdate:
|
|
500
|
+
trailColor: o,
|
|
501
|
+
onComplete: d,
|
|
502
|
+
onUpdate: l,
|
|
500
503
|
children: p
|
|
501
504
|
});
|
|
502
|
-
},
|
|
505
|
+
}, mn = /* @__PURE__ */ i("div")({
|
|
503
506
|
name: "WinBarContainer",
|
|
504
507
|
class: "wie6cqo",
|
|
505
508
|
propsAsIs: !1
|
|
506
|
-
}),
|
|
509
|
+
}), hn = /* @__PURE__ */ i("div")({
|
|
507
510
|
name: "Content",
|
|
508
511
|
class: "cgizw4u",
|
|
509
512
|
propsAsIs: !1
|
|
510
|
-
}),
|
|
513
|
+
}), In = /* @__PURE__ */ i("div")({
|
|
511
514
|
name: "Title",
|
|
512
515
|
class: "t1l3ucjp",
|
|
513
516
|
propsAsIs: !1
|
|
514
|
-
}),
|
|
517
|
+
}), vn = () => g, fn = /* @__PURE__ */ i(vn())({
|
|
515
518
|
name: "WinIcon",
|
|
516
519
|
class: "wx7j799",
|
|
517
520
|
propsAsIs: !0
|
|
518
|
-
}),
|
|
521
|
+
}), Cn = /* @__PURE__ */ i("div")({
|
|
519
522
|
name: "Points",
|
|
520
523
|
class: "p4lwuj0",
|
|
521
524
|
propsAsIs: !1
|
|
522
|
-
}),
|
|
525
|
+
}), An = /* @__PURE__ */ i("span")({
|
|
523
526
|
name: "PointsCount",
|
|
524
527
|
class: "po9i64o",
|
|
525
528
|
propsAsIs: !1
|
|
526
|
-
}),
|
|
529
|
+
}), gn = /* @__PURE__ */ i("span")({
|
|
527
530
|
name: "PointsUnits",
|
|
528
531
|
class: "pe5g05h",
|
|
529
532
|
propsAsIs: !1
|
|
530
|
-
}),
|
|
533
|
+
}), $n = ({
|
|
531
534
|
title: e,
|
|
532
535
|
points: n,
|
|
533
536
|
isPlayingTimer: t,
|
|
534
|
-
isTimer:
|
|
535
|
-
|
|
536
|
-
|
|
537
|
+
isTimer: o,
|
|
538
|
+
animatePoints: r,
|
|
539
|
+
questionType: p,
|
|
540
|
+
timerDuration: d,
|
|
537
541
|
onTimerExpired: l
|
|
538
|
-
}) => /* @__PURE__ */ a(
|
|
539
|
-
/* @__PURE__ */ a(
|
|
540
|
-
e && /* @__PURE__ */ s(
|
|
541
|
-
n !== void 0 &&
|
|
542
|
-
/* @__PURE__ */ s(
|
|
543
|
-
/* @__PURE__ */ a(
|
|
544
|
-
/* @__PURE__ */ s(
|
|
545
|
-
/* @__PURE__ */ s(
|
|
542
|
+
}) => /* @__PURE__ */ a(mn, { style: { justifyContent: p === h.PREDICTION ? "center" : "space-between" }, children: [
|
|
543
|
+
/* @__PURE__ */ a(hn, { children: [
|
|
544
|
+
e && /* @__PURE__ */ s(In, { children: e }),
|
|
545
|
+
n !== void 0 && p !== h.POLL && /* @__PURE__ */ a(E, { children: [
|
|
546
|
+
/* @__PURE__ */ s(fn, { name: "icon-trophy" }),
|
|
547
|
+
/* @__PURE__ */ a(Cn, { children: [
|
|
548
|
+
/* @__PURE__ */ s(An, { children: r ? /* @__PURE__ */ s(me, { value: n, delay: 0.3 }) : n }),
|
|
549
|
+
/* @__PURE__ */ s(gn, { children: "PTS" })
|
|
546
550
|
] })
|
|
547
551
|
] })
|
|
548
552
|
] }),
|
|
549
|
-
|
|
550
|
-
] }),
|
|
553
|
+
o && p !== h.PREDICTION && /* @__PURE__ */ s(un, { isPlaying: t, onTimerExpired: l, duration: d })
|
|
554
|
+
] }), bn = ({ openedQuestion: e, isLoading: n, vote: t, close: o }) => {
|
|
551
555
|
var r, p;
|
|
552
|
-
const
|
|
556
|
+
const d = e.subject, l = e.type, c = e.status, m = (r = e.options) == null ? void 0 : r.options, u = e.marketClosed, [f, I] = N(!1), [C, R] = N(!1), [A, k] = N(!0), [$, T] = N(!1), [S, x] = N(""), M = e == null ? void 0 : e.id;
|
|
553
557
|
G(() => {
|
|
554
|
-
|
|
558
|
+
l === h.PREDICTION ? u && k(!1) : c === L.RESOLVED && k(!1);
|
|
555
559
|
}, []);
|
|
556
|
-
const
|
|
557
|
-
w
|
|
558
|
-
}, []),
|
|
559
|
-
async (
|
|
560
|
-
if (
|
|
561
|
-
const _ =
|
|
562
|
-
|
|
560
|
+
const z = B((w) => {
|
|
561
|
+
R(w), I(!0);
|
|
562
|
+
}, []), V = B(
|
|
563
|
+
async (w) => {
|
|
564
|
+
if (M) {
|
|
565
|
+
const _ = w.currentTarget.value;
|
|
566
|
+
x(_), await t(M, _);
|
|
563
567
|
}
|
|
564
568
|
},
|
|
565
|
-
[
|
|
566
|
-
),
|
|
567
|
-
|
|
568
|
-
}, [
|
|
569
|
-
() => e == null ? void 0 : e.answers.find((
|
|
569
|
+
[M, x, t]
|
|
570
|
+
), K = B(() => {
|
|
571
|
+
T(!0), setTimeout(o, 3e3);
|
|
572
|
+
}, [o]), v = q(
|
|
573
|
+
() => e == null ? void 0 : e.answers.find((w) => w.youVoted === !0),
|
|
570
574
|
[e]
|
|
571
|
-
),
|
|
572
|
-
() => !!(e != null && e.answers.find((
|
|
575
|
+
), b = q(
|
|
576
|
+
() => !!(e != null && e.answers.find((w) => w.correct === !0)),
|
|
573
577
|
[e]
|
|
574
|
-
),
|
|
575
|
-
() => e == null ? void 0 : e.answers.find((
|
|
578
|
+
), y = q(
|
|
579
|
+
() => e == null ? void 0 : e.answers.find((w) => w.correct === !0),
|
|
576
580
|
[e]
|
|
577
|
-
),
|
|
581
|
+
), J = q(() => e ? e.answers.map((w) => {
|
|
578
582
|
var _;
|
|
579
583
|
return {
|
|
580
|
-
...
|
|
581
|
-
questionVoted: !!
|
|
582
|
-
youSelected:
|
|
584
|
+
...w,
|
|
585
|
+
questionVoted: !!v,
|
|
586
|
+
youSelected: S === w.id,
|
|
583
587
|
isLoading: n,
|
|
584
|
-
hasCorrectAnswer:
|
|
588
|
+
hasCorrectAnswer: b,
|
|
585
589
|
questionType: e.type,
|
|
586
|
-
answerTimeExpired:
|
|
590
|
+
answerTimeExpired: $,
|
|
587
591
|
questionStatus: c,
|
|
588
592
|
imageMode: (_ = e.appearance) == null ? void 0 : _.images,
|
|
589
|
-
onVote:
|
|
593
|
+
onVote: V
|
|
590
594
|
};
|
|
591
595
|
}) : [], [
|
|
592
|
-
R,
|
|
593
596
|
b,
|
|
597
|
+
$,
|
|
594
598
|
n,
|
|
595
599
|
e,
|
|
596
|
-
|
|
600
|
+
v,
|
|
597
601
|
c,
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
]),
|
|
601
|
-
if (
|
|
602
|
-
return
|
|
603
|
-
if (!(
|
|
604
|
-
return c ===
|
|
602
|
+
V,
|
|
603
|
+
S
|
|
604
|
+
]), X = m && (m.case === "trivia" || m.case === "prediction") ? m.value : void 0, O = c === L.RESOLVED && l === h.TRIVIA && !v && !A, ie = l === h.TRIVIA && C && f && A, oe = q(() => l === h.PREDICTION ? !!(v && !b || v && b && y != null && y.youVoted) : !0, [l, v, b, y]), we = q(() => {
|
|
605
|
+
if (l === h.PREDICTION && v && (!b || b && y != null && y.youVoted))
|
|
606
|
+
return v.points;
|
|
607
|
+
if (!(O || $))
|
|
608
|
+
return c === L.RESOLVED ? 0 : v ? v.correct ? v.points : 0 : y == null ? void 0 : y.points;
|
|
605
609
|
}, [
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
610
|
+
$,
|
|
611
|
+
v,
|
|
612
|
+
y,
|
|
609
613
|
c,
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
]),
|
|
614
|
-
return /* @__PURE__ */ s(
|
|
614
|
+
O,
|
|
615
|
+
l,
|
|
616
|
+
b
|
|
617
|
+
]), Re = q(() => l === h.PREDICTION && v ? b ? b && y != null && y.youVoted ? "You won" : "" : "To win" : O || $ ? "Time expired" : l === h.POLL ? "Time remaining" : v ? "You won" : "To win", [$, l, v, O, b, y]), Te = (l === h.TRIVIA || l === h.PREDICTION) && v && b && (y == null ? void 0 : y.youVoted), ke = v || O || ie || l === h.TRIVIA && c === L.RESOLVED && A;
|
|
618
|
+
return /* @__PURE__ */ s(Qs, { children: /* @__PURE__ */ s(Vs, { children: /* @__PURE__ */ a(Ms, { children: [
|
|
615
619
|
/* @__PURE__ */ s(
|
|
616
|
-
|
|
620
|
+
Ps,
|
|
617
621
|
{
|
|
618
|
-
feedbackMessages:
|
|
619
|
-
questionVoted: !!
|
|
620
|
-
questionVotedCorrectly:
|
|
621
|
-
questionType:
|
|
622
|
-
hasCorrectAnswer:
|
|
622
|
+
feedbackMessages: X,
|
|
623
|
+
questionVoted: !!v,
|
|
624
|
+
questionVotedCorrectly: v == null ? void 0 : v.correct,
|
|
625
|
+
questionType: l,
|
|
626
|
+
hasCorrectAnswer: b,
|
|
623
627
|
questionStatus: c,
|
|
624
|
-
showExpiredNotification:
|
|
625
|
-
showClosedNotificationTrivia:
|
|
626
|
-
votedInCurrentRender:
|
|
627
|
-
votedAfterQuestionClosed:
|
|
628
|
+
showExpiredNotification: O,
|
|
629
|
+
showClosedNotificationTrivia: ie,
|
|
630
|
+
votedInCurrentRender: f,
|
|
631
|
+
votedAfterQuestionClosed: C,
|
|
628
632
|
enteredAnActiveQuestion: A,
|
|
629
|
-
marketClosed:
|
|
633
|
+
marketClosed: u
|
|
630
634
|
}
|
|
631
635
|
),
|
|
632
636
|
oe && /* @__PURE__ */ s(
|
|
633
|
-
|
|
637
|
+
$n,
|
|
634
638
|
{
|
|
635
|
-
title:
|
|
636
|
-
points:
|
|
637
|
-
onTimerExpired:
|
|
639
|
+
title: Re,
|
|
640
|
+
points: we,
|
|
641
|
+
onTimerExpired: K,
|
|
638
642
|
questionType: e.type,
|
|
639
643
|
isTimer: !n,
|
|
640
|
-
isPlayingTimer: !
|
|
641
|
-
|
|
644
|
+
isPlayingTimer: !v,
|
|
645
|
+
animatePoints: Te,
|
|
646
|
+
timerDuration: ke ? 0 : Number(((p = e == null ? void 0 : e.appearance) == null ? void 0 : p.autoHideInterval) || "30")
|
|
642
647
|
}
|
|
643
648
|
),
|
|
644
|
-
|
|
645
|
-
|
|
649
|
+
$ ? /* @__PURE__ */ s(
|
|
650
|
+
qs,
|
|
646
651
|
{
|
|
647
652
|
title: "More to come...",
|
|
648
653
|
description: "Watch for additional enhanced stream interactive experience."
|
|
649
654
|
}
|
|
650
655
|
) : /* @__PURE__ */ a(E, { children: [
|
|
651
|
-
/* @__PURE__ */ s(
|
|
652
|
-
/* @__PURE__ */ s(
|
|
653
|
-
|
|
656
|
+
/* @__PURE__ */ s(_s, { style: oe ? {} : { marginTop: 0 }, children: d }),
|
|
657
|
+
/* @__PURE__ */ s(Us, { children: J.map((w) => /* @__PURE__ */ s(
|
|
658
|
+
rn,
|
|
654
659
|
{
|
|
655
|
-
...
|
|
656
|
-
markThatVoted:
|
|
657
|
-
votedAfterQuestionClosed:
|
|
660
|
+
...w,
|
|
661
|
+
markThatVoted: z,
|
|
662
|
+
votedAfterQuestionClosed: C,
|
|
658
663
|
enteredAnActiveQuestion: A,
|
|
659
|
-
marketClosed:
|
|
664
|
+
marketClosed: u
|
|
660
665
|
},
|
|
661
|
-
|
|
666
|
+
w.id
|
|
662
667
|
)) })
|
|
663
668
|
] })
|
|
664
669
|
] }) }) });
|
|
665
|
-
},
|
|
670
|
+
}, yn = /* @__PURE__ */ i("div")({
|
|
666
671
|
name: "Container",
|
|
667
672
|
class: "cgn5uen",
|
|
668
673
|
propsAsIs: !1
|
|
669
|
-
}),
|
|
674
|
+
}), wn = /* @__PURE__ */ i("div")({
|
|
670
675
|
name: "Content",
|
|
671
676
|
class: "c1px8nt6",
|
|
672
677
|
propsAsIs: !1
|
|
673
|
-
}),
|
|
678
|
+
}), Rn = /* @__PURE__ */ i("h3")({
|
|
674
679
|
name: "Title",
|
|
675
680
|
class: "t5et2jt",
|
|
676
681
|
propsAsIs: !1
|
|
677
|
-
}),
|
|
682
|
+
}), Tn = /* @__PURE__ */ i("div")({
|
|
678
683
|
name: "Description",
|
|
679
684
|
class: "d1i2kpk2",
|
|
680
685
|
propsAsIs: !1
|
|
681
|
-
}),
|
|
686
|
+
}), kn = /* @__PURE__ */ i("div")({
|
|
682
687
|
name: "DateWrap",
|
|
683
688
|
class: "dd3lh3p",
|
|
684
689
|
propsAsIs: !1
|
|
685
|
-
}),
|
|
690
|
+
}), Sn = /* @__PURE__ */ i("img")({
|
|
686
691
|
name: "Image",
|
|
687
692
|
class: "i1gfjeu5",
|
|
688
693
|
propsAsIs: !1
|
|
689
|
-
}),
|
|
690
|
-
|
|
691
|
-
title: n,
|
|
692
|
-
isPickHistory: t,
|
|
693
|
-
instantView: i,
|
|
694
|
-
notification: r
|
|
695
|
-
}) => {
|
|
696
|
-
const p = q(() => {
|
|
694
|
+
}), ye = ({ created: e, instantView: n, isDetail: t, notification: o }) => {
|
|
695
|
+
const r = q(() => {
|
|
697
696
|
if (e) {
|
|
698
|
-
const
|
|
699
|
-
if (
|
|
697
|
+
const u = new Date(e);
|
|
698
|
+
if (te(u))
|
|
700
699
|
return {
|
|
701
|
-
date:
|
|
702
|
-
time:
|
|
700
|
+
date: se(u),
|
|
701
|
+
time: ne(u)
|
|
703
702
|
};
|
|
704
703
|
}
|
|
705
704
|
return null;
|
|
706
|
-
}, [e]);
|
|
707
|
-
return /* @__PURE__ */ a(
|
|
708
|
-
|
|
709
|
-
|
|
705
|
+
}, [e]), p = n == null ? void 0 : n.heading, d = n == null ? void 0 : n.body, l = p || d, c = o == null ? void 0 : o.title, m = o == null ? void 0 : o.body;
|
|
706
|
+
return /* @__PURE__ */ a(yn, { children: [
|
|
707
|
+
r && /* @__PURE__ */ a(kn, { children: [
|
|
708
|
+
r.date,
|
|
710
709
|
" · ",
|
|
711
|
-
|
|
710
|
+
r.time
|
|
712
711
|
] }),
|
|
713
|
-
(
|
|
714
|
-
(
|
|
715
|
-
/* @__PURE__ */ a(
|
|
716
|
-
/* @__PURE__ */ s(
|
|
717
|
-
/* @__PURE__ */ s(
|
|
712
|
+
(n == null ? void 0 : n.video) && /* @__PURE__ */ s(De, { source: n.video.url, poster: n.video.thumbnailUrl }),
|
|
713
|
+
(n == null ? void 0 : n.image) && !(n != null && n.video) && /* @__PURE__ */ s(Sn, { src: n == null ? void 0 : n.image }),
|
|
714
|
+
/* @__PURE__ */ a(wn, { children: [
|
|
715
|
+
/* @__PURE__ */ s(Rn, { children: t && l ? p : c }),
|
|
716
|
+
/* @__PURE__ */ s(Tn, { children: t && l ? d : m })
|
|
718
717
|
] })
|
|
719
718
|
] });
|
|
720
|
-
},
|
|
719
|
+
}, xn = /* @__PURE__ */ i("div")({
|
|
721
720
|
name: "Container",
|
|
722
721
|
class: "c1euiow",
|
|
723
722
|
propsAsIs: !1
|
|
724
|
-
}),
|
|
723
|
+
}), qn = /* @__PURE__ */ i("a")({
|
|
725
724
|
name: "WebLinkBtn",
|
|
726
725
|
class: "w19zie3h",
|
|
727
726
|
propsAsIs: !1
|
|
728
|
-
}),
|
|
729
|
-
/* @__PURE__ */ s(
|
|
730
|
-
(e == null ? void 0 : e.webLink) && /* @__PURE__ */ a(
|
|
727
|
+
}), En = ({ instantView: e, ...n }) => /* @__PURE__ */ a(xn, { children: [
|
|
728
|
+
/* @__PURE__ */ s(ye, { instantView: e, ...n, isDetail: !0 }),
|
|
729
|
+
(e == null ? void 0 : e.webLink) && /* @__PURE__ */ a(qn, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
|
|
731
730
|
e == null ? void 0 : e.webLink.label,
|
|
732
|
-
/* @__PURE__ */ s(
|
|
731
|
+
/* @__PURE__ */ s(g, { name: "icon-external-link" })
|
|
733
732
|
] })
|
|
734
|
-
] }),
|
|
733
|
+
] }), Nn = /* @__PURE__ */ i("div")({
|
|
735
734
|
name: "Container",
|
|
736
735
|
class: "c1dcxmvf",
|
|
737
736
|
propsAsIs: !1
|
|
738
|
-
}),
|
|
737
|
+
}), Dn = /* @__PURE__ */ i("div")({
|
|
739
738
|
name: "DateTime",
|
|
740
739
|
class: "db4q22c",
|
|
741
740
|
propsAsIs: !1
|
|
742
|
-
}),
|
|
741
|
+
}), Ln = /* @__PURE__ */ i("blockquote")({
|
|
743
742
|
name: "Quote",
|
|
744
743
|
class: "q111mmic",
|
|
745
744
|
propsAsIs: !1
|
|
746
|
-
}),
|
|
745
|
+
}), Pn = ({ created: e, ...n }) => {
|
|
747
746
|
const t = q(() => {
|
|
748
747
|
if (e) {
|
|
749
|
-
const
|
|
750
|
-
if (
|
|
748
|
+
const o = new Date(e);
|
|
749
|
+
if (te(o))
|
|
751
750
|
return {
|
|
752
|
-
date:
|
|
753
|
-
time:
|
|
751
|
+
date: se(o),
|
|
752
|
+
time: ne(o)
|
|
754
753
|
};
|
|
755
754
|
}
|
|
756
755
|
return null;
|
|
757
756
|
}, [e]);
|
|
758
|
-
return /* @__PURE__ */ a(
|
|
759
|
-
t && /* @__PURE__ */ a(
|
|
757
|
+
return /* @__PURE__ */ a(Nn, { children: [
|
|
758
|
+
t && /* @__PURE__ */ a(Dn, { children: [
|
|
760
759
|
t.date,
|
|
761
760
|
" · ",
|
|
762
761
|
t.time
|
|
763
762
|
] }),
|
|
764
|
-
n.title && /* @__PURE__ */ s(
|
|
765
|
-
/* @__PURE__ */ s(
|
|
763
|
+
n.title && /* @__PURE__ */ s(Ln, { children: n.title }),
|
|
764
|
+
/* @__PURE__ */ s(Ie, { ...n })
|
|
766
765
|
] });
|
|
767
|
-
},
|
|
766
|
+
}, Vn = /* @__PURE__ */ i("div")({
|
|
768
767
|
name: "QuestionContainer",
|
|
769
768
|
class: "qdri6g3",
|
|
770
769
|
propsAsIs: !1
|
|
771
|
-
}),
|
|
770
|
+
}), On = ({
|
|
772
771
|
openedQuestion: e
|
|
773
772
|
}) => {
|
|
774
773
|
var n, t;
|
|
775
|
-
return ((n = e == null ? void 0 : e.attributes) == null ? void 0 : n.attributes.case) === "insight" ? /* @__PURE__ */ s(
|
|
774
|
+
return ((n = e == null ? void 0 : e.attributes) == null ? void 0 : n.attributes.case) === "insight" ? /* @__PURE__ */ s(En, {
|
|
776
775
|
created: e.attributes.created,
|
|
777
776
|
...e.attributes.attributes.value
|
|
778
|
-
}) : ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "tweet" ? /* @__PURE__ */ s(
|
|
777
|
+
}) : ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "tweet" ? /* @__PURE__ */ s(Pn, {
|
|
779
778
|
created: e.attributes.created,
|
|
780
779
|
...e.attributes.attributes.value
|
|
781
780
|
}) : null;
|
|
782
|
-
},
|
|
781
|
+
}, Qn = ({
|
|
783
782
|
extendedQuestion: e,
|
|
784
783
|
vote: n,
|
|
785
784
|
close: t
|
|
786
785
|
}) => {
|
|
787
786
|
const {
|
|
788
|
-
loading:
|
|
787
|
+
loading: o,
|
|
789
788
|
data: r
|
|
790
789
|
} = e;
|
|
791
|
-
return r ? /* @__PURE__ */ s(
|
|
790
|
+
return r ? /* @__PURE__ */ s(bn, {
|
|
792
791
|
vote: n,
|
|
793
792
|
close: t,
|
|
794
793
|
openedQuestion: r,
|
|
795
|
-
isLoading: !!
|
|
794
|
+
isLoading: !!o
|
|
796
795
|
}) : null;
|
|
797
|
-
},
|
|
796
|
+
}, Mn = ({
|
|
798
797
|
gamification: e
|
|
799
798
|
}) => {
|
|
800
799
|
var n;
|
|
801
|
-
const t =
|
|
800
|
+
const t = D(e.openedQuestion.$store), o = D(e.openedQuestion.$extendedStore);
|
|
802
801
|
if (!t)
|
|
803
802
|
return null;
|
|
804
803
|
const r = t.type;
|
|
805
|
-
return /* @__PURE__ */ a(
|
|
806
|
-
children: [/* @__PURE__ */ s(
|
|
804
|
+
return /* @__PURE__ */ a(Vn, {
|
|
805
|
+
children: [/* @__PURE__ */ s(Ce, {
|
|
807
806
|
close: e.closeQuestion,
|
|
808
807
|
type: ((n = t.attributes) == null ? void 0 : n.type) || h.UNSET
|
|
809
|
-
}), r === "question" && /* @__PURE__ */ s(
|
|
808
|
+
}), r === "question" && /* @__PURE__ */ s(Qn, {
|
|
810
809
|
vote: e.submitAnswer,
|
|
811
810
|
close: e.closeQuestion,
|
|
812
|
-
extendedQuestion:
|
|
813
|
-
}), r !== "question" && /* @__PURE__ */ s(
|
|
811
|
+
extendedQuestion: o
|
|
812
|
+
}), r !== "question" && /* @__PURE__ */ s(On, {
|
|
814
813
|
openedQuestion: t
|
|
815
|
-
}), /* @__PURE__ */ s(
|
|
814
|
+
}), /* @__PURE__ */ s(Ts, {
|
|
816
815
|
sponsorLogo: ""
|
|
817
816
|
})]
|
|
818
817
|
});
|
|
819
|
-
},
|
|
818
|
+
}, _n = /* @__PURE__ */ i("div")({
|
|
820
819
|
name: "Container",
|
|
821
820
|
class: "c115qtkr",
|
|
822
821
|
propsAsIs: !1
|
|
823
|
-
}),
|
|
822
|
+
}), Un = /* @__PURE__ */ i("div")({
|
|
824
823
|
name: "STabs",
|
|
825
824
|
class: "sxnslc8",
|
|
826
825
|
propsAsIs: !1
|
|
827
|
-
}),
|
|
826
|
+
}), jn = /* @__PURE__ */ i("button")({
|
|
828
827
|
name: "Button",
|
|
829
828
|
class: "b1umzux0",
|
|
830
829
|
propsAsIs: !1
|
|
831
|
-
}),
|
|
830
|
+
}), Bn = /* @__PURE__ */ i("span")({
|
|
832
831
|
name: "Title",
|
|
833
832
|
class: "tspsaas",
|
|
834
833
|
propsAsIs: !1
|
|
835
834
|
});
|
|
836
|
-
var
|
|
837
|
-
const
|
|
838
|
-
/* @__PURE__ */ s(
|
|
835
|
+
var Y = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(Y || {});
|
|
836
|
+
const de = ({ title: e, active: n, onClick: t }) => /* @__PURE__ */ s(jn, { onClick: t, "data-selected": n, children: /* @__PURE__ */ s(Bn, { children: e }) }), zn = ({ activePage: e = "home", toggleActivePage: n }) => /* @__PURE__ */ s(_n, { children: /* @__PURE__ */ a(Un, { "data-position": e === "home" ? "left" : "right", children: [
|
|
837
|
+
/* @__PURE__ */ s(de, { title: "Home", active: e === "home", onClick: () => n(
|
|
839
838
|
"home"
|
|
840
839
|
/* HOME */
|
|
841
840
|
) }),
|
|
842
841
|
/* @__PURE__ */ s(
|
|
843
|
-
|
|
842
|
+
de,
|
|
844
843
|
{
|
|
845
844
|
title: "Friends",
|
|
846
845
|
active: e === "leaderboard",
|
|
@@ -850,76 +849,76 @@ const ce = ({ title: e, active: n, onClick: t }) => /* @__PURE__ */ s(Mn, { onCl
|
|
|
850
849
|
)
|
|
851
850
|
}
|
|
852
851
|
)
|
|
853
|
-
] }) }),
|
|
852
|
+
] }) }), Fn = /* @__PURE__ */ i("div")({
|
|
854
853
|
name: "Container",
|
|
855
854
|
class: "c1ux29ft",
|
|
856
855
|
propsAsIs: !1
|
|
857
|
-
}),
|
|
856
|
+
}), Wn = /* @__PURE__ */ i("img")({
|
|
858
857
|
name: "FriendsIcon",
|
|
859
858
|
class: "f10ncfg2",
|
|
860
859
|
propsAsIs: !1
|
|
861
|
-
}),
|
|
860
|
+
}), Zn = /* @__PURE__ */ i("div")({
|
|
862
861
|
name: "Content",
|
|
863
862
|
class: "c1yc07bd",
|
|
864
863
|
propsAsIs: !1
|
|
865
|
-
}),
|
|
864
|
+
}), Hn = /* @__PURE__ */ i("div")({
|
|
866
865
|
name: "Title",
|
|
867
866
|
class: "tj6cq7w",
|
|
868
867
|
propsAsIs: !1
|
|
869
|
-
}),
|
|
868
|
+
}), Yn = /* @__PURE__ */ i("div")({
|
|
870
869
|
name: "Description",
|
|
871
870
|
class: "d1ag78xo",
|
|
872
871
|
propsAsIs: !1
|
|
873
|
-
}),
|
|
872
|
+
}), Gn = () => g, Kn = /* @__PURE__ */ i(Gn())({
|
|
874
873
|
name: "ArrowInviteIcon",
|
|
875
874
|
class: "awohrz6",
|
|
876
875
|
propsAsIs: !0
|
|
877
|
-
}),
|
|
878
|
-
/* @__PURE__ */ s(
|
|
879
|
-
/* @__PURE__ */ a(
|
|
880
|
-
/* @__PURE__ */ s(
|
|
881
|
-
/* @__PURE__ */ s(
|
|
876
|
+
}), Jn = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='white'/%3e%3cpath%20d='M10.4615%2012.6875C9.44231%2012.6875%208.61538%2013.4665%208.61538%2014.4266C8.61538%2015.3868%209.44231%2016.1658%2010.4615%2016.1658C11.4808%2016.1658%2012.3077%2015.3868%2012.3077%2014.4266C12.3077%2013.4665%2011.4808%2012.6875%2010.4615%2012.6875ZM10.4615%2016.1658C9.10817%2016.1658%208%2017.2097%208%2018.4846V19.7527C8%2019.7527%208.61538%2020.2237%2010.4615%2020.2237C12.3077%2020.2237%2012.9231%2019.7527%2012.9231%2019.7527V18.4846C12.9231%2017.2097%2011.8149%2016.1658%2010.4615%2016.1658ZM21.5385%2012.6875C20.5192%2012.6875%2019.6923%2013.4665%2019.6923%2014.4266C19.6923%2015.3868%2020.5192%2016.1658%2021.5385%2016.1658C22.5577%2016.1658%2023.3846%2015.3868%2023.3846%2014.4266C23.3846%2013.4665%2022.5577%2012.6875%2021.5385%2012.6875ZM21.5385%2016.1658C20.1851%2016.1658%2019.0769%2017.2097%2019.0769%2018.4846V19.7527C19.0769%2019.7527%2019.6923%2020.2237%2021.5385%2020.2237C23.3846%2020.2237%2024%2019.7527%2024%2019.7527V18.4846C24%2017.2097%2022.8918%2016.1658%2021.5385%2016.1658ZM16%2015.0063C14.9808%2015.0063%2014.1538%2015.7853%2014.1538%2016.7455C14.1538%2017.7056%2014.9808%2018.4846%2016%2018.4846C17.0192%2018.4846%2017.8462%2017.7056%2017.8462%2016.7455C17.8462%2015.7853%2017.0192%2015.0063%2016%2015.0063ZM16%2018.4846C14.6466%2018.4846%2013.5385%2019.5285%2013.5385%2020.8034V22.0715C13.5385%2022.0715%2014.1538%2022.5425%2016%2022.5425C17.8462%2022.5425%2018.4615%2022.0715%2018.4615%2022.0715V20.8034C18.4615%2019.5285%2017.3534%2018.4846%2016%2018.4846Z'%20fill='%23107D57'/%3e%3cpath%20opacity='0.5'%20d='M13.3908%209C12.3103%209%2011.4336%209.82584%2011.4336%2010.8437C11.4336%2011.8616%2012.3103%2012.6875%2013.3908%2012.6875C14.4713%2012.6875%2015.348%2011.8616%2015.348%2010.8437C15.348%209.82584%2014.4713%209%2013.3908%209ZM13.3908%2012.6875C13.1946%2012.6875%2012.9958%2012.6827%2012.7996%2012.7451C13.192%2013.2372%2013.3908%2013.8542%2013.3908%2014.5312C13.3908%2014.7761%2013.3296%2015.0161%2013.3296%2015.261C13.8521%2014.524%2014.6956%2014.0391%2015.6742%2013.9166C15.218%2013.1796%2014.3694%2012.6875%2013.3908%2012.6875ZM18.61%209C17.5295%209%2016.6528%209.82584%2016.6528%2010.8437C16.6528%2011.8616%2017.5295%2012.6875%2018.61%2012.6875C19.6905%2012.6875%2020.5672%2011.8616%2020.5672%2010.8437C20.5672%209.82584%2019.6905%209%2018.61%209ZM18.61%2012.6875C17.6314%2012.6875%2016.7828%2013.1796%2016.3266%2013.9166C17.3052%2014.0391%2018.1487%2014.524%2018.6712%2015.261C18.6712%2015.0161%2018.61%2014.7761%2018.61%2014.5312C18.61%2013.8542%2018.8088%2013.2372%2019.2012%2012.7451C19.005%2012.6827%2018.8062%2012.6875%2018.61%2012.6875Z'%20fill='%23107D57'/%3e%3c/svg%3e", Xn = ({ title: e, description: n, onClick: t, className: o }) => /* @__PURE__ */ a(Fn, { onClick: t, className: o, children: [
|
|
877
|
+
/* @__PURE__ */ s(Wn, { alt: "friends-icon", src: Jn }),
|
|
878
|
+
/* @__PURE__ */ a(Zn, { children: [
|
|
879
|
+
/* @__PURE__ */ s(Hn, { children: e }),
|
|
880
|
+
/* @__PURE__ */ s(Yn, { children: n })
|
|
882
881
|
] }),
|
|
883
|
-
/* @__PURE__ */ s(
|
|
882
|
+
/* @__PURE__ */ s(Kn, { name: "icon-copy" })
|
|
884
883
|
] });
|
|
885
|
-
function
|
|
886
|
-
var n = e.lastRenderedStartIndex, t = e.lastRenderedStopIndex,
|
|
887
|
-
return !(
|
|
884
|
+
function et(e) {
|
|
885
|
+
var n = e.lastRenderedStartIndex, t = e.lastRenderedStopIndex, o = e.startIndex, r = e.stopIndex;
|
|
886
|
+
return !(o > t || r < n);
|
|
888
887
|
}
|
|
889
|
-
function
|
|
890
|
-
for (var n = e.isItemLoaded, t = e.itemCount,
|
|
891
|
-
var
|
|
892
|
-
|
|
888
|
+
function st(e) {
|
|
889
|
+
for (var n = e.isItemLoaded, t = e.itemCount, o = e.minimumBatchSize, r = e.startIndex, p = e.stopIndex, d = [], l = null, c = null, m = r; m <= p; m++) {
|
|
890
|
+
var u = n(m);
|
|
891
|
+
u ? c !== null && (d.push(l, c), l = c = null) : (c = m, l === null && (l = m));
|
|
893
892
|
}
|
|
894
893
|
if (c !== null) {
|
|
895
|
-
for (var
|
|
894
|
+
for (var f = Math.min(Math.max(c, l + o - 1), t - 1), I = c + 1; I <= f && !n(I); I++)
|
|
896
895
|
c = I;
|
|
897
|
-
|
|
896
|
+
d.push(l, c);
|
|
898
897
|
}
|
|
899
|
-
if (
|
|
900
|
-
for (;
|
|
901
|
-
var
|
|
902
|
-
if (!n(
|
|
903
|
-
|
|
898
|
+
if (d.length)
|
|
899
|
+
for (; d[1] - d[0] + 1 < o && d[0] > 0; ) {
|
|
900
|
+
var C = d[0] - 1;
|
|
901
|
+
if (!n(C))
|
|
902
|
+
d[0] = C;
|
|
904
903
|
else
|
|
905
904
|
break;
|
|
906
905
|
}
|
|
907
|
-
return
|
|
906
|
+
return d;
|
|
908
907
|
}
|
|
909
|
-
var
|
|
908
|
+
var nt = function(e, n) {
|
|
910
909
|
if (!(e instanceof n))
|
|
911
910
|
throw new TypeError("Cannot call a class as a function");
|
|
912
|
-
},
|
|
911
|
+
}, tt = /* @__PURE__ */ function() {
|
|
913
912
|
function e(n, t) {
|
|
914
|
-
for (var
|
|
915
|
-
var r = t[
|
|
913
|
+
for (var o = 0; o < t.length; o++) {
|
|
914
|
+
var r = t[o];
|
|
916
915
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, r.key, r);
|
|
917
916
|
}
|
|
918
917
|
}
|
|
919
|
-
return function(n, t,
|
|
920
|
-
return t && e(n.prototype, t),
|
|
918
|
+
return function(n, t, o) {
|
|
919
|
+
return t && e(n.prototype, t), o && e(n, o), n;
|
|
921
920
|
};
|
|
922
|
-
}(),
|
|
921
|
+
}(), it = function(e, n) {
|
|
923
922
|
if (typeof n != "function" && n !== null)
|
|
924
923
|
throw new TypeError("Super expression must either be null or a function, not " + typeof n);
|
|
925
924
|
e.prototype = Object.create(n && n.prototype, {
|
|
@@ -930,30 +929,30 @@ var Jn = function(e, n) {
|
|
|
930
929
|
configurable: !0
|
|
931
930
|
}
|
|
932
931
|
}), n && (Object.setPrototypeOf ? Object.setPrototypeOf(e, n) : e.__proto__ = n);
|
|
933
|
-
},
|
|
932
|
+
}, pe = function(e, n) {
|
|
934
933
|
if (!e)
|
|
935
934
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
936
935
|
return n && (typeof n == "object" || typeof n == "function") ? n : e;
|
|
937
936
|
};
|
|
938
937
|
(function(e) {
|
|
939
|
-
|
|
938
|
+
it(n, e);
|
|
940
939
|
function n() {
|
|
941
|
-
var t,
|
|
942
|
-
|
|
943
|
-
for (var
|
|
944
|
-
|
|
945
|
-
return p = (
|
|
946
|
-
var
|
|
947
|
-
r._lastRenderedStartIndex =
|
|
948
|
-
}, r._setRef = function(
|
|
949
|
-
r._listRef =
|
|
950
|
-
},
|
|
940
|
+
var t, o, r, p;
|
|
941
|
+
nt(this, n);
|
|
942
|
+
for (var d = arguments.length, l = Array(d), c = 0; c < d; c++)
|
|
943
|
+
l[c] = arguments[c];
|
|
944
|
+
return p = (o = (r = pe(this, (t = n.__proto__ || Object.getPrototypeOf(n)).call.apply(t, [this].concat(l))), r), r._lastRenderedStartIndex = -1, r._lastRenderedStopIndex = -1, r._memoizedUnloadedRanges = [], r._onItemsRendered = function(m) {
|
|
945
|
+
var u = m.visibleStartIndex, f = m.visibleStopIndex;
|
|
946
|
+
r._lastRenderedStartIndex = u, r._lastRenderedStopIndex = f, r._ensureRowsLoaded(u, f);
|
|
947
|
+
}, r._setRef = function(m) {
|
|
948
|
+
r._listRef = m;
|
|
949
|
+
}, o), pe(r, p);
|
|
951
950
|
}
|
|
952
|
-
return
|
|
951
|
+
return tt(n, [{
|
|
953
952
|
key: "resetloadMoreItemsCache",
|
|
954
953
|
value: function() {
|
|
955
|
-
var
|
|
956
|
-
this._memoizedUnloadedRanges = [],
|
|
954
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
955
|
+
this._memoizedUnloadedRanges = [], o && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
957
956
|
}
|
|
958
957
|
}, {
|
|
959
958
|
key: "componentDidMount",
|
|
@@ -962,124 +961,124 @@ var Jn = function(e, n) {
|
|
|
962
961
|
}, {
|
|
963
962
|
key: "render",
|
|
964
963
|
value: function() {
|
|
965
|
-
var
|
|
966
|
-
return
|
|
964
|
+
var o = this.props.children;
|
|
965
|
+
return o({
|
|
967
966
|
onItemsRendered: this._onItemsRendered,
|
|
968
967
|
ref: this._setRef
|
|
969
968
|
});
|
|
970
969
|
}
|
|
971
970
|
}, {
|
|
972
971
|
key: "_ensureRowsLoaded",
|
|
973
|
-
value: function(
|
|
974
|
-
var p = this.props,
|
|
975
|
-
isItemLoaded:
|
|
976
|
-
itemCount:
|
|
977
|
-
minimumBatchSize:
|
|
978
|
-
startIndex: Math.max(0,
|
|
979
|
-
stopIndex: Math.min(
|
|
972
|
+
value: function(o, r) {
|
|
973
|
+
var p = this.props, d = p.isItemLoaded, l = p.itemCount, c = p.minimumBatchSize, m = c === void 0 ? 10 : c, u = p.threshold, f = u === void 0 ? 15 : u, I = st({
|
|
974
|
+
isItemLoaded: d,
|
|
975
|
+
itemCount: l,
|
|
976
|
+
minimumBatchSize: m,
|
|
977
|
+
startIndex: Math.max(0, o - f),
|
|
978
|
+
stopIndex: Math.min(l - 1, r + f)
|
|
980
979
|
});
|
|
981
|
-
(this._memoizedUnloadedRanges.length !== I.length || this._memoizedUnloadedRanges.some(function(
|
|
982
|
-
return I[
|
|
980
|
+
(this._memoizedUnloadedRanges.length !== I.length || this._memoizedUnloadedRanges.some(function(C, R) {
|
|
981
|
+
return I[R] !== C;
|
|
983
982
|
})) && (this._memoizedUnloadedRanges = I, this._loadUnloadedRanges(I));
|
|
984
983
|
}
|
|
985
984
|
}, {
|
|
986
985
|
key: "_loadUnloadedRanges",
|
|
987
|
-
value: function(
|
|
988
|
-
for (var r = this, p = this.props.loadMoreItems || this.props.loadMoreRows,
|
|
989
|
-
var
|
|
986
|
+
value: function(o) {
|
|
987
|
+
for (var r = this, p = this.props.loadMoreItems || this.props.loadMoreRows, d = function(m) {
|
|
988
|
+
var u = o[m], f = o[m + 1], I = p(u, f);
|
|
990
989
|
I != null && I.then(function() {
|
|
991
|
-
if (
|
|
990
|
+
if (et({
|
|
992
991
|
lastRenderedStartIndex: r._lastRenderedStartIndex,
|
|
993
992
|
lastRenderedStopIndex: r._lastRenderedStopIndex,
|
|
994
|
-
startIndex:
|
|
995
|
-
stopIndex:
|
|
993
|
+
startIndex: u,
|
|
994
|
+
stopIndex: f
|
|
996
995
|
})) {
|
|
997
996
|
if (r._listRef == null)
|
|
998
997
|
return;
|
|
999
|
-
typeof r._listRef.resetAfterIndex == "function" ? r._listRef.resetAfterIndex(
|
|
998
|
+
typeof r._listRef.resetAfterIndex == "function" ? r._listRef.resetAfterIndex(u, !0) : (typeof r._listRef._getItemStyleCache == "function" && r._listRef._getItemStyleCache(-1), r._listRef.forceUpdate());
|
|
1000
999
|
}
|
|
1001
1000
|
});
|
|
1002
|
-
},
|
|
1003
|
-
l
|
|
1001
|
+
}, l = 0; l < o.length; l += 2)
|
|
1002
|
+
d(l);
|
|
1004
1003
|
}
|
|
1005
1004
|
}]), n;
|
|
1006
|
-
})(
|
|
1007
|
-
const
|
|
1005
|
+
})(xe);
|
|
1006
|
+
const ot = /* @__PURE__ */ i("div")({
|
|
1008
1007
|
name: "Container",
|
|
1009
1008
|
class: "culdu4a",
|
|
1010
1009
|
propsAsIs: !1
|
|
1011
|
-
}),
|
|
1010
|
+
}), rt = /* @__PURE__ */ i("div")({
|
|
1012
1011
|
name: "Position",
|
|
1013
1012
|
class: "pwf8e69",
|
|
1014
1013
|
propsAsIs: !1
|
|
1015
|
-
}),
|
|
1014
|
+
}), at = /* @__PURE__ */ i("img")({
|
|
1016
1015
|
name: "Avatar",
|
|
1017
1016
|
class: "atf4yh4",
|
|
1018
1017
|
propsAsIs: !1
|
|
1019
|
-
}),
|
|
1018
|
+
}), lt = /* @__PURE__ */ i("div")({
|
|
1020
1019
|
name: "AvatarPlaceholder",
|
|
1021
1020
|
class: "a1dg29ja",
|
|
1022
1021
|
propsAsIs: !1
|
|
1023
|
-
}),
|
|
1022
|
+
}), ct = /* @__PURE__ */ i("div")({
|
|
1024
1023
|
name: "Content",
|
|
1025
1024
|
class: "c10a68rc",
|
|
1026
1025
|
propsAsIs: !1
|
|
1027
|
-
}),
|
|
1026
|
+
}), dt = /* @__PURE__ */ i("div")({
|
|
1028
1027
|
name: "NameContainer",
|
|
1029
1028
|
class: "nc4kck5",
|
|
1030
1029
|
propsAsIs: !1
|
|
1031
|
-
}),
|
|
1030
|
+
}), pt = /* @__PURE__ */ i("span")({
|
|
1032
1031
|
name: "Name",
|
|
1033
1032
|
class: "njsrqgr",
|
|
1034
1033
|
propsAsIs: !1
|
|
1035
|
-
}),
|
|
1034
|
+
}), ut = () => g, mt = /* @__PURE__ */ i(ut())({
|
|
1036
1035
|
name: "CurrentUserBadge",
|
|
1037
1036
|
class: "c17uc4zr",
|
|
1038
1037
|
propsAsIs: !0
|
|
1039
|
-
}),
|
|
1038
|
+
}), ht = ({
|
|
1040
1039
|
rank: e,
|
|
1041
1040
|
avatar: n,
|
|
1042
1041
|
name: t,
|
|
1043
|
-
points:
|
|
1042
|
+
points: o,
|
|
1044
1043
|
isCurrentUser: r,
|
|
1045
1044
|
openItemDetail: p,
|
|
1046
|
-
style:
|
|
1047
|
-
}) => /* @__PURE__ */ a(
|
|
1048
|
-
/* @__PURE__ */ s(
|
|
1049
|
-
/* @__PURE__ */ a(
|
|
1050
|
-
n ? /* @__PURE__ */ s(
|
|
1051
|
-
/* @__PURE__ */ a(
|
|
1052
|
-
/* @__PURE__ */ s(
|
|
1053
|
-
r && /* @__PURE__ */ s(
|
|
1045
|
+
style: d
|
|
1046
|
+
}) => /* @__PURE__ */ a(ot, { onClick: p, style: d, children: [
|
|
1047
|
+
/* @__PURE__ */ s(rt, { children: e || 0 }),
|
|
1048
|
+
/* @__PURE__ */ a(ct, { children: [
|
|
1049
|
+
n ? /* @__PURE__ */ s(at, { alt: "leaderboard-item-avatar", src: n }) : /* @__PURE__ */ s(lt, { children: Ae(t || "") }),
|
|
1050
|
+
/* @__PURE__ */ a(dt, { children: [
|
|
1051
|
+
/* @__PURE__ */ s(pt, { children: t || "" }),
|
|
1052
|
+
r && /* @__PURE__ */ s(mt, { name: "icon-star" })
|
|
1054
1053
|
] })
|
|
1055
1054
|
] }),
|
|
1056
|
-
/* @__PURE__ */ s("div", { children:
|
|
1057
|
-
] }),
|
|
1055
|
+
/* @__PURE__ */ s("div", { children: ge(o) })
|
|
1056
|
+
] }), It = /* @__PURE__ */ i("div")({
|
|
1058
1057
|
name: "Container",
|
|
1059
1058
|
class: "c16btbfp",
|
|
1060
1059
|
propsAsIs: !1
|
|
1061
|
-
}),
|
|
1060
|
+
}), vt = ({
|
|
1062
1061
|
items: e,
|
|
1063
1062
|
currentUserId: n,
|
|
1064
1063
|
openItemDetail: t,
|
|
1065
|
-
fetchMore:
|
|
1064
|
+
fetchMore: o,
|
|
1066
1065
|
scrollNode: r,
|
|
1067
1066
|
hasMore: p
|
|
1068
|
-
}) => /* @__PURE__ */ s(
|
|
1069
|
-
loadMore:
|
|
1067
|
+
}) => /* @__PURE__ */ s(ze, {
|
|
1068
|
+
loadMore: o,
|
|
1070
1069
|
initialLoad: !1,
|
|
1071
1070
|
hasMore: p,
|
|
1072
1071
|
useWindow: !1,
|
|
1073
1072
|
getScrollParent: () => r.current,
|
|
1074
|
-
children: /* @__PURE__ */ s(
|
|
1075
|
-
children: e.map((
|
|
1076
|
-
...
|
|
1077
|
-
openItemDetail: () => t(
|
|
1078
|
-
isCurrentUser: !!n && n ===
|
|
1079
|
-
},
|
|
1073
|
+
children: /* @__PURE__ */ s(It, {
|
|
1074
|
+
children: e.map((d) => /* @__PURE__ */ s(ht, {
|
|
1075
|
+
...d,
|
|
1076
|
+
openItemDetail: () => t(d.userId),
|
|
1077
|
+
isCurrentUser: !!n && n === d.userId
|
|
1078
|
+
}, d.userId))
|
|
1080
1079
|
})
|
|
1081
|
-
}),
|
|
1082
|
-
|
|
1080
|
+
}), ft = ({ renderClipBoardNode: e, deepLink: n }) => /* @__PURE__ */ s(
|
|
1081
|
+
Le,
|
|
1083
1082
|
{
|
|
1084
1083
|
renderToNode: e,
|
|
1085
1084
|
inviteLink: n,
|
|
@@ -1098,29 +1097,29 @@ const st = /* @__PURE__ */ o("div")({
|
|
|
1098
1097
|
inviteCardTitle: "It’s More Fun With Friends",
|
|
1099
1098
|
inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
|
|
1100
1099
|
}
|
|
1101
|
-
),
|
|
1100
|
+
), Ct = /* @__PURE__ */ i("div")({
|
|
1102
1101
|
name: "InviteLinkContainer",
|
|
1103
1102
|
class: "i1chxfpe",
|
|
1104
1103
|
propsAsIs: !1
|
|
1105
|
-
}),
|
|
1104
|
+
}), At = ({
|
|
1106
1105
|
gamification: e,
|
|
1107
1106
|
scrollNode: n,
|
|
1108
1107
|
scrollStore: t,
|
|
1109
|
-
renderClipBoardNode:
|
|
1108
|
+
renderClipBoardNode: o
|
|
1110
1109
|
}) => {
|
|
1111
1110
|
const {
|
|
1112
1111
|
data: r,
|
|
1113
1112
|
hasMore: p,
|
|
1114
|
-
loading:
|
|
1115
|
-
key:
|
|
1116
|
-
} =
|
|
1113
|
+
loading: d,
|
|
1114
|
+
key: l
|
|
1115
|
+
} = D(e.leaderboardList.$store), {
|
|
1117
1116
|
data: c
|
|
1118
|
-
} =
|
|
1119
|
-
return !r.length && !
|
|
1120
|
-
renderClipBoardNode:
|
|
1117
|
+
} = D(e.deepLink.$store), [m, u] = Pe(o);
|
|
1118
|
+
return !r.length && !d ? /* @__PURE__ */ s(ft, {
|
|
1119
|
+
renderClipBoardNode: o,
|
|
1121
1120
|
deepLink: c
|
|
1122
1121
|
}) : /* @__PURE__ */ a(E, {
|
|
1123
|
-
children: [/* @__PURE__ */ s(
|
|
1122
|
+
children: [/* @__PURE__ */ s(vt, {
|
|
1124
1123
|
items: r,
|
|
1125
1124
|
scrollNode: n,
|
|
1126
1125
|
scrollStore: t,
|
|
@@ -1128,299 +1127,300 @@ const st = /* @__PURE__ */ o("div")({
|
|
|
1128
1127
|
hasMore: p,
|
|
1129
1128
|
openItemDetail: e.openUser,
|
|
1130
1129
|
currentUserId: e.currentUserId.get()
|
|
1131
|
-
},
|
|
1132
|
-
children: /* @__PURE__ */ s(
|
|
1133
|
-
onClick: () =>
|
|
1130
|
+
}, l), c && /* @__PURE__ */ s(Ct, {
|
|
1131
|
+
children: /* @__PURE__ */ s(Xn, {
|
|
1132
|
+
onClick: () => m(c),
|
|
1134
1133
|
title: "Invite Friends",
|
|
1135
1134
|
description: "Challenge them now!"
|
|
1136
1135
|
})
|
|
1137
|
-
}),
|
|
1136
|
+
}), u]
|
|
1138
1137
|
});
|
|
1139
|
-
},
|
|
1138
|
+
}, gt = /* @__PURE__ */ i("div")({
|
|
1140
1139
|
name: "QuestionItem",
|
|
1141
1140
|
class: "q1w97g3p",
|
|
1142
1141
|
propsAsIs: !1
|
|
1143
|
-
}),
|
|
1142
|
+
}), $t = /* @__PURE__ */ i("div")({
|
|
1144
1143
|
name: "QuestionCaption",
|
|
1145
1144
|
class: "q2sl39u",
|
|
1146
1145
|
propsAsIs: !1
|
|
1147
|
-
}),
|
|
1146
|
+
}), bt = /* @__PURE__ */ i("div")({
|
|
1148
1147
|
name: "QuestionBody",
|
|
1149
1148
|
class: "qd5h0uc",
|
|
1150
1149
|
propsAsIs: !1
|
|
1151
|
-
}),
|
|
1150
|
+
}), yt = /* @__PURE__ */ i("div")({
|
|
1152
1151
|
name: "QuestionAction",
|
|
1153
1152
|
class: "q105uluy",
|
|
1154
1153
|
propsAsIs: !1
|
|
1155
|
-
}),
|
|
1154
|
+
}), wt = () => g, H = /* @__PURE__ */ i(wt())({
|
|
1156
1155
|
name: "QuestionActionIcon",
|
|
1157
1156
|
class: "q1fa0b9h",
|
|
1158
1157
|
propsAsIs: !0
|
|
1159
|
-
}),
|
|
1158
|
+
}), Rt = () => g, Tt = /* @__PURE__ */ i(Rt())({
|
|
1160
1159
|
name: "QuestionTypeIcon",
|
|
1161
1160
|
class: "qxlt78s",
|
|
1162
1161
|
propsAsIs: !0
|
|
1163
|
-
}),
|
|
1162
|
+
}), kt = /* @__PURE__ */ i("div")({
|
|
1164
1163
|
name: "QuestionTypeLabel",
|
|
1165
1164
|
class: "qmg0vkx",
|
|
1166
1165
|
propsAsIs: !1
|
|
1167
|
-
}),
|
|
1166
|
+
}), St = /* @__PURE__ */ i("div")({
|
|
1168
1167
|
name: "QuestionContent",
|
|
1169
1168
|
class: "q1uz5j1g",
|
|
1170
1169
|
propsAsIs: !1
|
|
1171
|
-
}),
|
|
1170
|
+
}), xt = /* @__PURE__ */ i("button")({
|
|
1172
1171
|
name: "PlayButton",
|
|
1173
1172
|
class: "p1pba9p1",
|
|
1174
1173
|
propsAsIs: !1
|
|
1175
|
-
}),
|
|
1176
|
-
[F.LOST]: /* @__PURE__ */ s(
|
|
1177
|
-
[F.WON]: /* @__PURE__ */ s(
|
|
1178
|
-
[F.UNSET]: /* @__PURE__ */ s(
|
|
1179
|
-
[F.DNP]: /* @__PURE__ */ s(
|
|
1180
|
-
},
|
|
1174
|
+
}), qt = {
|
|
1175
|
+
[F.LOST]: /* @__PURE__ */ s(H, { name: "incorrectVoted" }),
|
|
1176
|
+
[F.WON]: /* @__PURE__ */ s(H, { name: "icon-check" }),
|
|
1177
|
+
[F.UNSET]: /* @__PURE__ */ s(H, { name: "icon-arrow" }),
|
|
1178
|
+
[F.DNP]: /* @__PURE__ */ s(H, { name: "icon-arrow" })
|
|
1179
|
+
}, Et = ({
|
|
1181
1180
|
questionId: e,
|
|
1182
1181
|
questionType: n,
|
|
1183
1182
|
questionStatus: t,
|
|
1184
|
-
subject:
|
|
1183
|
+
subject: o,
|
|
1185
1184
|
openForVoting: r,
|
|
1186
1185
|
openQuestion: p,
|
|
1187
|
-
status:
|
|
1186
|
+
status: d
|
|
1188
1187
|
}) => {
|
|
1189
|
-
const
|
|
1190
|
-
return
|
|
1191
|
-
/* @__PURE__ */ a(
|
|
1192
|
-
/* @__PURE__ */ a(
|
|
1188
|
+
const l = he[n], c = qt[d];
|
|
1189
|
+
return l ? /* @__PURE__ */ a(gt, { onClick: () => p == null ? void 0 : p(e), children: [
|
|
1190
|
+
/* @__PURE__ */ a(St, { children: [
|
|
1191
|
+
/* @__PURE__ */ a($t, { children: [
|
|
1193
1192
|
/* @__PURE__ */ s(
|
|
1194
|
-
|
|
1193
|
+
Tt,
|
|
1195
1194
|
{
|
|
1196
1195
|
"data-type-trivia": n === h.TRIVIA,
|
|
1197
1196
|
"data-type-poll": n === h.POLL,
|
|
1198
|
-
name:
|
|
1197
|
+
name: l.iconName
|
|
1199
1198
|
}
|
|
1200
1199
|
),
|
|
1201
|
-
/* @__PURE__ */ a(
|
|
1202
|
-
|
|
1203
|
-
n === h.TRIVIA && t ===
|
|
1200
|
+
/* @__PURE__ */ a(kt, { children: [
|
|
1201
|
+
l.label,
|
|
1202
|
+
n === h.TRIVIA && t === L.RESOLVED && " • Expired"
|
|
1204
1203
|
] })
|
|
1205
1204
|
] }),
|
|
1206
|
-
/* @__PURE__ */ s(
|
|
1205
|
+
/* @__PURE__ */ s(bt, { children: o || "" })
|
|
1207
1206
|
] }),
|
|
1208
|
-
/* @__PURE__ */ s(
|
|
1207
|
+
/* @__PURE__ */ s(yt, { children: r ? /* @__PURE__ */ s(xt, { children: "Play" }) : c })
|
|
1209
1208
|
] }) : null;
|
|
1210
|
-
},
|
|
1209
|
+
}, Nt = /* @__PURE__ */ i("div")({
|
|
1211
1210
|
name: "Container",
|
|
1212
1211
|
class: "cll3md7",
|
|
1213
1212
|
propsAsIs: !1
|
|
1214
|
-
}),
|
|
1213
|
+
}), Dt = /* @__PURE__ */ i("button")({
|
|
1215
1214
|
name: "ActionBtn",
|
|
1216
1215
|
class: "a10g1iik",
|
|
1217
1216
|
propsAsIs: !1
|
|
1218
|
-
}),
|
|
1217
|
+
}), Lt = ({
|
|
1219
1218
|
openInsight: e,
|
|
1220
1219
|
questionId: n,
|
|
1221
1220
|
...t
|
|
1222
|
-
}) => /* @__PURE__ */ a(
|
|
1223
|
-
/* @__PURE__ */ s(
|
|
1224
|
-
e && /* @__PURE__ */ s(
|
|
1225
|
-
] }),
|
|
1221
|
+
}) => /* @__PURE__ */ a(Nt, { children: [
|
|
1222
|
+
/* @__PURE__ */ s(ye, { questionId: n, ...t }),
|
|
1223
|
+
e && /* @__PURE__ */ s(Dt, { onClick: () => e(n), children: "View Insight" })
|
|
1224
|
+
] }), Pt = /* @__PURE__ */ i("div")({
|
|
1226
1225
|
name: "Container",
|
|
1227
1226
|
class: "cl56x6b",
|
|
1228
1227
|
propsAsIs: !1
|
|
1229
|
-
}),
|
|
1228
|
+
}), Vt = () => Ve, Ot = /* @__PURE__ */ i(Vt())({
|
|
1230
1229
|
name: "ActionButton",
|
|
1231
1230
|
class: "a11pzf92",
|
|
1232
1231
|
propsAsIs: !0
|
|
1233
|
-
}),
|
|
1232
|
+
}), Qt = /* @__PURE__ */ i("div")({
|
|
1234
1233
|
name: "DateTime",
|
|
1235
1234
|
class: "d1hbaleq",
|
|
1236
1235
|
propsAsIs: !1
|
|
1237
|
-
}),
|
|
1236
|
+
}), Mt = /* @__PURE__ */ i("blockquote")({
|
|
1238
1237
|
name: "Quote",
|
|
1239
1238
|
class: "qvvgqjm",
|
|
1240
1239
|
propsAsIs: !1
|
|
1241
|
-
}),
|
|
1240
|
+
}), _t = ({
|
|
1242
1241
|
openTweet: e,
|
|
1243
1242
|
created: n,
|
|
1244
1243
|
...t
|
|
1245
1244
|
}) => {
|
|
1246
|
-
const
|
|
1245
|
+
const o = q(() => {
|
|
1247
1246
|
if (n) {
|
|
1248
1247
|
const r = new Date(n);
|
|
1249
|
-
if (
|
|
1248
|
+
if (te(r))
|
|
1250
1249
|
return {
|
|
1251
|
-
date:
|
|
1252
|
-
time:
|
|
1250
|
+
date: se(r),
|
|
1251
|
+
time: ne(r)
|
|
1253
1252
|
};
|
|
1254
1253
|
}
|
|
1255
1254
|
return null;
|
|
1256
1255
|
}, [n]);
|
|
1257
|
-
return /* @__PURE__ */ a(
|
|
1258
|
-
|
|
1259
|
-
|
|
1256
|
+
return /* @__PURE__ */ a(Pt, { children: [
|
|
1257
|
+
o && /* @__PURE__ */ a(Qt, { children: [
|
|
1258
|
+
o.date,
|
|
1260
1259
|
" · ",
|
|
1261
|
-
|
|
1260
|
+
o.time
|
|
1262
1261
|
] }),
|
|
1263
|
-
t.title && /* @__PURE__ */ s(
|
|
1264
|
-
/* @__PURE__ */ s(
|
|
1265
|
-
e && /* @__PURE__ */ s(
|
|
1262
|
+
t.title && /* @__PURE__ */ s(Mt, { children: t.title }),
|
|
1263
|
+
/* @__PURE__ */ s(Ie, { ...t }),
|
|
1264
|
+
e && /* @__PURE__ */ s(Ot, { onClick: () => e(t.tweetId), children: "View Insight" })
|
|
1266
1265
|
] });
|
|
1267
|
-
},
|
|
1266
|
+
}, Ut = /* @__PURE__ */ i("div")({
|
|
1268
1267
|
name: "QuestionsContainer",
|
|
1269
1268
|
class: "qvghv3l",
|
|
1270
1269
|
propsAsIs: !1
|
|
1271
|
-
}),
|
|
1272
|
-
var
|
|
1273
|
-
if (t.type === "question" && ((
|
|
1274
|
-
const
|
|
1275
|
-
return /* @__PURE__ */ s(
|
|
1270
|
+
}), jt = ({ questions: e, openQuestion: n }) => /* @__PURE__ */ s(Ut, { children: e == null ? void 0 : e.map((t) => {
|
|
1271
|
+
var o, r, p;
|
|
1272
|
+
if (t.type === "question" && ((o = t.attributes) == null ? void 0 : o.attributes.case) === "question") {
|
|
1273
|
+
const d = t.attributes.attributes.value;
|
|
1274
|
+
return /* @__PURE__ */ s(Et, { openQuestion: n, ...d }, d.questionId);
|
|
1276
1275
|
}
|
|
1277
1276
|
if (t.type === "insight" && ((r = t.attributes) == null ? void 0 : r.attributes.case) === "insight") {
|
|
1278
|
-
const
|
|
1279
|
-
return /* @__PURE__ */ s(
|
|
1277
|
+
const d = t.attributes.attributes.value, l = t.attributes.created;
|
|
1278
|
+
return /* @__PURE__ */ s(Lt, { openInsight: n, ...d, created: l }, d.questionId);
|
|
1280
1279
|
}
|
|
1281
1280
|
if (t.type === "tweet" && ((p = t.attributes) == null ? void 0 : p.attributes.case) === "tweet") {
|
|
1282
|
-
const
|
|
1283
|
-
return /* @__PURE__ */ s(
|
|
1281
|
+
const d = t.attributes.attributes.value, l = t.attributes.id, c = t.attributes.created;
|
|
1282
|
+
return /* @__PURE__ */ s(_t, { openTweet: n, ...d, tweetId: l, created: c }, l);
|
|
1284
1283
|
}
|
|
1285
1284
|
return null;
|
|
1286
|
-
}) }),
|
|
1287
|
-
const t =
|
|
1288
|
-
return t != null && t.data ? /* @__PURE__ */ s(
|
|
1289
|
-
},
|
|
1285
|
+
}) }), Bt = ({ store: e, openQuestion: n }) => {
|
|
1286
|
+
const t = D(e);
|
|
1287
|
+
return t != null && t.data ? /* @__PURE__ */ s(jt, { openQuestion: n, questions: t.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
|
|
1288
|
+
}, zt = ({ userSummary: e }) => {
|
|
1290
1289
|
var n;
|
|
1291
|
-
const [t,
|
|
1290
|
+
const [t, o] = N(void 0);
|
|
1292
1291
|
return G(() => {
|
|
1293
1292
|
const r = e.subscribe((p) => {
|
|
1294
|
-
p != null && p.data &&
|
|
1293
|
+
p != null && p.data && o(p.data);
|
|
1295
1294
|
});
|
|
1296
1295
|
return () => {
|
|
1297
1296
|
r();
|
|
1298
1297
|
};
|
|
1299
|
-
}, [e]), t != null && t.summary ? /* @__PURE__ */ s(
|
|
1300
|
-
},
|
|
1301
|
-
const [c,
|
|
1298
|
+
}, [e]), t != null && t.summary ? /* @__PURE__ */ s($e, { ...t.summary, successRate: (n = t.percentage) == null ? void 0 : n.correct }) : /* @__PURE__ */ s("div", { children: "wait user..." });
|
|
1299
|
+
}, Ft = ({ gamification: e, className: n, scrollStore: t, scrollNode: o, appNode: r, style: p, responsiveStore: d, headerNode: l }) => {
|
|
1300
|
+
const [c, m] = N(!1), [u, f] = N(Y.HOME), [, I] = qe(), { sdkInScrollView: C } = D(d, { keys: ["sdkInScrollView"] }), R = (T) => {
|
|
1302
1301
|
I(() => {
|
|
1303
|
-
var
|
|
1304
|
-
|
|
1302
|
+
var S;
|
|
1303
|
+
f(T), C === !1 && (((S = r.current) == null ? void 0 : S.getBoundingClientRect().y) || 0) < 0 && fe(r, { behavior: "instant" });
|
|
1305
1304
|
});
|
|
1306
|
-
}, A = (
|
|
1307
|
-
I(() =>
|
|
1305
|
+
}, A = (T) => {
|
|
1306
|
+
I(() => m(T));
|
|
1308
1307
|
};
|
|
1309
|
-
G(() => t.listen((
|
|
1310
|
-
if (
|
|
1308
|
+
G(() => t.listen((T) => {
|
|
1309
|
+
if (T.scrollPosition === 0) {
|
|
1311
1310
|
A(!1), t.setKey("tabsShown", !1);
|
|
1312
1311
|
return;
|
|
1313
1312
|
}
|
|
1314
|
-
A(
|
|
1313
|
+
A(T.scrollDirection === "forward"), t.setKey("tabsShown", T.scrollDirection !== "forward");
|
|
1315
1314
|
}), [t]);
|
|
1316
|
-
let
|
|
1317
|
-
|
|
1318
|
-
const
|
|
1319
|
-
return /* @__PURE__ */ a(
|
|
1315
|
+
let k = "0px";
|
|
1316
|
+
C ? k = c ? "calc(8px - var(--header-height) - var(--header-offset))" : "0px" : k = c ? "calc(var(--header-height) + var(--header-offset))" : "0px";
|
|
1317
|
+
const $ = C ? r : l;
|
|
1318
|
+
return /* @__PURE__ */ a(Oe, { className: n, style: p, children: [
|
|
1320
1319
|
/* @__PURE__ */ s(
|
|
1321
|
-
|
|
1320
|
+
Qe,
|
|
1322
1321
|
{
|
|
1323
1322
|
style: {
|
|
1324
|
-
top:
|
|
1323
|
+
top: k
|
|
1325
1324
|
},
|
|
1326
|
-
children: /* @__PURE__ */ s(
|
|
1325
|
+
children: /* @__PURE__ */ s(zn, { activePage: u, toggleActivePage: R })
|
|
1327
1326
|
}
|
|
1328
1327
|
),
|
|
1329
|
-
|
|
1330
|
-
/* @__PURE__ */ s(
|
|
1331
|
-
/* @__PURE__ */ s(
|
|
1328
|
+
u === Y.HOME && /* @__PURE__ */ a(E, { children: [
|
|
1329
|
+
/* @__PURE__ */ s(ve, { style: { paddingTop: "8px" }, children: /* @__PURE__ */ s(Me, { children: /* @__PURE__ */ s(zt, { userSummary: e.userSummary }) }) }),
|
|
1330
|
+
/* @__PURE__ */ s(_e, { style: { flex: 1 }, children: /* @__PURE__ */ s(Bt, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
|
|
1332
1331
|
] }),
|
|
1333
|
-
|
|
1334
|
-
|
|
1332
|
+
u === Y.LEADERBOARD && /* @__PURE__ */ s(Ue, { children: /* @__PURE__ */ s(
|
|
1333
|
+
At,
|
|
1335
1334
|
{
|
|
1336
|
-
renderClipBoardNode:
|
|
1335
|
+
renderClipBoardNode: $,
|
|
1337
1336
|
scrollStore: t,
|
|
1338
|
-
scrollNode:
|
|
1337
|
+
scrollNode: o,
|
|
1339
1338
|
gamification: e
|
|
1340
1339
|
}
|
|
1341
1340
|
) })
|
|
1342
1341
|
] });
|
|
1343
|
-
},
|
|
1342
|
+
}, Wt = () => je, ue = /* @__PURE__ */ i(Wt())({
|
|
1344
1343
|
name: "OpenedContainer",
|
|
1345
1344
|
class: "oar61gl",
|
|
1346
1345
|
propsAsIs: !0
|
|
1347
|
-
}),
|
|
1346
|
+
}), Zt = /* @__PURE__ */ i("div")({
|
|
1348
1347
|
name: "UserContainer",
|
|
1349
1348
|
class: "u14zaal4",
|
|
1350
1349
|
propsAsIs: !1
|
|
1351
|
-
}),
|
|
1350
|
+
}), Ht = ({
|
|
1352
1351
|
correct: e,
|
|
1353
1352
|
incorrect: n
|
|
1354
1353
|
}) => {
|
|
1355
1354
|
const t = e + n;
|
|
1356
1355
|
return t === 0 ? 0 : Math.round(e / t * 100);
|
|
1357
|
-
},
|
|
1356
|
+
}, Yt = `
|
|
1358
1357
|
body {
|
|
1359
1358
|
overflow: hidden
|
|
1360
1359
|
}
|
|
1361
|
-
`,
|
|
1360
|
+
`, pi = ({
|
|
1362
1361
|
gamification: e,
|
|
1363
1362
|
scrollStore: n,
|
|
1364
1363
|
className: t,
|
|
1365
|
-
appNode:
|
|
1364
|
+
appNode: o,
|
|
1366
1365
|
scrollNode: r,
|
|
1367
1366
|
headerNode: p,
|
|
1368
|
-
responsiveStore:
|
|
1367
|
+
responsiveStore: d
|
|
1369
1368
|
}) => {
|
|
1370
|
-
const
|
|
1371
|
-
sdkInScrollView:
|
|
1372
|
-
} =
|
|
1369
|
+
const l = D(e.openedQuestion.$store), c = D(e.openedUser), {
|
|
1370
|
+
sdkInScrollView: m
|
|
1371
|
+
} = D(d, {
|
|
1373
1372
|
keys: ["sdkInScrollView"]
|
|
1374
|
-
}),
|
|
1375
|
-
var
|
|
1376
|
-
const
|
|
1377
|
-
if ((
|
|
1378
|
-
A && (
|
|
1379
|
-
const
|
|
1380
|
-
const
|
|
1381
|
-
|
|
1382
|
-
|
|
1373
|
+
}), u = Ee(0), [f, I] = q(() => {
|
|
1374
|
+
var C;
|
|
1375
|
+
const R = m ? o : p, A = (((C = o.current) == null ? void 0 : C.getBoundingClientRect().y) || 0) < 0;
|
|
1376
|
+
if ((l || c) && R.current) {
|
|
1377
|
+
A && (u.current = window.scrollY);
|
|
1378
|
+
const k = () => (G(() => {
|
|
1379
|
+
const $ = setTimeout(() => {
|
|
1380
|
+
fe(o, {
|
|
1381
|
+
behavior: "instant"
|
|
1382
|
+
});
|
|
1383
1383
|
}, 1e3);
|
|
1384
1384
|
return () => {
|
|
1385
|
-
clearTimeout(
|
|
1386
|
-
top:
|
|
1387
|
-
}),
|
|
1385
|
+
clearTimeout($), u.current !== 0 && (window.scroll({
|
|
1386
|
+
top: u.current
|
|
1387
|
+
}), u.current = 0);
|
|
1388
1388
|
};
|
|
1389
1389
|
}, []), /* @__PURE__ */ s("style", {
|
|
1390
|
-
children:
|
|
1390
|
+
children: Yt
|
|
1391
1391
|
}));
|
|
1392
|
-
return [A,
|
|
1392
|
+
return [A, l ? re.createPortal(/* @__PURE__ */ a(ue, {
|
|
1393
1393
|
className: t,
|
|
1394
|
-
children: [/* @__PURE__ */ s(
|
|
1394
|
+
children: [/* @__PURE__ */ s(Mn, {
|
|
1395
1395
|
gamification: e
|
|
1396
|
-
}), A && !
|
|
1397
|
-
}),
|
|
1396
|
+
}), A && !m && /* @__PURE__ */ s(k, {})]
|
|
1397
|
+
}), R.current) : c ? re.createPortal(/* @__PURE__ */ s(ue, {
|
|
1398
1398
|
className: t,
|
|
1399
|
-
children: /* @__PURE__ */ a(
|
|
1400
|
-
children: [/* @__PURE__ */ s(
|
|
1399
|
+
children: /* @__PURE__ */ a(Zt, {
|
|
1400
|
+
children: [/* @__PURE__ */ s(Ce, {
|
|
1401
1401
|
label: "Friend's Rank",
|
|
1402
1402
|
close: e.closeUser
|
|
1403
|
-
}), /* @__PURE__ */ s(
|
|
1404
|
-
children: /* @__PURE__ */ s(
|
|
1403
|
+
}), /* @__PURE__ */ s(ve, {
|
|
1404
|
+
children: /* @__PURE__ */ s($e, {
|
|
1405
1405
|
...c,
|
|
1406
|
-
successRate:
|
|
1406
|
+
successRate: Ht(c)
|
|
1407
1407
|
})
|
|
1408
1408
|
})]
|
|
1409
1409
|
})
|
|
1410
|
-
}),
|
|
1410
|
+
}), R.current) : null];
|
|
1411
1411
|
}
|
|
1412
1412
|
return [A, null];
|
|
1413
|
-
}, [
|
|
1413
|
+
}, [o, t, e, p, l, c, m]);
|
|
1414
1414
|
return /* @__PURE__ */ a(E, {
|
|
1415
|
-
children: [I, /* @__PURE__ */ s(
|
|
1416
|
-
appNode:
|
|
1415
|
+
children: [I, /* @__PURE__ */ s(Ft, {
|
|
1416
|
+
appNode: o,
|
|
1417
1417
|
headerNode: p,
|
|
1418
1418
|
scrollStore: n,
|
|
1419
1419
|
scrollNode: r,
|
|
1420
1420
|
className: t,
|
|
1421
1421
|
gamification: e,
|
|
1422
|
-
responsiveStore:
|
|
1423
|
-
style: !
|
|
1422
|
+
responsiveStore: d,
|
|
1423
|
+
style: !m && !f && I !== null ? {
|
|
1424
1424
|
height: "0",
|
|
1425
1425
|
overflow: "hidden"
|
|
1426
1426
|
} : {}
|
|
@@ -1428,5 +1428,5 @@ const st = /* @__PURE__ */ o("div")({
|
|
|
1428
1428
|
});
|
|
1429
1429
|
};
|
|
1430
1430
|
export {
|
|
1431
|
-
|
|
1431
|
+
pi as default
|
|
1432
1432
|
};
|