@streamlayer/react 0.29.0 → 0.29.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/masters.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/common-2d2a3ba3.js +15 -0
- package/lib/common-f34b9d88.cjs +1 -0
- package/lib/dist/cjs/masters.js +1 -1
- package/lib/dist/es/masters.js +1 -1
- package/lib/dist/index-990a941f.cjs +1 -0
- package/lib/dist/{index-b9208075.js → index-fb783640.js} +439 -463
- package/lib/dist/{masters-06dc3df7.cjs → masters-228cfe7f.cjs} +2 -2
- package/lib/dist/{masters-a2f6c191.js → masters-6908212b.js} +22 -12
- package/lib/dist/style.css +10 -13
- package/lib/es/masters.js +1 -1
- package/lib/es/points.js +1 -1
- package/lib/{index-5beb8b30.js → index-7a48e98e.js} +909 -933
- package/lib/index-9fd382fe.cjs +6 -0
- package/lib/{masters-0748e717.js → masters-aed3ad5f.js} +1 -1
- package/lib/{masters-13b0f21d.cjs → masters-b1364fa3.cjs} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/lib/common-0311b835.js +0 -5
- package/lib/common-dc2f2d4f.cjs +0 -1
- package/lib/dist/index-edbd0748.cjs +0 -1
- package/lib/index-a4c9d828.cjs +0 -6
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
import { jsxs as N, jsx as a, Fragment as
|
|
2
|
-
import { s as o, e as w, o as Oe, a as
|
|
3
|
-
import U, { useRef as k, useState as R, useCallback as
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as N, jsx as a, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import { s as o, e as w, o as Oe, a as Ee, i as ke, Q as x, b as L, c as re, E as C, r as be, d as Ze, f as Je, n as Ke, w as Xe, u as b, g as et, P, h as je, j as de, k as tt } from "./masters-6908212b.js";
|
|
3
|
+
import U, { useRef as k, useState as R, useCallback as B, useEffect as st, useLayoutEffect as nt, useMemo as F, Component as it, createElement as V, PureComponent as Le } from "react";
|
|
4
|
+
const rt = () => w, at = () => w, ot = /* @__PURE__ */ o("div")({
|
|
5
5
|
name: "a",
|
|
6
6
|
class: "acysrl1",
|
|
7
7
|
propsAsIs: !1
|
|
8
|
-
}),
|
|
8
|
+
}), lt = /* @__PURE__ */ o("div")({
|
|
9
9
|
name: "l",
|
|
10
10
|
class: "lo57cjm",
|
|
11
11
|
propsAsIs: !1
|
|
12
|
-
}),
|
|
12
|
+
}), ct = /* @__PURE__ */ o(rt())({
|
|
13
13
|
name: "p",
|
|
14
14
|
class: "p14kwh4y",
|
|
15
15
|
propsAsIs: !0
|
|
16
|
-
}),
|
|
16
|
+
}), dt = /* @__PURE__ */ o("span")({
|
|
17
17
|
name: "s",
|
|
18
18
|
class: "sxun7sq",
|
|
19
19
|
propsAsIs: !1
|
|
20
|
-
}),
|
|
20
|
+
}), ut = /* @__PURE__ */ o("button")({
|
|
21
21
|
name: "c",
|
|
22
22
|
class: "c1i8ida8",
|
|
23
23
|
propsAsIs: !1
|
|
24
|
-
}),
|
|
24
|
+
}), pt = /* @__PURE__ */ o(at())({
|
|
25
25
|
name: "g",
|
|
26
26
|
class: "g1m0xfmw",
|
|
27
27
|
propsAsIs: !0
|
|
28
|
-
}),
|
|
28
|
+
}), Ce = ({ type: t, close: e, label: s }) => {
|
|
29
29
|
const n = t ? Oe[t] : { label: s, iconName: void 0 };
|
|
30
|
-
return /* @__PURE__ */ N(
|
|
31
|
-
/* @__PURE__ */ N(
|
|
32
|
-
(n == null ? void 0 : n.iconName) && /* @__PURE__ */ a(
|
|
33
|
-
(n == null ? void 0 : n.label) && /* @__PURE__ */ a(
|
|
30
|
+
return /* @__PURE__ */ N(ot, { children: [
|
|
31
|
+
/* @__PURE__ */ N(lt, { children: [
|
|
32
|
+
(n == null ? void 0 : n.iconName) && /* @__PURE__ */ a(ct, { name: n.iconName }),
|
|
33
|
+
(n == null ? void 0 : n.label) && /* @__PURE__ */ a(dt, { children: n.label })
|
|
34
34
|
] }),
|
|
35
|
-
/* @__PURE__ */ a(
|
|
35
|
+
/* @__PURE__ */ a(ut, { onClick: e, children: /* @__PURE__ */ a(pt, { name: "icon-cross" }) })
|
|
36
36
|
] });
|
|
37
37
|
};
|
|
38
|
-
const
|
|
38
|
+
const ht = /* @__PURE__ */ o("div")({
|
|
39
39
|
name: "t",
|
|
40
40
|
class: "taj61ja",
|
|
41
41
|
propsAsIs: !1
|
|
42
|
-
}),
|
|
42
|
+
}), mt = /* @__PURE__ */ o("div")({
|
|
43
43
|
name: "r",
|
|
44
44
|
class: "r19fxewd",
|
|
45
45
|
propsAsIs: !1
|
|
46
|
-
}),
|
|
46
|
+
}), ft = /* @__PURE__ */ o("div")({
|
|
47
47
|
name: "i",
|
|
48
48
|
class: "i1whkbqh",
|
|
49
49
|
propsAsIs: !1
|
|
50
|
-
}), ue = ({ indicator: t, title: e }) => /* @__PURE__ */ N(
|
|
51
|
-
/* @__PURE__ */ a(
|
|
52
|
-
/* @__PURE__ */ a(
|
|
50
|
+
}), ue = ({ indicator: t, title: e }) => /* @__PURE__ */ N(ht, { children: [
|
|
51
|
+
/* @__PURE__ */ a(mt, { children: e }),
|
|
52
|
+
/* @__PURE__ */ a(ft, { children: t })
|
|
53
53
|
] });
|
|
54
|
-
const
|
|
54
|
+
const gt = /* @__PURE__ */ o("div")({
|
|
55
55
|
name: "i",
|
|
56
56
|
class: "i4lbhzs",
|
|
57
57
|
propsAsIs: !1
|
|
58
|
-
}),
|
|
58
|
+
}), It = /* @__PURE__ */ o("div")({
|
|
59
59
|
name: "o",
|
|
60
60
|
class: "ordquhq",
|
|
61
61
|
propsAsIs: !1
|
|
62
|
-
}),
|
|
62
|
+
}), vt = /* @__PURE__ */ o("div")({
|
|
63
63
|
name: "n",
|
|
64
64
|
class: "nwzed99",
|
|
65
65
|
propsAsIs: !1
|
|
66
|
-
}), W = ({ indicator: t, title: e }) => /* @__PURE__ */ N(
|
|
67
|
-
/* @__PURE__ */ a(
|
|
68
|
-
/* @__PURE__ */ a(
|
|
66
|
+
}), W = ({ indicator: t, title: e }) => /* @__PURE__ */ N(gt, { children: [
|
|
67
|
+
/* @__PURE__ */ a(It, { children: t }),
|
|
68
|
+
/* @__PURE__ */ a(vt, { children: e })
|
|
69
69
|
] });
|
|
70
|
-
const
|
|
70
|
+
const Mt = /* @__PURE__ */ o("div")({
|
|
71
71
|
name: "o",
|
|
72
72
|
class: "o15y0waw",
|
|
73
73
|
propsAsIs: !1
|
|
74
|
-
}),
|
|
74
|
+
}), yt = /* @__PURE__ */ o("div")({
|
|
75
75
|
name: "i",
|
|
76
76
|
class: "ihjewwf",
|
|
77
77
|
propsAsIs: !1
|
|
78
|
-
}),
|
|
78
|
+
}), Nt = /* @__PURE__ */ o("div")({
|
|
79
79
|
name: "n",
|
|
80
80
|
class: "n10e9lv8",
|
|
81
81
|
propsAsIs: !1
|
|
82
|
-
}),
|
|
82
|
+
}), zt = /* @__PURE__ */ o("div")({
|
|
83
83
|
name: "r",
|
|
84
84
|
class: "r13bxv",
|
|
85
85
|
propsAsIs: !1
|
|
86
|
-
}),
|
|
86
|
+
}), _t = /* @__PURE__ */ o("img")({
|
|
87
87
|
name: "a",
|
|
88
88
|
class: "a1fi59c9",
|
|
89
89
|
propsAsIs: !1
|
|
90
|
-
}),
|
|
90
|
+
}), Tt = /* @__PURE__ */ o("div")({
|
|
91
91
|
name: "s",
|
|
92
92
|
class: "s1kkihge",
|
|
93
93
|
propsAsIs: !1
|
|
94
|
-
}),
|
|
94
|
+
}), At = /* @__PURE__ */ o("div")({
|
|
95
95
|
name: "c",
|
|
96
96
|
class: "cy4f4t",
|
|
97
97
|
propsAsIs: !1
|
|
98
|
-
}),
|
|
98
|
+
}), St = /* @__PURE__ */ o("div")({
|
|
99
99
|
name: "p",
|
|
100
100
|
class: "p18cnlx1",
|
|
101
101
|
propsAsIs: !1
|
|
102
|
-
}),
|
|
102
|
+
}), Dt = /* @__PURE__ */ o("img")({
|
|
103
103
|
name: "l",
|
|
104
104
|
class: "lboqgs5",
|
|
105
105
|
propsAsIs: !1
|
|
106
|
-
}),
|
|
106
|
+
}), xt = /* @__PURE__ */ o("div")({
|
|
107
107
|
name: "d",
|
|
108
108
|
class: "d1oaal4",
|
|
109
109
|
propsAsIs: !1
|
|
110
|
-
}),
|
|
110
|
+
}), wt = /* @__PURE__ */ o("div")({
|
|
111
111
|
name: "x",
|
|
112
112
|
class: "x1yzgo0u",
|
|
113
113
|
propsAsIs: !1
|
|
114
|
-
}),
|
|
114
|
+
}), Ot = /* @__PURE__ */ o("div")({
|
|
115
115
|
name: "f",
|
|
116
116
|
class: "f1l9i8s8",
|
|
117
117
|
propsAsIs: !1
|
|
118
|
-
}),
|
|
118
|
+
}), Et = /* @__PURE__ */ o("div")({
|
|
119
119
|
name: "g",
|
|
120
120
|
class: "g4cgl4u",
|
|
121
121
|
propsAsIs: !1
|
|
122
|
-
}),
|
|
122
|
+
}), kt = /* @__PURE__ */ o("div")({
|
|
123
123
|
name: "h",
|
|
124
124
|
class: "h1qn1tmd",
|
|
125
125
|
propsAsIs: !1
|
|
126
|
-
}),
|
|
126
|
+
}), bt = /* @__PURE__ */ o("div")({
|
|
127
127
|
name: "u",
|
|
128
128
|
class: "u1gsbhq4",
|
|
129
129
|
propsAsIs: !1
|
|
130
|
-
}),
|
|
130
|
+
}), jt = /* @__PURE__ */ o("div")({
|
|
131
131
|
name: "m",
|
|
132
132
|
class: "mvj8oco",
|
|
133
133
|
propsAsIs: !1
|
|
134
|
-
}),
|
|
134
|
+
}), Lt = /* @__PURE__ */ o("button")({
|
|
135
135
|
name: "v",
|
|
136
136
|
class: "viqiaf2",
|
|
137
137
|
propsAsIs: !1
|
|
138
|
-
}),
|
|
138
|
+
}), Ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY5MTk3IDQuNjY2NjJDMy42OTE5NyA1Ljk5NzA1IDMuOTI5MTQgNy4xNzc4NyA0LjQwMzUgOC4yMDkxMkMzLjQ5OTY2IDguMDI0NTEgMi43NDQ4NyA3LjY2NDg2IDIuMTM5MSA3LjEzMDE0QzEuNTMzMzMgNi41OTU0MiAxLjIzMDQ2IDYuMDc5OCAxLjIzMDQ2IDUuNTgzMjhWNC42NjY2MkgzLjY5MTk3Wk0xNC43Njg2IDQuNjY2NjJWNS41ODMyOEMxNC43Njg2IDYuMDc5OCAxNC40NjU4IDYuNTk1NDIgMTMuODYgNy4xMzAxNEMxMy4yNTQyIDcuNjY0ODYgMTIuNDk5NCA4LjAyNDUxIDExLjU5NTYgOC4yMDkxMkMxMi4wNjk5IDcuMTc3ODcgMTIuMzA3MSA1Ljk5NzA1IDEyLjMwNzEgNC42NjY2MkgxNC43Njg2Wk0xNS45OTk4IDUuNTgzMjlWNC4zNjEwOEMxNS45OTk4IDQuMTA2NDUgMTUuOTEwMSAzLjg5MDAyIDE1LjczMDYgMy43MTE3OEMxNS41NTExIDMuNTMzNTQgMTUuMzMzMiAzLjQ0NDQyIDE1LjA3NjggMy40NDQ0MkgxMi4zMDc2VjIuNTI3NzZDMTIuMzA3NiAyLjEwNzYzIDEyLjE1NjkgMS43NDc5NyAxMS44NTU2IDEuNDQ4NzhDMTEuNTU0NCAxLjE0OTU5IDExLjE5MjIgMSAxMC43NjkxIDFINS4yMzA3MkM0LjgwNzY0IDEgNC40NDU0NyAxLjE0OTU5IDQuMTQ0MTkgMS40NDg3OEMzLjg0MjkxIDEuNzQ3OTcgMy42OTIyNyAyLjEwNzYzIDMuNjkyMjcgMi41Mjc3NlYzLjQ0NDQySDAuOTIzMDY4QzAuNjY2NjU5IDMuNDQ0NDIgMC40NDg3MTQgMy41MzM1NCAwLjI2OTIyOCAzLjcxMTc4QzAuMDg5NzQxOCAzLjg5MDAyIDAgNC4xMDY0NSAwIDQuMzYxMDhWNS41ODMyOUMwIDYuMDM1MjUgMC4xMzMwMSA2LjQ5MDM5IDAuMzk5MDM0IDYuOTQ4NzJDMC42NjUwNTkgNy40MDcwNSAxLjAyNDAzIDcuODIwODIgMS40NzU5NSA4LjE5MDAzQzEuOTI3ODcgOC41NTkyNCAyLjQ4MjM0IDguODY5NTcgMy4xMzkzOSA5LjEyMTAxQzMuNzk2NDQgOS4zNzI0NiA0LjQ4NzEzIDkuNTE0MDkgNS4yMTE0OSA5LjU0NTkyQzUuNDgwNzEgOS44ODk2NyA1Ljc4NTIgMTAuMTkyIDYuMTI0OTQgMTAuNDUzQzYuMzY4NTMgMTAuNjY5NSA2LjUzNjc5IDEwLjkwMDIgNi42Mjk3NCAxMS4xNDUzQzYuNzIyNjkgMTEuMzkwNCA2Ljc2OTE2IDExLjY3NTIgNi43NjkxNiAxMS45OTk5QzYuNzY5MTYgMTIuMzQzNiA2LjY3MTQxIDEyLjYzMzMgNi40NzU5IDEyLjg2ODhDNi4yODAzOCAxMy4xMDQzIDUuOTY3ODkgMTMuMjIyMSA1LjUzODQxIDEzLjIyMjFDNS4wNTc2NCAxMy4yMjIxIDQuNjI5NzYgMTMuMzY2OSA0LjI1NDc2IDEzLjY1NjZDMy44Nzk3NyAxMy45NDYyIDMuNjkyMjcgMTQuMzEwNiAzLjY5MjI3IDE0Ljc0OTlWMTUuMzYxQzMuNjkyMjcgMTUuNDUwMSAzLjcyMTEyIDE1LjUyMzMgMy43Nzg4MSAxNS41ODA2QzMuODM2NSAxNS42Mzc5IDMuOTEwMjIgMTUuNjY2NSAzLjk5OTk2IDE1LjY2NjVIMTEuOTk5OUMxMi4wODk2IDE1LjY2NjUgMTIuMTYzMyAxNS42Mzc5IDEyLjIyMSAxNS41ODA2QzEyLjI3ODcgMTUuNTIzMyAxMi4zMDc2IDE1LjQ1MDEgMTIuMzA3NiAxNS4zNjFWMTQuNzQ5OUMxMi4zMDc2IDE0LjMxMDYgMTIuMTIwMSAxMy45NDYyIDExLjc0NTEgMTMuNjU2NkMxMS4zNzAxIDEzLjM2NjkgMTAuOTQyMiAxMy4yMjIxIDEwLjQ2MTQgMTMuMjIyMUMxMC4wMzE5IDEzLjIyMjEgOS43MTk0NSAxMy4xMDQzIDkuNTIzOTQgMTIuODY4OEM5LjMyODQzIDEyLjYzMzMgOS4yMzA2OCAxMi4zNDM2IDkuMjMwNjggMTEuOTk5OUM5LjIzMDY4IDExLjY3NTIgOS4yNzcxNSAxMS4zOTA0IDkuMzcwMSAxMS4xNDUzQzkuNDYzMDUgMTAuOTAwMiA5LjYzMTMxIDEwLjY2OTUgOS44NzQ5IDEwLjQ1M0MxMC4yMTQ2IDEwLjE5MiAxMC41MTkxIDkuODg5NjcgMTAuNzg4NCA5LjU0NTkyQzExLjUxMjcgOS41MTQwOSAxMi4yMDM0IDkuMzcyNDYgMTIuODYwNCA5LjEyMTAxQzEzLjUxNzUgOC44Njk1NyAxNC4wNzIgOC41NTkyNCAxNC41MjM5IDguMTkwMDNDMTQuOTc1OCA3LjgyMDgyIDE1LjMzNDggNy40MDcwNSAxNS42MDA4IDYuOTQ4NzJDMTUuODY2OCA2LjQ5MDM5IDE1Ljk5OTggNi4wMzUyNSAxNS45OTk4IDUuNTgzMjlaTTYuNzYwNDcgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=", Re = ({
|
|
139
139
|
avatar: t,
|
|
140
140
|
name: e,
|
|
141
141
|
points: s,
|
|
142
142
|
friendsRank: n,
|
|
143
143
|
rank: i,
|
|
144
|
-
streak:
|
|
144
|
+
streak: u,
|
|
145
145
|
correct: p,
|
|
146
146
|
incorrect: m,
|
|
147
147
|
inTop: f,
|
|
148
148
|
average: M
|
|
149
|
-
}) => /* @__PURE__ */ N(
|
|
150
|
-
/* @__PURE__ */ a(
|
|
151
|
-
/* @__PURE__ */ N(
|
|
152
|
-
t && /* @__PURE__ */ a(
|
|
153
|
-
!t && /* @__PURE__ */ a(
|
|
149
|
+
}) => /* @__PURE__ */ N(Mt, { children: [
|
|
150
|
+
/* @__PURE__ */ a(yt, { children: /* @__PURE__ */ N(zt, { children: [
|
|
151
|
+
/* @__PURE__ */ N(Lt, { children: [
|
|
152
|
+
t && /* @__PURE__ */ a(_t, { alt: "avatar", src: t }),
|
|
153
|
+
!t && /* @__PURE__ */ a(jt, { children: Ee(e || "") })
|
|
154
154
|
] }),
|
|
155
|
-
/* @__PURE__ */ N(
|
|
156
|
-
/* @__PURE__ */ a(
|
|
157
|
-
/* @__PURE__ */ N(
|
|
158
|
-
/* @__PURE__ */ N(
|
|
159
|
-
/* @__PURE__ */ a(
|
|
160
|
-
/* @__PURE__ */ N(
|
|
155
|
+
/* @__PURE__ */ N(Tt, { children: [
|
|
156
|
+
/* @__PURE__ */ a(At, { children: e }),
|
|
157
|
+
/* @__PURE__ */ N(St, { children: [
|
|
158
|
+
/* @__PURE__ */ N(xt, { children: [
|
|
159
|
+
/* @__PURE__ */ a(Dt, { alt: "rank-icon", src: Ct }),
|
|
160
|
+
/* @__PURE__ */ N(wt, { children: [
|
|
161
161
|
ke(s),
|
|
162
|
-
/* @__PURE__ */ a(
|
|
162
|
+
/* @__PURE__ */ a(Ot, { children: "PTS" })
|
|
163
163
|
] })
|
|
164
164
|
] }),
|
|
165
|
-
/* @__PURE__ */ a(
|
|
165
|
+
/* @__PURE__ */ a(Et, {}),
|
|
166
166
|
/* @__PURE__ */ N("div", { children: [
|
|
167
167
|
"TOP ",
|
|
168
168
|
f || 0,
|
|
@@ -171,36 +171,36 @@ const ft = /* @__PURE__ */ o("div")({
|
|
|
171
171
|
] })
|
|
172
172
|
] })
|
|
173
173
|
] }) }),
|
|
174
|
-
/* @__PURE__ */ N(
|
|
175
|
-
/* @__PURE__ */ N(
|
|
174
|
+
/* @__PURE__ */ N(Nt, { children: [
|
|
175
|
+
/* @__PURE__ */ N(kt, { children: [
|
|
176
176
|
/* @__PURE__ */ a(ue, { indicator: n || 0, title: "Friends rank" }),
|
|
177
177
|
/* @__PURE__ */ a(ue, { indicator: i || 0, title: "Global rank" })
|
|
178
178
|
] }),
|
|
179
|
-
/* @__PURE__ */ N(
|
|
180
|
-
/* @__PURE__ */ a(W, { indicator:
|
|
179
|
+
/* @__PURE__ */ N(bt, { children: [
|
|
180
|
+
/* @__PURE__ */ a(W, { indicator: u || 0, title: "Win streak" }),
|
|
181
181
|
/* @__PURE__ */ a(W, { indicator: p || 0, title: "Correct" }),
|
|
182
182
|
/* @__PURE__ */ a(W, { indicator: m || 0, title: "Incorrect" }),
|
|
183
183
|
/* @__PURE__ */ a(W, { indicator: `${M || 0}%`, title: "Succ. rate" })
|
|
184
184
|
] })
|
|
185
185
|
] })
|
|
186
186
|
] });
|
|
187
|
-
const
|
|
187
|
+
const Rt = () => w, $t = /* @__PURE__ */ o("div")({
|
|
188
188
|
name: "c",
|
|
189
189
|
class: "ciyeb68",
|
|
190
190
|
propsAsIs: !1
|
|
191
|
-
}),
|
|
191
|
+
}), Ut = /* @__PURE__ */ o(Rt())({
|
|
192
192
|
name: "n",
|
|
193
193
|
class: "nfic4xc",
|
|
194
194
|
propsAsIs: !0
|
|
195
|
-
}),
|
|
195
|
+
}), Qt = /* @__PURE__ */ o("div")({
|
|
196
196
|
name: "d",
|
|
197
197
|
class: "d1pd1p66",
|
|
198
198
|
propsAsIs: !1
|
|
199
|
-
}),
|
|
199
|
+
}), qt = /* @__PURE__ */ o("div")({
|
|
200
200
|
name: "p",
|
|
201
201
|
class: "p132yxcv",
|
|
202
202
|
propsAsIs: !1
|
|
203
|
-
}),
|
|
203
|
+
}), Yt = /* @__PURE__ */ o("span")({
|
|
204
204
|
name: "l",
|
|
205
205
|
class: "l4a8aw",
|
|
206
206
|
propsAsIs: !1
|
|
@@ -208,7 +208,7 @@ const Et = () => w, jt = /* @__PURE__ */ o("div")({
|
|
|
208
208
|
name: "g",
|
|
209
209
|
class: "gzdx7pk",
|
|
210
210
|
propsAsIs: !1
|
|
211
|
-
}),
|
|
211
|
+
}), Pt = ({
|
|
212
212
|
feedbackMessages: t,
|
|
213
213
|
questionVotedCorrectly: e,
|
|
214
214
|
questionVoted: s,
|
|
@@ -217,93 +217,93 @@ const Et = () => w, jt = /* @__PURE__ */ o("div")({
|
|
|
217
217
|
}) => {
|
|
218
218
|
if (!(s && (n === x.TRIVIA || n === x.PREDICTION)))
|
|
219
219
|
return null;
|
|
220
|
-
const
|
|
221
|
-
return /* @__PURE__ */ N(
|
|
222
|
-
|
|
223
|
-
/* @__PURE__ */ a(
|
|
220
|
+
const u = n === x.PREDICTION && !i, p = e ? "correct" : "incorrect", m = e ? t.correctFeedback : t.incorrectFeedback;
|
|
221
|
+
return /* @__PURE__ */ N($t, { "data-isPrediction": u, children: [
|
|
222
|
+
u && /* @__PURE__ */ N(H, { children: [
|
|
223
|
+
/* @__PURE__ */ a(Ut, { name: "icon-prediction" }),
|
|
224
224
|
/* @__PURE__ */ a(pe, { children: "Stay tuned to see if your prediction was correct." })
|
|
225
225
|
] }),
|
|
226
|
-
i && /* @__PURE__ */ N(
|
|
227
|
-
/* @__PURE__ */ a(
|
|
228
|
-
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ N(
|
|
229
|
-
/* @__PURE__ */ a(
|
|
226
|
+
i && /* @__PURE__ */ N(H, { children: [
|
|
227
|
+
/* @__PURE__ */ a(Qt, { "data-feedbackType": p, children: /* @__PURE__ */ a(w, { name: p }) }),
|
|
228
|
+
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ N(qt, { children: [
|
|
229
|
+
/* @__PURE__ */ a(Yt, { "data-feedbackType": p, children: m == null ? void 0 : m.title }),
|
|
230
230
|
/* @__PURE__ */ a(pe, { children: m == null ? void 0 : m.description })
|
|
231
231
|
] }) })
|
|
232
232
|
] })
|
|
233
233
|
] });
|
|
234
234
|
};
|
|
235
|
-
const
|
|
235
|
+
const Wt = /* @__PURE__ */ o("div")({
|
|
236
236
|
name: "o",
|
|
237
237
|
class: "olc1eph",
|
|
238
238
|
propsAsIs: !1
|
|
239
|
-
}),
|
|
239
|
+
}), Ft = /* @__PURE__ */ o("div")({
|
|
240
240
|
name: "n",
|
|
241
241
|
class: "n1yoh29a",
|
|
242
242
|
propsAsIs: !1
|
|
243
|
-
}),
|
|
243
|
+
}), Vt = /* @__PURE__ */ o("div")({
|
|
244
244
|
name: "p",
|
|
245
245
|
class: "pjkr5mb",
|
|
246
246
|
propsAsIs: !1
|
|
247
|
-
}),
|
|
247
|
+
}), Ht = /* @__PURE__ */ o("div")({
|
|
248
248
|
name: "r",
|
|
249
249
|
class: "r82wnnx",
|
|
250
250
|
propsAsIs: !1
|
|
251
251
|
});
|
|
252
|
-
const
|
|
252
|
+
const Bt = () => $e, Gt = () => $e, Zt = () => w, Jt = /* @__PURE__ */ o("button")({
|
|
253
253
|
name: "c",
|
|
254
254
|
class: "cpm4u8k",
|
|
255
255
|
propsAsIs: !1
|
|
256
|
-
}),
|
|
256
|
+
}), Kt = /* @__PURE__ */ o("div")({
|
|
257
257
|
name: "l",
|
|
258
258
|
class: "lwfomc3",
|
|
259
259
|
propsAsIs: !1
|
|
260
|
-
}),
|
|
260
|
+
}), Xt = /* @__PURE__ */ o("span")({
|
|
261
261
|
name: "d",
|
|
262
262
|
class: "dmltvg2",
|
|
263
263
|
propsAsIs: !1
|
|
264
|
-
}),
|
|
264
|
+
}), es = /* @__PURE__ */ o("div")({
|
|
265
265
|
name: "s",
|
|
266
266
|
class: "stfjpqz",
|
|
267
267
|
propsAsIs: !1
|
|
268
|
-
}),
|
|
268
|
+
}), ts = /* @__PURE__ */ o("div")({
|
|
269
269
|
name: "p",
|
|
270
270
|
class: "p198m24r",
|
|
271
271
|
propsAsIs: !1
|
|
272
|
-
}),
|
|
272
|
+
}), $e = /* @__PURE__ */ o("img")({
|
|
273
273
|
name: "r",
|
|
274
274
|
class: "rbq5eu7",
|
|
275
275
|
propsAsIs: !1
|
|
276
|
-
}),
|
|
276
|
+
}), ss = /* @__PURE__ */ o(Bt())({
|
|
277
277
|
name: "g",
|
|
278
278
|
class: "g1iv6oeb",
|
|
279
279
|
propsAsIs: !0
|
|
280
|
-
}),
|
|
280
|
+
}), ns = /* @__PURE__ */ o(Gt())({
|
|
281
281
|
name: "h",
|
|
282
282
|
class: "h1qtxlqc",
|
|
283
283
|
propsAsIs: !0
|
|
284
|
-
}),
|
|
284
|
+
}), is = /* @__PURE__ */ o("span")({
|
|
285
285
|
name: "u",
|
|
286
286
|
class: "udm736q",
|
|
287
287
|
propsAsIs: !1
|
|
288
|
-
}),
|
|
288
|
+
}), rs = /* @__PURE__ */ o("span")({
|
|
289
289
|
name: "b",
|
|
290
290
|
class: "b1da34tx",
|
|
291
291
|
propsAsIs: !1
|
|
292
|
-
}),
|
|
292
|
+
}), as = /* @__PURE__ */ o("span")({
|
|
293
293
|
name: "x",
|
|
294
294
|
class: "x1dqwq83",
|
|
295
295
|
propsAsIs: !1
|
|
296
|
-
}),
|
|
296
|
+
}), os = /* @__PURE__ */ o(Zt())({
|
|
297
297
|
name: "v",
|
|
298
298
|
class: "v10s9my2",
|
|
299
299
|
propsAsIs: !0
|
|
300
300
|
}), he = {
|
|
301
|
-
[L.CENTERED]: (t) => /* @__PURE__ */ a(
|
|
302
|
-
[L.TRANSPARENT]: (t) => /* @__PURE__ */ a(
|
|
303
|
-
[L.ROUNDED]: (t) => /* @__PURE__ */ a(
|
|
301
|
+
[L.CENTERED]: (t) => /* @__PURE__ */ a(ss, { alt: "option-icon", src: t }),
|
|
302
|
+
[L.TRANSPARENT]: (t) => /* @__PURE__ */ a(es, { children: /* @__PURE__ */ a(ts, { style: { backgroundImage: `url(${t})` } }) }),
|
|
303
|
+
[L.ROUNDED]: (t) => /* @__PURE__ */ a(ns, { alt: "option-icon", src: t }),
|
|
304
304
|
[L.NONE]: () => null,
|
|
305
305
|
[L.UNSET]: () => null
|
|
306
|
-
},
|
|
306
|
+
}, ls = ({ questionType: t, hasCorrectAnswer: e, correct: s, youVoted: n, questionVoted: i }) => {
|
|
307
307
|
if (t === x.POLL && n)
|
|
308
308
|
return "correct";
|
|
309
309
|
if (t === x.PREDICTION) {
|
|
@@ -313,20 +313,20 @@ const Wt = () => Ue, Ft = () => Ue, Vt = () => w, Ht = /* @__PURE__ */ o("button
|
|
|
313
313
|
return "correct";
|
|
314
314
|
}
|
|
315
315
|
return t === x.TRIVIA && i ? n ? s ? "correct" : "incorrect" : s ? "correct" : "unset" : "unset";
|
|
316
|
-
},
|
|
316
|
+
}, cs = ({
|
|
317
317
|
questionType: t,
|
|
318
318
|
questionVoted: e,
|
|
319
319
|
correct: s,
|
|
320
320
|
hasCorrectAnswer: n,
|
|
321
321
|
questionStatus: i
|
|
322
|
-
}) => t === x.TRIVIA ? e && s : t === x.PREDICTION ? e && s && n || i === re.RESOLVED && s : !1,
|
|
322
|
+
}) => t === x.TRIVIA ? e && s : t === x.PREDICTION ? e && s && n || i === re.RESOLVED && s : !1, ds = (t) => {
|
|
323
323
|
var e;
|
|
324
324
|
const {
|
|
325
325
|
// option props
|
|
326
326
|
id: s,
|
|
327
327
|
icon: n,
|
|
328
328
|
text: i,
|
|
329
|
-
percentageDecimal:
|
|
329
|
+
percentageDecimal: u,
|
|
330
330
|
// extra props
|
|
331
331
|
onVote: p,
|
|
332
332
|
youSelected: m,
|
|
@@ -339,9 +339,9 @@ const Wt = () => Ue, Ft = () => Ue, Vt = () => w, Ht = /* @__PURE__ */ o("button
|
|
|
339
339
|
questionType: v,
|
|
340
340
|
correct: I,
|
|
341
341
|
hasCorrectAnswer: r
|
|
342
|
-
} = t, h =
|
|
342
|
+
} = t, h = ls(t), c = cs({ questionType: v, questionVoted: f, correct: I, hasCorrectAnswer: r, questionStatus: y }), d = f || y === re.RESOLVED && v === x.PREDICTION;
|
|
343
343
|
return /* @__PURE__ */ N(
|
|
344
|
-
|
|
344
|
+
Jt,
|
|
345
345
|
{
|
|
346
346
|
value: s,
|
|
347
347
|
"data-selected": m,
|
|
@@ -349,14 +349,14 @@ const Wt = () => Ue, Ft = () => Ue, Vt = () => w, Ht = /* @__PURE__ */ o("button
|
|
|
349
349
|
disabled: f || l || z,
|
|
350
350
|
onClick: p,
|
|
351
351
|
children: [
|
|
352
|
-
|
|
353
|
-
/* @__PURE__ */ N(
|
|
352
|
+
d && /* @__PURE__ */ a(Kt, { "data-answerState": h, style: { width: `${u}%` } }),
|
|
353
|
+
/* @__PURE__ */ N(Xt, { children: [
|
|
354
354
|
n && ((e = he[M]) == null ? void 0 : e.call(he, n)),
|
|
355
|
-
/* @__PURE__ */ a(
|
|
356
|
-
|
|
357
|
-
c && /* @__PURE__ */ a(
|
|
358
|
-
/* @__PURE__ */ N(
|
|
359
|
-
|
|
355
|
+
/* @__PURE__ */ a(is, { children: i }),
|
|
356
|
+
d && /* @__PURE__ */ N(rs, { children: [
|
|
357
|
+
c && /* @__PURE__ */ a(os, { name: "selected" }),
|
|
358
|
+
/* @__PURE__ */ N(as, { children: [
|
|
359
|
+
u,
|
|
360
360
|
"%"
|
|
361
361
|
] })
|
|
362
362
|
] })
|
|
@@ -365,162 +365,162 @@ const Wt = () => Ue, Ft = () => Ue, Vt = () => w, Ht = /* @__PURE__ */ o("button
|
|
|
365
365
|
}
|
|
366
366
|
);
|
|
367
367
|
};
|
|
368
|
-
var me = typeof window > "u" ?
|
|
368
|
+
var me = typeof window > "u" ? st : nt, us = ({ isPlaying: t, duration: e, startAt: s = 0, updateInterval: n = 0, onComplete: i, onUpdate: u }) => {
|
|
369
369
|
let [p, m] = R(s), f = k(0), M = k(s), z = k(s * -1e3), y = k(null), l = k(null), v = k(null), I = (c) => {
|
|
370
|
-
let
|
|
370
|
+
let d = c / 1e3;
|
|
371
371
|
if (l.current === null) {
|
|
372
|
-
l.current =
|
|
372
|
+
l.current = d, y.current = requestAnimationFrame(I);
|
|
373
373
|
return;
|
|
374
374
|
}
|
|
375
|
-
let g =
|
|
376
|
-
l.current =
|
|
375
|
+
let g = d - l.current, T = f.current + g;
|
|
376
|
+
l.current = d, f.current = T;
|
|
377
377
|
let _ = M.current + (n === 0 ? T : (T / n | 0) * n), A = M.current + T, S = typeof e == "number" && A >= e;
|
|
378
378
|
m(S ? e : _), S || (y.current = requestAnimationFrame(I));
|
|
379
379
|
}, r = () => {
|
|
380
380
|
y.current && cancelAnimationFrame(y.current), v.current && clearTimeout(v.current), l.current = null;
|
|
381
|
-
}, h =
|
|
381
|
+
}, h = B((c) => {
|
|
382
382
|
r(), f.current = 0;
|
|
383
|
-
let
|
|
384
|
-
M.current =
|
|
383
|
+
let d = typeof c == "number" ? c : s;
|
|
384
|
+
M.current = d, m(d), t && (y.current = requestAnimationFrame(I));
|
|
385
385
|
}, [t, s]);
|
|
386
386
|
return me(() => {
|
|
387
|
-
if (
|
|
387
|
+
if (u == null || u(p), e && p >= e) {
|
|
388
388
|
z.current += e * 1e3;
|
|
389
|
-
let { shouldRepeat: c = !1, delay:
|
|
390
|
-
c && (v.current = setTimeout(() => h(g),
|
|
389
|
+
let { shouldRepeat: c = !1, delay: d = 0, newStartAt: g } = (i == null ? void 0 : i(z.current / 1e3)) || {};
|
|
390
|
+
c && (v.current = setTimeout(() => h(g), d * 1e3));
|
|
391
391
|
}
|
|
392
392
|
}, [p, e]), me(() => (t && (y.current = requestAnimationFrame(I)), r), [t, e, n]), { elapsedTime: p, reset: h };
|
|
393
|
-
},
|
|
394
|
-
let n = t / 2, i = e / 2,
|
|
395
|
-
return { path: `m ${n},${i} a ${
|
|
396
|
-
}, fe = (t, e) => t === 0 || t === e ? 0 : typeof e == "number" ? t - e : 0,
|
|
393
|
+
}, ps = (t, e, s) => {
|
|
394
|
+
let n = t / 2, i = e / 2, u = n - i, p = 2 * u, m = s === "clockwise" ? "1,0" : "0,1", f = 2 * Math.PI * u;
|
|
395
|
+
return { path: `m ${n},${i} a ${u},${u} 0 ${m} 0,${p} a ${u},${u} 0 ${m} 0,-${p}`, pathLength: f };
|
|
396
|
+
}, fe = (t, e) => t === 0 || t === e ? 0 : typeof e == "number" ? t - e : 0, hs = (t) => ({ position: "relative", width: t, height: t }), ms = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, Ue = (t, e, s, n, i) => {
|
|
397
397
|
if (n === 0)
|
|
398
398
|
return e;
|
|
399
|
-
let
|
|
400
|
-
return e + s *
|
|
399
|
+
let u = (i ? n - t : t) / n;
|
|
400
|
+
return e + s * u;
|
|
401
401
|
}, ge = (t) => {
|
|
402
402
|
var e, s;
|
|
403
|
-
return (s = (e = t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (n, i,
|
|
404
|
-
},
|
|
403
|
+
return (s = (e = t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (n, i, u, p) => `#${i}${i}${u}${u}${p}${p}`).substring(1).match(/.{2}/g)) == null ? void 0 : e.map((n) => parseInt(n, 16))) != null ? s : [];
|
|
404
|
+
}, fs = (t, e) => {
|
|
405
405
|
var s;
|
|
406
|
-
let { colors: n, colorsTime: i, isSmoothColorTransition:
|
|
406
|
+
let { colors: n, colorsTime: i, isSmoothColorTransition: u = !0 } = t;
|
|
407
407
|
if (typeof n == "string")
|
|
408
408
|
return n;
|
|
409
409
|
let p = (s = i == null ? void 0 : i.findIndex((l, v) => l >= e && e >= i[v + 1])) != null ? s : -1;
|
|
410
410
|
if (!i || p === -1)
|
|
411
411
|
return n[0];
|
|
412
|
-
if (!
|
|
412
|
+
if (!u)
|
|
413
413
|
return n[p];
|
|
414
414
|
let m = i[p] - e, f = i[p] - i[p + 1], M = ge(n[p]), z = ge(n[p + 1]), y = !!t.isGrowing;
|
|
415
|
-
return `rgb(${M.map((l, v) =>
|
|
416
|
-
},
|
|
417
|
-
let { duration: e, initialRemainingTime: s, updateInterval: n, size: i = 180, strokeWidth:
|
|
418
|
-
let g = Math.ceil(e -
|
|
415
|
+
return `rgb(${M.map((l, v) => Ue(m, l, z[v] - l, f, y) | 0).join(",")})`;
|
|
416
|
+
}, gs = (t) => {
|
|
417
|
+
let { duration: e, initialRemainingTime: s, updateInterval: n, size: i = 180, strokeWidth: u = 12, trailStrokeWidth: p, isPlaying: m = !1, isGrowing: f = !1, rotation: M = "clockwise", onComplete: z, onUpdate: y } = t, l = k(), v = Math.max(u, p ?? 0), { path: I, pathLength: r } = ps(i, v, M), { elapsedTime: h } = us({ isPlaying: m, duration: e, startAt: fe(e, s), updateInterval: n, onUpdate: typeof y == "function" ? (d) => {
|
|
418
|
+
let g = Math.ceil(e - d);
|
|
419
419
|
g !== l.current && (l.current = g, y(g));
|
|
420
|
-
} : void 0, onComplete: typeof z == "function" ? (
|
|
420
|
+
} : void 0, onComplete: typeof z == "function" ? (d) => {
|
|
421
421
|
var g;
|
|
422
|
-
let { shouldRepeat: T, delay: _, newInitialRemainingTime: A } = (g = z(
|
|
422
|
+
let { shouldRepeat: T, delay: _, newInitialRemainingTime: A } = (g = z(d)) != null ? g : {};
|
|
423
423
|
if (T)
|
|
424
424
|
return { shouldRepeat: T, delay: _, newStartAt: fe(e, A) };
|
|
425
425
|
} : void 0 }), c = e - h;
|
|
426
|
-
return { elapsedTime: h, path: I, pathLength: r, remainingTime: Math.ceil(c), rotation: M, size: i, stroke:
|
|
427
|
-
},
|
|
428
|
-
let { children: e, strokeLinecap: s, trailColor: n, trailStrokeWidth: i } = t, { path:
|
|
429
|
-
return U.createElement("div", { style:
|
|
426
|
+
return { elapsedTime: h, path: I, pathLength: r, remainingTime: Math.ceil(c), rotation: M, size: i, stroke: fs(t, c), strokeDashoffset: Ue(h, 0, r, e, f), strokeWidth: u };
|
|
427
|
+
}, Qe = (t) => {
|
|
428
|
+
let { children: e, strokeLinecap: s, trailColor: n, trailStrokeWidth: i } = t, { path: u, pathLength: p, stroke: m, strokeDashoffset: f, remainingTime: M, elapsedTime: z, size: y, strokeWidth: l } = gs(t);
|
|
429
|
+
return U.createElement("div", { style: hs(y) }, U.createElement("svg", { viewBox: `0 0 ${y} ${y}`, width: y, height: y, xmlns: "http://www.w3.org/2000/svg" }, U.createElement("path", { d: u, fill: "none", stroke: n ?? "#d9d9d9", strokeWidth: i ?? l }), U.createElement("path", { d: u, fill: "none", stroke: m, strokeLinecap: s ?? "round", strokeWidth: l, strokeDasharray: p, strokeDashoffset: f })), typeof e == "function" && U.createElement("div", { style: ms }, e({ remainingTime: M, elapsedTime: z, color: m })));
|
|
430
430
|
};
|
|
431
|
-
|
|
432
|
-
const
|
|
431
|
+
Qe.displayName = "CountdownCircleTimer";
|
|
432
|
+
const Is = [C.PRIMARY_GREEN1, C.SECONDARY_RED1, C.SECONDARY_RED1], vs = [10, 10, 0], Ms = /* @__PURE__ */ o("div")({
|
|
433
433
|
name: "A",
|
|
434
434
|
class: "a1f928zy",
|
|
435
435
|
propsAsIs: !1
|
|
436
|
-
}),
|
|
436
|
+
}), ys = C.SECONDARY_GREEN6, Ie = C.SECONDARY_RED3, Ns = C.NEUTRALS_GRAY3, zs = ({
|
|
437
437
|
isPlaying: t = !0,
|
|
438
438
|
duration: e = 30,
|
|
439
439
|
onTimerExpired: s
|
|
440
440
|
}) => {
|
|
441
|
-
const [n, i] = R(e > 10 ?
|
|
441
|
+
const [n, i] = R(e > 10 ? ys : Ie), u = ({
|
|
442
442
|
remainingTime: f
|
|
443
|
-
}) => /* @__PURE__ */ a(
|
|
443
|
+
}) => /* @__PURE__ */ a(Ms, {
|
|
444
444
|
children: f
|
|
445
|
-
}), p =
|
|
446
|
-
s == null || s(), i(
|
|
447
|
-
}, [s, i]), m =
|
|
445
|
+
}), p = B(() => {
|
|
446
|
+
s == null || s(), i(Ns);
|
|
447
|
+
}, [s, i]), m = B((f) => {
|
|
448
448
|
f === 10 && i(Ie);
|
|
449
449
|
}, [i]);
|
|
450
|
-
return /* @__PURE__ */ a(
|
|
450
|
+
return /* @__PURE__ */ a(Qe, {
|
|
451
451
|
isPlaying: t,
|
|
452
452
|
duration: e,
|
|
453
|
-
colors:
|
|
454
|
-
colorsTime:
|
|
453
|
+
colors: Is,
|
|
454
|
+
colorsTime: vs,
|
|
455
455
|
size: 32,
|
|
456
456
|
strokeWidth: 2,
|
|
457
457
|
trailStrokeWidth: 2,
|
|
458
458
|
trailColor: n,
|
|
459
459
|
onComplete: p,
|
|
460
460
|
onUpdate: m,
|
|
461
|
-
children:
|
|
461
|
+
children: u
|
|
462
462
|
});
|
|
463
463
|
};
|
|
464
|
-
const
|
|
464
|
+
const _s = () => w, Ts = /* @__PURE__ */ o("div")({
|
|
465
465
|
name: "a",
|
|
466
466
|
class: "a1r7f3z4",
|
|
467
467
|
propsAsIs: !1
|
|
468
|
-
}),
|
|
468
|
+
}), As = /* @__PURE__ */ o("div")({
|
|
469
469
|
name: "s",
|
|
470
470
|
class: "sblndl",
|
|
471
471
|
propsAsIs: !1
|
|
472
|
-
}),
|
|
472
|
+
}), Ss = /* @__PURE__ */ o("div")({
|
|
473
473
|
name: "l",
|
|
474
474
|
class: "l7ka1tv",
|
|
475
475
|
propsAsIs: !1
|
|
476
|
-
}),
|
|
476
|
+
}), Ds = /* @__PURE__ */ o(_s())({
|
|
477
477
|
name: "p",
|
|
478
478
|
class: "p1edlxt3",
|
|
479
479
|
propsAsIs: !0
|
|
480
|
-
}),
|
|
480
|
+
}), xs = /* @__PURE__ */ o("div")({
|
|
481
481
|
name: "g",
|
|
482
482
|
class: "ghm08u2",
|
|
483
483
|
propsAsIs: !1
|
|
484
|
-
}),
|
|
484
|
+
}), ws = /* @__PURE__ */ o("span")({
|
|
485
485
|
name: "c",
|
|
486
486
|
class: "c12nsh46",
|
|
487
487
|
propsAsIs: !1
|
|
488
|
-
}),
|
|
488
|
+
}), Os = /* @__PURE__ */ o("span")({
|
|
489
489
|
name: "d",
|
|
490
490
|
class: "dlr9eoc",
|
|
491
491
|
propsAsIs: !1
|
|
492
|
-
}),
|
|
493
|
-
/* @__PURE__ */ N(
|
|
494
|
-
t && /* @__PURE__ */ a(
|
|
495
|
-
e !== void 0 && /* @__PURE__ */ N(
|
|
496
|
-
/* @__PURE__ */ a(
|
|
497
|
-
/* @__PURE__ */ N(
|
|
498
|
-
/* @__PURE__ */ a(
|
|
499
|
-
/* @__PURE__ */ a(
|
|
492
|
+
}), Es = ({ title: t, points: e, isPlayingTimer: s, isTimer: n, onTimerExpired: i }) => /* @__PURE__ */ N(Ts, { children: [
|
|
493
|
+
/* @__PURE__ */ N(As, { children: [
|
|
494
|
+
t && /* @__PURE__ */ a(Ss, { children: t }),
|
|
495
|
+
e !== void 0 && /* @__PURE__ */ N(H, { children: [
|
|
496
|
+
/* @__PURE__ */ a(Ds, { name: "icon-trophy" }),
|
|
497
|
+
/* @__PURE__ */ N(xs, { children: [
|
|
498
|
+
/* @__PURE__ */ a(ws, { children: e }),
|
|
499
|
+
/* @__PURE__ */ a(Os, { children: "PTS" })
|
|
500
500
|
] })
|
|
501
501
|
] })
|
|
502
502
|
] }),
|
|
503
|
-
n && /* @__PURE__ */ a(
|
|
504
|
-
] }),
|
|
503
|
+
n && /* @__PURE__ */ a(zs, { isPlaying: s, onTimerExpired: i })
|
|
504
|
+
] }), ks = ({ openedQuestion: t, vote: e }) => {
|
|
505
505
|
var s;
|
|
506
|
-
const n = t.subject, i = t.type,
|
|
507
|
-
async (
|
|
506
|
+
const n = t.subject, i = t.type, u = (s = t.options) == null ? void 0 : s.options, [p, m] = R(!1), [f, M] = R(!1), [z, y] = R(""), l = t == null ? void 0 : t.id, v = B(
|
|
507
|
+
async (d) => {
|
|
508
508
|
if (l) {
|
|
509
|
-
const g =
|
|
509
|
+
const g = d.currentTarget.value;
|
|
510
510
|
y(g), M(!0), await e(l, g), M(!1);
|
|
511
511
|
}
|
|
512
512
|
},
|
|
513
513
|
[l, y, e]
|
|
514
|
-
), I =
|
|
515
|
-
() => t == null ? void 0 : t.answers.find((
|
|
514
|
+
), I = F(
|
|
515
|
+
() => t == null ? void 0 : t.answers.find((d) => d.youVoted === !0),
|
|
516
516
|
[t]
|
|
517
|
-
), r =
|
|
518
|
-
() => !!(t != null && t.answers.find((
|
|
517
|
+
), r = F(
|
|
518
|
+
() => !!(t != null && t.answers.find((d) => d.correct === !0)),
|
|
519
519
|
[t]
|
|
520
|
-
), h =
|
|
521
|
-
...
|
|
520
|
+
), h = F(() => t ? t.answers.map((d) => ({
|
|
521
|
+
...d,
|
|
522
522
|
questionVoted: !!I,
|
|
523
|
-
youSelected: z ===
|
|
523
|
+
youSelected: z === d.id,
|
|
524
524
|
isLoading: f,
|
|
525
525
|
hasCorrectAnswer: r,
|
|
526
526
|
questionType: t.type,
|
|
@@ -528,10 +528,10 @@ const Ms = () => w, ys = /* @__PURE__ */ o("div")({
|
|
|
528
528
|
questionStatus: t.status,
|
|
529
529
|
// ToDo: Figure out why imageMode is not in the response
|
|
530
530
|
onVote: v
|
|
531
|
-
})) : [], [r, p, f, t, I, v, z]), c =
|
|
532
|
-
return /* @__PURE__ */ a(
|
|
531
|
+
})) : [], [r, p, f, t, I, v, z]), c = u && (u.case === "trivia" || u.case === "prediction") ? u.value : void 0;
|
|
532
|
+
return /* @__PURE__ */ a(be, { "data-question-header": "true", children: /* @__PURE__ */ a(Wt, { children: /* @__PURE__ */ N(Ft, { children: [
|
|
533
533
|
c && /* @__PURE__ */ a(
|
|
534
|
-
|
|
534
|
+
Pt,
|
|
535
535
|
{
|
|
536
536
|
feedbackMessages: c,
|
|
537
537
|
questionVoted: !!I,
|
|
@@ -541,7 +541,7 @@ const Ms = () => w, ys = /* @__PURE__ */ o("div")({
|
|
|
541
541
|
}
|
|
542
542
|
),
|
|
543
543
|
/* @__PURE__ */ a(
|
|
544
|
-
|
|
544
|
+
Es,
|
|
545
545
|
{
|
|
546
546
|
title: p ? "Expired" : "To win",
|
|
547
547
|
points: p ? void 0 : 100,
|
|
@@ -549,74 +549,83 @@ const Ms = () => w, ys = /* @__PURE__ */ o("div")({
|
|
|
549
549
|
isTimer: !0
|
|
550
550
|
}
|
|
551
551
|
),
|
|
552
|
-
/* @__PURE__ */ a(
|
|
553
|
-
/* @__PURE__ */ a(
|
|
552
|
+
/* @__PURE__ */ a(Vt, { children: n }),
|
|
553
|
+
/* @__PURE__ */ a(Ht, { children: h.map((d) => /* @__PURE__ */ a(ds, { ...d }, d.id)) })
|
|
554
554
|
] }) }) });
|
|
555
555
|
};
|
|
556
|
-
const
|
|
556
|
+
const bs = /* @__PURE__ */ o("div")({
|
|
557
557
|
name: "e",
|
|
558
|
-
class: "
|
|
558
|
+
class: "e1eio0mt",
|
|
559
559
|
propsAsIs: !1
|
|
560
|
-
}),
|
|
561
|
-
name: "
|
|
562
|
-
class: "
|
|
560
|
+
}), js = /* @__PURE__ */ o("div")({
|
|
561
|
+
name: "i",
|
|
562
|
+
class: "iigl87b",
|
|
563
563
|
propsAsIs: !1
|
|
564
|
-
}),
|
|
564
|
+
}), Ls = /* @__PURE__ */ o("h3")({
|
|
565
565
|
name: "n",
|
|
566
|
-
class: "
|
|
566
|
+
class: "n1o2cwub",
|
|
567
567
|
propsAsIs: !1
|
|
568
|
-
}),
|
|
569
|
-
name: "
|
|
570
|
-
class: "
|
|
571
|
-
propsAsIs: !1
|
|
572
|
-
}), Es = /* @__PURE__ */ o("a")({
|
|
573
|
-
name: "a",
|
|
574
|
-
class: "a1dka9qs",
|
|
568
|
+
}), Cs = /* @__PURE__ */ o("div")({
|
|
569
|
+
name: "r",
|
|
570
|
+
class: "r3uxe45",
|
|
575
571
|
propsAsIs: !1
|
|
576
|
-
}),
|
|
572
|
+
}), Rs = /* @__PURE__ */ o("div")({
|
|
577
573
|
name: "l",
|
|
578
|
-
class: "
|
|
579
|
-
propsAsIs: !1
|
|
580
|
-
}),
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
574
|
+
class: "lrqius",
|
|
575
|
+
propsAsIs: !1
|
|
576
|
+
}), qe = ({ created: t, title: e, instantView: s }) => {
|
|
577
|
+
const n = F(() => {
|
|
578
|
+
if (t) {
|
|
579
|
+
const i = new Date(t);
|
|
580
|
+
if (Ze(i))
|
|
581
|
+
return {
|
|
582
|
+
date: Je(i),
|
|
583
|
+
time: Ke(i)
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
return null;
|
|
587
|
+
}, [t]);
|
|
588
|
+
return /* @__PURE__ */ N(bs, { children: [
|
|
589
|
+
n && /* @__PURE__ */ N(Rs, { children: [
|
|
590
|
+
n.date,
|
|
591
|
+
" · ",
|
|
592
|
+
n.time
|
|
595
593
|
] }),
|
|
596
|
-
(s == null ? void 0 : s.video) && /* @__PURE__ */ a(
|
|
597
|
-
/* @__PURE__ */ N(
|
|
598
|
-
/* @__PURE__ */ a(
|
|
599
|
-
/* @__PURE__ */ a(
|
|
600
|
-
(s == null ? void 0 : s.webLink) && /* @__PURE__ */ N(Es, { href: s == null ? void 0 : s.webLink.url, target: "_blank", children: [
|
|
601
|
-
"Explore more of the Masters History",
|
|
602
|
-
/* @__PURE__ */ a(w, { name: "icon-external-link" })
|
|
603
|
-
] })
|
|
594
|
+
(s == null ? void 0 : s.video) && /* @__PURE__ */ a(Xe, { source: s.video.url, poster: s.video.thumbnailUrl }),
|
|
595
|
+
/* @__PURE__ */ N(js, { children: [
|
|
596
|
+
/* @__PURE__ */ a(Ls, { children: (s == null ? void 0 : s.heading) || e }),
|
|
597
|
+
/* @__PURE__ */ a(Cs, { children: s == null ? void 0 : s.body })
|
|
604
598
|
] })
|
|
605
599
|
] });
|
|
606
600
|
};
|
|
607
|
-
const
|
|
601
|
+
const $s = /* @__PURE__ */ o("div")({
|
|
602
|
+
name: "o",
|
|
603
|
+
class: "o18unvw4",
|
|
604
|
+
propsAsIs: !1
|
|
605
|
+
}), Us = /* @__PURE__ */ o("a")({
|
|
606
|
+
name: "n",
|
|
607
|
+
class: "ns0uvk8",
|
|
608
|
+
propsAsIs: !1
|
|
609
|
+
}), Qs = ({ instantView: t, ...e }) => /* @__PURE__ */ N($s, { children: [
|
|
610
|
+
/* @__PURE__ */ a(qe, { instantView: t, ...e }),
|
|
611
|
+
(t == null ? void 0 : t.webLink) && /* @__PURE__ */ N(Us, { href: t == null ? void 0 : t.webLink.url, target: "_blank", children: [
|
|
612
|
+
"Explore more of the Masters History",
|
|
613
|
+
/* @__PURE__ */ a(w, { name: "icon-external-link" })
|
|
614
|
+
] })
|
|
615
|
+
] });
|
|
616
|
+
const qs = /* @__PURE__ */ o("div")({
|
|
608
617
|
name: "d",
|
|
609
618
|
class: "dk8r1eq",
|
|
610
619
|
propsAsIs: !1
|
|
611
|
-
}),
|
|
620
|
+
}), Ys = ({
|
|
612
621
|
openedQuestion: t
|
|
613
622
|
}) => {
|
|
614
623
|
var e;
|
|
615
|
-
return ((e = t == null ? void 0 : t.attributes) == null ? void 0 : e.attributes.case) === "insight" ? /* @__PURE__ */ a(
|
|
624
|
+
return ((e = t == null ? void 0 : t.attributes) == null ? void 0 : e.attributes.case) === "insight" ? /* @__PURE__ */ a(Qs, {
|
|
616
625
|
created: t.attributes.created,
|
|
617
626
|
...t.attributes.attributes.value
|
|
618
627
|
}) : null;
|
|
619
|
-
},
|
|
628
|
+
}, Ps = ({
|
|
620
629
|
extendedQuestion: t,
|
|
621
630
|
vote: e
|
|
622
631
|
}) => {
|
|
@@ -624,49 +633,49 @@ const Cs = /* @__PURE__ */ o("div")({
|
|
|
624
633
|
loading: s,
|
|
625
634
|
data: n
|
|
626
635
|
} = t;
|
|
627
|
-
return !s && n ? /* @__PURE__ */ a(
|
|
636
|
+
return !s && n ? /* @__PURE__ */ a(ks, {
|
|
628
637
|
vote: e,
|
|
629
638
|
openedQuestion: n
|
|
630
639
|
}) : null;
|
|
631
|
-
},
|
|
640
|
+
}, Ws = ({
|
|
632
641
|
gamification: t
|
|
633
642
|
}) => {
|
|
634
643
|
var e;
|
|
635
|
-
const s =
|
|
644
|
+
const s = b(t.openedQuestion.$store), n = b(t.openedQuestion.$extendedStore);
|
|
636
645
|
if (!s)
|
|
637
646
|
return null;
|
|
638
647
|
const i = s.type;
|
|
639
|
-
return /* @__PURE__ */ N(
|
|
640
|
-
children: [/* @__PURE__ */ a(
|
|
648
|
+
return /* @__PURE__ */ N(qs, {
|
|
649
|
+
children: [/* @__PURE__ */ a(Ce, {
|
|
641
650
|
close: t.closeQuestion,
|
|
642
651
|
type: ((e = s.attributes) == null ? void 0 : e.type) || x.UNSET
|
|
643
|
-
}), i === "question" && /* @__PURE__ */ a(
|
|
652
|
+
}), i === "question" && /* @__PURE__ */ a(Ps, {
|
|
644
653
|
vote: t.submitAnswer,
|
|
645
654
|
extendedQuestion: n
|
|
646
|
-
}), i !== "question" && /* @__PURE__ */ a(
|
|
655
|
+
}), i !== "question" && /* @__PURE__ */ a(Ys, {
|
|
647
656
|
openedQuestion: s
|
|
648
657
|
})]
|
|
649
658
|
});
|
|
650
659
|
};
|
|
651
|
-
const
|
|
660
|
+
const Fs = /* @__PURE__ */ o("div")({
|
|
652
661
|
name: "t",
|
|
653
662
|
class: "tcim9sm",
|
|
654
663
|
propsAsIs: !1
|
|
655
|
-
}),
|
|
664
|
+
}), Vs = /* @__PURE__ */ o("div")({
|
|
656
665
|
name: "e",
|
|
657
666
|
class: "e8wco6o",
|
|
658
667
|
propsAsIs: !1
|
|
659
|
-
}),
|
|
668
|
+
}), Hs = /* @__PURE__ */ o("button")({
|
|
660
669
|
name: "n",
|
|
661
670
|
class: "n1ardwzl",
|
|
662
671
|
propsAsIs: !1
|
|
663
|
-
}),
|
|
672
|
+
}), Bs = /* @__PURE__ */ o("span")({
|
|
664
673
|
name: "i",
|
|
665
674
|
class: "i1vk8ojx",
|
|
666
675
|
propsAsIs: !1
|
|
667
676
|
});
|
|
668
677
|
var Q = /* @__PURE__ */ ((t) => (t.HOME = "home", t.LEADERBOARD = "leaderboard", t))(Q || {});
|
|
669
|
-
const ve = ({ title: t, active: e, onClick: s }) => /* @__PURE__ */ a(
|
|
678
|
+
const ve = ({ title: t, active: e, onClick: s }) => /* @__PURE__ */ a(Hs, { onClick: s, "data-selected": e, children: /* @__PURE__ */ a(Bs, { children: t }) }), Gs = ({ activePage: t = "home", toggleActivePage: e }) => /* @__PURE__ */ a(Fs, { children: /* @__PURE__ */ N(Vs, { "data-position": t === "home" ? "left" : "right", children: [
|
|
670
679
|
/* @__PURE__ */ a(ve, { title: "Home", active: t === "home", onClick: () => e(
|
|
671
680
|
"home"
|
|
672
681
|
/* HOME */
|
|
@@ -684,7 +693,7 @@ const ve = ({ title: t, active: e, onClick: s }) => /* @__PURE__ */ a(Ys, { onCl
|
|
|
684
693
|
)
|
|
685
694
|
] }) });
|
|
686
695
|
let D;
|
|
687
|
-
typeof window < "u" ? D = window : typeof self < "u" ? D = self : D =
|
|
696
|
+
typeof window < "u" ? D = window : typeof self < "u" ? D = self : D = et.global;
|
|
688
697
|
let te = null, se = null;
|
|
689
698
|
const Me = 20, Z = D.clearTimeout, ye = D.setTimeout, J = D.cancelAnimationFrame || D.mozCancelAnimationFrame || D.webkitCancelAnimationFrame, Ne = D.requestAnimationFrame || D.mozRequestAnimationFrame || D.webkitRequestAnimationFrame;
|
|
690
699
|
J == null || Ne == null ? (te = Z, se = function(e) {
|
|
@@ -699,22 +708,22 @@ J == null || Ne == null ? (te = Z, se = function(e) {
|
|
|
699
708
|
}, Me);
|
|
700
709
|
return [s, n];
|
|
701
710
|
});
|
|
702
|
-
function
|
|
703
|
-
let e, s, n, i,
|
|
711
|
+
function Zs(t) {
|
|
712
|
+
let e, s, n, i, u, p, m;
|
|
704
713
|
const f = typeof document < "u" && document.attachEvent;
|
|
705
714
|
if (!f) {
|
|
706
715
|
p = function(c) {
|
|
707
|
-
const
|
|
716
|
+
const d = c.__resizeTriggers__, g = d.firstElementChild, T = d.lastElementChild, _ = g.firstElementChild;
|
|
708
717
|
T.scrollLeft = T.scrollWidth, T.scrollTop = T.scrollHeight, _.style.width = g.offsetWidth + 1 + "px", _.style.height = g.offsetHeight + 1 + "px", g.scrollLeft = g.scrollWidth, g.scrollTop = g.scrollHeight;
|
|
709
|
-
},
|
|
718
|
+
}, u = function(c) {
|
|
710
719
|
return c.offsetWidth !== c.__resizeLast__.width || c.offsetHeight !== c.__resizeLast__.height;
|
|
711
720
|
}, m = function(c) {
|
|
712
721
|
if (c.target.className && typeof c.target.className.indexOf == "function" && c.target.className.indexOf("contract-trigger") < 0 && c.target.className.indexOf("expand-trigger") < 0)
|
|
713
722
|
return;
|
|
714
|
-
const
|
|
723
|
+
const d = this;
|
|
715
724
|
p(this), this.__resizeRAF__ && te(this.__resizeRAF__), this.__resizeRAF__ = se(function() {
|
|
716
|
-
d
|
|
717
|
-
_.call(
|
|
725
|
+
u(d) && (d.__resizeLast__.width = d.offsetWidth, d.__resizeLast__.height = d.offsetHeight, d.__resizeListeners__.forEach(function(_) {
|
|
726
|
+
_.call(d, c);
|
|
718
727
|
}));
|
|
719
728
|
});
|
|
720
729
|
};
|
|
@@ -725,9 +734,9 @@ function Fs(t) {
|
|
|
725
734
|
{
|
|
726
735
|
const c = document.createElement("fakeelement");
|
|
727
736
|
if (c.style.animationName !== void 0 && (l = !0), l === !1) {
|
|
728
|
-
for (let
|
|
729
|
-
if (c.style[I[
|
|
730
|
-
h = I[
|
|
737
|
+
for (let d = 0; d < I.length; d++)
|
|
738
|
+
if (c.style[I[d] + "AnimationName"] !== void 0) {
|
|
739
|
+
h = I[d], v = "-" + h.toLowerCase() + "-", n = r[d], l = !0;
|
|
731
740
|
break;
|
|
732
741
|
}
|
|
733
742
|
}
|
|
@@ -771,7 +780,7 @@ function Fs(t) {
|
|
|
771
780
|
}
|
|
772
781
|
};
|
|
773
782
|
}
|
|
774
|
-
class
|
|
783
|
+
class Js extends it {
|
|
775
784
|
constructor(...e) {
|
|
776
785
|
super(...e), this.state = {
|
|
777
786
|
height: this.props.defaultHeight || 0,
|
|
@@ -786,18 +795,18 @@ class Vs extends et {
|
|
|
786
795
|
onResize: i
|
|
787
796
|
} = this.props;
|
|
788
797
|
if (this._parentNode) {
|
|
789
|
-
var
|
|
790
|
-
const M = window.getComputedStyle(this._parentNode) || {}, z = parseFloat((
|
|
791
|
-
(!s && (this.state.height !== c || this.state.scaledHeight !== r) || !n && (this.state.width !==
|
|
798
|
+
var u, p, m, f;
|
|
799
|
+
const M = window.getComputedStyle(this._parentNode) || {}, z = parseFloat((u = M.paddingLeft) !== null && u !== void 0 ? u : "0"), y = parseFloat((p = M.paddingRight) !== null && p !== void 0 ? p : "0"), l = parseFloat((m = M.paddingTop) !== null && m !== void 0 ? m : "0"), v = parseFloat((f = M.paddingBottom) !== null && f !== void 0 ? f : "0"), I = this._parentNode.getBoundingClientRect(), r = I.height - l - v, h = I.width - z - y, c = this._parentNode.offsetHeight - l - v, d = this._parentNode.offsetWidth - z - y;
|
|
800
|
+
(!s && (this.state.height !== c || this.state.scaledHeight !== r) || !n && (this.state.width !== d || this.state.scaledWidth !== h)) && (this.setState({
|
|
792
801
|
height: c,
|
|
793
|
-
width:
|
|
802
|
+
width: d,
|
|
794
803
|
scaledHeight: r,
|
|
795
804
|
scaledWidth: h
|
|
796
805
|
}), typeof i == "function" && i({
|
|
797
806
|
height: c,
|
|
798
807
|
scaledHeight: r,
|
|
799
808
|
scaledWidth: h,
|
|
800
|
-
width:
|
|
809
|
+
width: d
|
|
801
810
|
}));
|
|
802
811
|
}
|
|
803
812
|
}, this._setRef = (s) => {
|
|
@@ -810,7 +819,7 @@ class Vs extends et {
|
|
|
810
819
|
} = this.props;
|
|
811
820
|
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._parentNode != null && (typeof ResizeObserver < "u" ? (this._resizeObserver = new ResizeObserver(() => {
|
|
812
821
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
813
|
-
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize =
|
|
822
|
+
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Zs(e), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
|
|
814
823
|
}
|
|
815
824
|
componentWillUnmount() {
|
|
816
825
|
this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && (this._resizeObserver.observe(this._parentNode), this._resizeObserver.disconnect()));
|
|
@@ -821,7 +830,7 @@ class Vs extends et {
|
|
|
821
830
|
defaultHeight: s,
|
|
822
831
|
defaultWidth: n,
|
|
823
832
|
disableHeight: i = !1,
|
|
824
|
-
disableWidth:
|
|
833
|
+
disableWidth: u = !1,
|
|
825
834
|
nonce: p,
|
|
826
835
|
onResize: m,
|
|
827
836
|
style: f = {},
|
|
@@ -836,7 +845,7 @@ class Vs extends et {
|
|
|
836
845
|
overflow: "visible"
|
|
837
846
|
}, h = {};
|
|
838
847
|
let c = !1;
|
|
839
|
-
return i || (y === 0 && (c = !0), r.height = 0, h.height = y, h.scaledHeight = l),
|
|
848
|
+
return i || (y === 0 && (c = !0), r.height = 0, h.height = y, h.scaledHeight = l), u || (I === 0 && (c = !0), r.width = 0, h.width = I, h.scaledWidth = v), V(M, {
|
|
840
849
|
ref: this._setRef,
|
|
841
850
|
style: {
|
|
842
851
|
...r,
|
|
@@ -866,34 +875,34 @@ function ie(t, e) {
|
|
|
866
875
|
return n.__proto__ = i, n;
|
|
867
876
|
}, ie(t, e);
|
|
868
877
|
}
|
|
869
|
-
function
|
|
878
|
+
function Ks(t, e) {
|
|
870
879
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, ie(t, e);
|
|
871
880
|
}
|
|
872
881
|
var _e = Number.isNaN || function(e) {
|
|
873
882
|
return typeof e == "number" && e !== e;
|
|
874
883
|
};
|
|
875
|
-
function
|
|
884
|
+
function Xs(t, e) {
|
|
876
885
|
return !!(t === e || _e(t) && _e(e));
|
|
877
886
|
}
|
|
878
|
-
function
|
|
887
|
+
function en(t, e) {
|
|
879
888
|
if (t.length !== e.length)
|
|
880
889
|
return !1;
|
|
881
890
|
for (var s = 0; s < t.length; s++)
|
|
882
|
-
if (!
|
|
891
|
+
if (!Xs(t[s], e[s]))
|
|
883
892
|
return !1;
|
|
884
893
|
return !0;
|
|
885
894
|
}
|
|
886
895
|
function K(t, e) {
|
|
887
|
-
e === void 0 && (e =
|
|
888
|
-
var s, n = [], i,
|
|
896
|
+
e === void 0 && (e = en);
|
|
897
|
+
var s, n = [], i, u = !1;
|
|
889
898
|
function p() {
|
|
890
899
|
for (var m = [], f = 0; f < arguments.length; f++)
|
|
891
900
|
m[f] = arguments[f];
|
|
892
|
-
return
|
|
901
|
+
return u && s === this && e(m, n) || (i = t.apply(this, m), u = !0, s = this, n = m), i;
|
|
893
902
|
}
|
|
894
903
|
return p;
|
|
895
904
|
}
|
|
896
|
-
var
|
|
905
|
+
var tn = typeof performance == "object" && typeof performance.now == "function", Te = tn ? function() {
|
|
897
906
|
return performance.now();
|
|
898
907
|
} : function() {
|
|
899
908
|
return Date.now();
|
|
@@ -901,7 +910,7 @@ var Zs = typeof performance == "object" && typeof performance.now == "function",
|
|
|
901
910
|
function Ae(t) {
|
|
902
911
|
cancelAnimationFrame(t.id);
|
|
903
912
|
}
|
|
904
|
-
function
|
|
913
|
+
function sn(t, e) {
|
|
905
914
|
var s = Te();
|
|
906
915
|
function n() {
|
|
907
916
|
Te() - s >= e ? t.call(null) : i.id = requestAnimationFrame(n);
|
|
@@ -929,13 +938,13 @@ function De(t) {
|
|
|
929
938
|
}
|
|
930
939
|
return j;
|
|
931
940
|
}
|
|
932
|
-
var
|
|
941
|
+
var nn = 150, rn = function(e, s) {
|
|
933
942
|
return e;
|
|
934
943
|
};
|
|
935
|
-
function
|
|
936
|
-
var e, s = t.getItemOffset, n = t.getEstimatedTotalSize, i = t.getItemSize,
|
|
944
|
+
function an(t) {
|
|
945
|
+
var e, s = t.getItemOffset, n = t.getEstimatedTotalSize, i = t.getItemSize, u = t.getOffsetForIndexAndAlignment, p = t.getStartIndexForOffset, m = t.getStopIndexForStartIndex, f = t.initInstanceProps, M = t.shouldResetStyleCacheOnItemSizeChange, z = t.validateProps;
|
|
937
946
|
return e = /* @__PURE__ */ function(y) {
|
|
938
|
-
|
|
947
|
+
Ks(l, y);
|
|
939
948
|
function l(I) {
|
|
940
949
|
var r;
|
|
941
950
|
return r = y.call(this, I) || this, r._instanceProps = f(r.props, ze(r)), r._outerRef = void 0, r._resetIsScrollingTimeoutId = null, r.state = {
|
|
@@ -944,39 +953,39 @@ function en(t) {
|
|
|
944
953
|
scrollDirection: "forward",
|
|
945
954
|
scrollOffset: typeof r.props.initialScrollOffset == "number" ? r.props.initialScrollOffset : 0,
|
|
946
955
|
scrollUpdateWasRequested: !1
|
|
947
|
-
}, r._callOnItemsRendered = void 0, r._callOnItemsRendered = K(function(h, c,
|
|
956
|
+
}, r._callOnItemsRendered = void 0, r._callOnItemsRendered = K(function(h, c, d, g) {
|
|
948
957
|
return r.props.onItemsRendered({
|
|
949
958
|
overscanStartIndex: h,
|
|
950
959
|
overscanStopIndex: c,
|
|
951
|
-
visibleStartIndex:
|
|
960
|
+
visibleStartIndex: d,
|
|
952
961
|
visibleStopIndex: g
|
|
953
962
|
});
|
|
954
|
-
}), r._callOnScroll = void 0, r._callOnScroll = K(function(h, c,
|
|
963
|
+
}), r._callOnScroll = void 0, r._callOnScroll = K(function(h, c, d) {
|
|
955
964
|
return r.props.onScroll({
|
|
956
965
|
scrollDirection: h,
|
|
957
966
|
scrollOffset: c,
|
|
958
|
-
scrollUpdateWasRequested:
|
|
967
|
+
scrollUpdateWasRequested: d
|
|
959
968
|
});
|
|
960
969
|
}), r._getItemStyle = void 0, r._getItemStyle = function(h) {
|
|
961
|
-
var c = r.props,
|
|
970
|
+
var c = r.props, d = c.direction, g = c.itemSize, T = c.layout, _ = r._getItemStyleCache(M && g, M && T, M && d), A;
|
|
962
971
|
if (_.hasOwnProperty(h))
|
|
963
972
|
A = _[h];
|
|
964
973
|
else {
|
|
965
|
-
var S = s(r.props, h, r._instanceProps), O = i(r.props, h, r._instanceProps),
|
|
974
|
+
var S = s(r.props, h, r._instanceProps), O = i(r.props, h, r._instanceProps), E = d === "horizontal" || T === "horizontal", q = d === "rtl", Y = E ? S : 0;
|
|
966
975
|
_[h] = A = {
|
|
967
976
|
position: "absolute",
|
|
968
977
|
left: q ? void 0 : Y,
|
|
969
978
|
right: q ? Y : void 0,
|
|
970
|
-
top:
|
|
971
|
-
height:
|
|
972
|
-
width:
|
|
979
|
+
top: E ? 0 : S,
|
|
980
|
+
height: E ? "100%" : O,
|
|
981
|
+
width: E ? O : "100%"
|
|
973
982
|
};
|
|
974
983
|
}
|
|
975
984
|
return A;
|
|
976
|
-
}, r._getItemStyleCache = void 0, r._getItemStyleCache = K(function(h, c,
|
|
985
|
+
}, r._getItemStyleCache = void 0, r._getItemStyleCache = K(function(h, c, d) {
|
|
977
986
|
return {};
|
|
978
987
|
}), r._onScrollHorizontal = function(h) {
|
|
979
|
-
var c = h.currentTarget,
|
|
988
|
+
var c = h.currentTarget, d = c.clientWidth, g = c.scrollLeft, T = c.scrollWidth;
|
|
980
989
|
r.setState(function(_) {
|
|
981
990
|
if (_.scrollOffset === g)
|
|
982
991
|
return null;
|
|
@@ -987,10 +996,10 @@ function en(t) {
|
|
|
987
996
|
S = -g;
|
|
988
997
|
break;
|
|
989
998
|
case "positive-descending":
|
|
990
|
-
S = T -
|
|
999
|
+
S = T - d - g;
|
|
991
1000
|
break;
|
|
992
1001
|
}
|
|
993
|
-
return S = Math.max(0, Math.min(S, T -
|
|
1002
|
+
return S = Math.max(0, Math.min(S, T - d)), {
|
|
994
1003
|
isScrolling: !0,
|
|
995
1004
|
scrollDirection: _.scrollOffset < g ? "forward" : "backward",
|
|
996
1005
|
scrollOffset: S,
|
|
@@ -998,11 +1007,11 @@ function en(t) {
|
|
|
998
1007
|
};
|
|
999
1008
|
}, r._resetIsScrollingDebounced);
|
|
1000
1009
|
}, r._onScrollVertical = function(h) {
|
|
1001
|
-
var c = h.currentTarget,
|
|
1010
|
+
var c = h.currentTarget, d = c.clientHeight, g = c.scrollHeight, T = c.scrollTop;
|
|
1002
1011
|
r.setState(function(_) {
|
|
1003
1012
|
if (_.scrollOffset === T)
|
|
1004
1013
|
return null;
|
|
1005
|
-
var A = Math.max(0, Math.min(T, g -
|
|
1014
|
+
var A = Math.max(0, Math.min(T, g - d));
|
|
1006
1015
|
return {
|
|
1007
1016
|
isScrolling: !0,
|
|
1008
1017
|
scrollDirection: _.scrollOffset < A ? "forward" : "backward",
|
|
@@ -1014,7 +1023,7 @@ function en(t) {
|
|
|
1014
1023
|
var c = r.props.outerRef;
|
|
1015
1024
|
r._outerRef = h, typeof c == "function" ? c(h) : c != null && typeof c == "object" && c.hasOwnProperty("current") && (c.current = h);
|
|
1016
1025
|
}, r._resetIsScrollingDebounced = function() {
|
|
1017
|
-
r._resetIsScrollingTimeoutId !== null && Ae(r._resetIsScrollingTimeoutId), r._resetIsScrollingTimeoutId =
|
|
1026
|
+
r._resetIsScrollingTimeoutId !== null && Ae(r._resetIsScrollingTimeoutId), r._resetIsScrollingTimeoutId = sn(r._resetIsScrolling, nn);
|
|
1018
1027
|
}, r._resetIsScrolling = function() {
|
|
1019
1028
|
r._resetIsScrollingTimeoutId = null, r.setState({
|
|
1020
1029
|
isScrolling: !1
|
|
@@ -1024,7 +1033,7 @@ function en(t) {
|
|
|
1024
1033
|
}, r;
|
|
1025
1034
|
}
|
|
1026
1035
|
l.getDerivedStateFromProps = function(r, h) {
|
|
1027
|
-
return
|
|
1036
|
+
return on(r, h), z(r), null;
|
|
1028
1037
|
};
|
|
1029
1038
|
var v = l.prototype;
|
|
1030
1039
|
return v.scrollTo = function(r) {
|
|
@@ -1037,23 +1046,23 @@ function en(t) {
|
|
|
1037
1046
|
}, this._resetIsScrollingDebounced);
|
|
1038
1047
|
}, v.scrollToItem = function(r, h) {
|
|
1039
1048
|
h === void 0 && (h = "auto");
|
|
1040
|
-
var c = this.props,
|
|
1041
|
-
r = Math.max(0, Math.min(r,
|
|
1049
|
+
var c = this.props, d = c.itemCount, g = c.layout, T = this.state.scrollOffset;
|
|
1050
|
+
r = Math.max(0, Math.min(r, d - 1));
|
|
1042
1051
|
var _ = 0;
|
|
1043
1052
|
if (this._outerRef) {
|
|
1044
1053
|
var A = this._outerRef;
|
|
1045
1054
|
g === "vertical" ? _ = A.scrollWidth > A.clientWidth ? Se() : 0 : _ = A.scrollHeight > A.clientHeight ? Se() : 0;
|
|
1046
1055
|
}
|
|
1047
|
-
this.scrollTo(
|
|
1056
|
+
this.scrollTo(u(this.props, r, h, T, this._instanceProps, _));
|
|
1048
1057
|
}, v.componentDidMount = function() {
|
|
1049
|
-
var r = this.props, h = r.direction, c = r.initialScrollOffset,
|
|
1058
|
+
var r = this.props, h = r.direction, c = r.initialScrollOffset, d = r.layout;
|
|
1050
1059
|
if (typeof c == "number" && this._outerRef != null) {
|
|
1051
1060
|
var g = this._outerRef;
|
|
1052
|
-
h === "horizontal" ||
|
|
1061
|
+
h === "horizontal" || d === "horizontal" ? g.scrollLeft = c : g.scrollTop = c;
|
|
1053
1062
|
}
|
|
1054
1063
|
this._callPropsCallbacks();
|
|
1055
1064
|
}, v.componentDidUpdate = function() {
|
|
1056
|
-
var r = this.props, h = r.direction, c = r.layout,
|
|
1065
|
+
var r = this.props, h = r.direction, c = r.layout, d = this.state, g = d.scrollOffset, T = d.scrollUpdateWasRequested;
|
|
1057
1066
|
if (T && this._outerRef != null) {
|
|
1058
1067
|
var _ = this._outerRef;
|
|
1059
1068
|
if (h === "horizontal" || c === "horizontal")
|
|
@@ -1079,10 +1088,10 @@ function en(t) {
|
|
|
1079
1088
|
}, v.componentWillUnmount = function() {
|
|
1080
1089
|
this._resetIsScrollingTimeoutId !== null && Ae(this._resetIsScrollingTimeoutId);
|
|
1081
1090
|
}, v.render = function() {
|
|
1082
|
-
var r = this.props, h = r.children, c = r.className,
|
|
1091
|
+
var r = this.props, h = r.children, c = r.className, d = r.direction, g = r.height, T = r.innerRef, _ = r.innerElementType, A = r.innerTagName, S = r.itemCount, O = r.itemData, E = r.itemKey, q = E === void 0 ? rn : E, Y = r.layout, Ye = r.outerElementType, Pe = r.outerTagName, We = r.style, Fe = r.useIsScrolling, Ve = r.width, ae = this.state.isScrolling, G = d === "horizontal" || Y === "horizontal", He = G ? this._onScrollHorizontal : this._onScrollVertical, oe = this._getRangeToRender(), Be = oe[0], Ge = oe[1], le = [];
|
|
1083
1092
|
if (S > 0)
|
|
1084
1093
|
for (var $ = Be; $ <= Ge; $++)
|
|
1085
|
-
le.push(
|
|
1094
|
+
le.push(V(h, {
|
|
1086
1095
|
data: O,
|
|
1087
1096
|
key: q($, O),
|
|
1088
1097
|
index: $,
|
|
@@ -1090,7 +1099,7 @@ function en(t) {
|
|
|
1090
1099
|
style: this._getItemStyle($)
|
|
1091
1100
|
}));
|
|
1092
1101
|
var ce = n(this.props, this._instanceProps);
|
|
1093
|
-
return
|
|
1102
|
+
return V(Ye || Pe || "div", {
|
|
1094
1103
|
className: c,
|
|
1095
1104
|
onScroll: He,
|
|
1096
1105
|
ref: this._outerRefSetter,
|
|
@@ -1101,23 +1110,23 @@ function en(t) {
|
|
|
1101
1110
|
overflow: "auto",
|
|
1102
1111
|
WebkitOverflowScrolling: "touch",
|
|
1103
1112
|
willChange: "transform",
|
|
1104
|
-
direction:
|
|
1113
|
+
direction: d
|
|
1105
1114
|
}, We)
|
|
1106
|
-
},
|
|
1115
|
+
}, V(_ || A || "div", {
|
|
1107
1116
|
children: le,
|
|
1108
1117
|
ref: T,
|
|
1109
1118
|
style: {
|
|
1110
|
-
height:
|
|
1119
|
+
height: G ? "100%" : ce,
|
|
1111
1120
|
pointerEvents: ae ? "none" : void 0,
|
|
1112
|
-
width:
|
|
1121
|
+
width: G ? ce : "100%"
|
|
1113
1122
|
}
|
|
1114
1123
|
}));
|
|
1115
1124
|
}, v._callPropsCallbacks = function() {
|
|
1116
1125
|
if (typeof this.props.onItemsRendered == "function") {
|
|
1117
1126
|
var r = this.props.itemCount;
|
|
1118
1127
|
if (r > 0) {
|
|
1119
|
-
var h = this._getRangeToRender(), c = h[0],
|
|
1120
|
-
this._callOnItemsRendered(c,
|
|
1128
|
+
var h = this._getRangeToRender(), c = h[0], d = h[1], g = h[2], T = h[3];
|
|
1129
|
+
this._callOnItemsRendered(c, d, g, T);
|
|
1121
1130
|
}
|
|
1122
1131
|
}
|
|
1123
1132
|
if (typeof this.props.onScroll == "function") {
|
|
@@ -1125,13 +1134,13 @@ function en(t) {
|
|
|
1125
1134
|
this._callOnScroll(A, S, O);
|
|
1126
1135
|
}
|
|
1127
1136
|
}, v._getRangeToRender = function() {
|
|
1128
|
-
var r = this.props, h = r.itemCount, c = r.overscanCount,
|
|
1137
|
+
var r = this.props, h = r.itemCount, c = r.overscanCount, d = this.state, g = d.isScrolling, T = d.scrollDirection, _ = d.scrollOffset;
|
|
1129
1138
|
if (h === 0)
|
|
1130
1139
|
return [0, 0, 0, 0];
|
|
1131
|
-
var A = p(this.props, _, this._instanceProps), S = m(this.props, A, _, this._instanceProps), O = !g || T === "backward" ? Math.max(1, c) : 1,
|
|
1132
|
-
return [Math.max(0, A - O), Math.max(0, Math.min(h - 1, S +
|
|
1140
|
+
var A = p(this.props, _, this._instanceProps), S = m(this.props, A, _, this._instanceProps), O = !g || T === "backward" ? Math.max(1, c) : 1, E = !g || T === "forward" ? Math.max(1, c) : 1;
|
|
1141
|
+
return [Math.max(0, A - O), Math.max(0, Math.min(h - 1, S + E)), A, S];
|
|
1133
1142
|
}, l;
|
|
1134
|
-
}(
|
|
1143
|
+
}(Le), e.defaultProps = {
|
|
1135
1144
|
direction: "ltr",
|
|
1136
1145
|
itemData: void 0,
|
|
1137
1146
|
layout: "vertical",
|
|
@@ -1139,9 +1148,9 @@ function en(t) {
|
|
|
1139
1148
|
useIsScrolling: !1
|
|
1140
1149
|
}, e;
|
|
1141
1150
|
}
|
|
1142
|
-
var
|
|
1151
|
+
var on = function(e, s) {
|
|
1143
1152
|
e.children, e.direction, e.height, e.layout, e.innerTagName, e.outerTagName, e.width, s.instance;
|
|
1144
|
-
},
|
|
1153
|
+
}, ln = /* @__PURE__ */ an({
|
|
1145
1154
|
getItemOffset: function(e, s) {
|
|
1146
1155
|
var n = e.itemSize;
|
|
1147
1156
|
return s * n;
|
|
@@ -1154,7 +1163,7 @@ var tn = function(e, s) {
|
|
|
1154
1163
|
var s = e.itemCount, n = e.itemSize;
|
|
1155
1164
|
return n * s;
|
|
1156
1165
|
},
|
|
1157
|
-
getOffsetForIndexAndAlignment: function(e, s, n, i,
|
|
1166
|
+
getOffsetForIndexAndAlignment: function(e, s, n, i, u, p) {
|
|
1158
1167
|
var m = e.direction, f = e.height, M = e.itemCount, z = e.itemSize, y = e.layout, l = e.width, v = m === "horizontal" || y === "horizontal", I = v ? l : f, r = Math.max(0, M * z - I), h = Math.min(r, s * z), c = Math.max(0, s * z - I + z + p);
|
|
1159
1168
|
switch (n === "smart" && (i >= c - I && i <= h + I ? n = "auto" : n = "center"), n) {
|
|
1160
1169
|
case "start":
|
|
@@ -1162,8 +1171,8 @@ var tn = function(e, s) {
|
|
|
1162
1171
|
case "end":
|
|
1163
1172
|
return c;
|
|
1164
1173
|
case "center": {
|
|
1165
|
-
var
|
|
1166
|
-
return
|
|
1174
|
+
var d = Math.round(c + (h - c) / 2);
|
|
1175
|
+
return d < Math.ceil(I / 2) ? 0 : d > r + Math.floor(I / 2) ? r : d;
|
|
1167
1176
|
}
|
|
1168
1177
|
case "auto":
|
|
1169
1178
|
default:
|
|
@@ -1175,7 +1184,7 @@ var tn = function(e, s) {
|
|
|
1175
1184
|
return Math.max(0, Math.min(n - 1, Math.floor(s / i)));
|
|
1176
1185
|
},
|
|
1177
1186
|
getStopIndexForStartIndex: function(e, s, n) {
|
|
1178
|
-
var i = e.direction,
|
|
1187
|
+
var i = e.direction, u = e.height, p = e.itemCount, m = e.itemSize, f = e.layout, M = e.width, z = i === "horizontal" || f === "horizontal", y = s * m, l = z ? M : u, v = Math.ceil((l + n - y) / m);
|
|
1179
1188
|
return Math.max(0, Math.min(
|
|
1180
1189
|
p - 1,
|
|
1181
1190
|
s + v - 1
|
|
@@ -1189,12 +1198,12 @@ var tn = function(e, s) {
|
|
|
1189
1198
|
e.itemSize;
|
|
1190
1199
|
}
|
|
1191
1200
|
});
|
|
1192
|
-
function
|
|
1201
|
+
function cn(t) {
|
|
1193
1202
|
var e = t.lastRenderedStartIndex, s = t.lastRenderedStopIndex, n = t.startIndex, i = t.stopIndex;
|
|
1194
1203
|
return !(n > s || i < e);
|
|
1195
1204
|
}
|
|
1196
|
-
function
|
|
1197
|
-
for (var e = t.isItemLoaded, s = t.itemCount, n = t.minimumBatchSize, i = t.startIndex,
|
|
1205
|
+
function dn(t) {
|
|
1206
|
+
for (var e = t.isItemLoaded, s = t.itemCount, n = t.minimumBatchSize, i = t.startIndex, u = t.stopIndex, p = [], m = null, f = null, M = i; M <= u; M++) {
|
|
1198
1207
|
var z = e(M);
|
|
1199
1208
|
z ? f !== null && (p.push(m, f), m = f = null) : (f = M, m === null && (m = M));
|
|
1200
1209
|
}
|
|
@@ -1213,10 +1222,10 @@ function rn(t) {
|
|
|
1213
1222
|
}
|
|
1214
1223
|
return p;
|
|
1215
1224
|
}
|
|
1216
|
-
var
|
|
1225
|
+
var un = function(t, e) {
|
|
1217
1226
|
if (!(t instanceof e))
|
|
1218
1227
|
throw new TypeError("Cannot call a class as a function");
|
|
1219
|
-
},
|
|
1228
|
+
}, pn = function() {
|
|
1220
1229
|
function t(e, s) {
|
|
1221
1230
|
for (var n = 0; n < s.length; n++) {
|
|
1222
1231
|
var i = s[n];
|
|
@@ -1226,7 +1235,7 @@ var an = function(t, e) {
|
|
|
1226
1235
|
return function(e, s, n) {
|
|
1227
1236
|
return s && t(e.prototype, s), n && t(e, n), e;
|
|
1228
1237
|
};
|
|
1229
|
-
}(),
|
|
1238
|
+
}(), hn = function(t, e) {
|
|
1230
1239
|
if (typeof e != "function" && e !== null)
|
|
1231
1240
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
1232
1241
|
t.prototype = Object.create(e && e.prototype, {
|
|
@@ -1241,21 +1250,21 @@ var an = function(t, e) {
|
|
|
1241
1250
|
if (!t)
|
|
1242
1251
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1243
1252
|
return e && (typeof e == "object" || typeof e == "function") ? e : t;
|
|
1244
|
-
},
|
|
1245
|
-
|
|
1253
|
+
}, mn = function(t) {
|
|
1254
|
+
hn(e, t);
|
|
1246
1255
|
function e() {
|
|
1247
|
-
var s, n, i,
|
|
1248
|
-
|
|
1256
|
+
var s, n, i, u;
|
|
1257
|
+
un(this, e);
|
|
1249
1258
|
for (var p = arguments.length, m = Array(p), f = 0; f < p; f++)
|
|
1250
1259
|
m[f] = arguments[f];
|
|
1251
|
-
return
|
|
1260
|
+
return u = (n = (i = xe(this, (s = e.__proto__ || Object.getPrototypeOf(e)).call.apply(s, [this].concat(m))), i), i._lastRenderedStartIndex = -1, i._lastRenderedStopIndex = -1, i._memoizedUnloadedRanges = [], i._onItemsRendered = function(M) {
|
|
1252
1261
|
var z = M.visibleStartIndex, y = M.visibleStopIndex;
|
|
1253
1262
|
i._lastRenderedStartIndex = z, i._lastRenderedStopIndex = y, i._ensureRowsLoaded(z, y);
|
|
1254
1263
|
}, i._setRef = function(M) {
|
|
1255
1264
|
i._listRef = M;
|
|
1256
|
-
}, n), xe(i,
|
|
1265
|
+
}, n), xe(i, u);
|
|
1257
1266
|
}
|
|
1258
|
-
return
|
|
1267
|
+
return pn(e, [{
|
|
1259
1268
|
key: "resetloadMoreItemsCache",
|
|
1260
1269
|
value: function() {
|
|
1261
1270
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
@@ -1277,7 +1286,7 @@ var an = function(t, e) {
|
|
|
1277
1286
|
}, {
|
|
1278
1287
|
key: "_ensureRowsLoaded",
|
|
1279
1288
|
value: function(n, i) {
|
|
1280
|
-
var
|
|
1289
|
+
var u = this.props, p = u.isItemLoaded, m = u.itemCount, f = u.minimumBatchSize, M = f === void 0 ? 10 : f, z = u.threshold, y = z === void 0 ? 15 : z, l = dn({
|
|
1281
1290
|
isItemLoaded: p,
|
|
1282
1291
|
itemCount: m,
|
|
1283
1292
|
minimumBatchSize: M,
|
|
@@ -1291,10 +1300,10 @@ var an = function(t, e) {
|
|
|
1291
1300
|
}, {
|
|
1292
1301
|
key: "_loadUnloadedRanges",
|
|
1293
1302
|
value: function(n) {
|
|
1294
|
-
for (var i = this,
|
|
1295
|
-
var z = n[M], y = n[M + 1], l =
|
|
1303
|
+
for (var i = this, u = this.props.loadMoreItems || this.props.loadMoreRows, p = function(M) {
|
|
1304
|
+
var z = n[M], y = n[M + 1], l = u(z, y);
|
|
1296
1305
|
l != null && l.then(function() {
|
|
1297
|
-
if (
|
|
1306
|
+
if (cn({
|
|
1298
1307
|
lastRenderedStartIndex: i._lastRenderedStartIndex,
|
|
1299
1308
|
lastRenderedStopIndex: i._lastRenderedStopIndex,
|
|
1300
1309
|
startIndex: z,
|
|
@@ -1309,74 +1318,74 @@ var an = function(t, e) {
|
|
|
1309
1318
|
p(m);
|
|
1310
1319
|
}
|
|
1311
1320
|
}]), e;
|
|
1312
|
-
}(
|
|
1313
|
-
const
|
|
1321
|
+
}(Le);
|
|
1322
|
+
const fn = () => w, gn = /* @__PURE__ */ o("div")({
|
|
1314
1323
|
name: "a",
|
|
1315
1324
|
class: "a1w9zony",
|
|
1316
1325
|
propsAsIs: !1
|
|
1317
|
-
}),
|
|
1326
|
+
}), In = /* @__PURE__ */ o("div")({
|
|
1318
1327
|
name: "l",
|
|
1319
1328
|
class: "l16qcfv8",
|
|
1320
1329
|
propsAsIs: !1
|
|
1321
|
-
}),
|
|
1330
|
+
}), vn = /* @__PURE__ */ o("img")({
|
|
1322
1331
|
name: "p",
|
|
1323
1332
|
class: "p1gmcc5f",
|
|
1324
1333
|
propsAsIs: !1
|
|
1325
|
-
}),
|
|
1334
|
+
}), Mn = /* @__PURE__ */ o("div")({
|
|
1326
1335
|
name: "s",
|
|
1327
1336
|
class: "s1doddh0",
|
|
1328
1337
|
propsAsIs: !1
|
|
1329
|
-
}),
|
|
1338
|
+
}), yn = /* @__PURE__ */ o("div")({
|
|
1330
1339
|
name: "c",
|
|
1331
1340
|
class: "c1js9xhe",
|
|
1332
1341
|
propsAsIs: !1
|
|
1333
|
-
}),
|
|
1342
|
+
}), Nn = /* @__PURE__ */ o("div")({
|
|
1334
1343
|
name: "d",
|
|
1335
1344
|
class: "d1tmnqsh",
|
|
1336
1345
|
propsAsIs: !1
|
|
1337
|
-
}),
|
|
1346
|
+
}), zn = /* @__PURE__ */ o("span")({
|
|
1338
1347
|
name: "g",
|
|
1339
1348
|
class: "gi9h87j",
|
|
1340
1349
|
propsAsIs: !1
|
|
1341
|
-
}),
|
|
1350
|
+
}), _n = /* @__PURE__ */ o(fn())({
|
|
1342
1351
|
name: "x",
|
|
1343
1352
|
class: "x13mk3z6",
|
|
1344
1353
|
propsAsIs: !0
|
|
1345
|
-
}),
|
|
1354
|
+
}), Tn = ({
|
|
1346
1355
|
rank: t,
|
|
1347
1356
|
avatar: e,
|
|
1348
1357
|
name: s,
|
|
1349
1358
|
points: n,
|
|
1350
1359
|
isCurrentUser: i,
|
|
1351
|
-
openItemDetail:
|
|
1360
|
+
openItemDetail: u,
|
|
1352
1361
|
style: p
|
|
1353
|
-
}) => /* @__PURE__ */ N(
|
|
1354
|
-
/* @__PURE__ */ a(
|
|
1355
|
-
/* @__PURE__ */ N(
|
|
1356
|
-
e ? /* @__PURE__ */ a(
|
|
1357
|
-
/* @__PURE__ */ N(
|
|
1358
|
-
/* @__PURE__ */ a(
|
|
1359
|
-
i && /* @__PURE__ */ a(
|
|
1362
|
+
}) => /* @__PURE__ */ N(gn, { onClick: u, style: p, children: [
|
|
1363
|
+
/* @__PURE__ */ a(In, { children: t || 0 }),
|
|
1364
|
+
/* @__PURE__ */ N(yn, { children: [
|
|
1365
|
+
e ? /* @__PURE__ */ a(vn, { alt: "leaderboard-item-avatar", src: e }) : /* @__PURE__ */ a(Mn, { children: Ee(s || "") }),
|
|
1366
|
+
/* @__PURE__ */ N(Nn, { children: [
|
|
1367
|
+
/* @__PURE__ */ a(zn, { children: s || "" }),
|
|
1368
|
+
i && /* @__PURE__ */ a(_n, { name: "icon-star" })
|
|
1360
1369
|
] })
|
|
1361
1370
|
] }),
|
|
1362
1371
|
/* @__PURE__ */ a("div", { children: ke(n) })
|
|
1363
|
-
] }),
|
|
1364
|
-
|
|
1372
|
+
] }), An = ({ items: t, openItemDetail: e, fetchMore: s }) => /* @__PURE__ */ a(Js, { children: ({ width: n, height: i }) => /* @__PURE__ */ a(
|
|
1373
|
+
mn,
|
|
1365
1374
|
{
|
|
1366
|
-
isItemLoaded: (
|
|
1375
|
+
isItemLoaded: (u) => u < t.length,
|
|
1367
1376
|
itemCount: t.length + 1,
|
|
1368
1377
|
loadMoreItems: s,
|
|
1369
|
-
children: ({ onItemsRendered:
|
|
1370
|
-
|
|
1378
|
+
children: ({ onItemsRendered: u, ref: p }) => /* @__PURE__ */ a(
|
|
1379
|
+
ln,
|
|
1371
1380
|
{
|
|
1372
1381
|
itemSize: 56,
|
|
1373
|
-
onItemsRendered:
|
|
1382
|
+
onItemsRendered: u,
|
|
1374
1383
|
ref: p,
|
|
1375
1384
|
itemCount: t.length,
|
|
1376
1385
|
width: n,
|
|
1377
1386
|
height: i,
|
|
1378
1387
|
children: ({ index: m, style: f }) => /* @__PURE__ */ a(
|
|
1379
|
-
|
|
1388
|
+
Tn,
|
|
1380
1389
|
{
|
|
1381
1390
|
style: { ...f, maxHeight: 48 },
|
|
1382
1391
|
...t[m],
|
|
@@ -1387,203 +1396,170 @@ const dn = () => w, un = /* @__PURE__ */ o("div")({
|
|
|
1387
1396
|
}
|
|
1388
1397
|
)
|
|
1389
1398
|
}
|
|
1390
|
-
) }),
|
|
1391
|
-
const { data: s } =
|
|
1392
|
-
return /* @__PURE__ */ a(
|
|
1399
|
+
) }), Sn = ({ leaderboardList: t, openUser: e }) => {
|
|
1400
|
+
const { data: s } = b(t.$store);
|
|
1401
|
+
return /* @__PURE__ */ a(An, { fetchMore: t.fetchMore, items: s, openItemDetail: e });
|
|
1393
1402
|
};
|
|
1394
|
-
const
|
|
1403
|
+
const Dn = /* @__PURE__ */ o("button")({
|
|
1395
1404
|
name: "a",
|
|
1396
1405
|
class: "akly9h2",
|
|
1397
1406
|
propsAsIs: !1
|
|
1398
|
-
}),
|
|
1407
|
+
}), xn = /* @__PURE__ */ o("span")({
|
|
1399
1408
|
name: "e",
|
|
1400
1409
|
class: "eptoiz9",
|
|
1401
1410
|
propsAsIs: !1
|
|
1402
|
-
}),
|
|
1403
|
-
const
|
|
1411
|
+
}), wn = ({ disabled: t, variant: e = "primary", onClick: s, children: n, ...i }) => /* @__PURE__ */ a(Dn, { onClick: s, disabled: t, "data-variant": e, ...i, children: /* @__PURE__ */ a(xn, { children: n }) });
|
|
1412
|
+
const On = () => w, En = () => w, kn = /* @__PURE__ */ o("div")({
|
|
1404
1413
|
name: "s",
|
|
1405
1414
|
class: "s1lblda3",
|
|
1406
1415
|
propsAsIs: !1
|
|
1407
|
-
}),
|
|
1416
|
+
}), bn = /* @__PURE__ */ o("div")({
|
|
1408
1417
|
name: "a",
|
|
1409
1418
|
class: "ascvb2g",
|
|
1410
1419
|
propsAsIs: !1
|
|
1411
|
-
}),
|
|
1420
|
+
}), jn = /* @__PURE__ */ o("div")({
|
|
1412
1421
|
name: "p",
|
|
1413
1422
|
class: "p17rl8zy",
|
|
1414
1423
|
propsAsIs: !1
|
|
1415
|
-
}),
|
|
1424
|
+
}), Ln = /* @__PURE__ */ o("div")({
|
|
1416
1425
|
name: "l",
|
|
1417
1426
|
class: "l1vvttbn",
|
|
1418
1427
|
propsAsIs: !1
|
|
1419
|
-
}), ee = /* @__PURE__ */ o(
|
|
1428
|
+
}), ee = /* @__PURE__ */ o(On())({
|
|
1420
1429
|
name: "c",
|
|
1421
1430
|
class: "c6fk2ph",
|
|
1422
1431
|
propsAsIs: !0
|
|
1423
|
-
}),
|
|
1432
|
+
}), Cn = /* @__PURE__ */ o(En())({
|
|
1424
1433
|
name: "d",
|
|
1425
1434
|
class: "d1rdm136",
|
|
1426
1435
|
propsAsIs: !0
|
|
1427
|
-
}),
|
|
1436
|
+
}), Rn = /* @__PURE__ */ o("div")({
|
|
1428
1437
|
name: "f",
|
|
1429
1438
|
class: "fwqnnel",
|
|
1430
1439
|
propsAsIs: !1
|
|
1431
|
-
}),
|
|
1440
|
+
}), $n = /* @__PURE__ */ o("div")({
|
|
1432
1441
|
name: "u",
|
|
1433
1442
|
class: "ucyxnlg",
|
|
1434
1443
|
propsAsIs: !1
|
|
1435
|
-
}),
|
|
1444
|
+
}), Un = {
|
|
1436
1445
|
[P.LOST]: /* @__PURE__ */ a(ee, { name: "icon-cross" }),
|
|
1437
1446
|
[P.WON]: /* @__PURE__ */ a(ee, { name: "icon-check" }),
|
|
1438
1447
|
[P.UNSET]: void 0,
|
|
1439
1448
|
[P.DNP]: /* @__PURE__ */ a(ee, { name: "icon-arrow" })
|
|
1440
|
-
},
|
|
1449
|
+
}, Qn = ({
|
|
1441
1450
|
questionId: t,
|
|
1442
1451
|
questionType: e,
|
|
1443
1452
|
questionStatus: s,
|
|
1444
1453
|
subject: n,
|
|
1445
1454
|
openForVoting: i,
|
|
1446
|
-
openQuestion:
|
|
1455
|
+
openQuestion: u,
|
|
1447
1456
|
status: p
|
|
1448
1457
|
}) => {
|
|
1449
|
-
const m = Oe[e], f =
|
|
1450
|
-
return m ? /* @__PURE__ */ N(
|
|
1451
|
-
/* @__PURE__ */ N(
|
|
1452
|
-
/* @__PURE__ */ N(
|
|
1453
|
-
/* @__PURE__ */ a(
|
|
1454
|
-
/* @__PURE__ */ N(
|
|
1458
|
+
const m = Oe[e], f = Un[p];
|
|
1459
|
+
return m ? /* @__PURE__ */ N(kn, { onClick: () => u == null ? void 0 : u(t), children: [
|
|
1460
|
+
/* @__PURE__ */ N($n, { children: [
|
|
1461
|
+
/* @__PURE__ */ N(bn, { children: [
|
|
1462
|
+
/* @__PURE__ */ a(Cn, { name: m.iconName }),
|
|
1463
|
+
/* @__PURE__ */ N(Rn, { children: [
|
|
1455
1464
|
m.label,
|
|
1456
1465
|
e === x.TRIVIA && s === re.RESOLVED && " • Expired"
|
|
1457
1466
|
] })
|
|
1458
1467
|
] }),
|
|
1459
|
-
/* @__PURE__ */ a(
|
|
1468
|
+
/* @__PURE__ */ a(jn, { children: n || "" })
|
|
1460
1469
|
] }),
|
|
1461
|
-
/* @__PURE__ */ a(
|
|
1470
|
+
/* @__PURE__ */ a(Ln, { children: f || (i ? /* @__PURE__ */ a(wn, { children: "Play" }) : null) })
|
|
1462
1471
|
] }) : null;
|
|
1463
1472
|
};
|
|
1464
|
-
const
|
|
1465
|
-
name: "e",
|
|
1466
|
-
class: "e1jcgove",
|
|
1467
|
-
propsAsIs: !1
|
|
1468
|
-
}), Rn = /* @__PURE__ */ o("div")({
|
|
1469
|
-
name: "t",
|
|
1470
|
-
class: "t1bwp7hh",
|
|
1471
|
-
propsAsIs: !1
|
|
1472
|
-
}), $n = /* @__PURE__ */ o("div")({
|
|
1473
|
-
name: "i",
|
|
1474
|
-
class: "i1xav4cl",
|
|
1475
|
-
propsAsIs: !1
|
|
1476
|
-
}), Un = /* @__PURE__ */ o("h3")({
|
|
1473
|
+
const qn = /* @__PURE__ */ o("div")({
|
|
1477
1474
|
name: "n",
|
|
1478
|
-
class: "
|
|
1479
|
-
propsAsIs: !1
|
|
1480
|
-
}), Qn = /* @__PURE__ */ o("div")({
|
|
1481
|
-
name: "a",
|
|
1482
|
-
class: "ap5d9g7",
|
|
1475
|
+
class: "n1jcgove",
|
|
1483
1476
|
propsAsIs: !1
|
|
1484
|
-
}),
|
|
1477
|
+
}), Yn = /* @__PURE__ */ o("button")({
|
|
1485
1478
|
name: "l",
|
|
1486
|
-
class: "
|
|
1487
|
-
propsAsIs: !1
|
|
1488
|
-
}),
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
day: "numeric"
|
|
1498
|
-
}), p = i.toLocaleTimeString("en-US", { hour: "2-digit", minute: "2-digit" });
|
|
1499
|
-
return /* @__PURE__ */ N(Cn, { children: [
|
|
1500
|
-
/* @__PURE__ */ N(Rn, { children: [
|
|
1501
|
-
d,
|
|
1502
|
-
"・",
|
|
1503
|
-
p
|
|
1504
|
-
] }),
|
|
1505
|
-
(e == null ? void 0 : e.video) && /* @__PURE__ */ a(je, { source: e.video.url, poster: e.video.thumbnailUrl }),
|
|
1506
|
-
/* @__PURE__ */ N($n, { children: [
|
|
1507
|
-
/* @__PURE__ */ a(Un, { children: (e == null ? void 0 : e.heading) || t }),
|
|
1508
|
-
/* @__PURE__ */ a(Qn, { children: e == null ? void 0 : e.body }),
|
|
1509
|
-
s && /* @__PURE__ */ a(qn, { onClick: () => s(n), children: "View Insight" })
|
|
1510
|
-
] })
|
|
1511
|
-
] });
|
|
1512
|
-
};
|
|
1513
|
-
const Pn = /* @__PURE__ */ o("div")({
|
|
1479
|
+
class: "l1bwp7hh",
|
|
1480
|
+
propsAsIs: !1
|
|
1481
|
+
}), Pn = ({
|
|
1482
|
+
openInsight: t,
|
|
1483
|
+
questionId: e,
|
|
1484
|
+
...s
|
|
1485
|
+
}) => /* @__PURE__ */ N(qn, { children: [
|
|
1486
|
+
/* @__PURE__ */ a(qe, { questionId: e, ...s }),
|
|
1487
|
+
t && /* @__PURE__ */ a(Yn, { onClick: () => t(e), children: "View Insight" })
|
|
1488
|
+
] });
|
|
1489
|
+
const Wn = /* @__PURE__ */ o("div")({
|
|
1514
1490
|
name: "t",
|
|
1515
1491
|
class: "t19vr3p1",
|
|
1516
1492
|
propsAsIs: !1
|
|
1517
|
-
}),
|
|
1493
|
+
}), Fn = ({ questions: t, openQuestion: e }) => /* @__PURE__ */ a(Wn, { children: t == null ? void 0 : t.map((s) => {
|
|
1518
1494
|
var n, i;
|
|
1519
1495
|
if (s.type === "question" && ((n = s.attributes) == null ? void 0 : n.attributes.case) === "question") {
|
|
1520
|
-
const
|
|
1521
|
-
return /* @__PURE__ */ a(
|
|
1496
|
+
const u = s.attributes.attributes.value;
|
|
1497
|
+
return /* @__PURE__ */ a(Qn, { openQuestion: e, ...u }, u.questionId);
|
|
1522
1498
|
}
|
|
1523
1499
|
if (s.type === "insight" && ((i = s.attributes) == null ? void 0 : i.attributes.case) === "insight") {
|
|
1524
|
-
const
|
|
1525
|
-
return /* @__PURE__ */ a(
|
|
1500
|
+
const u = s.attributes.attributes.value;
|
|
1501
|
+
return /* @__PURE__ */ a(Pn, { openInsight: e, ...u }, u.questionId);
|
|
1526
1502
|
}
|
|
1527
1503
|
return null;
|
|
1528
|
-
}) }),
|
|
1529
|
-
const s =
|
|
1530
|
-
return s != null && s.data ? /* @__PURE__ */ a(
|
|
1531
|
-
},
|
|
1504
|
+
}) }), Vn = ({ store: t, openQuestion: e }) => {
|
|
1505
|
+
const s = b(t);
|
|
1506
|
+
return s != null && s.data ? /* @__PURE__ */ a(Fn, { openQuestion: e, questions: s.data }) : /* @__PURE__ */ a("div", { children: "wait questions..." });
|
|
1507
|
+
}, Hn = ({ userSummary: t }) => {
|
|
1532
1508
|
var e;
|
|
1533
|
-
const s =
|
|
1534
|
-
return (e = s.data) != null && e.summary ? /* @__PURE__ */ a(
|
|
1535
|
-
},
|
|
1509
|
+
const s = b(t.getStore());
|
|
1510
|
+
return (e = s.data) != null && e.summary ? /* @__PURE__ */ a(Re, { ...s.data.summary, ...s.data.percentage }) : /* @__PURE__ */ a("div", { children: "wait user..." });
|
|
1511
|
+
}, Bn = ({ gamification: t }) => {
|
|
1536
1512
|
const [e, s] = R(Q.HOME);
|
|
1537
1513
|
return /* @__PURE__ */ N("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
1538
|
-
/* @__PURE__ */ N(
|
|
1539
|
-
/* @__PURE__ */ a(
|
|
1540
|
-
e === Q.HOME && /* @__PURE__ */ a(
|
|
1514
|
+
/* @__PURE__ */ N(je, { children: [
|
|
1515
|
+
/* @__PURE__ */ a(Gs, { activePage: e, toggleActivePage: s }),
|
|
1516
|
+
e === Q.HOME && /* @__PURE__ */ a(Hn, { userSummary: t.userSummary })
|
|
1541
1517
|
] }),
|
|
1542
|
-
e === Q.HOME && /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(
|
|
1543
|
-
e === Q.LEADERBOARD && /* @__PURE__ */ a(de, { style: { flex: "1 1 auto", paddingTop: 0, paddingBottom: 0 }, children: /* @__PURE__ */ a(
|
|
1518
|
+
e === Q.HOME && /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Vn, { openQuestion: t.openQuestion, store: t.feedList.getStore() }) }),
|
|
1519
|
+
e === Q.LEADERBOARD && /* @__PURE__ */ a(de, { style: { flex: "1 1 auto", paddingTop: 0, paddingBottom: 0 }, children: /* @__PURE__ */ a(Sn, { openUser: t.openUser, leaderboardList: t.leaderboardList }) })
|
|
1544
1520
|
] });
|
|
1545
1521
|
};
|
|
1546
|
-
const
|
|
1547
|
-
name: "
|
|
1548
|
-
class: "
|
|
1522
|
+
const Gn = () => tt, we = /* @__PURE__ */ o(Gn())({
|
|
1523
|
+
name: "e",
|
|
1524
|
+
class: "e1ph66cs",
|
|
1549
1525
|
propsAsIs: !0
|
|
1550
|
-
}),
|
|
1526
|
+
}), Zn = /* @__PURE__ */ o("div")({
|
|
1551
1527
|
name: "x",
|
|
1552
1528
|
class: "xorme7i",
|
|
1553
1529
|
propsAsIs: !1
|
|
1554
|
-
}),
|
|
1530
|
+
}), ei = ({
|
|
1555
1531
|
gamification: t,
|
|
1556
1532
|
className: e
|
|
1557
1533
|
}) => {
|
|
1558
|
-
const s =
|
|
1559
|
-
return /* @__PURE__ */ N(
|
|
1534
|
+
const s = b(t.openedQuestion.$store), n = b(t.openedUser);
|
|
1535
|
+
return /* @__PURE__ */ N(H, {
|
|
1560
1536
|
children: [s && /* @__PURE__ */ a(we, {
|
|
1561
1537
|
className: e,
|
|
1562
|
-
children: /* @__PURE__ */ a(
|
|
1538
|
+
children: /* @__PURE__ */ a(Ws, {
|
|
1563
1539
|
gamification: t
|
|
1564
1540
|
})
|
|
1565
1541
|
}), n && /* @__PURE__ */ a(we, {
|
|
1566
1542
|
className: e,
|
|
1567
|
-
children: /* @__PURE__ */ N(
|
|
1568
|
-
children: [/* @__PURE__ */ a(
|
|
1543
|
+
children: /* @__PURE__ */ N(Zn, {
|
|
1544
|
+
children: [/* @__PURE__ */ a(Ce, {
|
|
1569
1545
|
label: "Friend's Rank",
|
|
1570
1546
|
close: t.closeUser
|
|
1571
|
-
}), /* @__PURE__ */ a(
|
|
1572
|
-
children: /* @__PURE__ */ a(
|
|
1547
|
+
}), /* @__PURE__ */ a(je, {
|
|
1548
|
+
children: /* @__PURE__ */ a(Re, {
|
|
1573
1549
|
...n
|
|
1574
1550
|
})
|
|
1575
1551
|
})]
|
|
1576
1552
|
})
|
|
1577
|
-
}), /* @__PURE__ */ a(
|
|
1553
|
+
}), /* @__PURE__ */ a(be, {
|
|
1578
1554
|
className: e,
|
|
1579
1555
|
"data-nav": "true",
|
|
1580
|
-
children: /* @__PURE__ */ a(
|
|
1556
|
+
children: /* @__PURE__ */ a(Bn, {
|
|
1581
1557
|
gamification: t
|
|
1582
1558
|
})
|
|
1583
1559
|
})]
|
|
1584
1560
|
});
|
|
1585
1561
|
};
|
|
1586
1562
|
export {
|
|
1587
|
-
|
|
1588
|
-
|
|
1563
|
+
ei as GamificationOverlay,
|
|
1564
|
+
ei as default
|
|
1589
1565
|
};
|