@streamlayer/react-ui 0.74.2 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/style.css +1 -1
- package/lib/ui/app/Features/Gamification/UserSummary.js +14 -7
- package/lib/ui/app/Notifications/Onboarding/index.d.ts +3 -2
- package/lib/ui/app/Notifications/Onboarding/index.js +85 -49
- package/lib/ui/app/Notifications/index.js +60 -23
- package/lib/ui/app/Notifications/styles.d.ts +2 -0
- package/lib/ui/app/Notifications/styles.js +9 -4
- package/lib/ui/app/masters.js +6 -6
- package/lib/ui/app/useMastersApp.js +19 -17
- package/lib/ui/gamification/question/notification/index.js +24 -28
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -0
- package/lib/ui/gamification/question/notification/prediction-result/index.js +99 -67
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +3 -2
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +27 -24
- package/lib/ui/gamification/vote/index.js +54 -46
- package/lib/ui/gamification/vote/insight-details/styles.js +2 -2
- package/lib/ui/show-in/index.js +2 -2
- package/lib/ui/timer/index.js +16 -16
- package/package.json +7 -7
- package/lib/ui/theme/masters.d.ts +0 -2
- package/lib/ui/theme/masters.js +0 -4
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useStore as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { NotificationType as
|
|
5
|
-
import { Notification as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { jsx as o, jsxs as d, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { useStore as y } from "@nanostores/react";
|
|
3
|
+
import { useState as g, useMemo as a, useRef as N, useCallback as h, useEffect as S } from "react";
|
|
4
|
+
import { NotificationType as s } from "@streamlayer/sdk-web-notifications";
|
|
5
|
+
import { Notification as l } from "../../gamification/question/notification/index.js";
|
|
6
|
+
import { PredictionResult as O } from "../../gamification/question/notification/prediction-result/index.js";
|
|
7
|
+
import { Onboarding as R } from "./Onboarding/index.js";
|
|
8
|
+
import { InnerContainer as c, Container as v } from "./styles.js";
|
|
8
9
|
import "@streamlayer/sdk-web-types";
|
|
9
10
|
import "../../gamification/constants.js";
|
|
10
11
|
import "../../gamification/question/notification/insight/index.js";
|
|
@@ -13,15 +14,16 @@ import "../../icons/index.js";
|
|
|
13
14
|
import "@linaria/react";
|
|
14
15
|
import "../../video-player/styles.js";
|
|
15
16
|
import "../../gamification/question/notification/insight/styles.js";
|
|
16
|
-
import "../../gamification/question/notification/prediction-result/index.js";
|
|
17
|
-
import "../../gamification/question/notification/prediction-result/animation-lines/index.js";
|
|
18
|
-
import "../../gamification/question/notification/prediction-result/animation-lines/styles.js";
|
|
19
|
-
import "../../gamification/question/notification/prediction-result/styles.js";
|
|
20
17
|
import "../../gamification/question/notification/styles.js";
|
|
21
18
|
import "../../gamification/question/notification/tweet/index.js";
|
|
22
19
|
import "../../questions/twitter/account/index.js";
|
|
23
20
|
import "../../questions/twitter/account/styles.js";
|
|
24
21
|
import "../../gamification/question/notification/tweet/styles.js";
|
|
22
|
+
import "../../gamification/question/notification/prediction-result/animation-lines/index.js";
|
|
23
|
+
import "../../gamification/question/notification/prediction-result/animation-lines/styles.js";
|
|
24
|
+
import "../../gamification/question/notification/prediction-result/styles.js";
|
|
25
|
+
import "../../show-in/index.js";
|
|
26
|
+
import "@linaria/core";
|
|
25
27
|
import "../../gamification/onboarding/index.js";
|
|
26
28
|
import "react-virtualized-auto-sizer";
|
|
27
29
|
import "../../gamification/onboarding/slides/onboarding-instructions/index.js";
|
|
@@ -33,21 +35,56 @@ import "../../gamification/onboarding/slides/onboarding-rules/styles.js";
|
|
|
33
35
|
import "../../gamification/onboarding/styles.js";
|
|
34
36
|
import "../../button/index.js";
|
|
35
37
|
import "../../button/styles.js";
|
|
36
|
-
import "../../show-in/index.js";
|
|
37
|
-
import "@linaria/core";
|
|
38
38
|
import "./Onboarding/Notification/index.js";
|
|
39
39
|
import "./Onboarding/Notification/styles.js";
|
|
40
|
-
const
|
|
41
|
-
const [r] =
|
|
42
|
-
|
|
40
|
+
const E = (p) => {
|
|
41
|
+
const [t, r] = g(0), e = N(null), n = h((i) => {
|
|
42
|
+
e.current = i;
|
|
43
|
+
}, []);
|
|
44
|
+
S(() => {
|
|
45
|
+
var u;
|
|
46
|
+
const i = (u = e.current) == null ? void 0 : u.getBoundingClientRect();
|
|
47
|
+
i && r(i.height);
|
|
48
|
+
}, [p]);
|
|
49
|
+
const m = h((i) => {
|
|
50
|
+
r(i);
|
|
51
|
+
}, []);
|
|
52
|
+
return [n, t, m];
|
|
53
|
+
}, I = ({ sdk: p, notification: t }) => {
|
|
54
|
+
var m, i;
|
|
55
|
+
const [r, e, n] = E(t.id);
|
|
56
|
+
return t.type === s.QUESTION ? /* @__PURE__ */ d(f, { children: [
|
|
57
|
+
/* @__PURE__ */ o(c, { ref: r, style: { position: "absolute", visibility: "hidden" }, children: /* @__PURE__ */ o(l, { ...t }) }),
|
|
58
|
+
/* @__PURE__ */ o(v, { style: { height: t.hiding ? 0 : e }, hiding: t.hiding, children: /* @__PURE__ */ o(c, { style: { height: "100%" }, children: /* @__PURE__ */ o(l, { ...t }) }) })
|
|
59
|
+
] }) : t.type === s.QUESTION_RESOLVED && ((i = (m = t.data) == null ? void 0 : m.question) != null && i.predictionResult) ? /* @__PURE__ */ o(
|
|
60
|
+
O,
|
|
61
|
+
{
|
|
62
|
+
style: { height: t.hiding ? 0 : e },
|
|
63
|
+
saveHeight: n,
|
|
64
|
+
close: t.close,
|
|
65
|
+
hiding: t.hiding,
|
|
66
|
+
...t.data.question
|
|
67
|
+
}
|
|
68
|
+
) : t.type === s.ONBOARDING ? /* @__PURE__ */ o(
|
|
69
|
+
R,
|
|
70
|
+
{
|
|
71
|
+
style: { height: t.hiding ? 0 : e },
|
|
72
|
+
saveHeight: n,
|
|
73
|
+
sdk: p,
|
|
74
|
+
notification: t
|
|
75
|
+
}
|
|
76
|
+
) : null;
|
|
77
|
+
}, ht = ({ sdk: p }) => {
|
|
78
|
+
const [t] = g(p.getNotificationsStore()), r = y(t), e = a(() => {
|
|
79
|
+
if (!(r != null && r.size))
|
|
43
80
|
return null;
|
|
44
|
-
for (const
|
|
45
|
-
if (
|
|
46
|
-
return
|
|
47
|
-
return
|
|
48
|
-
}, [
|
|
49
|
-
return
|
|
81
|
+
for (const m of r.values())
|
|
82
|
+
if (m.type === s.ONBOARDING)
|
|
83
|
+
return m;
|
|
84
|
+
return r.values().next().value;
|
|
85
|
+
}, [r]);
|
|
86
|
+
return e ? /* @__PURE__ */ o(I, { sdk: p, notification: e }) : null;
|
|
50
87
|
};
|
|
51
88
|
export {
|
|
52
|
-
|
|
89
|
+
ht as SDKNotifications
|
|
53
90
|
};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import { ShowIn as
|
|
1
|
+
import { styled as n } from "@linaria/react";
|
|
2
|
+
import { ShowIn as o } from "../../show-in/index.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "@linaria/core";
|
|
5
|
-
const r = () =>
|
|
5
|
+
const r = () => o, p = /* @__PURE__ */ n(r())({
|
|
6
6
|
name: "Container",
|
|
7
7
|
class: "ctckejh",
|
|
8
8
|
propsAsIs: !0
|
|
9
|
+
}), a = /* @__PURE__ */ n("div")({
|
|
10
|
+
name: "InnerContainer",
|
|
11
|
+
class: "i1ri7tzr",
|
|
12
|
+
propsAsIs: !1
|
|
9
13
|
});
|
|
10
14
|
export {
|
|
11
|
-
|
|
15
|
+
p as Container,
|
|
16
|
+
a as InnerContainer
|
|
12
17
|
};
|
package/lib/ui/app/masters.js
CHANGED
|
@@ -28,15 +28,17 @@ import "../video-player/index.js";
|
|
|
28
28
|
import "../icons/index.js";
|
|
29
29
|
import "../video-player/styles.js";
|
|
30
30
|
import "../gamification/question/notification/insight/styles.js";
|
|
31
|
-
import "../gamification/question/notification/prediction-result/index.js";
|
|
32
|
-
import "../gamification/question/notification/prediction-result/animation-lines/index.js";
|
|
33
|
-
import "../gamification/question/notification/prediction-result/animation-lines/styles.js";
|
|
34
|
-
import "../gamification/question/notification/prediction-result/styles.js";
|
|
35
31
|
import "../gamification/question/notification/styles.js";
|
|
36
32
|
import "../gamification/question/notification/tweet/index.js";
|
|
37
33
|
import "../questions/twitter/account/index.js";
|
|
38
34
|
import "../questions/twitter/account/styles.js";
|
|
39
35
|
import "../gamification/question/notification/tweet/styles.js";
|
|
36
|
+
import "../gamification/question/notification/prediction-result/index.js";
|
|
37
|
+
import "../gamification/question/notification/prediction-result/animation-lines/index.js";
|
|
38
|
+
import "../gamification/question/notification/prediction-result/animation-lines/styles.js";
|
|
39
|
+
import "../gamification/question/notification/prediction-result/styles.js";
|
|
40
|
+
import "../show-in/index.js";
|
|
41
|
+
import "@linaria/core";
|
|
40
42
|
import "./Notifications/Onboarding/index.js";
|
|
41
43
|
import "../gamification/onboarding/index.js";
|
|
42
44
|
import "react-virtualized-auto-sizer";
|
|
@@ -49,8 +51,6 @@ import "../gamification/onboarding/slides/onboarding-rules/styles.js";
|
|
|
49
51
|
import "../gamification/onboarding/styles.js";
|
|
50
52
|
import "../button/index.js";
|
|
51
53
|
import "../button/styles.js";
|
|
52
|
-
import "../show-in/index.js";
|
|
53
|
-
import "@linaria/core";
|
|
54
54
|
import "./Notifications/Onboarding/Notification/index.js";
|
|
55
55
|
import "./Notifications/Onboarding/Notification/styles.js";
|
|
56
56
|
import "./Notifications/styles.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useStore as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { useStore as l } from "@nanostores/react";
|
|
2
|
+
import { useRef as F, useState as d, useCallback as y, useEffect as v } from "react";
|
|
3
3
|
import { FeatureType as I } from "@streamlayer/sdk-web-types";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import { ChannelsButtonId as c } from "../navigation/button/Channels.js";
|
|
6
|
-
import { FeaturedGroupsButtonId as
|
|
6
|
+
import { FeaturedGroupsButtonId as n } from "../navigation/button/FeaturedGroups.js";
|
|
7
7
|
import "@linaria/react";
|
|
8
8
|
import "../icons/index.js";
|
|
9
9
|
import "../navigation/button/styles.js";
|
|
@@ -11,26 +11,28 @@ import "../../LeaderBoard_16p26hz-4ed993c7.js";
|
|
|
11
11
|
import "../../index_4nhkck-4ed993c7.js";
|
|
12
12
|
import "../../masters_k70xsy-4ed993c7.js";
|
|
13
13
|
import "../navigation/button/index.js";
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const U = (e) => {
|
|
15
|
+
const a = F(""), [m, f] = d(!1), A = l(e.status), r = l(e.userId()), i = A === "ready", [s, u] = d(n), p = y(
|
|
16
16
|
(t, o) => {
|
|
17
|
-
u(o), o ===
|
|
17
|
+
u(o), o === n ? (t && e.createEventSession(t), window.requestAnimationFrame(() => {
|
|
18
|
+
e.openFeature(I.GAMES);
|
|
19
|
+
})) : e.closeFeature();
|
|
18
20
|
},
|
|
19
21
|
[e]
|
|
20
22
|
);
|
|
21
|
-
|
|
22
|
-
!i && s ===
|
|
23
|
+
v(() => {
|
|
24
|
+
!i && s === n && (u(c), e.closeFeature());
|
|
23
25
|
}, [i, s, e]);
|
|
24
26
|
const E = (t) => {
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
+
a.current = t, f(!0), e.initializeApp().then(({ enabled: o, err: b }) => {
|
|
28
|
+
if (b) {
|
|
27
29
|
p(t, c);
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
30
32
|
if (o) {
|
|
31
33
|
e.isUserAuthorized().then((h) => {
|
|
32
34
|
if (h) {
|
|
33
|
-
p(t,
|
|
35
|
+
p(t, n);
|
|
34
36
|
return;
|
|
35
37
|
} else
|
|
36
38
|
e.disableApp();
|
|
@@ -39,18 +41,18 @@ const j = (e) => {
|
|
|
39
41
|
}
|
|
40
42
|
});
|
|
41
43
|
}, S = () => {
|
|
42
|
-
|
|
44
|
+
f(!1), e.disableApp();
|
|
43
45
|
};
|
|
44
|
-
return
|
|
46
|
+
return v(() => {
|
|
45
47
|
if (!r) {
|
|
46
48
|
i && (u(c), e.disableApp());
|
|
47
49
|
return;
|
|
48
50
|
}
|
|
49
|
-
r &&
|
|
50
|
-
e.createEventSession(
|
|
51
|
+
r && a.current && m && e.initializeApp().then(() => {
|
|
52
|
+
e.createEventSession(a.current);
|
|
51
53
|
});
|
|
52
54
|
}, [r]), {
|
|
53
|
-
sdkEnabled:
|
|
55
|
+
sdkEnabled: m,
|
|
54
56
|
sdkReady: i,
|
|
55
57
|
activeOverlay: s,
|
|
56
58
|
activateAndLoadOverlay: p,
|
|
@@ -60,5 +62,5 @@ const j = (e) => {
|
|
|
60
62
|
};
|
|
61
63
|
};
|
|
62
64
|
export {
|
|
63
|
-
|
|
65
|
+
U as useMastersApp
|
|
64
66
|
};
|
|
@@ -1,52 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { QuestionType as
|
|
1
|
+
import { jsxs as a, jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionType as t } from "@streamlayer/sdk-web-types";
|
|
3
3
|
import { QuestionTypeData as d } from "../../constants.js";
|
|
4
4
|
import { Insight as f } from "./insight/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Tweet as x } from "./tweet/index.js";
|
|
5
|
+
import { Container as h, CloseIconWrap as I, CloseIcon as T, Header as C, TypeIcon as E, TypeName as s, Question as A, AnswerButton as D } from "./styles.js";
|
|
6
|
+
import { Tweet as W } from "./tweet/index.js";
|
|
8
7
|
import "../../../video-player/index.js";
|
|
9
8
|
import "react";
|
|
10
9
|
import "../../../icons/index.js";
|
|
11
10
|
import "@linaria/react";
|
|
12
11
|
import "../../../video-player/styles.js";
|
|
13
12
|
import "./insight/styles.js";
|
|
14
|
-
import "./prediction-result/animation-lines/index.js";
|
|
15
|
-
import "./prediction-result/animation-lines/styles.js";
|
|
16
|
-
import "./prediction-result/styles.js";
|
|
17
13
|
import "../../../questions/twitter/account/index.js";
|
|
18
14
|
import "../../../questions/twitter/account/styles.js";
|
|
19
15
|
import "./tweet/styles.js";
|
|
20
|
-
const
|
|
21
|
-
close:
|
|
16
|
+
const R = ({
|
|
17
|
+
close: e,
|
|
22
18
|
action: i,
|
|
23
|
-
data: { questionType:
|
|
19
|
+
data: { questionType: r, question: m, insight: l, tweet: p }
|
|
24
20
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
21
|
+
const n = d[r];
|
|
22
|
+
return n ? /* @__PURE__ */ a(h, { children: [
|
|
23
|
+
/* @__PURE__ */ o(I, { onClick: e, children: /* @__PURE__ */ o(T, { name: "icon-cross" }) }),
|
|
24
|
+
r !== t.TWEET && /* @__PURE__ */ a(C, { children: [
|
|
25
|
+
/* @__PURE__ */ o(
|
|
26
|
+
E,
|
|
31
27
|
{
|
|
32
|
-
"data-type-trivia":
|
|
33
|
-
"data-type-poll":
|
|
34
|
-
name:
|
|
28
|
+
"data-type-trivia": r === t.TRIVIA,
|
|
29
|
+
"data-type-poll": r === t.POLL,
|
|
30
|
+
name: n.iconName
|
|
35
31
|
}
|
|
36
32
|
),
|
|
37
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ o(s, { children: n.label })
|
|
38
34
|
] }),
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
r === t.FACTOID && /* @__PURE__ */ o(f, { ...l, action: i }),
|
|
36
|
+
r === t.TWEET && // ToDo: connect with real Api data
|
|
41
37
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
42
38
|
// @ts-ignore
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ o(W, { ...p, action: i }),
|
|
40
|
+
r !== t.FACTOID && r !== t.TWEET && /* @__PURE__ */ a(c, { children: [
|
|
41
|
+
/* @__PURE__ */ o(A, { children: m == null ? void 0 : m.title }),
|
|
42
|
+
/* @__PURE__ */ o(D, { onClick: i, children: "Answer" })
|
|
47
43
|
] })
|
|
48
44
|
] }) : null;
|
|
49
45
|
};
|
|
50
46
|
export {
|
|
51
|
-
|
|
47
|
+
R as Notification
|
|
52
48
|
};
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
import type { NotificationData } from '@streamlayer/sdk-web-notifications';
|
|
3
3
|
export declare const PredictionResult: React.FC<NotificationData['question'] & {
|
|
4
4
|
close?: () => void;
|
|
5
|
+
saveHeight: (h: number) => void;
|
|
6
|
+
style: React.CSSProperties;
|
|
7
|
+
hiding: boolean;
|
|
5
8
|
}>;
|
|
@@ -1,78 +1,110 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
3
|
-
import { AnimationLines as
|
|
4
|
-
import { Container as
|
|
1
|
+
import { jsx as n, jsxs as i, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { useState as F, useRef as S, useEffect as y } from "react";
|
|
3
|
+
import { AnimationLines as b } from "./animation-lines/index.js";
|
|
4
|
+
import { MIN_CONTENT_HEIGHT as B, Container as G, InnerContainer as N, Content as o, Title as a, SubtitleFG as k, Subtitle as d, AnswerText as g, FeedbackIcon as p, CloseButton as P, CloseIcon as T } from "./styles.js";
|
|
5
5
|
import "./animation-lines/styles.js";
|
|
6
6
|
import "@linaria/react";
|
|
7
7
|
import "../../../../icons/index.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return g(() => {
|
|
16
|
-
const P = setInterval(() => {
|
|
17
|
-
s((e) => r && e > 4 || !r && e > 3 ? e : ++e);
|
|
8
|
+
import "../../../../show-in/index.js";
|
|
9
|
+
import "@linaria/core";
|
|
10
|
+
const h = (m, r) => m === r ? "translateY(0px)" : m > r ? "translateY(100%)" : "translateY(-100%)", z = ({ close: m, votedAnswer: r, correct: s, correctAnswerTitle: Y, questionTitle: E, saveHeight: C, style: u, hiding: I }) => {
|
|
11
|
+
const [e, R] = F(1), f = S({});
|
|
12
|
+
y(() => {
|
|
13
|
+
const c = setInterval(() => {
|
|
14
|
+
R((t) => s && t > 4 || !s && t > 3 ? t : ++t);
|
|
18
15
|
}, 6e3);
|
|
19
|
-
return () => clearInterval(
|
|
20
|
-
}, [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */ i(n, { children: "Congratulations! You answered correctly." }),
|
|
41
|
-
/* @__PURE__ */ c(a, { children: [
|
|
42
|
-
/* @__PURE__ */ i(m, { name: "selected" }),
|
|
43
|
-
"Your Pick: ",
|
|
44
|
-
/* @__PURE__ */ i(h, { children: l == null ? void 0 : l.title })
|
|
45
|
-
] })
|
|
16
|
+
return () => clearInterval(c);
|
|
17
|
+
}, [s]), y(() => {
|
|
18
|
+
var c, t;
|
|
19
|
+
f.current[e] && C(((t = (c = f.current[e]) == null ? void 0 : c.getBoundingClientRect()) == null ? void 0 : t.height) || B);
|
|
20
|
+
}, [e, C]);
|
|
21
|
+
const l = (c) => (t) => {
|
|
22
|
+
f.current && (f.current[c] = t);
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ n(G, { style: u.height ? u : { ...u, paddingTop: 0, paddingBottom: 0 }, hiding: I, children: /* @__PURE__ */ i(
|
|
25
|
+
N,
|
|
26
|
+
{
|
|
27
|
+
style: {
|
|
28
|
+
height: u.height,
|
|
29
|
+
minHeight: u.height,
|
|
30
|
+
backgroundColor: e > 3 ? "var(--color-white)" : "var(--color-primary-green2)"
|
|
31
|
+
},
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ n(b, { step: e, correct: s }),
|
|
34
|
+
/* @__PURE__ */ i(o, { ref: l(1), style: { transform: h(1, e) }, children: [
|
|
35
|
+
/* @__PURE__ */ n(a, { children: "Master" }),
|
|
36
|
+
/* @__PURE__ */ n(k, { children: "FEATURED GROUPS +" })
|
|
46
37
|
] }),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */ c(a, { children: [
|
|
55
|
-
/* @__PURE__ */ i(m, { name: "selected" }),
|
|
38
|
+
/* @__PURE__ */ i(o, { ref: l(2), style: { transform: h(2, e) }, children: [
|
|
39
|
+
/* @__PURE__ */ n(a, { children: "Prediction results are in!" }),
|
|
40
|
+
/* @__PURE__ */ n(k, { children: "FEATURED GROUPS +" })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ i(o, { ref: l(3), style: { transform: h(3, e) }, children: [
|
|
43
|
+
/* @__PURE__ */ n(a, { children: E }),
|
|
44
|
+
/* @__PURE__ */ n(d, { children: /* @__PURE__ */ i(g, { children: [
|
|
56
45
|
"Your Pick: ",
|
|
57
|
-
|
|
58
|
-
] })
|
|
59
|
-
] })
|
|
60
|
-
] }) : /* @__PURE__ */ c(t, { children: [
|
|
61
|
-
/* @__PURE__ */ i(C, { onClick: u, children: /* @__PURE__ */ i(p, { name: "icon-cross" }) }),
|
|
62
|
-
/* @__PURE__ */ c(n, { "data-incorrect": "true", children: [
|
|
63
|
-
"Better luck next time! Correct: ",
|
|
64
|
-
k,
|
|
65
|
-
"."
|
|
46
|
+
r == null ? void 0 : r.title
|
|
47
|
+
] }) })
|
|
66
48
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */ i(
|
|
69
|
-
|
|
70
|
-
|
|
49
|
+
s ? /* @__PURE__ */ i(x, { children: [
|
|
50
|
+
/* @__PURE__ */ i(
|
|
51
|
+
o,
|
|
52
|
+
{
|
|
53
|
+
ref: l(4),
|
|
54
|
+
style: { transform: h(4, e), color: "var(--color-primary-green1)" },
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ n(a, { children: "Congratulations! You answered correctly." }),
|
|
57
|
+
/* @__PURE__ */ i(d, { children: [
|
|
58
|
+
/* @__PURE__ */ n(p, { name: "selected" }),
|
|
59
|
+
/* @__PURE__ */ i(g, { children: [
|
|
60
|
+
"Your Pick: ",
|
|
61
|
+
r == null ? void 0 : r.title
|
|
62
|
+
] })
|
|
63
|
+
] })
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ i(
|
|
68
|
+
o,
|
|
69
|
+
{
|
|
70
|
+
ref: l(5),
|
|
71
|
+
style: { transform: h(5, e), color: "var(--color-primary-green1)" },
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ i(a, { children: [
|
|
74
|
+
"+",
|
|
75
|
+
r == null ? void 0 : r.points,
|
|
76
|
+
" points"
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ i(d, { children: [
|
|
79
|
+
/* @__PURE__ */ n(p, { name: "selected" }),
|
|
80
|
+
/* @__PURE__ */ i(g, { children: [
|
|
81
|
+
"Your Pick: ",
|
|
82
|
+
r == null ? void 0 : r.title
|
|
83
|
+
] })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ n(P, { onClick: m, children: /* @__PURE__ */ n(T, { name: "icon-cross" }) })
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] }) : /* @__PURE__ */ i(o, { ref: l(4), style: { transform: h(4, e) }, children: [
|
|
90
|
+
/* @__PURE__ */ i(a, { style: { color: "var(--color-neutrals-gray9)" }, children: [
|
|
91
|
+
"Better luck next time! Correct: ",
|
|
92
|
+
Y,
|
|
93
|
+
"."
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ i(d, { style: { color: "var(--color-secondary-red1)" }, children: [
|
|
96
|
+
/* @__PURE__ */ n(p, { name: "circleClose" }),
|
|
97
|
+
/* @__PURE__ */ i(g, { children: [
|
|
98
|
+
"Your Pick: ",
|
|
99
|
+
r == null ? void 0 : r.title
|
|
100
|
+
] })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ n(P, { onClick: m, children: /* @__PURE__ */ n(T, { name: "icon-cross" }) })
|
|
71
103
|
] })
|
|
72
|
-
]
|
|
73
|
-
|
|
74
|
-
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
) });
|
|
75
107
|
};
|
|
76
108
|
export {
|
|
77
|
-
|
|
109
|
+
z as PredictionResult
|
|
78
110
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const MIN_CONTENT_HEIGHT = 118;
|
|
3
|
+
export declare const Container: any;
|
|
4
|
+
export declare const InnerContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
5
|
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
6
|
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
7
|
export declare const Subtitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,57 +1,60 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
import { SvgIcon as
|
|
2
|
+
import { SvgIcon as o } from "../../../../icons/index.js";
|
|
3
|
+
import { ShowIn as t } from "../../../../show-in/index.js";
|
|
3
4
|
import "react/jsx-runtime";
|
|
4
5
|
import "react";
|
|
5
|
-
|
|
6
|
+
import "@linaria/core";
|
|
7
|
+
const A = 118, e = () => t, f = /* @__PURE__ */ s(e())({
|
|
6
8
|
name: "Container",
|
|
7
9
|
class: "c10131zw",
|
|
10
|
+
propsAsIs: !0
|
|
11
|
+
}), C = /* @__PURE__ */ s("div")({
|
|
12
|
+
name: "InnerContainer",
|
|
13
|
+
class: "ir6k2eo",
|
|
8
14
|
propsAsIs: !1
|
|
9
|
-
}),
|
|
10
|
-
name: "AnimateContent",
|
|
11
|
-
class: "ar6k2eo",
|
|
12
|
-
propsAsIs: !1
|
|
13
|
-
}), I = /* @__PURE__ */ s("div")({
|
|
15
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
14
16
|
name: "Content",
|
|
15
17
|
class: "c1hwoq9l",
|
|
16
18
|
propsAsIs: !1
|
|
17
|
-
}),
|
|
19
|
+
}), b = /* @__PURE__ */ s("div")({
|
|
18
20
|
name: "Title",
|
|
19
21
|
class: "t4ujo4g",
|
|
20
22
|
propsAsIs: !1
|
|
21
|
-
}),
|
|
23
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
22
24
|
name: "Subtitle",
|
|
23
25
|
class: "s1pjil1h",
|
|
24
26
|
propsAsIs: !1
|
|
25
|
-
}),
|
|
27
|
+
}), c = () => n, v = /* @__PURE__ */ s(c())({
|
|
26
28
|
name: "SubtitleFG",
|
|
27
29
|
class: "s1iorwr9",
|
|
28
30
|
propsAsIs: !0
|
|
29
|
-
}),
|
|
31
|
+
}), x = /* @__PURE__ */ s("div")({
|
|
30
32
|
name: "AnswerText",
|
|
31
33
|
class: "a51sv9d",
|
|
32
34
|
propsAsIs: !1
|
|
33
|
-
}),
|
|
35
|
+
}), r = () => o, T = /* @__PURE__ */ s(r())({
|
|
34
36
|
name: "FeedbackIcon",
|
|
35
37
|
class: "f1lbk2ye",
|
|
36
38
|
propsAsIs: !0
|
|
37
|
-
}),
|
|
39
|
+
}), _ = /* @__PURE__ */ s("button")({
|
|
38
40
|
name: "CloseButton",
|
|
39
41
|
class: "crcvk3t",
|
|
40
42
|
propsAsIs: !1
|
|
41
|
-
}),
|
|
43
|
+
}), p = () => o, w = /* @__PURE__ */ s(p())({
|
|
42
44
|
name: "CloseIcon",
|
|
43
45
|
class: "c33p82r",
|
|
44
46
|
propsAsIs: !0
|
|
45
47
|
});
|
|
46
48
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
x as AnswerText,
|
|
50
|
+
_ as CloseButton,
|
|
51
|
+
w as CloseIcon,
|
|
52
|
+
f as Container,
|
|
53
|
+
d as Content,
|
|
54
|
+
T as FeedbackIcon,
|
|
55
|
+
C as InnerContainer,
|
|
56
|
+
A as MIN_CONTENT_HEIGHT,
|
|
57
|
+
n as Subtitle,
|
|
58
|
+
v as SubtitleFG,
|
|
59
|
+
b as Title
|
|
57
60
|
};
|