@streamlayer/react-ui 0.65.3 → 0.67.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/LeaderBoard_p8tnz3-4ed993c7.js +1 -0
- package/lib/assets/style.css +1 -0
- package/lib/index.js +4 -5
- package/lib/index_1ujx5m0-4ed993c7.js +1 -0
- package/lib/masters_18kvgvj-4ed993c7.js +1 -0
- package/lib/ui/app/Features/Gamification/Question.js +48 -26
- package/lib/ui/app/Features/Gamification/index.js +54 -38
- package/lib/ui/app/Navigation/MastersNavigation/index.js +13 -10
- package/lib/ui/app/Navigation/index.js +3 -2
- package/lib/ui/app/Notifications/Onboarding/Notification/index.d.ts +8 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/index.js +21 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.d.ts +10 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +52 -0
- package/lib/ui/app/Notifications/Onboarding/index.js +96 -74
- package/lib/ui/app/Notifications/index.js +37 -13
- package/lib/ui/app/Notifications/styles.js +8 -13
- package/lib/ui/app/masters.js +32 -13
- package/lib/ui/app/styles.js +21 -36
- package/lib/ui/app/useMastersApp.js +4 -4
- package/lib/ui/button/styles.js +12 -42
- package/lib/ui/gamification/detail/header/styles.js +33 -55
- package/lib/ui/gamification/detail/sponsor/index.js +19 -12
- package/lib/ui/gamification/insight/styles.js +42 -63
- package/lib/ui/gamification/insight-list/styles.js +12 -18
- package/lib/ui/gamification/invite-link/styles.js +31 -45
- package/lib/ui/gamification/leaderboard/list-item/styles.js +40 -62
- package/lib/ui/gamification/onboarding/index.js +37 -37
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +32 -45
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +70 -97
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +40 -79
- package/lib/ui/gamification/onboarding/styles.js +39 -49
- package/lib/ui/gamification/points/index.js +4 -6
- package/lib/ui/gamification/points/styles.js +31 -80
- package/lib/ui/gamification/question/insight/styles.js +11 -51
- package/lib/ui/gamification/question/list/styles.js +7 -9
- package/lib/ui/gamification/question/notification/insight/styles.js +26 -63
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +82 -163
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +53 -128
- package/lib/ui/gamification/question/notification/styles.js +43 -83
- package/lib/ui/gamification/question/notification/tweet/styles.js +36 -65
- package/lib/ui/gamification/question/styles.js +66 -92
- package/lib/ui/gamification/question/twitter/styles.js +13 -23
- package/lib/ui/gamification/tabs/styles.js +22 -65
- package/lib/ui/gamification/user-statistics/components/rank/styles.js +17 -23
- package/lib/ui/gamification/user-statistics/components/statistic/styles.js +16 -20
- package/lib/ui/gamification/user-statistics/styles.js +84 -119
- package/lib/ui/gamification/vote/expired-alert/index.d.ts +7 -0
- package/lib/ui/gamification/vote/expired-alert/index.js +13 -0
- package/lib/ui/gamification/vote/expired-alert/styles.d.ts +4 -0
- package/lib/ui/gamification/vote/expired-alert/styles.js +19 -0
- package/lib/ui/gamification/vote/feedback/styles.js +36 -64
- package/lib/ui/gamification/vote/index.d.ts +1 -0
- package/lib/ui/gamification/vote/index.js +48 -36
- package/lib/ui/gamification/vote/insight-details/styles.js +12 -23
- package/lib/ui/gamification/vote/styles.js +22 -28
- package/lib/ui/gamification/vote/twitter-details/styles.js +6 -8
- package/lib/ui/gamification/vote/vote-option/styles.js +63 -147
- package/lib/ui/gamification/vote/win-bar/styles.js +37 -45
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +71 -55
- package/lib/ui/login/styles.js +36 -68
- package/lib/ui/navigation/button/Channels.js +18 -26
- package/lib/ui/navigation/button/FeaturedGroups.js +19 -27
- package/lib/ui/navigation/button/LeaderBoard.js +22 -23
- package/lib/ui/navigation/button/styles.js +16 -56
- package/lib/ui/navigation/index.js +13 -7
- package/lib/ui/navigation/masters.js +8 -32
- package/lib/ui/questions/insight/styles.js +26 -30
- package/lib/ui/questions/twitter/account/styles.js +30 -35
- package/lib/ui/questions/twitter/styles.js +31 -42
- package/lib/ui/show-in/index.js +18 -63
- package/lib/ui/theme/index.js +3 -4
- package/lib/ui/theme/masters.js +2 -9
- package/lib/ui/theme/theme.js +31 -27
- package/lib/ui/timer/index.js +38 -34
- package/lib/ui/video-player/styles.js +21 -26
- package/lib/utils/debug/components/bypassLogin.js +44 -60
- package/lib/utils/debug/components/developer.js +55 -87
- package/lib/utils/debug/components/envToggle.js +33 -58
- package/lib/utils/debug/components/styles.js +7 -49
- package/lib/utils/decorators/container.js +3 -4
- package/lib/utils/decorators/styles.js +7 -21
- package/package.json +6 -2
|
@@ -1,124 +1,89 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const o =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
column-gap: 8px;
|
|
72
|
-
`, u = e.div`
|
|
73
|
-
display: flex;
|
|
74
|
-
justify-content: space-between;
|
|
75
|
-
padding: 8px 12px;
|
|
76
|
-
border-radius: 4px;
|
|
77
|
-
background-color: var(--color-primary-green2);
|
|
78
|
-
`, m = e.div`
|
|
79
|
-
background: #2d6ffd;
|
|
80
|
-
border-radius: 50%;
|
|
81
|
-
width: 48px;
|
|
82
|
-
height: 48px;
|
|
83
|
-
text-align: center;
|
|
84
|
-
text-transform: uppercase;
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
justify-content: center;
|
|
88
|
-
color: #fff;
|
|
89
|
-
font-size: 18px;
|
|
90
|
-
flex-shrink: 0;
|
|
91
|
-
`, v = e.button`
|
|
92
|
-
border: none;
|
|
93
|
-
outline: none;
|
|
94
|
-
background-color: transparent;
|
|
95
|
-
cursor: pointer;
|
|
96
|
-
padding: 0px;
|
|
97
|
-
display: flex;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
align-items: center;
|
|
100
|
-
border-radius: 50%;
|
|
101
|
-
width: 100%;
|
|
102
|
-
height: 100%;
|
|
103
|
-
max-width: 48px;
|
|
104
|
-
max-height: 48px;
|
|
105
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const o = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "Container_c1yrpn9o",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
7
|
+
name: "TopInfo",
|
|
8
|
+
class: "TopInfo_t17fwahh",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), e = /* @__PURE__ */ s("div")({
|
|
11
|
+
name: "BottomInfo",
|
|
12
|
+
class: "BottomInfo_by6w7e9",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
15
|
+
name: "User",
|
|
16
|
+
class: "User_u1g7arbm",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
}), r = /* @__PURE__ */ s("img")({
|
|
19
|
+
name: "Avatar",
|
|
20
|
+
class: "Avatar_a1ldeata",
|
|
21
|
+
propsAsIs: !1
|
|
22
|
+
}), c = /* @__PURE__ */ s("div")({
|
|
23
|
+
name: "UserInfo",
|
|
24
|
+
class: "UserInfo_u10d4koz",
|
|
25
|
+
propsAsIs: !1
|
|
26
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
27
|
+
name: "UserName",
|
|
28
|
+
class: "UserName_u1q6roj0",
|
|
29
|
+
propsAsIs: !1
|
|
30
|
+
}), p = /* @__PURE__ */ s("div")({
|
|
31
|
+
name: "UserRating",
|
|
32
|
+
class: "UserRating_ui0m425",
|
|
33
|
+
propsAsIs: !1
|
|
34
|
+
}), i = /* @__PURE__ */ s("img")({
|
|
35
|
+
name: "TrophyIcon",
|
|
36
|
+
class: "TrophyIcon_t1el3mrn",
|
|
37
|
+
propsAsIs: !1
|
|
38
|
+
}), I = /* @__PURE__ */ s("div")({
|
|
39
|
+
name: "Rts",
|
|
40
|
+
class: "Rts_r2vgnxv",
|
|
41
|
+
propsAsIs: !1
|
|
42
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
43
|
+
name: "RtsIndicator",
|
|
44
|
+
class: "RtsIndicator_roqn06j",
|
|
45
|
+
propsAsIs: !1
|
|
46
|
+
}), f = /* @__PURE__ */ s("div")({
|
|
47
|
+
name: "RtsLabel",
|
|
48
|
+
class: "RtsLabel_r15adx7c",
|
|
49
|
+
propsAsIs: !1
|
|
50
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
51
|
+
name: "Divider",
|
|
52
|
+
class: "Divider_dv59lta",
|
|
53
|
+
propsAsIs: !1
|
|
54
|
+
}), v = /* @__PURE__ */ s("div")({
|
|
55
|
+
name: "Ranks",
|
|
56
|
+
class: "Ranks_r55lotb",
|
|
57
|
+
propsAsIs: !1
|
|
58
|
+
}), A = /* @__PURE__ */ s("div")({
|
|
59
|
+
name: "Statistics",
|
|
60
|
+
class: "Statistics_s1knfgqt",
|
|
61
|
+
propsAsIs: !1
|
|
62
|
+
}), _ = /* @__PURE__ */ s("div")({
|
|
63
|
+
name: "AvatarPlaceholder",
|
|
64
|
+
class: "AvatarPlaceholder_a1mqo824",
|
|
65
|
+
propsAsIs: !1
|
|
66
|
+
}), R = /* @__PURE__ */ s("button")({
|
|
67
|
+
name: "UserAccountBtn",
|
|
68
|
+
class: "UserAccountBtn_uxareh6",
|
|
69
|
+
propsAsIs: !1
|
|
70
|
+
});
|
|
106
71
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
72
|
+
r as Avatar,
|
|
73
|
+
_ as AvatarPlaceholder,
|
|
74
|
+
e as BottomInfo,
|
|
110
75
|
o as Container,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
76
|
+
d as Divider,
|
|
77
|
+
v as Ranks,
|
|
78
|
+
I as Rts,
|
|
79
|
+
m as RtsIndicator,
|
|
115
80
|
f as RtsLabel,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
81
|
+
A as Statistics,
|
|
82
|
+
t as TopInfo,
|
|
83
|
+
i as TrophyIcon,
|
|
84
|
+
n as User,
|
|
85
|
+
R as UserAccountBtn,
|
|
86
|
+
c as UserInfo,
|
|
87
|
+
l as UserName,
|
|
123
88
|
p as UserRating
|
|
124
89
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon as t } from "../../../icons/index.js";
|
|
3
|
+
import { Container as c, Title as n, Description as m } from "./styles.js";
|
|
4
|
+
import "@linaria/react";
|
|
5
|
+
import "react";
|
|
6
|
+
const x = ({ title: i, description: o }) => /* @__PURE__ */ e(c, { children: [
|
|
7
|
+
/* @__PURE__ */ r(t, { name: "icon-check-circle" }),
|
|
8
|
+
/* @__PURE__ */ r(n, { children: i }),
|
|
9
|
+
/* @__PURE__ */ r(m, { children: o })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
x as ExpiredAlert
|
|
13
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const t = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "Container_c38csyt",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), o = /* @__PURE__ */ s("div")({
|
|
7
|
+
name: "Title",
|
|
8
|
+
class: "Title_ty221rx",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), i = /* @__PURE__ */ s("div")({
|
|
11
|
+
name: "Description",
|
|
12
|
+
class: "Description_dlaj9xp",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
t as Container,
|
|
17
|
+
i as Description,
|
|
18
|
+
o as Title
|
|
19
|
+
};
|
|
@@ -1,70 +1,42 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import { SvgIcon as
|
|
1
|
+
import { styled as e } from "@linaria/react";
|
|
2
|
+
import { SvgIcon as s } from "../../../icons/index.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
justify-content: center;
|
|
35
|
-
margin-right: 16px;
|
|
36
|
-
|
|
37
|
-
&[data-feedbackType='correct'] {
|
|
38
|
-
background-color: var(--color-primary-green1);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&[data-feedbackType='incorrect'] {
|
|
42
|
-
background-color: var(--color-secondary-red1);
|
|
43
|
-
}
|
|
44
|
-
`, p = r.div`
|
|
45
|
-
font-weight: var(--font-weight-default);
|
|
46
|
-
`, l = r.span`
|
|
47
|
-
margin-right: 5px;
|
|
48
|
-
|
|
49
|
-
&[data-feedbackType='correct'] {
|
|
50
|
-
color: var(--color-primary-green1);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&[data-feedbackType='incorrect'] {
|
|
54
|
-
color: var(--color-secondary-red1);
|
|
55
|
-
}
|
|
56
|
-
`, g = r.span`
|
|
57
|
-
color: var(--color-neutrals-gray9);
|
|
58
|
-
`, s = r.div`
|
|
59
|
-
font-weight: 400;
|
|
60
|
-
margin-top: 10px;
|
|
61
|
-
`;
|
|
5
|
+
const r = /* @__PURE__ */ e("div")({
|
|
6
|
+
name: "Container",
|
|
7
|
+
class: "Container_c16sbdnm",
|
|
8
|
+
propsAsIs: !1
|
|
9
|
+
}), a = () => s, p = /* @__PURE__ */ e(a())({
|
|
10
|
+
name: "IconPrediction",
|
|
11
|
+
class: "IconPrediction_ibhorgl",
|
|
12
|
+
propsAsIs: !0
|
|
13
|
+
}), d = /* @__PURE__ */ e("div")({
|
|
14
|
+
name: "FeedbackIconWrap",
|
|
15
|
+
class: "FeedbackIconWrap_f1g20ja7",
|
|
16
|
+
propsAsIs: !1
|
|
17
|
+
}), i = /* @__PURE__ */ e("div")({
|
|
18
|
+
name: "FeedbackHeader",
|
|
19
|
+
class: "FeedbackHeader_f455ozj",
|
|
20
|
+
propsAsIs: !1
|
|
21
|
+
}), l = /* @__PURE__ */ e("span")({
|
|
22
|
+
name: "FeedbackTitle",
|
|
23
|
+
class: "FeedbackTitle_f1913njx",
|
|
24
|
+
propsAsIs: !1
|
|
25
|
+
}), b = /* @__PURE__ */ e("span")({
|
|
26
|
+
name: "FeedbackDescription",
|
|
27
|
+
class: "FeedbackDescription_fzfk69z",
|
|
28
|
+
propsAsIs: !1
|
|
29
|
+
}), f = /* @__PURE__ */ e("div")({
|
|
30
|
+
name: "FeedbackText",
|
|
31
|
+
class: "FeedbackText_fx87qaj",
|
|
32
|
+
propsAsIs: !1
|
|
33
|
+
});
|
|
62
34
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
35
|
+
r as Container,
|
|
36
|
+
b as FeedbackDescription,
|
|
37
|
+
i as FeedbackHeader,
|
|
66
38
|
d as FeedbackIconWrap,
|
|
67
|
-
|
|
39
|
+
f as FeedbackText,
|
|
68
40
|
l as FeedbackTitle,
|
|
69
|
-
|
|
41
|
+
p as IconPrediction
|
|
70
42
|
};
|
|
@@ -1,72 +1,84 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { SDKScrollContainer as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { jsx as i, jsxs as v, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useCallback as V, useMemo as n } from "react";
|
|
3
|
+
import { SDKScrollContainer as b } from "../../app/styles.js";
|
|
4
|
+
import { ExpiredAlert as j } from "./expired-alert/index.js";
|
|
5
|
+
import { Feedback as k } from "./feedback/index.js";
|
|
6
|
+
import { Container as M, Content as O, Title as F, Options as I } from "./styles.js";
|
|
7
|
+
import { VotingOption as L } from "./vote-option/index.js";
|
|
8
|
+
import { WinBar as W } from "./win-bar/index.js";
|
|
8
9
|
import "@linaria/react";
|
|
9
|
-
import "@streamlayer/sdk-web-types";
|
|
10
10
|
import "../../icons/index.js";
|
|
11
|
+
import "./expired-alert/styles.js";
|
|
12
|
+
import "@streamlayer/sdk-web-types";
|
|
11
13
|
import "./feedback/styles.js";
|
|
12
14
|
import "./vote-option/styles.js";
|
|
13
15
|
import "../../timer/index.js";
|
|
14
16
|
import "react-countdown-circle-timer";
|
|
15
17
|
import "../../theme/constants.js";
|
|
16
18
|
import "./win-bar/styles.js";
|
|
17
|
-
const
|
|
18
|
-
var
|
|
19
|
-
const
|
|
19
|
+
const rt = ({ openedQuestion: t, vote: l, close: f }) => {
|
|
20
|
+
var q;
|
|
21
|
+
const g = t.subject, u = t.type, c = (q = t.options) == null ? void 0 : q.options, [a, A] = m(!1), [d, p] = m(!1), [w, h] = m(""), o = t == null ? void 0 : t.id, T = V(
|
|
20
22
|
async (r) => {
|
|
21
23
|
if (o) {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
+
const y = r.currentTarget.value;
|
|
25
|
+
h(y), p(!0), await l(o, y), p(!1);
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
|
-
[o,
|
|
27
|
-
),
|
|
28
|
+
[o, h, l]
|
|
29
|
+
), C = V(() => {
|
|
30
|
+
A(!0), setTimeout(f, 3e3);
|
|
31
|
+
}, [f]), s = n(
|
|
28
32
|
() => t == null ? void 0 : t.answers.find((r) => r.youVoted === !0),
|
|
29
33
|
[t]
|
|
30
|
-
),
|
|
34
|
+
), e = n(
|
|
31
35
|
() => !!(t != null && t.answers.find((r) => r.correct === !0)),
|
|
32
36
|
[t]
|
|
33
|
-
),
|
|
37
|
+
), S = n(() => t ? t.answers.map((r) => ({
|
|
34
38
|
...r,
|
|
35
39
|
questionVoted: !!s,
|
|
36
|
-
youSelected:
|
|
37
|
-
isLoading:
|
|
38
|
-
hasCorrectAnswer:
|
|
40
|
+
youSelected: w === r.id,
|
|
41
|
+
isLoading: d,
|
|
42
|
+
hasCorrectAnswer: e,
|
|
39
43
|
questionType: t.type,
|
|
40
|
-
answerTimeExpired:
|
|
44
|
+
answerTimeExpired: a,
|
|
41
45
|
questionStatus: t.status,
|
|
42
46
|
// ToDo: Figure out why imageMode is not in the response
|
|
43
|
-
onVote:
|
|
44
|
-
})) : [], [
|
|
45
|
-
return /* @__PURE__ */ i(
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
onVote: T
|
|
48
|
+
})) : [], [e, a, d, t, s, T, w]), x = c && (c.case === "trivia" || c.case === "prediction") ? c.value : void 0;
|
|
49
|
+
return /* @__PURE__ */ i(b, { "data-question-header": "true", children: /* @__PURE__ */ i(M, { children: /* @__PURE__ */ v(O, { children: [
|
|
50
|
+
x && /* @__PURE__ */ i(
|
|
51
|
+
k,
|
|
48
52
|
{
|
|
49
|
-
feedbackMessages:
|
|
53
|
+
feedbackMessages: x,
|
|
50
54
|
questionVoted: !!s,
|
|
51
55
|
questionVotedCorrectly: s == null ? void 0 : s.correct,
|
|
52
|
-
questionType:
|
|
53
|
-
hasCorrectAnswer:
|
|
56
|
+
questionType: u,
|
|
57
|
+
hasCorrectAnswer: e,
|
|
54
58
|
questionStatus: t.status
|
|
55
59
|
}
|
|
56
60
|
),
|
|
57
61
|
/* @__PURE__ */ i(
|
|
58
|
-
|
|
62
|
+
W,
|
|
59
63
|
{
|
|
60
|
-
title:
|
|
61
|
-
points:
|
|
62
|
-
onTimerExpired:
|
|
64
|
+
title: a ? "Time expired" : "To win",
|
|
65
|
+
points: a ? void 0 : 100,
|
|
66
|
+
onTimerExpired: C,
|
|
63
67
|
isTimer: !0
|
|
64
68
|
}
|
|
65
69
|
),
|
|
66
|
-
/* @__PURE__ */ i(
|
|
67
|
-
|
|
70
|
+
a ? /* @__PURE__ */ i(
|
|
71
|
+
j,
|
|
72
|
+
{
|
|
73
|
+
title: "More to come...",
|
|
74
|
+
description: "Watch for additional enhanced stream interactive experience."
|
|
75
|
+
}
|
|
76
|
+
) : /* @__PURE__ */ v(E, { children: [
|
|
77
|
+
/* @__PURE__ */ i(F, { children: g }),
|
|
78
|
+
/* @__PURE__ */ i(I, { children: S.map((r) => /* @__PURE__ */ i(L, { ...r }, r.id)) })
|
|
79
|
+
] })
|
|
68
80
|
] }) }) });
|
|
69
81
|
};
|
|
70
82
|
export {
|
|
71
|
-
|
|
83
|
+
rt as Vote
|
|
72
84
|
};
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
justify-content: center;
|
|
12
|
-
column-gap: 10px;
|
|
13
|
-
padding: 11px 16px;
|
|
14
|
-
color: var(--color-primary-green1);
|
|
15
|
-
font-size: 14px;
|
|
16
|
-
font-weight: var(--font-weight-default);
|
|
17
|
-
line-height: 20px;
|
|
18
|
-
border-radius: 40px;
|
|
19
|
-
border: 1px solid var(--color-primary-green1);
|
|
20
|
-
text-decoration: none;
|
|
21
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const e = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "Container_c1euiow",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), t = /* @__PURE__ */ s("a")({
|
|
7
|
+
name: "WebLinkBtn",
|
|
8
|
+
class: "WebLinkBtn_w19zie3h",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
});
|
|
22
11
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
e as Container,
|
|
13
|
+
t as WebLinkBtn
|
|
25
14
|
};
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`, r = t.div`
|
|
20
|
-
position: relative;
|
|
21
|
-
gap: 8px;
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const n = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "Container_c14ielyq",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), o = /* @__PURE__ */ s("div")({
|
|
7
|
+
name: "Content",
|
|
8
|
+
class: "Content_c1tlqx57",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), e = /* @__PURE__ */ s("div")({
|
|
11
|
+
name: "Title",
|
|
12
|
+
class: "Title_t1hq58md",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), a = /* @__PURE__ */ s("div")({
|
|
15
|
+
name: "Options",
|
|
16
|
+
class: "Options_o1c8nxcx",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
});
|
|
25
19
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
n as Container,
|
|
21
|
+
o as Content,
|
|
22
|
+
a as Options,
|
|
23
|
+
e as Title
|
|
30
24
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const n =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
background-color: var(--color-neutrals-white);
|
|
8
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const n = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "Container_c1dcxmvf",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
});
|
|
9
7
|
export {
|
|
10
8
|
n as Container
|
|
11
9
|
};
|