@streamlayer/react 1.23.2 → 1.24.0
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/app/masters.d.ts +0 -1
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +203 -28
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/cjs/index-ByUNFvMk.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -3
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -3
- package/lib/cjs/index14.js +4 -1
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +5 -3
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +5 -3
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +7 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +8 -1
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +14 -9
- package/lib/cjs/sl-types.js +1 -1
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/theme.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +17 -3
- package/lib/cjs/utils.js +47 -1
- package/lib/classic/app/masters.d.ts +0 -1
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +203 -28
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +5 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +4 -3
- package/lib/classic/cjs/index2.js +5 -3
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -1
- package/lib/classic/cjs/index7.js +7 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -3
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +14 -9
- package/lib/classic/cjs/sl-types.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -3
- package/lib/classic/cjs/utils.js +47 -1
- package/lib/classic/es/Question.js +258 -275
- package/lib/classic/es/advertisement.js +22128 -38694
- package/lib/classic/es/analytics.js +55 -57
- package/lib/classic/es/auth.js +8 -14
- package/lib/classic/es/bet-pack.js +2413 -2455
- package/lib/classic/es/feature.js +46 -95
- package/lib/classic/es/gamification-feature.js +2 -2
- package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
- package/lib/classic/es/index-ByUNFvMk.js +3775 -0
- package/lib/classic/es/index.js +13 -16
- package/lib/classic/es/index10.js +2587 -83
- package/lib/classic/es/index11.js +305 -3087
- package/lib/classic/es/index12.js +121 -124
- package/lib/classic/es/index13.js +559 -589
- package/lib/classic/es/index2.js +1755 -2114
- package/lib/classic/es/index3.js +13 -13
- package/lib/classic/es/index4.js +4 -283
- package/lib/classic/es/index5.js +5 -5
- package/lib/classic/es/index6.js +285 -10
- package/lib/classic/es/index7.js +179 -6
- package/lib/classic/es/index8.js +5 -10
- package/lib/classic/es/index9.js +8 -318
- package/lib/classic/es/insight.js +54 -61
- package/lib/classic/es/notification.js +5 -5
- package/lib/classic/es/notification2.js +730 -787
- package/lib/classic/es/pause-ad.js +168 -191
- package/lib/classic/es/points.js +47 -55
- package/lib/classic/es/polymarket.js +4058 -4289
- package/lib/classic/es/sl-types.js +128 -298
- package/lib/classic/es/useStreamLayerApp.js +2 -2
- package/lib/classic/es/useStreamLayerApp2.js +9090 -11121
- package/lib/classic/es/utils.js +28 -28
- package/lib/classic/index.d.ts +0 -1
- package/lib/classic/source.css +110 -0
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +69 -3
- package/lib/dist/es/gamification-feature.js +2 -2
- package/lib/dist/es/index-ByUNFvMk.js +3775 -0
- package/lib/dist/es/index.js +7 -10
- package/lib/dist/es/masters.js +16944 -19645
- package/lib/dist/index.d.ts +7 -17
- package/lib/dist/source.css +64 -0
- package/lib/es/Question.js +101 -105
- package/lib/es/advertisement.js +22128 -38694
- package/lib/es/analytics.js +55 -57
- package/lib/es/auth.js +8 -14
- package/lib/es/bet-pack.js +18 -29
- package/lib/es/feature.js +46 -95
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/gamification-feature2.js +2 -2
- package/lib/es/hooks-n9ax4LRT.js +97 -0
- package/lib/es/index-ByUNFvMk.js +3775 -0
- package/lib/es/index.js +13 -17
- package/lib/es/index10.js +8 -274
- package/lib/es/index11.js +172 -837
- package/lib/es/index12.js +2587 -183
- package/lib/es/index13.js +258 -314
- package/lib/es/index14.js +813 -81
- package/lib/es/index15.js +305 -3087
- package/lib/es/index16.js +803 -1005
- package/lib/es/index2.js +980 -1133
- package/lib/es/index3.js +4 -3
- package/lib/es/index4.js +2401 -2431
- package/lib/es/index5.js +13 -13
- package/lib/es/index6.js +5 -285
- package/lib/es/index7.js +7 -10
- package/lib/es/index8.js +283 -5
- package/lib/es/index9.js +180 -10
- package/lib/es/insight.js +54 -61
- package/lib/es/masters.js +5 -7
- package/lib/es/masters2.js +538 -708
- package/lib/es/notification.js +663 -719
- package/lib/es/pause-ad.js +168 -191
- package/lib/es/points.js +48 -56
- package/lib/es/polymarket.js +4058 -4289
- package/lib/es/sl-types.js +128 -317
- package/lib/es/storage.js +74 -75
- package/lib/es/theme.js +3 -190
- package/lib/es/useStreamLayerApp.js +2 -2
- package/lib/es/useStreamLayerApp2.js +9090 -11121
- package/lib/es/utils.js +28 -28
- package/lib/index.d.ts +0 -1
- package/lib/source.css +120 -0
- package/lib/style.css +1 -1
- package/package.json +21 -24
- package/lib/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/cjs/index-eShKGO10.js +0 -1
- package/lib/cjs/style.css +0 -1
- package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/classic/cjs/index-eShKGO10.js +0 -1
- package/lib/classic/cjs/style.css +0 -1
- package/lib/classic/es/hooks-WfHlJH12.js +0 -98
- package/lib/classic/es/index-eShKGO10.js +0 -3757
- package/lib/classic/style.css +0 -1
- package/lib/dist/cjs/index-eShKGO10.js +0 -1
- package/lib/dist/es/index-eShKGO10.js +0 -3757
- package/lib/dist/style.css +0 -1
- package/lib/es/hooks-WfHlJH12.js +0 -98
- package/lib/es/index-eShKGO10.js +0 -3757
package/lib/classic/es/index2.js
CHANGED
|
@@ -1,2468 +1,2125 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import i
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import "./
|
|
24
|
-
import { e as
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
32
|
-
|
|
1
|
+
import { m as G, h as ye } from "./index8.js";
|
|
2
|
+
import { jsx as t, jsxs as h, Fragment as S } from "react/jsx-runtime";
|
|
3
|
+
import { u as $, s as i, a as we, c as D, N as X } from "./sl-types.js";
|
|
4
|
+
import { l as Le, S as ke, m as _e, d as Ne, n as Se, C as Te, y as xe, a as Re, f as n2, p as Ee, c as Ve } from "./index13.js";
|
|
5
|
+
import { useState as w, useEffect as y, useRef as E, useCallback as q, Component as He, createElement as ze, PureComponent as Me, useMemo as z, Suspense as Oe, lazy as De, forwardRef as te, useLayoutEffect as Fe, useContext as f2 } from "react";
|
|
6
|
+
import { F as e2, c as Z } from "./feature.js";
|
|
7
|
+
import { atom as Be } from "nanostores";
|
|
8
|
+
import l2 from "lodash.throttle";
|
|
9
|
+
import { A as O } from "./index7.js";
|
|
10
|
+
import { f as ne, u as ie, A as qe, b as Ue } from "./analytics.js";
|
|
11
|
+
import { D as je, p as p2, _ as Pe, O as We, e as Ze } from "./Question.js";
|
|
12
|
+
import { i as M } from "./index9.js";
|
|
13
|
+
import { I as h2, s as ae, N as re, e as oe } from "./index12.js";
|
|
14
|
+
import { createPortal as s2 } from "react-dom";
|
|
15
|
+
import { u as Ge } from "./utils.js";
|
|
16
|
+
import { B as k } from "./index6.js";
|
|
17
|
+
import { I as le, l as Qe, S as V, e as F, p as C2, Q as R, a as Ke } from "./useStreamLayerApp2.js";
|
|
18
|
+
import Ye from "react-infinite-scroller";
|
|
19
|
+
import { r as ce, S as Je, R as Xe, D as e0 } from "./notification2.js";
|
|
20
|
+
import { I as s0, F as t0 } from "./index11.js";
|
|
21
|
+
import "uuid";
|
|
22
|
+
import "@nanostores/query";
|
|
23
|
+
import "./index5.js";
|
|
24
|
+
import { e as n0 } from "./index4.js";
|
|
25
|
+
import { p as i0 } from "./index3.js";
|
|
26
|
+
import { i as g2, q as a0, _ as r0, j as v2 } from "./hooks-n9ax4LRT.js";
|
|
27
|
+
const de = (e) => Be(e), o0 = (e) => {
|
|
28
|
+
const s = $(e.getActiveFeature()), n = $(e.streamStore()), [a, r] = w(null);
|
|
29
|
+
return y(() => {
|
|
30
|
+
const o = e.getFeatures();
|
|
31
|
+
if (!s)
|
|
32
|
+
r(null);
|
|
33
33
|
else
|
|
34
|
-
for (const [
|
|
35
|
-
|
|
34
|
+
for (const [l, c] of o)
|
|
35
|
+
l === s ? (c.status.get() === e2.Suspended && c.enable(), r(c)) : c.status.get() === e2.Ready && c.disable();
|
|
36
36
|
return () => {
|
|
37
|
-
for (const [,
|
|
38
|
-
|
|
37
|
+
for (const [, l] of o)
|
|
38
|
+
l.status.get() === e2.Ready && l.disable();
|
|
39
39
|
};
|
|
40
|
-
}, [
|
|
41
|
-
}
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
let
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
e2 = s2;
|
|
40
|
+
}, [s, e, n]), [s, a];
|
|
41
|
+
}, I2 = Object.keys(O), $2 = () => {
|
|
42
|
+
const e = window.innerWidth;
|
|
43
|
+
let s = "sm";
|
|
44
|
+
for (let n = I2.length - 1; n > 0; n--) {
|
|
45
|
+
const a = I2[n];
|
|
46
|
+
if (!(e < O[a]) && e >= O[a]) {
|
|
47
|
+
s = a;
|
|
49
48
|
break;
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
return {
|
|
53
|
-
name:
|
|
54
|
-
size:
|
|
52
|
+
name: s,
|
|
53
|
+
size: O[s]
|
|
55
54
|
};
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
screen: c$c(),
|
|
62
|
-
sdkInView: d$8(t2),
|
|
63
|
-
sdkInDesktopView: w$4()
|
|
55
|
+
}, b2 = (e) => (e.current?.getBoundingClientRect().y || 0) < -68, t2 = () => window.matchMedia("(orientation: landscape)").matches, l0 = (e) => {
|
|
56
|
+
const [s] = w(() => ne({
|
|
57
|
+
screen: $2(),
|
|
58
|
+
sdkInView: b2(e),
|
|
59
|
+
sdkInDesktopView: t2()
|
|
64
60
|
}));
|
|
65
|
-
return
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
}, 200),
|
|
69
|
-
const
|
|
70
|
-
|
|
61
|
+
return y(() => {
|
|
62
|
+
const n = l2(() => {
|
|
63
|
+
s.setKey("sdkInView", b2(e));
|
|
64
|
+
}, 200), a = l2(() => {
|
|
65
|
+
const r = $2();
|
|
66
|
+
s.setKey("screen", r), s.setKey("sdkInDesktopView", t2());
|
|
71
67
|
}, 200);
|
|
72
|
-
return window.addEventListener("scroll",
|
|
73
|
-
window.removeEventListener("scroll",
|
|
68
|
+
return window.addEventListener("scroll", n), window.addEventListener("resize", a), () => {
|
|
69
|
+
window.removeEventListener("scroll", n), window.removeEventListener("resize", a);
|
|
74
70
|
};
|
|
75
|
-
}, [
|
|
76
|
-
}
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
...n2
|
|
71
|
+
}, [s, e]), [s];
|
|
72
|
+
}, m2 = (e, s, n) => {
|
|
73
|
+
const a = s >= O.lg && s < O.xl ? 75 : 52;
|
|
74
|
+
e.current && window.scrollTo({
|
|
75
|
+
top: e.current.offsetTop - a,
|
|
76
|
+
...n
|
|
82
77
|
});
|
|
83
|
-
},
|
|
84
|
-
const
|
|
85
|
-
|
|
78
|
+
}, c0 = 15, d0 = (e, s) => {
|
|
79
|
+
const n = E(null), a = E(0), [r] = w(
|
|
80
|
+
ne({
|
|
86
81
|
scrollPosition: 0,
|
|
87
|
-
tabsShown:
|
|
82
|
+
tabsShown: !0,
|
|
88
83
|
scrollDirection: "forward"
|
|
89
84
|
})
|
|
90
|
-
),
|
|
91
|
-
return
|
|
92
|
-
const
|
|
93
|
-
if (!
|
|
85
|
+
), o = $(s);
|
|
86
|
+
return y(() => {
|
|
87
|
+
const l = t2() ? n.current : window;
|
|
88
|
+
if (!l)
|
|
94
89
|
return () => {
|
|
95
90
|
};
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (!i2)
|
|
91
|
+
const c = l2((d) => {
|
|
92
|
+
const m = d.target;
|
|
93
|
+
if (!m)
|
|
100
94
|
return;
|
|
101
|
-
let
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
95
|
+
let f = 0;
|
|
96
|
+
t2() ? f = m.scrollTop : f = e.current?.getBoundingClientRect().y || 0;
|
|
97
|
+
const u = a.current - f;
|
|
98
|
+
if (c0 > Math.abs(u))
|
|
105
99
|
return;
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
scrollPosition: Math.round(
|
|
109
|
-
scrollDirection:
|
|
110
|
-
tabsShown:
|
|
100
|
+
const p = a.current < f ? "forward" : "backward";
|
|
101
|
+
a.current = f, r.set({
|
|
102
|
+
scrollPosition: Math.round(f),
|
|
103
|
+
scrollDirection: p,
|
|
104
|
+
tabsShown: r.get().tabsShown
|
|
111
105
|
});
|
|
112
106
|
}, 200);
|
|
113
|
-
return
|
|
114
|
-
|
|
107
|
+
return l.addEventListener("scroll", c), () => {
|
|
108
|
+
l.removeEventListener("scroll", c);
|
|
115
109
|
};
|
|
116
|
-
}, [
|
|
117
|
-
}
|
|
118
|
-
const o$i = /* @__PURE__ */ styled_default("div")({
|
|
110
|
+
}, [r, e, o.screen]), [n, r];
|
|
111
|
+
}, a2 = /* @__PURE__ */ i("div")({
|
|
119
112
|
name: "LoadingContainer",
|
|
120
113
|
class: "lclc0ej",
|
|
121
|
-
propsAsIs:
|
|
122
|
-
}),
|
|
123
|
-
feature:
|
|
124
|
-
sdk:
|
|
125
|
-
children:
|
|
126
|
-
className:
|
|
127
|
-
noWait:
|
|
114
|
+
propsAsIs: !1
|
|
115
|
+
}), p0 = ({
|
|
116
|
+
feature: e,
|
|
117
|
+
sdk: s,
|
|
118
|
+
children: n,
|
|
119
|
+
className: a,
|
|
120
|
+
noWait: r
|
|
128
121
|
}) => {
|
|
129
|
-
const
|
|
130
|
-
if (!
|
|
131
|
-
if (
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
className:
|
|
122
|
+
const o = $(e.status), l = $(s.sdkStore.slStreamId);
|
|
123
|
+
if (!r) {
|
|
124
|
+
if (l?.loading && !l.data)
|
|
125
|
+
return /* @__PURE__ */ t(a2, {
|
|
126
|
+
className: a,
|
|
134
127
|
children: "Event is loading..."
|
|
135
128
|
});
|
|
136
|
-
if (!
|
|
137
|
-
return /* @__PURE__ */
|
|
138
|
-
className:
|
|
129
|
+
if (!l?.data)
|
|
130
|
+
return /* @__PURE__ */ t(a2, {
|
|
131
|
+
className: a,
|
|
139
132
|
children: "Event is forbidden..."
|
|
140
133
|
});
|
|
141
|
-
if (
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
className:
|
|
134
|
+
if (o !== e2.Ready)
|
|
135
|
+
return /* @__PURE__ */ t(a2, {
|
|
136
|
+
className: a,
|
|
144
137
|
children: "Wait feature..."
|
|
145
138
|
});
|
|
146
139
|
}
|
|
147
|
-
return
|
|
148
|
-
}
|
|
149
|
-
const n$e = /* @__PURE__ */ styled_default("div")({
|
|
140
|
+
return n;
|
|
141
|
+
}, h0 = /* @__PURE__ */ i("div")({
|
|
150
142
|
name: "Container",
|
|
151
143
|
class: "c1zy8a",
|
|
152
|
-
propsAsIs:
|
|
153
|
-
}),
|
|
144
|
+
propsAsIs: !1
|
|
145
|
+
}), m0 = /* @__PURE__ */ i("div")({
|
|
154
146
|
name: "Title",
|
|
155
147
|
class: "t1vih9p5",
|
|
156
|
-
propsAsIs:
|
|
157
|
-
}),
|
|
148
|
+
propsAsIs: !1
|
|
149
|
+
}), u0 = /* @__PURE__ */ i("div")({
|
|
158
150
|
name: "Indicator",
|
|
159
151
|
class: "i1fbnvpb",
|
|
160
|
-
propsAsIs:
|
|
161
|
-
})
|
|
162
|
-
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
|
|
165
|
-
] });
|
|
166
|
-
const t$f = /* @__PURE__ */ styled_default("div")({
|
|
152
|
+
propsAsIs: !1
|
|
153
|
+
}), A2 = ({ indicator: e, title: s }) => /* @__PURE__ */ h(h0, { children: [
|
|
154
|
+
/* @__PURE__ */ t(m0, { children: s }),
|
|
155
|
+
/* @__PURE__ */ t(u0, { children: e })
|
|
156
|
+
] }), f0 = /* @__PURE__ */ i("div")({
|
|
167
157
|
name: "Container",
|
|
168
158
|
class: "ctmhwyc",
|
|
169
|
-
propsAsIs:
|
|
170
|
-
}),
|
|
159
|
+
propsAsIs: !1
|
|
160
|
+
}), C0 = /* @__PURE__ */ i("div")({
|
|
171
161
|
name: "Indicator",
|
|
172
162
|
class: "i1jri200",
|
|
173
|
-
propsAsIs:
|
|
174
|
-
}),
|
|
163
|
+
propsAsIs: !1
|
|
164
|
+
}), g0 = /* @__PURE__ */ i("div")({
|
|
175
165
|
name: "Title",
|
|
176
166
|
class: "t8s05oq",
|
|
177
|
-
propsAsIs:
|
|
178
|
-
})
|
|
179
|
-
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
|
|
182
|
-
] });
|
|
183
|
-
const o$g = /* @__PURE__ */ styled_default("div")({
|
|
167
|
+
propsAsIs: !1
|
|
168
|
+
}), Q = ({ indicator: e, title: s }) => /* @__PURE__ */ h(f0, { children: [
|
|
169
|
+
/* @__PURE__ */ t(C0, { children: e }),
|
|
170
|
+
/* @__PURE__ */ t(g0, { children: s })
|
|
171
|
+
] }), v0 = /* @__PURE__ */ i("div")({
|
|
184
172
|
name: "Container",
|
|
185
173
|
class: "c1yrpn9o",
|
|
186
|
-
propsAsIs:
|
|
187
|
-
}),
|
|
174
|
+
propsAsIs: !1
|
|
175
|
+
}), I0 = /* @__PURE__ */ i("div")({
|
|
188
176
|
name: "TopInfo",
|
|
189
177
|
class: "t17fwahh",
|
|
190
|
-
propsAsIs:
|
|
191
|
-
}),
|
|
178
|
+
propsAsIs: !1
|
|
179
|
+
}), $0 = /* @__PURE__ */ i("div")({
|
|
192
180
|
name: "BottomInfo",
|
|
193
181
|
class: "by6w7e9",
|
|
194
|
-
propsAsIs:
|
|
195
|
-
}),
|
|
182
|
+
propsAsIs: !1
|
|
183
|
+
}), b0 = /* @__PURE__ */ i("div")({
|
|
196
184
|
name: "User",
|
|
197
185
|
class: "u1g7arbm",
|
|
198
|
-
propsAsIs:
|
|
199
|
-
}),
|
|
186
|
+
propsAsIs: !1
|
|
187
|
+
}), A0 = /* @__PURE__ */ i("img")({
|
|
200
188
|
name: "Avatar",
|
|
201
189
|
class: "a1ldeata",
|
|
202
|
-
propsAsIs:
|
|
203
|
-
}),
|
|
190
|
+
propsAsIs: !1
|
|
191
|
+
}), y0 = /* @__PURE__ */ i("div")({
|
|
204
192
|
name: "UserInfo",
|
|
205
193
|
class: "u10d4koz",
|
|
206
|
-
propsAsIs:
|
|
207
|
-
}),
|
|
194
|
+
propsAsIs: !1
|
|
195
|
+
}), w0 = /* @__PURE__ */ i("div")({
|
|
208
196
|
name: "UserName",
|
|
209
197
|
class: "u1q6roj0",
|
|
210
|
-
propsAsIs:
|
|
211
|
-
}),
|
|
198
|
+
propsAsIs: !1
|
|
199
|
+
}), L0 = /* @__PURE__ */ i("div")({
|
|
212
200
|
name: "UserRating",
|
|
213
201
|
class: "ui0m425",
|
|
214
|
-
propsAsIs:
|
|
215
|
-
}),
|
|
202
|
+
propsAsIs: !1
|
|
203
|
+
}), k0 = /* @__PURE__ */ i("img")({
|
|
216
204
|
name: "TrophyIcon",
|
|
217
205
|
class: "t1el3mrn",
|
|
218
|
-
propsAsIs:
|
|
219
|
-
}),
|
|
206
|
+
propsAsIs: !1
|
|
207
|
+
}), _0 = /* @__PURE__ */ i("div")({
|
|
220
208
|
name: "RtsContainer",
|
|
221
209
|
class: "r2vgnxv",
|
|
222
|
-
propsAsIs:
|
|
223
|
-
}),
|
|
210
|
+
propsAsIs: !1
|
|
211
|
+
}), N0 = /* @__PURE__ */ i("div")({
|
|
224
212
|
name: "RtsDivider",
|
|
225
213
|
class: "roqn06j",
|
|
226
|
-
propsAsIs:
|
|
227
|
-
}),
|
|
214
|
+
propsAsIs: !1
|
|
215
|
+
}), S0 = /* @__PURE__ */ i("div")({
|
|
228
216
|
name: "Rts",
|
|
229
217
|
class: "r15adx7c",
|
|
230
|
-
propsAsIs:
|
|
231
|
-
}),
|
|
218
|
+
propsAsIs: !1
|
|
219
|
+
}), y2 = /* @__PURE__ */ i("div")({
|
|
232
220
|
name: "RtsIndicator",
|
|
233
221
|
class: "rv59lta",
|
|
234
|
-
propsAsIs:
|
|
235
|
-
}),
|
|
222
|
+
propsAsIs: !1
|
|
223
|
+
}), w2 = /* @__PURE__ */ i("div")({
|
|
236
224
|
name: "RtsLabel",
|
|
237
225
|
class: "r55lotb",
|
|
238
|
-
propsAsIs:
|
|
239
|
-
}),
|
|
226
|
+
propsAsIs: !1
|
|
227
|
+
}), T0 = /* @__PURE__ */ i("div")({
|
|
240
228
|
name: "Divider",
|
|
241
229
|
class: "d1knfgqt",
|
|
242
|
-
propsAsIs:
|
|
243
|
-
}),
|
|
230
|
+
propsAsIs: !1
|
|
231
|
+
}), x0 = /* @__PURE__ */ i("div")({
|
|
244
232
|
name: "Ranks",
|
|
245
233
|
class: "r1mqo824",
|
|
246
|
-
propsAsIs:
|
|
247
|
-
}),
|
|
234
|
+
propsAsIs: !1
|
|
235
|
+
}), R0 = /* @__PURE__ */ i("div")({
|
|
248
236
|
name: "Statistics",
|
|
249
237
|
class: "sxareh6",
|
|
250
|
-
propsAsIs:
|
|
251
|
-
}),
|
|
238
|
+
propsAsIs: !1
|
|
239
|
+
}), E0 = /* @__PURE__ */ i("div")({
|
|
252
240
|
name: "AvatarPlaceholder",
|
|
253
241
|
class: "amcu48h",
|
|
254
|
-
propsAsIs:
|
|
255
|
-
}),
|
|
242
|
+
propsAsIs: !1
|
|
243
|
+
}), V0 = /* @__PURE__ */ i("button")({
|
|
256
244
|
name: "UserAccountBtn",
|
|
257
245
|
class: "u32nfkp",
|
|
258
|
-
propsAsIs:
|
|
259
|
-
})
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
!l2 && /* @__PURE__ */ jsx(u$4, { children: I$a(o2 || "") })
|
|
246
|
+
propsAsIs: !1
|
|
247
|
+
}), H0 = "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", pe = ({
|
|
248
|
+
loading: e,
|
|
249
|
+
hideFriendsRank: s,
|
|
250
|
+
avatar: n,
|
|
251
|
+
name: a,
|
|
252
|
+
points: r,
|
|
253
|
+
friendsRank: o,
|
|
254
|
+
rank: l,
|
|
255
|
+
streak: c,
|
|
256
|
+
correct: d,
|
|
257
|
+
incorrect: m,
|
|
258
|
+
inTop: f,
|
|
259
|
+
successRate: u
|
|
260
|
+
}) => /* @__PURE__ */ h(v0, { "data-loading": e, children: [
|
|
261
|
+
/* @__PURE__ */ t(I0, { children: /* @__PURE__ */ t(M, { loading: e, children: /* @__PURE__ */ h(b0, { children: [
|
|
262
|
+
/* @__PURE__ */ h(V0, { children: [
|
|
263
|
+
n && /* @__PURE__ */ t(A0, { alt: "avatar", src: n }),
|
|
264
|
+
!n && /* @__PURE__ */ t(E0, { children: h2(a || "") })
|
|
278
265
|
] }),
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
/* @__PURE__ */
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
-
|
|
287
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ h(y0, { children: [
|
|
267
|
+
/* @__PURE__ */ t(w0, { children: a }),
|
|
268
|
+
/* @__PURE__ */ h(L0, { children: [
|
|
269
|
+
/* @__PURE__ */ h(_0, { children: [
|
|
270
|
+
/* @__PURE__ */ h(S0, { children: [
|
|
271
|
+
/* @__PURE__ */ t(k0, { alt: "rank-icon", src: H0 }),
|
|
272
|
+
/* @__PURE__ */ h(y2, { children: [
|
|
273
|
+
ae(r),
|
|
274
|
+
/* @__PURE__ */ t(w2, { children: "PTS" })
|
|
288
275
|
] })
|
|
289
276
|
] }),
|
|
290
|
-
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
|
|
293
|
-
/* @__PURE__ */
|
|
277
|
+
s && /* @__PURE__ */ h(y2, { children: [
|
|
278
|
+
/* @__PURE__ */ t(N0, {}),
|
|
279
|
+
l || 0,
|
|
280
|
+
/* @__PURE__ */ t(w2, { children: "global rank" })
|
|
294
281
|
] })
|
|
295
282
|
] }),
|
|
296
|
-
!
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */
|
|
283
|
+
!s && /* @__PURE__ */ h(S, { children: [
|
|
284
|
+
/* @__PURE__ */ t(T0, {}),
|
|
285
|
+
/* @__PURE__ */ h("div", { children: [
|
|
299
286
|
"TOP ",
|
|
300
|
-
|
|
287
|
+
f || 0,
|
|
301
288
|
"%"
|
|
302
289
|
] })
|
|
303
290
|
] })
|
|
304
291
|
] })
|
|
305
292
|
] })
|
|
306
293
|
] }) }) }),
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
!
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ h($0, { children: [
|
|
295
|
+
!s && /* @__PURE__ */ h(x0, { children: [
|
|
296
|
+
/* @__PURE__ */ t(M, { loading: e, style: { width: "100%" }, children: /* @__PURE__ */ t(A2, { indicator: o || 0, title: "Friends rank" }) }),
|
|
297
|
+
/* @__PURE__ */ t(M, { loading: e, style: { width: "100%" }, children: /* @__PURE__ */ t(A2, { indicator: l || 0, title: "Global rank" }) })
|
|
311
298
|
] }),
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ t(M, { loading: e, children: /* @__PURE__ */ h(R0, { children: [
|
|
300
|
+
/* @__PURE__ */ t(Q, { indicator: c || 0, title: "Win streak" }),
|
|
301
|
+
/* @__PURE__ */ t(Q, { indicator: d || 0, title: "Correct" }),
|
|
302
|
+
/* @__PURE__ */ t(Q, { indicator: m || 0, title: "Incorrect" }),
|
|
303
|
+
/* @__PURE__ */ t(Q, { indicator: `${u || 0}%`, title: "Succ. rate" })
|
|
317
304
|
] }) })
|
|
318
305
|
] })
|
|
319
|
-
] })
|
|
320
|
-
const S$1 = /* @__PURE__ */ styled_default("div")({
|
|
306
|
+
] }), z0 = /* @__PURE__ */ i("div")({
|
|
321
307
|
name: "StaticContainer",
|
|
322
308
|
class: "svm502q",
|
|
323
|
-
propsAsIs:
|
|
324
|
-
}),
|
|
309
|
+
propsAsIs: !1
|
|
310
|
+
}), M0 = `
|
|
325
311
|
.sl-pill-button {
|
|
326
312
|
display: none !important;
|
|
327
313
|
}
|
|
328
|
-
`,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
staticStyles: w2
|
|
314
|
+
`, he = () => window.innerWidth >= O.md && window.innerWidth < O.lg ? 76 : 53, L2 = (e) => {
|
|
315
|
+
const s = he();
|
|
316
|
+
return Math.round((e.current?.getBoundingClientRect().y || 0) - s) <= 0;
|
|
317
|
+
}, me = ({
|
|
318
|
+
children: e,
|
|
319
|
+
container: s,
|
|
320
|
+
useContainer: n,
|
|
321
|
+
staticStyles: a
|
|
337
322
|
}) => {
|
|
338
|
-
const [
|
|
339
|
-
return
|
|
340
|
-
if (!
|
|
341
|
-
return
|
|
323
|
+
const [r] = w(() => L2(s)), [o, l] = w(!1);
|
|
324
|
+
return y(() => {
|
|
325
|
+
if (!s.current || !r)
|
|
326
|
+
return l(!0), () => {
|
|
342
327
|
};
|
|
343
|
-
const
|
|
344
|
-
return
|
|
345
|
-
|
|
346
|
-
top:
|
|
328
|
+
const c = window.scrollY;
|
|
329
|
+
return l(!0), () => {
|
|
330
|
+
L2(s) && window.scrollTo({
|
|
331
|
+
top: c,
|
|
347
332
|
behavior: "instant"
|
|
348
333
|
});
|
|
349
334
|
};
|
|
350
|
-
}, []),
|
|
351
|
-
if (
|
|
352
|
-
const
|
|
335
|
+
}, []), y(() => {
|
|
336
|
+
if (o && s.current && r) {
|
|
337
|
+
const c = he();
|
|
353
338
|
window.scrollTo({
|
|
354
|
-
top:
|
|
339
|
+
top: s.current.offsetTop - c,
|
|
355
340
|
behavior: "instant"
|
|
356
341
|
});
|
|
357
342
|
}
|
|
358
|
-
}, [
|
|
343
|
+
}, [o]), !s.current || !o ? null : n ? s2(/* @__PURE__ */ h(z0, {
|
|
359
344
|
className: "StaticContainer",
|
|
360
|
-
children: [
|
|
361
|
-
children:
|
|
362
|
-
}), /* @__PURE__ */
|
|
363
|
-
children:
|
|
345
|
+
children: [e, /* @__PURE__ */ t("style", {
|
|
346
|
+
children: Ge
|
|
347
|
+
}), /* @__PURE__ */ t("style", {
|
|
348
|
+
children: M0
|
|
364
349
|
})]
|
|
365
|
-
}),
|
|
366
|
-
children: [
|
|
367
|
-
children:
|
|
350
|
+
}), s.current, "modal-node") : s2(/* @__PURE__ */ h(S, {
|
|
351
|
+
children: [e, /* @__PURE__ */ t("style", {
|
|
352
|
+
children: a
|
|
368
353
|
})]
|
|
369
|
-
}),
|
|
370
|
-
}
|
|
371
|
-
const t$d = /* @__PURE__ */ styled_default("div")({
|
|
354
|
+
}), s.current, "modal-node");
|
|
355
|
+
}, O0 = /* @__PURE__ */ i("div")({
|
|
372
356
|
name: "Container",
|
|
373
357
|
class: "c115qtkr",
|
|
374
|
-
propsAsIs:
|
|
375
|
-
}),
|
|
358
|
+
propsAsIs: !1
|
|
359
|
+
}), D0 = /* @__PURE__ */ i("div")({
|
|
376
360
|
name: "STabs",
|
|
377
361
|
class: "sxnslc8",
|
|
378
|
-
propsAsIs:
|
|
379
|
-
}),
|
|
362
|
+
propsAsIs: !1
|
|
363
|
+
}), F0 = /* @__PURE__ */ i("button")({
|
|
380
364
|
name: "Button",
|
|
381
365
|
class: "b1umzux0",
|
|
382
|
-
propsAsIs:
|
|
383
|
-
}),
|
|
366
|
+
propsAsIs: !1
|
|
367
|
+
}), B0 = /* @__PURE__ */ i("span")({
|
|
384
368
|
name: "Title",
|
|
385
369
|
class: "tspsaas",
|
|
386
|
-
propsAsIs:
|
|
370
|
+
propsAsIs: !1
|
|
387
371
|
});
|
|
388
|
-
var
|
|
389
|
-
const
|
|
390
|
-
/* @__PURE__ */
|
|
372
|
+
var P = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(P || {});
|
|
373
|
+
const k2 = ({ title: e, active: s, onClick: n }) => /* @__PURE__ */ t(F0, { "data-a": "intr", onClick: n, "data-selected": s, children: /* @__PURE__ */ t(B0, { "data-a": "intr", children: e }) }), q0 = ({ activePage: e = "home", toggleActivePage: s }) => /* @__PURE__ */ t(O0, { children: /* @__PURE__ */ h(D0, { "data-position": e === "home" ? "left" : "right", children: [
|
|
374
|
+
/* @__PURE__ */ t(k2, { title: "Home", active: e === "home", onClick: () => s(
|
|
391
375
|
"home"
|
|
392
376
|
/* HOME */
|
|
393
377
|
) }),
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
|
|
378
|
+
/* @__PURE__ */ t(
|
|
379
|
+
k2,
|
|
396
380
|
{
|
|
397
381
|
title: "Friends",
|
|
398
|
-
active:
|
|
399
|
-
onClick: () =>
|
|
382
|
+
active: e === "leaderboard",
|
|
383
|
+
onClick: () => s(
|
|
400
384
|
"leaderboard"
|
|
401
385
|
/* LEADERBOARD */
|
|
402
386
|
)
|
|
403
387
|
}
|
|
404
388
|
)
|
|
405
|
-
] }) })
|
|
406
|
-
const n$b = /* @__PURE__ */ styled_default("button")({
|
|
389
|
+
] }) }), U0 = /* @__PURE__ */ i("button")({
|
|
407
390
|
name: "Container",
|
|
408
391
|
class: "cpjnajb",
|
|
409
|
-
propsAsIs:
|
|
410
|
-
}),
|
|
392
|
+
propsAsIs: !1
|
|
393
|
+
}), j0 = /* @__PURE__ */ i("div")({
|
|
411
394
|
name: "Content",
|
|
412
395
|
class: "c4m6kaz",
|
|
413
|
-
propsAsIs:
|
|
414
|
-
}),
|
|
396
|
+
propsAsIs: !1
|
|
397
|
+
}), P0 = /* @__PURE__ */ i("span")({
|
|
415
398
|
name: "Title",
|
|
416
399
|
class: "t1h8t9cc",
|
|
417
|
-
propsAsIs:
|
|
418
|
-
})
|
|
419
|
-
|
|
420
|
-
/* @__PURE__ */
|
|
421
|
-
|
|
422
|
-
]
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
var i2;
|
|
427
|
-
if (e2 && ((i2 = navigator == null ? void 0 : navigator.clipboard) != null && i2.writeText)) {
|
|
428
|
-
t2.current && (clearTimeout(t2.current), o2(null));
|
|
400
|
+
propsAsIs: !1
|
|
401
|
+
}), W0 = () => /* @__PURE__ */ t(U0, { children: /* @__PURE__ */ h(j0, { children: [
|
|
402
|
+
/* @__PURE__ */ t(k, { name: "iconCopySuccess" }),
|
|
403
|
+
/* @__PURE__ */ t(P0, { children: "Link Copied to Clipboard" })
|
|
404
|
+
] }) }), ue = (e) => {
|
|
405
|
+
const s = E(), [n, a] = w(null), r = q(
|
|
406
|
+
async (o) => {
|
|
407
|
+
if (o && navigator?.clipboard?.writeText) {
|
|
408
|
+
s.current && (clearTimeout(s.current), a(null));
|
|
429
409
|
try {
|
|
430
|
-
await navigator.clipboard.writeText(
|
|
431
|
-
|
|
410
|
+
await navigator.clipboard.writeText(o), e.current && (a(s2(/* @__PURE__ */ t(W0, {}), e.current)), s.current = setTimeout(() => {
|
|
411
|
+
a(null);
|
|
432
412
|
}, 1e3));
|
|
433
|
-
} catch (
|
|
434
|
-
console.error("Unable to copy to clipboard",
|
|
413
|
+
} catch (l) {
|
|
414
|
+
console.error("Unable to copy to clipboard", l);
|
|
435
415
|
}
|
|
436
416
|
}
|
|
437
417
|
},
|
|
438
|
-
[
|
|
418
|
+
[e]
|
|
439
419
|
);
|
|
440
|
-
return
|
|
441
|
-
clearTimeout(
|
|
442
|
-
}, []), [
|
|
443
|
-
}
|
|
444
|
-
const r$c = /* @__PURE__ */ styled_default("div")({
|
|
420
|
+
return y(() => () => {
|
|
421
|
+
clearTimeout(s.current);
|
|
422
|
+
}, []), [r, n];
|
|
423
|
+
}, Z0 = /* @__PURE__ */ i("div")({
|
|
445
424
|
name: "Container",
|
|
446
425
|
class: "c1ux29ft",
|
|
447
|
-
propsAsIs:
|
|
448
|
-
}),
|
|
426
|
+
propsAsIs: !1
|
|
427
|
+
}), G0 = () => k, Q0 = /* @__PURE__ */ i(G0())({
|
|
449
428
|
name: "FriendsIcon",
|
|
450
429
|
class: "f10ncfg2",
|
|
451
|
-
propsAsIs:
|
|
452
|
-
}),
|
|
430
|
+
propsAsIs: !0
|
|
431
|
+
}), K0 = /* @__PURE__ */ i("div")({
|
|
453
432
|
name: "Content",
|
|
454
433
|
class: "c1yc07bd",
|
|
455
|
-
propsAsIs:
|
|
456
|
-
}),
|
|
434
|
+
propsAsIs: !1
|
|
435
|
+
}), Y0 = /* @__PURE__ */ i("div")({
|
|
457
436
|
name: "Title",
|
|
458
437
|
class: "tj6cq7w",
|
|
459
|
-
propsAsIs:
|
|
460
|
-
}),
|
|
438
|
+
propsAsIs: !1
|
|
439
|
+
}), J0 = /* @__PURE__ */ i("div")({
|
|
461
440
|
name: "Description",
|
|
462
441
|
class: "d1ag78xo",
|
|
463
|
-
propsAsIs:
|
|
464
|
-
}),
|
|
442
|
+
propsAsIs: !1
|
|
443
|
+
}), X0 = () => k, es = /* @__PURE__ */ i(X0())({
|
|
465
444
|
name: "ArrowInviteIcon",
|
|
466
445
|
class: "awohrz6",
|
|
467
|
-
propsAsIs:
|
|
468
|
-
})
|
|
469
|
-
const
|
|
470
|
-
const [c2] = f$b({
|
|
446
|
+
propsAsIs: !0
|
|
447
|
+
}), ss = ({ title: e, description: s, onClick: n, className: a }) => {
|
|
448
|
+
const [r] = ie({
|
|
471
449
|
type: "invitation",
|
|
472
450
|
action: "sent",
|
|
473
451
|
payload: {
|
|
474
|
-
from:
|
|
452
|
+
from: le.TITLE_CARD
|
|
475
453
|
}
|
|
476
454
|
});
|
|
477
|
-
return /* @__PURE__ */
|
|
478
|
-
/* @__PURE__ */
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */
|
|
455
|
+
return /* @__PURE__ */ h(Z0, { "data-a": "intr", onClick: r(n), className: a, children: [
|
|
456
|
+
/* @__PURE__ */ t(Q0, { name: "icon-friends" }),
|
|
457
|
+
/* @__PURE__ */ h(K0, { children: [
|
|
458
|
+
/* @__PURE__ */ t(Y0, { children: e }),
|
|
459
|
+
/* @__PURE__ */ t(J0, { children: s })
|
|
482
460
|
] }),
|
|
483
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ t(es, { name: "icon-copy" })
|
|
484
462
|
] });
|
|
485
463
|
};
|
|
486
|
-
let
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
clearTimeoutFn(timeoutID);
|
|
514
|
-
callback();
|
|
515
|
-
});
|
|
516
|
-
const timeoutID = setTimeoutFn(function timeoutCallback() {
|
|
517
|
-
cancelAnimationFrameFn(animationFrameID);
|
|
518
|
-
callback();
|
|
519
|
-
}, TIMEOUT_DURATION);
|
|
520
|
-
return [animationFrameID, timeoutID];
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
function createDetectElementResize(nonce) {
|
|
524
|
-
let animationKeyframes;
|
|
525
|
-
let animationName;
|
|
526
|
-
let animationStartEvent;
|
|
527
|
-
let animationStyle;
|
|
528
|
-
let checkTriggers;
|
|
529
|
-
let resetTriggers;
|
|
530
|
-
let scrollListener;
|
|
531
|
-
const attachEvent = typeof document !== "undefined" && document.attachEvent;
|
|
532
|
-
if (!attachEvent) {
|
|
533
|
-
resetTriggers = function(element) {
|
|
534
|
-
const triggers = element.__resizeTriggers__, expand = triggers.firstElementChild, contract = triggers.lastElementChild, expandChild = expand.firstElementChild;
|
|
535
|
-
contract.scrollLeft = contract.scrollWidth;
|
|
536
|
-
contract.scrollTop = contract.scrollHeight;
|
|
537
|
-
expandChild.style.width = expand.offsetWidth + 1 + "px";
|
|
538
|
-
expandChild.style.height = expand.offsetHeight + 1 + "px";
|
|
539
|
-
expand.scrollLeft = expand.scrollWidth;
|
|
540
|
-
expand.scrollTop = expand.scrollHeight;
|
|
541
|
-
};
|
|
542
|
-
checkTriggers = function(element) {
|
|
543
|
-
return element.offsetWidth !== element.__resizeLast__.width || element.offsetHeight !== element.__resizeLast__.height;
|
|
544
|
-
};
|
|
545
|
-
scrollListener = function(e2) {
|
|
546
|
-
if (e2.target.className && typeof e2.target.className.indexOf === "function" && e2.target.className.indexOf("contract-trigger") < 0 && e2.target.className.indexOf("expand-trigger") < 0) {
|
|
464
|
+
let T;
|
|
465
|
+
typeof window < "u" ? T = window : typeof self < "u" ? T = self : T = Qe;
|
|
466
|
+
let c2 = null, d2 = null;
|
|
467
|
+
const _2 = 20, r2 = T.clearTimeout, N2 = T.setTimeout, o2 = T.cancelAnimationFrame || T.mozCancelAnimationFrame || T.webkitCancelAnimationFrame, S2 = T.requestAnimationFrame || T.mozRequestAnimationFrame || T.webkitRequestAnimationFrame;
|
|
468
|
+
o2 == null || S2 == null ? (c2 = r2, d2 = function(s) {
|
|
469
|
+
return N2(s, _2);
|
|
470
|
+
}) : (c2 = function([s, n]) {
|
|
471
|
+
o2(s), r2(n);
|
|
472
|
+
}, d2 = function(s) {
|
|
473
|
+
const n = S2(function() {
|
|
474
|
+
r2(a), s();
|
|
475
|
+
}), a = N2(function() {
|
|
476
|
+
o2(n), s();
|
|
477
|
+
}, _2);
|
|
478
|
+
return [n, a];
|
|
479
|
+
});
|
|
480
|
+
function ts(e) {
|
|
481
|
+
let s, n, a, r, o, l, c;
|
|
482
|
+
const d = typeof document < "u" && document.attachEvent;
|
|
483
|
+
if (!d) {
|
|
484
|
+
l = function(A) {
|
|
485
|
+
const b = A.__resizeTriggers__, N = b.firstElementChild, L = b.lastElementChild, x = N.firstElementChild;
|
|
486
|
+
L.scrollLeft = L.scrollWidth, L.scrollTop = L.scrollHeight, x.style.width = N.offsetWidth + 1 + "px", x.style.height = N.offsetHeight + 1 + "px", N.scrollLeft = N.scrollWidth, N.scrollTop = N.scrollHeight;
|
|
487
|
+
}, o = function(A) {
|
|
488
|
+
return A.offsetWidth !== A.__resizeLast__.width || A.offsetHeight !== A.__resizeLast__.height;
|
|
489
|
+
}, c = function(A) {
|
|
490
|
+
if (A.target.className && typeof A.target.className.indexOf == "function" && A.target.className.indexOf("contract-trigger") < 0 && A.target.className.indexOf("expand-trigger") < 0)
|
|
547
491
|
return;
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
this.__resizeRAF__ = requestFrame(function animationFrame() {
|
|
555
|
-
if (checkTriggers(element)) {
|
|
556
|
-
element.__resizeLast__.width = element.offsetWidth;
|
|
557
|
-
element.__resizeLast__.height = element.offsetHeight;
|
|
558
|
-
element.__resizeListeners__.forEach(function forEachResizeListener(fn) {
|
|
559
|
-
fn.call(element, e2);
|
|
560
|
-
});
|
|
561
|
-
}
|
|
492
|
+
const b = this;
|
|
493
|
+
l(this), this.__resizeRAF__ && c2(this.__resizeRAF__), this.__resizeRAF__ = d2(function() {
|
|
494
|
+
o(b) && (b.__resizeLast__.width = b.offsetWidth, b.__resizeLast__.height = b.offsetHeight, b.__resizeListeners__.forEach(function(x) {
|
|
495
|
+
x.call(b, A);
|
|
496
|
+
}));
|
|
562
497
|
});
|
|
563
498
|
};
|
|
564
|
-
let
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
let startEvents = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");
|
|
569
|
-
let pfx = "";
|
|
499
|
+
let p = !1, C = "";
|
|
500
|
+
a = "animationstart";
|
|
501
|
+
const g = "Webkit Moz O ms".split(" ");
|
|
502
|
+
let I = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = "";
|
|
570
503
|
{
|
|
571
|
-
const
|
|
572
|
-
if (
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
for (let i2 = 0; i2 < domPrefixes.length; i2++) {
|
|
577
|
-
if (elm.style[domPrefixes[i2] + "AnimationName"] !== void 0) {
|
|
578
|
-
pfx = domPrefixes[i2];
|
|
579
|
-
keyframeprefix = "-" + pfx.toLowerCase() + "-";
|
|
580
|
-
animationStartEvent = startEvents[i2];
|
|
581
|
-
animation = true;
|
|
504
|
+
const A = document.createElement("fakeelement");
|
|
505
|
+
if (A.style.animationName !== void 0 && (p = !0), p === !1) {
|
|
506
|
+
for (let b = 0; b < g.length; b++)
|
|
507
|
+
if (A.style[g[b] + "AnimationName"] !== void 0) {
|
|
508
|
+
v = g[b], C = "-" + v.toLowerCase() + "-", a = I[b], p = !0;
|
|
582
509
|
break;
|
|
583
510
|
}
|
|
584
|
-
}
|
|
585
511
|
}
|
|
586
512
|
}
|
|
587
|
-
|
|
588
|
-
animationKeyframes = "@" + keyframeprefix + "keyframes " + animationName + " { from { opacity: 0; } to { opacity: 0; } } ";
|
|
589
|
-
animationStyle = keyframeprefix + "animation: 1ms " + animationName + "; ";
|
|
513
|
+
n = "resizeanim", s = "@" + C + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = C + "animation: 1ms " + n + "; ";
|
|
590
514
|
}
|
|
591
|
-
const
|
|
592
|
-
if (!
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
style.type = "text/css";
|
|
596
|
-
if (nonce != null) {
|
|
597
|
-
style.setAttribute("nonce", nonce);
|
|
598
|
-
}
|
|
599
|
-
if (style.styleSheet) {
|
|
600
|
-
style.styleSheet.cssText = css;
|
|
601
|
-
} else {
|
|
602
|
-
style.appendChild(doc.createTextNode(css));
|
|
603
|
-
}
|
|
604
|
-
head.appendChild(style);
|
|
515
|
+
const m = function(p) {
|
|
516
|
+
if (!p.getElementById("detectElementResize")) {
|
|
517
|
+
const C = (s || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', g = p.head || p.getElementsByTagName("head")[0], I = p.createElement("style");
|
|
518
|
+
I.id = "detectElementResize", I.type = "text/css", e != null && I.setAttribute("nonce", e), I.styleSheet ? I.styleSheet.cssText = C : I.appendChild(p.createTextNode(C)), g.appendChild(I);
|
|
605
519
|
}
|
|
606
520
|
};
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
const expandTrigger = doc.createElement("div");
|
|
622
|
-
expandTrigger.className = "expand-trigger";
|
|
623
|
-
expandTrigger.appendChild(doc.createElement("div"));
|
|
624
|
-
const contractTrigger = doc.createElement("div");
|
|
625
|
-
contractTrigger.className = "contract-trigger";
|
|
626
|
-
element.__resizeTriggers__.appendChild(expandTrigger);
|
|
627
|
-
element.__resizeTriggers__.appendChild(contractTrigger);
|
|
628
|
-
element.appendChild(element.__resizeTriggers__);
|
|
629
|
-
resetTriggers(element);
|
|
630
|
-
element.addEventListener("scroll", scrollListener, true);
|
|
631
|
-
if (animationStartEvent) {
|
|
632
|
-
element.__resizeTriggers__.__animationListener__ = function animationListener(e2) {
|
|
633
|
-
if (e2.animationName === animationName) {
|
|
634
|
-
resetTriggers(element);
|
|
635
|
-
}
|
|
636
|
-
};
|
|
637
|
-
element.__resizeTriggers__.addEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);
|
|
521
|
+
return {
|
|
522
|
+
addResizeListener: function(p, C) {
|
|
523
|
+
if (d)
|
|
524
|
+
p.attachEvent("onresize", C);
|
|
525
|
+
else {
|
|
526
|
+
if (!p.__resizeTriggers__) {
|
|
527
|
+
const g = p.ownerDocument, I = T.getComputedStyle(p);
|
|
528
|
+
I && I.position === "static" && (p.style.position = "relative"), m(g), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = g.createElement("div")).className = "resize-triggers";
|
|
529
|
+
const v = g.createElement("div");
|
|
530
|
+
v.className = "expand-trigger", v.appendChild(g.createElement("div"));
|
|
531
|
+
const A = g.createElement("div");
|
|
532
|
+
A.className = "contract-trigger", p.__resizeTriggers__.appendChild(v), p.__resizeTriggers__.appendChild(A), p.appendChild(p.__resizeTriggers__), l(p), p.addEventListener("scroll", c, !0), a && (p.__resizeTriggers__.__animationListener__ = function(N) {
|
|
533
|
+
N.animationName === n && l(p);
|
|
534
|
+
}, p.__resizeTriggers__.addEventListener(a, p.__resizeTriggers__.__animationListener__));
|
|
638
535
|
}
|
|
536
|
+
p.__resizeListeners__.push(C);
|
|
639
537
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
} else {
|
|
647
|
-
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
|
|
648
|
-
if (!element.__resizeListeners__.length) {
|
|
649
|
-
element.removeEventListener("scroll", scrollListener, true);
|
|
650
|
-
if (element.__resizeTriggers__.__animationListener__) {
|
|
651
|
-
element.__resizeTriggers__.removeEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);
|
|
652
|
-
element.__resizeTriggers__.__animationListener__ = null;
|
|
653
|
-
}
|
|
538
|
+
},
|
|
539
|
+
removeResizeListener: function(p, C) {
|
|
540
|
+
if (d)
|
|
541
|
+
p.detachEvent("onresize", C);
|
|
542
|
+
else if (p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(C), 1), !p.__resizeListeners__.length) {
|
|
543
|
+
p.removeEventListener("scroll", c, !0), p.__resizeTriggers__.__animationListener__ && (p.__resizeTriggers__.removeEventListener(a, p.__resizeTriggers__.__animationListener__), p.__resizeTriggers__.__animationListener__ = null);
|
|
654
544
|
try {
|
|
655
|
-
|
|
656
|
-
} catch
|
|
545
|
+
p.__resizeTriggers__ = !p.removeChild(p.__resizeTriggers__);
|
|
546
|
+
} catch {
|
|
657
547
|
}
|
|
658
548
|
}
|
|
659
549
|
}
|
|
660
550
|
};
|
|
661
|
-
return {
|
|
662
|
-
addResizeListener,
|
|
663
|
-
removeResizeListener
|
|
664
|
-
};
|
|
665
551
|
}
|
|
666
|
-
class
|
|
667
|
-
constructor(...
|
|
668
|
-
super(...
|
|
669
|
-
this.state = {
|
|
552
|
+
class ns extends He {
|
|
553
|
+
constructor(...s) {
|
|
554
|
+
super(...s), this.state = {
|
|
670
555
|
height: this.props.defaultHeight || 0,
|
|
671
556
|
scaledHeight: this.props.defaultHeight || 0,
|
|
672
557
|
scaledWidth: this.props.defaultWidth || 0,
|
|
673
558
|
width: this.props.defaultWidth || 0
|
|
674
|
-
}
|
|
675
|
-
this._autoSizer = null;
|
|
676
|
-
this._detectElementResize = null;
|
|
677
|
-
this._parentNode = null;
|
|
678
|
-
this._resizeObserver = null;
|
|
679
|
-
this._timeoutId = null;
|
|
680
|
-
this._onResize = () => {
|
|
559
|
+
}, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
|
|
681
560
|
this._timeoutId = null;
|
|
682
561
|
const {
|
|
683
|
-
disableHeight,
|
|
684
|
-
disableWidth,
|
|
685
|
-
onResize
|
|
562
|
+
disableHeight: n,
|
|
563
|
+
disableWidth: a,
|
|
564
|
+
onResize: r
|
|
686
565
|
} = this.props;
|
|
687
566
|
if (this._parentNode) {
|
|
688
|
-
const
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
height,
|
|
701
|
-
width,
|
|
702
|
-
scaledHeight,
|
|
703
|
-
scaledWidth
|
|
704
|
-
});
|
|
705
|
-
if (typeof onResize === "function") {
|
|
706
|
-
onResize({
|
|
707
|
-
height,
|
|
708
|
-
scaledHeight,
|
|
709
|
-
scaledWidth,
|
|
710
|
-
width
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
}
|
|
567
|
+
const o = window.getComputedStyle(this._parentNode) || {}, l = parseFloat(o.paddingLeft || "0"), c = parseFloat(o.paddingRight || "0"), d = parseFloat(o.paddingTop || "0"), m = parseFloat(o.paddingBottom || "0"), f = this._parentNode.getBoundingClientRect(), u = f.height - d - m, p = f.width - l - c, C = this._parentNode.offsetHeight - d - m, g = this._parentNode.offsetWidth - l - c;
|
|
568
|
+
(!n && (this.state.height !== C || this.state.scaledHeight !== u) || !a && (this.state.width !== g || this.state.scaledWidth !== p)) && (this.setState({
|
|
569
|
+
height: C,
|
|
570
|
+
width: g,
|
|
571
|
+
scaledHeight: u,
|
|
572
|
+
scaledWidth: p
|
|
573
|
+
}), typeof r == "function" && r({
|
|
574
|
+
height: C,
|
|
575
|
+
scaledHeight: u,
|
|
576
|
+
scaledWidth: p,
|
|
577
|
+
width: g
|
|
578
|
+
}));
|
|
714
579
|
}
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
this._autoSizer = autoSizer;
|
|
580
|
+
}, this._setRef = (n) => {
|
|
581
|
+
this._autoSizer = n;
|
|
718
582
|
};
|
|
719
583
|
}
|
|
720
584
|
componentDidMount() {
|
|
721
585
|
const {
|
|
722
|
-
nonce
|
|
723
|
-
} = this.props;
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
this._timeoutId = setTimeout(this._onResize, 0);
|
|
731
|
-
});
|
|
732
|
-
this._resizeObserver.observe(parentNode);
|
|
733
|
-
} else {
|
|
734
|
-
this._detectElementResize = createDetectElementResize(nonce);
|
|
735
|
-
this._detectElementResize.addResizeListener(parentNode, this._onResize);
|
|
736
|
-
}
|
|
737
|
-
this._onResize();
|
|
586
|
+
nonce: s
|
|
587
|
+
} = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
|
|
588
|
+
if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
|
|
589
|
+
this._parentNode = n;
|
|
590
|
+
const a = n.ownerDocument.defaultView.ResizeObserver;
|
|
591
|
+
a != null ? (this._resizeObserver = new a(() => {
|
|
592
|
+
this._timeoutId = setTimeout(this._onResize, 0);
|
|
593
|
+
}), this._resizeObserver.observe(n)) : (this._detectElementResize = ts(s), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
|
|
738
594
|
}
|
|
739
595
|
}
|
|
740
596
|
componentWillUnmount() {
|
|
741
|
-
|
|
742
|
-
if (this._detectElementResize) {
|
|
743
|
-
this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
744
|
-
}
|
|
745
|
-
if (this._timeoutId !== null) {
|
|
746
|
-
clearTimeout(this._timeoutId);
|
|
747
|
-
}
|
|
748
|
-
if (this._resizeObserver) {
|
|
749
|
-
this._resizeObserver.disconnect();
|
|
750
|
-
}
|
|
751
|
-
}
|
|
597
|
+
this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && this._resizeObserver.disconnect());
|
|
752
598
|
}
|
|
753
599
|
render() {
|
|
754
600
|
const {
|
|
755
|
-
children,
|
|
756
|
-
defaultHeight,
|
|
757
|
-
defaultWidth,
|
|
758
|
-
disableHeight =
|
|
759
|
-
disableWidth =
|
|
760
|
-
doNotBailOutOnEmptyChildren =
|
|
761
|
-
nonce,
|
|
762
|
-
onResize,
|
|
763
|
-
style = {},
|
|
764
|
-
tagName = "div",
|
|
765
|
-
...
|
|
766
|
-
} = this.props
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
} = this.state;
|
|
773
|
-
const outerStyle = {
|
|
601
|
+
children: s,
|
|
602
|
+
defaultHeight: n,
|
|
603
|
+
defaultWidth: a,
|
|
604
|
+
disableHeight: r = !1,
|
|
605
|
+
disableWidth: o = !1,
|
|
606
|
+
doNotBailOutOnEmptyChildren: l = !1,
|
|
607
|
+
nonce: c,
|
|
608
|
+
onResize: d,
|
|
609
|
+
style: m = {},
|
|
610
|
+
tagName: f = "div",
|
|
611
|
+
...u
|
|
612
|
+
} = this.props, {
|
|
613
|
+
height: p,
|
|
614
|
+
scaledHeight: C,
|
|
615
|
+
scaledWidth: g,
|
|
616
|
+
width: I
|
|
617
|
+
} = this.state, v = {
|
|
774
618
|
overflow: "visible"
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
if (!disableHeight) {
|
|
779
|
-
if (height === 0) {
|
|
780
|
-
bailoutOnChildren = true;
|
|
781
|
-
}
|
|
782
|
-
outerStyle.height = 0;
|
|
783
|
-
childParams.height = height;
|
|
784
|
-
childParams.scaledHeight = scaledHeight;
|
|
785
|
-
}
|
|
786
|
-
if (!disableWidth) {
|
|
787
|
-
if (width === 0) {
|
|
788
|
-
bailoutOnChildren = true;
|
|
789
|
-
}
|
|
790
|
-
outerStyle.width = 0;
|
|
791
|
-
childParams.width = width;
|
|
792
|
-
childParams.scaledWidth = scaledWidth;
|
|
793
|
-
}
|
|
794
|
-
if (doNotBailOutOnEmptyChildren) {
|
|
795
|
-
bailoutOnChildren = false;
|
|
796
|
-
}
|
|
797
|
-
return createElement(tagName, {
|
|
619
|
+
}, A = {};
|
|
620
|
+
let b = !1;
|
|
621
|
+
return r || (p === 0 && (b = !0), v.height = 0, A.height = p, A.scaledHeight = C), o || (I === 0 && (b = !0), v.width = 0, A.width = I, A.scaledWidth = g), l && (b = !1), ze(f, {
|
|
798
622
|
ref: this._setRef,
|
|
799
623
|
style: {
|
|
800
|
-
...
|
|
801
|
-
...
|
|
624
|
+
...v,
|
|
625
|
+
...m
|
|
802
626
|
},
|
|
803
|
-
...
|
|
804
|
-
}, !
|
|
627
|
+
...u
|
|
628
|
+
}, !b && s(A));
|
|
805
629
|
}
|
|
806
630
|
}
|
|
807
|
-
function
|
|
808
|
-
var
|
|
809
|
-
return !(
|
|
631
|
+
function is(e) {
|
|
632
|
+
var s = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, a = e.startIndex, r = e.stopIndex;
|
|
633
|
+
return !(a > n || r < s);
|
|
810
634
|
}
|
|
811
|
-
function
|
|
812
|
-
var
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
var rangeStopIndex = null;
|
|
816
|
-
for (var _index = startIndex; _index <= stopIndex; _index++) {
|
|
817
|
-
var loaded = isItemLoaded(_index);
|
|
818
|
-
if (!loaded) {
|
|
819
|
-
rangeStopIndex = _index;
|
|
820
|
-
if (rangeStartIndex === null) {
|
|
821
|
-
rangeStartIndex = _index;
|
|
822
|
-
}
|
|
823
|
-
} else if (rangeStopIndex !== null) {
|
|
824
|
-
unloadedRanges.push(rangeStartIndex, rangeStopIndex);
|
|
825
|
-
rangeStartIndex = rangeStopIndex = null;
|
|
826
|
-
}
|
|
635
|
+
function as(e) {
|
|
636
|
+
for (var s = e.isItemLoaded, n = e.itemCount, a = e.minimumBatchSize, r = e.startIndex, o = e.stopIndex, l = [], c = null, d = null, m = r; m <= o; m++) {
|
|
637
|
+
var f = s(m);
|
|
638
|
+
f ? d !== null && (l.push(c, d), c = d = null) : (d = m, c === null && (c = m));
|
|
827
639
|
}
|
|
828
|
-
if (
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
rangeStopIndex = _index2;
|
|
833
|
-
} else {
|
|
834
|
-
break;
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
unloadedRanges.push(rangeStartIndex, rangeStopIndex);
|
|
640
|
+
if (d !== null) {
|
|
641
|
+
for (var u = Math.min(Math.max(d, c + a - 1), n - 1), p = d + 1; p <= u && !s(p); p++)
|
|
642
|
+
d = p;
|
|
643
|
+
l.push(c, d);
|
|
838
644
|
}
|
|
839
|
-
if (
|
|
840
|
-
|
|
841
|
-
var
|
|
842
|
-
if (!
|
|
843
|
-
|
|
844
|
-
|
|
645
|
+
if (l.length)
|
|
646
|
+
for (; l[1] - l[0] + 1 < a && l[0] > 0; ) {
|
|
647
|
+
var C = l[0] - 1;
|
|
648
|
+
if (!s(C))
|
|
649
|
+
l[0] = C;
|
|
650
|
+
else
|
|
845
651
|
break;
|
|
846
|
-
}
|
|
847
652
|
}
|
|
848
|
-
|
|
849
|
-
return unloadedRanges;
|
|
653
|
+
return l;
|
|
850
654
|
}
|
|
851
|
-
var
|
|
852
|
-
if (!(
|
|
655
|
+
var rs = function(e, s) {
|
|
656
|
+
if (!(e instanceof s))
|
|
853
657
|
throw new TypeError("Cannot call a class as a function");
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
var descriptor = props[i2];
|
|
860
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
861
|
-
descriptor.configurable = true;
|
|
862
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
863
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
658
|
+
}, os = /* @__PURE__ */ (function() {
|
|
659
|
+
function e(s, n) {
|
|
660
|
+
for (var a = 0; a < n.length; a++) {
|
|
661
|
+
var r = n[a];
|
|
662
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(s, r.key, r);
|
|
864
663
|
}
|
|
865
664
|
}
|
|
866
|
-
return function(
|
|
867
|
-
|
|
868
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
869
|
-
return Constructor;
|
|
665
|
+
return function(s, n, a) {
|
|
666
|
+
return n && e(s.prototype, n), a && e(s, a), s;
|
|
870
667
|
};
|
|
871
|
-
}()
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
}
|
|
876
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
668
|
+
})(), ls = function(e, s) {
|
|
669
|
+
if (typeof s != "function" && s !== null)
|
|
670
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof s);
|
|
671
|
+
e.prototype = Object.create(s && s.prototype, {
|
|
877
672
|
constructor: {
|
|
878
|
-
value:
|
|
879
|
-
enumerable:
|
|
880
|
-
writable:
|
|
881
|
-
configurable:
|
|
673
|
+
value: e,
|
|
674
|
+
enumerable: !1,
|
|
675
|
+
writable: !0,
|
|
676
|
+
configurable: !0
|
|
882
677
|
}
|
|
883
|
-
});
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
var possibleConstructorReturn = function(self2, call) {
|
|
887
|
-
if (!self2) {
|
|
678
|
+
}), s && (Object.setPrototypeOf ? Object.setPrototypeOf(e, s) : e.__proto__ = s);
|
|
679
|
+
}, T2 = function(e, s) {
|
|
680
|
+
if (!e)
|
|
888
681
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
889
|
-
|
|
890
|
-
return call && (typeof call === "object" || typeof call === "function") ? call : self2;
|
|
682
|
+
return s && (typeof s == "object" || typeof s == "function") ? s : e;
|
|
891
683
|
};
|
|
892
|
-
(function(
|
|
893
|
-
|
|
894
|
-
function
|
|
895
|
-
var
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
_this._ensureRowsLoaded(visibleStartIndex, visibleStopIndex);
|
|
906
|
-
}, _this._setRef = function(listRef) {
|
|
907
|
-
_this._listRef = listRef;
|
|
908
|
-
}, _temp), possibleConstructorReturn(_this, _ret);
|
|
684
|
+
(function(e) {
|
|
685
|
+
ls(s, e);
|
|
686
|
+
function s() {
|
|
687
|
+
var n, a, r, o;
|
|
688
|
+
rs(this, s);
|
|
689
|
+
for (var l = arguments.length, c = Array(l), d = 0; d < l; d++)
|
|
690
|
+
c[d] = arguments[d];
|
|
691
|
+
return o = (a = (r = T2(this, (n = s.__proto__ || Object.getPrototypeOf(s)).call.apply(n, [this].concat(c))), r), r._lastRenderedStartIndex = -1, r._lastRenderedStopIndex = -1, r._memoizedUnloadedRanges = [], r._onItemsRendered = function(m) {
|
|
692
|
+
var f = m.visibleStartIndex, u = m.visibleStopIndex;
|
|
693
|
+
r._lastRenderedStartIndex = f, r._lastRenderedStopIndex = u, r._ensureRowsLoaded(f, u);
|
|
694
|
+
}, r._setRef = function(m) {
|
|
695
|
+
r._listRef = m;
|
|
696
|
+
}, a), T2(r, o);
|
|
909
697
|
}
|
|
910
|
-
|
|
698
|
+
return os(s, [{
|
|
911
699
|
key: "resetloadMoreItemsCache",
|
|
912
|
-
value: function
|
|
913
|
-
var
|
|
914
|
-
this._memoizedUnloadedRanges = [];
|
|
915
|
-
if (autoReload) {
|
|
916
|
-
this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
917
|
-
}
|
|
700
|
+
value: function() {
|
|
701
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
702
|
+
this._memoizedUnloadedRanges = [], a && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
918
703
|
}
|
|
919
704
|
}, {
|
|
920
705
|
key: "componentDidMount",
|
|
921
|
-
value: function
|
|
706
|
+
value: function() {
|
|
922
707
|
}
|
|
923
708
|
}, {
|
|
924
709
|
key: "render",
|
|
925
|
-
value: function
|
|
926
|
-
var
|
|
927
|
-
return
|
|
710
|
+
value: function() {
|
|
711
|
+
var a = this.props.children;
|
|
712
|
+
return a({
|
|
928
713
|
onItemsRendered: this._onItemsRendered,
|
|
929
714
|
ref: this._setRef
|
|
930
715
|
});
|
|
931
716
|
}
|
|
932
717
|
}, {
|
|
933
718
|
key: "_ensureRowsLoaded",
|
|
934
|
-
value: function
|
|
935
|
-
var
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
stopIndex: Math.min(itemCount - 1, stopIndex + threshold)
|
|
719
|
+
value: function(a, r) {
|
|
720
|
+
var o = this.props, l = o.isItemLoaded, c = o.itemCount, d = o.minimumBatchSize, m = d === void 0 ? 10 : d, f = o.threshold, u = f === void 0 ? 15 : f, p = as({
|
|
721
|
+
isItemLoaded: l,
|
|
722
|
+
itemCount: c,
|
|
723
|
+
minimumBatchSize: m,
|
|
724
|
+
startIndex: Math.max(0, a - u),
|
|
725
|
+
stopIndex: Math.min(c - 1, r + u)
|
|
942
726
|
});
|
|
943
|
-
|
|
944
|
-
return
|
|
945
|
-
}))
|
|
946
|
-
this._memoizedUnloadedRanges = unloadedRanges;
|
|
947
|
-
this._loadUnloadedRanges(unloadedRanges);
|
|
948
|
-
}
|
|
727
|
+
(this._memoizedUnloadedRanges.length !== p.length || this._memoizedUnloadedRanges.some(function(C, g) {
|
|
728
|
+
return p[g] !== C;
|
|
729
|
+
})) && (this._memoizedUnloadedRanges = p, this._loadUnloadedRanges(p));
|
|
949
730
|
}
|
|
950
731
|
}, {
|
|
951
732
|
key: "_loadUnloadedRanges",
|
|
952
|
-
value: function
|
|
953
|
-
var
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
}
|
|
970
|
-
if (typeof _this2._listRef.resetAfterIndex === "function") {
|
|
971
|
-
_this2._listRef.resetAfterIndex(startIndex, true);
|
|
972
|
-
} else {
|
|
973
|
-
if (typeof _this2._listRef._getItemStyleCache === "function") {
|
|
974
|
-
_this2._listRef._getItemStyleCache(-1);
|
|
975
|
-
}
|
|
976
|
-
_this2._listRef.forceUpdate();
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
for (var i2 = 0; i2 < unloadedRanges.length; i2 += 2) {
|
|
983
|
-
_loop(i2);
|
|
984
|
-
}
|
|
733
|
+
value: function(a) {
|
|
734
|
+
for (var r = this, o = this.props.loadMoreItems || this.props.loadMoreRows, l = function(m) {
|
|
735
|
+
var f = a[m], u = a[m + 1], p = o(f, u);
|
|
736
|
+
p?.then(function() {
|
|
737
|
+
if (is({
|
|
738
|
+
lastRenderedStartIndex: r._lastRenderedStartIndex,
|
|
739
|
+
lastRenderedStopIndex: r._lastRenderedStopIndex,
|
|
740
|
+
startIndex: f,
|
|
741
|
+
stopIndex: u
|
|
742
|
+
})) {
|
|
743
|
+
if (r._listRef == null)
|
|
744
|
+
return;
|
|
745
|
+
typeof r._listRef.resetAfterIndex == "function" ? r._listRef.resetAfterIndex(f, !0) : (typeof r._listRef._getItemStyleCache == "function" && r._listRef._getItemStyleCache(-1), r._listRef.forceUpdate());
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
}, c = 0; c < a.length; c += 2)
|
|
749
|
+
l(c);
|
|
985
750
|
}
|
|
986
|
-
}]);
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
const r$b = /* @__PURE__ */ styled_default("div")({
|
|
751
|
+
}]), s;
|
|
752
|
+
})(Me);
|
|
753
|
+
const cs = /* @__PURE__ */ i("div")({
|
|
990
754
|
name: "Container",
|
|
991
755
|
class: "culdu4a",
|
|
992
|
-
propsAsIs:
|
|
993
|
-
}),
|
|
756
|
+
propsAsIs: !1
|
|
757
|
+
}), ds = /* @__PURE__ */ i("div")({
|
|
994
758
|
name: "Position",
|
|
995
759
|
class: "pwf8e69",
|
|
996
|
-
propsAsIs:
|
|
997
|
-
}),
|
|
760
|
+
propsAsIs: !1
|
|
761
|
+
}), ps = /* @__PURE__ */ i("img")({
|
|
998
762
|
name: "Avatar",
|
|
999
763
|
class: "atf4yh4",
|
|
1000
|
-
propsAsIs:
|
|
1001
|
-
}),
|
|
764
|
+
propsAsIs: !1
|
|
765
|
+
}), hs = /* @__PURE__ */ i("div")({
|
|
1002
766
|
name: "AvatarPlaceholder",
|
|
1003
767
|
class: "a1dg29ja",
|
|
1004
|
-
propsAsIs:
|
|
1005
|
-
}),
|
|
768
|
+
propsAsIs: !1
|
|
769
|
+
}), ms = /* @__PURE__ */ i("div")({
|
|
1006
770
|
name: "Content",
|
|
1007
771
|
class: "c10a68rc",
|
|
1008
|
-
propsAsIs:
|
|
1009
|
-
}),
|
|
772
|
+
propsAsIs: !1
|
|
773
|
+
}), us = /* @__PURE__ */ i("div")({
|
|
1010
774
|
name: "NameContainer",
|
|
1011
775
|
class: "nc4kck5",
|
|
1012
|
-
propsAsIs:
|
|
1013
|
-
}),
|
|
776
|
+
propsAsIs: !1
|
|
777
|
+
}), fs = /* @__PURE__ */ i("span")({
|
|
1014
778
|
name: "Name",
|
|
1015
779
|
class: "njsrqgr",
|
|
1016
|
-
propsAsIs:
|
|
1017
|
-
}),
|
|
780
|
+
propsAsIs: !1
|
|
781
|
+
}), Cs = () => k, gs = /* @__PURE__ */ i(Cs())({
|
|
1018
782
|
name: "CurrentUserBadge",
|
|
1019
783
|
class: "c17uc4zr",
|
|
1020
|
-
propsAsIs:
|
|
1021
|
-
})
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
/* @__PURE__ */
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
/* @__PURE__ */
|
|
1036
|
-
d2 && /* @__PURE__ */ jsx(d$6, { name: "icon-star" })
|
|
784
|
+
propsAsIs: !0
|
|
785
|
+
}), vs = ({
|
|
786
|
+
friendsRank: e,
|
|
787
|
+
avatar: s,
|
|
788
|
+
name: n,
|
|
789
|
+
userId: a,
|
|
790
|
+
points: r,
|
|
791
|
+
isCurrentUser: o,
|
|
792
|
+
style: l
|
|
793
|
+
}) => /* @__PURE__ */ h(cs, { "data-name": a, style: l, children: [
|
|
794
|
+
/* @__PURE__ */ t(ds, { children: e || 0 }),
|
|
795
|
+
/* @__PURE__ */ h(ms, { children: [
|
|
796
|
+
s ? /* @__PURE__ */ t(ps, { alt: "leaderboard-item-avatar", src: s }) : /* @__PURE__ */ t(hs, { children: h2(n || "") }),
|
|
797
|
+
/* @__PURE__ */ h(us, { children: [
|
|
798
|
+
/* @__PURE__ */ t(fs, { children: n || "" }),
|
|
799
|
+
o && /* @__PURE__ */ t(gs, { name: "icon-star" })
|
|
1037
800
|
] })
|
|
1038
801
|
] }),
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
] })
|
|
1041
|
-
const u$3 = /* @__PURE__ */ styled_default("div")({
|
|
802
|
+
/* @__PURE__ */ t("div", { children: ae(r) })
|
|
803
|
+
] }), Is = /* @__PURE__ */ i("div")({
|
|
1042
804
|
name: "Container",
|
|
1043
805
|
class: "c16btbfp",
|
|
1044
|
-
propsAsIs:
|
|
1045
|
-
}),
|
|
1046
|
-
items:
|
|
1047
|
-
currentUserId:
|
|
1048
|
-
openItemDetail:
|
|
1049
|
-
fetchMore:
|
|
1050
|
-
scrollNode:
|
|
1051
|
-
hasMore:
|
|
806
|
+
propsAsIs: !1
|
|
807
|
+
}), $s = ({
|
|
808
|
+
items: e,
|
|
809
|
+
currentUserId: s,
|
|
810
|
+
openItemDetail: n,
|
|
811
|
+
fetchMore: a,
|
|
812
|
+
scrollNode: r,
|
|
813
|
+
hasMore: o
|
|
1052
814
|
}) => {
|
|
1053
|
-
const
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1056
|
-
}, [
|
|
1057
|
-
return /* @__PURE__ */
|
|
1058
|
-
loadMore:
|
|
1059
|
-
initialLoad:
|
|
1060
|
-
hasMore:
|
|
1061
|
-
useWindow:
|
|
1062
|
-
getScrollParent: () =>
|
|
1063
|
-
children: /* @__PURE__ */
|
|
815
|
+
const l = q((c) => {
|
|
816
|
+
const d = c.target.getAttribute("data-name");
|
|
817
|
+
d && n(d);
|
|
818
|
+
}, [n]);
|
|
819
|
+
return /* @__PURE__ */ t(Ye, {
|
|
820
|
+
loadMore: a,
|
|
821
|
+
initialLoad: !1,
|
|
822
|
+
hasMore: o,
|
|
823
|
+
useWindow: !1,
|
|
824
|
+
getScrollParent: () => r.current,
|
|
825
|
+
children: /* @__PURE__ */ t(Is, {
|
|
1064
826
|
"data-a": "intr",
|
|
1065
|
-
onClick:
|
|
1066
|
-
children:
|
|
1067
|
-
...
|
|
1068
|
-
isCurrentUser: !!
|
|
1069
|
-
},
|
|
827
|
+
onClick: l,
|
|
828
|
+
children: e.map((c) => /* @__PURE__ */ t(vs, {
|
|
829
|
+
...c,
|
|
830
|
+
isCurrentUser: !!s && s === c.userId
|
|
831
|
+
}, c.userId))
|
|
1070
832
|
})
|
|
1071
833
|
});
|
|
1072
|
-
}
|
|
1073
|
-
const i$a = /* @__PURE__ */ styled_default("div")({
|
|
834
|
+
}, bs = /* @__PURE__ */ i("div")({
|
|
1074
835
|
name: "Container",
|
|
1075
836
|
class: "c1itm4k7",
|
|
1076
|
-
propsAsIs:
|
|
1077
|
-
}),
|
|
837
|
+
propsAsIs: !1
|
|
838
|
+
}), As = /* @__PURE__ */ i("div")({
|
|
1078
839
|
name: "IconContainer",
|
|
1079
840
|
class: "i1w4fsni",
|
|
1080
|
-
propsAsIs:
|
|
1081
|
-
}),
|
|
841
|
+
propsAsIs: !1
|
|
842
|
+
}), ys = () => k, ws = /* @__PURE__ */ i(ys())({
|
|
1082
843
|
name: "InviteGameIcon",
|
|
1083
844
|
class: "i19m85r1",
|
|
1084
|
-
propsAsIs:
|
|
1085
|
-
}),
|
|
845
|
+
propsAsIs: !0
|
|
846
|
+
}), Ls = /* @__PURE__ */ i("div")({
|
|
1086
847
|
name: "Content",
|
|
1087
848
|
class: "c1mbu204",
|
|
1088
|
-
propsAsIs:
|
|
1089
|
-
}),
|
|
849
|
+
propsAsIs: !1
|
|
850
|
+
}), ks = /* @__PURE__ */ i("div")({
|
|
1090
851
|
name: "Heading",
|
|
1091
852
|
class: "h1amdqtv",
|
|
1092
|
-
propsAsIs:
|
|
1093
|
-
}),
|
|
853
|
+
propsAsIs: !1
|
|
854
|
+
}), _s = /* @__PURE__ */ i("div")({
|
|
1094
855
|
name: "Subtext",
|
|
1095
856
|
class: "s1lhlj9j",
|
|
1096
|
-
propsAsIs:
|
|
1097
|
-
}),
|
|
857
|
+
propsAsIs: !1
|
|
858
|
+
}), Ns = /* @__PURE__ */ i("div")({
|
|
1098
859
|
name: "LinkContainer",
|
|
1099
860
|
class: "l1wot35e",
|
|
1100
|
-
propsAsIs:
|
|
1101
|
-
}),
|
|
861
|
+
propsAsIs: !1
|
|
862
|
+
}), Ss = /* @__PURE__ */ i("div")({
|
|
1102
863
|
name: "LinkInfo",
|
|
1103
864
|
class: "l1jdw39q",
|
|
1104
|
-
propsAsIs:
|
|
1105
|
-
}),
|
|
865
|
+
propsAsIs: !1
|
|
866
|
+
}), Ts = /* @__PURE__ */ i("span")({
|
|
1106
867
|
name: "LinkTitle",
|
|
1107
868
|
class: "l1cr5mk",
|
|
1108
|
-
propsAsIs:
|
|
1109
|
-
}),
|
|
869
|
+
propsAsIs: !1
|
|
870
|
+
}), xs = /* @__PURE__ */ i("span")({
|
|
1110
871
|
name: "LinkAddress",
|
|
1111
872
|
class: "lvi87q4",
|
|
1112
|
-
propsAsIs:
|
|
1113
|
-
}),
|
|
873
|
+
propsAsIs: !1
|
|
874
|
+
}), Rs = () => k, Es = /* @__PURE__ */ i(Rs())({
|
|
1114
875
|
name: "LinkIcon",
|
|
1115
876
|
class: "l1pqlvw3",
|
|
1116
|
-
propsAsIs:
|
|
1117
|
-
})
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
className: a2
|
|
877
|
+
propsAsIs: !0
|
|
878
|
+
}), fe = ({
|
|
879
|
+
inviteLink: e,
|
|
880
|
+
inviteCardTitle: s,
|
|
881
|
+
inviteCardSubtext: n,
|
|
882
|
+
primaryColor: a,
|
|
883
|
+
className: r
|
|
1124
884
|
}) => {
|
|
1125
|
-
const
|
|
885
|
+
const o = E(null), [l, c] = ue(o), [d] = ie({
|
|
1126
886
|
type: "invitation",
|
|
1127
887
|
action: "sent",
|
|
1128
888
|
payload: {
|
|
1129
|
-
from:
|
|
889
|
+
from: le.MENU
|
|
1130
890
|
}
|
|
1131
891
|
});
|
|
1132
|
-
return /* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
/* @__PURE__ */
|
|
1135
|
-
/* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */
|
|
892
|
+
return /* @__PURE__ */ h(bs, { className: r, children: [
|
|
893
|
+
/* @__PURE__ */ t(As, { style: { backgroundColor: a }, children: /* @__PURE__ */ t(ws, { name: "invite-game-icon" }) }),
|
|
894
|
+
/* @__PURE__ */ h(Ls, { children: [
|
|
895
|
+
/* @__PURE__ */ t(ks, { children: s || "" }),
|
|
896
|
+
/* @__PURE__ */ t(_s, { children: n || "" })
|
|
1137
897
|
] }),
|
|
1138
|
-
|
|
1139
|
-
/* @__PURE__ */
|
|
1140
|
-
/* @__PURE__ */
|
|
1141
|
-
/* @__PURE__ */
|
|
898
|
+
e && /* @__PURE__ */ h(Ns, { ref: o, "data-a": "intr", onClick: d(() => l(e)), children: [
|
|
899
|
+
/* @__PURE__ */ h(Ss, { children: [
|
|
900
|
+
/* @__PURE__ */ t(Ts, { children: "Invite link" }),
|
|
901
|
+
/* @__PURE__ */ t(xs, { children: e })
|
|
1142
902
|
] }),
|
|
1143
|
-
/* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ t(Es, { name: "icon-copy" })
|
|
1144
904
|
] }),
|
|
1145
|
-
|
|
905
|
+
c
|
|
1146
906
|
] });
|
|
1147
|
-
}
|
|
1148
|
-
const r$9 = /* @__PURE__ */ styled_default("div")({
|
|
907
|
+
}, Vs = /* @__PURE__ */ i("div")({
|
|
1149
908
|
name: "InviteFriendsContainer",
|
|
1150
909
|
class: "i1c9dygq",
|
|
1151
|
-
propsAsIs:
|
|
1152
|
-
}),
|
|
1153
|
-
deepLink:
|
|
1154
|
-
}) => /* @__PURE__ */
|
|
1155
|
-
children: /* @__PURE__ */
|
|
1156
|
-
inviteLink:
|
|
910
|
+
propsAsIs: !1
|
|
911
|
+
}), Hs = ({
|
|
912
|
+
deepLink: e
|
|
913
|
+
}) => /* @__PURE__ */ t(Vs, {
|
|
914
|
+
children: /* @__PURE__ */ t(fe, {
|
|
915
|
+
inviteLink: e,
|
|
1157
916
|
inviteCardTitle: "It’s More Fun With Friends",
|
|
1158
917
|
inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
|
|
1159
918
|
})
|
|
1160
|
-
})
|
|
1161
|
-
const v$3 = /* @__PURE__ */ styled_default("div")({
|
|
919
|
+
}), zs = /* @__PURE__ */ i("div")({
|
|
1162
920
|
name: "InviteLinkContainer",
|
|
1163
921
|
class: "i1odbhm4",
|
|
1164
|
-
propsAsIs:
|
|
1165
|
-
}),
|
|
1166
|
-
gamification:
|
|
1167
|
-
scrollNode:
|
|
1168
|
-
scrollStore:
|
|
1169
|
-
leaderboardList:
|
|
922
|
+
propsAsIs: !1
|
|
923
|
+
}), Ms = ({
|
|
924
|
+
gamification: e,
|
|
925
|
+
scrollNode: s,
|
|
926
|
+
scrollStore: n,
|
|
927
|
+
leaderboardList: a
|
|
1170
928
|
}) => {
|
|
1171
|
-
const
|
|
1172
|
-
data:
|
|
1173
|
-
hasMore:
|
|
1174
|
-
loading:
|
|
1175
|
-
key:
|
|
1176
|
-
} =
|
|
1177
|
-
data:
|
|
1178
|
-
} =
|
|
1179
|
-
return !
|
|
1180
|
-
deepLink:
|
|
1181
|
-
}) : /* @__PURE__ */
|
|
1182
|
-
children: [/* @__PURE__ */
|
|
1183
|
-
items:
|
|
1184
|
-
scrollNode:
|
|
1185
|
-
scrollStore:
|
|
1186
|
-
fetchMore:
|
|
1187
|
-
hasMore:
|
|
1188
|
-
openItemDetail:
|
|
1189
|
-
currentUserId:
|
|
1190
|
-
},
|
|
1191
|
-
ref:
|
|
1192
|
-
children: /* @__PURE__ */
|
|
929
|
+
const r = E(null), {
|
|
930
|
+
data: o,
|
|
931
|
+
hasMore: l,
|
|
932
|
+
loading: c,
|
|
933
|
+
key: d
|
|
934
|
+
} = $(a.$store), {
|
|
935
|
+
data: m
|
|
936
|
+
} = $(e.deepLink.$store), [f, u] = ue(r);
|
|
937
|
+
return !o.length && !c ? /* @__PURE__ */ t(Hs, {
|
|
938
|
+
deepLink: m
|
|
939
|
+
}) : /* @__PURE__ */ h(S, {
|
|
940
|
+
children: [/* @__PURE__ */ t($s, {
|
|
941
|
+
items: o,
|
|
942
|
+
scrollNode: s,
|
|
943
|
+
scrollStore: n,
|
|
944
|
+
fetchMore: a.fetchMore,
|
|
945
|
+
hasMore: l,
|
|
946
|
+
openItemDetail: e.openUser,
|
|
947
|
+
currentUserId: e.currentUserId.get()
|
|
948
|
+
}, d), m && /* @__PURE__ */ t(zs, {
|
|
949
|
+
ref: r,
|
|
950
|
+
children: /* @__PURE__ */ t(ss, {
|
|
1193
951
|
"data-a": "intr",
|
|
1194
|
-
onClick: () =>
|
|
952
|
+
onClick: () => f(m),
|
|
1195
953
|
title: "Invite Friends",
|
|
1196
954
|
description: "Challenge them now!"
|
|
1197
955
|
})
|
|
1198
|
-
}),
|
|
956
|
+
}), u]
|
|
1199
957
|
});
|
|
1200
|
-
},
|
|
1201
|
-
gamification:
|
|
1202
|
-
scrollNode:
|
|
1203
|
-
scrollStore:
|
|
1204
|
-
}) =>
|
|
1205
|
-
leaderboardList:
|
|
1206
|
-
gamification:
|
|
1207
|
-
scrollNode:
|
|
1208
|
-
scrollStore:
|
|
1209
|
-
}) : null
|
|
1210
|
-
const s$5 = () => r$e, i$9 = /* @__PURE__ */ styled_default(s$5())({
|
|
958
|
+
}, Os = ({
|
|
959
|
+
gamification: e,
|
|
960
|
+
scrollNode: s,
|
|
961
|
+
scrollStore: n
|
|
962
|
+
}) => e.leaderboardList ? /* @__PURE__ */ t(Ms, {
|
|
963
|
+
leaderboardList: e.leaderboardList,
|
|
964
|
+
gamification: e,
|
|
965
|
+
scrollNode: s,
|
|
966
|
+
scrollStore: n
|
|
967
|
+
}) : null, Ds = () => ce, Fs = /* @__PURE__ */ i(Ds())({
|
|
1211
968
|
name: "Container",
|
|
1212
969
|
class: "cll3md7",
|
|
1213
|
-
propsAsIs:
|
|
1214
|
-
}),
|
|
970
|
+
propsAsIs: !0
|
|
971
|
+
}), Bs = () => Je, qs = /* @__PURE__ */ i(Bs())({
|
|
1215
972
|
name: "ActionBtn",
|
|
1216
973
|
class: "a10g1iik",
|
|
1217
|
-
propsAsIs:
|
|
1218
|
-
})
|
|
1219
|
-
|
|
1220
|
-
/* @__PURE__ */
|
|
1221
|
-
|
|
1222
|
-
] });
|
|
1223
|
-
const s$4 = () => r$e, a$8 = /* @__PURE__ */ styled_default(s$4())({
|
|
974
|
+
propsAsIs: !0
|
|
975
|
+
}), Us = ({ questionId: e, ...s }) => /* @__PURE__ */ h(Fs, { "data-a": "intr", "data-name": e, children: [
|
|
976
|
+
/* @__PURE__ */ t(je, { questionId: e, ...s }),
|
|
977
|
+
/* @__PURE__ */ t(qs, { "data-a": "intr", "data-name": e, children: "View Insight" })
|
|
978
|
+
] }), js = () => ce, Ps = /* @__PURE__ */ i(js())({
|
|
1224
979
|
name: "Container",
|
|
1225
980
|
class: "cl56x6b",
|
|
1226
|
-
propsAsIs:
|
|
1227
|
-
}),
|
|
981
|
+
propsAsIs: !0
|
|
982
|
+
}), Ws = /* @__PURE__ */ i("button")({
|
|
1228
983
|
name: "ActionButton",
|
|
1229
984
|
class: "a11pzf92",
|
|
1230
|
-
propsAsIs:
|
|
1231
|
-
}),
|
|
985
|
+
propsAsIs: !1
|
|
986
|
+
}), Zs = /* @__PURE__ */ i("blockquote")({
|
|
1232
987
|
name: "Quote",
|
|
1233
988
|
class: "q1hbaleq",
|
|
1234
|
-
propsAsIs:
|
|
1235
|
-
})
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
|
|
1240
|
-
] });
|
|
1241
|
-
const e$b = /* @__PURE__ */ styled_default("div")({
|
|
989
|
+
propsAsIs: !1
|
|
990
|
+
}), Gs = ({ ...e }) => /* @__PURE__ */ h(Ps, { "data-a": "intr", "data-name": e.tweetId, children: [
|
|
991
|
+
e.title && /* @__PURE__ */ t(Zs, { children: e.title }),
|
|
992
|
+
/* @__PURE__ */ t(re, { ...e }),
|
|
993
|
+
/* @__PURE__ */ t(Ws, { "data-a": "intr", "data-name": e.tweetId, children: "View Insight" })
|
|
994
|
+
] }), x2 = /* @__PURE__ */ i("div")({
|
|
1242
995
|
name: "QuestionsContainer",
|
|
1243
996
|
class: "qvghv3l",
|
|
1244
|
-
propsAsIs:
|
|
1245
|
-
})
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
const a
|
|
1269
|
-
|
|
1270
|
-
return /* @__PURE__ */ jsx(k$2, { openQuestion: r2, questions: e2.data, controlVideo: o2 == null ? void 0 : o2.controlVideoPlayer });
|
|
1271
|
-
};
|
|
1272
|
-
const b$3 = ({ userSummary: r2 }) => {
|
|
1273
|
-
var e2;
|
|
1274
|
-
const [t2, s2] = useState(void 0);
|
|
1275
|
-
return useEffect(() => {
|
|
1276
|
-
const c2 = r2.$store.subscribe((o2) => {
|
|
1277
|
-
o2 && s2(o2);
|
|
997
|
+
propsAsIs: !1
|
|
998
|
+
}), Qs = ({ questions: e, openQuestion: s, controlVideo: n }) => e ? /* @__PURE__ */ t(x2, { "data-a": "intr", onClick: (r) => {
|
|
999
|
+
const o = r.target.getAttribute("data-name");
|
|
1000
|
+
o && (s0(), s(o, { openedFrom: "list" }));
|
|
1001
|
+
}, children: e?.map((r) => {
|
|
1002
|
+
if (r.type === "question" && r.attributes?.attributes.case === "question") {
|
|
1003
|
+
const o = r.attributes.attributes.value;
|
|
1004
|
+
return /* @__PURE__ */ t(Xe, { ...o }, o.questionId);
|
|
1005
|
+
}
|
|
1006
|
+
if (r.type === "insight" && r.attributes?.attributes.case === "insight") {
|
|
1007
|
+
const o = r.attributes.attributes.value;
|
|
1008
|
+
return /* @__PURE__ */ t(Us, { controlVideo: n, ...o }, o.questionId);
|
|
1009
|
+
}
|
|
1010
|
+
if (r.type === "tweet" && r.attributes?.attributes.case === "tweet") {
|
|
1011
|
+
const o = r.attributes.attributes.value, l = r.attributes.id;
|
|
1012
|
+
return /* @__PURE__ */ t(Gs, { controlVideo: n, ...o, tweetId: l }, l);
|
|
1013
|
+
}
|
|
1014
|
+
return null;
|
|
1015
|
+
}) }) : /* @__PURE__ */ t(x2, { children: Array.from({ length: 5 }).map((r, o) => /* @__PURE__ */ t(e0, {}, o)) }), Ks = ({ store: e, openQuestion: s }) => {
|
|
1016
|
+
const { sdk: n } = p2(), a = $(e);
|
|
1017
|
+
return /* @__PURE__ */ t(Qs, { openQuestion: s, questions: a.data, controlVideo: n?.controlVideoPlayer });
|
|
1018
|
+
}, Ys = ({ userSummary: e }) => {
|
|
1019
|
+
const [s, n] = w(void 0);
|
|
1020
|
+
return y(() => {
|
|
1021
|
+
const a = e.$store.subscribe((r) => {
|
|
1022
|
+
r && n(r);
|
|
1278
1023
|
});
|
|
1279
1024
|
return () => {
|
|
1280
|
-
|
|
1025
|
+
a();
|
|
1281
1026
|
};
|
|
1282
|
-
}, [
|
|
1283
|
-
}
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
var b2;
|
|
1288
|
-
h2(r2), l2 === false && (((b2 = c2.current) == null ? void 0 : b2.getBoundingClientRect().y) || 0) < 0 && I$9(c2, g2.size, { behavior: "instant" });
|
|
1027
|
+
}, [e]), /* @__PURE__ */ t(pe, { loading: !s?.summary, ...s?.summary, successRate: s?.percentage?.correct });
|
|
1028
|
+
}, Js = ({ gamification: e, className: s, scrollStore: n, scrollNode: a, appNode: r, style: o, responsiveStore: l }) => {
|
|
1029
|
+
const { tabsShown: c } = $(n, { keys: ["tabsShown"] }), d = $(e.friendsTabEnabled), [m, f] = w(P.HOME), [, u] = we(), { sdkInDesktopView: p, screen: C } = $(l, { keys: ["sdkInDesktopView"] }), g = (v) => {
|
|
1030
|
+
u(() => {
|
|
1031
|
+
f(v), p === !1 && (r.current?.getBoundingClientRect().y || 0) < 0 && m2(r, C.size, { behavior: "instant" });
|
|
1289
1032
|
});
|
|
1290
1033
|
};
|
|
1291
|
-
|
|
1292
|
-
if (
|
|
1293
|
-
|
|
1034
|
+
y(() => n.subscribe((v) => {
|
|
1035
|
+
if (v.scrollPosition === 0) {
|
|
1036
|
+
n.setKey("tabsShown", !0);
|
|
1294
1037
|
return;
|
|
1295
1038
|
}
|
|
1296
|
-
|
|
1297
|
-
}), [
|
|
1298
|
-
|
|
1299
|
-
}, [
|
|
1300
|
-
let
|
|
1301
|
-
return
|
|
1302
|
-
|
|
1303
|
-
|
|
1039
|
+
l.get().sdkInDesktopView ? n.setKey("tabsShown", v.scrollDirection === "backward") : n.setKey("tabsShown", v.scrollDirection === "forward");
|
|
1040
|
+
}), [n, l]), y(() => {
|
|
1041
|
+
d || f(P.HOME);
|
|
1042
|
+
}, [d]);
|
|
1043
|
+
let I = "0px";
|
|
1044
|
+
return p ? I = c ? "0px" : "calc(0px - var(--header-height))" : I = c ? "var(--header-height)" : "0px", /* @__PURE__ */ h(Le, { className: D(s, "SL-Tabs", "sl-hide-on-modal"), style: o, children: [
|
|
1045
|
+
d && /* @__PURE__ */ t(
|
|
1046
|
+
ke,
|
|
1304
1047
|
{
|
|
1305
1048
|
style: {
|
|
1306
|
-
top:
|
|
1049
|
+
top: I
|
|
1307
1050
|
},
|
|
1308
|
-
children: /* @__PURE__ */
|
|
1051
|
+
children: /* @__PURE__ */ t(q0, { activePage: m, toggleActivePage: g })
|
|
1309
1052
|
}
|
|
1310
1053
|
),
|
|
1311
|
-
|
|
1312
|
-
/* @__PURE__ */
|
|
1313
|
-
/* @__PURE__ */
|
|
1054
|
+
m === P.HOME && /* @__PURE__ */ h(S, { children: [
|
|
1055
|
+
/* @__PURE__ */ t(_e, { children: /* @__PURE__ */ t(Ne, { children: /* @__PURE__ */ t(Ys, { userSummary: e.userSummary }) }) }),
|
|
1056
|
+
/* @__PURE__ */ t(Se, { style: { flex: 1 }, children: /* @__PURE__ */ t(Ks, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
|
|
1314
1057
|
] }),
|
|
1315
|
-
|
|
1058
|
+
m === P.LEADERBOARD && /* @__PURE__ */ t(Te, { children: /* @__PURE__ */ t(Os, { scrollStore: n, scrollNode: a, gamification: e }) })
|
|
1316
1059
|
] });
|
|
1317
|
-
}
|
|
1318
|
-
const R$1 = () => f$c, u$2 = /* @__PURE__ */ styled_default(R$1())({
|
|
1060
|
+
}, Xs = () => n2, R2 = /* @__PURE__ */ i(Xs())({
|
|
1319
1061
|
name: "OpenedContainer",
|
|
1320
1062
|
class: "ouvguos",
|
|
1321
|
-
propsAsIs:
|
|
1322
|
-
}),
|
|
1063
|
+
propsAsIs: !0
|
|
1064
|
+
}), E2 = "t1eu4lbg", et = /* @__PURE__ */ i("div")({
|
|
1323
1065
|
name: "UserContainer",
|
|
1324
1066
|
class: "uuv2xqo",
|
|
1325
|
-
propsAsIs:
|
|
1326
|
-
}),
|
|
1327
|
-
correct:
|
|
1328
|
-
incorrect:
|
|
1067
|
+
propsAsIs: !1
|
|
1068
|
+
}), st = ({
|
|
1069
|
+
correct: e,
|
|
1070
|
+
incorrect: s
|
|
1329
1071
|
}) => {
|
|
1330
|
-
const
|
|
1331
|
-
return
|
|
1332
|
-
},
|
|
1333
|
-
gamification:
|
|
1334
|
-
scrollStore:
|
|
1335
|
-
className:
|
|
1336
|
-
appNode:
|
|
1337
|
-
scrollNode:
|
|
1338
|
-
responsiveStore:
|
|
1339
|
-
}) => /* @__PURE__ */
|
|
1340
|
-
appNode:
|
|
1341
|
-
scrollStore:
|
|
1342
|
-
scrollNode:
|
|
1343
|
-
className:
|
|
1344
|
-
gamification:
|
|
1345
|
-
responsiveStore:
|
|
1346
|
-
}),
|
|
1347
|
-
gamification:
|
|
1348
|
-
muted:
|
|
1349
|
-
sdk:
|
|
1350
|
-
className:
|
|
1351
|
-
appNode:
|
|
1352
|
-
responsiveStore:
|
|
1072
|
+
const n = e + s;
|
|
1073
|
+
return n === 0 ? 0 : Math.round(e / n * 100);
|
|
1074
|
+
}, Ma = ({
|
|
1075
|
+
gamification: e,
|
|
1076
|
+
scrollStore: s,
|
|
1077
|
+
className: n,
|
|
1078
|
+
appNode: a,
|
|
1079
|
+
scrollNode: r,
|
|
1080
|
+
responsiveStore: o
|
|
1081
|
+
}) => /* @__PURE__ */ t(Js, {
|
|
1082
|
+
appNode: a,
|
|
1083
|
+
scrollStore: s,
|
|
1084
|
+
scrollNode: r,
|
|
1085
|
+
className: n,
|
|
1086
|
+
gamification: e,
|
|
1087
|
+
responsiveStore: o
|
|
1088
|
+
}), tt = ({
|
|
1089
|
+
gamification: e,
|
|
1090
|
+
muted: s,
|
|
1091
|
+
sdk: n,
|
|
1092
|
+
className: a,
|
|
1093
|
+
appNode: r,
|
|
1094
|
+
responsiveStore: o
|
|
1353
1095
|
}) => {
|
|
1354
1096
|
const {
|
|
1355
|
-
topNavigation:
|
|
1356
|
-
} =
|
|
1357
|
-
sdkInDesktopView:
|
|
1358
|
-
} =
|
|
1097
|
+
topNavigation: l
|
|
1098
|
+
} = p2(), c = $(e.openedQuestionId), d = $(e.openedQuestion.$store), m = $(e.openedUser || de(void 0)), {
|
|
1099
|
+
sdkInDesktopView: f
|
|
1100
|
+
} = $(o, {
|
|
1359
1101
|
keys: ["sdkInDesktopView"]
|
|
1360
1102
|
}), {
|
|
1361
|
-
hiding:
|
|
1362
|
-
onAnimationEnd:
|
|
1363
|
-
} =
|
|
1364
|
-
if (!
|
|
1103
|
+
hiding: u,
|
|
1104
|
+
onAnimationEnd: p
|
|
1105
|
+
} = xe();
|
|
1106
|
+
if (!c && !m)
|
|
1365
1107
|
return null;
|
|
1366
|
-
const
|
|
1367
|
-
className:
|
|
1368
|
-
hiding:
|
|
1369
|
-
onAnimationEnd:
|
|
1370
|
-
children: /* @__PURE__ */
|
|
1371
|
-
muted:
|
|
1372
|
-
sdk:
|
|
1373
|
-
gamification:
|
|
1108
|
+
const C = d ? /* @__PURE__ */ t(R2, {
|
|
1109
|
+
className: D(a, !l && E2),
|
|
1110
|
+
hiding: u,
|
|
1111
|
+
onAnimationEnd: p,
|
|
1112
|
+
children: /* @__PURE__ */ t(Pe, {
|
|
1113
|
+
muted: s,
|
|
1114
|
+
sdk: n,
|
|
1115
|
+
gamification: e
|
|
1374
1116
|
})
|
|
1375
|
-
}) :
|
|
1376
|
-
className:
|
|
1377
|
-
hiding:
|
|
1378
|
-
onAnimationEnd:
|
|
1379
|
-
children: /* @__PURE__ */
|
|
1380
|
-
children: [/* @__PURE__ */
|
|
1117
|
+
}) : m ? /* @__PURE__ */ t(R2, {
|
|
1118
|
+
className: D(a, !l && E2),
|
|
1119
|
+
hiding: u,
|
|
1120
|
+
onAnimationEnd: p,
|
|
1121
|
+
children: /* @__PURE__ */ h(et, {
|
|
1122
|
+
children: [/* @__PURE__ */ t(We, {
|
|
1381
1123
|
label: "Friend's Rank",
|
|
1382
|
-
close:
|
|
1383
|
-
}), /* @__PURE__ */
|
|
1384
|
-
children: /* @__PURE__ */
|
|
1385
|
-
...
|
|
1386
|
-
successRate:
|
|
1124
|
+
close: e.closeUser
|
|
1125
|
+
}), /* @__PURE__ */ t(Re, {
|
|
1126
|
+
children: /* @__PURE__ */ t(pe, {
|
|
1127
|
+
...m,
|
|
1128
|
+
successRate: st(m)
|
|
1387
1129
|
})
|
|
1388
1130
|
})]
|
|
1389
1131
|
})
|
|
1390
1132
|
}) : null;
|
|
1391
|
-
return /* @__PURE__ */
|
|
1392
|
-
container:
|
|
1393
|
-
useContainer: !
|
|
1394
|
-
children:
|
|
1133
|
+
return /* @__PURE__ */ t(me, {
|
|
1134
|
+
container: r,
|
|
1135
|
+
useContainer: !f,
|
|
1136
|
+
children: C
|
|
1395
1137
|
});
|
|
1396
|
-
}
|
|
1397
|
-
const
|
|
1398
|
-
|
|
1399
|
-
d$4,
|
|
1138
|
+
}, nt = De(() => import("./gamification-feature.js")), it = ({ sdk: e, feature: s, className: n, scrollStore: a, appNode: r, scrollNode: o, responsiveStore: l }) => {
|
|
1139
|
+
const c = z(() => s && s.featureConfig.get().type === V.GAMES ? /* @__PURE__ */ t(p0, { className: n, sdk: e, feature: s, children: /* @__PURE__ */ t(
|
|
1140
|
+
nt,
|
|
1400
1141
|
{
|
|
1401
|
-
appNode:
|
|
1402
|
-
scrollStore:
|
|
1403
|
-
scrollNode:
|
|
1404
|
-
className:
|
|
1405
|
-
responsiveStore:
|
|
1406
|
-
gamification:
|
|
1142
|
+
appNode: r,
|
|
1143
|
+
scrollStore: a,
|
|
1144
|
+
scrollNode: o,
|
|
1145
|
+
className: n,
|
|
1146
|
+
responsiveStore: l,
|
|
1147
|
+
gamification: s
|
|
1407
1148
|
}
|
|
1408
|
-
) }) : null, [
|
|
1409
|
-
return /* @__PURE__ */
|
|
1410
|
-
|
|
1149
|
+
) }) : null, [e, s, n, l, a, o, r]);
|
|
1150
|
+
return /* @__PURE__ */ t(
|
|
1151
|
+
Oe,
|
|
1411
1152
|
{
|
|
1412
|
-
fallback: /* @__PURE__ */
|
|
1413
|
-
children:
|
|
1153
|
+
fallback: /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
|
|
1154
|
+
children: c
|
|
1414
1155
|
}
|
|
1415
1156
|
);
|
|
1416
|
-
},
|
|
1417
|
-
|
|
1157
|
+
}, at = ({ feature: e, sdk: s, muted: n, className: a, appNode: r, responsiveStore: o }) => e && e.featureConfig.get().type === V.GAMES ? /* @__PURE__ */ t(
|
|
1158
|
+
tt,
|
|
1418
1159
|
{
|
|
1419
|
-
className:
|
|
1420
|
-
appNode:
|
|
1421
|
-
muted:
|
|
1422
|
-
sdk:
|
|
1423
|
-
responsiveStore:
|
|
1424
|
-
gamification:
|
|
1160
|
+
className: a,
|
|
1161
|
+
appNode: r,
|
|
1162
|
+
muted: n,
|
|
1163
|
+
sdk: s,
|
|
1164
|
+
responsiveStore: o,
|
|
1165
|
+
gamification: e
|
|
1425
1166
|
}
|
|
1426
1167
|
) : null;
|
|
1427
1168
|
window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
|
|
1428
|
-
function
|
|
1429
|
-
return
|
|
1430
|
-
(
|
|
1431
|
-
|
|
1169
|
+
function rt(e) {
|
|
1170
|
+
return e instanceof DOMException && // everything except Firefox
|
|
1171
|
+
(e.code === 22 || // Firefox
|
|
1172
|
+
e.code === 1014 || // test name field too, because code might not be present
|
|
1432
1173
|
// everything except Firefox
|
|
1433
|
-
|
|
1434
|
-
|
|
1174
|
+
e.name === "QuotaExceededError" || // Firefox
|
|
1175
|
+
e.name === "NS_ERROR_DOM_QUOTA_REACHED");
|
|
1435
1176
|
}
|
|
1436
|
-
class
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
for (const key in window.localStorage) {
|
|
1443
|
-
if (key.startsWith(this.prefix)) {
|
|
1444
|
-
this.storage.removeItem(key);
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
});
|
|
1448
|
-
__publicField(this, "generateKey", (keyParts) => `${this.prefix}${this.delimiter}${keyParts.join(this.delimiter)}`);
|
|
1449
|
-
__publicField(this, "write", (...keyParts) => {
|
|
1450
|
-
const value = keyParts.pop() || "";
|
|
1451
|
-
const key = this.generateKey(keyParts);
|
|
1452
|
-
try {
|
|
1453
|
-
this.storage.setItem(key, value);
|
|
1454
|
-
} catch (err) {
|
|
1455
|
-
if (isQuotaExceededError(err) && this.storage === window.sessionStorage) {
|
|
1456
|
-
window.sessionStorage.removeItem("slstreamlogs");
|
|
1457
|
-
this.storage.setItem(key, value);
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
});
|
|
1461
|
-
__publicField(this, "read", (...keyParts) => {
|
|
1462
|
-
const value = this.storage.getItem(this.generateKey(keyParts));
|
|
1463
|
-
return value === null ? void 0 : value;
|
|
1464
|
-
});
|
|
1465
|
-
__publicField(this, "remove", (...keyParts) => {
|
|
1466
|
-
this.storage.removeItem(this.generateKey(keyParts));
|
|
1467
|
-
});
|
|
1468
|
-
this.prefix = `sl-sdk${this.delimiter}${prefix}`;
|
|
1469
|
-
this.storage = storage;
|
|
1177
|
+
class ot {
|
|
1178
|
+
delimiter = ":";
|
|
1179
|
+
prefix;
|
|
1180
|
+
storage;
|
|
1181
|
+
constructor(s = "main", n = window.localStorage) {
|
|
1182
|
+
this.prefix = `sl-sdk${this.delimiter}${s}`, this.storage = n;
|
|
1470
1183
|
}
|
|
1184
|
+
clear = () => {
|
|
1185
|
+
for (const s in window.localStorage)
|
|
1186
|
+
s.startsWith(this.prefix) && this.storage.removeItem(s);
|
|
1187
|
+
};
|
|
1188
|
+
generateKey = (s) => `${this.prefix}${this.delimiter}${s.join(this.delimiter)}`;
|
|
1189
|
+
write = (...s) => {
|
|
1190
|
+
const n = s.pop() || "", a = this.generateKey(s);
|
|
1191
|
+
try {
|
|
1192
|
+
this.storage.setItem(a, n);
|
|
1193
|
+
} catch (r) {
|
|
1194
|
+
rt(r) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(a, n));
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1197
|
+
read = (...s) => {
|
|
1198
|
+
const n = this.storage.getItem(this.generateKey(s));
|
|
1199
|
+
return n === null ? void 0 : n;
|
|
1200
|
+
};
|
|
1201
|
+
remove = (...s) => {
|
|
1202
|
+
this.storage.removeItem(this.generateKey(s));
|
|
1203
|
+
};
|
|
1471
1204
|
}
|
|
1472
|
-
var
|
|
1473
|
-
(function(
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
Code.Unknown,
|
|
1486
|
-
Code.Internal,
|
|
1487
|
-
Code.DeadlineExceeded,
|
|
1488
|
-
Code.ResourceExhausted,
|
|
1489
|
-
Code.FailedPrecondition,
|
|
1490
|
-
Code.Unavailable,
|
|
1491
|
-
Code.DataLoss
|
|
1492
|
-
]);
|
|
1493
|
-
createLogger("grpc:retry");
|
|
1494
|
-
({
|
|
1495
|
-
retryAttempts: createContextKey(10, { description: "Number of attempts to retry" }),
|
|
1496
|
-
retryDelay: createContextKey(3e4, { description: "Max delay between retries in milliseconds" })
|
|
1497
|
-
});
|
|
1498
|
-
var KEY_PREFIX$2;
|
|
1499
|
-
(function(KEY_PREFIX2) {
|
|
1500
|
-
KEY_PREFIX2["SCHEMA"] = "schema";
|
|
1501
|
-
KEY_PREFIX2["EXTERNAL_TOKEN"] = "eToken";
|
|
1502
|
-
KEY_PREFIX2["TOKEN"] = "token";
|
|
1503
|
-
})(KEY_PREFIX$2 || (KEY_PREFIX$2 = {}));
|
|
1504
|
-
class UserStorage extends Storage {
|
|
1205
|
+
var V2;
|
|
1206
|
+
(function(e) {
|
|
1207
|
+
e.Init = "init", e.Ready = "ready", e.Connecting = "connecting", e.Connected = "connected", e.Disconnected = "disconnected", e.Failed = "failed", e.Reconnect = "reconnect", e.Reconnecting = "reconnecting";
|
|
1208
|
+
})(V2 || (V2 = {}));
|
|
1209
|
+
Z("grpc:stream");
|
|
1210
|
+
F.Unknown, F.Internal, F.DeadlineExceeded, F.ResourceExhausted, F.FailedPrecondition, F.Unavailable, F.DataLoss;
|
|
1211
|
+
Z("grpc:retry");
|
|
1212
|
+
C2(10, { description: "Number of attempts to retry" }), C2(3e4, { description: "Max delay between retries in milliseconds" });
|
|
1213
|
+
var H;
|
|
1214
|
+
(function(e) {
|
|
1215
|
+
e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
|
|
1216
|
+
})(H || (H = {}));
|
|
1217
|
+
class lt extends ot {
|
|
1505
1218
|
constructor() {
|
|
1506
1219
|
super("user");
|
|
1507
|
-
// Schema
|
|
1508
|
-
__publicField(this, "setSchema", (value) => {
|
|
1509
|
-
this.write(KEY_PREFIX$2.SCHEMA, value);
|
|
1510
|
-
});
|
|
1511
|
-
__publicField(this, "getSchema", () => {
|
|
1512
|
-
return this.read(KEY_PREFIX$2.SCHEMA);
|
|
1513
|
-
});
|
|
1514
|
-
// Token
|
|
1515
|
-
__publicField(this, "setToken", (value) => {
|
|
1516
|
-
this.write(KEY_PREFIX$2.TOKEN, value);
|
|
1517
|
-
});
|
|
1518
|
-
__publicField(this, "getToken", () => {
|
|
1519
|
-
return this.read(KEY_PREFIX$2.TOKEN);
|
|
1520
|
-
});
|
|
1521
|
-
// External Token
|
|
1522
|
-
__publicField(this, "setExternalToken", (value) => {
|
|
1523
|
-
this.write(KEY_PREFIX$2.EXTERNAL_TOKEN, value);
|
|
1524
|
-
});
|
|
1525
|
-
__publicField(this, "getExternalToken", () => {
|
|
1526
|
-
return this.read(KEY_PREFIX$2.EXTERNAL_TOKEN);
|
|
1527
|
-
});
|
|
1528
|
-
__publicField(this, "removeToken", () => {
|
|
1529
|
-
this.remove(KEY_PREFIX$2.TOKEN);
|
|
1530
|
-
});
|
|
1531
1220
|
}
|
|
1221
|
+
// Schema
|
|
1222
|
+
setSchema = (s) => {
|
|
1223
|
+
this.write(H.SCHEMA, s);
|
|
1224
|
+
};
|
|
1225
|
+
getSchema = () => this.read(H.SCHEMA);
|
|
1226
|
+
// Token
|
|
1227
|
+
setToken = (s) => {
|
|
1228
|
+
this.write(H.TOKEN, s);
|
|
1229
|
+
};
|
|
1230
|
+
getToken = () => this.read(H.TOKEN);
|
|
1231
|
+
// External Token
|
|
1232
|
+
setExternalToken = (s) => {
|
|
1233
|
+
this.write(H.EXTERNAL_TOKEN, s);
|
|
1234
|
+
};
|
|
1235
|
+
getExternalToken = () => this.read(H.EXTERNAL_TOKEN);
|
|
1236
|
+
removeToken = () => {
|
|
1237
|
+
this.remove(H.TOKEN);
|
|
1238
|
+
};
|
|
1532
1239
|
}
|
|
1533
|
-
var
|
|
1534
|
-
(function(
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
})(
|
|
1541
|
-
var
|
|
1542
|
-
(function(
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
})(
|
|
1553
|
-
|
|
1554
|
-
(
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
new UserStorage();
|
|
1566
|
-
createLogger("video_player");
|
|
1567
|
-
var OnboardingStatus;
|
|
1568
|
-
(function(OnboardingStatus2) {
|
|
1569
|
-
OnboardingStatus2["Unset"] = "unset";
|
|
1570
|
-
OnboardingStatus2["Required"] = "required";
|
|
1571
|
-
OnboardingStatus2["Optional"] = "optional";
|
|
1572
|
-
OnboardingStatus2["Completed"] = "completed";
|
|
1573
|
-
OnboardingStatus2["Disabled"] = "disabled";
|
|
1574
|
-
OnboardingStatus2["Unavailable"] = "unavailable";
|
|
1575
|
-
})(OnboardingStatus || (OnboardingStatus = {}));
|
|
1576
|
-
/* @__PURE__ */ new Set([QuestionType.POLL, QuestionType.PREDICTION, QuestionType.TRIVIA]);
|
|
1577
|
-
const AvailableFeatures = {
|
|
1578
|
-
[SdkOverlayType.GAMES]: true
|
|
1579
|
-
};
|
|
1580
|
-
const n$a = /* @__PURE__ */ styled_default("div")({
|
|
1240
|
+
var H2;
|
|
1241
|
+
(function(e) {
|
|
1242
|
+
e.DISABLED = "disabled", e.INITIALIZATION = "initialization", e.READY = "ready", e.FAILED = "failed", e.SUSPENDED = "suspended";
|
|
1243
|
+
})(H2 || (H2 = {}));
|
|
1244
|
+
var z2;
|
|
1245
|
+
(function(e) {
|
|
1246
|
+
e.SHOWED = "showed", e.EVENT = "ev";
|
|
1247
|
+
})(z2 || (z2 = {}));
|
|
1248
|
+
var M2;
|
|
1249
|
+
(function(e) {
|
|
1250
|
+
e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.QUESTION_RECEIVED = "q-received", e.QUESTION_OPENED = "q-opened";
|
|
1251
|
+
})(M2 || (M2 = {}));
|
|
1252
|
+
var O2;
|
|
1253
|
+
(function(e) {
|
|
1254
|
+
e.ALLOWED = "allowed", e.DISALLOWED = "disallowed";
|
|
1255
|
+
})(O2 || (O2 = {}));
|
|
1256
|
+
var D2;
|
|
1257
|
+
(function(e) {
|
|
1258
|
+
e.UNKNOWN = "unknown", e.ALREADY_VOTED = "already_voted";
|
|
1259
|
+
})(D2 || (D2 = {}));
|
|
1260
|
+
Z("deep_link");
|
|
1261
|
+
Z("bypass");
|
|
1262
|
+
new lt();
|
|
1263
|
+
Z("video_player");
|
|
1264
|
+
var F2;
|
|
1265
|
+
(function(e) {
|
|
1266
|
+
e.Unset = "unset", e.Required = "required", e.Optional = "optional", e.Completed = "completed", e.Disabled = "disabled", e.Unavailable = "unavailable";
|
|
1267
|
+
})(F2 || (F2 = {}));
|
|
1268
|
+
R.POLL, R.PREDICTION, R.TRIVIA;
|
|
1269
|
+
const ct = {
|
|
1270
|
+
[V.GAMES]: !0
|
|
1271
|
+
}, dt = /* @__PURE__ */ i("div")({
|
|
1581
1272
|
name: "Buttons",
|
|
1582
1273
|
class: "b5o8qbl",
|
|
1583
|
-
propsAsIs:
|
|
1584
|
-
}),
|
|
1585
|
-
children:
|
|
1586
|
-
className:
|
|
1587
|
-
}) => /* @__PURE__ */
|
|
1588
|
-
className:
|
|
1589
|
-
children:
|
|
1590
|
-
})
|
|
1591
|
-
const n$9 = /* @__PURE__ */ styled_default("div")({
|
|
1274
|
+
propsAsIs: !1
|
|
1275
|
+
}), pt = ({
|
|
1276
|
+
children: e,
|
|
1277
|
+
className: s
|
|
1278
|
+
}) => /* @__PURE__ */ t(dt, {
|
|
1279
|
+
className: s,
|
|
1280
|
+
children: e
|
|
1281
|
+
}), Ce = /* @__PURE__ */ i("div")({
|
|
1592
1282
|
name: "Navigation",
|
|
1593
1283
|
class: "n6tbwuy",
|
|
1594
|
-
propsAsIs:
|
|
1595
|
-
}),
|
|
1284
|
+
propsAsIs: !1
|
|
1285
|
+
}), ht = () => pt, B2 = /* @__PURE__ */ i(ht())({
|
|
1596
1286
|
name: "NavigationItems",
|
|
1597
1287
|
class: "n1up4z7v",
|
|
1598
|
-
propsAsIs:
|
|
1599
|
-
})
|
|
1600
|
-
const o$b = /* @__PURE__ */ styled_default("button")({
|
|
1288
|
+
propsAsIs: !0
|
|
1289
|
+
}), mt = /* @__PURE__ */ i("button")({
|
|
1601
1290
|
name: "SButton",
|
|
1602
1291
|
class: "sxxa0c",
|
|
1603
|
-
propsAsIs:
|
|
1604
|
-
}),
|
|
1292
|
+
propsAsIs: !1
|
|
1293
|
+
}), ut = /* @__PURE__ */ i("span")({
|
|
1605
1294
|
name: "ButtonIcon",
|
|
1606
1295
|
class: "b193dcyu",
|
|
1607
|
-
propsAsIs:
|
|
1608
|
-
}),
|
|
1296
|
+
propsAsIs: !1
|
|
1297
|
+
}), ft = /* @__PURE__ */ i("span")({
|
|
1609
1298
|
name: "ButtonLabel",
|
|
1610
1299
|
class: "b40tuix",
|
|
1611
|
-
propsAsIs:
|
|
1612
|
-
}),
|
|
1613
|
-
|
|
1614
|
-
o$b,
|
|
1300
|
+
propsAsIs: !1
|
|
1301
|
+
}), Ct = "s14xk0af", gt = "ha3mg7c", vt = "h103yr45", K = ({ disabled: e, active: s, onClick: n, label: a, icon: r, id: o }) => /* @__PURE__ */ t(
|
|
1302
|
+
mt,
|
|
1615
1303
|
{
|
|
1616
|
-
onClick:
|
|
1304
|
+
onClick: n,
|
|
1617
1305
|
"data-a": "intr",
|
|
1618
|
-
disabled:
|
|
1619
|
-
className:
|
|
1620
|
-
|
|
1621
|
-
!
|
|
1622
|
-
!
|
|
1306
|
+
disabled: e,
|
|
1307
|
+
className: D(
|
|
1308
|
+
s && Ct,
|
|
1309
|
+
!s && (o === "channels" || o === "featuredGroups") && gt,
|
|
1310
|
+
!s && o === "leaderboard" && vt
|
|
1623
1311
|
),
|
|
1624
|
-
children: /* @__PURE__ */
|
|
1625
|
-
|
|
1626
|
-
/* @__PURE__ */
|
|
1312
|
+
children: /* @__PURE__ */ h(S, { children: [
|
|
1313
|
+
r && /* @__PURE__ */ t(ut, { children: r }),
|
|
1314
|
+
/* @__PURE__ */ t(ft, { children: a })
|
|
1627
1315
|
] })
|
|
1628
1316
|
}
|
|
1629
|
-
)
|
|
1630
|
-
const g = () => B1, x$3 = /* @__PURE__ */ styled_default(g())({
|
|
1317
|
+
), It = () => k, $t = /* @__PURE__ */ i(It())({
|
|
1631
1318
|
name: "ButtonIcon",
|
|
1632
1319
|
class: "b11wpe79",
|
|
1633
|
-
propsAsIs:
|
|
1634
|
-
}),
|
|
1320
|
+
propsAsIs: !0
|
|
1321
|
+
}), bt = /* @__PURE__ */ i("div")({
|
|
1635
1322
|
name: "Container",
|
|
1636
1323
|
class: "calnblm",
|
|
1637
|
-
propsAsIs:
|
|
1638
|
-
}),
|
|
1324
|
+
propsAsIs: !1
|
|
1325
|
+
}), At = /* @__PURE__ */ i("div")({
|
|
1639
1326
|
name: "Title",
|
|
1640
1327
|
class: "t1438p52",
|
|
1641
|
-
propsAsIs:
|
|
1642
|
-
}),
|
|
1328
|
+
propsAsIs: !1
|
|
1329
|
+
}), yt = /* @__PURE__ */ i("div")({
|
|
1643
1330
|
name: "CloseIconWrap",
|
|
1644
1331
|
class: "c17srj38",
|
|
1645
|
-
propsAsIs:
|
|
1646
|
-
}),
|
|
1332
|
+
propsAsIs: !1
|
|
1333
|
+
}), wt = () => k, Lt = /* @__PURE__ */ i(wt())({
|
|
1647
1334
|
name: "CloseIcon",
|
|
1648
1335
|
class: "clqia8k",
|
|
1649
|
-
propsAsIs:
|
|
1650
|
-
}),
|
|
1336
|
+
propsAsIs: !0
|
|
1337
|
+
}), kt = () => k, _t = /* @__PURE__ */ i(kt())({
|
|
1651
1338
|
name: "DashboardIcon",
|
|
1652
1339
|
class: "df5w958",
|
|
1653
|
-
propsAsIs:
|
|
1654
|
-
}),
|
|
1655
|
-
sdk:
|
|
1656
|
-
className:
|
|
1657
|
-
},
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1340
|
+
propsAsIs: !0
|
|
1341
|
+
}), Nt = "h12x6aiv", St = te(({
|
|
1342
|
+
sdk: e,
|
|
1343
|
+
className: s
|
|
1344
|
+
}, n) => {
|
|
1345
|
+
const a = () => {
|
|
1346
|
+
e.closeFeature();
|
|
1660
1347
|
};
|
|
1661
|
-
return /* @__PURE__ */
|
|
1662
|
-
className:
|
|
1663
|
-
children: [/* @__PURE__ */
|
|
1664
|
-
children: [/* @__PURE__ */
|
|
1665
|
-
children: [/* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ h(Ce, {
|
|
1349
|
+
className: D(s, Nt),
|
|
1350
|
+
children: [/* @__PURE__ */ h(bt, {
|
|
1351
|
+
children: [/* @__PURE__ */ h(At, {
|
|
1352
|
+
children: [/* @__PURE__ */ t(_t, {
|
|
1666
1353
|
name: "dashboard"
|
|
1667
1354
|
}), "Dashboard"]
|
|
1668
|
-
}), /* @__PURE__ */
|
|
1355
|
+
}), /* @__PURE__ */ t(yt, {
|
|
1669
1356
|
"data-a": "intr",
|
|
1670
|
-
onClick:
|
|
1671
|
-
children: /* @__PURE__ */
|
|
1357
|
+
onClick: a,
|
|
1358
|
+
children: /* @__PURE__ */ t(Lt, {
|
|
1672
1359
|
name: "icon-cross"
|
|
1673
1360
|
})
|
|
1674
1361
|
})]
|
|
1675
|
-
}), /* @__PURE__ */
|
|
1676
|
-
ref:
|
|
1362
|
+
}), /* @__PURE__ */ t("div", {
|
|
1363
|
+
ref: n
|
|
1677
1364
|
})]
|
|
1678
1365
|
});
|
|
1679
|
-
}),
|
|
1680
|
-
sdk:
|
|
1681
|
-
className:
|
|
1682
|
-
},
|
|
1683
|
-
const
|
|
1684
|
-
const
|
|
1685
|
-
return
|
|
1686
|
-
}, [
|
|
1687
|
-
enableSdkButton:
|
|
1688
|
-
type:
|
|
1689
|
-
}) =>
|
|
1690
|
-
id:
|
|
1691
|
-
onClick: () =>
|
|
1692
|
-
disabled: !(
|
|
1693
|
-
label:
|
|
1694
|
-
icon: /* @__PURE__ */
|
|
1695
|
-
src:
|
|
1366
|
+
}), Tt = te(({
|
|
1367
|
+
sdk: e,
|
|
1368
|
+
className: s
|
|
1369
|
+
}, n) => {
|
|
1370
|
+
const a = $(e.sdkStore.organizationSettings), r = $(e.sdkStore.streamSettings), o = $(e.getActiveFeature()), l = z(() => {
|
|
1371
|
+
const d = r?.data || a?.data;
|
|
1372
|
+
return d?.overlays ? d.overlays : [];
|
|
1373
|
+
}, [a, r]), c = z(() => [...l.filter(({
|
|
1374
|
+
enableSdkButton: d,
|
|
1375
|
+
type: m
|
|
1376
|
+
}) => m === V.GAMES || d).map((d) => ({
|
|
1377
|
+
id: d.type,
|
|
1378
|
+
onClick: () => e.openFeature(d.type),
|
|
1379
|
+
disabled: !(d.type in ct),
|
|
1380
|
+
label: d.name,
|
|
1381
|
+
icon: /* @__PURE__ */ t("img", {
|
|
1382
|
+
src: d.icon,
|
|
1696
1383
|
alt: ""
|
|
1697
1384
|
}),
|
|
1698
1385
|
/** multiplied by 10 to add the ability to insert custom buttons between our buttons */
|
|
1699
|
-
position:
|
|
1700
|
-
}))].sort((
|
|
1701
|
-
return /* @__PURE__ */
|
|
1702
|
-
className:
|
|
1703
|
-
children: [
|
|
1704
|
-
children: [/* @__PURE__ */
|
|
1386
|
+
position: d.position * 10
|
|
1387
|
+
}))].sort((d, m) => d.position - m.position), [l, e]);
|
|
1388
|
+
return /* @__PURE__ */ h(Ce, {
|
|
1389
|
+
className: s,
|
|
1390
|
+
children: [c.length !== 0 && /* @__PURE__ */ t(B2, {
|
|
1391
|
+
children: [/* @__PURE__ */ t(K, {
|
|
1705
1392
|
id: "Channels",
|
|
1706
|
-
onClick: () =>
|
|
1393
|
+
onClick: () => e.closeFeature(),
|
|
1707
1394
|
label: "Channels",
|
|
1708
|
-
active:
|
|
1709
|
-
}, "Channels"), ...
|
|
1710
|
-
...
|
|
1711
|
-
active:
|
|
1395
|
+
active: o === 0
|
|
1396
|
+
}, "Channels"), ...c.map((d) => d.id === V.GAMES ? /* @__PURE__ */ t(K, {
|
|
1397
|
+
...d,
|
|
1398
|
+
active: d.id === o,
|
|
1712
1399
|
label: "StreamLayer +",
|
|
1713
1400
|
id: "featuredGroups",
|
|
1714
|
-
icon: /* @__PURE__ */
|
|
1401
|
+
icon: /* @__PURE__ */ t($t, {
|
|
1715
1402
|
name: "icon-btn-feature-groups",
|
|
1716
|
-
"data-selected":
|
|
1403
|
+
"data-selected": d.id === o
|
|
1717
1404
|
})
|
|
1718
|
-
},
|
|
1719
|
-
...
|
|
1405
|
+
}, d.id) : /* @__PURE__ */ t(K, {
|
|
1406
|
+
...d,
|
|
1720
1407
|
icon: void 0,
|
|
1721
|
-
active:
|
|
1722
|
-
},
|
|
1723
|
-
}), !
|
|
1724
|
-
children: [/* @__PURE__ */
|
|
1408
|
+
active: d.id === o
|
|
1409
|
+
}, d.id))]
|
|
1410
|
+
}), !c.length && /* @__PURE__ */ t(B2, {
|
|
1411
|
+
children: [/* @__PURE__ */ t(K, {
|
|
1725
1412
|
id: "empty",
|
|
1726
1413
|
label: "No Features...",
|
|
1727
|
-
active:
|
|
1728
|
-
disabled:
|
|
1414
|
+
active: !1,
|
|
1415
|
+
disabled: !0
|
|
1729
1416
|
}, "empty")]
|
|
1730
|
-
}), /* @__PURE__ */
|
|
1731
|
-
ref:
|
|
1417
|
+
}), /* @__PURE__ */ t("div", {
|
|
1418
|
+
ref: n
|
|
1732
1419
|
})]
|
|
1733
1420
|
});
|
|
1734
|
-
})
|
|
1735
|
-
const t$a = /* @__PURE__ */ styled_default("div")({
|
|
1421
|
+
}), xt = /* @__PURE__ */ i("div")({
|
|
1736
1422
|
name: "InsightContainer",
|
|
1737
1423
|
class: "i1pqqgpo",
|
|
1738
|
-
propsAsIs:
|
|
1739
|
-
}),
|
|
1424
|
+
propsAsIs: !1
|
|
1425
|
+
}), Rt = /* @__PURE__ */ i("img")({
|
|
1740
1426
|
name: "Image",
|
|
1741
1427
|
class: "igj7luu",
|
|
1742
|
-
propsAsIs:
|
|
1743
|
-
}),
|
|
1428
|
+
propsAsIs: !1
|
|
1429
|
+
}), Et = /* @__PURE__ */ i("div")({
|
|
1744
1430
|
name: "ImageContainer",
|
|
1745
1431
|
class: "i1qne9g6",
|
|
1746
|
-
propsAsIs:
|
|
1747
|
-
}),
|
|
1432
|
+
propsAsIs: !1
|
|
1433
|
+
}), Vt = /* @__PURE__ */ i("div")({
|
|
1748
1434
|
name: "InsightContent",
|
|
1749
1435
|
class: "itpr98r",
|
|
1750
|
-
propsAsIs:
|
|
1751
|
-
}),
|
|
1436
|
+
propsAsIs: !1
|
|
1437
|
+
}), Ht = /* @__PURE__ */ i("h3")({
|
|
1752
1438
|
name: "Title",
|
|
1753
1439
|
class: "t17iaqp8",
|
|
1754
|
-
propsAsIs:
|
|
1755
|
-
}),
|
|
1440
|
+
propsAsIs: !1
|
|
1441
|
+
}), zt = /* @__PURE__ */ i("div")({
|
|
1756
1442
|
name: "Description",
|
|
1757
1443
|
class: "d16t3y7s",
|
|
1758
|
-
propsAsIs:
|
|
1759
|
-
}),
|
|
1444
|
+
propsAsIs: !1
|
|
1445
|
+
}), Mt = /* @__PURE__ */ i("button")({
|
|
1760
1446
|
name: "ActionBtn",
|
|
1761
1447
|
class: "a12495er",
|
|
1762
|
-
propsAsIs:
|
|
1763
|
-
})
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
/* @__PURE__ */
|
|
1769
|
-
/* @__PURE__ */
|
|
1770
|
-
s2 && /* @__PURE__ */ jsx(r$7, { onClick: s2, children: "View Insight" })
|
|
1448
|
+
propsAsIs: !1
|
|
1449
|
+
}), Ot = ({ video: e, image: s, imageMode: n, heading: a, body: r, action: o, controlVideo: l }) => /* @__PURE__ */ h(xt, { children: [
|
|
1450
|
+
e?.url && /* @__PURE__ */ t(t0, { source: e.url, poster: e.thumbnailUrl, controlVideo: l }),
|
|
1451
|
+
s && !e?.url && /* @__PURE__ */ t(Et, { "data-rounded": n === Ke.ROUNDED, children: /* @__PURE__ */ t(Rt, { src: s, alt: a }) }),
|
|
1452
|
+
/* @__PURE__ */ h(Vt, { children: [
|
|
1453
|
+
/* @__PURE__ */ t(Ht, { children: a }),
|
|
1454
|
+
/* @__PURE__ */ t(zt, { children: r }),
|
|
1455
|
+
o && /* @__PURE__ */ t(Mt, { onClick: o, children: "View Insight" })
|
|
1771
1456
|
] })
|
|
1772
|
-
] })
|
|
1773
|
-
const p$7 = /* @__PURE__ */ styled_default("div")({
|
|
1457
|
+
] }), Dt = /* @__PURE__ */ i("div")({
|
|
1774
1458
|
name: "Container",
|
|
1775
1459
|
class: "c1eptrjd",
|
|
1776
|
-
propsAsIs:
|
|
1777
|
-
}),
|
|
1460
|
+
propsAsIs: !1
|
|
1461
|
+
}), Ft = /* @__PURE__ */ i("div")({
|
|
1778
1462
|
name: "CloseIconWrap",
|
|
1779
1463
|
class: "crylm65",
|
|
1780
|
-
propsAsIs:
|
|
1781
|
-
}),
|
|
1464
|
+
propsAsIs: !1
|
|
1465
|
+
}), Bt = () => k, qt = /* @__PURE__ */ i(Bt())({
|
|
1782
1466
|
name: "CloseIcon",
|
|
1783
1467
|
class: "c9mrcz7",
|
|
1784
|
-
propsAsIs:
|
|
1785
|
-
}),
|
|
1468
|
+
propsAsIs: !0
|
|
1469
|
+
}), Ut = /* @__PURE__ */ i("div")({
|
|
1786
1470
|
name: "Header",
|
|
1787
1471
|
class: "hw3lzv4",
|
|
1788
|
-
propsAsIs:
|
|
1789
|
-
}),
|
|
1472
|
+
propsAsIs: !1
|
|
1473
|
+
}), jt = () => k, Pt = /* @__PURE__ */ i(jt())({
|
|
1790
1474
|
name: "TypeIcon",
|
|
1791
1475
|
class: "t1rrb3kf",
|
|
1792
|
-
propsAsIs:
|
|
1793
|
-
}),
|
|
1476
|
+
propsAsIs: !0
|
|
1477
|
+
}), Wt = /* @__PURE__ */ i("span")({
|
|
1794
1478
|
name: "TypeName",
|
|
1795
1479
|
class: "t1ydnjov",
|
|
1796
|
-
propsAsIs:
|
|
1797
|
-
}),
|
|
1480
|
+
propsAsIs: !1
|
|
1481
|
+
}), Zt = /* @__PURE__ */ i("div")({
|
|
1798
1482
|
name: "Question",
|
|
1799
1483
|
class: "qlf90cl",
|
|
1800
|
-
propsAsIs:
|
|
1801
|
-
}),
|
|
1484
|
+
propsAsIs: !1
|
|
1485
|
+
}), Gt = /* @__PURE__ */ i("button")({
|
|
1802
1486
|
name: "AnswerButton",
|
|
1803
1487
|
class: "a1e0nhcl",
|
|
1804
|
-
propsAsIs:
|
|
1805
|
-
})
|
|
1806
|
-
const t$8 = /* @__PURE__ */ styled_default("div")({
|
|
1488
|
+
propsAsIs: !1
|
|
1489
|
+
}), Qt = /* @__PURE__ */ i("div")({
|
|
1807
1490
|
name: "Container",
|
|
1808
1491
|
class: "c1t4f0x4",
|
|
1809
|
-
propsAsIs:
|
|
1810
|
-
}),
|
|
1492
|
+
propsAsIs: !1
|
|
1493
|
+
}), Kt = /* @__PURE__ */ i("button")({
|
|
1811
1494
|
name: "ActionBtn",
|
|
1812
1495
|
class: "a16w1nl6",
|
|
1813
|
-
propsAsIs:
|
|
1814
|
-
}),
|
|
1496
|
+
propsAsIs: !1
|
|
1497
|
+
}), Yt = /* @__PURE__ */ i("div")({
|
|
1815
1498
|
name: "QuoteWrap",
|
|
1816
1499
|
class: "q14u54rf",
|
|
1817
|
-
propsAsIs:
|
|
1818
|
-
}),
|
|
1500
|
+
propsAsIs: !1
|
|
1501
|
+
}), Jt = /* @__PURE__ */ i("blockquote")({
|
|
1819
1502
|
name: "Quote",
|
|
1820
1503
|
class: "q1hxm6zo",
|
|
1821
|
-
propsAsIs:
|
|
1822
|
-
})
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
controlVideo: c2,
|
|
1832
|
-
data: { questionType: r2, question: t2, insight: d2, tweet: e2 }
|
|
1504
|
+
propsAsIs: !1
|
|
1505
|
+
}), Xt = ({ action: e, ...s }) => /* @__PURE__ */ h(Qt, { children: [
|
|
1506
|
+
s.title && /* @__PURE__ */ t(Yt, { children: /* @__PURE__ */ t(Jt, { children: s.title }) }),
|
|
1507
|
+
/* @__PURE__ */ t(re, { ...s }),
|
|
1508
|
+
e && /* @__PURE__ */ t(Kt, { onClick: e, children: "View Insight" })
|
|
1509
|
+
] }), q2 = ({
|
|
1510
|
+
close: e,
|
|
1511
|
+
action: s,
|
|
1512
|
+
controlVideo: n,
|
|
1513
|
+
data: { questionType: a, question: r, insight: o, tweet: l }
|
|
1833
1514
|
}) => {
|
|
1834
|
-
const
|
|
1835
|
-
return
|
|
1836
|
-
/* @__PURE__ */
|
|
1837
|
-
|
|
1515
|
+
const c = oe[a];
|
|
1516
|
+
return c ? /* @__PURE__ */ h(Dt, { onClick: s, style: a === R.TWEET ? { paddingTop: "12px" } : {}, children: [
|
|
1517
|
+
/* @__PURE__ */ t(
|
|
1518
|
+
Ft,
|
|
1838
1519
|
{
|
|
1839
1520
|
"data-a": "intr",
|
|
1840
|
-
onClick: (
|
|
1841
|
-
|
|
1521
|
+
onClick: (d) => {
|
|
1522
|
+
d.stopPropagation(), e && e(d);
|
|
1842
1523
|
},
|
|
1843
|
-
children: /* @__PURE__ */
|
|
1524
|
+
children: /* @__PURE__ */ t(qt, { name: "icon-cross" })
|
|
1844
1525
|
}
|
|
1845
1526
|
),
|
|
1846
|
-
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
|
|
1527
|
+
a !== R.TWEET && /* @__PURE__ */ h(Ut, { children: [
|
|
1528
|
+
/* @__PURE__ */ t(
|
|
1529
|
+
Pt,
|
|
1849
1530
|
{
|
|
1850
|
-
"data-type-trivia":
|
|
1851
|
-
"data-type-poll":
|
|
1852
|
-
name:
|
|
1531
|
+
"data-type-trivia": a === R.TRIVIA,
|
|
1532
|
+
"data-type-poll": a === R.POLL,
|
|
1533
|
+
name: c.iconName
|
|
1853
1534
|
}
|
|
1854
1535
|
),
|
|
1855
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ t(Wt, { children: c.label })
|
|
1856
1537
|
] }),
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
/* @__PURE__ */
|
|
1861
|
-
/* @__PURE__ */
|
|
1538
|
+
a === R.FACTOID && o && /* @__PURE__ */ t(Ot, { ...o, action: s, controlVideo: n }),
|
|
1539
|
+
a === R.TWEET && l && /* @__PURE__ */ t(Xt, { ...l, action: s, controlVideo: n }),
|
|
1540
|
+
a !== R.FACTOID && a !== R.TWEET && /* @__PURE__ */ h(S, { children: [
|
|
1541
|
+
/* @__PURE__ */ t(Zt, { children: r?.title }),
|
|
1542
|
+
/* @__PURE__ */ t(Gt, { children: "Answer" })
|
|
1862
1543
|
] })
|
|
1863
1544
|
] }) : null;
|
|
1864
|
-
}
|
|
1865
|
-
const l$7 = /* @__PURE__ */ styled_default("div")({
|
|
1545
|
+
}, U = /* @__PURE__ */ i("div")({
|
|
1866
1546
|
name: "BGWrap",
|
|
1867
1547
|
class: "b1dqe0sz",
|
|
1868
|
-
propsAsIs:
|
|
1869
|
-
}),
|
|
1548
|
+
propsAsIs: !1
|
|
1549
|
+
}), _ = /* @__PURE__ */ i("div")({
|
|
1870
1550
|
name: "BGLineBase",
|
|
1871
1551
|
class: "b1v6w7ni",
|
|
1872
|
-
propsAsIs:
|
|
1873
|
-
}),
|
|
1552
|
+
propsAsIs: !1
|
|
1553
|
+
}), en = () => _, sn = /* @__PURE__ */ i(en())({
|
|
1874
1554
|
name: "BGOneLineOne",
|
|
1875
1555
|
class: "b2nqb1p",
|
|
1876
|
-
propsAsIs:
|
|
1877
|
-
}),
|
|
1556
|
+
propsAsIs: !0
|
|
1557
|
+
}), tn = () => _, nn = /* @__PURE__ */ i(tn())({
|
|
1878
1558
|
name: "BGOneLineTwo",
|
|
1879
1559
|
class: "b1xxgmbk",
|
|
1880
|
-
propsAsIs:
|
|
1881
|
-
}),
|
|
1560
|
+
propsAsIs: !0
|
|
1561
|
+
}), an = () => _, rn = /* @__PURE__ */ i(an())({
|
|
1882
1562
|
name: "BGOneLineThree",
|
|
1883
1563
|
class: "b63lwcb",
|
|
1884
|
-
propsAsIs:
|
|
1885
|
-
}),
|
|
1564
|
+
propsAsIs: !0
|
|
1565
|
+
}), on = () => _, U2 = /* @__PURE__ */ i(on())({
|
|
1886
1566
|
name: "BGTwoLineOne",
|
|
1887
1567
|
class: "b2iah4",
|
|
1888
|
-
propsAsIs:
|
|
1889
|
-
}),
|
|
1568
|
+
propsAsIs: !0
|
|
1569
|
+
}), ln = () => _, j2 = /* @__PURE__ */ i(ln())({
|
|
1890
1570
|
name: "BGTwoLineTwo",
|
|
1891
1571
|
class: "b1xezvf6",
|
|
1892
|
-
propsAsIs:
|
|
1893
|
-
}),
|
|
1572
|
+
propsAsIs: !0
|
|
1573
|
+
}), cn = () => _, P2 = /* @__PURE__ */ i(cn())({
|
|
1894
1574
|
name: "BGTwoLineThree",
|
|
1895
1575
|
class: "b1jz1hg0",
|
|
1896
|
-
propsAsIs:
|
|
1897
|
-
}),
|
|
1576
|
+
propsAsIs: !0
|
|
1577
|
+
}), dn = () => _, W2 = /* @__PURE__ */ i(dn())({
|
|
1898
1578
|
name: "BGThreeLineOne",
|
|
1899
1579
|
class: "b18ho1tk",
|
|
1900
|
-
propsAsIs:
|
|
1901
|
-
}),
|
|
1580
|
+
propsAsIs: !0
|
|
1581
|
+
}), pn = () => _, Z2 = /* @__PURE__ */ i(pn())({
|
|
1902
1582
|
name: "BGThreeLineTwo",
|
|
1903
1583
|
class: "b14uvjfm",
|
|
1904
|
-
propsAsIs:
|
|
1905
|
-
}),
|
|
1584
|
+
propsAsIs: !0
|
|
1585
|
+
}), hn = () => _, G2 = /* @__PURE__ */ i(hn())({
|
|
1906
1586
|
name: "BGThreeLineThree",
|
|
1907
1587
|
class: "b11c3ns7",
|
|
1908
|
-
propsAsIs:
|
|
1909
|
-
}),
|
|
1588
|
+
propsAsIs: !0
|
|
1589
|
+
}), mn = () => _, Q2 = /* @__PURE__ */ i(mn())({
|
|
1910
1590
|
name: "BGThreeLineFour",
|
|
1911
1591
|
class: "b1bqhhet",
|
|
1912
|
-
propsAsIs:
|
|
1913
|
-
}),
|
|
1592
|
+
propsAsIs: !0
|
|
1593
|
+
}), un = () => _, fn = /* @__PURE__ */ i(un())({
|
|
1914
1594
|
name: "BGFourLineOne",
|
|
1915
1595
|
class: "b1xyzi7o",
|
|
1916
|
-
propsAsIs:
|
|
1917
|
-
}),
|
|
1596
|
+
propsAsIs: !0
|
|
1597
|
+
}), Cn = () => _, gn = /* @__PURE__ */ i(Cn())({
|
|
1918
1598
|
name: "BGFourLineTwo",
|
|
1919
1599
|
class: "byo0rup",
|
|
1920
|
-
propsAsIs:
|
|
1921
|
-
}),
|
|
1600
|
+
propsAsIs: !0
|
|
1601
|
+
}), vn = () => _, In = /* @__PURE__ */ i(vn())({
|
|
1922
1602
|
name: "BGFourLineThree",
|
|
1923
1603
|
class: "b1oyiqgv",
|
|
1924
|
-
propsAsIs:
|
|
1925
|
-
}),
|
|
1604
|
+
propsAsIs: !0
|
|
1605
|
+
}), $n = () => _, bn = /* @__PURE__ */ i($n())({
|
|
1926
1606
|
name: "BGFourLineFour",
|
|
1927
1607
|
class: "bx3ddqw",
|
|
1928
|
-
propsAsIs:
|
|
1929
|
-
})
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
/* @__PURE__ */
|
|
1933
|
-
/* @__PURE__ */
|
|
1934
|
-
/* @__PURE__ */ jsx(w$1, {})
|
|
1608
|
+
propsAsIs: !0
|
|
1609
|
+
}), An = ({ step: e, correct: s }) => /* @__PURE__ */ h(S, { children: [
|
|
1610
|
+
/* @__PURE__ */ h(U, { "data-active": e === 1, "data-first-screen": "true", children: [
|
|
1611
|
+
/* @__PURE__ */ t(sn, {}),
|
|
1612
|
+
/* @__PURE__ */ t(nn, {}),
|
|
1613
|
+
/* @__PURE__ */ t(rn, {})
|
|
1935
1614
|
] }),
|
|
1936
|
-
/* @__PURE__ */
|
|
1937
|
-
/* @__PURE__ */
|
|
1938
|
-
/* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
1615
|
+
/* @__PURE__ */ h(U, { "data-active": e === 2, children: [
|
|
1616
|
+
/* @__PURE__ */ t(U2, {}),
|
|
1617
|
+
/* @__PURE__ */ t(j2, {}),
|
|
1618
|
+
/* @__PURE__ */ t(P2, {})
|
|
1940
1619
|
] }),
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
-
/* @__PURE__ */
|
|
1943
|
-
/* @__PURE__ */
|
|
1944
|
-
/* @__PURE__ */
|
|
1620
|
+
/* @__PURE__ */ h(U, { "data-active": e === 3, children: [
|
|
1621
|
+
/* @__PURE__ */ t(U2, {}),
|
|
1622
|
+
/* @__PURE__ */ t(j2, {}),
|
|
1623
|
+
/* @__PURE__ */ t(P2, {})
|
|
1945
1624
|
] }),
|
|
1946
|
-
|
|
1947
|
-
/* @__PURE__ */
|
|
1948
|
-
/* @__PURE__ */
|
|
1949
|
-
/* @__PURE__ */
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
1625
|
+
s ? /* @__PURE__ */ h(S, { children: [
|
|
1626
|
+
/* @__PURE__ */ h(U, { "data-active": e === 4, "data-correct": "true", children: [
|
|
1627
|
+
/* @__PURE__ */ t(W2, {}),
|
|
1628
|
+
/* @__PURE__ */ t(Z2, {}),
|
|
1629
|
+
/* @__PURE__ */ t(G2, {}),
|
|
1630
|
+
/* @__PURE__ */ t(Q2, {})
|
|
1952
1631
|
] }),
|
|
1953
|
-
/* @__PURE__ */
|
|
1954
|
-
/* @__PURE__ */
|
|
1955
|
-
/* @__PURE__ */
|
|
1956
|
-
/* @__PURE__ */
|
|
1957
|
-
/* @__PURE__ */
|
|
1632
|
+
/* @__PURE__ */ h(U, { "data-active": e === 5, "data-correct": "true", children: [
|
|
1633
|
+
/* @__PURE__ */ t(W2, {}),
|
|
1634
|
+
/* @__PURE__ */ t(Z2, {}),
|
|
1635
|
+
/* @__PURE__ */ t(G2, {}),
|
|
1636
|
+
/* @__PURE__ */ t(Q2, {})
|
|
1958
1637
|
] })
|
|
1959
|
-
] }) : /* @__PURE__ */
|
|
1960
|
-
/* @__PURE__ */
|
|
1961
|
-
/* @__PURE__ */
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1638
|
+
] }) : /* @__PURE__ */ h(U, { "data-active": e === 4, "data-correct": "false", children: [
|
|
1639
|
+
/* @__PURE__ */ t(fn, {}),
|
|
1640
|
+
/* @__PURE__ */ t(gn, {}),
|
|
1641
|
+
/* @__PURE__ */ t(In, {}),
|
|
1642
|
+
/* @__PURE__ */ t(bn, {})
|
|
1964
1643
|
] })
|
|
1965
|
-
] })
|
|
1966
|
-
const A$1 = 118, t$6 = () => f$c, f$4 = /* @__PURE__ */ styled_default(t$6())({
|
|
1644
|
+
] }), yn = 118, wn = () => n2, Ln = /* @__PURE__ */ i(wn())({
|
|
1967
1645
|
name: "Container",
|
|
1968
1646
|
class: "c10131zw",
|
|
1969
|
-
propsAsIs:
|
|
1970
|
-
}),
|
|
1647
|
+
propsAsIs: !0
|
|
1648
|
+
}), kn = /* @__PURE__ */ i("div")({
|
|
1971
1649
|
name: "InnerContainer",
|
|
1972
1650
|
class: "ir6k2eo",
|
|
1973
|
-
propsAsIs:
|
|
1974
|
-
}),
|
|
1651
|
+
propsAsIs: !1
|
|
1652
|
+
}), B = /* @__PURE__ */ i("div")({
|
|
1975
1653
|
name: "Content",
|
|
1976
1654
|
class: "c1hwoq9l",
|
|
1977
|
-
propsAsIs:
|
|
1978
|
-
}),
|
|
1655
|
+
propsAsIs: !1
|
|
1656
|
+
}), W = /* @__PURE__ */ i("div")({
|
|
1979
1657
|
name: "Title",
|
|
1980
1658
|
class: "t4ujo4g",
|
|
1981
|
-
propsAsIs:
|
|
1982
|
-
}),
|
|
1659
|
+
propsAsIs: !1
|
|
1660
|
+
}), _n = () => W, Nn = /* @__PURE__ */ i(_n())({
|
|
1983
1661
|
name: "PointsTitle",
|
|
1984
1662
|
class: "p1pjil1h",
|
|
1985
|
-
propsAsIs:
|
|
1986
|
-
}),
|
|
1663
|
+
propsAsIs: !0
|
|
1664
|
+
}), Y = /* @__PURE__ */ i("div")({
|
|
1987
1665
|
name: "Subtitle",
|
|
1988
1666
|
class: "s1iorwr9",
|
|
1989
|
-
propsAsIs:
|
|
1990
|
-
}),
|
|
1667
|
+
propsAsIs: !1
|
|
1668
|
+
}), K2 = /* @__PURE__ */ i("div")({
|
|
1991
1669
|
name: "SubtitleFG",
|
|
1992
1670
|
class: "s51sv9d",
|
|
1993
|
-
propsAsIs:
|
|
1994
|
-
}),
|
|
1671
|
+
propsAsIs: !1
|
|
1672
|
+
}), J = /* @__PURE__ */ i("div")({
|
|
1995
1673
|
name: "AnswerText",
|
|
1996
1674
|
class: "a1lbk2ye",
|
|
1997
|
-
propsAsIs:
|
|
1998
|
-
}),
|
|
1675
|
+
propsAsIs: !1
|
|
1676
|
+
}), Sn = () => k, ge = /* @__PURE__ */ i(Sn())({
|
|
1999
1677
|
name: "FeedbackIcon",
|
|
2000
1678
|
class: "frcvk3t",
|
|
2001
|
-
propsAsIs:
|
|
2002
|
-
}),
|
|
1679
|
+
propsAsIs: !0
|
|
1680
|
+
}), Tn = () => ge, Y2 = /* @__PURE__ */ i(Tn())({
|
|
2003
1681
|
name: "FeedbackIconCorrect",
|
|
2004
1682
|
class: "f33p82r",
|
|
2005
|
-
propsAsIs:
|
|
2006
|
-
}),
|
|
1683
|
+
propsAsIs: !0
|
|
1684
|
+
}), xn = () => ge, Rn = /* @__PURE__ */ i(xn())({
|
|
2007
1685
|
name: "FeedbackIconIncorrect",
|
|
2008
1686
|
class: "f12r9net",
|
|
2009
|
-
propsAsIs:
|
|
2010
|
-
}),
|
|
1687
|
+
propsAsIs: !0
|
|
1688
|
+
}), J2 = /* @__PURE__ */ i("div")({
|
|
2011
1689
|
name: "CloseIconWrap",
|
|
2012
1690
|
class: "c1fw6699",
|
|
2013
|
-
propsAsIs:
|
|
2014
|
-
}),
|
|
1691
|
+
propsAsIs: !1
|
|
1692
|
+
}), En = () => k, X2 = /* @__PURE__ */ i(En())({
|
|
2015
1693
|
name: "CloseIcon",
|
|
2016
1694
|
class: "c115o126",
|
|
2017
|
-
propsAsIs:
|
|
2018
|
-
});
|
|
2019
|
-
const E = "data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e", R = "data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", W = (s2, i2, L2) => s2 === i2 ? "translateY(0px)" : s2 > i2 ? `translateY(${L2}px)` : "translateY(-100%)", D$1 = ({ close: s2, votedAnswer: i2, mastersApp: L2, correct: a2, correctAnswerTitle: w$12, questionTitle: k2, saveHeight: u$12, style: n2, hiding: x2 }) => {
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
b2((e2) => a2 && e2 > 4 || !a2 && e2 > 3 ? e2 : ++e2);
|
|
1695
|
+
propsAsIs: !0
|
|
1696
|
+
}), Vn = "data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e", Hn = "data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", zn = (e, s, n) => e === s ? "translateY(0px)" : e > s ? `translateY(${n}px)` : "translateY(-100%)", Mn = ({ close: e, votedAnswer: s, mastersApp: n, correct: a, correctAnswerTitle: r, questionTitle: o, saveHeight: l, style: c, hiding: d }) => {
|
|
1697
|
+
const [m, f] = w(1), u = E({});
|
|
1698
|
+
y(() => {
|
|
1699
|
+
const I = setInterval(() => {
|
|
1700
|
+
f((v) => a && v > 4 || !a && v > 3 ? v : ++v);
|
|
2024
1701
|
}, 3e3);
|
|
2025
|
-
return () => clearInterval(
|
|
2026
|
-
}, [
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
C$1,
|
|
1702
|
+
return () => clearInterval(I);
|
|
1703
|
+
}, [a]), y(() => {
|
|
1704
|
+
u.current[m] && l(u.current[m]?.getBoundingClientRect()?.height || yn);
|
|
1705
|
+
}, [m, l]);
|
|
1706
|
+
const p = (I) => (v) => {
|
|
1707
|
+
u.current && (u.current[I] = v);
|
|
1708
|
+
}, C = (I) => ({ transform: zn(I, m, c.height) }), g = { ...c };
|
|
1709
|
+
return n && g.height && typeof g.height == "number" && (g.height += 32), /* @__PURE__ */ t(Ln, { style: c.height ? g : { ...c, paddingTop: 0, paddingBottom: 0 }, hiding: d, children: /* @__PURE__ */ h(
|
|
1710
|
+
kn,
|
|
2035
1711
|
{
|
|
2036
1712
|
style: {
|
|
2037
|
-
height:
|
|
2038
|
-
minHeight:
|
|
2039
|
-
backgroundColor:
|
|
1713
|
+
height: c.height,
|
|
1714
|
+
minHeight: c.height,
|
|
1715
|
+
backgroundColor: m > 3 ? a ? "var(--color-sdk-prediction-result-success-bg)" : "var(--color-sdk-prediction-result-incorrect-bg)" : "var(--color-primary-1)"
|
|
2040
1716
|
},
|
|
2041
1717
|
children: [
|
|
2042
|
-
/* @__PURE__ */
|
|
2043
|
-
|
|
2044
|
-
/* @__PURE__ */
|
|
2045
|
-
/* @__PURE__ */
|
|
1718
|
+
/* @__PURE__ */ t(An, { step: m, correct: a }),
|
|
1719
|
+
n && /* @__PURE__ */ h(B, { ref: p(1), style: C(1), children: [
|
|
1720
|
+
/* @__PURE__ */ t("img", { alt: "sponsor-logo", src: Vn }),
|
|
1721
|
+
/* @__PURE__ */ t(K2, { children: "Featured Groups +" })
|
|
2046
1722
|
] }),
|
|
2047
|
-
!
|
|
2048
|
-
/* @__PURE__ */
|
|
2049
|
-
/* @__PURE__ */
|
|
2050
|
-
|
|
1723
|
+
!n && /* @__PURE__ */ t(B, { ref: p(1), style: C(1), children: /* @__PURE__ */ t("img", { alt: "sponsor-logo", src: Hn }) }),
|
|
1724
|
+
/* @__PURE__ */ h(B, { ref: p(2), style: C(2), children: [
|
|
1725
|
+
/* @__PURE__ */ t(W, { children: "Prediction results are in!" }),
|
|
1726
|
+
n && /* @__PURE__ */ t(K2, { children: "Featured Groups +" })
|
|
2051
1727
|
] }),
|
|
2052
|
-
/* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
/* @__PURE__ */
|
|
1728
|
+
/* @__PURE__ */ h(B, { ref: p(3), style: C(3), children: [
|
|
1729
|
+
/* @__PURE__ */ t(W, { children: o }),
|
|
1730
|
+
/* @__PURE__ */ t(Y, { children: /* @__PURE__ */ h(J, { children: [
|
|
1731
|
+
/* @__PURE__ */ t("span", { children: "Your Pick:" }),
|
|
2056
1732
|
" ",
|
|
2057
|
-
|
|
1733
|
+
s?.title
|
|
2058
1734
|
] }) })
|
|
2059
1735
|
] }),
|
|
2060
|
-
|
|
2061
|
-
/* @__PURE__ */
|
|
2062
|
-
|
|
1736
|
+
a ? /* @__PURE__ */ h(S, { children: [
|
|
1737
|
+
/* @__PURE__ */ h(
|
|
1738
|
+
B,
|
|
2063
1739
|
{
|
|
2064
|
-
ref:
|
|
2065
|
-
style: { ...
|
|
1740
|
+
ref: p(4),
|
|
1741
|
+
style: { ...C(4), color: "var(--color-sdk-prediction-result-success-text)" },
|
|
2066
1742
|
children: [
|
|
2067
|
-
/* @__PURE__ */
|
|
1743
|
+
/* @__PURE__ */ h(W, { children: [
|
|
2068
1744
|
"Congratulations!",
|
|
2069
|
-
/* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ t("br", {}),
|
|
2070
1746
|
"You answered correctly."
|
|
2071
1747
|
] }),
|
|
2072
|
-
/* @__PURE__ */
|
|
2073
|
-
/* @__PURE__ */
|
|
2074
|
-
/* @__PURE__ */
|
|
2075
|
-
/* @__PURE__ */
|
|
1748
|
+
/* @__PURE__ */ h(Y, { children: [
|
|
1749
|
+
/* @__PURE__ */ t(Y2, { name: "selected" }),
|
|
1750
|
+
/* @__PURE__ */ h(J, { children: [
|
|
1751
|
+
/* @__PURE__ */ t("span", { children: "Your Pick:" }),
|
|
2076
1752
|
" ",
|
|
2077
|
-
|
|
1753
|
+
s?.title
|
|
2078
1754
|
] })
|
|
2079
1755
|
] })
|
|
2080
1756
|
]
|
|
2081
1757
|
}
|
|
2082
1758
|
),
|
|
2083
|
-
/* @__PURE__ */
|
|
2084
|
-
|
|
1759
|
+
/* @__PURE__ */ h(
|
|
1760
|
+
B,
|
|
2085
1761
|
{
|
|
2086
|
-
ref:
|
|
2087
|
-
style: { ...
|
|
1762
|
+
ref: p(5),
|
|
1763
|
+
style: { ...C(5), color: "var(--color-sdk-prediction-result-success-text)" },
|
|
2088
1764
|
children: [
|
|
2089
|
-
/* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2091
|
-
/* @__PURE__ */
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
/* @__PURE__ */
|
|
1765
|
+
/* @__PURE__ */ t(Nn, { children: m === 5 && /* @__PURE__ */ t(i0, { delay: 0.5, prefix: "+", suffix: " points", value: s?.points }) }),
|
|
1766
|
+
/* @__PURE__ */ h(Y, { children: [
|
|
1767
|
+
/* @__PURE__ */ t(Y2, { name: "selected" }),
|
|
1768
|
+
/* @__PURE__ */ h(J, { children: [
|
|
1769
|
+
/* @__PURE__ */ t("span", { children: "Your Pick:" }),
|
|
2094
1770
|
" ",
|
|
2095
|
-
|
|
1771
|
+
s?.title
|
|
2096
1772
|
] })
|
|
2097
1773
|
] }),
|
|
2098
|
-
/* @__PURE__ */
|
|
1774
|
+
/* @__PURE__ */ t(J2, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ t(X2, { name: "icon-cross" }) })
|
|
2099
1775
|
]
|
|
2100
1776
|
}
|
|
2101
1777
|
)
|
|
2102
|
-
] }) : /* @__PURE__ */
|
|
2103
|
-
/* @__PURE__ */
|
|
1778
|
+
] }) : /* @__PURE__ */ h(B, { ref: p(4), style: C(4), children: [
|
|
1779
|
+
/* @__PURE__ */ h(W, { style: { color: "var(--color-sdk-prediction-result-error-title)" }, children: [
|
|
2104
1780
|
"Better luck next time!",
|
|
2105
|
-
/* @__PURE__ */
|
|
1781
|
+
/* @__PURE__ */ t("br", {}),
|
|
2106
1782
|
"Correct: ",
|
|
2107
|
-
|
|
1783
|
+
r,
|
|
2108
1784
|
"."
|
|
2109
1785
|
] }),
|
|
2110
|
-
/* @__PURE__ */
|
|
2111
|
-
/* @__PURE__ */
|
|
2112
|
-
/* @__PURE__ */
|
|
2113
|
-
/* @__PURE__ */
|
|
1786
|
+
/* @__PURE__ */ h(Y, { style: { color: "var(--color-sdk-prediction-result-error-subtitle)" }, children: [
|
|
1787
|
+
/* @__PURE__ */ t(Rn, { name: "circleClose" }),
|
|
1788
|
+
/* @__PURE__ */ h(J, { children: [
|
|
1789
|
+
/* @__PURE__ */ t("span", { children: "Your Pick:" }),
|
|
2114
1790
|
" ",
|
|
2115
|
-
|
|
1791
|
+
s?.title
|
|
2116
1792
|
] })
|
|
2117
1793
|
] }),
|
|
2118
|
-
/* @__PURE__ */
|
|
1794
|
+
/* @__PURE__ */ t(J2, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ t(X2, { name: "icon-cross" }) })
|
|
2119
1795
|
] })
|
|
2120
1796
|
]
|
|
2121
1797
|
}
|
|
2122
1798
|
) });
|
|
2123
|
-
}
|
|
2124
|
-
const
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
s2(false);
|
|
1799
|
+
}, On = (e) => {
|
|
1800
|
+
const [s, n] = w(!1), [a, r] = w(!1), o = E(null), l = q(() => {
|
|
1801
|
+
r(!0), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
1802
|
+
r(!1);
|
|
2128
1803
|
}, 1e3);
|
|
2129
|
-
}, []),
|
|
2130
|
-
|
|
2131
|
-
const
|
|
2132
|
-
(
|
|
2133
|
-
const
|
|
2134
|
-
|
|
1804
|
+
}, []), c = q(async (d) => {
|
|
1805
|
+
n(!0);
|
|
1806
|
+
const m = d.map(
|
|
1807
|
+
(f) => new Promise((u, p) => {
|
|
1808
|
+
const C = new Image();
|
|
1809
|
+
C.onload = () => u(f), C.onerror = () => p(), C.src = f;
|
|
2135
1810
|
})
|
|
2136
1811
|
);
|
|
2137
|
-
await Promise.allSettled(
|
|
1812
|
+
await Promise.allSettled(m), n(!1);
|
|
2138
1813
|
}, []);
|
|
2139
|
-
return
|
|
2140
|
-
|
|
2141
|
-
}, [
|
|
2142
|
-
}
|
|
2143
|
-
const e$6 = /* @__PURE__ */ styled_default("div")({
|
|
1814
|
+
return y(() => {
|
|
1815
|
+
e && (l(), c(e));
|
|
1816
|
+
}, [e, l, c]), { loading: s, throttled: a };
|
|
1817
|
+
}, Dn = /* @__PURE__ */ i("div")({
|
|
2144
1818
|
name: "Container",
|
|
2145
1819
|
class: "cl51m2q",
|
|
2146
|
-
propsAsIs:
|
|
2147
|
-
}),
|
|
1820
|
+
propsAsIs: !1
|
|
1821
|
+
}), Fn = /* @__PURE__ */ i("img")({
|
|
2148
1822
|
name: "Avatar",
|
|
2149
1823
|
class: "a2yhhhr",
|
|
2150
|
-
propsAsIs:
|
|
2151
|
-
}),
|
|
1824
|
+
propsAsIs: !1
|
|
1825
|
+
}), Bn = /* @__PURE__ */ i("div")({
|
|
2152
1826
|
name: "AvatarPlaceholder",
|
|
2153
1827
|
class: "a1dtxxlr",
|
|
2154
|
-
propsAsIs:
|
|
2155
|
-
}),
|
|
1828
|
+
propsAsIs: !1
|
|
1829
|
+
}), qn = /* @__PURE__ */ i("div")({
|
|
2156
1830
|
name: "Content",
|
|
2157
1831
|
class: "c12clm3w",
|
|
2158
|
-
propsAsIs:
|
|
2159
|
-
}),
|
|
1832
|
+
propsAsIs: !1
|
|
1833
|
+
}), Un = /* @__PURE__ */ i("span")({
|
|
2160
1834
|
name: "Name",
|
|
2161
1835
|
class: "n14lctn7",
|
|
2162
|
-
propsAsIs:
|
|
2163
|
-
})
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
e2,
|
|
1836
|
+
propsAsIs: !1
|
|
1837
|
+
}), jn = ({ avatar: e, name: s }) => /* @__PURE__ */ h(Dn, { children: [
|
|
1838
|
+
e && /* @__PURE__ */ t(Fn, { src: e }),
|
|
1839
|
+
!e && /* @__PURE__ */ t(Bn, { children: h2(s || "") }),
|
|
1840
|
+
/* @__PURE__ */ h(qn, { children: [
|
|
1841
|
+
/* @__PURE__ */ h(Un, { children: [
|
|
1842
|
+
s,
|
|
2170
1843
|
" "
|
|
2171
1844
|
] }),
|
|
2172
1845
|
"is waiting for you!"
|
|
2173
1846
|
] })
|
|
2174
|
-
] })
|
|
2175
|
-
const n$3 = /* @__PURE__ */ styled_default("div")({
|
|
1847
|
+
] }), Pn = /* @__PURE__ */ i("div")({
|
|
2176
1848
|
name: "Container",
|
|
2177
1849
|
class: "c1htq1lb",
|
|
2178
|
-
propsAsIs:
|
|
2179
|
-
}),
|
|
1850
|
+
propsAsIs: !1
|
|
1851
|
+
}), Wn = /* @__PURE__ */ i("div")({
|
|
2180
1852
|
name: "Graphic",
|
|
2181
1853
|
class: "gjyzpp7",
|
|
2182
|
-
propsAsIs:
|
|
2183
|
-
}),
|
|
1854
|
+
propsAsIs: !1
|
|
1855
|
+
}), Zn = /* @__PURE__ */ i("img")({
|
|
2184
1856
|
name: "GraphicImage",
|
|
2185
1857
|
class: "g16mldgz",
|
|
2186
|
-
propsAsIs:
|
|
2187
|
-
}),
|
|
1858
|
+
propsAsIs: !1
|
|
1859
|
+
}), Gn = /* @__PURE__ */ i("div")({
|
|
2188
1860
|
name: "Headline",
|
|
2189
1861
|
class: "h69js65",
|
|
2190
|
-
propsAsIs:
|
|
2191
|
-
}),
|
|
1862
|
+
propsAsIs: !1
|
|
1863
|
+
}), Qn = /* @__PURE__ */ i("div")({
|
|
2192
1864
|
name: "TaglineContainer",
|
|
2193
1865
|
class: "tmm7qmo",
|
|
2194
|
-
propsAsIs:
|
|
2195
|
-
}),
|
|
1866
|
+
propsAsIs: !1
|
|
1867
|
+
}), Kn = /* @__PURE__ */ i("div")({
|
|
2196
1868
|
name: "Tagline",
|
|
2197
1869
|
class: "t17knuw2",
|
|
2198
|
-
propsAsIs:
|
|
2199
|
-
}),
|
|
1870
|
+
propsAsIs: !1
|
|
1871
|
+
}), Yn = /* @__PURE__ */ i("div")({
|
|
2200
1872
|
name: "Content",
|
|
2201
1873
|
class: "c1b74psg",
|
|
2202
|
-
propsAsIs:
|
|
2203
|
-
}),
|
|
1874
|
+
propsAsIs: !1
|
|
1875
|
+
}), Jn = /* @__PURE__ */ i("div")({
|
|
2204
1876
|
name: "StepsContainer",
|
|
2205
1877
|
class: "s1y99ug7",
|
|
2206
|
-
propsAsIs:
|
|
2207
|
-
}),
|
|
1878
|
+
propsAsIs: !1
|
|
1879
|
+
}), Xn = /* @__PURE__ */ i("span")({
|
|
2208
1880
|
name: "StepIndicator",
|
|
2209
1881
|
class: "sgf3v5n",
|
|
2210
|
-
propsAsIs:
|
|
2211
|
-
}),
|
|
1882
|
+
propsAsIs: !1
|
|
1883
|
+
}), ei = /* @__PURE__ */ i("div")({
|
|
2212
1884
|
name: "InvitingUserWrap",
|
|
2213
1885
|
class: "i1sj6gn8",
|
|
2214
|
-
propsAsIs:
|
|
2215
|
-
})
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
inviterName: l2
|
|
1886
|
+
propsAsIs: !1
|
|
1887
|
+
}), si = ({
|
|
1888
|
+
loading: e,
|
|
1889
|
+
steps: s,
|
|
1890
|
+
currentStep: n,
|
|
1891
|
+
inviterName: a
|
|
2221
1892
|
}) => {
|
|
2222
|
-
const { headline:
|
|
2223
|
-
return /* @__PURE__ */
|
|
2224
|
-
|
|
2225
|
-
/* @__PURE__ */
|
|
2226
|
-
/* @__PURE__ */
|
|
2227
|
-
|
|
1893
|
+
const { headline: r, tagline: o } = s[n];
|
|
1894
|
+
return /* @__PURE__ */ h(Pn, { children: [
|
|
1895
|
+
o && /* @__PURE__ */ t(Qn, { children: /* @__PURE__ */ t(M, { loading: e, children: /* @__PURE__ */ t(Kn, { children: o }) }) }),
|
|
1896
|
+
/* @__PURE__ */ h(Yn, { "data-welcome-screen": n === 0, children: [
|
|
1897
|
+
/* @__PURE__ */ t(Wn, { children: /* @__PURE__ */ t(M, { loading: e, children: s.map(({ graphicSrc: l }, c) => /* @__PURE__ */ t(Zn, { src: l, "data-active": n === c })) }) }),
|
|
1898
|
+
r && /* @__PURE__ */ t(M, { loading: e, children: /* @__PURE__ */ t(Gn, { children: r }) })
|
|
2228
1899
|
] }),
|
|
2229
|
-
|
|
2230
|
-
/* @__PURE__ */
|
|
1900
|
+
a && n === 0 && /* @__PURE__ */ t(ei, { children: /* @__PURE__ */ t(jn, { name: a }) }),
|
|
1901
|
+
/* @__PURE__ */ t(Jn, { style: e ? { visibility: "hidden" } : {}, children: Array.from({ length: s.length }).map((l, c) => /* @__PURE__ */ t(Xn, { "data-active": n === c }, c)) })
|
|
2231
1902
|
] });
|
|
2232
|
-
}
|
|
2233
|
-
const t$3 = /* @__PURE__ */ styled_default("div")({
|
|
1903
|
+
}, ti = /* @__PURE__ */ i("div")({
|
|
2234
1904
|
name: "Container",
|
|
2235
1905
|
class: "cm0bev",
|
|
2236
|
-
propsAsIs:
|
|
2237
|
-
}),
|
|
1906
|
+
propsAsIs: !1
|
|
1907
|
+
}), ni = /* @__PURE__ */ i("div")({
|
|
2238
1908
|
name: "Content",
|
|
2239
1909
|
class: "ce7x737",
|
|
2240
|
-
propsAsIs:
|
|
2241
|
-
}),
|
|
1910
|
+
propsAsIs: !1
|
|
1911
|
+
}), ii = /* @__PURE__ */ i("div")({
|
|
2242
1912
|
name: "Title",
|
|
2243
1913
|
class: "tc2tor6",
|
|
2244
|
-
propsAsIs:
|
|
2245
|
-
}),
|
|
1914
|
+
propsAsIs: !1
|
|
1915
|
+
}), ai = /* @__PURE__ */ i("div")({
|
|
2246
1916
|
name: "RulesList",
|
|
2247
1917
|
class: "r1k5klql",
|
|
2248
|
-
propsAsIs:
|
|
2249
|
-
}),
|
|
1918
|
+
propsAsIs: !1
|
|
1919
|
+
}), ri = /* @__PURE__ */ i("div")({
|
|
2250
1920
|
name: "RulesItem",
|
|
2251
1921
|
class: "r1tf3ft2",
|
|
2252
|
-
propsAsIs:
|
|
2253
|
-
}),
|
|
1922
|
+
propsAsIs: !1
|
|
1923
|
+
}), oi = /* @__PURE__ */ i("div")({
|
|
2254
1924
|
name: "RuleIcon",
|
|
2255
1925
|
class: "rwpvg1k",
|
|
2256
|
-
propsAsIs:
|
|
2257
|
-
}),
|
|
1926
|
+
propsAsIs: !1
|
|
1927
|
+
}), li = /* @__PURE__ */ i("div")({
|
|
2258
1928
|
name: "RuleText",
|
|
2259
1929
|
class: "rbxiag0",
|
|
2260
|
-
propsAsIs:
|
|
2261
|
-
}),
|
|
1930
|
+
propsAsIs: !1
|
|
1931
|
+
}), ci = /* @__PURE__ */ i("button")({
|
|
2262
1932
|
name: "TermsButton",
|
|
2263
1933
|
class: "t6cyrry",
|
|
2264
|
-
propsAsIs:
|
|
2265
|
-
})
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
] }, a2)) })
|
|
1934
|
+
propsAsIs: !1
|
|
1935
|
+
}), di = ({
|
|
1936
|
+
rules: e,
|
|
1937
|
+
rulesTitle: s,
|
|
1938
|
+
termsText: n,
|
|
1939
|
+
primaryColor: a,
|
|
1940
|
+
openTerms: r
|
|
1941
|
+
}) => /* @__PURE__ */ h(ti, { children: [
|
|
1942
|
+
/* @__PURE__ */ h(ni, { children: [
|
|
1943
|
+
/* @__PURE__ */ t(ii, { children: s }),
|
|
1944
|
+
/* @__PURE__ */ t(ai, { children: e?.map(({ label: o, icon: l }, c) => /* @__PURE__ */ h(ri, { children: [
|
|
1945
|
+
l && /* @__PURE__ */ t(oi, { style: { backgroundColor: a }, children: /* @__PURE__ */ t(k, { name: l, "data-icon": l }) }),
|
|
1946
|
+
/* @__PURE__ */ t(li, { children: o })
|
|
1947
|
+
] }, c)) })
|
|
2279
1948
|
] }),
|
|
2280
|
-
|
|
2281
|
-
] })
|
|
2282
|
-
const t$2 = /* @__PURE__ */ styled_default("div")({
|
|
1949
|
+
n && /* @__PURE__ */ t(ci, { "data-a": "intr", onClick: r, children: "See Terms and Conditions" })
|
|
1950
|
+
] }), pi = /* @__PURE__ */ i("div")({
|
|
2283
1951
|
name: "Container",
|
|
2284
1952
|
class: "cj0g35h",
|
|
2285
|
-
propsAsIs:
|
|
2286
|
-
}),
|
|
1953
|
+
propsAsIs: !1
|
|
1954
|
+
}), hi = /* @__PURE__ */ i("div")({
|
|
2287
1955
|
name: "Content",
|
|
2288
1956
|
class: "c1xkhrbn",
|
|
2289
|
-
propsAsIs:
|
|
2290
|
-
}),
|
|
1957
|
+
propsAsIs: !1
|
|
1958
|
+
}), mi = /* @__PURE__ */ i("div")({
|
|
2291
1959
|
name: "Title",
|
|
2292
1960
|
class: "tifzb8b",
|
|
2293
|
-
propsAsIs:
|
|
2294
|
-
}),
|
|
1961
|
+
propsAsIs: !1
|
|
1962
|
+
}), ui = /* @__PURE__ */ i("div")({
|
|
2295
1963
|
name: "ScrollingText",
|
|
2296
1964
|
class: "stduw5c",
|
|
2297
|
-
propsAsIs:
|
|
2298
|
-
})
|
|
2299
|
-
|
|
2300
|
-
/* @__PURE__ */
|
|
2301
|
-
|
|
2302
|
-
] }) });
|
|
2303
|
-
const o$2 = /* @__PURE__ */ styled_default("button")({
|
|
1965
|
+
propsAsIs: !1
|
|
1966
|
+
}), fi = ({ termsTitle: e, termsText: s }) => /* @__PURE__ */ t(pi, { children: /* @__PURE__ */ h(hi, { children: [
|
|
1967
|
+
/* @__PURE__ */ t(mi, { children: e }),
|
|
1968
|
+
/* @__PURE__ */ t(ui, { children: s })
|
|
1969
|
+
] }) }), Ci = /* @__PURE__ */ i("button")({
|
|
2304
1970
|
name: "SButton",
|
|
2305
1971
|
class: "s1nve60q",
|
|
2306
|
-
propsAsIs:
|
|
2307
|
-
}),
|
|
1972
|
+
propsAsIs: !1
|
|
1973
|
+
}), gi = /* @__PURE__ */ i("span")({
|
|
2308
1974
|
name: "ButtonLabel",
|
|
2309
1975
|
class: "b1xoswwx",
|
|
2310
|
-
propsAsIs:
|
|
2311
|
-
})
|
|
2312
|
-
const d$2 = ({ disabled: r2, variant: a2 = "primary", onClick: o2, children: n2, ...i2 }) => /* @__PURE__ */ jsx(o$2, { "data-a": "intr", onClick: o2, disabled: r2, "data-variant": a2, ...i2, children: /* @__PURE__ */ jsx(n$1, { children: n2 }) });
|
|
2313
|
-
const i$2 = /* @__PURE__ */ styled_default("div")({
|
|
1976
|
+
propsAsIs: !1
|
|
1977
|
+
}), vi = ({ disabled: e, variant: s = "primary", onClick: n, children: a, ...r }) => /* @__PURE__ */ t(Ci, { "data-a": "intr", onClick: n, disabled: e, "data-variant": s, ...r, children: /* @__PURE__ */ t(gi, { children: a }) }), Ii = /* @__PURE__ */ i("div")({
|
|
2314
1978
|
name: "Container",
|
|
2315
1979
|
class: "c18uddbs",
|
|
2316
|
-
propsAsIs:
|
|
2317
|
-
}),
|
|
1980
|
+
propsAsIs: !1
|
|
1981
|
+
}), $i = /* @__PURE__ */ i("div")({
|
|
2318
1982
|
name: "Content",
|
|
2319
1983
|
class: "cvcfjf6",
|
|
2320
|
-
propsAsIs:
|
|
2321
|
-
}),
|
|
1984
|
+
propsAsIs: !1
|
|
1985
|
+
}), bi = /* @__PURE__ */ i("div")({
|
|
2322
1986
|
name: "OnboardingHeader",
|
|
2323
1987
|
class: "o1ie27lw",
|
|
2324
|
-
propsAsIs:
|
|
2325
|
-
}),
|
|
1988
|
+
propsAsIs: !1
|
|
1989
|
+
}), Ai = /* @__PURE__ */ i("button")({
|
|
2326
1990
|
name: "CloseBtn",
|
|
2327
1991
|
class: "c15cjkwi",
|
|
2328
|
-
propsAsIs:
|
|
2329
|
-
}),
|
|
1992
|
+
propsAsIs: !1
|
|
1993
|
+
}), yi = () => k, wi = /* @__PURE__ */ i(yi())({
|
|
2330
1994
|
name: "IconClose",
|
|
2331
1995
|
class: "i1mavjt2",
|
|
2332
|
-
propsAsIs:
|
|
2333
|
-
}),
|
|
1996
|
+
propsAsIs: !0
|
|
1997
|
+
}), Li = /* @__PURE__ */ i("div")({
|
|
2334
1998
|
name: "OnboardingFooter",
|
|
2335
1999
|
class: "o1x0dyzv",
|
|
2336
|
-
propsAsIs:
|
|
2337
|
-
}),
|
|
2000
|
+
propsAsIs: !1
|
|
2001
|
+
}), ki = () => vi, _i = /* @__PURE__ */ i(ki())({
|
|
2338
2002
|
name: "OnboardingActionBtn",
|
|
2339
2003
|
class: "o1jfi9c3",
|
|
2340
|
-
propsAsIs:
|
|
2341
|
-
})
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
onClose: A2
|
|
2004
|
+
propsAsIs: !0
|
|
2005
|
+
}), j = {
|
|
2006
|
+
steps: !1,
|
|
2007
|
+
rules: !1,
|
|
2008
|
+
inviteCard: !1
|
|
2009
|
+
}, Ni = ({
|
|
2010
|
+
gamification: e,
|
|
2011
|
+
steps: s,
|
|
2012
|
+
rules: n,
|
|
2013
|
+
rulesBtnLabel: a,
|
|
2014
|
+
rulesTitle: r,
|
|
2015
|
+
termsTitle: o,
|
|
2016
|
+
termsText: l,
|
|
2017
|
+
primaryColor: c,
|
|
2018
|
+
inviteLink: d,
|
|
2019
|
+
inviteCardTitle: m,
|
|
2020
|
+
inviteCardSubtext: f,
|
|
2021
|
+
inviteCardBtnLabel: u,
|
|
2022
|
+
loading: p,
|
|
2023
|
+
inviterName: C,
|
|
2024
|
+
sdk: g,
|
|
2025
|
+
onClose: I
|
|
2363
2026
|
}) => {
|
|
2364
|
-
const [
|
|
2365
|
-
|
|
2366
|
-
|
|
2027
|
+
const [v, A] = w(0), [b, N] = w(!1), [L, x] = w(j);
|
|
2028
|
+
y(() => {
|
|
2029
|
+
s?.length ? x({ ...j, steps: !0 }) : n?.length ? x({ ...j, rules: !0 }) : x({ ...j, inviteCard: !0 });
|
|
2367
2030
|
}, []);
|
|
2368
|
-
const
|
|
2369
|
-
|
|
2370
|
-
}, [
|
|
2371
|
-
|
|
2031
|
+
const $e = z(() => L.steps && v === 0 ? "Continue" : L.rules ? b || !a ? "Got it" : a : L.inviteCard ? u || "Play Now" : "Next", [L, v, b, a, u]), be = q(() => {
|
|
2032
|
+
s?.length && v < s.length - 1 ? A((i2) => ++i2) : n?.length && L.steps ? x({ ...j, rules: !0 }) : L.rules && x({ ...j, inviteCard: !0 });
|
|
2033
|
+
}, [v, s?.length, n?.length, L, A, x]), Ae = async () => {
|
|
2034
|
+
L.inviteCard ? await e.onboardingStatus.submitInplay() : L.rules && b ? N(!1) : be();
|
|
2372
2035
|
};
|
|
2373
|
-
return
|
|
2374
|
-
!
|
|
2375
|
-
}, [
|
|
2376
|
-
/* @__PURE__ */
|
|
2377
|
-
/* @__PURE__ */
|
|
2378
|
-
|
|
2379
|
-
|
|
2036
|
+
return y(() => {
|
|
2037
|
+
!p && C && g.inviteDisplayed();
|
|
2038
|
+
}, [p, C, g]), /* @__PURE__ */ t(ns, { children: ({ width: i2, height: u2 }) => /* @__PURE__ */ h(Ii, { style: { width: i2, height: u2, maxHeight: u2 }, children: [
|
|
2039
|
+
/* @__PURE__ */ t(bi, { children: /* @__PURE__ */ t(Ai, { "data-a": "intr", onClick: I, children: /* @__PURE__ */ t(wi, { name: "icon-close-btn-gray" }) }) }),
|
|
2040
|
+
/* @__PURE__ */ h($i, { children: [
|
|
2041
|
+
L.steps && s?.length && /* @__PURE__ */ t(
|
|
2042
|
+
si,
|
|
2380
2043
|
{
|
|
2381
|
-
loading:
|
|
2382
|
-
steps:
|
|
2383
|
-
currentStep:
|
|
2384
|
-
inviterName:
|
|
2044
|
+
loading: p,
|
|
2045
|
+
steps: s,
|
|
2046
|
+
currentStep: v,
|
|
2047
|
+
inviterName: C
|
|
2385
2048
|
}
|
|
2386
2049
|
),
|
|
2387
|
-
|
|
2388
|
-
|
|
2050
|
+
L.rules && !b && /* @__PURE__ */ t(
|
|
2051
|
+
di,
|
|
2389
2052
|
{
|
|
2390
|
-
rules:
|
|
2391
|
-
rulesTitle:
|
|
2392
|
-
termsText:
|
|
2393
|
-
primaryColor:
|
|
2394
|
-
openTerms: () =>
|
|
2053
|
+
rules: n,
|
|
2054
|
+
rulesTitle: r,
|
|
2055
|
+
termsText: l,
|
|
2056
|
+
primaryColor: c,
|
|
2057
|
+
openTerms: () => N(!0)
|
|
2395
2058
|
}
|
|
2396
2059
|
),
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2060
|
+
L.rules && b && /* @__PURE__ */ t(fi, { termsTitle: o, termsText: l }),
|
|
2061
|
+
L.inviteCard && /* @__PURE__ */ t(
|
|
2062
|
+
fe,
|
|
2400
2063
|
{
|
|
2401
|
-
inviteLink:
|
|
2402
|
-
inviteCardTitle:
|
|
2403
|
-
inviteCardSubtext:
|
|
2404
|
-
primaryColor:
|
|
2064
|
+
inviteLink: d,
|
|
2065
|
+
inviteCardTitle: m,
|
|
2066
|
+
inviteCardSubtext: f,
|
|
2067
|
+
primaryColor: c
|
|
2405
2068
|
}
|
|
2406
2069
|
)
|
|
2407
2070
|
] }),
|
|
2408
|
-
/* @__PURE__ */
|
|
2071
|
+
/* @__PURE__ */ t(Li, { children: /* @__PURE__ */ t(M, { loading: p, style: { width: "100%" }, children: /* @__PURE__ */ t(_i, { "data-a": "intr", onClick: Ae, children: $e }) }) })
|
|
2409
2072
|
] }) });
|
|
2410
|
-
}
|
|
2411
|
-
const a = /* @__PURE__ */ styled_default("div")({
|
|
2073
|
+
}, Si = /* @__PURE__ */ i("div")({
|
|
2412
2074
|
name: "Container",
|
|
2413
2075
|
class: "c1qjj4d4",
|
|
2414
|
-
propsAsIs:
|
|
2415
|
-
}),
|
|
2076
|
+
propsAsIs: !1
|
|
2077
|
+
}), Ti = /* @__PURE__ */ i("div")({
|
|
2416
2078
|
name: "CloseIconWrap",
|
|
2417
2079
|
class: "c1lg6b8a",
|
|
2418
|
-
propsAsIs:
|
|
2419
|
-
}),
|
|
2080
|
+
propsAsIs: !1
|
|
2081
|
+
}), xi = () => k, Ri = /* @__PURE__ */ i(xi())({
|
|
2420
2082
|
name: "CloseIcon",
|
|
2421
2083
|
class: "c159el66",
|
|
2422
|
-
propsAsIs:
|
|
2423
|
-
}),
|
|
2084
|
+
propsAsIs: !0
|
|
2085
|
+
}), Ei = /* @__PURE__ */ i("div")({
|
|
2424
2086
|
name: "Title",
|
|
2425
2087
|
class: "t16xmufv",
|
|
2426
|
-
propsAsIs:
|
|
2427
|
-
}),
|
|
2088
|
+
propsAsIs: !1
|
|
2089
|
+
}), Vi = /* @__PURE__ */ i("img")({
|
|
2428
2090
|
name: "SponsorLogo",
|
|
2429
2091
|
class: "s83lc21",
|
|
2430
|
-
propsAsIs:
|
|
2431
|
-
}),
|
|
2092
|
+
propsAsIs: !1
|
|
2093
|
+
}), Hi = /* @__PURE__ */ i("div")({
|
|
2432
2094
|
name: "PresentsTitle",
|
|
2433
2095
|
class: "p1p7igia",
|
|
2434
|
-
propsAsIs:
|
|
2435
|
-
}),
|
|
2096
|
+
propsAsIs: !1
|
|
2097
|
+
}), zi = /* @__PURE__ */ i("div")({
|
|
2436
2098
|
name: "Subtitle",
|
|
2437
2099
|
class: "s1eftsbu",
|
|
2438
|
-
propsAsIs:
|
|
2439
|
-
}),
|
|
2100
|
+
propsAsIs: !1
|
|
2101
|
+
}), Mi = /* @__PURE__ */ i("div")({
|
|
2440
2102
|
name: "Description",
|
|
2441
2103
|
class: "d8uezec",
|
|
2442
|
-
propsAsIs:
|
|
2443
|
-
}),
|
|
2104
|
+
propsAsIs: !1
|
|
2105
|
+
}), Oi = /* @__PURE__ */ i("button")({
|
|
2444
2106
|
name: "ActionButton",
|
|
2445
2107
|
class: "a1h1bk90",
|
|
2446
|
-
propsAsIs:
|
|
2447
|
-
})
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
/* @__PURE__ */
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
((m2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : m2.subtitle) && /* @__PURE__ */ jsx(I, { children: (i2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : i2.subtitle }),
|
|
2458
|
-
/* @__PURE__ */ jsx(f$2, { "data-a": "intr", onClick: S2, children: "Play Now" })
|
|
2459
|
-
] });
|
|
2460
|
-
};
|
|
2461
|
-
const C = [{
|
|
2108
|
+
propsAsIs: !1
|
|
2109
|
+
}), ee = ({ close: e, action: s, onboarding: n }) => /* @__PURE__ */ h(Si, { children: [
|
|
2110
|
+
/* @__PURE__ */ t(Ti, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ t(Ri, { name: "icon-cross" }) }),
|
|
2111
|
+
n?.titleCard?.media?.sponsorLogo && /* @__PURE__ */ h(Ei, { children: [
|
|
2112
|
+
/* @__PURE__ */ t(Vi, { alt: "sponsor-logo", src: n?.titleCard?.media?.sponsorLogo }),
|
|
2113
|
+
/* @__PURE__ */ t(Hi, { children: "PRESENTS" })
|
|
2114
|
+
] }),
|
|
2115
|
+
n?.titleCard?.title && /* @__PURE__ */ t(zi, { children: n?.titleCard?.title }),
|
|
2116
|
+
n?.titleCard?.subtitle && /* @__PURE__ */ t(Mi, { children: n?.titleCard?.subtitle }),
|
|
2117
|
+
/* @__PURE__ */ t(Oi, { "data-a": "intr", onClick: s, children: "Play Now" })
|
|
2118
|
+
] }), ve = [{
|
|
2462
2119
|
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",
|
|
2463
2120
|
tagline: "",
|
|
2464
|
-
headline: /* @__PURE__ */
|
|
2465
|
-
children: ["Welcome to ", /* @__PURE__ */
|
|
2121
|
+
headline: /* @__PURE__ */ h(S, {
|
|
2122
|
+
children: ["Welcome to ", /* @__PURE__ */ t("br", {}), " Live Challenge"]
|
|
2466
2123
|
})
|
|
2467
2124
|
}, {
|
|
2468
2125
|
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_2.png",
|
|
@@ -2470,51 +2127,49 @@ const C = [{
|
|
|
2470
2127
|
}, {
|
|
2471
2128
|
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_3.png",
|
|
2472
2129
|
headline: "Win points and play against friends."
|
|
2473
|
-
}],
|
|
2130
|
+
}], Di = /* @__PURE__ */ i("div")({
|
|
2474
2131
|
name: "OnboardingContainer",
|
|
2475
2132
|
class: "o1xni1kr",
|
|
2476
|
-
propsAsIs:
|
|
2477
|
-
}),
|
|
2133
|
+
propsAsIs: !1
|
|
2134
|
+
}), Fi = () => n2, Bi = /* @__PURE__ */ i(Fi())({
|
|
2478
2135
|
name: "OnboardingNotificationContainer",
|
|
2479
2136
|
class: "o1vnouv7",
|
|
2480
|
-
propsAsIs:
|
|
2481
|
-
}),
|
|
2137
|
+
propsAsIs: !0
|
|
2138
|
+
}), se = /* @__PURE__ */ i("div")({
|
|
2482
2139
|
name: "InnerContainer",
|
|
2483
2140
|
class: "i59uefw",
|
|
2484
|
-
propsAsIs:
|
|
2485
|
-
}),
|
|
2141
|
+
propsAsIs: !1
|
|
2142
|
+
}), qi = /* @__PURE__ */ i("div")({
|
|
2486
2143
|
name: "OnboardingOverlap",
|
|
2487
2144
|
class: "ovnr8ov",
|
|
2488
|
-
propsAsIs:
|
|
2489
|
-
}),
|
|
2490
|
-
deepLink:
|
|
2491
|
-
onboardingOpts:
|
|
2492
|
-
notification:
|
|
2493
|
-
gamification:
|
|
2494
|
-
loading:
|
|
2495
|
-
sdk:
|
|
2496
|
-
throttled:
|
|
2145
|
+
propsAsIs: !1
|
|
2146
|
+
}), Ui = ({
|
|
2147
|
+
deepLink: e,
|
|
2148
|
+
onboardingOpts: s,
|
|
2149
|
+
notification: n,
|
|
2150
|
+
gamification: a,
|
|
2151
|
+
loading: r,
|
|
2152
|
+
sdk: o,
|
|
2153
|
+
throttled: l
|
|
2497
2154
|
}) => {
|
|
2498
|
-
|
|
2499
|
-
const u2 = useStore(d2.friends ? d2.friends.getStore() : createSingleStore({
|
|
2155
|
+
const c = $(a.friends ? a.friends.getStore() : de({
|
|
2500
2156
|
data: []
|
|
2501
|
-
})), [
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
p2 && S2(p2.data);
|
|
2157
|
+
})), [d, m] = w(void 0), f = z(() => {
|
|
2158
|
+
const u = o.getInviter();
|
|
2159
|
+
return u ? c.data?.find(({
|
|
2160
|
+
slId: p
|
|
2161
|
+
}) => p === u)?.name : "";
|
|
2162
|
+
}, [c.data, o]);
|
|
2163
|
+
return y(() => {
|
|
2164
|
+
const u = e.$store.subscribe((p) => {
|
|
2165
|
+
p && m(p.data);
|
|
2511
2166
|
});
|
|
2512
2167
|
return () => {
|
|
2513
|
-
|
|
2168
|
+
u();
|
|
2514
2169
|
};
|
|
2515
|
-
}, [
|
|
2516
|
-
children: [/* @__PURE__ */
|
|
2517
|
-
loading:
|
|
2170
|
+
}, [e.$store]), /* @__PURE__ */ h(Di, {
|
|
2171
|
+
children: [/* @__PURE__ */ t(Ni, {
|
|
2172
|
+
loading: r,
|
|
2518
2173
|
rules: [{
|
|
2519
2174
|
label: "Answer as many questions as you like.",
|
|
2520
2175
|
icon: "icon-btn-feature-groups"
|
|
@@ -2525,413 +2180,400 @@ const C = [{
|
|
|
2525
2180
|
label: "Top the leader board and best your friends.",
|
|
2526
2181
|
icon: "icon-trophy"
|
|
2527
2182
|
}],
|
|
2528
|
-
rulesBtnLabel:
|
|
2529
|
-
rulesTitle:
|
|
2183
|
+
rulesBtnLabel: s.rules?.buttonLabel,
|
|
2184
|
+
rulesTitle: s.rules?.heading,
|
|
2530
2185
|
termsTitle: "Terms and Conditions",
|
|
2531
|
-
termsText:
|
|
2532
|
-
steps:
|
|
2533
|
-
primaryColor:
|
|
2534
|
-
inviteLink:
|
|
2535
|
-
inviteCardTitle:
|
|
2536
|
-
inviteCardSubtext:
|
|
2537
|
-
inviteCardBtnLabel:
|
|
2186
|
+
termsText: s.rules?.terms,
|
|
2187
|
+
steps: ve,
|
|
2188
|
+
primaryColor: s.inviteCard?.iconColor,
|
|
2189
|
+
inviteLink: d,
|
|
2190
|
+
inviteCardTitle: s.inviteCard?.heading,
|
|
2191
|
+
inviteCardSubtext: s.inviteCard?.subtext,
|
|
2192
|
+
inviteCardBtnLabel: s.inviteCard?.buttonLabel,
|
|
2538
2193
|
onClose: () => {
|
|
2539
|
-
|
|
2540
|
-
(i2 = o2.close) == null || i2.call(o2);
|
|
2194
|
+
n.close?.();
|
|
2541
2195
|
},
|
|
2542
|
-
gamification:
|
|
2543
|
-
sdk:
|
|
2544
|
-
inviterName:
|
|
2545
|
-
}),
|
|
2196
|
+
gamification: a,
|
|
2197
|
+
sdk: o,
|
|
2198
|
+
inviterName: f
|
|
2199
|
+
}), l && /* @__PURE__ */ t(qi, {})]
|
|
2546
2200
|
});
|
|
2547
|
-
},
|
|
2548
|
-
sdk:
|
|
2549
|
-
notification:
|
|
2550
|
-
saveHeight:
|
|
2551
|
-
style:
|
|
2552
|
-
appNode:
|
|
2553
|
-
sdkInDesktopView:
|
|
2554
|
-
responsiveStore:
|
|
2201
|
+
}, ji = ({
|
|
2202
|
+
sdk: e,
|
|
2203
|
+
notification: s,
|
|
2204
|
+
saveHeight: n,
|
|
2205
|
+
style: a,
|
|
2206
|
+
appNode: r,
|
|
2207
|
+
sdkInDesktopView: o,
|
|
2208
|
+
responsiveStore: l
|
|
2555
2209
|
}) => {
|
|
2556
|
-
const
|
|
2557
|
-
graphicSrc:
|
|
2558
|
-
}) =>
|
|
2559
|
-
screen:
|
|
2560
|
-
} =
|
|
2210
|
+
const c = E(null), d = s.data.onboarding, [m, f] = w(d?.instantOpen), u = e.getFeature(V.GAMES), p = z(() => ve?.map(({
|
|
2211
|
+
graphicSrc: v
|
|
2212
|
+
}) => v), []), {
|
|
2213
|
+
screen: C
|
|
2214
|
+
} = $(l, {
|
|
2561
2215
|
keys: ["screen"]
|
|
2562
2216
|
});
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
}, [o2]);
|
|
2217
|
+
Fe(() => {
|
|
2218
|
+
n(c.current?.getBoundingClientRect().height || 0);
|
|
2219
|
+
}, [n]);
|
|
2567
2220
|
const {
|
|
2568
|
-
loading:
|
|
2569
|
-
throttled:
|
|
2570
|
-
} =
|
|
2571
|
-
return
|
|
2572
|
-
container:
|
|
2573
|
-
useContainer: !
|
|
2574
|
-
children: /* @__PURE__ */
|
|
2575
|
-
throttled:
|
|
2576
|
-
notification:
|
|
2577
|
-
setOpened:
|
|
2578
|
-
gamification:
|
|
2579
|
-
onboardingOpts:
|
|
2580
|
-
deepLink:
|
|
2581
|
-
loading:
|
|
2582
|
-
renderToNode:
|
|
2583
|
-
sdk:
|
|
2221
|
+
loading: g,
|
|
2222
|
+
throttled: I
|
|
2223
|
+
} = On(p);
|
|
2224
|
+
return m && u && d && r.current ? /* @__PURE__ */ t(me, {
|
|
2225
|
+
container: r,
|
|
2226
|
+
useContainer: !o,
|
|
2227
|
+
children: /* @__PURE__ */ t(Ui, {
|
|
2228
|
+
throttled: I,
|
|
2229
|
+
notification: s,
|
|
2230
|
+
setOpened: f,
|
|
2231
|
+
gamification: u,
|
|
2232
|
+
onboardingOpts: d,
|
|
2233
|
+
deepLink: u.deepLink,
|
|
2234
|
+
loading: g,
|
|
2235
|
+
renderToNode: r,
|
|
2236
|
+
sdk: e
|
|
2584
2237
|
})
|
|
2585
|
-
}) : /* @__PURE__ */
|
|
2586
|
-
children: [/* @__PURE__ */
|
|
2587
|
-
ref:
|
|
2238
|
+
}) : /* @__PURE__ */ h(S, {
|
|
2239
|
+
children: [/* @__PURE__ */ t(se, {
|
|
2240
|
+
ref: c,
|
|
2588
2241
|
style: {
|
|
2589
2242
|
position: "absolute",
|
|
2590
2243
|
visibility: "hidden"
|
|
2591
2244
|
},
|
|
2592
|
-
children: /* @__PURE__ */
|
|
2245
|
+
children: /* @__PURE__ */ t(ee, {
|
|
2593
2246
|
close: () => {
|
|
2594
2247
|
},
|
|
2595
2248
|
action: () => {
|
|
2596
2249
|
},
|
|
2597
|
-
onboarding:
|
|
2250
|
+
onboarding: d
|
|
2598
2251
|
})
|
|
2599
|
-
}), /* @__PURE__ */
|
|
2600
|
-
style:
|
|
2601
|
-
hiding:
|
|
2602
|
-
children: /* @__PURE__ */
|
|
2603
|
-
children: /* @__PURE__ */
|
|
2604
|
-
close:
|
|
2252
|
+
}), /* @__PURE__ */ t(Bi, {
|
|
2253
|
+
style: a,
|
|
2254
|
+
hiding: s.hiding,
|
|
2255
|
+
children: /* @__PURE__ */ t(se, {
|
|
2256
|
+
children: /* @__PURE__ */ t(ee, {
|
|
2257
|
+
close: s.close,
|
|
2605
2258
|
action: () => {
|
|
2606
|
-
|
|
2607
|
-
g2(true), (((m2 = s2.current) == null ? void 0 : m2.getBoundingClientRect().y) || 0) < 0 && I$9(s2, h2.size, {
|
|
2259
|
+
f(!0), (r.current?.getBoundingClientRect().y || 0) < 0 && m2(r, C.size, {
|
|
2608
2260
|
behavior: "smooth"
|
|
2609
2261
|
});
|
|
2610
2262
|
},
|
|
2611
|
-
onboarding:
|
|
2263
|
+
onboarding: d
|
|
2612
2264
|
})
|
|
2613
2265
|
})
|
|
2614
2266
|
})]
|
|
2615
2267
|
});
|
|
2616
|
-
}
|
|
2617
|
-
const n = /* @__PURE__ */ styled_default("button")({
|
|
2268
|
+
}, Pi = /* @__PURE__ */ i("button")({
|
|
2618
2269
|
name: "Container",
|
|
2619
2270
|
class: "crkmfw1",
|
|
2620
|
-
propsAsIs:
|
|
2621
|
-
}),
|
|
2271
|
+
propsAsIs: !1
|
|
2272
|
+
}), Wi = /* @__PURE__ */ i("div")({
|
|
2622
2273
|
name: "Content",
|
|
2623
2274
|
class: "c11awpy4",
|
|
2624
|
-
propsAsIs:
|
|
2625
|
-
}),
|
|
2275
|
+
propsAsIs: !1
|
|
2276
|
+
}), Zi = /* @__PURE__ */ i("span")({
|
|
2626
2277
|
name: "Title",
|
|
2627
2278
|
class: "t154z7mh",
|
|
2628
|
-
propsAsIs:
|
|
2629
|
-
})
|
|
2630
|
-
|
|
2631
|
-
/* @__PURE__ */
|
|
2632
|
-
|
|
2633
|
-
] }) });
|
|
2634
|
-
const e = () => f$c, c = /* @__PURE__ */ styled_default(e())({
|
|
2279
|
+
propsAsIs: !1
|
|
2280
|
+
}), Gi = ({ title: e, onClick: s, className: n, style: a }) => /* @__PURE__ */ t(Pi, { "data-a": "intr", onClick: s, className: n, style: a, children: /* @__PURE__ */ h(Wi, { "data-a": "intr", children: [
|
|
2281
|
+
/* @__PURE__ */ t(k, { "data-a": "intr", name: "iconUp" }),
|
|
2282
|
+
e && /* @__PURE__ */ t(Zi, { "data-a": "intr", children: e })
|
|
2283
|
+
] }) }), Qi = () => n2, Ki = /* @__PURE__ */ i(Qi())({
|
|
2635
2284
|
name: "Container",
|
|
2636
2285
|
class: "c8ol1ve",
|
|
2637
|
-
propsAsIs:
|
|
2638
|
-
}),
|
|
2286
|
+
propsAsIs: !0
|
|
2287
|
+
}), Ie = /* @__PURE__ */ i("div")({
|
|
2639
2288
|
name: "InnerContainer",
|
|
2640
2289
|
class: "iqfywam",
|
|
2641
|
-
propsAsIs:
|
|
2642
|
-
}),
|
|
2290
|
+
propsAsIs: !1
|
|
2291
|
+
}), Yi = () => Ie, Ji = /* @__PURE__ */ i(Yi())({
|
|
2643
2292
|
name: "HiddenContainer",
|
|
2644
2293
|
class: "hokmtod",
|
|
2645
|
-
propsAsIs:
|
|
2646
|
-
}),
|
|
2294
|
+
propsAsIs: !0
|
|
2295
|
+
}), Xi = /* @__PURE__ */ i("div")({
|
|
2647
2296
|
name: "NotificationRefreshing",
|
|
2648
2297
|
class: "n192d1q8",
|
|
2649
|
-
propsAsIs:
|
|
2650
|
-
}),
|
|
2298
|
+
propsAsIs: !1
|
|
2299
|
+
}), ea = () => Gi, sa = /* @__PURE__ */ i(ea())({
|
|
2651
2300
|
name: "Pill",
|
|
2652
2301
|
class: "p1lha68t",
|
|
2653
|
-
propsAsIs:
|
|
2654
|
-
})
|
|
2655
|
-
const
|
|
2656
|
-
const [e2, d2] = useState(0), i2 = useRef(null), l2 = useMemo(() => new ResizeObserver((n2) => {
|
|
2302
|
+
propsAsIs: !0
|
|
2303
|
+
}), ta = (e) => {
|
|
2304
|
+
const [s, n] = w(0), a = E(null), r = z(() => new ResizeObserver((c) => {
|
|
2657
2305
|
window.requestAnimationFrame(() => {
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
o2 && d2(o2.height);
|
|
2306
|
+
if (Array.isArray(c)) {
|
|
2307
|
+
for (const d of c)
|
|
2308
|
+
if (d.contentBoxSize) {
|
|
2309
|
+
const m = a.current?.getBoundingClientRect();
|
|
2310
|
+
m && n(m.height);
|
|
2664
2311
|
}
|
|
2665
2312
|
}
|
|
2666
2313
|
});
|
|
2667
|
-
}), []),
|
|
2668
|
-
|
|
2669
|
-
}, []),
|
|
2670
|
-
|
|
2314
|
+
}), []), o = q((c) => {
|
|
2315
|
+
a.current = c;
|
|
2316
|
+
}, []), l = q((c) => {
|
|
2317
|
+
n(c);
|
|
2671
2318
|
}, []);
|
|
2672
|
-
return
|
|
2673
|
-
const
|
|
2674
|
-
return
|
|
2675
|
-
|
|
2319
|
+
return y(() => {
|
|
2320
|
+
const c = a.current;
|
|
2321
|
+
return c ? (r.observe(c), () => {
|
|
2322
|
+
r.unobserve(c);
|
|
2676
2323
|
}) : () => {
|
|
2677
2324
|
};
|
|
2678
|
-
}, [
|
|
2679
|
-
|
|
2680
|
-
}), [
|
|
2681
|
-
},
|
|
2682
|
-
sdk:
|
|
2683
|
-
notification:
|
|
2684
|
-
appNode:
|
|
2685
|
-
responsiveStore:
|
|
2686
|
-
hasActiveFeature:
|
|
2325
|
+
}, [e]), y(() => () => {
|
|
2326
|
+
r.disconnect();
|
|
2327
|
+
}), [o, s, l];
|
|
2328
|
+
}, na = ({
|
|
2329
|
+
sdk: e,
|
|
2330
|
+
notification: s,
|
|
2331
|
+
appNode: n,
|
|
2332
|
+
responsiveStore: a,
|
|
2333
|
+
hasActiveFeature: r
|
|
2687
2334
|
}) => {
|
|
2688
|
-
var t$12, m$12;
|
|
2689
2335
|
const {
|
|
2690
|
-
sdkInDesktopView:
|
|
2691
|
-
} =
|
|
2336
|
+
sdkInDesktopView: o
|
|
2337
|
+
} = $(a, {
|
|
2692
2338
|
keys: ["sdkInDesktopView"]
|
|
2693
2339
|
}), {
|
|
2694
|
-
sdk:
|
|
2695
|
-
} =
|
|
2696
|
-
let
|
|
2697
|
-
return
|
|
2698
|
-
children: [/* @__PURE__ */
|
|
2699
|
-
ref:
|
|
2700
|
-
children: /* @__PURE__ */
|
|
2701
|
-
...
|
|
2340
|
+
sdk: l
|
|
2341
|
+
} = p2(), [c, d, m] = ta(s.id);
|
|
2342
|
+
let f = d;
|
|
2343
|
+
return r || (f = "auto"), s.type === X.QUESTION ? /* @__PURE__ */ h(S, {
|
|
2344
|
+
children: [/* @__PURE__ */ t(Ji, {
|
|
2345
|
+
ref: c,
|
|
2346
|
+
children: /* @__PURE__ */ t(q2, {
|
|
2347
|
+
...s
|
|
2702
2348
|
})
|
|
2703
|
-
}), /* @__PURE__ */
|
|
2349
|
+
}), /* @__PURE__ */ h(Ki, {
|
|
2704
2350
|
style: {
|
|
2705
|
-
height:
|
|
2351
|
+
height: s.hiding ? 0 : f
|
|
2706
2352
|
},
|
|
2707
|
-
hiding:
|
|
2708
|
-
children: [/* @__PURE__ */
|
|
2353
|
+
hiding: s.hiding,
|
|
2354
|
+
children: [/* @__PURE__ */ t(Ie, {
|
|
2709
2355
|
style: {
|
|
2710
2356
|
height: "100%"
|
|
2711
2357
|
},
|
|
2712
|
-
children: /* @__PURE__ */
|
|
2713
|
-
...
|
|
2714
|
-
controlVideo:
|
|
2358
|
+
children: /* @__PURE__ */ t(q2, {
|
|
2359
|
+
...s,
|
|
2360
|
+
controlVideo: l?.controlVideoPlayer
|
|
2715
2361
|
})
|
|
2716
|
-
}), /* @__PURE__ */
|
|
2362
|
+
}), /* @__PURE__ */ t(Xi, {}, s.id)]
|
|
2717
2363
|
})]
|
|
2718
|
-
}) :
|
|
2364
|
+
}) : s.type === X.QUESTION_RESOLVED && s.data?.question?.predictionResult ? /* @__PURE__ */ t(Mn, {
|
|
2719
2365
|
style: {
|
|
2720
|
-
height:
|
|
2366
|
+
height: s.hiding ? 0 : d
|
|
2721
2367
|
},
|
|
2722
|
-
saveHeight:
|
|
2723
|
-
close:
|
|
2724
|
-
hiding:
|
|
2725
|
-
...
|
|
2726
|
-
}) :
|
|
2368
|
+
saveHeight: m,
|
|
2369
|
+
close: s.close,
|
|
2370
|
+
hiding: s.hiding,
|
|
2371
|
+
...s.data.question
|
|
2372
|
+
}) : s.type === X.ONBOARDING ? /* @__PURE__ */ t(ji, {
|
|
2727
2373
|
style: {
|
|
2728
|
-
height:
|
|
2374
|
+
height: s.hiding ? 0 : f
|
|
2729
2375
|
},
|
|
2730
|
-
saveHeight:
|
|
2731
|
-
sdk:
|
|
2732
|
-
notification:
|
|
2733
|
-
sdkInDesktopView:
|
|
2734
|
-
appNode:
|
|
2735
|
-
responsiveStore:
|
|
2376
|
+
saveHeight: m,
|
|
2377
|
+
sdk: e,
|
|
2378
|
+
notification: s,
|
|
2379
|
+
sdkInDesktopView: o,
|
|
2380
|
+
appNode: n,
|
|
2381
|
+
responsiveStore: a
|
|
2736
2382
|
}) : null;
|
|
2737
|
-
},
|
|
2738
|
-
pill:
|
|
2739
|
-
setPill:
|
|
2740
|
-
appNode:
|
|
2741
|
-
headerNode:
|
|
2742
|
-
scrollNode:
|
|
2743
|
-
responsiveStore:
|
|
2744
|
-
scrollStore:
|
|
2383
|
+
}, ia = "p7vfi6t", aa = ({
|
|
2384
|
+
pill: e,
|
|
2385
|
+
setPill: s,
|
|
2386
|
+
appNode: n,
|
|
2387
|
+
headerNode: a,
|
|
2388
|
+
scrollNode: r,
|
|
2389
|
+
responsiveStore: o,
|
|
2390
|
+
scrollStore: l
|
|
2745
2391
|
}) => {
|
|
2746
|
-
var t2, m2;
|
|
2747
2392
|
const {
|
|
2748
|
-
screen:
|
|
2749
|
-
} =
|
|
2393
|
+
screen: c
|
|
2394
|
+
} = $(o, {
|
|
2750
2395
|
keys: ["screen"]
|
|
2751
2396
|
}), {
|
|
2752
|
-
tabsShown:
|
|
2753
|
-
scrollPosition:
|
|
2754
|
-
} =
|
|
2397
|
+
tabsShown: d,
|
|
2398
|
+
scrollPosition: m
|
|
2399
|
+
} = $(l, {
|
|
2755
2400
|
keys: ["tabsShown", "scrollPosition"]
|
|
2756
2401
|
});
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
}, [
|
|
2760
|
-
const
|
|
2761
|
-
return !
|
|
2762
|
-
title:
|
|
2402
|
+
y(() => {
|
|
2403
|
+
o.get().sdkInDesktopView ? m < 50 && s(null) : m > -50 && s(null);
|
|
2404
|
+
}, [m, o, s]);
|
|
2405
|
+
const f = o.get().sdkInDesktopView ? n : a;
|
|
2406
|
+
return !e || !f.current ? null : s2(/* @__PURE__ */ t(sa, {
|
|
2407
|
+
title: e.type === X.QUESTION_RESOLVED ? "Prediction result" : `New ${oe[e.data?.questionType]?.label || "notification"}`,
|
|
2763
2408
|
"data-a": "intr",
|
|
2764
2409
|
onClick: () => {
|
|
2765
|
-
|
|
2766
|
-
s2.get().sdkInDesktopView ? (g2 = l2.current) == null || g2.scrollTo({
|
|
2410
|
+
o.get().sdkInDesktopView ? r.current?.scrollTo({
|
|
2767
2411
|
top: 0,
|
|
2768
2412
|
behavior: "smooth"
|
|
2769
|
-
}) :
|
|
2413
|
+
}) : m2(n, c.size, {
|
|
2770
2414
|
behavior: "smooth"
|
|
2771
|
-
}),
|
|
2415
|
+
}), s(null);
|
|
2772
2416
|
},
|
|
2773
|
-
className:
|
|
2774
|
-
}),
|
|
2775
|
-
},
|
|
2776
|
-
sdk:
|
|
2777
|
-
headerNode:
|
|
2778
|
-
scrollNode:
|
|
2779
|
-
responsiveStore:
|
|
2780
|
-
appNode:
|
|
2781
|
-
scrollStore:
|
|
2782
|
-
hasActiveFeature:
|
|
2417
|
+
className: D(d && ia, "sl-pill-button")
|
|
2418
|
+
}), f.current);
|
|
2419
|
+
}, ra = ({
|
|
2420
|
+
sdk: e,
|
|
2421
|
+
headerNode: s,
|
|
2422
|
+
scrollNode: n,
|
|
2423
|
+
responsiveStore: a,
|
|
2424
|
+
appNode: r,
|
|
2425
|
+
scrollStore: o,
|
|
2426
|
+
hasActiveFeature: l
|
|
2783
2427
|
}) => {
|
|
2784
|
-
const [
|
|
2785
|
-
return
|
|
2786
|
-
|
|
2428
|
+
const [c] = w(e.getNotificationsStore()), d = $(c), [m, f] = w(null), u = z(() => e.getActiveNotification(), [e, d]);
|
|
2429
|
+
return y(() => {
|
|
2430
|
+
u && n0.emit("notification", {
|
|
2787
2431
|
action: "rendered",
|
|
2788
2432
|
payload: {
|
|
2789
|
-
questionId:
|
|
2790
|
-
questionType:
|
|
2433
|
+
questionId: u.data.questionId,
|
|
2434
|
+
questionType: u.data.questionType
|
|
2791
2435
|
}
|
|
2792
2436
|
});
|
|
2793
|
-
}, [
|
|
2437
|
+
}, [u]), y(() => {
|
|
2794
2438
|
const {
|
|
2795
|
-
sdkInDesktopView:
|
|
2796
|
-
sdkInView:
|
|
2797
|
-
} =
|
|
2798
|
-
|
|
2799
|
-
|
|
2439
|
+
sdkInDesktopView: p,
|
|
2440
|
+
sdkInView: C
|
|
2441
|
+
} = a.get();
|
|
2442
|
+
u && (p || C) && (!p && C && f(u), p && window.requestAnimationFrame(() => {
|
|
2443
|
+
o.get().scrollPosition !== 0 && f(u);
|
|
2800
2444
|
}));
|
|
2801
|
-
}, [
|
|
2802
|
-
|
|
2803
|
-
}, [
|
|
2804
|
-
children: [!
|
|
2805
|
-
appNode:
|
|
2806
|
-
sdk:
|
|
2807
|
-
hasActiveFeature:
|
|
2808
|
-
notification:
|
|
2809
|
-
responsiveStore:
|
|
2810
|
-
}),
|
|
2811
|
-
pill:
|
|
2812
|
-
setPill:
|
|
2813
|
-
appNode:
|
|
2814
|
-
notification:
|
|
2815
|
-
headerNode:
|
|
2816
|
-
scrollNode:
|
|
2817
|
-
scrollStore:
|
|
2818
|
-
responsiveStore:
|
|
2445
|
+
}, [u]), y(() => {
|
|
2446
|
+
u || f(null);
|
|
2447
|
+
}, [u]), /* @__PURE__ */ h(S, {
|
|
2448
|
+
children: [!m && u && /* @__PURE__ */ t(na, {
|
|
2449
|
+
appNode: r,
|
|
2450
|
+
sdk: e,
|
|
2451
|
+
hasActiveFeature: l,
|
|
2452
|
+
notification: u,
|
|
2453
|
+
responsiveStore: a
|
|
2454
|
+
}), m && /* @__PURE__ */ t(aa, {
|
|
2455
|
+
pill: m,
|
|
2456
|
+
setPill: f,
|
|
2457
|
+
appNode: r,
|
|
2458
|
+
notification: u,
|
|
2459
|
+
headerNode: s,
|
|
2460
|
+
scrollNode: n,
|
|
2461
|
+
scrollStore: o,
|
|
2462
|
+
responsiveStore: a
|
|
2819
2463
|
})]
|
|
2820
2464
|
});
|
|
2821
|
-
}
|
|
2822
|
-
const
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
p2 && r2 !== SdkOverlayType.GAMES && e2.openFeature(SdkOverlayType.GAMES);
|
|
2465
|
+
}, oa = (e) => {
|
|
2466
|
+
const s = $(e.status), n = $(e.sdkStore.slStreamId), a = $(e.userId()), r = $(e.getActiveFeature()), o = s === "ready" && !!n.data;
|
|
2467
|
+
return y(() => {
|
|
2468
|
+
const l = e.getFeature(V.GAMES);
|
|
2469
|
+
l && r !== V.GAMES && (l.closeQuestion(), l.closeUser()), l?.openedQuestionId.subscribe((c) => {
|
|
2470
|
+
c && r !== V.GAMES && e.openFeature(V.GAMES);
|
|
2828
2471
|
});
|
|
2829
|
-
}, [
|
|
2830
|
-
sdkReady:
|
|
2831
|
-
activeFeature:
|
|
2832
|
-
isLogged: !!
|
|
2472
|
+
}, [r, e]), {
|
|
2473
|
+
sdkReady: o,
|
|
2474
|
+
activeFeature: r,
|
|
2475
|
+
isLogged: !!a
|
|
2833
2476
|
};
|
|
2834
|
-
}
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
responsiveStore: r2
|
|
2477
|
+
}, la = ({
|
|
2478
|
+
sdk: e,
|
|
2479
|
+
className: s,
|
|
2480
|
+
scrollStore: n,
|
|
2481
|
+
appNode: a,
|
|
2482
|
+
scrollNode: r,
|
|
2483
|
+
responsiveStore: o
|
|
2842
2484
|
}) => {
|
|
2843
|
-
const [,
|
|
2844
|
-
return /* @__PURE__ */
|
|
2845
|
-
className:
|
|
2846
|
-
scrollNode:
|
|
2847
|
-
appNode:
|
|
2848
|
-
scrollStore:
|
|
2849
|
-
feature:
|
|
2850
|
-
responsiveStore:
|
|
2851
|
-
sdk:
|
|
2485
|
+
const [, l] = o0(e);
|
|
2486
|
+
return /* @__PURE__ */ t(it, {
|
|
2487
|
+
className: s,
|
|
2488
|
+
scrollNode: r,
|
|
2489
|
+
appNode: a,
|
|
2490
|
+
scrollStore: n,
|
|
2491
|
+
feature: l,
|
|
2492
|
+
responsiveStore: o,
|
|
2493
|
+
sdk: e
|
|
2852
2494
|
});
|
|
2853
|
-
},
|
|
2854
|
-
sdk:
|
|
2855
|
-
muted:
|
|
2856
|
-
className:
|
|
2857
|
-
appNode:
|
|
2858
|
-
responsiveStore:
|
|
2495
|
+
}, ca = ({
|
|
2496
|
+
sdk: e,
|
|
2497
|
+
muted: s,
|
|
2498
|
+
className: n,
|
|
2499
|
+
appNode: a,
|
|
2500
|
+
responsiveStore: r
|
|
2859
2501
|
}) => {
|
|
2860
|
-
const
|
|
2861
|
-
return
|
|
2862
|
-
const
|
|
2863
|
-
return
|
|
2864
|
-
className:
|
|
2865
|
-
muted:
|
|
2866
|
-
appNode:
|
|
2867
|
-
feature:
|
|
2868
|
-
responsiveStore:
|
|
2869
|
-
sdk:
|
|
2870
|
-
},
|
|
2502
|
+
const o = $(e.featuresList.getStore());
|
|
2503
|
+
return o ? Array.from(o, (l) => {
|
|
2504
|
+
const c = e.getFeature(l);
|
|
2505
|
+
return c ? /* @__PURE__ */ t(at, {
|
|
2506
|
+
className: n,
|
|
2507
|
+
muted: s,
|
|
2508
|
+
appNode: a,
|
|
2509
|
+
feature: c,
|
|
2510
|
+
responsiveStore: r,
|
|
2511
|
+
sdk: e
|
|
2512
|
+
}, l) : null;
|
|
2871
2513
|
}) : null;
|
|
2872
|
-
},
|
|
2873
|
-
sdk:
|
|
2874
|
-
muted:
|
|
2875
|
-
topNavigation:
|
|
2514
|
+
}, da = ({
|
|
2515
|
+
sdk: e,
|
|
2516
|
+
muted: s,
|
|
2517
|
+
topNavigation: n
|
|
2876
2518
|
}) => {
|
|
2877
|
-
const [
|
|
2878
|
-
sdkReady:
|
|
2879
|
-
activeFeature:
|
|
2880
|
-
isLogged:
|
|
2881
|
-
} =
|
|
2882
|
-
|
|
2883
|
-
enabled:
|
|
2519
|
+
const [a, r] = w(!0), o = E(null), l = $(e.uiState), c = E(null), [d] = l0(o), [m, f] = d0(o, d), {
|
|
2520
|
+
sdkReady: u,
|
|
2521
|
+
activeFeature: p,
|
|
2522
|
+
isLogged: C
|
|
2523
|
+
} = oa(e), g = !!u;
|
|
2524
|
+
qe(o, {
|
|
2525
|
+
enabled: g,
|
|
2884
2526
|
event: "click",
|
|
2885
|
-
listener:
|
|
2527
|
+
listener: Ue
|
|
2886
2528
|
});
|
|
2887
|
-
const
|
|
2888
|
-
sdk:
|
|
2889
|
-
topNavigation:
|
|
2890
|
-
}), [
|
|
2891
|
-
return
|
|
2529
|
+
const I = z(() => ({
|
|
2530
|
+
sdk: e,
|
|
2531
|
+
topNavigation: n
|
|
2532
|
+
}), [e, n]);
|
|
2533
|
+
return y(() => {
|
|
2892
2534
|
import("./gamification-feature.js");
|
|
2893
|
-
}, []), /* @__PURE__ */
|
|
2894
|
-
value:
|
|
2895
|
-
children: /* @__PURE__ */
|
|
2896
|
-
ref: (
|
|
2897
|
-
|
|
2535
|
+
}, []), /* @__PURE__ */ t(Ze.Provider, {
|
|
2536
|
+
value: I,
|
|
2537
|
+
children: /* @__PURE__ */ h(Ee, {
|
|
2538
|
+
ref: (v) => {
|
|
2539
|
+
o.current = v, r(!!v);
|
|
2898
2540
|
},
|
|
2899
|
-
className:
|
|
2900
|
-
children: [
|
|
2901
|
-
className:
|
|
2902
|
-
sdk:
|
|
2903
|
-
ref:
|
|
2904
|
-
}),
|
|
2905
|
-
className:
|
|
2906
|
-
sdk:
|
|
2907
|
-
ref:
|
|
2908
|
-
}), /* @__PURE__ */
|
|
2541
|
+
className: n ? "" : "c10llmat",
|
|
2542
|
+
children: [g && n && l.app && /* @__PURE__ */ t(Tt, {
|
|
2543
|
+
className: D(G, "sl-hide-on-modal"),
|
|
2544
|
+
sdk: e,
|
|
2545
|
+
ref: c
|
|
2546
|
+
}), g && !n && !!p && l.app && /* @__PURE__ */ t(St, {
|
|
2547
|
+
className: D(G, "sl-hide-on-modal"),
|
|
2548
|
+
sdk: e,
|
|
2549
|
+
ref: c
|
|
2550
|
+
}), /* @__PURE__ */ h(Ve, {
|
|
2909
2551
|
className: "sl-hide-on-modal",
|
|
2910
|
-
ref:
|
|
2911
|
-
"data-nav": (!!
|
|
2912
|
-
children: [
|
|
2913
|
-
sdk:
|
|
2914
|
-
scrollNode:
|
|
2915
|
-
headerNode:
|
|
2916
|
-
appNode:
|
|
2917
|
-
scrollStore:
|
|
2918
|
-
responsiveStore:
|
|
2919
|
-
hasActiveFeature: !!
|
|
2920
|
-
}),
|
|
2921
|
-
scrollStore:
|
|
2922
|
-
responsiveStore:
|
|
2923
|
-
scrollNode:
|
|
2924
|
-
appNode:
|
|
2925
|
-
className:
|
|
2926
|
-
sdk:
|
|
2927
|
-
}),
|
|
2928
|
-
muted:
|
|
2929
|
-
responsiveStore:
|
|
2930
|
-
appNode:
|
|
2931
|
-
className:
|
|
2932
|
-
sdk:
|
|
2552
|
+
ref: m,
|
|
2553
|
+
"data-nav": (!!p && g).toString(),
|
|
2554
|
+
children: [g && l.app && /* @__PURE__ */ t(ra, {
|
|
2555
|
+
sdk: e,
|
|
2556
|
+
scrollNode: m,
|
|
2557
|
+
headerNode: c,
|
|
2558
|
+
appNode: o,
|
|
2559
|
+
scrollStore: f,
|
|
2560
|
+
responsiveStore: d,
|
|
2561
|
+
hasActiveFeature: !!p
|
|
2562
|
+
}), g && l.app && /* @__PURE__ */ t(la, {
|
|
2563
|
+
scrollStore: f,
|
|
2564
|
+
responsiveStore: d,
|
|
2565
|
+
scrollNode: m,
|
|
2566
|
+
appNode: o,
|
|
2567
|
+
className: G,
|
|
2568
|
+
sdk: e
|
|
2569
|
+
}), g && a && /* @__PURE__ */ t(ca, {
|
|
2570
|
+
muted: s,
|
|
2571
|
+
responsiveStore: d,
|
|
2572
|
+
appNode: o,
|
|
2573
|
+
className: G,
|
|
2574
|
+
sdk: e
|
|
2933
2575
|
})]
|
|
2934
|
-
}),
|
|
2576
|
+
}), g && !C && a && l.app && /* @__PURE__ */ t("div", {
|
|
2935
2577
|
style: {
|
|
2936
2578
|
display: "flex",
|
|
2937
2579
|
alignItems: "center",
|
|
@@ -2943,14 +2585,13 @@ const z = ({
|
|
|
2943
2585
|
})]
|
|
2944
2586
|
})
|
|
2945
2587
|
});
|
|
2946
|
-
}
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2949
|
-
if (i2 === Y.UNSET)
|
|
2588
|
+
}, Oa = ({ event: e, topNavigation: s, theme: n, muted: a, withSidebarNotification: r = !0 }) => {
|
|
2589
|
+
const { sdk: o, status: l } = f2(g2), c = a0(), d = r0(), { event: m } = f2(g2);
|
|
2590
|
+
if (l === v2.UNSET)
|
|
2950
2591
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
2951
|
-
return
|
|
2592
|
+
return l === v2.CONNECTED ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: "wait" }) : o === null ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !c.app && !c.appNotification && !c.appSidebar || !c.app && !c.appSidebar && c.appNotification && !r ? null : /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(ye, { customTheme: n ?? d.theme, themeMode: d.themeMode, children: /* @__PURE__ */ t(da, { sdk: o, muted: a, event: m?.current || e, topNavigation: s }) }) });
|
|
2952
2593
|
};
|
|
2953
2594
|
export {
|
|
2954
|
-
|
|
2955
|
-
|
|
2595
|
+
Ma as B,
|
|
2596
|
+
Oa as D
|
|
2956
2597
|
};
|