@streamlayer/react 0.22.3 → 0.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +2 -2
- package/lib/es/index.js +179 -179
- package/lib/style.css +1 -1
- package/package.json +6 -6
package/lib/es/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { AvailableFeatures as H1 } from "@streamlayer/sdk-web-features";
|
|
|
7
7
|
import { FeatureStatus as h } from "@streamlayer/sdk-web-interfaces";
|
|
8
8
|
import { NotificationType as o1 } from "@streamlayer/sdk-web-notifications";
|
|
9
9
|
import "@streamlayer/feature-gamification";
|
|
10
|
-
import { jsxs as
|
|
10
|
+
import { jsxs as a, jsx as M, Fragment as S } from "react/jsx-runtime";
|
|
11
11
|
import * as t from "react";
|
|
12
12
|
import b, { useCallback as G, useEffect as v, useState as y, useRef as W1, useMemo as k, createContext as B1, useContext as w1 } from "react";
|
|
13
13
|
import _1, { isValidPhoneNumber as F1, formatPhoneNumberIntl as J1 } from "react-phone-number-input";
|
|
@@ -31,42 +31,42 @@ var M4 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
31
31
|
}
|
|
32
32
|
/* Z+1 */
|
|
33
33
|
), i4 = function() {
|
|
34
|
-
const n = Array.prototype.slice.call(arguments).filter(Boolean), s = {},
|
|
34
|
+
const n = Array.prototype.slice.call(arguments).filter(Boolean), s = {}, l = [];
|
|
35
35
|
n.forEach((c) => {
|
|
36
36
|
(c ? c.split(" ") : []).forEach((I) => {
|
|
37
37
|
if (I.startsWith("atm_")) {
|
|
38
38
|
const [, o] = I.split("_");
|
|
39
39
|
s[o] = I;
|
|
40
40
|
} else
|
|
41
|
-
|
|
41
|
+
l.push(I);
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
const N = [];
|
|
45
45
|
for (const c in s)
|
|
46
46
|
Object.prototype.hasOwnProperty.call(s, c) && N.push(s[c]);
|
|
47
|
-
return N.push(...
|
|
47
|
+
return N.push(...l), N.join(" ");
|
|
48
48
|
}, g1 = i4, s4 = (e) => e.toUpperCase() === e, n4 = (e) => (n) => e.indexOf(n) === -1, h1 = (e, n) => {
|
|
49
49
|
const s = {};
|
|
50
|
-
return Object.keys(e).filter(n4(n)).forEach((
|
|
51
|
-
s[
|
|
50
|
+
return Object.keys(e).filter(n4(n)).forEach((l) => {
|
|
51
|
+
s[l] = e[l];
|
|
52
52
|
}), s;
|
|
53
53
|
};
|
|
54
54
|
function t4(e, n, s) {
|
|
55
|
-
const
|
|
55
|
+
const l = h1(n, s);
|
|
56
56
|
if (!e) {
|
|
57
57
|
const N = typeof H == "function" ? { default: H } : H;
|
|
58
|
-
Object.keys(
|
|
59
|
-
N.default(c) || delete
|
|
58
|
+
Object.keys(l).forEach((c) => {
|
|
59
|
+
N.default(c) || delete l[c];
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
return
|
|
62
|
+
return l;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
64
|
+
var l4 = (e, n) => {
|
|
65
65
|
};
|
|
66
|
-
function
|
|
66
|
+
function a4(e) {
|
|
67
67
|
let n = "";
|
|
68
68
|
return (s) => {
|
|
69
|
-
const
|
|
69
|
+
const l = (c, r) => {
|
|
70
70
|
const { as: I = e, class: o = n } = c, g = s.propsAsIs === void 0 ? !(typeof I == "string" && I.indexOf("-") === -1 && !s4(I[0])) : s.propsAsIs, D = t4(g, c, [
|
|
71
71
|
"as",
|
|
72
72
|
"class"
|
|
@@ -77,7 +77,7 @@ function l4(e) {
|
|
|
77
77
|
const j = {};
|
|
78
78
|
for (const z in A) {
|
|
79
79
|
const d = A[z], C = d[0], O = d[1] || "", E = typeof C == "function" ? C(c) : C;
|
|
80
|
-
|
|
80
|
+
l4(E, s.name), j[`--${z}`] = `${E}${O}`;
|
|
81
81
|
}
|
|
82
82
|
const x = D.style || {}, T = Object.keys(x);
|
|
83
83
|
T.length > 0 && T.forEach((z) => {
|
|
@@ -85,12 +85,12 @@ function l4(e) {
|
|
|
85
85
|
}), D.style = j;
|
|
86
86
|
}
|
|
87
87
|
return e.__linaria && e !== I ? (D.as = I, b.createElement(e, D)) : b.createElement(I, D);
|
|
88
|
-
}, N = b.forwardRef ? b.forwardRef(
|
|
88
|
+
}, N = b.forwardRef ? b.forwardRef(l) : (
|
|
89
89
|
// React.forwardRef won't available on older React versions and in Preact
|
|
90
90
|
// Fallback to a innerRef prop in that case
|
|
91
91
|
(c) => {
|
|
92
92
|
const r = h1(c, ["innerRef"]);
|
|
93
|
-
return
|
|
93
|
+
return l(r, c.innerRef);
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
return N.displayName = s.name, N.__linaria = {
|
|
@@ -99,7 +99,7 @@ function l4(e) {
|
|
|
99
99
|
}, N;
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
var i =
|
|
102
|
+
var i = a4;
|
|
103
103
|
const N4 = /* @__PURE__ */ i("div")({
|
|
104
104
|
name: "o",
|
|
105
105
|
class: "o1gwxd13",
|
|
@@ -136,16 +136,16 @@ const N4 = /* @__PURE__ */ i("div")({
|
|
|
136
136
|
name: "s",
|
|
137
137
|
class: "s12ztjhk",
|
|
138
138
|
propsAsIs: !1
|
|
139
|
-
}), S1 = ({ close: e, action: n, data: { color: s, icon:
|
|
139
|
+
}), S1 = ({ close: e, action: n, data: { color: s, icon: l, title: N } }) => {
|
|
140
140
|
const c = G(
|
|
141
141
|
(r) => {
|
|
142
142
|
r.stopPropagation(), e == null || e();
|
|
143
143
|
},
|
|
144
144
|
[e]
|
|
145
145
|
);
|
|
146
|
-
return /* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */ M(c4, { style: s ? { backgroundColor: s } : {}, children:
|
|
148
|
-
/* @__PURE__ */
|
|
146
|
+
return /* @__PURE__ */ a(N4, { onClick: n, children: [
|
|
147
|
+
/* @__PURE__ */ M(c4, { style: s ? { backgroundColor: s } : {}, children: l && /* @__PURE__ */ M(I4, { alt: "in-app-icon", src: l }) }),
|
|
148
|
+
/* @__PURE__ */ a(o4, { children: [
|
|
149
149
|
/* @__PURE__ */ M(g4, { children: /* @__PURE__ */ M(r4, { id: "in-app-title", children: N || "" }) }),
|
|
150
150
|
/* @__PURE__ */ M(D4, { children: /* @__PURE__ */ M(j4, { onClick: c, children: /* @__PURE__ */ M(A4, { alt: "close-in-app-icon", src: V }) }) })
|
|
151
151
|
] })
|
|
@@ -161,11 +161,11 @@ const N4 = /* @__PURE__ */ i("div")({
|
|
|
161
161
|
});
|
|
162
162
|
return await i1(s1, s).register({ id: n }), !0;
|
|
163
163
|
}, T4 = async (e, n, s) => {
|
|
164
|
-
var
|
|
164
|
+
var l;
|
|
165
165
|
const N = M1({
|
|
166
166
|
baseUrl: e
|
|
167
167
|
}), c = await i1(s1, N).login({ id: n, password: s });
|
|
168
|
-
return (
|
|
168
|
+
return (l = c == null ? void 0 : c.meta) == null ? void 0 : l.jwt;
|
|
169
169
|
}, C4 = {
|
|
170
170
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
171
171
|
BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
|
|
@@ -230,7 +230,7 @@ const y4 = /* @__PURE__ */ i("div")({
|
|
|
230
230
|
class: "e1e5tuim",
|
|
231
231
|
propsAsIs: !1
|
|
232
232
|
}), L4 = [f.BLUE_PRIMARY, f.GREEN_1, f.RED_1], x4 = [10, 6, 0], p4 = 30, E4 = 32, m4 = 4, O4 = 0, k1 = ({ isPlaying: e = !0, duration: n = p4, setTimeToExpire: s }) => {
|
|
233
|
-
const
|
|
233
|
+
const l = ({ remainingTime: N }) => /* @__PURE__ */ M(y4, { style: { color: N ? "inherit" : void 0 }, children: N });
|
|
234
234
|
return v(() => {
|
|
235
235
|
s(!1);
|
|
236
236
|
}, [s]), /* @__PURE__ */ M(
|
|
@@ -244,7 +244,7 @@ const y4 = /* @__PURE__ */ i("div")({
|
|
|
244
244
|
strokeWidth: m4,
|
|
245
245
|
trailStrokeWidth: O4,
|
|
246
246
|
onComplete: () => s(!0),
|
|
247
|
-
children:
|
|
247
|
+
children: l
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
250
|
};
|
|
@@ -277,10 +277,10 @@ const w4 = /* @__PURE__ */ i("div")({
|
|
|
277
277
|
class: "dje8inq",
|
|
278
278
|
propsAsIs: !1
|
|
279
279
|
}), k4 = ({ login: e, anonymousLogin: n, host: s }) => {
|
|
280
|
-
const [
|
|
280
|
+
const [l, N] = y(""), [c, r] = y(""), [I, o] = y(""), g = async (A) => {
|
|
281
281
|
A.preventDefault();
|
|
282
282
|
try {
|
|
283
|
-
const j =
|
|
283
|
+
const j = l.replaceAll("+", "");
|
|
284
284
|
try {
|
|
285
285
|
await u4(s, j);
|
|
286
286
|
} catch {
|
|
@@ -299,27 +299,27 @@ const w4 = /* @__PURE__ */ i("div")({
|
|
|
299
299
|
window.alert(j);
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
-
!c && /* @__PURE__ */
|
|
304
|
-
/* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ a(w4, { children: [
|
|
303
|
+
!c && /* @__PURE__ */ a("div", { children: [
|
|
304
|
+
/* @__PURE__ */ a(r1, { onSubmit: g, children: [
|
|
305
305
|
/* @__PURE__ */ M(D1, { children: "Enter your phone number" }),
|
|
306
306
|
/* @__PURE__ */ M(W, { children: "Enter your phone up for number to log in or sign an account." }),
|
|
307
|
-
/* @__PURE__ */ M(h4, { children: /* @__PURE__ */ M(_1, { value:
|
|
308
|
-
/* @__PURE__ */ M(B, { disabled: !F1(
|
|
307
|
+
/* @__PURE__ */ M(h4, { children: /* @__PURE__ */ M(_1, { value: l, onChange: (A) => N(`${A}`) }) }),
|
|
308
|
+
/* @__PURE__ */ M(B, { disabled: !F1(l), type: "submit", children: "request code" })
|
|
309
309
|
] }),
|
|
310
310
|
n && /* @__PURE__ */ M(B, { style: { display: "block", margin: "auto" }, onClick: n, children: "anonymous login" })
|
|
311
311
|
] }),
|
|
312
|
-
c && /* @__PURE__ */
|
|
312
|
+
c && /* @__PURE__ */ a(r1, { onSubmit: D, children: [
|
|
313
313
|
/* @__PURE__ */ M(D1, { children: "Enter Verification Code" }),
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ a(W, { children: [
|
|
315
315
|
"Please enter the verification code ",
|
|
316
316
|
/* @__PURE__ */ M("br", {}),
|
|
317
317
|
"sent to ",
|
|
318
|
-
/* @__PURE__ */ M("b", { children: J1(
|
|
318
|
+
/* @__PURE__ */ M("b", { children: J1(l) })
|
|
319
319
|
] }),
|
|
320
320
|
/* @__PURE__ */ M(S4, { children: /* @__PURE__ */ M(q1, { autoFocus: !0, allowedCharacters: "numeric", length: 4, onChange: o }) }),
|
|
321
321
|
/* @__PURE__ */ M(B, { disabled: I.length !== 4, type: "submit", children: "login" }),
|
|
322
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ a(W, { children: [
|
|
323
323
|
"Didn't get 59 the code? ",
|
|
324
324
|
/* @__PURE__ */ M("br", {}),
|
|
325
325
|
"Resend Code in",
|
|
@@ -386,7 +386,7 @@ const $4 = /* @__PURE__ */ i("div")({
|
|
|
386
386
|
name: "d",
|
|
387
387
|
class: "d9l6z9i",
|
|
388
388
|
propsAsIs: !1
|
|
389
|
-
}), B4 = ({ graphic: e, headline: n }) => /* @__PURE__ */ M($4, { children: /* @__PURE__ */
|
|
389
|
+
}), B4 = ({ graphic: e, headline: n }) => /* @__PURE__ */ M($4, { children: /* @__PURE__ */ a(P4, { children: [
|
|
390
390
|
/* @__PURE__ */ M(H4, { alt: "graphic-img-instructions", src: e }),
|
|
391
391
|
/* @__PURE__ */ M(W4, { children: n })
|
|
392
392
|
] }) });
|
|
@@ -414,11 +414,11 @@ const _4 = /* @__PURE__ */ i("div")({
|
|
|
414
414
|
name: "l",
|
|
415
415
|
class: "l1heulx5",
|
|
416
416
|
propsAsIs: !1
|
|
417
|
-
}), e2 = ({ rules: e, rulesTitle: n, primaryColor: s }) => /* @__PURE__ */
|
|
417
|
+
}), e2 = ({ rules: e, rulesTitle: n, primaryColor: s }) => /* @__PURE__ */ a(_4, { children: [
|
|
418
418
|
/* @__PURE__ */ M(F4, { children: n }),
|
|
419
|
-
/* @__PURE__ */ M(J4, { children: e == null ? void 0 : e.map((
|
|
419
|
+
/* @__PURE__ */ M(J4, { children: e == null ? void 0 : e.map((l, N) => /* @__PURE__ */ a(q4, { children: [
|
|
420
420
|
/* @__PURE__ */ M(X4, { style: { backgroundColor: s }, children: N + 1 }),
|
|
421
|
-
/* @__PURE__ */ M(K4, { children:
|
|
421
|
+
/* @__PURE__ */ M(K4, { children: l })
|
|
422
422
|
] }, N)) })
|
|
423
423
|
] });
|
|
424
424
|
const M2 = /* @__PURE__ */ i("div")({
|
|
@@ -441,11 +441,11 @@ const M2 = /* @__PURE__ */ i("div")({
|
|
|
441
441
|
name: "c",
|
|
442
442
|
class: "c1a3ssoy",
|
|
443
443
|
propsAsIs: !1
|
|
444
|
-
}),
|
|
444
|
+
}), l2 = /* @__PURE__ */ i("div")({
|
|
445
445
|
name: "a",
|
|
446
446
|
class: "ayzr5mb",
|
|
447
447
|
propsAsIs: !1
|
|
448
|
-
}),
|
|
448
|
+
}), a2 = /* @__PURE__ */ i("button")({
|
|
449
449
|
name: "p",
|
|
450
450
|
class: "p30t8qv",
|
|
451
451
|
propsAsIs: !1
|
|
@@ -453,11 +453,11 @@ const M2 = /* @__PURE__ */ i("div")({
|
|
|
453
453
|
inviteCardTitle: e,
|
|
454
454
|
inviteCardSubtext: n,
|
|
455
455
|
primaryColor: s
|
|
456
|
-
}) => /* @__PURE__ */ M(M2, { children: /* @__PURE__ */
|
|
456
|
+
}) => /* @__PURE__ */ M(M2, { children: /* @__PURE__ */ a(i2, { children: [
|
|
457
457
|
/* @__PURE__ */ M(s2, { style: { backgroundColor: s }, children: /* @__PURE__ */ M(n2, { alt: "invite-game-icon", src: N2 }) }),
|
|
458
458
|
/* @__PURE__ */ M(t2, { children: e || "" }),
|
|
459
|
-
/* @__PURE__ */ M(
|
|
460
|
-
/* @__PURE__ */ M(
|
|
459
|
+
/* @__PURE__ */ M(l2, { children: n || "" }),
|
|
460
|
+
/* @__PURE__ */ M(a2, { onClick: () => {
|
|
461
461
|
}, style: { backgroundColor: s }, children: "Invite friends!" })
|
|
462
462
|
] }) }), w = {
|
|
463
463
|
steps: !1,
|
|
@@ -467,7 +467,7 @@ const M2 = /* @__PURE__ */ i("div")({
|
|
|
467
467
|
gamification: e,
|
|
468
468
|
closeFeature: n,
|
|
469
469
|
steps: s,
|
|
470
|
-
gameIcon:
|
|
470
|
+
gameIcon: l,
|
|
471
471
|
sponsorLogo: N,
|
|
472
472
|
rules: c,
|
|
473
473
|
rulesBtnLabel: r,
|
|
@@ -488,15 +488,15 @@ const M2 = /* @__PURE__ */ i("div")({
|
|
|
488
488
|
const O = G(() => {
|
|
489
489
|
s != null && s.length && T < s.length - 1 ? z((E) => ++E) : c != null && c.length && d.steps ? C({ ...w, rules: !0 }) : d.rules && C({ ...w, inviteCard: !0 });
|
|
490
490
|
}, [T, s == null ? void 0 : s.length, c == null ? void 0 : c.length, d, z, C]);
|
|
491
|
-
return /* @__PURE__ */
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
-
/* @__PURE__ */ M(Y4, { children:
|
|
494
|
-
/* @__PURE__ */
|
|
491
|
+
return /* @__PURE__ */ a(v4, { children: [
|
|
492
|
+
/* @__PURE__ */ a(f4, { children: [
|
|
493
|
+
/* @__PURE__ */ M(Y4, { children: l && /* @__PURE__ */ M(b4, { alt: "sponsor-one-onboarding-icon", src: l }) }),
|
|
494
|
+
/* @__PURE__ */ a(U4, { children: [
|
|
495
495
|
N && /* @__PURE__ */ M(Z4, { alt: "sponsor-two-onboarding-icon", src: N }),
|
|
496
496
|
/* @__PURE__ */ M(R4, { onClick: x, children: /* @__PURE__ */ M(G4, { alt: "icon-close-onboarding", src: V }) })
|
|
497
497
|
] })
|
|
498
498
|
] }),
|
|
499
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ a(Q4, { children: [
|
|
500
500
|
d.steps && (s == null ? void 0 : s.length) && /* @__PURE__ */ M(B4, { graphic: s[T].graphic, headline: s[T].headline }),
|
|
501
501
|
d.rules && /* @__PURE__ */ M(e2, { rules: c, rulesTitle: I, primaryColor: o }),
|
|
502
502
|
d.inviteCard && /* @__PURE__ */ M(
|
|
@@ -521,7 +521,7 @@ const o2 = /* @__PURE__ */ i("div")({
|
|
|
521
521
|
propsAsIs: !1
|
|
522
522
|
});
|
|
523
523
|
var R = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(R || {});
|
|
524
|
-
const g2 = ({ activePage: e = "home", toggleActivePage: n }) => /* @__PURE__ */
|
|
524
|
+
const g2 = ({ activePage: e = "home", toggleActivePage: n }) => /* @__PURE__ */ a(o2, { children: [
|
|
525
525
|
/* @__PURE__ */ M(
|
|
526
526
|
j1,
|
|
527
527
|
{
|
|
@@ -559,8 +559,8 @@ const r2 = /* @__PURE__ */ i("div")({
|
|
|
559
559
|
name: "r",
|
|
560
560
|
class: "ro3ktps",
|
|
561
561
|
propsAsIs: !1
|
|
562
|
-
}), j2 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4N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NiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==", v1 = ({ icon: e, comeBack: n, close: s }) => /* @__PURE__ */ a(r2, { children: [
|
|
563
|
+
/* @__PURE__ */ a("div", { children: [
|
|
564
564
|
n && /* @__PURE__ */ M(A1, { onClick: n, children: /* @__PURE__ */ M("img", { alt: "header-back-icon", src: j2 }) }),
|
|
565
565
|
e && /* @__PURE__ */ M(D2, { alt: "header-icon", src: e })
|
|
566
566
|
] }),
|
|
@@ -574,7 +574,7 @@ const A2 = /* @__PURE__ */ i("div")({
|
|
|
574
574
|
name: "i",
|
|
575
575
|
class: "i1893y85",
|
|
576
576
|
propsAsIs: !1
|
|
577
|
-
}), Z = ({ indicator: e, title: n }) => /* @__PURE__ */
|
|
577
|
+
}), Z = ({ indicator: e, title: n }) => /* @__PURE__ */ a(A2, { children: [
|
|
578
578
|
/* @__PURE__ */ M(u2, { children: e }),
|
|
579
579
|
/* @__PURE__ */ M("p", { children: n })
|
|
580
580
|
] });
|
|
@@ -590,7 +590,7 @@ const d2 = /* @__PURE__ */ i("div")({
|
|
|
590
590
|
name: "n",
|
|
591
591
|
class: "n1whkbqh",
|
|
592
592
|
propsAsIs: !1
|
|
593
|
-
}), u1 = ({ indicator: e, title: n }) => /* @__PURE__ */
|
|
593
|
+
}), u1 = ({ indicator: e, title: n }) => /* @__PURE__ */ a(d2, { children: [
|
|
594
594
|
/* @__PURE__ */ M(T2, { children: n }),
|
|
595
595
|
/* @__PURE__ */ M(C2, { children: e })
|
|
596
596
|
] });
|
|
@@ -658,29 +658,29 @@ const z2 = /* @__PURE__ */ i("div")({
|
|
|
658
658
|
avatar: e,
|
|
659
659
|
name: n,
|
|
660
660
|
points: s,
|
|
661
|
-
friendsRank:
|
|
661
|
+
friendsRank: l,
|
|
662
662
|
rank: N,
|
|
663
663
|
streak: c,
|
|
664
664
|
correct: r,
|
|
665
665
|
incorrect: I,
|
|
666
666
|
inTop: o,
|
|
667
667
|
average: g
|
|
668
|
-
}) => /* @__PURE__ */
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
/* @__PURE__ */
|
|
668
|
+
}) => /* @__PURE__ */ a(z2, { children: [
|
|
669
|
+
/* @__PURE__ */ a(y2, { children: [
|
|
670
|
+
/* @__PURE__ */ a(x2, { children: [
|
|
671
|
+
/* @__PURE__ */ a(f2, { children: [
|
|
672
672
|
e && /* @__PURE__ */ M(p2, { alt: "avatar", src: e }),
|
|
673
673
|
!e && /* @__PURE__ */ M(Q2, { children: Q1(n || "") })
|
|
674
674
|
] }),
|
|
675
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ a(E2, { children: [
|
|
676
676
|
/* @__PURE__ */ M(m2, { children: n }),
|
|
677
|
-
/* @__PURE__ */
|
|
677
|
+
/* @__PURE__ */ a(O2, { children: [
|
|
678
678
|
/* @__PURE__ */ M(w2, { alt: "rank-icon", src: Y2 }),
|
|
679
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ a(h2, { children: [
|
|
680
680
|
/* @__PURE__ */ M(S2, { children: s }),
|
|
681
681
|
"RTS"
|
|
682
682
|
] }),
|
|
683
|
-
/* @__PURE__ */
|
|
683
|
+
/* @__PURE__ */ a(k2, { children: [
|
|
684
684
|
"TOP ",
|
|
685
685
|
o || 0,
|
|
686
686
|
"%"
|
|
@@ -688,12 +688,12 @@ const z2 = /* @__PURE__ */ i("div")({
|
|
|
688
688
|
] })
|
|
689
689
|
] })
|
|
690
690
|
] }),
|
|
691
|
-
/* @__PURE__ */
|
|
692
|
-
/* @__PURE__ */ M(u1, { title: "Friends rank", indicator:
|
|
691
|
+
/* @__PURE__ */ a(v2, { children: [
|
|
692
|
+
/* @__PURE__ */ M(u1, { title: "Friends rank", indicator: l || 0 }),
|
|
693
693
|
/* @__PURE__ */ M(u1, { title: "Global rank", indicator: N || 0 })
|
|
694
694
|
] })
|
|
695
695
|
] }),
|
|
696
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ a(L2, { children: [
|
|
697
697
|
/* @__PURE__ */ M(Z, { indicator: c || 0, title: "Win streak" }),
|
|
698
698
|
/* @__PURE__ */ M(Z, { indicator: r || 0, title: "Correct" }),
|
|
699
699
|
/* @__PURE__ */ M(Z, { indicator: I || 0, title: "Incorrect" }),
|
|
@@ -704,7 +704,7 @@ const U2 = /* @__PURE__ */ i("div")({
|
|
|
704
704
|
name: "i",
|
|
705
705
|
class: "iqbegjm",
|
|
706
706
|
propsAsIs: !1
|
|
707
|
-
}), b2 = ({ comeBack: e, ...n }) => /* @__PURE__ */
|
|
707
|
+
}), b2 = ({ comeBack: e, ...n }) => /* @__PURE__ */ a(U2, { children: [
|
|
708
708
|
/* @__PURE__ */ M(v1, { comeBack: e }),
|
|
709
709
|
/* @__PURE__ */ M(f1, { ...n })
|
|
710
710
|
] }), X = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNMTIgOC4xNzIyMkMxMiA4LjI4NzgzIDExLjk3ODEgOC4zOTU1MyAxMS45MzQyIDguNDk1MzNDMTEuODkwMyA4LjU5NTEzIDExLjgyMiA4LjY4OTkyIDExLjcyOTIgOC43Nzk3TDYuMzY5NDkgMTMuOTQzOUM2LjIxNDYyIDE0LjA5NjUgNi4wMjc0MiAxNC4xNzI5IDUuODA3ODcgMTQuMTcyOUM1LjY1NzUyIDE0LjE3MjkgNS41MjE5MSAxNC4xMzc5IDUuNDAxMDQgMTQuMDY3OUM1LjI4MDE2IDEzLjk5OCA1LjE4MzEgMTMuOTAzOSA1LjEwOTg2IDEzLjc4NTZDNS4wMzY2MiAxMy42NjczIDUgMTMuNTM0NSA1IDEzLjM4NzNDNSAxMy4xNzIxIDUuMDgyODggMTIuOTgxOCA1LjI0ODYzIDEyLjgxNjRMMTAuMDgwNyA4LjE3MDk1TDUuMjQ4NjMgMy41Mjc5OUM1LjA4Mjg4IDMuMzY0MjUgNSAzLjE3NDM5IDUgMi45NTg0MUM1IDIuODExMTggNS4wMzY2MiAyLjY3ODQyIDUuMTA5ODYgMi41NjAxM0M1LjE4MzEgMi40NDE4MyA1LjI4MDE2IDIuMzQ3NzEgNS40MDEwNCAyLjI3Nzc3QzUuNTIxOTEgMi4yMDc4MiA1LjY1NzUyIDIuMTcyODUgNS44MDc4NyAyLjE3Mjg1QzYuMDI3NDIgMi4xNzI4NSA2LjIxNDYyIDIuMjQ3MzEgNi4zNjk0OSAyLjM5NjI0TDExLjcyOTIgNy41NjQ3M0MxMS44MjExIDcuNjU0NTEgMTEuODg5IDcuNzQ5MDkgMTEuOTMyOSA3Ljg0ODQ2QzExLjk3NjggNy45NDc4NCAxMS45OTkxIDguMDU1NzYgMTIgOC4xNzIyMloiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K";
|
|
@@ -765,20 +765,20 @@ const Z2 = /* @__PURE__ */ i("div")({
|
|
|
765
765
|
questionId: e,
|
|
766
766
|
questionType: n,
|
|
767
767
|
questionStatus: s,
|
|
768
|
-
subject:
|
|
768
|
+
subject: l,
|
|
769
769
|
openForVoting: N,
|
|
770
770
|
openQuestion: c,
|
|
771
771
|
status: r
|
|
772
772
|
}) => {
|
|
773
773
|
const I = Me[n];
|
|
774
|
-
return I === void 0 ? null : /* @__PURE__ */
|
|
774
|
+
return I === void 0 ? null : /* @__PURE__ */ a(Z2, { onClick: () => c == null ? void 0 : c(e), children: [
|
|
775
775
|
/* @__PURE__ */ M(R2, { children: /* @__PURE__ */ M(G2, { alt: "question-type-icon", src: I.icon }) }),
|
|
776
|
-
/* @__PURE__ */
|
|
777
|
-
/* @__PURE__ */
|
|
776
|
+
/* @__PURE__ */ a(V2, { children: [
|
|
777
|
+
/* @__PURE__ */ a($2, { children: [
|
|
778
778
|
/* @__PURE__ */ M(_2, { children: I.label }),
|
|
779
779
|
n === p.TRIVIA && s === P1.RESOLVED && /* @__PURE__ */ M(F2, { children: "Expired" })
|
|
780
780
|
] }),
|
|
781
|
-
/* @__PURE__ */ M(P2, { children:
|
|
781
|
+
/* @__PURE__ */ M(P2, { children: l || "" })
|
|
782
782
|
] }),
|
|
783
783
|
N ? /* @__PURE__ */ M(H2, { children: "play" }) : /* @__PURE__ */ M(W2, { children: /* @__PURE__ */ M(B2, { alt: "question-status-icon", src: ie[r] }) })
|
|
784
784
|
] });
|
|
@@ -791,13 +791,13 @@ const ne = /* @__PURE__ */ i("div")({
|
|
|
791
791
|
name: "i",
|
|
792
792
|
class: "isqqly6",
|
|
793
793
|
propsAsIs: !1
|
|
794
|
-
}),
|
|
794
|
+
}), le = /* @__PURE__ */ i("div")({
|
|
795
795
|
name: "r",
|
|
796
796
|
class: "rhkye9e",
|
|
797
797
|
propsAsIs: !1
|
|
798
|
-
}),
|
|
798
|
+
}), ae = ({ questions: e, openQuestion: n }) => /* @__PURE__ */ a(ne, { children: [
|
|
799
799
|
/* @__PURE__ */ M(te, { children: "PICK HISTORY" }),
|
|
800
|
-
/* @__PURE__ */ M(
|
|
800
|
+
/* @__PURE__ */ M(le, { children: e == null ? void 0 : e.map((s) => /* @__PURE__ */ M(se, { openQuestion: n, ...s }, s.questionId)) })
|
|
801
801
|
] });
|
|
802
802
|
const Ne = () => Y1, Y1 = /* @__PURE__ */ i("div")({
|
|
803
803
|
name: "o",
|
|
@@ -843,7 +843,7 @@ const Ne = () => Y1, Y1 = /* @__PURE__ */ i("div")({
|
|
|
843
843
|
icon: e,
|
|
844
844
|
id: n,
|
|
845
845
|
title: s,
|
|
846
|
-
questionId:
|
|
846
|
+
questionId: l,
|
|
847
847
|
disabled: N,
|
|
848
848
|
percentage: c,
|
|
849
849
|
onVote: r,
|
|
@@ -856,19 +856,19 @@ const Ne = () => Y1, Y1 = /* @__PURE__ */ i("div")({
|
|
|
856
856
|
questionType: x
|
|
857
857
|
}) => {
|
|
858
858
|
var T;
|
|
859
|
-
return g && A ? /* @__PURE__ */
|
|
859
|
+
return g && A ? /* @__PURE__ */ a(
|
|
860
860
|
ce,
|
|
861
861
|
{
|
|
862
862
|
"data-answeredCorrect": (T = !D || o) == null ? void 0 : T.toString(),
|
|
863
863
|
"data-questionAnswered": "false",
|
|
864
864
|
children: [
|
|
865
865
|
/* @__PURE__ */ M(d1, { style: { width: `${c}%` } }),
|
|
866
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ a(T1, { disabled: N, onClick: () => r(l, n), children: [
|
|
867
867
|
e && /* @__PURE__ */ M(C1, { alt: "option-icon", src: e }),
|
|
868
868
|
/* @__PURE__ */ M(z1, { children: s }),
|
|
869
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ a(y1, { children: [
|
|
870
870
|
D && o && /* @__PURE__ */ M(L1, { children: /* @__PURE__ */ M(x1, { alt: "icon-correct", src: A ? p1 : K }) }),
|
|
871
|
-
/* @__PURE__ */
|
|
871
|
+
/* @__PURE__ */ a(_, { children: [
|
|
872
872
|
c,
|
|
873
873
|
"%"
|
|
874
874
|
] })
|
|
@@ -876,25 +876,25 @@ const Ne = () => Y1, Y1 = /* @__PURE__ */ i("div")({
|
|
|
876
876
|
] })
|
|
877
877
|
]
|
|
878
878
|
}
|
|
879
|
-
) : /* @__PURE__ */
|
|
879
|
+
) : /* @__PURE__ */ a(Y1, { "data-questionAnswered": g == null ? void 0 : g.toString(), children: [
|
|
880
880
|
g && /* @__PURE__ */ M(d1, { style: { width: `${c}%` } }),
|
|
881
|
-
/* @__PURE__ */
|
|
881
|
+
/* @__PURE__ */ a(
|
|
882
882
|
T1,
|
|
883
883
|
{
|
|
884
884
|
disabled: N,
|
|
885
885
|
onClick: () => {
|
|
886
|
-
I(!0), r(
|
|
886
|
+
I(!0), r(l, n);
|
|
887
887
|
},
|
|
888
888
|
children: [
|
|
889
889
|
e && /* @__PURE__ */ M(C1, { alt: "option-icon", src: e }),
|
|
890
890
|
/* @__PURE__ */ M(z1, { children: s }),
|
|
891
|
-
g ? /* @__PURE__ */
|
|
891
|
+
g ? /* @__PURE__ */ a(y1, { children: [
|
|
892
892
|
D && o && /* @__PURE__ */ M(L1, { children: /* @__PURE__ */ M(x1, { alt: "icon-correct", src: A ? p1 : K }) }),
|
|
893
|
-
/* @__PURE__ */
|
|
893
|
+
/* @__PURE__ */ a(_, { children: [
|
|
894
894
|
c,
|
|
895
895
|
"%"
|
|
896
896
|
] })
|
|
897
|
-
] }) : x === p.PREDICTION ? /* @__PURE__ */
|
|
897
|
+
] }) : x === p.PREDICTION ? /* @__PURE__ */ a(_, { children: [
|
|
898
898
|
j,
|
|
899
899
|
" pts"
|
|
900
900
|
] }) : null
|
|
@@ -939,7 +939,7 @@ const oe = /* @__PURE__ */ i("div")({
|
|
|
939
939
|
title: e,
|
|
940
940
|
questionId: n,
|
|
941
941
|
options: s,
|
|
942
|
-
questionAnswered:
|
|
942
|
+
questionAnswered: l,
|
|
943
943
|
feedbackMessages: N,
|
|
944
944
|
questionAnsweredCorrectly: c,
|
|
945
945
|
questionType: r
|
|
@@ -952,9 +952,9 @@ const oe = /* @__PURE__ */ i("div")({
|
|
|
952
952
|
);
|
|
953
953
|
return v(() => {
|
|
954
954
|
g(!1);
|
|
955
|
-
}, [s, g]), /* @__PURE__ */
|
|
955
|
+
}, [s, g]), /* @__PURE__ */ a(oe, { children: [
|
|
956
956
|
/* @__PURE__ */ M(ge, { children: e }),
|
|
957
|
-
/* @__PURE__ */
|
|
957
|
+
/* @__PURE__ */ a(re, { children: [
|
|
958
958
|
I && /* @__PURE__ */ M(De, { children: "Loading..." }),
|
|
959
959
|
s.map((D) => /* @__PURE__ */ M(
|
|
960
960
|
Ie,
|
|
@@ -967,9 +967,9 @@ const oe = /* @__PURE__ */ i("div")({
|
|
|
967
967
|
D.id
|
|
968
968
|
))
|
|
969
969
|
] }),
|
|
970
|
-
|
|
970
|
+
l && r === p.TRIVIA && /* @__PURE__ */ a(je, { children: [
|
|
971
971
|
/* @__PURE__ */ M(Ae, { alt: "reaction-to-answer", src: c ? K : Te }),
|
|
972
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ a("div", { children: [
|
|
973
973
|
/* @__PURE__ */ M(ue, { children: c ? N.correctFeedback.title : N.incorrectFeedback.title }),
|
|
974
974
|
/* @__PURE__ */ M(de, { children: c ? N.correctFeedback.description : N.incorrectFeedback.description })
|
|
975
975
|
] })
|
|
@@ -1023,16 +1023,16 @@ const ze = /* @__PURE__ */ i("div")({
|
|
|
1023
1023
|
}), ke = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIxLjI1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDEuMjUgMCkiIGZpbGw9IndoaXRlIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB5PSI4Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwIDguNzUpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo=", ve = ({
|
|
1024
1024
|
close: e,
|
|
1025
1025
|
action: n,
|
|
1026
|
-
data: { icon: s, header:
|
|
1027
|
-
}) => /* @__PURE__ */
|
|
1026
|
+
data: { icon: s, header: l, title: N, subtitle: c, graphicBg: r, sponsorLogo: I }
|
|
1027
|
+
}) => /* @__PURE__ */ a(ze, { children: [
|
|
1028
1028
|
/* @__PURE__ */ M(he, { onClick: e, children: /* @__PURE__ */ M(Se, { alt: "icon-close-onboarding-inapp", src: ke }) }),
|
|
1029
1029
|
/* @__PURE__ */ M(ye, { style: { backgroundImage: `url(${r || ""})` }, children: s && /* @__PURE__ */ M(Le, { alt: "onboarding-inapp-icon", src: s }) }),
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
/* @__PURE__ */
|
|
1032
|
-
/* @__PURE__ */ M("div", { children: I ? /* @__PURE__ */
|
|
1030
|
+
/* @__PURE__ */ a(xe, { children: [
|
|
1031
|
+
/* @__PURE__ */ a("div", { children: [
|
|
1032
|
+
/* @__PURE__ */ M("div", { children: I ? /* @__PURE__ */ a(S, { children: [
|
|
1033
1033
|
/* @__PURE__ */ M(pe, { alt: "sponsor-logo", src: I }),
|
|
1034
1034
|
/* @__PURE__ */ M(Ee, { children: "Presents" })
|
|
1035
|
-
] }) :
|
|
1035
|
+
] }) : l || "" }),
|
|
1036
1036
|
/* @__PURE__ */ M(me, { children: N || "" }),
|
|
1037
1037
|
/* @__PURE__ */ M(Oe, { children: c || "" })
|
|
1038
1038
|
] }),
|
|
@@ -1051,16 +1051,16 @@ const Qe = /* @__PURE__ */ i("div")({
|
|
|
1051
1051
|
total: n,
|
|
1052
1052
|
...s
|
|
1053
1053
|
}) => {
|
|
1054
|
-
const
|
|
1054
|
+
const l = W1(null), N = fe[s.type] || S1;
|
|
1055
1055
|
return v(() => {
|
|
1056
|
-
|
|
1056
|
+
l.current !== null && s.hiding && l.current.animate([{ right: "0" }, { right: "-100%" }], {
|
|
1057
1057
|
duration: 300,
|
|
1058
1058
|
fill: "forwards"
|
|
1059
1059
|
});
|
|
1060
1060
|
}, [s.hiding]), /* @__PURE__ */ M(
|
|
1061
1061
|
Qe,
|
|
1062
1062
|
{
|
|
1063
|
-
ref:
|
|
1063
|
+
ref: l,
|
|
1064
1064
|
style: { zIndex: e + 1, transform: `translateY(${100 * (n - e - 1)}%)` },
|
|
1065
1065
|
children: /* @__PURE__ */ M(N, { ...s })
|
|
1066
1066
|
}
|
|
@@ -1072,10 +1072,10 @@ const Ue = /* @__PURE__ */ i("div")({
|
|
|
1072
1072
|
propsAsIs: !1
|
|
1073
1073
|
}), be = ({ notificationsStore: e }) => {
|
|
1074
1074
|
const n = u(e);
|
|
1075
|
-
return /* @__PURE__ */ M(Ue, { children: n == null ? void 0 : n.map((s,
|
|
1075
|
+
return /* @__PURE__ */ M(Ue, { children: n == null ? void 0 : n.map((s, l) => /* @__PURE__ */ M(
|
|
1076
1076
|
Ye,
|
|
1077
1077
|
{
|
|
1078
|
-
index:
|
|
1078
|
+
index: l,
|
|
1079
1079
|
total: n.length,
|
|
1080
1080
|
...s
|
|
1081
1081
|
},
|
|
@@ -1092,7 +1092,7 @@ const Ue = /* @__PURE__ */ i("div")({
|
|
|
1092
1092
|
) : /* @__PURE__ */ M("div", { children: "wait user..." });
|
|
1093
1093
|
}, Re = ({ store: e, openQuestion: n }) => {
|
|
1094
1094
|
const s = u(e);
|
|
1095
|
-
return s != null && s.data ? /* @__PURE__ */ M(
|
|
1095
|
+
return s != null && s.data ? /* @__PURE__ */ M(ae, { openQuestion: n, questions: s.data }) : /* @__PURE__ */ M("div", { children: "wait questions..." });
|
|
1096
1096
|
};
|
|
1097
1097
|
const Ge = () => (e) => e.isSuccess ? "#f1be1c" : "#da3732", Ve = /* @__PURE__ */ i("div")({
|
|
1098
1098
|
name: "n",
|
|
@@ -1150,9 +1150,9 @@ const _e = /* @__PURE__ */ i("div")({
|
|
|
1150
1150
|
name: "r",
|
|
1151
1151
|
class: "r16m161p",
|
|
1152
1152
|
propsAsIs: !1
|
|
1153
|
-
}), F = ({ points: e }) => /* @__PURE__ */
|
|
1153
|
+
}), F = ({ points: e }) => /* @__PURE__ */ a(_e, { children: [
|
|
1154
1154
|
/* @__PURE__ */ M(Fe, { children: "YOU WON" }),
|
|
1155
|
-
/* @__PURE__ */
|
|
1155
|
+
/* @__PURE__ */ a(Je, { children: [
|
|
1156
1156
|
/* @__PURE__ */ M(qe, { children: e }),
|
|
1157
1157
|
/* @__PURE__ */ M(Xe, { children: "PTS" })
|
|
1158
1158
|
] })
|
|
@@ -1160,21 +1160,21 @@ const _e = /* @__PURE__ */ i("div")({
|
|
|
1160
1160
|
logo: e,
|
|
1161
1161
|
points: n,
|
|
1162
1162
|
questionAnswered: s,
|
|
1163
|
-
questionAnsweredCorrectly:
|
|
1163
|
+
questionAnsweredCorrectly: l,
|
|
1164
1164
|
questionType: N,
|
|
1165
1165
|
closeQuestion: c,
|
|
1166
1166
|
setTimeToExpire: r
|
|
1167
1167
|
}) => {
|
|
1168
|
-
const I = !s && N !== p.PREDICTION, o = s && N === p.TRIVIA, g = o &&
|
|
1169
|
-
return /* @__PURE__ */
|
|
1170
|
-
/* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */
|
|
1168
|
+
const I = !s && N !== p.PREDICTION, o = s && N === p.TRIVIA, g = o && l, D = o && !l, A = s && N === p.PREDICTION;
|
|
1169
|
+
return /* @__PURE__ */ a(Ve, { children: [
|
|
1170
|
+
/* @__PURE__ */ a(Pe, { children: [
|
|
1171
|
+
/* @__PURE__ */ a(Be, { children: [
|
|
1172
1172
|
I && /* @__PURE__ */ M(k1, { setTimeToExpire: r }),
|
|
1173
|
-
g && /* @__PURE__ */
|
|
1173
|
+
g && /* @__PURE__ */ a(S, { children: [
|
|
1174
1174
|
/* @__PURE__ */ M(F, { points: n }),
|
|
1175
1175
|
/* @__PURE__ */ M(E1, { isSuccess: !0, children: /* @__PURE__ */ M(m1, { alt: "reaction-icon", src: Ke }) })
|
|
1176
1176
|
] }),
|
|
1177
|
-
D && /* @__PURE__ */
|
|
1177
|
+
D && /* @__PURE__ */ a(S, { children: [
|
|
1178
1178
|
/* @__PURE__ */ M(F, { points: 0 }),
|
|
1179
1179
|
/* @__PURE__ */ M(E1, { isSuccess: !1, children: /* @__PURE__ */ M(m1, { alt: "reaction-icon", src: eM }) })
|
|
1180
1180
|
] }),
|
|
@@ -1184,22 +1184,22 @@ const _e = /* @__PURE__ */ i("div")({
|
|
|
1184
1184
|
] }),
|
|
1185
1185
|
e && /* @__PURE__ */ M($e, { src: e })
|
|
1186
1186
|
] });
|
|
1187
|
-
};
|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5OTk4SDM1LjA2Wk0xNS43NDY3IDExLjgzOTNDMTYuMDM5MiAxMC41NTQ1IDE3LjAxNjQgOS43MTU0NSAxOC4yMzU4IDkuNzE1NDVDMTkuNTc4MiA5LjcxNTQ1IDIwLjUwNTEgMTAuNTI4OSAyMC43NDkyIDExLjgzOTNDMjAuODUxNyAxMS44MzkzIDE1Ljc0NjcgMTEuODM5MyAxNS43NDY3IDExLjgzOTNaTTMyLjI0MiAxNy4yMDE2QzMwLjUzMDcgMTcuMjAxNiAyOS40NjY4IDE1LjU3NDggMjkuNDY2OCAxMy44NzY3QzI5LjQ2NjggMTIuMDYxNyAzMC4zOTE5IDEwLjMxNiAzMi4yNDIgMTAuMzE2QzM0LjE2MDEgMTAuMzE2IDM0LjkyNCAxMi4wNjE3IDM0LjkyNCAxMy44NzY3QzM0LjkyNCAxNS41OTc2IDM0LjExNDQgMTcuMjAxNiAzMi4yNDIgMTcuMjAxNloiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==";
|
|
1188
|
+
const sM = /* @__PURE__ */ i("div")({
|
|
1189
|
+
name: "k",
|
|
1190
|
+
class: "k1qd1atw",
|
|
1191
1191
|
propsAsIs: !1
|
|
1192
1192
|
}), nM = ({
|
|
1193
1193
|
openedQuestion: e,
|
|
1194
1194
|
closeQuestion: n,
|
|
1195
1195
|
vote: s
|
|
1196
1196
|
}) => {
|
|
1197
|
-
var
|
|
1197
|
+
var l;
|
|
1198
1198
|
const [N, c] = y(!1), r = G((g) => {
|
|
1199
1199
|
c(g);
|
|
1200
1200
|
}, [c]), I = k(() => e == null ? void 0 : e.answers.find((g) => g.youVoted === !0), [e]), o = k(() => !!(e != null && e.answers.find((g) => g.correct === !0)), [e]);
|
|
1201
1201
|
return e ? /* @__PURE__ */ M(sM, {
|
|
1202
|
-
children: /* @__PURE__ */
|
|
1202
|
+
children: /* @__PURE__ */ a("div", {
|
|
1203
1203
|
children: [/* @__PURE__ */ M(MM, {
|
|
1204
1204
|
points: (I == null ? void 0 : I.points) || 0,
|
|
1205
1205
|
questionAnswered: !!I,
|
|
@@ -1211,7 +1211,7 @@ const iM = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iMjIiIHZpZX
|
|
|
1211
1211
|
}), /* @__PURE__ */ M("div", {
|
|
1212
1212
|
children: /* @__PURE__ */ M(Ce, {
|
|
1213
1213
|
title: e.subject,
|
|
1214
|
-
feedbackMessages: (
|
|
1214
|
+
feedbackMessages: (l = e.options) == null ? void 0 : l.options.value,
|
|
1215
1215
|
questionType: e.type,
|
|
1216
1216
|
questionId: e.id,
|
|
1217
1217
|
questionAnswered: !!I,
|
|
@@ -1239,11 +1239,11 @@ const tM = /* @__PURE__ */ i("div")({
|
|
|
1239
1239
|
name: "e",
|
|
1240
1240
|
class: "e1q4ysxt",
|
|
1241
1241
|
propsAsIs: !1
|
|
1242
|
-
}),
|
|
1242
|
+
}), lM = /* @__PURE__ */ i("div")({
|
|
1243
1243
|
name: "o",
|
|
1244
1244
|
class: "ouyy0pt",
|
|
1245
1245
|
propsAsIs: !1
|
|
1246
|
-
}),
|
|
1246
|
+
}), aM = /* @__PURE__ */ i("div")({
|
|
1247
1247
|
name: "n",
|
|
1248
1248
|
class: "n19nxf9u",
|
|
1249
1249
|
propsAsIs: !1
|
|
@@ -1334,10 +1334,10 @@ const yM = /* @__PURE__ */ i("div")({
|
|
|
1334
1334
|
name: "x",
|
|
1335
1335
|
class: "xfme1wf",
|
|
1336
1336
|
propsAsIs: !1
|
|
1337
|
-
}), wM = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikh5cGVybGluayI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xLjUyIDhDMS41MiA2LjYzMiAyLjYzM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xMC44NDM3QzIwLjU2NjIgOS44MjU4NCAxOS42ODk2IDkgMTguNjA5IDlaTTE4LjYwOSAxMi42ODc1QzE3LjYzMDQgMTIuNjg3NSAxNi43ODE4IDEzLjE3OTYgMTYuMzI1NiAxMy45MTY2QzE3LjMwNDIgMTQuMDM5MSAxOC4xNDc4IDE0LjUyNCAxOC42NzAyIDE1LjI2MUMxOC42NzAyIDE1LjAxNjEgMTguNjA5IDE0Ljc3NjEgMTguNjA5IDE0LjUzMTJDMTguNjA5IDEzLjg1NDIgMTguODA3OCAxMy4yMzcyIDE5LjIwMDMgMTIuNzQ1MUMxOS4wMDQgMTIuNjgyNyAxOC44MDUyIDEyLjY4NzUgMTguNjA5IDEyLjY4NzVaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjQiLz4KPC9zdmc+Cg==", SM = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlNoYXJlIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTExIDQuOTY1VjEuMTI1TDE4IDcuODQ1TDExIDE0LjU2NVYxMC42MjlDNiAxMC42MjkgMi41IDEyLjE2NSAwIDE1LjUyNUMxIDEwLjcyNSA0IDUuOTI1IDExIDQuOTY1WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K", kM = ({ title: e, description: n, onClick: s }) => /* @__PURE__ */ a(yM, { onClick: s, children: [
|
|
1338
1338
|
/* @__PURE__ */ M(LM, { alt: "icon-link", src: wM }),
|
|
1339
1339
|
/* @__PURE__ */ M(xM, { alt: "friends-icon", src: hM }),
|
|
1340
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ a(pM, { children: [
|
|
1341
1341
|
/* @__PURE__ */ M(EM, { children: e }),
|
|
1342
1342
|
/* @__PURE__ */ M(mM, { children: n })
|
|
1343
1343
|
] }),
|
|
@@ -1379,14 +1379,14 @@ const vM = /* @__PURE__ */ i("div")({
|
|
|
1379
1379
|
name: "l",
|
|
1380
1380
|
class: "l1csgeuk",
|
|
1381
1381
|
propsAsIs: !1
|
|
1382
|
-
}), VM = ({ rank: e, avatar: n, name: s, points:
|
|
1382
|
+
}), VM = ({ rank: e, avatar: n, name: s, points: l, openItemDetail: N }) => /* @__PURE__ */ a(vM, { onClick: N, children: [
|
|
1383
1383
|
/* @__PURE__ */ M(QM, { children: e || 0 }),
|
|
1384
1384
|
n ? /* @__PURE__ */ M(fM, { alt: "leaderboard-item-avatar", src: n }) : /* @__PURE__ */ M(YM, { children: Q1(s || "") }),
|
|
1385
|
-
/* @__PURE__ */
|
|
1385
|
+
/* @__PURE__ */ a(UM, { children: [
|
|
1386
1386
|
/* @__PURE__ */ M(bM, { children: /* @__PURE__ */ M(ZM, { children: s || "" }) }),
|
|
1387
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ a(RM, { children: [
|
|
1388
1388
|
/* @__PURE__ */ M(GM, { children: "PTS" }),
|
|
1389
|
-
|
|
1389
|
+
l || 0
|
|
1390
1390
|
] })
|
|
1391
1391
|
] })
|
|
1392
1392
|
] });
|
|
@@ -1394,12 +1394,12 @@ const $M = /* @__PURE__ */ i("div")({
|
|
|
1394
1394
|
name: "t",
|
|
1395
1395
|
class: "t1txmonn",
|
|
1396
1396
|
propsAsIs: !1
|
|
1397
|
-
}), PM = ({ items: e, openItemDetail: n }) => /* @__PURE__ */
|
|
1397
|
+
}), PM = ({ items: e, openItemDetail: n }) => /* @__PURE__ */ a($M, { children: [
|
|
1398
1398
|
e.map((s) => /* @__PURE__ */ M(VM, { ...s, openItemDetail: () => n(s.userId) }, s.userId)),
|
|
1399
1399
|
/* @__PURE__ */ M(kM, { title: "Invite Link", description: "Challenge friends!", onClick: () => {
|
|
1400
1400
|
} })
|
|
1401
1401
|
] }), HM = ({ store: e }) => {
|
|
1402
|
-
const { data: n } = u(e), [s,
|
|
1402
|
+
const { data: n } = u(e), [s, l] = y(void 0);
|
|
1403
1403
|
if (!n)
|
|
1404
1404
|
return /* @__PURE__ */ M("div", { children: "wait leader board..." });
|
|
1405
1405
|
const N = (c) => {
|
|
@@ -1408,9 +1408,9 @@ const $M = /* @__PURE__ */ i("div")({
|
|
|
1408
1408
|
var g;
|
|
1409
1409
|
return ((g = o.attributes) == null ? void 0 : g.userId) === c;
|
|
1410
1410
|
})) == null ? void 0 : r.attributes;
|
|
1411
|
-
|
|
1411
|
+
l(I);
|
|
1412
1412
|
};
|
|
1413
|
-
return /* @__PURE__ */
|
|
1413
|
+
return /* @__PURE__ */ a(S, { children: [
|
|
1414
1414
|
s && /* @__PURE__ */ M(b2, { comeBack: () => N(null), ...s }),
|
|
1415
1415
|
!s && /* @__PURE__ */ M(
|
|
1416
1416
|
PM,
|
|
@@ -1445,7 +1445,7 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1445
1445
|
gamification: e,
|
|
1446
1446
|
sdk: n
|
|
1447
1447
|
}) => {
|
|
1448
|
-
var s,
|
|
1448
|
+
var s, l, N, c, r, I, o, g, D, A, j, x, T, z, d, C, O, E, t1, l1, a1, N1, c1;
|
|
1449
1449
|
const U1 = u(e.status), b1 = u(e.onboardingStatus), I1 = u(e.openedQuestion), { slStreamId: Y } = u(n.sdkStore), L = u(e.featureSettings), [$, Z1] = y(R.HOME);
|
|
1450
1450
|
if (U1 !== h.Ready)
|
|
1451
1451
|
return /* @__PURE__ */ M("div", { children: "wait..." });
|
|
@@ -1459,7 +1459,7 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1459
1459
|
{
|
|
1460
1460
|
closeFeature: n.closeFeature,
|
|
1461
1461
|
gamification: e,
|
|
1462
|
-
steps: (
|
|
1462
|
+
steps: (l = (s = L.inplayGame) == null ? void 0 : s.onboarding) == null ? void 0 : l.steps,
|
|
1463
1463
|
gameIcon: (r = (c = (N = L.inplayGame) == null ? void 0 : N.overview) == null ? void 0 : c.media) == null ? void 0 : r.gameIcon,
|
|
1464
1464
|
sponsorLogo: (g = (o = (I = L.inplayGame) == null ? void 0 : I.overview) == null ? void 0 : o.media) == null ? void 0 : g.sponsorLogo,
|
|
1465
1465
|
rules: (A = (D = L.inplayGame) == null ? void 0 : D.rules) == null ? void 0 : A.rules,
|
|
@@ -1467,7 +1467,7 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1467
1467
|
rulesTitle: (z = (T = L.inplayGame) == null ? void 0 : T.rules) == null ? void 0 : z.heading,
|
|
1468
1468
|
primaryColor: (O = (C = (d = L.inplayGame) == null ? void 0 : d.overview) == null ? void 0 : C.appearance) == null ? void 0 : O.primaryColor,
|
|
1469
1469
|
inviteCardTitle: (t1 = (E = L.inplayGame) == null ? void 0 : E.inviteCard) == null ? void 0 : t1.heading,
|
|
1470
|
-
inviteCardSubtext: (
|
|
1470
|
+
inviteCardSubtext: (a1 = (l1 = L.inplayGame) == null ? void 0 : l1.inviteCard) == null ? void 0 : a1.subtext,
|
|
1471
1471
|
inviteCardBtnLabel: (c1 = (N1 = L.inplayGame) == null ? void 0 : N1.inviteCard) == null ? void 0 : c1.buttonLabel
|
|
1472
1472
|
}
|
|
1473
1473
|
) });
|
|
@@ -1478,13 +1478,13 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1478
1478
|
}, V1 = (Q, $1) => {
|
|
1479
1479
|
e.submitAnswer(Q, $1);
|
|
1480
1480
|
};
|
|
1481
|
-
return /* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ a(m, { children: [
|
|
1482
1482
|
/* @__PURE__ */ M(g2, { activePage: $, toggleActivePage: (Q) => {
|
|
1483
1483
|
Z1(Q);
|
|
1484
1484
|
} }),
|
|
1485
|
-
$ === R.HOME && /* @__PURE__ */
|
|
1485
|
+
$ === R.HOME && /* @__PURE__ */ a(S, { children: [
|
|
1486
1486
|
/* @__PURE__ */ M(WM, { children: e.userSummary && /* @__PURE__ */ M(Ze, { store: e.userSummary.getStore() }) }),
|
|
1487
|
-
/* @__PURE__ */
|
|
1487
|
+
/* @__PURE__ */ a(BM, { children: [
|
|
1488
1488
|
e.questions && /* @__PURE__ */ M(Re, { openQuestion: R1, store: e.questions.getStore() }),
|
|
1489
1489
|
I1 && /* @__PURE__ */ M(nM, { closeQuestion: G1, vote: V1, openedQuestion: I1 })
|
|
1490
1490
|
] })
|
|
@@ -1502,9 +1502,9 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1502
1502
|
default:
|
|
1503
1503
|
return null;
|
|
1504
1504
|
}
|
|
1505
|
-
}, qM = ({ title: e, image: n, questionId: s, imageMode:
|
|
1506
|
-
/* @__PURE__ */ M(
|
|
1507
|
-
/* @__PURE__ */
|
|
1505
|
+
}, qM = ({ title: e, image: n, questionId: s, imageMode: l, openInsight: N }) => /* @__PURE__ */ a(tM, { onClick: () => N(s), children: [
|
|
1506
|
+
/* @__PURE__ */ M(aM, { children: n && JM(l, n) }),
|
|
1507
|
+
/* @__PURE__ */ a(lM, { children: [
|
|
1508
1508
|
/* @__PURE__ */ M(oM, { children: e || "" }),
|
|
1509
1509
|
/* @__PURE__ */ M(gM, { alt: "next-icon", src: X })
|
|
1510
1510
|
] })
|
|
@@ -1515,24 +1515,24 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1515
1515
|
image: e,
|
|
1516
1516
|
title: n,
|
|
1517
1517
|
description: s,
|
|
1518
|
-
webLinkLabel:
|
|
1518
|
+
webLinkLabel: l,
|
|
1519
1519
|
webLink: N,
|
|
1520
1520
|
closeHighlights: c,
|
|
1521
1521
|
closeInsight: r
|
|
1522
|
-
}) => /* @__PURE__ */
|
|
1522
|
+
}) => /* @__PURE__ */ a(jM, { children: [
|
|
1523
1523
|
/* @__PURE__ */ M(v1, { close: c, comeBack: r }),
|
|
1524
1524
|
e && /* @__PURE__ */ M(AM, { alt: "detail-insight-image", src: e }),
|
|
1525
|
-
/* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ a(uM, { children: [
|
|
1526
1526
|
n && /* @__PURE__ */ M(dM, { children: n }),
|
|
1527
1527
|
s && /* @__PURE__ */ M(TM, { children: s })
|
|
1528
1528
|
] }),
|
|
1529
|
-
N &&
|
|
1530
|
-
|
|
1529
|
+
N && l && /* @__PURE__ */ a(CM, { href: N, target: "_blank", children: [
|
|
1530
|
+
l,
|
|
1531
1531
|
/* @__PURE__ */ M(zM, { alt: "link-icon", src: e3 })
|
|
1532
1532
|
] })
|
|
1533
1533
|
] }), i3 = ({ openedInsight: e, closeHighlights: n, closeInsight: s }) => {
|
|
1534
|
-
var
|
|
1535
|
-
const o = ((
|
|
1534
|
+
var l, N, c, r, I;
|
|
1535
|
+
const o = ((l = e.options) == null ? void 0 : l.options.case) === "factoid" ? {
|
|
1536
1536
|
image: e.options.options.value.image,
|
|
1537
1537
|
body: e.options.options.value.body,
|
|
1538
1538
|
webLink: (N = e.options.options.value.webLink) == null ? void 0 : N.url,
|
|
@@ -1551,13 +1551,13 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1551
1551
|
}
|
|
1552
1552
|
);
|
|
1553
1553
|
}, s3 = ({ highlights: e, sdk: n }) => {
|
|
1554
|
-
const s = u(e.status),
|
|
1555
|
-
return s !== h.Ready ? /* @__PURE__ */ M("div", { children: "wait..." }) : N != null && N.loading ? /* @__PURE__ */ M(m, { children: /* @__PURE__ */ M("div", { children: "Event is loading" }) }) : N != null && N.data ? e.insights === void 0 ? /* @__PURE__ */ M("div", { children: "wait insights..." }) : /* @__PURE__ */
|
|
1556
|
-
!
|
|
1557
|
-
|
|
1554
|
+
const s = u(e.status), l = u(e.openedInsight), { slStreamId: N } = u(n.sdkStore);
|
|
1555
|
+
return s !== h.Ready ? /* @__PURE__ */ M("div", { children: "wait..." }) : N != null && N.loading ? /* @__PURE__ */ M(m, { children: /* @__PURE__ */ M("div", { children: "Event is loading" }) }) : N != null && N.data ? e.insights === void 0 ? /* @__PURE__ */ M("div", { children: "wait insights..." }) : /* @__PURE__ */ a(m, { children: [
|
|
1556
|
+
!l && /* @__PURE__ */ M(KM, { highlights: e, store: e.insights.getStore() }),
|
|
1557
|
+
l && /* @__PURE__ */ M(
|
|
1558
1558
|
i3,
|
|
1559
1559
|
{
|
|
1560
|
-
openedInsight:
|
|
1560
|
+
openedInsight: l,
|
|
1561
1561
|
closeHighlights: e.closeFeature,
|
|
1562
1562
|
closeInsight: e.closeHighlight
|
|
1563
1563
|
}
|
|
@@ -1570,7 +1570,7 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1570
1570
|
throw console.log("login err", s), s;
|
|
1571
1571
|
}
|
|
1572
1572
|
}, anonymousLogin: e.anonymousAuthorization, host: e.host }), t3 = ({ activeFeature: e, sdk: n }) => {
|
|
1573
|
-
const [s,
|
|
1573
|
+
const [s, l] = y(null), { organizationSettings: N, streamSettings: c } = u(n.sdkStore), r = k(() => {
|
|
1574
1574
|
const o = (c == null ? void 0 : c.data) || (N == null ? void 0 : N.data);
|
|
1575
1575
|
return o != null && o.overlays ? o.overlays : [];
|
|
1576
1576
|
}, [N, c]);
|
|
@@ -1578,11 +1578,11 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1578
1578
|
const o = n.getFeatures();
|
|
1579
1579
|
if (e)
|
|
1580
1580
|
for (const [g, D] of o)
|
|
1581
|
-
g === e ? D.status.get() === h.Suspended && (D.enable(),
|
|
1581
|
+
g === e ? D.status.get() === h.Suspended && (D.enable(), l(D)) : D.status.get() === h.Ready && D.disable();
|
|
1582
1582
|
else {
|
|
1583
1583
|
for (const [, g] of o)
|
|
1584
1584
|
g.status.get() === h.Ready && g.disable();
|
|
1585
|
-
|
|
1585
|
+
l(null);
|
|
1586
1586
|
}
|
|
1587
1587
|
return () => {
|
|
1588
1588
|
for (const [, g] of o)
|
|
@@ -1590,11 +1590,11 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1590
1590
|
};
|
|
1591
1591
|
}, [e, n]);
|
|
1592
1592
|
const I = k(() => s ? s.featureConfig.get().type === q.GAMES ? s ? /* @__PURE__ */ M("div", { children: /* @__PURE__ */ M(FM, { gamification: s, sdk: n }) }) : /* @__PURE__ */ M("div", { children: "wait gamification..." }) : s.featureConfig.get().type === q.HIGHLIGHTS ? s ? /* @__PURE__ */ M("div", { children: /* @__PURE__ */ M(s3, { highlights: s, sdk: n }) }) : /* @__PURE__ */ M("div", { children: "wait highlights..." }) : /* @__PURE__ */ M("div", { children: "unknown feature" }) : null, [n, s]);
|
|
1593
|
-
return /* @__PURE__ */
|
|
1594
|
-
/* @__PURE__ */
|
|
1593
|
+
return /* @__PURE__ */ a("div", { children: [
|
|
1594
|
+
/* @__PURE__ */ a(_M, { children: [
|
|
1595
1595
|
/* @__PURE__ */ M(J, { onClick: () => n.closeFeature(), disabled: !I, children: "close" }),
|
|
1596
1596
|
/* @__PURE__ */ M(J, { onClick: () => n.logout(), children: "logout" }),
|
|
1597
|
-
r.map((o) => /* @__PURE__ */
|
|
1597
|
+
r.map((o) => /* @__PURE__ */ a(
|
|
1598
1598
|
J,
|
|
1599
1599
|
{
|
|
1600
1600
|
onClick: () => n.openFeature(o.type),
|
|
@@ -1611,14 +1611,14 @@ const m = /* @__PURE__ */ i("div")({
|
|
|
1611
1611
|
] }),
|
|
1612
1612
|
I
|
|
1613
1613
|
] });
|
|
1614
|
-
},
|
|
1615
|
-
const n = u(e.organizationStore()), s = u(e.getUserStore()),
|
|
1616
|
-
return n.loading ? /* @__PURE__ */ M("div", { children: "authentication..." }) : n.data ? s.loading ? /* @__PURE__ */ M("div", { children: "authentication..." }) : s.data ? /* @__PURE__ */
|
|
1614
|
+
}, l3 = ({ sdk: e }) => {
|
|
1615
|
+
const n = u(e.organizationStore()), s = u(e.getUserStore()), l = u(e.getActiveFeature());
|
|
1616
|
+
return n.loading ? /* @__PURE__ */ M("div", { children: "authentication..." }) : n.data ? s.loading ? /* @__PURE__ */ M("div", { children: "authentication..." }) : s.data ? /* @__PURE__ */ a(S, { children: [
|
|
1617
1617
|
/* @__PURE__ */ M(be, { notificationsStore: e.getNotificationsStore() }),
|
|
1618
|
-
/* @__PURE__ */ M(t3, { sdk: e, activeFeature:
|
|
1618
|
+
/* @__PURE__ */ M(t3, { sdk: e, activeFeature: l })
|
|
1619
1619
|
] }) : /* @__PURE__ */ M(n3, { sdk: e }) : /* @__PURE__ */ M("div", { children: "wrong sdk key..." });
|
|
1620
1620
|
};
|
|
1621
|
-
const
|
|
1621
|
+
const a3 = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
1622
1622
|
width: 25,
|
|
1623
1623
|
height: 24,
|
|
1624
1624
|
viewBox: "0 0 25 24",
|
|
@@ -2102,7 +2102,7 @@ const l3 = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
2102
2102
|
d: "M35.06 0.0559998V8.33281H35.0087C33.9803 7.12787 32.6966 6.70881 31.207 6.70881C28.1552 6.70881 25.8561 8.826 25.0493 11.6236C24.128 8.54092 21.7544 6.65084 18.2349 6.65084C15.3769 6.65084 13.1197 7.95936 11.9422 10.0918V7.44146H6.03416V4.56406H12.4815V0.0559998H0.768005V20.2805H6.03416V11.7794H11.2836C11.127 12.4037 11.0432 13.0727 11.0432 13.7788C11.0432 17.997 14.2031 20.958 18.2349 20.958C21.6258 20.958 23.8607 19.334 25.0419 16.374H20.5284C19.9183 17.2644 19.4553 17.5276 18.2349 17.5276C16.8199 17.5276 15.5995 16.2685 15.5995 14.7756H24.7894C25.1881 18.1262 27.7472 21.016 31.2582 21.016C32.773 21.016 34.1601 20.2558 35.0078 18.9729H35.059V20.2824H39.701L39.702 0.0559998H35.06ZM15.7467 11.8393C16.0392 10.5545 17.0164 9.71545 18.2358 9.71545C19.5782 9.71545 20.5051 10.5289 20.7492 11.8393C20.8517 11.8393 15.7467 11.8393 15.7467 11.8393ZM32.242 17.2016C30.5307 17.2016 29.4668 15.5748 29.4668 13.8767C29.4668 12.0617 30.3919 10.316 32.242 10.316C34.1601 10.316 34.924 12.0617 34.924 13.8767C34.924 15.5976 34.1144 17.2016 32.242 17.2016Z",
|
|
2103
2103
|
fill: "white"
|
|
2104
2104
|
}))), O1 = {
|
|
2105
|
-
"invite-game-icon":
|
|
2105
|
+
"invite-game-icon": a3,
|
|
2106
2106
|
"icon-trophy": N3,
|
|
2107
2107
|
"icon-trophy-green": c3,
|
|
2108
2108
|
"icon-trivia": I3,
|
|
@@ -2138,8 +2138,8 @@ const l3 = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
2138
2138
|
return /* @__PURE__ */ M("span", {
|
|
2139
2139
|
children: e
|
|
2140
2140
|
});
|
|
2141
|
-
const
|
|
2142
|
-
return /* @__PURE__ */ M(
|
|
2141
|
+
const l = O1[e];
|
|
2142
|
+
return /* @__PURE__ */ M(l, {
|
|
2143
2143
|
style: n,
|
|
2144
2144
|
className: s
|
|
2145
2145
|
});
|
|
@@ -2168,15 +2168,15 @@ const f3 = () => Q3, Y3 = /* @__PURE__ */ i("div")({
|
|
|
2168
2168
|
name: "c",
|
|
2169
2169
|
class: "c1jwsyj1",
|
|
2170
2170
|
propsAsIs: !1
|
|
2171
|
-
}), V3 = ({ points: e }) => /* @__PURE__ */
|
|
2171
|
+
}), V3 = ({ points: e }) => /* @__PURE__ */ a(Y3, { children: [
|
|
2172
2172
|
/* @__PURE__ */ M(U3, { children: /* @__PURE__ */ M(b3, { name: "icon-trophy" }) }),
|
|
2173
|
-
/* @__PURE__ */
|
|
2173
|
+
/* @__PURE__ */ a(Z3, { children: [
|
|
2174
2174
|
/* @__PURE__ */ M(R3, { children: "TOTAL POINTS" }),
|
|
2175
2175
|
/* @__PURE__ */ M(G3, { children: e.toLocaleString("en") })
|
|
2176
2176
|
] })
|
|
2177
2177
|
] });
|
|
2178
2178
|
const $3 = "pedqibx", P3 = ({ children: e }) => /* @__PURE__ */ M("div", { className: $3, children: e }), H3 = (e, n, s) => {
|
|
2179
|
-
const [
|
|
2179
|
+
const [l, N] = y(null);
|
|
2180
2180
|
return v(() => {
|
|
2181
2181
|
let c = !1;
|
|
2182
2182
|
if (!e)
|
|
@@ -2195,7 +2195,7 @@ const $3 = "pedqibx", P3 = ({ children: e }) => /* @__PURE__ */ M("div", { class
|
|
|
2195
2195
|
throw I;
|
|
2196
2196
|
});
|
|
2197
2197
|
};
|
|
2198
|
-
}, [e]),
|
|
2198
|
+
}, [e]), l;
|
|
2199
2199
|
};
|
|
2200
2200
|
var e1 = /* @__PURE__ */ ((e) => (e[e.UNSET = 0] = "UNSET", e[e.CONNECTED = 1] = "CONNECTED", e[e.READY = 2] = "READY", e))(e1 || {});
|
|
2201
2201
|
const n1 = B1({
|
|
@@ -2205,9 +2205,9 @@ const n1 = B1({
|
|
|
2205
2205
|
sdkKey: e,
|
|
2206
2206
|
plugins: n,
|
|
2207
2207
|
children: s,
|
|
2208
|
-
production:
|
|
2208
|
+
production: l = !0
|
|
2209
2209
|
}) => {
|
|
2210
|
-
const N = H3(e, n,
|
|
2210
|
+
const N = H3(e, n, l), c = k(() => N ? {
|
|
2211
2211
|
sdk: N,
|
|
2212
2212
|
status: 2
|
|
2213
2213
|
/* READY */
|
|
@@ -2220,14 +2220,14 @@ const n1 = B1({
|
|
|
2220
2220
|
const { sdk: e, status: n } = w1(n1);
|
|
2221
2221
|
if (n === e1.UNSET)
|
|
2222
2222
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
2223
|
-
return n === e1.CONNECTED ? /* @__PURE__ */ M("div", { className: "StreamLayerSDK", children: "wait" }) : e === null ? /* @__PURE__ */ M("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : /* @__PURE__ */ M("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ M(
|
|
2223
|
+
return n === e1.CONNECTED ? /* @__PURE__ */ M("div", { className: "StreamLayerSDK", children: "wait" }) : e === null ? /* @__PURE__ */ M("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : /* @__PURE__ */ M("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ M(l3, { sdk: e }) });
|
|
2224
2224
|
}, B3 = ({ userSummary: e }) => {
|
|
2225
|
-
var s,
|
|
2225
|
+
var s, l;
|
|
2226
2226
|
const n = u(e.getStore());
|
|
2227
|
-
return ((
|
|
2227
|
+
return ((l = (s = n.data) == null ? void 0 : s.summary) == null ? void 0 : l.points) === void 0 ? null : /* @__PURE__ */ M(V3, { points: n.data.summary.points });
|
|
2228
2228
|
}, _3 = ({ sdk: e }) => {
|
|
2229
|
-
const { organizationSettings: n, streamSettings: s } = u(e.sdkStore),
|
|
2230
|
-
return
|
|
2229
|
+
const { organizationSettings: n, streamSettings: s } = u(e.sdkStore), l = k(() => e.getFeature(q.GAMES), [e, n, s]);
|
|
2230
|
+
return l ? /* @__PURE__ */ M(B3, { userSummary: l.userSummary }) : null;
|
|
2231
2231
|
}, A0 = () => {
|
|
2232
2232
|
const e = W3();
|
|
2233
2233
|
return e ? /* @__PURE__ */ M(_3, { sdk: e }) : null;
|