@streamlayer/react 1.21.3 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/masters.d.ts +2 -5
- package/lib/app/pause-ad.d.ts +1 -10
- package/lib/app/useStreamLayerApp.d.ts +1 -23
- package/lib/cjs/Question.js +1 -0
- package/lib/cjs/advertisement.js +40 -40
- package/lib/cjs/analytics.js +1 -0
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -0
- package/lib/cjs/index11.js +4 -0
- package/lib/cjs/index12.js +1 -0
- package/lib/cjs/index13.js +1 -0
- package/lib/cjs/index14.js +1 -0
- package/lib/cjs/index15.js +1 -0
- package/lib/cjs/index16.js +5 -0
- package/lib/cjs/index2.js +1 -5
- package/lib/cjs/index3.js +1 -0
- package/lib/cjs/index4.js +5 -0
- package/lib/cjs/index5.js +1 -0
- package/lib/cjs/index6.js +1 -0
- package/lib/cjs/index7.js +5 -0
- package/lib/cjs/index8.js +1 -0
- package/lib/cjs/index9.js +1 -0
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +6 -6
- 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/sl-types.js +15 -0
- package/lib/cjs/storage.js +1 -0
- package/lib/cjs/theme.js +17 -0
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +17 -16
- package/lib/cjs/utils.js +47 -0
- package/lib/cjs/vast-client.min.js +1 -0
- package/lib/classic/app/masters.d.ts +2 -5
- package/lib/classic/app/pause-ad.d.ts +1 -10
- package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
- package/lib/classic/cjs/Question.js +1 -0
- package/lib/classic/cjs/advertisement.js +40 -40
- package/lib/classic/cjs/analytics.js +1 -0
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +4 -4
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -0
- package/lib/classic/cjs/index11.js +1 -0
- package/lib/classic/cjs/index12.js +1 -0
- package/lib/classic/cjs/index13.js +4 -0
- package/lib/classic/cjs/index2.js +5 -0
- package/lib/classic/cjs/index3.js +1 -0
- package/lib/classic/cjs/index4.js +1 -0
- package/lib/classic/cjs/index5.js +1 -0
- package/lib/classic/cjs/index6.js +5 -0
- package/lib/classic/cjs/index7.js +1 -0
- package/lib/classic/cjs/index8.js +1 -0
- package/lib/classic/cjs/index9.js +1 -0
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -0
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/sl-types.js +15 -0
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -16
- package/lib/classic/cjs/utils.js +47 -0
- package/lib/classic/cjs/vast-client.min.js +1 -0
- package/lib/classic/es/Question.js +392 -0
- package/lib/classic/es/advertisement.js +10375 -10374
- package/lib/classic/es/analytics.js +28 -0
- package/lib/classic/es/auth.js +4 -4
- package/lib/classic/es/bet-pack.js +55 -51
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/hooks-B0Qttldg.js +98 -0
- package/lib/classic/es/index-DSi8Qgfs.js +65 -0
- package/lib/classic/es/index.js +14 -15
- package/lib/classic/es/index10.js +87 -0
- package/lib/classic/es/index11.js +2355 -0
- package/lib/classic/es/index12.js +183 -0
- package/lib/classic/es/index13.js +835 -0
- package/lib/classic/es/index2.js +2621 -0
- package/lib/classic/es/index3.js +64 -0
- package/lib/classic/es/index4.js +19 -0
- package/lib/classic/es/index5.js +285 -0
- package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
- package/lib/classic/es/index7.js +7 -0
- package/lib/classic/es/index8.js +11 -0
- package/lib/classic/es/index9.js +319 -0
- package/lib/classic/es/insight.js +31 -32
- package/lib/classic/es/notification.js +7 -1006
- package/lib/classic/es/notification2.js +1117 -0
- package/lib/classic/es/pause-ad.js +139 -138
- package/lib/classic/es/points.js +39 -38
- package/lib/classic/es/sl-types.js +258 -0
- package/lib/classic/es/useStreamLayerApp.js +1 -2
- package/lib/classic/es/useStreamLayerApp2.js +4798 -2735
- package/lib/classic/es/utils.js +76 -0
- package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
- package/lib/classic/index.d.ts +5 -13
- package/lib/classic/masters.d.ts +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +34 -33
- package/lib/dist/es/index.js +2 -2
- package/lib/dist/es/masters.js +10563 -8870
- package/lib/dist/index.d.ts +1332 -0
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +136 -0
- package/lib/es/advertisement.js +10375 -10374
- package/lib/es/analytics.js +28 -0
- package/lib/es/auth.js +4 -4
- package/lib/es/bet-pack.js +7 -6
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/hooks-B0Qttldg.js +98 -0
- package/lib/es/index-DSi8Qgfs.js +65 -0
- package/lib/es/index.js +13 -14
- package/lib/es/index10.js +267 -0
- package/lib/es/index11.js +835 -0
- package/lib/es/index12.js +183 -0
- package/lib/es/index13.js +319 -0
- package/lib/es/index14.js +87 -0
- package/lib/es/index15.js +2355 -0
- package/lib/es/index16.js +1254 -0
- package/lib/es/index2.js +1349 -3364
- package/lib/es/index3.js +64 -0
- package/lib/es/index4.js +3418 -0
- package/lib/es/index5.js +19 -0
- package/lib/es/index6.js +285 -0
- package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
- package/lib/es/index8.js +7 -0
- package/lib/es/index9.js +11 -0
- package/lib/es/insight.js +31 -32
- package/lib/es/masters.js +6 -5
- package/lib/es/masters2.js +189 -176
- package/lib/es/notification.js +141 -136
- package/lib/es/pause-ad.js +140 -139
- package/lib/es/points.js +40 -38
- package/lib/es/sl-types.js +277 -0
- package/lib/es/storage.js +113 -0
- package/lib/es/theme.js +47 -0
- package/lib/es/useStreamLayerApp.js +1 -2
- package/lib/es/useStreamLayerApp2.js +4798 -2735
- package/lib/es/utils.js +76 -0
- package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
- package/lib/index.d.ts +5 -13
- package/lib/masters.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +16 -51
- package/lib/app/event.d.ts +0 -6
- package/lib/app/provider.d.ts +0 -49
- package/lib/cjs/index-l-eyvmpL.js +0 -5
- package/lib/cjs/provider.js +0 -84
- package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/app/event.d.ts +0 -6
- package/lib/classic/app/provider.d.ts +0 -49
- package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
- package/lib/classic/cjs/provider.js +0 -68
- package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/es/provider.js +0 -7619
- package/lib/dist/cjs/gamification-feature2.js +0 -1
- package/lib/dist/es/gamification-feature2.js +0 -285
- package/lib/es/provider.js +0 -7695
|
@@ -0,0 +1,2621 @@
|
|
|
1
|
+
var we = Object.defineProperty;
|
|
2
|
+
var Le = (e, t, n) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var T = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { useState as L, useEffect as y, useRef as V, useCallback as U, Component as ke, createElement as _e, PureComponent as Te, lazy as Se, useMemo as M, Suspense as Ne, forwardRef as ie, useLayoutEffect as xe, useContext as f2 } from "react";
|
|
5
|
+
import { c as g2, F as Re, z as Ee, Y as I2 } from "./hooks-B0Qttldg.js";
|
|
6
|
+
import { jsx as s, jsxs as h, Fragment as R } from "react/jsx-runtime";
|
|
7
|
+
import { I as re, l as Ve, S as H, e as B, p as b2, Q as S, a as He } from "./useStreamLayerApp2.js";
|
|
8
|
+
import { m as Q, h as ze } from "./index7.js";
|
|
9
|
+
import { u as A, A as D, s as i, b as Me, c as F, a as e2 } from "./sl-types.js";
|
|
10
|
+
import { l as Oe, S as De, m as Fe, d as Be, n as qe, C as Ue, a as Pe, b as We, f as i2, p as je, c as Ze } from "./index13.js";
|
|
11
|
+
import { F as t2, c as G, e as Ge } from "./index3.js";
|
|
12
|
+
import { atom as Qe } from "nanostores";
|
|
13
|
+
import c2 from "lodash.throttle";
|
|
14
|
+
import { i as ae } from "./index-DSi8Qgfs.js";
|
|
15
|
+
import { f as oe, b as Ke, A as Ye } from "./analytics.js";
|
|
16
|
+
import { O as Je, p as u2, h as Xe, y as e0, e as t0 } from "./Question.js";
|
|
17
|
+
import { i as O } from "./index8.js";
|
|
18
|
+
import { I as m2, s as le, b as ce, e as de } from "./index12.js";
|
|
19
|
+
import { createPortal as s2 } from "react-dom";
|
|
20
|
+
import { u as s0 } from "./utils.js";
|
|
21
|
+
import { B as _ } from "./index5.js";
|
|
22
|
+
import n0 from "react-infinite-scroller";
|
|
23
|
+
import { r as pe, S as i0, R as r0, D as a0 } from "./notification2.js";
|
|
24
|
+
import { w as o0, E as l0 } from "./index9.js";
|
|
25
|
+
import "uuid";
|
|
26
|
+
import "@nanostores/query";
|
|
27
|
+
import { d as c0 } from "./index4.js";
|
|
28
|
+
const he = (e) => Qe(e), d0 = (e) => {
|
|
29
|
+
const t = A(e.getActiveFeature()), n = A(e.streamStore()), [r, a] = L(null);
|
|
30
|
+
return y(() => {
|
|
31
|
+
const o = e.getFeatures();
|
|
32
|
+
if (!t)
|
|
33
|
+
a(null);
|
|
34
|
+
else
|
|
35
|
+
for (const [c, l] of o)
|
|
36
|
+
c === t ? (l.status.get() === t2.Suspended && l.enable(), a(l)) : l.status.get() === t2.Ready && l.disable();
|
|
37
|
+
return () => {
|
|
38
|
+
for (const [, c] of o)
|
|
39
|
+
c.status.get() === t2.Ready && c.disable();
|
|
40
|
+
};
|
|
41
|
+
}, [t, e, n]), [t, r];
|
|
42
|
+
}, $2 = Object.keys(D), A2 = () => {
|
|
43
|
+
const e = window.innerWidth;
|
|
44
|
+
let t = "sm";
|
|
45
|
+
for (let n = $2.length - 1; n > 0; n--) {
|
|
46
|
+
const r = $2[n];
|
|
47
|
+
if (!(e < D[r]) && e >= D[r]) {
|
|
48
|
+
t = r;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
name: t,
|
|
54
|
+
size: D[t]
|
|
55
|
+
};
|
|
56
|
+
}, y2 = (e) => {
|
|
57
|
+
var t;
|
|
58
|
+
return (((t = e.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) < -68;
|
|
59
|
+
}, n2 = () => window.matchMedia("(orientation: landscape)").matches, p0 = (e) => {
|
|
60
|
+
const [t] = L(() => ae({
|
|
61
|
+
screen: A2(),
|
|
62
|
+
sdkInView: y2(e),
|
|
63
|
+
sdkInDesktopView: n2()
|
|
64
|
+
}));
|
|
65
|
+
return y(() => {
|
|
66
|
+
const n = c2(() => {
|
|
67
|
+
t.setKey("sdkInView", y2(e));
|
|
68
|
+
}, 200), r = c2(() => {
|
|
69
|
+
const a = A2();
|
|
70
|
+
t.setKey("screen", a), t.setKey("sdkInDesktopView", n2());
|
|
71
|
+
}, 200);
|
|
72
|
+
return window.addEventListener("scroll", n), window.addEventListener("resize", r), () => {
|
|
73
|
+
window.removeEventListener("scroll", n), window.removeEventListener("resize", r);
|
|
74
|
+
};
|
|
75
|
+
}, [t, e]), [t];
|
|
76
|
+
}, v2 = (e, t, n) => {
|
|
77
|
+
const r = t >= D.lg && t < D.xl ? 75 : 52;
|
|
78
|
+
e.current && window.scrollTo({
|
|
79
|
+
top: e.current.offsetTop - r,
|
|
80
|
+
...n
|
|
81
|
+
});
|
|
82
|
+
}, h0 = 15, u0 = (e, t) => {
|
|
83
|
+
const n = V(null), r = V(0), [a] = L(
|
|
84
|
+
ae({
|
|
85
|
+
scrollPosition: 0,
|
|
86
|
+
tabsShown: !0,
|
|
87
|
+
scrollDirection: "forward"
|
|
88
|
+
})
|
|
89
|
+
), o = A(t);
|
|
90
|
+
return y(() => {
|
|
91
|
+
const c = n2() ? n.current : window;
|
|
92
|
+
if (!c)
|
|
93
|
+
return () => {
|
|
94
|
+
};
|
|
95
|
+
const l = c2((d) => {
|
|
96
|
+
var u;
|
|
97
|
+
const v = d.target;
|
|
98
|
+
if (!v)
|
|
99
|
+
return;
|
|
100
|
+
let m = 0;
|
|
101
|
+
n2() ? m = v.scrollTop : m = ((u = e.current) == null ? void 0 : u.getBoundingClientRect().y) || 0;
|
|
102
|
+
const p = r.current - m;
|
|
103
|
+
if (h0 > Math.abs(p))
|
|
104
|
+
return;
|
|
105
|
+
const C = r.current < m ? "forward" : "backward";
|
|
106
|
+
r.current = m, a.set({
|
|
107
|
+
scrollPosition: Math.round(m),
|
|
108
|
+
scrollDirection: C,
|
|
109
|
+
tabsShown: a.get().tabsShown
|
|
110
|
+
});
|
|
111
|
+
}, 200);
|
|
112
|
+
return c.addEventListener("scroll", l), () => {
|
|
113
|
+
c.removeEventListener("scroll", l);
|
|
114
|
+
};
|
|
115
|
+
}, [a, e, o.screen]), [n, a];
|
|
116
|
+
}, a2 = /* @__PURE__ */ i("div")({
|
|
117
|
+
name: "LoadingContainer",
|
|
118
|
+
class: "lclc0ej",
|
|
119
|
+
propsAsIs: !1
|
|
120
|
+
}), m0 = ({
|
|
121
|
+
feature: e,
|
|
122
|
+
sdk: t,
|
|
123
|
+
children: n,
|
|
124
|
+
className: r,
|
|
125
|
+
noWait: a
|
|
126
|
+
}) => {
|
|
127
|
+
const o = A(e.status), c = A(t.sdkStore.slStreamId);
|
|
128
|
+
if (!a) {
|
|
129
|
+
if (c != null && c.loading && !c.data)
|
|
130
|
+
return /* @__PURE__ */ s(a2, {
|
|
131
|
+
className: r,
|
|
132
|
+
children: "Event is loading..."
|
|
133
|
+
});
|
|
134
|
+
if (!(c != null && c.data))
|
|
135
|
+
return /* @__PURE__ */ s(a2, {
|
|
136
|
+
className: r,
|
|
137
|
+
children: "Event is forbidden..."
|
|
138
|
+
});
|
|
139
|
+
if (o !== t2.Ready)
|
|
140
|
+
return /* @__PURE__ */ s(a2, {
|
|
141
|
+
className: r,
|
|
142
|
+
children: "Wait feature..."
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return n;
|
|
146
|
+
}, v0 = /* @__PURE__ */ i("div")({
|
|
147
|
+
name: "Container",
|
|
148
|
+
class: "c1zy8a",
|
|
149
|
+
propsAsIs: !1
|
|
150
|
+
}), C0 = /* @__PURE__ */ i("div")({
|
|
151
|
+
name: "Title",
|
|
152
|
+
class: "t1vih9p5",
|
|
153
|
+
propsAsIs: !1
|
|
154
|
+
}), f0 = /* @__PURE__ */ i("div")({
|
|
155
|
+
name: "Indicator",
|
|
156
|
+
class: "i1fbnvpb",
|
|
157
|
+
propsAsIs: !1
|
|
158
|
+
}), w2 = ({ indicator: e, title: t }) => /* @__PURE__ */ h(v0, { children: [
|
|
159
|
+
/* @__PURE__ */ s(C0, { children: t }),
|
|
160
|
+
/* @__PURE__ */ s(f0, { children: e })
|
|
161
|
+
] }), g0 = /* @__PURE__ */ i("div")({
|
|
162
|
+
name: "Container",
|
|
163
|
+
class: "ctmhwyc",
|
|
164
|
+
propsAsIs: !1
|
|
165
|
+
}), I0 = /* @__PURE__ */ i("div")({
|
|
166
|
+
name: "Indicator",
|
|
167
|
+
class: "i1jri200",
|
|
168
|
+
propsAsIs: !1
|
|
169
|
+
}), b0 = /* @__PURE__ */ i("div")({
|
|
170
|
+
name: "Title",
|
|
171
|
+
class: "t8s05oq",
|
|
172
|
+
propsAsIs: !1
|
|
173
|
+
}), K = ({ indicator: e, title: t }) => /* @__PURE__ */ h(g0, { children: [
|
|
174
|
+
/* @__PURE__ */ s(I0, { children: e }),
|
|
175
|
+
/* @__PURE__ */ s(b0, { children: t })
|
|
176
|
+
] }), $0 = /* @__PURE__ */ i("div")({
|
|
177
|
+
name: "Container",
|
|
178
|
+
class: "c1yrpn9o",
|
|
179
|
+
propsAsIs: !1
|
|
180
|
+
}), A0 = /* @__PURE__ */ i("div")({
|
|
181
|
+
name: "TopInfo",
|
|
182
|
+
class: "t17fwahh",
|
|
183
|
+
propsAsIs: !1
|
|
184
|
+
}), y0 = /* @__PURE__ */ i("div")({
|
|
185
|
+
name: "BottomInfo",
|
|
186
|
+
class: "by6w7e9",
|
|
187
|
+
propsAsIs: !1
|
|
188
|
+
}), w0 = /* @__PURE__ */ i("div")({
|
|
189
|
+
name: "User",
|
|
190
|
+
class: "u1g7arbm",
|
|
191
|
+
propsAsIs: !1
|
|
192
|
+
}), L0 = /* @__PURE__ */ i("img")({
|
|
193
|
+
name: "Avatar",
|
|
194
|
+
class: "a1ldeata",
|
|
195
|
+
propsAsIs: !1
|
|
196
|
+
}), k0 = /* @__PURE__ */ i("div")({
|
|
197
|
+
name: "UserInfo",
|
|
198
|
+
class: "u10d4koz",
|
|
199
|
+
propsAsIs: !1
|
|
200
|
+
}), _0 = /* @__PURE__ */ i("div")({
|
|
201
|
+
name: "UserName",
|
|
202
|
+
class: "u1q6roj0",
|
|
203
|
+
propsAsIs: !1
|
|
204
|
+
}), T0 = /* @__PURE__ */ i("div")({
|
|
205
|
+
name: "UserRating",
|
|
206
|
+
class: "ui0m425",
|
|
207
|
+
propsAsIs: !1
|
|
208
|
+
}), S0 = /* @__PURE__ */ i("img")({
|
|
209
|
+
name: "TrophyIcon",
|
|
210
|
+
class: "t1el3mrn",
|
|
211
|
+
propsAsIs: !1
|
|
212
|
+
}), N0 = /* @__PURE__ */ i("div")({
|
|
213
|
+
name: "RtsContainer",
|
|
214
|
+
class: "r2vgnxv",
|
|
215
|
+
propsAsIs: !1
|
|
216
|
+
}), x0 = /* @__PURE__ */ i("div")({
|
|
217
|
+
name: "RtsDivider",
|
|
218
|
+
class: "roqn06j",
|
|
219
|
+
propsAsIs: !1
|
|
220
|
+
}), R0 = /* @__PURE__ */ i("div")({
|
|
221
|
+
name: "Rts",
|
|
222
|
+
class: "r15adx7c",
|
|
223
|
+
propsAsIs: !1
|
|
224
|
+
}), L2 = /* @__PURE__ */ i("div")({
|
|
225
|
+
name: "RtsIndicator",
|
|
226
|
+
class: "rv59lta",
|
|
227
|
+
propsAsIs: !1
|
|
228
|
+
}), k2 = /* @__PURE__ */ i("div")({
|
|
229
|
+
name: "RtsLabel",
|
|
230
|
+
class: "r55lotb",
|
|
231
|
+
propsAsIs: !1
|
|
232
|
+
}), E0 = /* @__PURE__ */ i("div")({
|
|
233
|
+
name: "Divider",
|
|
234
|
+
class: "d1knfgqt",
|
|
235
|
+
propsAsIs: !1
|
|
236
|
+
}), V0 = /* @__PURE__ */ i("div")({
|
|
237
|
+
name: "Ranks",
|
|
238
|
+
class: "r1mqo824",
|
|
239
|
+
propsAsIs: !1
|
|
240
|
+
}), H0 = /* @__PURE__ */ i("div")({
|
|
241
|
+
name: "Statistics",
|
|
242
|
+
class: "sxareh6",
|
|
243
|
+
propsAsIs: !1
|
|
244
|
+
}), z0 = /* @__PURE__ */ i("div")({
|
|
245
|
+
name: "AvatarPlaceholder",
|
|
246
|
+
class: "amcu48h",
|
|
247
|
+
propsAsIs: !1
|
|
248
|
+
}), M0 = /* @__PURE__ */ i("button")({
|
|
249
|
+
name: "UserAccountBtn",
|
|
250
|
+
class: "u32nfkp",
|
|
251
|
+
propsAsIs: !1
|
|
252
|
+
}), O0 = "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", ue = ({
|
|
253
|
+
loading: e,
|
|
254
|
+
hideFriendsRank: t,
|
|
255
|
+
avatar: n,
|
|
256
|
+
name: r,
|
|
257
|
+
points: a,
|
|
258
|
+
friendsRank: o,
|
|
259
|
+
rank: c,
|
|
260
|
+
streak: l,
|
|
261
|
+
correct: d,
|
|
262
|
+
incorrect: u,
|
|
263
|
+
inTop: v,
|
|
264
|
+
successRate: m
|
|
265
|
+
}) => /* @__PURE__ */ h($0, { "data-loading": e, children: [
|
|
266
|
+
/* @__PURE__ */ s(A0, { children: /* @__PURE__ */ s(O, { loading: e, children: /* @__PURE__ */ h(w0, { children: [
|
|
267
|
+
/* @__PURE__ */ h(M0, { children: [
|
|
268
|
+
n && /* @__PURE__ */ s(L0, { alt: "avatar", src: n }),
|
|
269
|
+
!n && /* @__PURE__ */ s(z0, { children: m2(r || "") })
|
|
270
|
+
] }),
|
|
271
|
+
/* @__PURE__ */ h(k0, { children: [
|
|
272
|
+
/* @__PURE__ */ s(_0, { children: r }),
|
|
273
|
+
/* @__PURE__ */ h(T0, { children: [
|
|
274
|
+
/* @__PURE__ */ h(N0, { children: [
|
|
275
|
+
/* @__PURE__ */ h(R0, { children: [
|
|
276
|
+
/* @__PURE__ */ s(S0, { alt: "rank-icon", src: O0 }),
|
|
277
|
+
/* @__PURE__ */ h(L2, { children: [
|
|
278
|
+
le(a),
|
|
279
|
+
/* @__PURE__ */ s(k2, { children: "PTS" })
|
|
280
|
+
] })
|
|
281
|
+
] }),
|
|
282
|
+
t && /* @__PURE__ */ h(L2, { children: [
|
|
283
|
+
/* @__PURE__ */ s(x0, {}),
|
|
284
|
+
c || 0,
|
|
285
|
+
/* @__PURE__ */ s(k2, { children: "global rank" })
|
|
286
|
+
] })
|
|
287
|
+
] }),
|
|
288
|
+
!t && /* @__PURE__ */ h(R, { children: [
|
|
289
|
+
/* @__PURE__ */ s(E0, {}),
|
|
290
|
+
/* @__PURE__ */ h("div", { children: [
|
|
291
|
+
"TOP ",
|
|
292
|
+
v || 0,
|
|
293
|
+
"%"
|
|
294
|
+
] })
|
|
295
|
+
] })
|
|
296
|
+
] })
|
|
297
|
+
] })
|
|
298
|
+
] }) }) }),
|
|
299
|
+
/* @__PURE__ */ h(y0, { children: [
|
|
300
|
+
!t && /* @__PURE__ */ h(V0, { children: [
|
|
301
|
+
/* @__PURE__ */ s(O, { loading: e, style: { width: "100%" }, children: /* @__PURE__ */ s(w2, { indicator: o || 0, title: "Friends rank" }) }),
|
|
302
|
+
/* @__PURE__ */ s(O, { loading: e, style: { width: "100%" }, children: /* @__PURE__ */ s(w2, { indicator: c || 0, title: "Global rank" }) })
|
|
303
|
+
] }),
|
|
304
|
+
/* @__PURE__ */ s(O, { loading: e, children: /* @__PURE__ */ h(H0, { children: [
|
|
305
|
+
/* @__PURE__ */ s(K, { indicator: l || 0, title: "Win streak" }),
|
|
306
|
+
/* @__PURE__ */ s(K, { indicator: d || 0, title: "Correct" }),
|
|
307
|
+
/* @__PURE__ */ s(K, { indicator: u || 0, title: "Incorrect" }),
|
|
308
|
+
/* @__PURE__ */ s(K, { indicator: `${m || 0}%`, title: "Succ. rate" })
|
|
309
|
+
] }) })
|
|
310
|
+
] })
|
|
311
|
+
] }), D0 = /* @__PURE__ */ i("div")({
|
|
312
|
+
name: "StaticContainer",
|
|
313
|
+
class: "svm502q",
|
|
314
|
+
propsAsIs: !1
|
|
315
|
+
}), F0 = `
|
|
316
|
+
.sl-pill-button {
|
|
317
|
+
display: none !important;
|
|
318
|
+
}
|
|
319
|
+
`, me = () => window.innerWidth >= D.md && window.innerWidth < D.lg ? 76 : 53, _2 = (e) => {
|
|
320
|
+
var t;
|
|
321
|
+
const n = me();
|
|
322
|
+
return Math.round((((t = e.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) - n) <= 0;
|
|
323
|
+
}, ve = ({
|
|
324
|
+
children: e,
|
|
325
|
+
container: t,
|
|
326
|
+
useContainer: n,
|
|
327
|
+
staticStyles: r
|
|
328
|
+
}) => {
|
|
329
|
+
const [a] = L(() => _2(t)), [o, c] = L(!1);
|
|
330
|
+
return y(() => {
|
|
331
|
+
if (!t.current || !a)
|
|
332
|
+
return c(!0), () => {
|
|
333
|
+
};
|
|
334
|
+
const l = window.scrollY;
|
|
335
|
+
return c(!0), () => {
|
|
336
|
+
_2(t) && window.scrollTo({
|
|
337
|
+
top: l,
|
|
338
|
+
behavior: "instant"
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
}, []), y(() => {
|
|
342
|
+
if (o && t.current && a) {
|
|
343
|
+
const l = me();
|
|
344
|
+
window.scrollTo({
|
|
345
|
+
top: t.current.offsetTop - l,
|
|
346
|
+
behavior: "instant"
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
}, [o]), !t.current || !o ? null : n ? s2(/* @__PURE__ */ h(D0, {
|
|
350
|
+
className: "StaticContainer",
|
|
351
|
+
children: [e, /* @__PURE__ */ s("style", {
|
|
352
|
+
children: s0
|
|
353
|
+
}), /* @__PURE__ */ s("style", {
|
|
354
|
+
children: F0
|
|
355
|
+
})]
|
|
356
|
+
}), t.current, "modal-node") : s2(/* @__PURE__ */ h(R, {
|
|
357
|
+
children: [e, /* @__PURE__ */ s("style", {
|
|
358
|
+
children: r
|
|
359
|
+
})]
|
|
360
|
+
}), t.current, "modal-node");
|
|
361
|
+
}, B0 = /* @__PURE__ */ i("div")({
|
|
362
|
+
name: "Container",
|
|
363
|
+
class: "c115qtkr",
|
|
364
|
+
propsAsIs: !1
|
|
365
|
+
}), q0 = /* @__PURE__ */ i("div")({
|
|
366
|
+
name: "STabs",
|
|
367
|
+
class: "sxnslc8",
|
|
368
|
+
propsAsIs: !1
|
|
369
|
+
}), U0 = /* @__PURE__ */ i("button")({
|
|
370
|
+
name: "Button",
|
|
371
|
+
class: "b1umzux0",
|
|
372
|
+
propsAsIs: !1
|
|
373
|
+
}), P0 = /* @__PURE__ */ i("span")({
|
|
374
|
+
name: "Title",
|
|
375
|
+
class: "tspsaas",
|
|
376
|
+
propsAsIs: !1
|
|
377
|
+
});
|
|
378
|
+
var j = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(j || {});
|
|
379
|
+
const T2 = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ s(U0, { "data-a": "intr", onClick: n, "data-selected": t, children: /* @__PURE__ */ s(P0, { "data-a": "intr", children: e }) }), W0 = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ s(B0, { children: /* @__PURE__ */ h(q0, { "data-position": e === "home" ? "left" : "right", children: [
|
|
380
|
+
/* @__PURE__ */ s(T2, { title: "Home", active: e === "home", onClick: () => t(
|
|
381
|
+
"home"
|
|
382
|
+
/* HOME */
|
|
383
|
+
) }),
|
|
384
|
+
/* @__PURE__ */ s(
|
|
385
|
+
T2,
|
|
386
|
+
{
|
|
387
|
+
title: "Friends",
|
|
388
|
+
active: e === "leaderboard",
|
|
389
|
+
onClick: () => t(
|
|
390
|
+
"leaderboard"
|
|
391
|
+
/* LEADERBOARD */
|
|
392
|
+
)
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
] }) }), j0 = /* @__PURE__ */ i("button")({
|
|
396
|
+
name: "Container",
|
|
397
|
+
class: "cpjnajb",
|
|
398
|
+
propsAsIs: !1
|
|
399
|
+
}), Z0 = /* @__PURE__ */ i("div")({
|
|
400
|
+
name: "Content",
|
|
401
|
+
class: "c4m6kaz",
|
|
402
|
+
propsAsIs: !1
|
|
403
|
+
}), G0 = /* @__PURE__ */ i("span")({
|
|
404
|
+
name: "Title",
|
|
405
|
+
class: "t1h8t9cc",
|
|
406
|
+
propsAsIs: !1
|
|
407
|
+
}), Q0 = () => /* @__PURE__ */ s(j0, { children: /* @__PURE__ */ h(Z0, { children: [
|
|
408
|
+
/* @__PURE__ */ s(_, { name: "iconCopySuccess" }),
|
|
409
|
+
/* @__PURE__ */ s(G0, { children: "Link Copied to Clipboard" })
|
|
410
|
+
] }) }), Ce = (e) => {
|
|
411
|
+
const t = V(), [n, r] = L(null), a = U(
|
|
412
|
+
async (o) => {
|
|
413
|
+
var c;
|
|
414
|
+
if (o && (c = navigator == null ? void 0 : navigator.clipboard) != null && c.writeText) {
|
|
415
|
+
t.current && (clearTimeout(t.current), r(null));
|
|
416
|
+
try {
|
|
417
|
+
await navigator.clipboard.writeText(o), e.current && (r(s2(/* @__PURE__ */ s(Q0, {}), e.current)), t.current = setTimeout(() => {
|
|
418
|
+
r(null);
|
|
419
|
+
}, 1e3));
|
|
420
|
+
} catch (l) {
|
|
421
|
+
console.error("Unable to copy to clipboard", l);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
[e]
|
|
426
|
+
);
|
|
427
|
+
return y(() => () => {
|
|
428
|
+
clearTimeout(t.current);
|
|
429
|
+
}, []), [a, n];
|
|
430
|
+
}, K0 = /* @__PURE__ */ i("div")({
|
|
431
|
+
name: "Container",
|
|
432
|
+
class: "c1ux29ft",
|
|
433
|
+
propsAsIs: !1
|
|
434
|
+
}), Y0 = () => _, J0 = /* @__PURE__ */ i(Y0())({
|
|
435
|
+
name: "FriendsIcon",
|
|
436
|
+
class: "f10ncfg2",
|
|
437
|
+
propsAsIs: !0
|
|
438
|
+
}), X0 = /* @__PURE__ */ i("div")({
|
|
439
|
+
name: "Content",
|
|
440
|
+
class: "c1yc07bd",
|
|
441
|
+
propsAsIs: !1
|
|
442
|
+
}), et = /* @__PURE__ */ i("div")({
|
|
443
|
+
name: "Title",
|
|
444
|
+
class: "tj6cq7w",
|
|
445
|
+
propsAsIs: !1
|
|
446
|
+
}), tt = /* @__PURE__ */ i("div")({
|
|
447
|
+
name: "Description",
|
|
448
|
+
class: "d1ag78xo",
|
|
449
|
+
propsAsIs: !1
|
|
450
|
+
}), st = () => _, nt = /* @__PURE__ */ i(st())({
|
|
451
|
+
name: "ArrowInviteIcon",
|
|
452
|
+
class: "awohrz6",
|
|
453
|
+
propsAsIs: !0
|
|
454
|
+
}), it = ({ title: e, description: t, onClick: n, className: r }) => {
|
|
455
|
+
const [a] = oe({
|
|
456
|
+
type: "invitation",
|
|
457
|
+
action: "sent",
|
|
458
|
+
payload: {
|
|
459
|
+
from: re.TITLE_CARD
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
return /* @__PURE__ */ h(K0, { "data-a": "intr", onClick: a(n), className: r, children: [
|
|
463
|
+
/* @__PURE__ */ s(J0, { name: "icon-friends" }),
|
|
464
|
+
/* @__PURE__ */ h(X0, { children: [
|
|
465
|
+
/* @__PURE__ */ s(et, { children: e }),
|
|
466
|
+
/* @__PURE__ */ s(tt, { children: t })
|
|
467
|
+
] }),
|
|
468
|
+
/* @__PURE__ */ s(nt, { name: "icon-copy" })
|
|
469
|
+
] });
|
|
470
|
+
};
|
|
471
|
+
let E;
|
|
472
|
+
typeof window < "u" ? E = window : typeof self < "u" ? E = self : E = Ve;
|
|
473
|
+
let d2 = null, p2 = null;
|
|
474
|
+
const S2 = 20, o2 = E.clearTimeout, N2 = E.setTimeout, l2 = E.cancelAnimationFrame || E.mozCancelAnimationFrame || E.webkitCancelAnimationFrame, x2 = E.requestAnimationFrame || E.mozRequestAnimationFrame || E.webkitRequestAnimationFrame;
|
|
475
|
+
l2 == null || x2 == null ? (d2 = o2, p2 = function(t) {
|
|
476
|
+
return N2(t, S2);
|
|
477
|
+
}) : (d2 = function([t, n]) {
|
|
478
|
+
l2(t), o2(n);
|
|
479
|
+
}, p2 = function(t) {
|
|
480
|
+
const n = x2(function() {
|
|
481
|
+
o2(r), t();
|
|
482
|
+
}), r = N2(function() {
|
|
483
|
+
l2(n), t();
|
|
484
|
+
}, S2);
|
|
485
|
+
return [n, r];
|
|
486
|
+
});
|
|
487
|
+
function rt(e) {
|
|
488
|
+
let t, n, r, a, o, c, l;
|
|
489
|
+
const d = typeof document < "u" && document.attachEvent;
|
|
490
|
+
if (!d) {
|
|
491
|
+
c = function($) {
|
|
492
|
+
const b = $.__resizeTriggers__, k = b.firstElementChild, w = b.lastElementChild, x = k.firstElementChild;
|
|
493
|
+
w.scrollLeft = w.scrollWidth, w.scrollTop = w.scrollHeight, x.style.width = k.offsetWidth + 1 + "px", x.style.height = k.offsetHeight + 1 + "px", k.scrollLeft = k.scrollWidth, k.scrollTop = k.scrollHeight;
|
|
494
|
+
}, o = function($) {
|
|
495
|
+
return $.offsetWidth !== $.__resizeLast__.width || $.offsetHeight !== $.__resizeLast__.height;
|
|
496
|
+
}, l = function($) {
|
|
497
|
+
if ($.target.className && typeof $.target.className.indexOf == "function" && $.target.className.indexOf("contract-trigger") < 0 && $.target.className.indexOf("expand-trigger") < 0)
|
|
498
|
+
return;
|
|
499
|
+
const b = this;
|
|
500
|
+
c(this), this.__resizeRAF__ && d2(this.__resizeRAF__), this.__resizeRAF__ = p2(function() {
|
|
501
|
+
o(b) && (b.__resizeLast__.width = b.offsetWidth, b.__resizeLast__.height = b.offsetHeight, b.__resizeListeners__.forEach(function(x) {
|
|
502
|
+
x.call(b, $);
|
|
503
|
+
}));
|
|
504
|
+
});
|
|
505
|
+
};
|
|
506
|
+
let p = !1, C = "";
|
|
507
|
+
r = "animationstart";
|
|
508
|
+
const g = "Webkit Moz O ms".split(" ");
|
|
509
|
+
let I = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), f = "";
|
|
510
|
+
{
|
|
511
|
+
const $ = document.createElement("fakeelement");
|
|
512
|
+
if ($.style.animationName !== void 0 && (p = !0), p === !1) {
|
|
513
|
+
for (let b = 0; b < g.length; b++)
|
|
514
|
+
if ($.style[g[b] + "AnimationName"] !== void 0) {
|
|
515
|
+
f = g[b], C = "-" + f.toLowerCase() + "-", r = I[b], p = !0;
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
n = "resizeanim", t = "@" + C + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", a = C + "animation: 1ms " + n + "; ";
|
|
521
|
+
}
|
|
522
|
+
const u = function(p) {
|
|
523
|
+
if (!p.getElementById("detectElementResize")) {
|
|
524
|
+
const C = (t || "") + ".resize-triggers { " + (a || "") + '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");
|
|
525
|
+
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);
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
return {
|
|
529
|
+
addResizeListener: function(p, C) {
|
|
530
|
+
if (d)
|
|
531
|
+
p.attachEvent("onresize", C);
|
|
532
|
+
else {
|
|
533
|
+
if (!p.__resizeTriggers__) {
|
|
534
|
+
const g = p.ownerDocument, I = E.getComputedStyle(p);
|
|
535
|
+
I && I.position === "static" && (p.style.position = "relative"), u(g), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = g.createElement("div")).className = "resize-triggers";
|
|
536
|
+
const f = g.createElement("div");
|
|
537
|
+
f.className = "expand-trigger", f.appendChild(g.createElement("div"));
|
|
538
|
+
const $ = g.createElement("div");
|
|
539
|
+
$.className = "contract-trigger", p.__resizeTriggers__.appendChild(f), p.__resizeTriggers__.appendChild($), p.appendChild(p.__resizeTriggers__), c(p), p.addEventListener("scroll", l, !0), r && (p.__resizeTriggers__.__animationListener__ = function(k) {
|
|
540
|
+
k.animationName === n && c(p);
|
|
541
|
+
}, p.__resizeTriggers__.addEventListener(r, p.__resizeTriggers__.__animationListener__));
|
|
542
|
+
}
|
|
543
|
+
p.__resizeListeners__.push(C);
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
removeResizeListener: function(p, C) {
|
|
547
|
+
if (d)
|
|
548
|
+
p.detachEvent("onresize", C);
|
|
549
|
+
else if (p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(C), 1), !p.__resizeListeners__.length) {
|
|
550
|
+
p.removeEventListener("scroll", l, !0), p.__resizeTriggers__.__animationListener__ && (p.__resizeTriggers__.removeEventListener(r, p.__resizeTriggers__.__animationListener__), p.__resizeTriggers__.__animationListener__ = null);
|
|
551
|
+
try {
|
|
552
|
+
p.__resizeTriggers__ = !p.removeChild(p.__resizeTriggers__);
|
|
553
|
+
} catch {
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
class at extends ke {
|
|
560
|
+
constructor(...t) {
|
|
561
|
+
super(...t), this.state = {
|
|
562
|
+
height: this.props.defaultHeight || 0,
|
|
563
|
+
scaledHeight: this.props.defaultHeight || 0,
|
|
564
|
+
scaledWidth: this.props.defaultWidth || 0,
|
|
565
|
+
width: this.props.defaultWidth || 0
|
|
566
|
+
}, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
|
|
567
|
+
this._timeoutId = null;
|
|
568
|
+
const {
|
|
569
|
+
disableHeight: n,
|
|
570
|
+
disableWidth: r,
|
|
571
|
+
onResize: a
|
|
572
|
+
} = this.props;
|
|
573
|
+
if (this._parentNode) {
|
|
574
|
+
const o = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(o.paddingLeft || "0"), l = parseFloat(o.paddingRight || "0"), d = parseFloat(o.paddingTop || "0"), u = parseFloat(o.paddingBottom || "0"), v = this._parentNode.getBoundingClientRect(), m = v.height - d - u, p = v.width - c - l, C = this._parentNode.offsetHeight - d - u, g = this._parentNode.offsetWidth - c - l;
|
|
575
|
+
(!n && (this.state.height !== C || this.state.scaledHeight !== m) || !r && (this.state.width !== g || this.state.scaledWidth !== p)) && (this.setState({
|
|
576
|
+
height: C,
|
|
577
|
+
width: g,
|
|
578
|
+
scaledHeight: m,
|
|
579
|
+
scaledWidth: p
|
|
580
|
+
}), typeof a == "function" && a({
|
|
581
|
+
height: C,
|
|
582
|
+
scaledHeight: m,
|
|
583
|
+
scaledWidth: p,
|
|
584
|
+
width: g
|
|
585
|
+
}));
|
|
586
|
+
}
|
|
587
|
+
}, this._setRef = (n) => {
|
|
588
|
+
this._autoSizer = n;
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
componentDidMount() {
|
|
592
|
+
const {
|
|
593
|
+
nonce: t
|
|
594
|
+
} = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
|
|
595
|
+
if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
|
|
596
|
+
this._parentNode = n;
|
|
597
|
+
const r = n.ownerDocument.defaultView.ResizeObserver;
|
|
598
|
+
r != null ? (this._resizeObserver = new r(() => {
|
|
599
|
+
this._timeoutId = setTimeout(this._onResize, 0);
|
|
600
|
+
}), this._resizeObserver.observe(n)) : (this._detectElementResize = rt(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
componentWillUnmount() {
|
|
604
|
+
this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && this._resizeObserver.disconnect());
|
|
605
|
+
}
|
|
606
|
+
render() {
|
|
607
|
+
const {
|
|
608
|
+
children: t,
|
|
609
|
+
defaultHeight: n,
|
|
610
|
+
defaultWidth: r,
|
|
611
|
+
disableHeight: a = !1,
|
|
612
|
+
disableWidth: o = !1,
|
|
613
|
+
doNotBailOutOnEmptyChildren: c = !1,
|
|
614
|
+
nonce: l,
|
|
615
|
+
onResize: d,
|
|
616
|
+
style: u = {},
|
|
617
|
+
tagName: v = "div",
|
|
618
|
+
...m
|
|
619
|
+
} = this.props, {
|
|
620
|
+
height: p,
|
|
621
|
+
scaledHeight: C,
|
|
622
|
+
scaledWidth: g,
|
|
623
|
+
width: I
|
|
624
|
+
} = this.state, f = {
|
|
625
|
+
overflow: "visible"
|
|
626
|
+
}, $ = {};
|
|
627
|
+
let b = !1;
|
|
628
|
+
return a || (p === 0 && (b = !0), f.height = 0, $.height = p, $.scaledHeight = C), o || (I === 0 && (b = !0), f.width = 0, $.width = I, $.scaledWidth = g), c && (b = !1), _e(v, {
|
|
629
|
+
ref: this._setRef,
|
|
630
|
+
style: {
|
|
631
|
+
...f,
|
|
632
|
+
...u
|
|
633
|
+
},
|
|
634
|
+
...m
|
|
635
|
+
}, !b && t($));
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function ot(e) {
|
|
639
|
+
var t = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, r = e.startIndex, a = e.stopIndex;
|
|
640
|
+
return !(r > n || a < t);
|
|
641
|
+
}
|
|
642
|
+
function lt(e) {
|
|
643
|
+
for (var t = e.isItemLoaded, n = e.itemCount, r = e.minimumBatchSize, a = e.startIndex, o = e.stopIndex, c = [], l = null, d = null, u = a; u <= o; u++) {
|
|
644
|
+
var v = t(u);
|
|
645
|
+
v ? d !== null && (c.push(l, d), l = d = null) : (d = u, l === null && (l = u));
|
|
646
|
+
}
|
|
647
|
+
if (d !== null) {
|
|
648
|
+
for (var m = Math.min(Math.max(d, l + r - 1), n - 1), p = d + 1; p <= m && !t(p); p++)
|
|
649
|
+
d = p;
|
|
650
|
+
c.push(l, d);
|
|
651
|
+
}
|
|
652
|
+
if (c.length)
|
|
653
|
+
for (; c[1] - c[0] + 1 < r && c[0] > 0; ) {
|
|
654
|
+
var C = c[0] - 1;
|
|
655
|
+
if (!t(C))
|
|
656
|
+
c[0] = C;
|
|
657
|
+
else
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
return c;
|
|
661
|
+
}
|
|
662
|
+
var ct = function(e, t) {
|
|
663
|
+
if (!(e instanceof t))
|
|
664
|
+
throw new TypeError("Cannot call a class as a function");
|
|
665
|
+
}, dt = /* @__PURE__ */ function() {
|
|
666
|
+
function e(t, n) {
|
|
667
|
+
for (var r = 0; r < n.length; r++) {
|
|
668
|
+
var a = n[r];
|
|
669
|
+
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(t, a.key, a);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
return function(t, n, r) {
|
|
673
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
674
|
+
};
|
|
675
|
+
}(), pt = function(e, t) {
|
|
676
|
+
if (typeof t != "function" && t !== null)
|
|
677
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
678
|
+
e.prototype = Object.create(t && t.prototype, {
|
|
679
|
+
constructor: {
|
|
680
|
+
value: e,
|
|
681
|
+
enumerable: !1,
|
|
682
|
+
writable: !0,
|
|
683
|
+
configurable: !0
|
|
684
|
+
}
|
|
685
|
+
}), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
686
|
+
}, R2 = function(e, t) {
|
|
687
|
+
if (!e)
|
|
688
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
689
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
690
|
+
};
|
|
691
|
+
(function(e) {
|
|
692
|
+
pt(t, e);
|
|
693
|
+
function t() {
|
|
694
|
+
var n, r, a, o;
|
|
695
|
+
ct(this, t);
|
|
696
|
+
for (var c = arguments.length, l = Array(c), d = 0; d < c; d++)
|
|
697
|
+
l[d] = arguments[d];
|
|
698
|
+
return o = (r = (a = R2(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(l))), a), a._lastRenderedStartIndex = -1, a._lastRenderedStopIndex = -1, a._memoizedUnloadedRanges = [], a._onItemsRendered = function(u) {
|
|
699
|
+
var v = u.visibleStartIndex, m = u.visibleStopIndex;
|
|
700
|
+
a._lastRenderedStartIndex = v, a._lastRenderedStopIndex = m, a._ensureRowsLoaded(v, m);
|
|
701
|
+
}, a._setRef = function(u) {
|
|
702
|
+
a._listRef = u;
|
|
703
|
+
}, r), R2(a, o);
|
|
704
|
+
}
|
|
705
|
+
return dt(t, [{
|
|
706
|
+
key: "resetloadMoreItemsCache",
|
|
707
|
+
value: function() {
|
|
708
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
709
|
+
this._memoizedUnloadedRanges = [], r && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
710
|
+
}
|
|
711
|
+
}, {
|
|
712
|
+
key: "componentDidMount",
|
|
713
|
+
value: function() {
|
|
714
|
+
}
|
|
715
|
+
}, {
|
|
716
|
+
key: "render",
|
|
717
|
+
value: function() {
|
|
718
|
+
var r = this.props.children;
|
|
719
|
+
return r({
|
|
720
|
+
onItemsRendered: this._onItemsRendered,
|
|
721
|
+
ref: this._setRef
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
}, {
|
|
725
|
+
key: "_ensureRowsLoaded",
|
|
726
|
+
value: function(r, a) {
|
|
727
|
+
var o = this.props, c = o.isItemLoaded, l = o.itemCount, d = o.minimumBatchSize, u = d === void 0 ? 10 : d, v = o.threshold, m = v === void 0 ? 15 : v, p = lt({
|
|
728
|
+
isItemLoaded: c,
|
|
729
|
+
itemCount: l,
|
|
730
|
+
minimumBatchSize: u,
|
|
731
|
+
startIndex: Math.max(0, r - m),
|
|
732
|
+
stopIndex: Math.min(l - 1, a + m)
|
|
733
|
+
});
|
|
734
|
+
(this._memoizedUnloadedRanges.length !== p.length || this._memoizedUnloadedRanges.some(function(C, g) {
|
|
735
|
+
return p[g] !== C;
|
|
736
|
+
})) && (this._memoizedUnloadedRanges = p, this._loadUnloadedRanges(p));
|
|
737
|
+
}
|
|
738
|
+
}, {
|
|
739
|
+
key: "_loadUnloadedRanges",
|
|
740
|
+
value: function(r) {
|
|
741
|
+
for (var a = this, o = this.props.loadMoreItems || this.props.loadMoreRows, c = function(u) {
|
|
742
|
+
var v = r[u], m = r[u + 1], p = o(v, m);
|
|
743
|
+
p != null && p.then(function() {
|
|
744
|
+
if (ot({
|
|
745
|
+
lastRenderedStartIndex: a._lastRenderedStartIndex,
|
|
746
|
+
lastRenderedStopIndex: a._lastRenderedStopIndex,
|
|
747
|
+
startIndex: v,
|
|
748
|
+
stopIndex: m
|
|
749
|
+
})) {
|
|
750
|
+
if (a._listRef == null)
|
|
751
|
+
return;
|
|
752
|
+
typeof a._listRef.resetAfterIndex == "function" ? a._listRef.resetAfterIndex(v, !0) : (typeof a._listRef._getItemStyleCache == "function" && a._listRef._getItemStyleCache(-1), a._listRef.forceUpdate());
|
|
753
|
+
}
|
|
754
|
+
});
|
|
755
|
+
}, l = 0; l < r.length; l += 2)
|
|
756
|
+
c(l);
|
|
757
|
+
}
|
|
758
|
+
}]), t;
|
|
759
|
+
})(Te);
|
|
760
|
+
const ht = /* @__PURE__ */ i("div")({
|
|
761
|
+
name: "Container",
|
|
762
|
+
class: "culdu4a",
|
|
763
|
+
propsAsIs: !1
|
|
764
|
+
}), ut = /* @__PURE__ */ i("div")({
|
|
765
|
+
name: "Position",
|
|
766
|
+
class: "pwf8e69",
|
|
767
|
+
propsAsIs: !1
|
|
768
|
+
}), mt = /* @__PURE__ */ i("img")({
|
|
769
|
+
name: "Avatar",
|
|
770
|
+
class: "atf4yh4",
|
|
771
|
+
propsAsIs: !1
|
|
772
|
+
}), vt = /* @__PURE__ */ i("div")({
|
|
773
|
+
name: "AvatarPlaceholder",
|
|
774
|
+
class: "a1dg29ja",
|
|
775
|
+
propsAsIs: !1
|
|
776
|
+
}), Ct = /* @__PURE__ */ i("div")({
|
|
777
|
+
name: "Content",
|
|
778
|
+
class: "c10a68rc",
|
|
779
|
+
propsAsIs: !1
|
|
780
|
+
}), ft = /* @__PURE__ */ i("div")({
|
|
781
|
+
name: "NameContainer",
|
|
782
|
+
class: "nc4kck5",
|
|
783
|
+
propsAsIs: !1
|
|
784
|
+
}), gt = /* @__PURE__ */ i("span")({
|
|
785
|
+
name: "Name",
|
|
786
|
+
class: "njsrqgr",
|
|
787
|
+
propsAsIs: !1
|
|
788
|
+
}), It = () => _, bt = /* @__PURE__ */ i(It())({
|
|
789
|
+
name: "CurrentUserBadge",
|
|
790
|
+
class: "c17uc4zr",
|
|
791
|
+
propsAsIs: !0
|
|
792
|
+
}), $t = ({
|
|
793
|
+
friendsRank: e,
|
|
794
|
+
avatar: t,
|
|
795
|
+
name: n,
|
|
796
|
+
userId: r,
|
|
797
|
+
points: a,
|
|
798
|
+
isCurrentUser: o,
|
|
799
|
+
style: c
|
|
800
|
+
}) => /* @__PURE__ */ h(ht, { "data-name": r, style: c, children: [
|
|
801
|
+
/* @__PURE__ */ s(ut, { children: e || 0 }),
|
|
802
|
+
/* @__PURE__ */ h(Ct, { children: [
|
|
803
|
+
t ? /* @__PURE__ */ s(mt, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ s(vt, { children: m2(n || "") }),
|
|
804
|
+
/* @__PURE__ */ h(ft, { children: [
|
|
805
|
+
/* @__PURE__ */ s(gt, { children: n || "" }),
|
|
806
|
+
o && /* @__PURE__ */ s(bt, { name: "icon-star" })
|
|
807
|
+
] })
|
|
808
|
+
] }),
|
|
809
|
+
/* @__PURE__ */ s("div", { children: le(a) })
|
|
810
|
+
] }), At = /* @__PURE__ */ i("div")({
|
|
811
|
+
name: "Container",
|
|
812
|
+
class: "c16btbfp",
|
|
813
|
+
propsAsIs: !1
|
|
814
|
+
}), yt = ({
|
|
815
|
+
items: e,
|
|
816
|
+
currentUserId: t,
|
|
817
|
+
openItemDetail: n,
|
|
818
|
+
fetchMore: r,
|
|
819
|
+
scrollNode: a,
|
|
820
|
+
hasMore: o
|
|
821
|
+
}) => {
|
|
822
|
+
const c = U((l) => {
|
|
823
|
+
const d = l.target.getAttribute("data-name");
|
|
824
|
+
d && n(d);
|
|
825
|
+
}, [n]);
|
|
826
|
+
return /* @__PURE__ */ s(n0, {
|
|
827
|
+
loadMore: r,
|
|
828
|
+
initialLoad: !1,
|
|
829
|
+
hasMore: o,
|
|
830
|
+
useWindow: !1,
|
|
831
|
+
getScrollParent: () => a.current,
|
|
832
|
+
children: /* @__PURE__ */ s(At, {
|
|
833
|
+
"data-a": "intr",
|
|
834
|
+
onClick: c,
|
|
835
|
+
children: e.map((l) => /* @__PURE__ */ s($t, {
|
|
836
|
+
...l,
|
|
837
|
+
isCurrentUser: !!t && t === l.userId
|
|
838
|
+
}, l.userId))
|
|
839
|
+
})
|
|
840
|
+
});
|
|
841
|
+
}, wt = /* @__PURE__ */ i("div")({
|
|
842
|
+
name: "Container",
|
|
843
|
+
class: "c1itm4k7",
|
|
844
|
+
propsAsIs: !1
|
|
845
|
+
}), Lt = /* @__PURE__ */ i("div")({
|
|
846
|
+
name: "IconContainer",
|
|
847
|
+
class: "i1w4fsni",
|
|
848
|
+
propsAsIs: !1
|
|
849
|
+
}), kt = () => _, _t = /* @__PURE__ */ i(kt())({
|
|
850
|
+
name: "InviteGameIcon",
|
|
851
|
+
class: "i19m85r1",
|
|
852
|
+
propsAsIs: !0
|
|
853
|
+
}), Tt = /* @__PURE__ */ i("div")({
|
|
854
|
+
name: "Content",
|
|
855
|
+
class: "c1mbu204",
|
|
856
|
+
propsAsIs: !1
|
|
857
|
+
}), St = /* @__PURE__ */ i("div")({
|
|
858
|
+
name: "Heading",
|
|
859
|
+
class: "h1amdqtv",
|
|
860
|
+
propsAsIs: !1
|
|
861
|
+
}), Nt = /* @__PURE__ */ i("div")({
|
|
862
|
+
name: "Subtext",
|
|
863
|
+
class: "s1lhlj9j",
|
|
864
|
+
propsAsIs: !1
|
|
865
|
+
}), xt = /* @__PURE__ */ i("div")({
|
|
866
|
+
name: "LinkContainer",
|
|
867
|
+
class: "l1wot35e",
|
|
868
|
+
propsAsIs: !1
|
|
869
|
+
}), Rt = /* @__PURE__ */ i("div")({
|
|
870
|
+
name: "LinkInfo",
|
|
871
|
+
class: "l1jdw39q",
|
|
872
|
+
propsAsIs: !1
|
|
873
|
+
}), Et = /* @__PURE__ */ i("span")({
|
|
874
|
+
name: "LinkTitle",
|
|
875
|
+
class: "l1cr5mk",
|
|
876
|
+
propsAsIs: !1
|
|
877
|
+
}), Vt = /* @__PURE__ */ i("span")({
|
|
878
|
+
name: "LinkAddress",
|
|
879
|
+
class: "lvi87q4",
|
|
880
|
+
propsAsIs: !1
|
|
881
|
+
}), Ht = () => _, zt = /* @__PURE__ */ i(Ht())({
|
|
882
|
+
name: "LinkIcon",
|
|
883
|
+
class: "l1pqlvw3",
|
|
884
|
+
propsAsIs: !0
|
|
885
|
+
}), fe = ({
|
|
886
|
+
inviteLink: e,
|
|
887
|
+
inviteCardTitle: t,
|
|
888
|
+
inviteCardSubtext: n,
|
|
889
|
+
primaryColor: r,
|
|
890
|
+
className: a
|
|
891
|
+
}) => {
|
|
892
|
+
const o = V(null), [c, l] = Ce(o), [d] = oe({
|
|
893
|
+
type: "invitation",
|
|
894
|
+
action: "sent",
|
|
895
|
+
payload: {
|
|
896
|
+
from: re.MENU
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
return /* @__PURE__ */ h(wt, { className: a, children: [
|
|
900
|
+
/* @__PURE__ */ s(Lt, { style: { backgroundColor: r }, children: /* @__PURE__ */ s(_t, { name: "invite-game-icon" }) }),
|
|
901
|
+
/* @__PURE__ */ h(Tt, { children: [
|
|
902
|
+
/* @__PURE__ */ s(St, { children: t || "" }),
|
|
903
|
+
/* @__PURE__ */ s(Nt, { children: n || "" })
|
|
904
|
+
] }),
|
|
905
|
+
e && /* @__PURE__ */ h(xt, { ref: o, "data-a": "intr", onClick: d(() => c(e)), children: [
|
|
906
|
+
/* @__PURE__ */ h(Rt, { children: [
|
|
907
|
+
/* @__PURE__ */ s(Et, { children: "Invite link" }),
|
|
908
|
+
/* @__PURE__ */ s(Vt, { children: e })
|
|
909
|
+
] }),
|
|
910
|
+
/* @__PURE__ */ s(zt, { name: "icon-copy" })
|
|
911
|
+
] }),
|
|
912
|
+
l
|
|
913
|
+
] });
|
|
914
|
+
}, Mt = /* @__PURE__ */ i("div")({
|
|
915
|
+
name: "InviteFriendsContainer",
|
|
916
|
+
class: "i1c9dygq",
|
|
917
|
+
propsAsIs: !1
|
|
918
|
+
}), Ot = ({
|
|
919
|
+
deepLink: e
|
|
920
|
+
}) => /* @__PURE__ */ s(Mt, {
|
|
921
|
+
children: /* @__PURE__ */ s(fe, {
|
|
922
|
+
inviteLink: e,
|
|
923
|
+
inviteCardTitle: "It’s More Fun With Friends",
|
|
924
|
+
inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
|
|
925
|
+
})
|
|
926
|
+
}), Dt = /* @__PURE__ */ i("div")({
|
|
927
|
+
name: "InviteLinkContainer",
|
|
928
|
+
class: "i1odbhm4",
|
|
929
|
+
propsAsIs: !1
|
|
930
|
+
}), Ft = ({
|
|
931
|
+
gamification: e,
|
|
932
|
+
scrollNode: t,
|
|
933
|
+
scrollStore: n,
|
|
934
|
+
leaderboardList: r
|
|
935
|
+
}) => {
|
|
936
|
+
const a = V(null), {
|
|
937
|
+
data: o,
|
|
938
|
+
hasMore: c,
|
|
939
|
+
loading: l,
|
|
940
|
+
key: d
|
|
941
|
+
} = A(r.$store), {
|
|
942
|
+
data: u
|
|
943
|
+
} = A(e.deepLink.$store), [v, m] = Ce(a);
|
|
944
|
+
return !o.length && !l ? /* @__PURE__ */ s(Ot, {
|
|
945
|
+
deepLink: u
|
|
946
|
+
}) : /* @__PURE__ */ h(R, {
|
|
947
|
+
children: [/* @__PURE__ */ s(yt, {
|
|
948
|
+
items: o,
|
|
949
|
+
scrollNode: t,
|
|
950
|
+
scrollStore: n,
|
|
951
|
+
fetchMore: r.fetchMore,
|
|
952
|
+
hasMore: c,
|
|
953
|
+
openItemDetail: e.openUser,
|
|
954
|
+
currentUserId: e.currentUserId.get()
|
|
955
|
+
}, d), u && /* @__PURE__ */ s(Dt, {
|
|
956
|
+
ref: a,
|
|
957
|
+
children: /* @__PURE__ */ s(it, {
|
|
958
|
+
"data-a": "intr",
|
|
959
|
+
onClick: () => v(u),
|
|
960
|
+
title: "Invite Friends",
|
|
961
|
+
description: "Challenge them now!"
|
|
962
|
+
})
|
|
963
|
+
}), m]
|
|
964
|
+
});
|
|
965
|
+
}, Bt = ({
|
|
966
|
+
gamification: e,
|
|
967
|
+
scrollNode: t,
|
|
968
|
+
scrollStore: n
|
|
969
|
+
}) => e.leaderboardList ? /* @__PURE__ */ s(Ft, {
|
|
970
|
+
leaderboardList: e.leaderboardList,
|
|
971
|
+
gamification: e,
|
|
972
|
+
scrollNode: t,
|
|
973
|
+
scrollStore: n
|
|
974
|
+
}) : null, qt = () => pe, Ut = /* @__PURE__ */ i(qt())({
|
|
975
|
+
name: "Container",
|
|
976
|
+
class: "cll3md7",
|
|
977
|
+
propsAsIs: !0
|
|
978
|
+
}), Pt = () => i0, Wt = /* @__PURE__ */ i(Pt())({
|
|
979
|
+
name: "ActionBtn",
|
|
980
|
+
class: "a10g1iik",
|
|
981
|
+
propsAsIs: !0
|
|
982
|
+
}), jt = ({ questionId: e, ...t }) => /* @__PURE__ */ h(Ut, { "data-a": "intr", "data-name": e, children: [
|
|
983
|
+
/* @__PURE__ */ s(Je, { questionId: e, ...t }),
|
|
984
|
+
/* @__PURE__ */ s(Wt, { "data-a": "intr", "data-name": e, children: "View Insight" })
|
|
985
|
+
] }), Zt = () => pe, Gt = /* @__PURE__ */ i(Zt())({
|
|
986
|
+
name: "Container",
|
|
987
|
+
class: "cl56x6b",
|
|
988
|
+
propsAsIs: !0
|
|
989
|
+
}), Qt = /* @__PURE__ */ i("button")({
|
|
990
|
+
name: "ActionButton",
|
|
991
|
+
class: "a11pzf92",
|
|
992
|
+
propsAsIs: !1
|
|
993
|
+
}), Kt = /* @__PURE__ */ i("blockquote")({
|
|
994
|
+
name: "Quote",
|
|
995
|
+
class: "q1hbaleq",
|
|
996
|
+
propsAsIs: !1
|
|
997
|
+
}), Yt = ({ ...e }) => /* @__PURE__ */ h(Gt, { "data-a": "intr", "data-name": e.tweetId, children: [
|
|
998
|
+
e.title && /* @__PURE__ */ s(Kt, { children: e.title }),
|
|
999
|
+
/* @__PURE__ */ s(ce, { ...e }),
|
|
1000
|
+
/* @__PURE__ */ s(Qt, { "data-a": "intr", "data-name": e.tweetId, children: "View Insight" })
|
|
1001
|
+
] }), E2 = /* @__PURE__ */ i("div")({
|
|
1002
|
+
name: "QuestionsContainer",
|
|
1003
|
+
class: "qvghv3l",
|
|
1004
|
+
propsAsIs: !1
|
|
1005
|
+
}), Jt = ({ questions: e, openQuestion: t, controlVideo: n }) => e ? /* @__PURE__ */ s(E2, { "data-a": "intr", onClick: (a) => {
|
|
1006
|
+
const o = a.target.getAttribute("data-name");
|
|
1007
|
+
o && (o0(), t(o, { openedFrom: "list" }));
|
|
1008
|
+
}, children: e == null ? void 0 : e.map((a) => {
|
|
1009
|
+
var o, c, l;
|
|
1010
|
+
if (a.type === "question" && ((o = a.attributes) == null ? void 0 : o.attributes.case) === "question") {
|
|
1011
|
+
const d = a.attributes.attributes.value;
|
|
1012
|
+
return /* @__PURE__ */ s(r0, { ...d }, d.questionId);
|
|
1013
|
+
}
|
|
1014
|
+
if (a.type === "insight" && ((c = a.attributes) == null ? void 0 : c.attributes.case) === "insight") {
|
|
1015
|
+
const d = a.attributes.attributes.value;
|
|
1016
|
+
return /* @__PURE__ */ s(jt, { controlVideo: n, ...d }, d.questionId);
|
|
1017
|
+
}
|
|
1018
|
+
if (a.type === "tweet" && ((l = a.attributes) == null ? void 0 : l.attributes.case) === "tweet") {
|
|
1019
|
+
const d = a.attributes.attributes.value, u = a.attributes.id;
|
|
1020
|
+
return /* @__PURE__ */ s(Yt, { controlVideo: n, ...d, tweetId: u }, u);
|
|
1021
|
+
}
|
|
1022
|
+
return null;
|
|
1023
|
+
}) }) : /* @__PURE__ */ s(E2, { children: Array.from({ length: 5 }).map((a, o) => /* @__PURE__ */ s(a0, {}, o)) }), Xt = ({ store: e, openQuestion: t }) => {
|
|
1024
|
+
const { sdk: n } = u2(), r = A(e);
|
|
1025
|
+
return /* @__PURE__ */ s(Jt, { openQuestion: t, questions: r.data, controlVideo: n == null ? void 0 : n.controlVideoPlayer });
|
|
1026
|
+
}, es = ({ userSummary: e }) => {
|
|
1027
|
+
var t;
|
|
1028
|
+
const [n, r] = L(void 0);
|
|
1029
|
+
return y(() => {
|
|
1030
|
+
const a = e.$store.subscribe((o) => {
|
|
1031
|
+
o && r(o);
|
|
1032
|
+
});
|
|
1033
|
+
return () => {
|
|
1034
|
+
a();
|
|
1035
|
+
};
|
|
1036
|
+
}, [e]), /* @__PURE__ */ s(ue, { loading: !(n != null && n.summary), ...n == null ? void 0 : n.summary, successRate: (t = n == null ? void 0 : n.percentage) == null ? void 0 : t.correct });
|
|
1037
|
+
}, ts = ({ gamification: e, className: t, scrollStore: n, scrollNode: r, appNode: a, style: o, responsiveStore: c }) => {
|
|
1038
|
+
const { tabsShown: l } = A(n, { keys: ["tabsShown"] }), d = A(e.friendsTabEnabled), [u, v] = L(j.HOME), [, m] = Me(), { sdkInDesktopView: p, screen: C } = A(c, { keys: ["sdkInDesktopView"] }), g = (f) => {
|
|
1039
|
+
m(() => {
|
|
1040
|
+
var $;
|
|
1041
|
+
v(f), p === !1 && ((($ = a.current) == null ? void 0 : $.getBoundingClientRect().y) || 0) < 0 && v2(a, C.size, { behavior: "instant" });
|
|
1042
|
+
});
|
|
1043
|
+
};
|
|
1044
|
+
y(() => n.subscribe((f) => {
|
|
1045
|
+
if (f.scrollPosition === 0) {
|
|
1046
|
+
n.setKey("tabsShown", !0);
|
|
1047
|
+
return;
|
|
1048
|
+
}
|
|
1049
|
+
c.get().sdkInDesktopView ? n.setKey("tabsShown", f.scrollDirection === "backward") : n.setKey("tabsShown", f.scrollDirection === "forward");
|
|
1050
|
+
}), [n, c]), y(() => {
|
|
1051
|
+
d || v(j.HOME);
|
|
1052
|
+
}, [d]);
|
|
1053
|
+
let I = "0px";
|
|
1054
|
+
return p ? I = l ? "0px" : "calc(0px - var(--header-height))" : I = l ? "var(--header-height)" : "0px", /* @__PURE__ */ h(Oe, { className: F(t, "SL-Tabs", "sl-hide-on-modal"), style: o, children: [
|
|
1055
|
+
d && /* @__PURE__ */ s(
|
|
1056
|
+
De,
|
|
1057
|
+
{
|
|
1058
|
+
style: {
|
|
1059
|
+
top: I
|
|
1060
|
+
},
|
|
1061
|
+
children: /* @__PURE__ */ s(W0, { activePage: u, toggleActivePage: g })
|
|
1062
|
+
}
|
|
1063
|
+
),
|
|
1064
|
+
u === j.HOME && /* @__PURE__ */ h(R, { children: [
|
|
1065
|
+
/* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(Be, { children: /* @__PURE__ */ s(es, { userSummary: e.userSummary }) }) }),
|
|
1066
|
+
/* @__PURE__ */ s(qe, { style: { flex: 1 }, children: /* @__PURE__ */ s(Xt, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
|
|
1067
|
+
] }),
|
|
1068
|
+
u === j.LEADERBOARD && /* @__PURE__ */ s(Ue, { children: /* @__PURE__ */ s(Bt, { scrollStore: n, scrollNode: r, gamification: e }) })
|
|
1069
|
+
] });
|
|
1070
|
+
}, ss = () => i2, V2 = /* @__PURE__ */ i(ss())({
|
|
1071
|
+
name: "OpenedContainer",
|
|
1072
|
+
class: "ouvguos",
|
|
1073
|
+
propsAsIs: !0
|
|
1074
|
+
}), H2 = "t1eu4lbg", ns = /* @__PURE__ */ i("div")({
|
|
1075
|
+
name: "UserContainer",
|
|
1076
|
+
class: "uuv2xqo",
|
|
1077
|
+
propsAsIs: !1
|
|
1078
|
+
}), is = ({
|
|
1079
|
+
correct: e,
|
|
1080
|
+
incorrect: t
|
|
1081
|
+
}) => {
|
|
1082
|
+
const n = e + t;
|
|
1083
|
+
return n === 0 ? 0 : Math.round(e / n * 100);
|
|
1084
|
+
}, D1 = ({
|
|
1085
|
+
gamification: e,
|
|
1086
|
+
scrollStore: t,
|
|
1087
|
+
className: n,
|
|
1088
|
+
appNode: r,
|
|
1089
|
+
scrollNode: a,
|
|
1090
|
+
responsiveStore: o
|
|
1091
|
+
}) => /* @__PURE__ */ s(ts, {
|
|
1092
|
+
appNode: r,
|
|
1093
|
+
scrollStore: t,
|
|
1094
|
+
scrollNode: a,
|
|
1095
|
+
className: n,
|
|
1096
|
+
gamification: e,
|
|
1097
|
+
responsiveStore: o
|
|
1098
|
+
}), rs = ({
|
|
1099
|
+
gamification: e,
|
|
1100
|
+
muted: t,
|
|
1101
|
+
sdk: n,
|
|
1102
|
+
className: r,
|
|
1103
|
+
appNode: a,
|
|
1104
|
+
responsiveStore: o
|
|
1105
|
+
}) => {
|
|
1106
|
+
const {
|
|
1107
|
+
topNavigation: c
|
|
1108
|
+
} = u2(), l = A(e.openedQuestionId), d = A(e.openedQuestion.$store), u = A(e.openedUser || he(void 0)), {
|
|
1109
|
+
sdkInDesktopView: v
|
|
1110
|
+
} = A(o, {
|
|
1111
|
+
keys: ["sdkInDesktopView"]
|
|
1112
|
+
}), {
|
|
1113
|
+
hiding: m,
|
|
1114
|
+
onAnimationEnd: p
|
|
1115
|
+
} = Pe();
|
|
1116
|
+
if (!l && !u)
|
|
1117
|
+
return null;
|
|
1118
|
+
const C = d ? /* @__PURE__ */ s(V2, {
|
|
1119
|
+
className: F(r, !c && H2),
|
|
1120
|
+
hiding: m,
|
|
1121
|
+
onAnimationEnd: p,
|
|
1122
|
+
children: /* @__PURE__ */ s(Xe, {
|
|
1123
|
+
muted: t,
|
|
1124
|
+
sdk: n,
|
|
1125
|
+
gamification: e
|
|
1126
|
+
})
|
|
1127
|
+
}) : u ? /* @__PURE__ */ s(V2, {
|
|
1128
|
+
className: F(r, !c && H2),
|
|
1129
|
+
hiding: m,
|
|
1130
|
+
onAnimationEnd: p,
|
|
1131
|
+
children: /* @__PURE__ */ h(ns, {
|
|
1132
|
+
children: [/* @__PURE__ */ s(e0, {
|
|
1133
|
+
label: "Friend's Rank",
|
|
1134
|
+
close: e.closeUser
|
|
1135
|
+
}), /* @__PURE__ */ s(We, {
|
|
1136
|
+
children: /* @__PURE__ */ s(ue, {
|
|
1137
|
+
...u,
|
|
1138
|
+
successRate: is(u)
|
|
1139
|
+
})
|
|
1140
|
+
})]
|
|
1141
|
+
})
|
|
1142
|
+
}) : null;
|
|
1143
|
+
return /* @__PURE__ */ s(ve, {
|
|
1144
|
+
container: a,
|
|
1145
|
+
useContainer: !v,
|
|
1146
|
+
children: C
|
|
1147
|
+
});
|
|
1148
|
+
}, as = Se(() => import("./gamification-feature.js")), os = ({ sdk: e, feature: t, className: n, scrollStore: r, appNode: a, scrollNode: o, responsiveStore: c }) => {
|
|
1149
|
+
const l = M(() => t && t.featureConfig.get().type === H.GAMES ? /* @__PURE__ */ s(m0, { className: n, sdk: e, feature: t, children: /* @__PURE__ */ s(
|
|
1150
|
+
as,
|
|
1151
|
+
{
|
|
1152
|
+
appNode: a,
|
|
1153
|
+
scrollStore: r,
|
|
1154
|
+
scrollNode: o,
|
|
1155
|
+
className: n,
|
|
1156
|
+
responsiveStore: c,
|
|
1157
|
+
gamification: t
|
|
1158
|
+
}
|
|
1159
|
+
) }) : null, [e, t, n, c, r, o, a]);
|
|
1160
|
+
return /* @__PURE__ */ s(
|
|
1161
|
+
Ne,
|
|
1162
|
+
{
|
|
1163
|
+
fallback: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
|
|
1164
|
+
children: l
|
|
1165
|
+
}
|
|
1166
|
+
);
|
|
1167
|
+
}, ls = ({ feature: e, sdk: t, muted: n, className: r, appNode: a, responsiveStore: o }) => e && e.featureConfig.get().type === H.GAMES ? /* @__PURE__ */ s(
|
|
1168
|
+
rs,
|
|
1169
|
+
{
|
|
1170
|
+
className: r,
|
|
1171
|
+
appNode: a,
|
|
1172
|
+
muted: n,
|
|
1173
|
+
sdk: t,
|
|
1174
|
+
responsiveStore: o,
|
|
1175
|
+
gamification: e
|
|
1176
|
+
}
|
|
1177
|
+
) : null;
|
|
1178
|
+
window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
|
|
1179
|
+
function cs(e) {
|
|
1180
|
+
return e instanceof DOMException && // everything except Firefox
|
|
1181
|
+
(e.code === 22 || // Firefox
|
|
1182
|
+
e.code === 1014 || // test name field too, because code might not be present
|
|
1183
|
+
// everything except Firefox
|
|
1184
|
+
e.name === "QuotaExceededError" || // Firefox
|
|
1185
|
+
e.name === "NS_ERROR_DOM_QUOTA_REACHED");
|
|
1186
|
+
}
|
|
1187
|
+
class ds {
|
|
1188
|
+
constructor(t = "main", n = window.localStorage) {
|
|
1189
|
+
T(this, "delimiter", ":");
|
|
1190
|
+
T(this, "prefix");
|
|
1191
|
+
T(this, "storage");
|
|
1192
|
+
T(this, "clear", () => {
|
|
1193
|
+
for (const t in window.localStorage)
|
|
1194
|
+
t.startsWith(this.prefix) && this.storage.removeItem(t);
|
|
1195
|
+
});
|
|
1196
|
+
T(this, "generateKey", (t) => `${this.prefix}${this.delimiter}${t.join(this.delimiter)}`);
|
|
1197
|
+
T(this, "write", (...t) => {
|
|
1198
|
+
const n = t.pop() || "", r = this.generateKey(t);
|
|
1199
|
+
try {
|
|
1200
|
+
this.storage.setItem(r, n);
|
|
1201
|
+
} catch (a) {
|
|
1202
|
+
cs(a) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(r, n));
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
T(this, "read", (...t) => {
|
|
1206
|
+
const n = this.storage.getItem(this.generateKey(t));
|
|
1207
|
+
return n === null ? void 0 : n;
|
|
1208
|
+
});
|
|
1209
|
+
T(this, "remove", (...t) => {
|
|
1210
|
+
this.storage.removeItem(this.generateKey(t));
|
|
1211
|
+
});
|
|
1212
|
+
this.prefix = `sl-sdk${this.delimiter}${t}`, this.storage = n;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
var z2;
|
|
1216
|
+
(function(e) {
|
|
1217
|
+
e.Init = "init", e.Ready = "ready", e.Connecting = "connecting", e.Connected = "connected", e.Disconnected = "disconnected", e.Failed = "failed", e.Reconnect = "reconnect", e.Reconnecting = "reconnecting";
|
|
1218
|
+
})(z2 || (z2 = {}));
|
|
1219
|
+
G("grpc:stream");
|
|
1220
|
+
B.Unknown, B.Internal, B.DeadlineExceeded, B.ResourceExhausted, B.FailedPrecondition, B.Unavailable, B.DataLoss;
|
|
1221
|
+
G("grpc:retry");
|
|
1222
|
+
b2(10, { description: "Number of attempts to retry" }), b2(3e4, { description: "Max delay between retries in milliseconds" });
|
|
1223
|
+
var z;
|
|
1224
|
+
(function(e) {
|
|
1225
|
+
e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
|
|
1226
|
+
})(z || (z = {}));
|
|
1227
|
+
class ps extends ds {
|
|
1228
|
+
constructor() {
|
|
1229
|
+
super("user");
|
|
1230
|
+
// Schema
|
|
1231
|
+
T(this, "setSchema", (n) => {
|
|
1232
|
+
this.write(z.SCHEMA, n);
|
|
1233
|
+
});
|
|
1234
|
+
T(this, "getSchema", () => this.read(z.SCHEMA));
|
|
1235
|
+
// Token
|
|
1236
|
+
T(this, "setToken", (n) => {
|
|
1237
|
+
this.write(z.TOKEN, n);
|
|
1238
|
+
});
|
|
1239
|
+
T(this, "getToken", () => this.read(z.TOKEN));
|
|
1240
|
+
// External Token
|
|
1241
|
+
T(this, "setExternalToken", (n) => {
|
|
1242
|
+
this.write(z.EXTERNAL_TOKEN, n);
|
|
1243
|
+
});
|
|
1244
|
+
T(this, "getExternalToken", () => this.read(z.EXTERNAL_TOKEN));
|
|
1245
|
+
T(this, "removeToken", () => {
|
|
1246
|
+
this.remove(z.TOKEN);
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
var M2;
|
|
1251
|
+
(function(e) {
|
|
1252
|
+
e.DISABLED = "disabled", e.INITIALIZATION = "initialization", e.READY = "ready", e.FAILED = "failed", e.SUSPENDED = "suspended";
|
|
1253
|
+
})(M2 || (M2 = {}));
|
|
1254
|
+
var O2;
|
|
1255
|
+
(function(e) {
|
|
1256
|
+
e.SHOWED = "showed", e.EVENT = "ev";
|
|
1257
|
+
})(O2 || (O2 = {}));
|
|
1258
|
+
var D2;
|
|
1259
|
+
(function(e) {
|
|
1260
|
+
e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.QUESTION_RECEIVED = "q-received", e.QUESTION_OPENED = "q-opened";
|
|
1261
|
+
})(D2 || (D2 = {}));
|
|
1262
|
+
var F2;
|
|
1263
|
+
(function(e) {
|
|
1264
|
+
e.ALLOWED = "allowed", e.DISALLOWED = "disallowed";
|
|
1265
|
+
})(F2 || (F2 = {}));
|
|
1266
|
+
var B2;
|
|
1267
|
+
(function(e) {
|
|
1268
|
+
e.UNKNOWN = "unknown", e.ALREADY_VOTED = "already_voted";
|
|
1269
|
+
})(B2 || (B2 = {}));
|
|
1270
|
+
G("deep_link");
|
|
1271
|
+
G("bypass");
|
|
1272
|
+
new ps();
|
|
1273
|
+
G("video_player");
|
|
1274
|
+
S.FACTOID + "", S.POLL + "", S.TRIVIA + "", S.PREDICTION + "", S.TWEET + "";
|
|
1275
|
+
var q2;
|
|
1276
|
+
(function(e) {
|
|
1277
|
+
e.Unset = "unset", e.Required = "required", e.Optional = "optional", e.Completed = "completed", e.Disabled = "disabled", e.Unavailable = "unavailable";
|
|
1278
|
+
})(q2 || (q2 = {}));
|
|
1279
|
+
S.POLL, S.PREDICTION, S.TRIVIA;
|
|
1280
|
+
const hs = {
|
|
1281
|
+
[H.GAMES]: !0
|
|
1282
|
+
}, us = /* @__PURE__ */ i("div")({
|
|
1283
|
+
name: "Buttons",
|
|
1284
|
+
class: "b5o8qbl",
|
|
1285
|
+
propsAsIs: !1
|
|
1286
|
+
}), ms = ({
|
|
1287
|
+
children: e,
|
|
1288
|
+
className: t
|
|
1289
|
+
}) => /* @__PURE__ */ s(us, {
|
|
1290
|
+
className: t,
|
|
1291
|
+
children: e
|
|
1292
|
+
}), ge = /* @__PURE__ */ i("div")({
|
|
1293
|
+
name: "Navigation",
|
|
1294
|
+
class: "n6tbwuy",
|
|
1295
|
+
propsAsIs: !1
|
|
1296
|
+
}), vs = () => ms, U2 = /* @__PURE__ */ i(vs())({
|
|
1297
|
+
name: "NavigationItems",
|
|
1298
|
+
class: "n1up4z7v",
|
|
1299
|
+
propsAsIs: !0
|
|
1300
|
+
}), Cs = /* @__PURE__ */ i("button")({
|
|
1301
|
+
name: "SButton",
|
|
1302
|
+
class: "sxxa0c",
|
|
1303
|
+
propsAsIs: !1
|
|
1304
|
+
}), fs = /* @__PURE__ */ i("span")({
|
|
1305
|
+
name: "ButtonIcon",
|
|
1306
|
+
class: "b193dcyu",
|
|
1307
|
+
propsAsIs: !1
|
|
1308
|
+
}), gs = /* @__PURE__ */ i("span")({
|
|
1309
|
+
name: "ButtonLabel",
|
|
1310
|
+
class: "b40tuix",
|
|
1311
|
+
propsAsIs: !1
|
|
1312
|
+
}), Is = "s14xk0af", bs = "ha3mg7c", $s = "h103yr45", Y = ({ disabled: e, active: t, onClick: n, label: r, icon: a, id: o }) => /* @__PURE__ */ s(
|
|
1313
|
+
Cs,
|
|
1314
|
+
{
|
|
1315
|
+
onClick: n,
|
|
1316
|
+
"data-a": "intr",
|
|
1317
|
+
disabled: e,
|
|
1318
|
+
className: F(
|
|
1319
|
+
t && Is,
|
|
1320
|
+
!t && (o === "channels" || o === "featuredGroups") && bs,
|
|
1321
|
+
!t && o === "leaderboard" && $s
|
|
1322
|
+
),
|
|
1323
|
+
children: /* @__PURE__ */ h(R, { children: [
|
|
1324
|
+
a && /* @__PURE__ */ s(fs, { children: a }),
|
|
1325
|
+
/* @__PURE__ */ s(gs, { children: r })
|
|
1326
|
+
] })
|
|
1327
|
+
}
|
|
1328
|
+
), As = () => _, ys = /* @__PURE__ */ i(As())({
|
|
1329
|
+
name: "ButtonIcon",
|
|
1330
|
+
class: "b11wpe79",
|
|
1331
|
+
propsAsIs: !0
|
|
1332
|
+
}), ws = /* @__PURE__ */ i("div")({
|
|
1333
|
+
name: "Container",
|
|
1334
|
+
class: "calnblm",
|
|
1335
|
+
propsAsIs: !1
|
|
1336
|
+
}), Ls = /* @__PURE__ */ i("div")({
|
|
1337
|
+
name: "Title",
|
|
1338
|
+
class: "t1438p52",
|
|
1339
|
+
propsAsIs: !1
|
|
1340
|
+
}), ks = /* @__PURE__ */ i("div")({
|
|
1341
|
+
name: "CloseIconWrap",
|
|
1342
|
+
class: "c17srj38",
|
|
1343
|
+
propsAsIs: !1
|
|
1344
|
+
}), _s = () => _, Ts = /* @__PURE__ */ i(_s())({
|
|
1345
|
+
name: "CloseIcon",
|
|
1346
|
+
class: "clqia8k",
|
|
1347
|
+
propsAsIs: !0
|
|
1348
|
+
}), Ss = () => _, Ns = /* @__PURE__ */ i(Ss())({
|
|
1349
|
+
name: "DashboardIcon",
|
|
1350
|
+
class: "df5w958",
|
|
1351
|
+
propsAsIs: !0
|
|
1352
|
+
}), xs = "h12x6aiv", Rs = ie(({
|
|
1353
|
+
sdk: e,
|
|
1354
|
+
className: t
|
|
1355
|
+
}, n) => {
|
|
1356
|
+
const r = () => {
|
|
1357
|
+
e.closeFeature();
|
|
1358
|
+
};
|
|
1359
|
+
return /* @__PURE__ */ h(ge, {
|
|
1360
|
+
className: F(t, xs),
|
|
1361
|
+
children: [/* @__PURE__ */ h(ws, {
|
|
1362
|
+
children: [/* @__PURE__ */ h(Ls, {
|
|
1363
|
+
children: [/* @__PURE__ */ s(Ns, {
|
|
1364
|
+
name: "dashboard"
|
|
1365
|
+
}), "Dashboard"]
|
|
1366
|
+
}), /* @__PURE__ */ s(ks, {
|
|
1367
|
+
"data-a": "intr",
|
|
1368
|
+
onClick: r,
|
|
1369
|
+
children: /* @__PURE__ */ s(Ts, {
|
|
1370
|
+
name: "icon-cross"
|
|
1371
|
+
})
|
|
1372
|
+
})]
|
|
1373
|
+
}), /* @__PURE__ */ s("div", {
|
|
1374
|
+
ref: n
|
|
1375
|
+
})]
|
|
1376
|
+
});
|
|
1377
|
+
}), Es = ie(({
|
|
1378
|
+
sdk: e,
|
|
1379
|
+
className: t
|
|
1380
|
+
}, n) => {
|
|
1381
|
+
const r = A(e.sdkStore.organizationSettings), a = A(e.sdkStore.streamSettings), o = A(e.getActiveFeature()), c = M(() => {
|
|
1382
|
+
const d = (a == null ? void 0 : a.data) || (r == null ? void 0 : r.data);
|
|
1383
|
+
return d != null && d.overlays ? d.overlays : [];
|
|
1384
|
+
}, [r, a]), l = M(() => [...c.filter(({
|
|
1385
|
+
enableSdkButton: d,
|
|
1386
|
+
type: u
|
|
1387
|
+
}) => u === H.GAMES || d).map((d) => ({
|
|
1388
|
+
id: d.type,
|
|
1389
|
+
onClick: () => e.openFeature(d.type),
|
|
1390
|
+
disabled: !(d.type in hs),
|
|
1391
|
+
label: d.name,
|
|
1392
|
+
icon: /* @__PURE__ */ s("img", {
|
|
1393
|
+
src: d.icon,
|
|
1394
|
+
alt: ""
|
|
1395
|
+
}),
|
|
1396
|
+
/** multiplied by 10 to add the ability to insert custom buttons between our buttons */
|
|
1397
|
+
position: d.position * 10
|
|
1398
|
+
}))].sort((d, u) => d.position - u.position), [c, e]);
|
|
1399
|
+
return /* @__PURE__ */ h(ge, {
|
|
1400
|
+
className: t,
|
|
1401
|
+
children: [l.length !== 0 && /* @__PURE__ */ s(U2, {
|
|
1402
|
+
children: [/* @__PURE__ */ s(Y, {
|
|
1403
|
+
id: "Channels",
|
|
1404
|
+
onClick: () => e.closeFeature(),
|
|
1405
|
+
label: "Channels",
|
|
1406
|
+
active: o === 0
|
|
1407
|
+
}, "Channels"), ...l.map((d) => d.id === H.GAMES ? /* @__PURE__ */ s(Y, {
|
|
1408
|
+
...d,
|
|
1409
|
+
active: d.id === o,
|
|
1410
|
+
label: "StreamLayer +",
|
|
1411
|
+
id: "featuredGroups",
|
|
1412
|
+
icon: /* @__PURE__ */ s(ys, {
|
|
1413
|
+
name: "icon-btn-feature-groups",
|
|
1414
|
+
"data-selected": d.id === o
|
|
1415
|
+
})
|
|
1416
|
+
}, d.id) : /* @__PURE__ */ s(Y, {
|
|
1417
|
+
...d,
|
|
1418
|
+
icon: void 0,
|
|
1419
|
+
active: d.id === o
|
|
1420
|
+
}, d.id))]
|
|
1421
|
+
}), !l.length && /* @__PURE__ */ s(U2, {
|
|
1422
|
+
children: [/* @__PURE__ */ s(Y, {
|
|
1423
|
+
id: "empty",
|
|
1424
|
+
label: "No Features...",
|
|
1425
|
+
active: !1,
|
|
1426
|
+
disabled: !0
|
|
1427
|
+
}, "empty")]
|
|
1428
|
+
}), /* @__PURE__ */ s("div", {
|
|
1429
|
+
ref: n
|
|
1430
|
+
})]
|
|
1431
|
+
});
|
|
1432
|
+
}), Vs = /* @__PURE__ */ i("div")({
|
|
1433
|
+
name: "InsightContainer",
|
|
1434
|
+
class: "i1pqqgpo",
|
|
1435
|
+
propsAsIs: !1
|
|
1436
|
+
}), Hs = /* @__PURE__ */ i("img")({
|
|
1437
|
+
name: "Image",
|
|
1438
|
+
class: "igj7luu",
|
|
1439
|
+
propsAsIs: !1
|
|
1440
|
+
}), zs = /* @__PURE__ */ i("div")({
|
|
1441
|
+
name: "ImageContainer",
|
|
1442
|
+
class: "i1qne9g6",
|
|
1443
|
+
propsAsIs: !1
|
|
1444
|
+
}), Ms = /* @__PURE__ */ i("div")({
|
|
1445
|
+
name: "InsightContent",
|
|
1446
|
+
class: "itpr98r",
|
|
1447
|
+
propsAsIs: !1
|
|
1448
|
+
}), Os = /* @__PURE__ */ i("h3")({
|
|
1449
|
+
name: "Title",
|
|
1450
|
+
class: "t17iaqp8",
|
|
1451
|
+
propsAsIs: !1
|
|
1452
|
+
}), Ds = /* @__PURE__ */ i("div")({
|
|
1453
|
+
name: "Description",
|
|
1454
|
+
class: "d16t3y7s",
|
|
1455
|
+
propsAsIs: !1
|
|
1456
|
+
}), Fs = /* @__PURE__ */ i("button")({
|
|
1457
|
+
name: "ActionBtn",
|
|
1458
|
+
class: "a12495er",
|
|
1459
|
+
propsAsIs: !1
|
|
1460
|
+
}), Bs = ({ video: e, image: t, imageMode: n, heading: r, body: a, action: o, controlVideo: c }) => /* @__PURE__ */ h(Vs, { children: [
|
|
1461
|
+
(e == null ? void 0 : e.url) && /* @__PURE__ */ s(l0, { source: e.url, poster: e.thumbnailUrl, controlVideo: c }),
|
|
1462
|
+
t && !(e != null && e.url) && /* @__PURE__ */ s(zs, { "data-rounded": n === He.ROUNDED, children: /* @__PURE__ */ s(Hs, { src: t, alt: r }) }),
|
|
1463
|
+
/* @__PURE__ */ h(Ms, { children: [
|
|
1464
|
+
/* @__PURE__ */ s(Os, { children: r }),
|
|
1465
|
+
/* @__PURE__ */ s(Ds, { children: a }),
|
|
1466
|
+
o && /* @__PURE__ */ s(Fs, { onClick: o, children: "View Insight" })
|
|
1467
|
+
] })
|
|
1468
|
+
] }), qs = /* @__PURE__ */ i("div")({
|
|
1469
|
+
name: "Container",
|
|
1470
|
+
class: "c1eptrjd",
|
|
1471
|
+
propsAsIs: !1
|
|
1472
|
+
}), Us = /* @__PURE__ */ i("div")({
|
|
1473
|
+
name: "CloseIconWrap",
|
|
1474
|
+
class: "crylm65",
|
|
1475
|
+
propsAsIs: !1
|
|
1476
|
+
}), Ps = () => _, Ws = /* @__PURE__ */ i(Ps())({
|
|
1477
|
+
name: "CloseIcon",
|
|
1478
|
+
class: "c9mrcz7",
|
|
1479
|
+
propsAsIs: !0
|
|
1480
|
+
}), js = /* @__PURE__ */ i("div")({
|
|
1481
|
+
name: "Header",
|
|
1482
|
+
class: "hw3lzv4",
|
|
1483
|
+
propsAsIs: !1
|
|
1484
|
+
}), Zs = () => _, Gs = /* @__PURE__ */ i(Zs())({
|
|
1485
|
+
name: "TypeIcon",
|
|
1486
|
+
class: "t1rrb3kf",
|
|
1487
|
+
propsAsIs: !0
|
|
1488
|
+
}), Qs = /* @__PURE__ */ i("span")({
|
|
1489
|
+
name: "TypeName",
|
|
1490
|
+
class: "t1ydnjov",
|
|
1491
|
+
propsAsIs: !1
|
|
1492
|
+
}), Ks = /* @__PURE__ */ i("div")({
|
|
1493
|
+
name: "Question",
|
|
1494
|
+
class: "qlf90cl",
|
|
1495
|
+
propsAsIs: !1
|
|
1496
|
+
}), Ys = /* @__PURE__ */ i("button")({
|
|
1497
|
+
name: "AnswerButton",
|
|
1498
|
+
class: "a1e0nhcl",
|
|
1499
|
+
propsAsIs: !1
|
|
1500
|
+
}), Js = /* @__PURE__ */ i("div")({
|
|
1501
|
+
name: "Container",
|
|
1502
|
+
class: "c1t4f0x4",
|
|
1503
|
+
propsAsIs: !1
|
|
1504
|
+
}), Xs = /* @__PURE__ */ i("button")({
|
|
1505
|
+
name: "ActionBtn",
|
|
1506
|
+
class: "a16w1nl6",
|
|
1507
|
+
propsAsIs: !1
|
|
1508
|
+
}), en = /* @__PURE__ */ i("div")({
|
|
1509
|
+
name: "QuoteWrap",
|
|
1510
|
+
class: "q14u54rf",
|
|
1511
|
+
propsAsIs: !1
|
|
1512
|
+
}), tn = /* @__PURE__ */ i("blockquote")({
|
|
1513
|
+
name: "Quote",
|
|
1514
|
+
class: "q1hxm6zo",
|
|
1515
|
+
propsAsIs: !1
|
|
1516
|
+
}), sn = ({ action: e, ...t }) => /* @__PURE__ */ h(Js, { children: [
|
|
1517
|
+
t.title && /* @__PURE__ */ s(en, { children: /* @__PURE__ */ s(tn, { children: t.title }) }),
|
|
1518
|
+
/* @__PURE__ */ s(ce, { ...t }),
|
|
1519
|
+
e && /* @__PURE__ */ s(Xs, { onClick: e, children: "View Insight" })
|
|
1520
|
+
] }), P2 = ({
|
|
1521
|
+
close: e,
|
|
1522
|
+
action: t,
|
|
1523
|
+
controlVideo: n,
|
|
1524
|
+
data: { questionType: r, question: a, insight: o, tweet: c }
|
|
1525
|
+
}) => {
|
|
1526
|
+
const l = de[r];
|
|
1527
|
+
return l ? /* @__PURE__ */ h(qs, { onClick: t, style: r === S.TWEET ? { paddingTop: "12px" } : {}, children: [
|
|
1528
|
+
/* @__PURE__ */ s(
|
|
1529
|
+
Us,
|
|
1530
|
+
{
|
|
1531
|
+
"data-a": "intr",
|
|
1532
|
+
onClick: (d) => {
|
|
1533
|
+
d.stopPropagation(), e && e(d);
|
|
1534
|
+
},
|
|
1535
|
+
children: /* @__PURE__ */ s(Ws, { name: "icon-cross" })
|
|
1536
|
+
}
|
|
1537
|
+
),
|
|
1538
|
+
r !== S.TWEET && /* @__PURE__ */ h(js, { children: [
|
|
1539
|
+
/* @__PURE__ */ s(
|
|
1540
|
+
Gs,
|
|
1541
|
+
{
|
|
1542
|
+
"data-type-trivia": r === S.TRIVIA,
|
|
1543
|
+
"data-type-poll": r === S.POLL,
|
|
1544
|
+
name: l.iconName
|
|
1545
|
+
}
|
|
1546
|
+
),
|
|
1547
|
+
/* @__PURE__ */ s(Qs, { children: l.label })
|
|
1548
|
+
] }),
|
|
1549
|
+
r === S.FACTOID && o && /* @__PURE__ */ s(Bs, { ...o, action: t, controlVideo: n }),
|
|
1550
|
+
r === S.TWEET && c && /* @__PURE__ */ s(sn, { ...c, action: t, controlVideo: n }),
|
|
1551
|
+
r !== S.FACTOID && r !== S.TWEET && /* @__PURE__ */ h(R, { children: [
|
|
1552
|
+
/* @__PURE__ */ s(Ks, { children: a == null ? void 0 : a.title }),
|
|
1553
|
+
/* @__PURE__ */ s(Ys, { children: "Answer" })
|
|
1554
|
+
] })
|
|
1555
|
+
] }) : null;
|
|
1556
|
+
}, P = /* @__PURE__ */ i("div")({
|
|
1557
|
+
name: "BGWrap",
|
|
1558
|
+
class: "b1dqe0sz",
|
|
1559
|
+
propsAsIs: !1
|
|
1560
|
+
}), N = /* @__PURE__ */ i("div")({
|
|
1561
|
+
name: "BGLineBase",
|
|
1562
|
+
class: "b1v6w7ni",
|
|
1563
|
+
propsAsIs: !1
|
|
1564
|
+
}), nn = () => N, rn = /* @__PURE__ */ i(nn())({
|
|
1565
|
+
name: "BGOneLineOne",
|
|
1566
|
+
class: "b2nqb1p",
|
|
1567
|
+
propsAsIs: !0
|
|
1568
|
+
}), an = () => N, on = /* @__PURE__ */ i(an())({
|
|
1569
|
+
name: "BGOneLineTwo",
|
|
1570
|
+
class: "b1xxgmbk",
|
|
1571
|
+
propsAsIs: !0
|
|
1572
|
+
}), ln = () => N, cn = /* @__PURE__ */ i(ln())({
|
|
1573
|
+
name: "BGOneLineThree",
|
|
1574
|
+
class: "b63lwcb",
|
|
1575
|
+
propsAsIs: !0
|
|
1576
|
+
}), dn = () => N, W2 = /* @__PURE__ */ i(dn())({
|
|
1577
|
+
name: "BGTwoLineOne",
|
|
1578
|
+
class: "b2iah4",
|
|
1579
|
+
propsAsIs: !0
|
|
1580
|
+
}), pn = () => N, j2 = /* @__PURE__ */ i(pn())({
|
|
1581
|
+
name: "BGTwoLineTwo",
|
|
1582
|
+
class: "b1xezvf6",
|
|
1583
|
+
propsAsIs: !0
|
|
1584
|
+
}), hn = () => N, Z2 = /* @__PURE__ */ i(hn())({
|
|
1585
|
+
name: "BGTwoLineThree",
|
|
1586
|
+
class: "b1jz1hg0",
|
|
1587
|
+
propsAsIs: !0
|
|
1588
|
+
}), un = () => N, G2 = /* @__PURE__ */ i(un())({
|
|
1589
|
+
name: "BGThreeLineOne",
|
|
1590
|
+
class: "b18ho1tk",
|
|
1591
|
+
propsAsIs: !0
|
|
1592
|
+
}), mn = () => N, Q2 = /* @__PURE__ */ i(mn())({
|
|
1593
|
+
name: "BGThreeLineTwo",
|
|
1594
|
+
class: "b14uvjfm",
|
|
1595
|
+
propsAsIs: !0
|
|
1596
|
+
}), vn = () => N, K2 = /* @__PURE__ */ i(vn())({
|
|
1597
|
+
name: "BGThreeLineThree",
|
|
1598
|
+
class: "b11c3ns7",
|
|
1599
|
+
propsAsIs: !0
|
|
1600
|
+
}), Cn = () => N, Y2 = /* @__PURE__ */ i(Cn())({
|
|
1601
|
+
name: "BGThreeLineFour",
|
|
1602
|
+
class: "b1bqhhet",
|
|
1603
|
+
propsAsIs: !0
|
|
1604
|
+
}), fn = () => N, gn = /* @__PURE__ */ i(fn())({
|
|
1605
|
+
name: "BGFourLineOne",
|
|
1606
|
+
class: "b1xyzi7o",
|
|
1607
|
+
propsAsIs: !0
|
|
1608
|
+
}), In = () => N, bn = /* @__PURE__ */ i(In())({
|
|
1609
|
+
name: "BGFourLineTwo",
|
|
1610
|
+
class: "byo0rup",
|
|
1611
|
+
propsAsIs: !0
|
|
1612
|
+
}), $n = () => N, An = /* @__PURE__ */ i($n())({
|
|
1613
|
+
name: "BGFourLineThree",
|
|
1614
|
+
class: "b1oyiqgv",
|
|
1615
|
+
propsAsIs: !0
|
|
1616
|
+
}), yn = () => N, wn = /* @__PURE__ */ i(yn())({
|
|
1617
|
+
name: "BGFourLineFour",
|
|
1618
|
+
class: "bx3ddqw",
|
|
1619
|
+
propsAsIs: !0
|
|
1620
|
+
}), Ln = ({ step: e, correct: t }) => /* @__PURE__ */ h(R, { children: [
|
|
1621
|
+
/* @__PURE__ */ h(P, { "data-active": e === 1, "data-first-screen": "true", children: [
|
|
1622
|
+
/* @__PURE__ */ s(rn, {}),
|
|
1623
|
+
/* @__PURE__ */ s(on, {}),
|
|
1624
|
+
/* @__PURE__ */ s(cn, {})
|
|
1625
|
+
] }),
|
|
1626
|
+
/* @__PURE__ */ h(P, { "data-active": e === 2, children: [
|
|
1627
|
+
/* @__PURE__ */ s(W2, {}),
|
|
1628
|
+
/* @__PURE__ */ s(j2, {}),
|
|
1629
|
+
/* @__PURE__ */ s(Z2, {})
|
|
1630
|
+
] }),
|
|
1631
|
+
/* @__PURE__ */ h(P, { "data-active": e === 3, children: [
|
|
1632
|
+
/* @__PURE__ */ s(W2, {}),
|
|
1633
|
+
/* @__PURE__ */ s(j2, {}),
|
|
1634
|
+
/* @__PURE__ */ s(Z2, {})
|
|
1635
|
+
] }),
|
|
1636
|
+
t ? /* @__PURE__ */ h(R, { children: [
|
|
1637
|
+
/* @__PURE__ */ h(P, { "data-active": e === 4, "data-correct": "true", children: [
|
|
1638
|
+
/* @__PURE__ */ s(G2, {}),
|
|
1639
|
+
/* @__PURE__ */ s(Q2, {}),
|
|
1640
|
+
/* @__PURE__ */ s(K2, {}),
|
|
1641
|
+
/* @__PURE__ */ s(Y2, {})
|
|
1642
|
+
] }),
|
|
1643
|
+
/* @__PURE__ */ h(P, { "data-active": e === 5, "data-correct": "true", children: [
|
|
1644
|
+
/* @__PURE__ */ s(G2, {}),
|
|
1645
|
+
/* @__PURE__ */ s(Q2, {}),
|
|
1646
|
+
/* @__PURE__ */ s(K2, {}),
|
|
1647
|
+
/* @__PURE__ */ s(Y2, {})
|
|
1648
|
+
] })
|
|
1649
|
+
] }) : /* @__PURE__ */ h(P, { "data-active": e === 4, "data-correct": "false", children: [
|
|
1650
|
+
/* @__PURE__ */ s(gn, {}),
|
|
1651
|
+
/* @__PURE__ */ s(bn, {}),
|
|
1652
|
+
/* @__PURE__ */ s(An, {}),
|
|
1653
|
+
/* @__PURE__ */ s(wn, {})
|
|
1654
|
+
] })
|
|
1655
|
+
] }), kn = 118, _n = () => i2, Tn = /* @__PURE__ */ i(_n())({
|
|
1656
|
+
name: "Container",
|
|
1657
|
+
class: "c10131zw",
|
|
1658
|
+
propsAsIs: !0
|
|
1659
|
+
}), Sn = /* @__PURE__ */ i("div")({
|
|
1660
|
+
name: "InnerContainer",
|
|
1661
|
+
class: "ir6k2eo",
|
|
1662
|
+
propsAsIs: !1
|
|
1663
|
+
}), q = /* @__PURE__ */ i("div")({
|
|
1664
|
+
name: "Content",
|
|
1665
|
+
class: "c1hwoq9l",
|
|
1666
|
+
propsAsIs: !1
|
|
1667
|
+
}), Z = /* @__PURE__ */ i("div")({
|
|
1668
|
+
name: "Title",
|
|
1669
|
+
class: "t4ujo4g",
|
|
1670
|
+
propsAsIs: !1
|
|
1671
|
+
}), Nn = () => Z, xn = /* @__PURE__ */ i(Nn())({
|
|
1672
|
+
name: "PointsTitle",
|
|
1673
|
+
class: "p1pjil1h",
|
|
1674
|
+
propsAsIs: !0
|
|
1675
|
+
}), J = /* @__PURE__ */ i("div")({
|
|
1676
|
+
name: "Subtitle",
|
|
1677
|
+
class: "s1iorwr9",
|
|
1678
|
+
propsAsIs: !1
|
|
1679
|
+
}), J2 = /* @__PURE__ */ i("div")({
|
|
1680
|
+
name: "SubtitleFG",
|
|
1681
|
+
class: "s51sv9d",
|
|
1682
|
+
propsAsIs: !1
|
|
1683
|
+
}), X = /* @__PURE__ */ i("div")({
|
|
1684
|
+
name: "AnswerText",
|
|
1685
|
+
class: "a1lbk2ye",
|
|
1686
|
+
propsAsIs: !1
|
|
1687
|
+
}), Rn = () => _, Ie = /* @__PURE__ */ i(Rn())({
|
|
1688
|
+
name: "FeedbackIcon",
|
|
1689
|
+
class: "frcvk3t",
|
|
1690
|
+
propsAsIs: !0
|
|
1691
|
+
}), En = () => Ie, X2 = /* @__PURE__ */ i(En())({
|
|
1692
|
+
name: "FeedbackIconCorrect",
|
|
1693
|
+
class: "f33p82r",
|
|
1694
|
+
propsAsIs: !0
|
|
1695
|
+
}), Vn = () => Ie, Hn = /* @__PURE__ */ i(Vn())({
|
|
1696
|
+
name: "FeedbackIconIncorrect",
|
|
1697
|
+
class: "f12r9net",
|
|
1698
|
+
propsAsIs: !0
|
|
1699
|
+
}), ee = /* @__PURE__ */ i("div")({
|
|
1700
|
+
name: "CloseIconWrap",
|
|
1701
|
+
class: "c1fw6699",
|
|
1702
|
+
propsAsIs: !1
|
|
1703
|
+
}), zn = () => _, te = /* @__PURE__ */ i(zn())({
|
|
1704
|
+
name: "CloseIcon",
|
|
1705
|
+
class: "c115o126",
|
|
1706
|
+
propsAsIs: !0
|
|
1707
|
+
}), Mn = "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", On = "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", Dn = (e, t, n) => e === t ? "translateY(0px)" : e > t ? `translateY(${n}px)` : "translateY(-100%)", Fn = ({ close: e, votedAnswer: t, mastersApp: n, correct: r, correctAnswerTitle: a, questionTitle: o, saveHeight: c, style: l, hiding: d }) => {
|
|
1708
|
+
const [u, v] = L(1), m = V({});
|
|
1709
|
+
y(() => {
|
|
1710
|
+
const I = setInterval(() => {
|
|
1711
|
+
v((f) => r && f > 4 || !r && f > 3 ? f : ++f);
|
|
1712
|
+
}, 3e3);
|
|
1713
|
+
return () => clearInterval(I);
|
|
1714
|
+
}, [r]), y(() => {
|
|
1715
|
+
var I, f;
|
|
1716
|
+
m.current[u] && c(((f = (I = m.current[u]) == null ? void 0 : I.getBoundingClientRect()) == null ? void 0 : f.height) || kn);
|
|
1717
|
+
}, [u, c]);
|
|
1718
|
+
const p = (I) => (f) => {
|
|
1719
|
+
m.current && (m.current[I] = f);
|
|
1720
|
+
}, C = (I) => ({ transform: Dn(I, u, l.height) }), g = { ...l };
|
|
1721
|
+
return n && g.height && typeof g.height == "number" && (g.height += 32), /* @__PURE__ */ s(Tn, { style: l.height ? g : { ...l, paddingTop: 0, paddingBottom: 0 }, hiding: d, children: /* @__PURE__ */ h(
|
|
1722
|
+
Sn,
|
|
1723
|
+
{
|
|
1724
|
+
style: {
|
|
1725
|
+
height: l.height,
|
|
1726
|
+
minHeight: l.height,
|
|
1727
|
+
backgroundColor: u > 3 ? r ? "var(--color-sdk-prediction-result-success-bg)" : "var(--color-sdk-prediction-result-incorrect-bg)" : "var(--color-primary-1)"
|
|
1728
|
+
},
|
|
1729
|
+
children: [
|
|
1730
|
+
/* @__PURE__ */ s(Ln, { step: u, correct: r }),
|
|
1731
|
+
n && /* @__PURE__ */ h(q, { ref: p(1), style: C(1), children: [
|
|
1732
|
+
/* @__PURE__ */ s("img", { alt: "sponsor-logo", src: Mn }),
|
|
1733
|
+
/* @__PURE__ */ s(J2, { children: "Featured Groups +" })
|
|
1734
|
+
] }),
|
|
1735
|
+
!n && /* @__PURE__ */ s(q, { ref: p(1), style: C(1), children: /* @__PURE__ */ s("img", { alt: "sponsor-logo", src: On }) }),
|
|
1736
|
+
/* @__PURE__ */ h(q, { ref: p(2), style: C(2), children: [
|
|
1737
|
+
/* @__PURE__ */ s(Z, { children: "Prediction results are in!" }),
|
|
1738
|
+
n && /* @__PURE__ */ s(J2, { children: "Featured Groups +" })
|
|
1739
|
+
] }),
|
|
1740
|
+
/* @__PURE__ */ h(q, { ref: p(3), style: C(3), children: [
|
|
1741
|
+
/* @__PURE__ */ s(Z, { children: o }),
|
|
1742
|
+
/* @__PURE__ */ s(J, { children: /* @__PURE__ */ h(X, { children: [
|
|
1743
|
+
/* @__PURE__ */ s("span", { children: "Your Pick:" }),
|
|
1744
|
+
" ",
|
|
1745
|
+
t == null ? void 0 : t.title
|
|
1746
|
+
] }) })
|
|
1747
|
+
] }),
|
|
1748
|
+
r ? /* @__PURE__ */ h(R, { children: [
|
|
1749
|
+
/* @__PURE__ */ h(
|
|
1750
|
+
q,
|
|
1751
|
+
{
|
|
1752
|
+
ref: p(4),
|
|
1753
|
+
style: { ...C(4), color: "var(--color-sdk-prediction-result-success-text)" },
|
|
1754
|
+
children: [
|
|
1755
|
+
/* @__PURE__ */ h(Z, { children: [
|
|
1756
|
+
"Congratulations!",
|
|
1757
|
+
/* @__PURE__ */ s("br", {}),
|
|
1758
|
+
"You answered correctly."
|
|
1759
|
+
] }),
|
|
1760
|
+
/* @__PURE__ */ h(J, { children: [
|
|
1761
|
+
/* @__PURE__ */ s(X2, { name: "selected" }),
|
|
1762
|
+
/* @__PURE__ */ h(X, { children: [
|
|
1763
|
+
/* @__PURE__ */ s("span", { children: "Your Pick:" }),
|
|
1764
|
+
" ",
|
|
1765
|
+
t == null ? void 0 : t.title
|
|
1766
|
+
] })
|
|
1767
|
+
] })
|
|
1768
|
+
]
|
|
1769
|
+
}
|
|
1770
|
+
),
|
|
1771
|
+
/* @__PURE__ */ h(
|
|
1772
|
+
q,
|
|
1773
|
+
{
|
|
1774
|
+
ref: p(5),
|
|
1775
|
+
style: { ...C(5), color: "var(--color-sdk-prediction-result-success-text)" },
|
|
1776
|
+
children: [
|
|
1777
|
+
/* @__PURE__ */ s(xn, { children: u === 5 && /* @__PURE__ */ s(c0, { delay: 0.5, prefix: "+", suffix: " points", value: t == null ? void 0 : t.points }) }),
|
|
1778
|
+
/* @__PURE__ */ h(J, { children: [
|
|
1779
|
+
/* @__PURE__ */ s(X2, { name: "selected" }),
|
|
1780
|
+
/* @__PURE__ */ h(X, { children: [
|
|
1781
|
+
/* @__PURE__ */ s("span", { children: "Your Pick:" }),
|
|
1782
|
+
" ",
|
|
1783
|
+
t == null ? void 0 : t.title
|
|
1784
|
+
] })
|
|
1785
|
+
] }),
|
|
1786
|
+
/* @__PURE__ */ s(ee, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ s(te, { name: "icon-cross" }) })
|
|
1787
|
+
]
|
|
1788
|
+
}
|
|
1789
|
+
)
|
|
1790
|
+
] }) : /* @__PURE__ */ h(q, { ref: p(4), style: C(4), children: [
|
|
1791
|
+
/* @__PURE__ */ h(Z, { style: { color: "var(--color-sdk-prediction-result-error-title)" }, children: [
|
|
1792
|
+
"Better luck next time!",
|
|
1793
|
+
/* @__PURE__ */ s("br", {}),
|
|
1794
|
+
"Correct: ",
|
|
1795
|
+
a,
|
|
1796
|
+
"."
|
|
1797
|
+
] }),
|
|
1798
|
+
/* @__PURE__ */ h(J, { style: { color: "var(--color-sdk-prediction-result-error-subtitle)" }, children: [
|
|
1799
|
+
/* @__PURE__ */ s(Hn, { name: "circleClose" }),
|
|
1800
|
+
/* @__PURE__ */ h(X, { children: [
|
|
1801
|
+
/* @__PURE__ */ s("span", { children: "Your Pick:" }),
|
|
1802
|
+
" ",
|
|
1803
|
+
t == null ? void 0 : t.title
|
|
1804
|
+
] })
|
|
1805
|
+
] }),
|
|
1806
|
+
/* @__PURE__ */ s(ee, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ s(te, { name: "icon-cross" }) })
|
|
1807
|
+
] })
|
|
1808
|
+
]
|
|
1809
|
+
}
|
|
1810
|
+
) });
|
|
1811
|
+
}, Bn = (e) => {
|
|
1812
|
+
const [t, n] = L(!1), [r, a] = L(!1), o = V(null), c = U(() => {
|
|
1813
|
+
a(!0), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
1814
|
+
a(!1);
|
|
1815
|
+
}, 1e3);
|
|
1816
|
+
}, []), l = U(async (d) => {
|
|
1817
|
+
n(!0);
|
|
1818
|
+
const u = d.map(
|
|
1819
|
+
(v) => new Promise((m, p) => {
|
|
1820
|
+
const C = new Image();
|
|
1821
|
+
C.onload = () => m(v), C.onerror = () => p(), C.src = v;
|
|
1822
|
+
})
|
|
1823
|
+
);
|
|
1824
|
+
await Promise.allSettled(u), n(!1);
|
|
1825
|
+
}, []);
|
|
1826
|
+
return y(() => {
|
|
1827
|
+
e && (c(), l(e));
|
|
1828
|
+
}, [e, c, l]), { loading: t, throttled: r };
|
|
1829
|
+
}, qn = /* @__PURE__ */ i("div")({
|
|
1830
|
+
name: "Container",
|
|
1831
|
+
class: "cl51m2q",
|
|
1832
|
+
propsAsIs: !1
|
|
1833
|
+
}), Un = /* @__PURE__ */ i("img")({
|
|
1834
|
+
name: "Avatar",
|
|
1835
|
+
class: "a2yhhhr",
|
|
1836
|
+
propsAsIs: !1
|
|
1837
|
+
}), Pn = /* @__PURE__ */ i("div")({
|
|
1838
|
+
name: "AvatarPlaceholder",
|
|
1839
|
+
class: "a1dtxxlr",
|
|
1840
|
+
propsAsIs: !1
|
|
1841
|
+
}), Wn = /* @__PURE__ */ i("div")({
|
|
1842
|
+
name: "Content",
|
|
1843
|
+
class: "c12clm3w",
|
|
1844
|
+
propsAsIs: !1
|
|
1845
|
+
}), jn = /* @__PURE__ */ i("span")({
|
|
1846
|
+
name: "Name",
|
|
1847
|
+
class: "n14lctn7",
|
|
1848
|
+
propsAsIs: !1
|
|
1849
|
+
}), Zn = ({ avatar: e, name: t }) => /* @__PURE__ */ h(qn, { children: [
|
|
1850
|
+
e && /* @__PURE__ */ s(Un, { src: e }),
|
|
1851
|
+
!e && /* @__PURE__ */ s(Pn, { children: m2(t || "") }),
|
|
1852
|
+
/* @__PURE__ */ h(Wn, { children: [
|
|
1853
|
+
/* @__PURE__ */ h(jn, { children: [
|
|
1854
|
+
t,
|
|
1855
|
+
" "
|
|
1856
|
+
] }),
|
|
1857
|
+
"is waiting for you!"
|
|
1858
|
+
] })
|
|
1859
|
+
] }), Gn = /* @__PURE__ */ i("div")({
|
|
1860
|
+
name: "Container",
|
|
1861
|
+
class: "c1htq1lb",
|
|
1862
|
+
propsAsIs: !1
|
|
1863
|
+
}), Qn = /* @__PURE__ */ i("div")({
|
|
1864
|
+
name: "Graphic",
|
|
1865
|
+
class: "gjyzpp7",
|
|
1866
|
+
propsAsIs: !1
|
|
1867
|
+
}), Kn = /* @__PURE__ */ i("img")({
|
|
1868
|
+
name: "GraphicImage",
|
|
1869
|
+
class: "g16mldgz",
|
|
1870
|
+
propsAsIs: !1
|
|
1871
|
+
}), Yn = /* @__PURE__ */ i("div")({
|
|
1872
|
+
name: "Headline",
|
|
1873
|
+
class: "h69js65",
|
|
1874
|
+
propsAsIs: !1
|
|
1875
|
+
}), Jn = /* @__PURE__ */ i("div")({
|
|
1876
|
+
name: "TaglineContainer",
|
|
1877
|
+
class: "tmm7qmo",
|
|
1878
|
+
propsAsIs: !1
|
|
1879
|
+
}), Xn = /* @__PURE__ */ i("div")({
|
|
1880
|
+
name: "Tagline",
|
|
1881
|
+
class: "t17knuw2",
|
|
1882
|
+
propsAsIs: !1
|
|
1883
|
+
}), ei = /* @__PURE__ */ i("div")({
|
|
1884
|
+
name: "Content",
|
|
1885
|
+
class: "c1b74psg",
|
|
1886
|
+
propsAsIs: !1
|
|
1887
|
+
}), ti = /* @__PURE__ */ i("div")({
|
|
1888
|
+
name: "StepsContainer",
|
|
1889
|
+
class: "s1y99ug7",
|
|
1890
|
+
propsAsIs: !1
|
|
1891
|
+
}), si = /* @__PURE__ */ i("span")({
|
|
1892
|
+
name: "StepIndicator",
|
|
1893
|
+
class: "sgf3v5n",
|
|
1894
|
+
propsAsIs: !1
|
|
1895
|
+
}), ni = /* @__PURE__ */ i("div")({
|
|
1896
|
+
name: "InvitingUserWrap",
|
|
1897
|
+
class: "i1sj6gn8",
|
|
1898
|
+
propsAsIs: !1
|
|
1899
|
+
}), ii = ({
|
|
1900
|
+
loading: e,
|
|
1901
|
+
steps: t,
|
|
1902
|
+
currentStep: n,
|
|
1903
|
+
inviterName: r
|
|
1904
|
+
}) => {
|
|
1905
|
+
const { headline: a, tagline: o } = t[n];
|
|
1906
|
+
return /* @__PURE__ */ h(Gn, { children: [
|
|
1907
|
+
o && /* @__PURE__ */ s(Jn, { children: /* @__PURE__ */ s(O, { loading: e, children: /* @__PURE__ */ s(Xn, { children: o }) }) }),
|
|
1908
|
+
/* @__PURE__ */ h(ei, { "data-welcome-screen": n === 0, children: [
|
|
1909
|
+
/* @__PURE__ */ s(Qn, { children: /* @__PURE__ */ s(O, { loading: e, children: t.map(({ graphicSrc: c }, l) => /* @__PURE__ */ s(Kn, { src: c, "data-active": n === l })) }) }),
|
|
1910
|
+
a && /* @__PURE__ */ s(O, { loading: e, children: /* @__PURE__ */ s(Yn, { children: a }) })
|
|
1911
|
+
] }),
|
|
1912
|
+
r && n === 0 && /* @__PURE__ */ s(ni, { children: /* @__PURE__ */ s(Zn, { name: r }) }),
|
|
1913
|
+
/* @__PURE__ */ s(ti, { style: e ? { visibility: "hidden" } : {}, children: Array.from({ length: t.length }).map((c, l) => /* @__PURE__ */ s(si, { "data-active": n === l }, l)) })
|
|
1914
|
+
] });
|
|
1915
|
+
}, ri = /* @__PURE__ */ i("div")({
|
|
1916
|
+
name: "Container",
|
|
1917
|
+
class: "cm0bev",
|
|
1918
|
+
propsAsIs: !1
|
|
1919
|
+
}), ai = /* @__PURE__ */ i("div")({
|
|
1920
|
+
name: "Content",
|
|
1921
|
+
class: "ce7x737",
|
|
1922
|
+
propsAsIs: !1
|
|
1923
|
+
}), oi = /* @__PURE__ */ i("div")({
|
|
1924
|
+
name: "Title",
|
|
1925
|
+
class: "tc2tor6",
|
|
1926
|
+
propsAsIs: !1
|
|
1927
|
+
}), li = /* @__PURE__ */ i("div")({
|
|
1928
|
+
name: "RulesList",
|
|
1929
|
+
class: "r1k5klql",
|
|
1930
|
+
propsAsIs: !1
|
|
1931
|
+
}), ci = /* @__PURE__ */ i("div")({
|
|
1932
|
+
name: "RulesItem",
|
|
1933
|
+
class: "r1tf3ft2",
|
|
1934
|
+
propsAsIs: !1
|
|
1935
|
+
}), di = /* @__PURE__ */ i("div")({
|
|
1936
|
+
name: "RuleIcon",
|
|
1937
|
+
class: "rwpvg1k",
|
|
1938
|
+
propsAsIs: !1
|
|
1939
|
+
}), pi = /* @__PURE__ */ i("div")({
|
|
1940
|
+
name: "RuleText",
|
|
1941
|
+
class: "rbxiag0",
|
|
1942
|
+
propsAsIs: !1
|
|
1943
|
+
}), hi = /* @__PURE__ */ i("button")({
|
|
1944
|
+
name: "TermsButton",
|
|
1945
|
+
class: "t6cyrry",
|
|
1946
|
+
propsAsIs: !1
|
|
1947
|
+
}), ui = ({
|
|
1948
|
+
rules: e,
|
|
1949
|
+
rulesTitle: t,
|
|
1950
|
+
termsText: n,
|
|
1951
|
+
primaryColor: r,
|
|
1952
|
+
openTerms: a
|
|
1953
|
+
}) => /* @__PURE__ */ h(ri, { children: [
|
|
1954
|
+
/* @__PURE__ */ h(ai, { children: [
|
|
1955
|
+
/* @__PURE__ */ s(oi, { children: t }),
|
|
1956
|
+
/* @__PURE__ */ s(li, { children: e == null ? void 0 : e.map(({ label: o, icon: c }, l) => /* @__PURE__ */ h(ci, { children: [
|
|
1957
|
+
c && /* @__PURE__ */ s(di, { style: { backgroundColor: r }, children: /* @__PURE__ */ s(_, { name: c, "data-icon": c }) }),
|
|
1958
|
+
/* @__PURE__ */ s(pi, { children: o })
|
|
1959
|
+
] }, l)) })
|
|
1960
|
+
] }),
|
|
1961
|
+
n && /* @__PURE__ */ s(hi, { "data-a": "intr", onClick: a, children: "See Terms and Conditions" })
|
|
1962
|
+
] }), mi = /* @__PURE__ */ i("div")({
|
|
1963
|
+
name: "Container",
|
|
1964
|
+
class: "cj0g35h",
|
|
1965
|
+
propsAsIs: !1
|
|
1966
|
+
}), vi = /* @__PURE__ */ i("div")({
|
|
1967
|
+
name: "Content",
|
|
1968
|
+
class: "c1xkhrbn",
|
|
1969
|
+
propsAsIs: !1
|
|
1970
|
+
}), Ci = /* @__PURE__ */ i("div")({
|
|
1971
|
+
name: "Title",
|
|
1972
|
+
class: "tifzb8b",
|
|
1973
|
+
propsAsIs: !1
|
|
1974
|
+
}), fi = /* @__PURE__ */ i("div")({
|
|
1975
|
+
name: "ScrollingText",
|
|
1976
|
+
class: "stduw5c",
|
|
1977
|
+
propsAsIs: !1
|
|
1978
|
+
}), gi = ({ termsTitle: e, termsText: t }) => /* @__PURE__ */ s(mi, { children: /* @__PURE__ */ h(vi, { children: [
|
|
1979
|
+
/* @__PURE__ */ s(Ci, { children: e }),
|
|
1980
|
+
/* @__PURE__ */ s(fi, { children: t })
|
|
1981
|
+
] }) }), Ii = /* @__PURE__ */ i("button")({
|
|
1982
|
+
name: "SButton",
|
|
1983
|
+
class: "s1nve60q",
|
|
1984
|
+
propsAsIs: !1
|
|
1985
|
+
}), bi = /* @__PURE__ */ i("span")({
|
|
1986
|
+
name: "ButtonLabel",
|
|
1987
|
+
class: "b1xoswwx",
|
|
1988
|
+
propsAsIs: !1
|
|
1989
|
+
}), $i = ({ disabled: e, variant: t = "primary", onClick: n, children: r, ...a }) => /* @__PURE__ */ s(Ii, { "data-a": "intr", onClick: n, disabled: e, "data-variant": t, ...a, children: /* @__PURE__ */ s(bi, { children: r }) }), Ai = /* @__PURE__ */ i("div")({
|
|
1990
|
+
name: "Container",
|
|
1991
|
+
class: "c18uddbs",
|
|
1992
|
+
propsAsIs: !1
|
|
1993
|
+
}), yi = /* @__PURE__ */ i("div")({
|
|
1994
|
+
name: "Content",
|
|
1995
|
+
class: "cvcfjf6",
|
|
1996
|
+
propsAsIs: !1
|
|
1997
|
+
}), wi = /* @__PURE__ */ i("div")({
|
|
1998
|
+
name: "OnboardingHeader",
|
|
1999
|
+
class: "o1ie27lw",
|
|
2000
|
+
propsAsIs: !1
|
|
2001
|
+
}), Li = /* @__PURE__ */ i("button")({
|
|
2002
|
+
name: "CloseBtn",
|
|
2003
|
+
class: "c15cjkwi",
|
|
2004
|
+
propsAsIs: !1
|
|
2005
|
+
}), ki = () => _, _i = /* @__PURE__ */ i(ki())({
|
|
2006
|
+
name: "IconClose",
|
|
2007
|
+
class: "i1mavjt2",
|
|
2008
|
+
propsAsIs: !0
|
|
2009
|
+
}), Ti = /* @__PURE__ */ i("div")({
|
|
2010
|
+
name: "OnboardingFooter",
|
|
2011
|
+
class: "o1x0dyzv",
|
|
2012
|
+
propsAsIs: !1
|
|
2013
|
+
}), Si = () => $i, Ni = /* @__PURE__ */ i(Si())({
|
|
2014
|
+
name: "OnboardingActionBtn",
|
|
2015
|
+
class: "o1jfi9c3",
|
|
2016
|
+
propsAsIs: !0
|
|
2017
|
+
}), W = {
|
|
2018
|
+
steps: !1,
|
|
2019
|
+
rules: !1,
|
|
2020
|
+
inviteCard: !1
|
|
2021
|
+
}, xi = ({
|
|
2022
|
+
gamification: e,
|
|
2023
|
+
steps: t,
|
|
2024
|
+
rules: n,
|
|
2025
|
+
rulesBtnLabel: r,
|
|
2026
|
+
rulesTitle: a,
|
|
2027
|
+
termsTitle: o,
|
|
2028
|
+
termsText: c,
|
|
2029
|
+
primaryColor: l,
|
|
2030
|
+
inviteLink: d,
|
|
2031
|
+
inviteCardTitle: u,
|
|
2032
|
+
inviteCardSubtext: v,
|
|
2033
|
+
inviteCardBtnLabel: m,
|
|
2034
|
+
loading: p,
|
|
2035
|
+
inviterName: C,
|
|
2036
|
+
sdk: g,
|
|
2037
|
+
onClose: I
|
|
2038
|
+
}) => {
|
|
2039
|
+
const [f, $] = L(0), [b, k] = L(!1), [w, x] = L(W);
|
|
2040
|
+
y(() => {
|
|
2041
|
+
t != null && t.length ? x({ ...W, steps: !0 }) : n != null && n.length ? x({ ...W, rules: !0 }) : x({ ...W, inviteCard: !0 });
|
|
2042
|
+
}, []);
|
|
2043
|
+
const $e = M(() => w.steps && f === 0 ? "Continue" : w.rules ? b || !r ? "Got it" : r : w.inviteCard ? m || "Play Now" : "Next", [w, f, b, r, m]), Ae = U(() => {
|
|
2044
|
+
t != null && t.length && f < t.length - 1 ? $((r2) => ++r2) : n != null && n.length && w.steps ? x({ ...W, rules: !0 }) : w.rules && x({ ...W, inviteCard: !0 });
|
|
2045
|
+
}, [f, t == null ? void 0 : t.length, n == null ? void 0 : n.length, w, $, x]), ye = async () => {
|
|
2046
|
+
w.inviteCard ? await e.onboardingStatus.submitInplay() : w.rules && b ? k(!1) : Ae();
|
|
2047
|
+
};
|
|
2048
|
+
return y(() => {
|
|
2049
|
+
!p && C && g.inviteDisplayed();
|
|
2050
|
+
}, [p, C, g]), /* @__PURE__ */ s(at, { children: ({ width: r2, height: C2 }) => /* @__PURE__ */ h(Ai, { style: { width: r2, height: C2, maxHeight: C2 }, children: [
|
|
2051
|
+
/* @__PURE__ */ s(wi, { children: /* @__PURE__ */ s(Li, { "data-a": "intr", onClick: I, children: /* @__PURE__ */ s(_i, { name: "icon-close-btn-gray" }) }) }),
|
|
2052
|
+
/* @__PURE__ */ h(yi, { children: [
|
|
2053
|
+
w.steps && (t == null ? void 0 : t.length) && /* @__PURE__ */ s(
|
|
2054
|
+
ii,
|
|
2055
|
+
{
|
|
2056
|
+
loading: p,
|
|
2057
|
+
steps: t,
|
|
2058
|
+
currentStep: f,
|
|
2059
|
+
inviterName: C
|
|
2060
|
+
}
|
|
2061
|
+
),
|
|
2062
|
+
w.rules && !b && /* @__PURE__ */ s(
|
|
2063
|
+
ui,
|
|
2064
|
+
{
|
|
2065
|
+
rules: n,
|
|
2066
|
+
rulesTitle: a,
|
|
2067
|
+
termsText: c,
|
|
2068
|
+
primaryColor: l,
|
|
2069
|
+
openTerms: () => k(!0)
|
|
2070
|
+
}
|
|
2071
|
+
),
|
|
2072
|
+
w.rules && b && /* @__PURE__ */ s(gi, { termsTitle: o, termsText: c }),
|
|
2073
|
+
w.inviteCard && /* @__PURE__ */ s(
|
|
2074
|
+
fe,
|
|
2075
|
+
{
|
|
2076
|
+
inviteLink: d,
|
|
2077
|
+
inviteCardTitle: u,
|
|
2078
|
+
inviteCardSubtext: v,
|
|
2079
|
+
primaryColor: l
|
|
2080
|
+
}
|
|
2081
|
+
)
|
|
2082
|
+
] }),
|
|
2083
|
+
/* @__PURE__ */ s(Ti, { children: /* @__PURE__ */ s(O, { loading: p, style: { width: "100%" }, children: /* @__PURE__ */ s(Ni, { "data-a": "intr", onClick: ye, children: $e }) }) })
|
|
2084
|
+
] }) });
|
|
2085
|
+
}, Ri = /* @__PURE__ */ i("div")({
|
|
2086
|
+
name: "Container",
|
|
2087
|
+
class: "c1qjj4d4",
|
|
2088
|
+
propsAsIs: !1
|
|
2089
|
+
}), Ei = /* @__PURE__ */ i("div")({
|
|
2090
|
+
name: "CloseIconWrap",
|
|
2091
|
+
class: "c1lg6b8a",
|
|
2092
|
+
propsAsIs: !1
|
|
2093
|
+
}), Vi = () => _, Hi = /* @__PURE__ */ i(Vi())({
|
|
2094
|
+
name: "CloseIcon",
|
|
2095
|
+
class: "c159el66",
|
|
2096
|
+
propsAsIs: !0
|
|
2097
|
+
}), zi = /* @__PURE__ */ i("div")({
|
|
2098
|
+
name: "Title",
|
|
2099
|
+
class: "t16xmufv",
|
|
2100
|
+
propsAsIs: !1
|
|
2101
|
+
}), Mi = /* @__PURE__ */ i("img")({
|
|
2102
|
+
name: "SponsorLogo",
|
|
2103
|
+
class: "s83lc21",
|
|
2104
|
+
propsAsIs: !1
|
|
2105
|
+
}), Oi = /* @__PURE__ */ i("div")({
|
|
2106
|
+
name: "PresentsTitle",
|
|
2107
|
+
class: "p1p7igia",
|
|
2108
|
+
propsAsIs: !1
|
|
2109
|
+
}), Di = /* @__PURE__ */ i("div")({
|
|
2110
|
+
name: "Subtitle",
|
|
2111
|
+
class: "s1eftsbu",
|
|
2112
|
+
propsAsIs: !1
|
|
2113
|
+
}), Fi = /* @__PURE__ */ i("div")({
|
|
2114
|
+
name: "Description",
|
|
2115
|
+
class: "d8uezec",
|
|
2116
|
+
propsAsIs: !1
|
|
2117
|
+
}), Bi = /* @__PURE__ */ i("button")({
|
|
2118
|
+
name: "ActionButton",
|
|
2119
|
+
class: "a1h1bk90",
|
|
2120
|
+
propsAsIs: !1
|
|
2121
|
+
}), se = ({ close: e, action: t, onboarding: n }) => {
|
|
2122
|
+
var r, a, o, c, l, d, u, v;
|
|
2123
|
+
return /* @__PURE__ */ h(Ri, { children: [
|
|
2124
|
+
/* @__PURE__ */ s(Ei, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ s(Hi, { name: "icon-cross" }) }),
|
|
2125
|
+
((a = (r = n == null ? void 0 : n.titleCard) == null ? void 0 : r.media) == null ? void 0 : a.sponsorLogo) && /* @__PURE__ */ h(zi, { children: [
|
|
2126
|
+
/* @__PURE__ */ s(Mi, { alt: "sponsor-logo", src: (c = (o = n == null ? void 0 : n.titleCard) == null ? void 0 : o.media) == null ? void 0 : c.sponsorLogo }),
|
|
2127
|
+
/* @__PURE__ */ s(Oi, { children: "PRESENTS" })
|
|
2128
|
+
] }),
|
|
2129
|
+
((l = n == null ? void 0 : n.titleCard) == null ? void 0 : l.title) && /* @__PURE__ */ s(Di, { children: (d = n == null ? void 0 : n.titleCard) == null ? void 0 : d.title }),
|
|
2130
|
+
((u = n == null ? void 0 : n.titleCard) == null ? void 0 : u.subtitle) && /* @__PURE__ */ s(Fi, { children: (v = n == null ? void 0 : n.titleCard) == null ? void 0 : v.subtitle }),
|
|
2131
|
+
/* @__PURE__ */ s(Bi, { "data-a": "intr", onClick: t, children: "Play Now" })
|
|
2132
|
+
] });
|
|
2133
|
+
}, h2 = [{
|
|
2134
|
+
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",
|
|
2135
|
+
tagline: "",
|
|
2136
|
+
headline: /* @__PURE__ */ h(R, {
|
|
2137
|
+
children: ["Welcome to ", /* @__PURE__ */ s("br", {}), " Live Challenge"]
|
|
2138
|
+
})
|
|
2139
|
+
}, {
|
|
2140
|
+
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_2.png",
|
|
2141
|
+
headline: "Live insights, polls, trivia and predictions."
|
|
2142
|
+
}, {
|
|
2143
|
+
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_3.png",
|
|
2144
|
+
headline: "Win points and play against friends."
|
|
2145
|
+
}], qi = /* @__PURE__ */ i("div")({
|
|
2146
|
+
name: "OnboardingContainer",
|
|
2147
|
+
class: "o1xni1kr",
|
|
2148
|
+
propsAsIs: !1
|
|
2149
|
+
}), Ui = () => i2, Pi = /* @__PURE__ */ i(Ui())({
|
|
2150
|
+
name: "OnboardingNotificationContainer",
|
|
2151
|
+
class: "o1vnouv7",
|
|
2152
|
+
propsAsIs: !0
|
|
2153
|
+
}), ne = /* @__PURE__ */ i("div")({
|
|
2154
|
+
name: "InnerContainer",
|
|
2155
|
+
class: "i59uefw",
|
|
2156
|
+
propsAsIs: !1
|
|
2157
|
+
}), Wi = /* @__PURE__ */ i("div")({
|
|
2158
|
+
name: "OnboardingOverlap",
|
|
2159
|
+
class: "ovnr8ov",
|
|
2160
|
+
propsAsIs: !1
|
|
2161
|
+
}), ji = ({
|
|
2162
|
+
deepLink: e,
|
|
2163
|
+
onboardingOpts: t,
|
|
2164
|
+
notification: n,
|
|
2165
|
+
gamification: r,
|
|
2166
|
+
loading: a,
|
|
2167
|
+
sdk: o,
|
|
2168
|
+
throttled: c
|
|
2169
|
+
}) => {
|
|
2170
|
+
var l, d, u, v, m, p, C;
|
|
2171
|
+
const g = A(r.friends ? r.friends.getStore() : he({
|
|
2172
|
+
data: []
|
|
2173
|
+
})), [I, f] = L(void 0), $ = M(() => {
|
|
2174
|
+
var b, k;
|
|
2175
|
+
const w = o.getInviter();
|
|
2176
|
+
return w ? (k = (b = g.data) == null ? void 0 : b.find(({
|
|
2177
|
+
slId: x
|
|
2178
|
+
}) => x === w)) == null ? void 0 : k.name : "";
|
|
2179
|
+
}, [g.data, o]);
|
|
2180
|
+
return y(() => {
|
|
2181
|
+
const b = e.$store.subscribe((k) => {
|
|
2182
|
+
k && f(k.data);
|
|
2183
|
+
});
|
|
2184
|
+
return () => {
|
|
2185
|
+
b();
|
|
2186
|
+
};
|
|
2187
|
+
}, [e.$store]), /* @__PURE__ */ h(qi, {
|
|
2188
|
+
children: [/* @__PURE__ */ s(xi, {
|
|
2189
|
+
loading: a,
|
|
2190
|
+
rules: [{
|
|
2191
|
+
label: "Answer as many questions as you like.",
|
|
2192
|
+
icon: "icon-btn-feature-groups"
|
|
2193
|
+
}, {
|
|
2194
|
+
label: "Win points for each correct trivia or prediction answer.",
|
|
2195
|
+
icon: "icon-thumb-up"
|
|
2196
|
+
}, {
|
|
2197
|
+
label: "Top the leader board and best your friends.",
|
|
2198
|
+
icon: "icon-trophy"
|
|
2199
|
+
}],
|
|
2200
|
+
rulesBtnLabel: (l = t.rules) == null ? void 0 : l.buttonLabel,
|
|
2201
|
+
rulesTitle: (d = t.rules) == null ? void 0 : d.heading,
|
|
2202
|
+
termsTitle: "Terms and Conditions",
|
|
2203
|
+
termsText: (u = t.rules) == null ? void 0 : u.terms,
|
|
2204
|
+
steps: h2,
|
|
2205
|
+
primaryColor: (v = t.inviteCard) == null ? void 0 : v.iconColor,
|
|
2206
|
+
inviteLink: I,
|
|
2207
|
+
inviteCardTitle: (m = t.inviteCard) == null ? void 0 : m.heading,
|
|
2208
|
+
inviteCardSubtext: (p = t.inviteCard) == null ? void 0 : p.subtext,
|
|
2209
|
+
inviteCardBtnLabel: (C = t.inviteCard) == null ? void 0 : C.buttonLabel,
|
|
2210
|
+
onClose: () => {
|
|
2211
|
+
var b;
|
|
2212
|
+
(b = n.close) == null || b.call(n);
|
|
2213
|
+
},
|
|
2214
|
+
gamification: r,
|
|
2215
|
+
sdk: o,
|
|
2216
|
+
inviterName: $
|
|
2217
|
+
}), c && /* @__PURE__ */ s(Wi, {})]
|
|
2218
|
+
});
|
|
2219
|
+
}, Zi = ({
|
|
2220
|
+
sdk: e,
|
|
2221
|
+
notification: t,
|
|
2222
|
+
saveHeight: n,
|
|
2223
|
+
style: r,
|
|
2224
|
+
appNode: a,
|
|
2225
|
+
sdkInDesktopView: o,
|
|
2226
|
+
responsiveStore: c
|
|
2227
|
+
}) => {
|
|
2228
|
+
const l = V(null), d = t.data.onboarding, [u, v] = L(d == null ? void 0 : d.instantOpen), m = e.getFeature(H.GAMES), p = M(() => h2 == null ? void 0 : h2.map(({
|
|
2229
|
+
graphicSrc: f
|
|
2230
|
+
}) => f), []), {
|
|
2231
|
+
screen: C
|
|
2232
|
+
} = A(c, {
|
|
2233
|
+
keys: ["screen"]
|
|
2234
|
+
});
|
|
2235
|
+
xe(() => {
|
|
2236
|
+
var f;
|
|
2237
|
+
n(((f = l.current) == null ? void 0 : f.getBoundingClientRect().height) || 0);
|
|
2238
|
+
}, [n]);
|
|
2239
|
+
const {
|
|
2240
|
+
loading: g,
|
|
2241
|
+
throttled: I
|
|
2242
|
+
} = Bn(p);
|
|
2243
|
+
return u && m && d && a.current ? /* @__PURE__ */ s(ve, {
|
|
2244
|
+
container: a,
|
|
2245
|
+
useContainer: !o,
|
|
2246
|
+
children: /* @__PURE__ */ s(ji, {
|
|
2247
|
+
throttled: I,
|
|
2248
|
+
notification: t,
|
|
2249
|
+
setOpened: v,
|
|
2250
|
+
gamification: m,
|
|
2251
|
+
onboardingOpts: d,
|
|
2252
|
+
deepLink: m.deepLink,
|
|
2253
|
+
loading: g,
|
|
2254
|
+
renderToNode: a,
|
|
2255
|
+
sdk: e
|
|
2256
|
+
})
|
|
2257
|
+
}) : /* @__PURE__ */ h(R, {
|
|
2258
|
+
children: [/* @__PURE__ */ s(ne, {
|
|
2259
|
+
ref: l,
|
|
2260
|
+
style: {
|
|
2261
|
+
position: "absolute",
|
|
2262
|
+
visibility: "hidden"
|
|
2263
|
+
},
|
|
2264
|
+
children: /* @__PURE__ */ s(se, {
|
|
2265
|
+
close: () => {
|
|
2266
|
+
},
|
|
2267
|
+
action: () => {
|
|
2268
|
+
},
|
|
2269
|
+
onboarding: d
|
|
2270
|
+
})
|
|
2271
|
+
}), /* @__PURE__ */ s(Pi, {
|
|
2272
|
+
style: r,
|
|
2273
|
+
hiding: t.hiding,
|
|
2274
|
+
children: /* @__PURE__ */ s(ne, {
|
|
2275
|
+
children: /* @__PURE__ */ s(se, {
|
|
2276
|
+
close: t.close,
|
|
2277
|
+
action: () => {
|
|
2278
|
+
var f;
|
|
2279
|
+
v(!0), (((f = a.current) == null ? void 0 : f.getBoundingClientRect().y) || 0) < 0 && v2(a, C.size, {
|
|
2280
|
+
behavior: "smooth"
|
|
2281
|
+
});
|
|
2282
|
+
},
|
|
2283
|
+
onboarding: d
|
|
2284
|
+
})
|
|
2285
|
+
})
|
|
2286
|
+
})]
|
|
2287
|
+
});
|
|
2288
|
+
}, Gi = /* @__PURE__ */ i("button")({
|
|
2289
|
+
name: "Container",
|
|
2290
|
+
class: "crkmfw1",
|
|
2291
|
+
propsAsIs: !1
|
|
2292
|
+
}), Qi = /* @__PURE__ */ i("div")({
|
|
2293
|
+
name: "Content",
|
|
2294
|
+
class: "c11awpy4",
|
|
2295
|
+
propsAsIs: !1
|
|
2296
|
+
}), Ki = /* @__PURE__ */ i("span")({
|
|
2297
|
+
name: "Title",
|
|
2298
|
+
class: "t154z7mh",
|
|
2299
|
+
propsAsIs: !1
|
|
2300
|
+
}), Yi = ({ title: e, onClick: t, className: n, style: r }) => /* @__PURE__ */ s(Gi, { "data-a": "intr", onClick: t, className: n, style: r, children: /* @__PURE__ */ h(Qi, { "data-a": "intr", children: [
|
|
2301
|
+
/* @__PURE__ */ s(_, { "data-a": "intr", name: "iconUp" }),
|
|
2302
|
+
e && /* @__PURE__ */ s(Ki, { "data-a": "intr", children: e })
|
|
2303
|
+
] }) }), Ji = () => i2, Xi = /* @__PURE__ */ i(Ji())({
|
|
2304
|
+
name: "Container",
|
|
2305
|
+
class: "c8ol1ve",
|
|
2306
|
+
propsAsIs: !0
|
|
2307
|
+
}), be = /* @__PURE__ */ i("div")({
|
|
2308
|
+
name: "InnerContainer",
|
|
2309
|
+
class: "iqfywam",
|
|
2310
|
+
propsAsIs: !1
|
|
2311
|
+
}), e1 = () => be, t1 = /* @__PURE__ */ i(e1())({
|
|
2312
|
+
name: "HiddenContainer",
|
|
2313
|
+
class: "hokmtod",
|
|
2314
|
+
propsAsIs: !0
|
|
2315
|
+
}), s1 = /* @__PURE__ */ i("div")({
|
|
2316
|
+
name: "NotificationRefreshing",
|
|
2317
|
+
class: "n192d1q8",
|
|
2318
|
+
propsAsIs: !1
|
|
2319
|
+
}), n1 = () => Yi, i1 = /* @__PURE__ */ i(n1())({
|
|
2320
|
+
name: "Pill",
|
|
2321
|
+
class: "p1lha68t",
|
|
2322
|
+
propsAsIs: !0
|
|
2323
|
+
}), r1 = (e) => {
|
|
2324
|
+
const [t, n] = L(0), r = V(null), a = M(() => new ResizeObserver((l) => {
|
|
2325
|
+
window.requestAnimationFrame(() => {
|
|
2326
|
+
var d;
|
|
2327
|
+
if (Array.isArray(l)) {
|
|
2328
|
+
for (const u of l)
|
|
2329
|
+
if (u.contentBoxSize) {
|
|
2330
|
+
const v = (d = r.current) == null ? void 0 : d.getBoundingClientRect();
|
|
2331
|
+
v && n(v.height);
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
});
|
|
2335
|
+
}), []), o = U((l) => {
|
|
2336
|
+
r.current = l;
|
|
2337
|
+
}, []), c = U((l) => {
|
|
2338
|
+
n(l);
|
|
2339
|
+
}, []);
|
|
2340
|
+
return y(() => {
|
|
2341
|
+
const l = r.current;
|
|
2342
|
+
return l ? (a.observe(l), () => {
|
|
2343
|
+
a.unobserve(l);
|
|
2344
|
+
}) : () => {
|
|
2345
|
+
};
|
|
2346
|
+
}, [e]), y(() => () => {
|
|
2347
|
+
a.disconnect();
|
|
2348
|
+
}), [o, t, c];
|
|
2349
|
+
}, a1 = ({
|
|
2350
|
+
sdk: e,
|
|
2351
|
+
notification: t,
|
|
2352
|
+
appNode: n,
|
|
2353
|
+
responsiveStore: r,
|
|
2354
|
+
hasActiveFeature: a
|
|
2355
|
+
}) => {
|
|
2356
|
+
var o, c;
|
|
2357
|
+
const {
|
|
2358
|
+
sdkInDesktopView: l
|
|
2359
|
+
} = A(r, {
|
|
2360
|
+
keys: ["sdkInDesktopView"]
|
|
2361
|
+
}), {
|
|
2362
|
+
sdk: d
|
|
2363
|
+
} = u2(), [u, v, m] = r1(t.id);
|
|
2364
|
+
let p = v;
|
|
2365
|
+
return a || (p = "auto"), t.type === e2.QUESTION ? /* @__PURE__ */ h(R, {
|
|
2366
|
+
children: [/* @__PURE__ */ s(t1, {
|
|
2367
|
+
ref: u,
|
|
2368
|
+
children: /* @__PURE__ */ s(P2, {
|
|
2369
|
+
...t
|
|
2370
|
+
})
|
|
2371
|
+
}), /* @__PURE__ */ h(Xi, {
|
|
2372
|
+
style: {
|
|
2373
|
+
height: t.hiding ? 0 : p
|
|
2374
|
+
},
|
|
2375
|
+
hiding: t.hiding,
|
|
2376
|
+
children: [/* @__PURE__ */ s(be, {
|
|
2377
|
+
style: {
|
|
2378
|
+
height: "100%"
|
|
2379
|
+
},
|
|
2380
|
+
children: /* @__PURE__ */ s(P2, {
|
|
2381
|
+
...t,
|
|
2382
|
+
controlVideo: d == null ? void 0 : d.controlVideoPlayer
|
|
2383
|
+
})
|
|
2384
|
+
}), /* @__PURE__ */ s(s1, {}, t.id)]
|
|
2385
|
+
})]
|
|
2386
|
+
}) : t.type === e2.QUESTION_RESOLVED && (c = (o = t.data) == null ? void 0 : o.question) != null && c.predictionResult ? /* @__PURE__ */ s(Fn, {
|
|
2387
|
+
style: {
|
|
2388
|
+
height: t.hiding ? 0 : v
|
|
2389
|
+
},
|
|
2390
|
+
saveHeight: m,
|
|
2391
|
+
close: t.close,
|
|
2392
|
+
hiding: t.hiding,
|
|
2393
|
+
...t.data.question
|
|
2394
|
+
}) : t.type === e2.ONBOARDING ? /* @__PURE__ */ s(Zi, {
|
|
2395
|
+
style: {
|
|
2396
|
+
height: t.hiding ? 0 : p
|
|
2397
|
+
},
|
|
2398
|
+
saveHeight: m,
|
|
2399
|
+
sdk: e,
|
|
2400
|
+
notification: t,
|
|
2401
|
+
sdkInDesktopView: l,
|
|
2402
|
+
appNode: n,
|
|
2403
|
+
responsiveStore: r
|
|
2404
|
+
}) : null;
|
|
2405
|
+
}, o1 = "p7vfi6t", l1 = ({
|
|
2406
|
+
pill: e,
|
|
2407
|
+
setPill: t,
|
|
2408
|
+
appNode: n,
|
|
2409
|
+
headerNode: r,
|
|
2410
|
+
scrollNode: a,
|
|
2411
|
+
responsiveStore: o,
|
|
2412
|
+
scrollStore: c
|
|
2413
|
+
}) => {
|
|
2414
|
+
var l, d;
|
|
2415
|
+
const {
|
|
2416
|
+
screen: u
|
|
2417
|
+
} = A(o, {
|
|
2418
|
+
keys: ["screen"]
|
|
2419
|
+
}), {
|
|
2420
|
+
tabsShown: v,
|
|
2421
|
+
scrollPosition: m
|
|
2422
|
+
} = A(c, {
|
|
2423
|
+
keys: ["tabsShown", "scrollPosition"]
|
|
2424
|
+
});
|
|
2425
|
+
y(() => {
|
|
2426
|
+
o.get().sdkInDesktopView ? m < 50 && t(null) : m > -50 && t(null);
|
|
2427
|
+
}, [m, o, t]);
|
|
2428
|
+
const p = o.get().sdkInDesktopView ? n : r;
|
|
2429
|
+
return !e || !p.current ? null : s2(/* @__PURE__ */ s(i1, {
|
|
2430
|
+
title: e.type === e2.QUESTION_RESOLVED ? "Prediction result" : `New ${((d = de[(l = e.data) == null ? void 0 : l.questionType]) == null ? void 0 : d.label) || "notification"}`,
|
|
2431
|
+
"data-a": "intr",
|
|
2432
|
+
onClick: () => {
|
|
2433
|
+
var C;
|
|
2434
|
+
o.get().sdkInDesktopView ? (C = a.current) == null || C.scrollTo({
|
|
2435
|
+
top: 0,
|
|
2436
|
+
behavior: "smooth"
|
|
2437
|
+
}) : v2(n, u.size, {
|
|
2438
|
+
behavior: "smooth"
|
|
2439
|
+
}), t(null);
|
|
2440
|
+
},
|
|
2441
|
+
className: F(v && o1, "sl-pill-button")
|
|
2442
|
+
}), p.current);
|
|
2443
|
+
}, c1 = ({
|
|
2444
|
+
sdk: e,
|
|
2445
|
+
headerNode: t,
|
|
2446
|
+
scrollNode: n,
|
|
2447
|
+
responsiveStore: r,
|
|
2448
|
+
appNode: a,
|
|
2449
|
+
scrollStore: o,
|
|
2450
|
+
hasActiveFeature: c
|
|
2451
|
+
}) => {
|
|
2452
|
+
const [l] = L(e.getNotificationsStore()), d = A(l), [u, v] = L(null), m = M(() => e.getActiveNotification(), [e, d]);
|
|
2453
|
+
return y(() => {
|
|
2454
|
+
m && Ge.emit("notification", {
|
|
2455
|
+
action: "rendered",
|
|
2456
|
+
payload: {
|
|
2457
|
+
questionId: m.data.questionId,
|
|
2458
|
+
questionType: m.data.questionType
|
|
2459
|
+
}
|
|
2460
|
+
});
|
|
2461
|
+
}, [m]), y(() => {
|
|
2462
|
+
const {
|
|
2463
|
+
sdkInDesktopView: p,
|
|
2464
|
+
sdkInView: C
|
|
2465
|
+
} = r.get();
|
|
2466
|
+
m && (p || C) && (!p && C && v(m), p && window.requestAnimationFrame(() => {
|
|
2467
|
+
o.get().scrollPosition !== 0 && v(m);
|
|
2468
|
+
}));
|
|
2469
|
+
}, [m]), y(() => {
|
|
2470
|
+
m || v(null);
|
|
2471
|
+
}, [m]), /* @__PURE__ */ h(R, {
|
|
2472
|
+
children: [!u && m && /* @__PURE__ */ s(a1, {
|
|
2473
|
+
appNode: a,
|
|
2474
|
+
sdk: e,
|
|
2475
|
+
hasActiveFeature: c,
|
|
2476
|
+
notification: m,
|
|
2477
|
+
responsiveStore: r
|
|
2478
|
+
}), u && /* @__PURE__ */ s(l1, {
|
|
2479
|
+
pill: u,
|
|
2480
|
+
setPill: v,
|
|
2481
|
+
appNode: a,
|
|
2482
|
+
notification: m,
|
|
2483
|
+
headerNode: t,
|
|
2484
|
+
scrollNode: n,
|
|
2485
|
+
scrollStore: o,
|
|
2486
|
+
responsiveStore: r
|
|
2487
|
+
})]
|
|
2488
|
+
});
|
|
2489
|
+
}, d1 = (e) => {
|
|
2490
|
+
const t = A(e.status), n = A(e.sdkStore.slStreamId), r = A(e.userId()), a = A(e.getActiveFeature()), o = t === "ready" && !!n.data;
|
|
2491
|
+
return y(() => {
|
|
2492
|
+
const c = e.getFeature(H.GAMES);
|
|
2493
|
+
c && a !== H.GAMES && (c.closeQuestion(), c.closeUser()), c == null || c.openedQuestionId.subscribe((l) => {
|
|
2494
|
+
l && a !== H.GAMES && e.openFeature(H.GAMES);
|
|
2495
|
+
});
|
|
2496
|
+
}, [a, e]), {
|
|
2497
|
+
sdkReady: o,
|
|
2498
|
+
activeFeature: a,
|
|
2499
|
+
isLogged: !!r
|
|
2500
|
+
};
|
|
2501
|
+
}, p1 = ({
|
|
2502
|
+
sdk: e,
|
|
2503
|
+
className: t,
|
|
2504
|
+
scrollStore: n,
|
|
2505
|
+
appNode: r,
|
|
2506
|
+
scrollNode: a,
|
|
2507
|
+
responsiveStore: o
|
|
2508
|
+
}) => {
|
|
2509
|
+
const [, c] = d0(e);
|
|
2510
|
+
return /* @__PURE__ */ s(os, {
|
|
2511
|
+
className: t,
|
|
2512
|
+
scrollNode: a,
|
|
2513
|
+
appNode: r,
|
|
2514
|
+
scrollStore: n,
|
|
2515
|
+
feature: c,
|
|
2516
|
+
responsiveStore: o,
|
|
2517
|
+
sdk: e
|
|
2518
|
+
});
|
|
2519
|
+
}, h1 = ({
|
|
2520
|
+
sdk: e,
|
|
2521
|
+
muted: t,
|
|
2522
|
+
className: n,
|
|
2523
|
+
appNode: r,
|
|
2524
|
+
responsiveStore: a
|
|
2525
|
+
}) => {
|
|
2526
|
+
const o = A(e.featuresList.getStore());
|
|
2527
|
+
return o ? Array.from(o, (c) => {
|
|
2528
|
+
const l = e.getFeature(c);
|
|
2529
|
+
return l ? /* @__PURE__ */ s(ls, {
|
|
2530
|
+
className: n,
|
|
2531
|
+
muted: t,
|
|
2532
|
+
appNode: r,
|
|
2533
|
+
feature: l,
|
|
2534
|
+
responsiveStore: a,
|
|
2535
|
+
sdk: e
|
|
2536
|
+
}, c) : null;
|
|
2537
|
+
}) : null;
|
|
2538
|
+
}, u1 = ({
|
|
2539
|
+
sdk: e,
|
|
2540
|
+
muted: t,
|
|
2541
|
+
topNavigation: n
|
|
2542
|
+
}) => {
|
|
2543
|
+
const [r, a] = L(!0), o = V(null), c = A(e.uiState), l = V(null), [d] = p0(o), [u, v] = u0(o, d), {
|
|
2544
|
+
sdkReady: m,
|
|
2545
|
+
activeFeature: p,
|
|
2546
|
+
isLogged: C
|
|
2547
|
+
} = d1(e), g = !!m;
|
|
2548
|
+
Ke(o, {
|
|
2549
|
+
enabled: g,
|
|
2550
|
+
event: "click",
|
|
2551
|
+
listener: Ye
|
|
2552
|
+
});
|
|
2553
|
+
const I = M(() => ({
|
|
2554
|
+
sdk: e,
|
|
2555
|
+
topNavigation: n
|
|
2556
|
+
}), [e, n]);
|
|
2557
|
+
return y(() => {
|
|
2558
|
+
import("./gamification-feature.js");
|
|
2559
|
+
}, []), /* @__PURE__ */ s(t0.Provider, {
|
|
2560
|
+
value: I,
|
|
2561
|
+
children: /* @__PURE__ */ h(je, {
|
|
2562
|
+
ref: (f) => {
|
|
2563
|
+
o.current = f, a(!!f);
|
|
2564
|
+
},
|
|
2565
|
+
className: n ? "" : "c10llmat",
|
|
2566
|
+
children: [g && n && c.app && /* @__PURE__ */ s(Es, {
|
|
2567
|
+
className: F(Q, "sl-hide-on-modal"),
|
|
2568
|
+
sdk: e,
|
|
2569
|
+
ref: l
|
|
2570
|
+
}), g && !n && !!p && c.app && /* @__PURE__ */ s(Rs, {
|
|
2571
|
+
className: F(Q, "sl-hide-on-modal"),
|
|
2572
|
+
sdk: e,
|
|
2573
|
+
ref: l
|
|
2574
|
+
}), /* @__PURE__ */ h(Ze, {
|
|
2575
|
+
className: "sl-hide-on-modal",
|
|
2576
|
+
ref: u,
|
|
2577
|
+
"data-nav": (!!p && g).toString(),
|
|
2578
|
+
children: [g && c.app && /* @__PURE__ */ s(c1, {
|
|
2579
|
+
sdk: e,
|
|
2580
|
+
scrollNode: u,
|
|
2581
|
+
headerNode: l,
|
|
2582
|
+
appNode: o,
|
|
2583
|
+
scrollStore: v,
|
|
2584
|
+
responsiveStore: d,
|
|
2585
|
+
hasActiveFeature: !!p
|
|
2586
|
+
}), g && c.app && /* @__PURE__ */ s(p1, {
|
|
2587
|
+
scrollStore: v,
|
|
2588
|
+
responsiveStore: d,
|
|
2589
|
+
scrollNode: u,
|
|
2590
|
+
appNode: o,
|
|
2591
|
+
className: Q,
|
|
2592
|
+
sdk: e
|
|
2593
|
+
}), g && r && /* @__PURE__ */ s(h1, {
|
|
2594
|
+
muted: t,
|
|
2595
|
+
responsiveStore: d,
|
|
2596
|
+
appNode: o,
|
|
2597
|
+
className: Q,
|
|
2598
|
+
sdk: e
|
|
2599
|
+
})]
|
|
2600
|
+
}), g && !C && r && c.app && /* @__PURE__ */ s("div", {
|
|
2601
|
+
style: {
|
|
2602
|
+
display: "flex",
|
|
2603
|
+
alignItems: "center",
|
|
2604
|
+
justifyContent: "center",
|
|
2605
|
+
width: "100%",
|
|
2606
|
+
height: "100%"
|
|
2607
|
+
},
|
|
2608
|
+
children: "You are not logged in."
|
|
2609
|
+
})]
|
|
2610
|
+
})
|
|
2611
|
+
});
|
|
2612
|
+
}, F1 = ({ event: e, topNavigation: t, theme: n, muted: r, withSidebarNotification: a = !0 }) => {
|
|
2613
|
+
const { sdk: o, status: c } = f2(g2), l = Re(), d = Ee(), { event: u } = f2(g2);
|
|
2614
|
+
if (c === I2.UNSET)
|
|
2615
|
+
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
2616
|
+
return c === I2.CONNECTED ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "wait" }) : o === null ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !l.app && !l.appNotification && !l.appSidebar || !l.app && !l.appSidebar && l.appNotification && !a ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(ze, { customTheme: n ?? d.theme, themeMode: d.themeMode, children: /* @__PURE__ */ s(u1, { sdk: o, muted: r, event: (u == null ? void 0 : u.current) || e, topNavigation: t }) }) });
|
|
2617
|
+
};
|
|
2618
|
+
export {
|
|
2619
|
+
D1 as B,
|
|
2620
|
+
F1 as b
|
|
2621
|
+
};
|