@streamlayer/react-ui 1.18.1 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/app/Notifications/index.js +1 -1
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +12 -8
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +42 -14
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.d.ts +12 -0
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.js +40 -20
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +8 -4
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +4 -0
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +27 -0
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +21 -19
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +22 -17
- package/lib/app/masters/BetPack/BetPackContent/index.js +88 -62
- package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/styles.js +8 -7
- package/lib/app/masters/BetPack/index.js +59 -53
- package/lib/app/masters/Features/Gamification/Question.js +3 -3
- package/lib/app/masters/Features/Gamification/Tabs.d.ts +0 -7
- package/lib/app/masters/Features/Gamification/Tabs.js +9 -42
- package/lib/app/masters/Features/Gamification/UserSummary.js +15 -14
- package/lib/app/masters/Features/Gamification/index.d.ts +1 -6
- package/lib/app/masters/Features/Gamification/index.js +37 -76
- package/lib/app/masters/Features/index.d.ts +1 -6
- package/lib/app/masters/Features/index.js +15 -25
- package/lib/app/masters/Header/index.d.ts +3 -0
- package/lib/app/masters/Header/index.js +38 -0
- package/lib/app/masters/Notifications/index.js +1 -1
- package/lib/app/masters/masters.d.ts +1 -0
- package/lib/app/masters/masters.js +75 -92
- package/lib/app/masters/story/index.d.ts +1 -0
- package/lib/app/masters/story/index.js +21 -22
- package/lib/app/masters/styles.d.ts +0 -10
- package/lib/app/masters/styles.js +13 -23
- package/lib/app/masters/useSdkResponsive.js +1 -1
- package/lib/app/masters/useSdkScroll.js +1 -1
- package/lib/app/useClipboardCopy.js +1 -1
- package/lib/app/useSdkResponsive.js +1 -1
- package/lib/app/useSdkScroll.js +1 -1
- package/lib/assets/style.css +1 -1
- package/lib/index-BEm7B1u1.js +72 -0
- package/lib/index-DALxy-8N.js +5437 -0
- package/lib/ui/gamification/user-statistics/index.d.ts +1 -0
- package/lib/ui/gamification/user-statistics/index.js +47 -39
- package/lib/ui/gamification/user-statistics/styles.d.ts +2 -0
- package/lib/ui/gamification/user-statistics/styles.js +34 -24
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/index.js +60 -47
- package/lib/ui/gamification/vote/feedback/styles.d.ts +12 -0
- package/lib/ui/gamification/vote/feedback/styles.js +47 -27
- package/lib/ui/gamification/vote/index.js +145 -136
- package/lib/ui/gamification/vote/styles.d.ts +3 -1
- package/lib/ui/gamification/vote/styles.js +42 -32
- package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -0
- package/lib/ui/gamification/vote/vote-option/index.js +59 -60
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/vote-option/styles.js +16 -11
- package/lib/ui/icons/index.d.ts +3 -0
- package/lib/ui/icons/index.js +69 -51
- package/lib/ui/loader/index.js +4 -3
- package/lib/ui/modal/index.js +1 -1
- package/lib/ui/theme/masters-theme.js +152 -32
- package/lib/ui/theme/theme.js +66 -20
- package/package.json +16 -15
- package/lib/app/masters/Features/Gamification/Friends.d.ts +0 -3
- package/lib/app/masters/Features/Gamification/Friends.js +0 -19
- package/lib/app/masters/Features/Gamification/Leaderboard.d.ts +0 -8
- package/lib/app/masters/Features/Gamification/Leaderboard.js +0 -56
- package/lib/index-B1QdimmR.js +0 -19047
- package/lib/index-CZvwzN5o.js +0 -75
- package/lib/index-xuotMAFm.js +0 -118
|
@@ -1,59 +1,67 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Skeleton as e } from "../../skeleton/index.js";
|
|
3
|
-
import { abbreviate as
|
|
4
|
-
import { Rank as
|
|
3
|
+
import { abbreviate as w, formatDecimals as V } from "../../../utils/common.js";
|
|
4
|
+
import { Rank as d } from "./components/rank/index.js";
|
|
5
5
|
import { Statistic as c } from "./components/statistic/index.js";
|
|
6
|
-
import { Container as
|
|
7
|
-
const
|
|
6
|
+
import { Container as I, TopInfo as S, User as b, UserAccountBtn as x, Avatar as H, AvatarPlaceholder as R, UserInfo as U, UserName as k, UserRating as u, RtsContainer as y, Rts as T, TrophyIcon as M, RtsIndicator as a, RtsLabel as h, RtsDivider as Z, Divider as A, BottomInfo as B, Ranks as D, Statistics as P } from "./styles.js";
|
|
7
|
+
const j = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e", z = ({
|
|
8
8
|
loading: t,
|
|
9
|
-
|
|
9
|
+
hideFriendsRank: n,
|
|
10
|
+
avatar: l,
|
|
10
11
|
name: o,
|
|
11
|
-
points:
|
|
12
|
-
friendsRank:
|
|
13
|
-
rank:
|
|
14
|
-
streak:
|
|
15
|
-
correct:
|
|
16
|
-
incorrect:
|
|
17
|
-
inTop:
|
|
18
|
-
successRate:
|
|
19
|
-
}) => /* @__PURE__ */ i(
|
|
20
|
-
/* @__PURE__ */ r(
|
|
21
|
-
/* @__PURE__ */ i(k, { children: [
|
|
22
|
-
n && /* @__PURE__ */ r(I, { alt: "avatar", src: n }),
|
|
23
|
-
!n && /* @__PURE__ */ r(S, { children: v(o || "") })
|
|
24
|
-
] }),
|
|
12
|
+
points: s,
|
|
13
|
+
friendsRank: m,
|
|
14
|
+
rank: C,
|
|
15
|
+
streak: p,
|
|
16
|
+
correct: f,
|
|
17
|
+
incorrect: v,
|
|
18
|
+
inTop: L,
|
|
19
|
+
successRate: g
|
|
20
|
+
}) => /* @__PURE__ */ i(I, { "data-loading": t, children: [
|
|
21
|
+
/* @__PURE__ */ r(S, { children: /* @__PURE__ */ r(e, { loading: t, children: /* @__PURE__ */ i(b, { children: [
|
|
25
22
|
/* @__PURE__ */ i(x, { children: [
|
|
26
|
-
/* @__PURE__ */ r(H, {
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
l && /* @__PURE__ */ r(H, { alt: "avatar", src: l }),
|
|
24
|
+
!l && /* @__PURE__ */ r(R, { children: w(o || "") })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ i(U, { children: [
|
|
27
|
+
/* @__PURE__ */ r(k, { children: o }),
|
|
28
|
+
/* @__PURE__ */ i(u, { children: [
|
|
29
|
+
/* @__PURE__ */ i(y, { children: [
|
|
30
|
+
/* @__PURE__ */ i(T, { children: [
|
|
31
|
+
/* @__PURE__ */ r(M, { alt: "rank-icon", src: j }),
|
|
32
|
+
/* @__PURE__ */ i(a, { children: [
|
|
33
|
+
V(s),
|
|
34
|
+
/* @__PURE__ */ r(h, { children: "PTS" })
|
|
35
|
+
] })
|
|
36
|
+
] }),
|
|
37
|
+
n && /* @__PURE__ */ i(a, { children: [
|
|
38
|
+
/* @__PURE__ */ r(Z, {}),
|
|
39
|
+
C || 0,
|
|
40
|
+
/* @__PURE__ */ r(h, { children: "global rank" })
|
|
33
41
|
] })
|
|
34
42
|
] }),
|
|
35
|
-
/* @__PURE__ */ r(
|
|
36
|
-
/* @__PURE__ */ i("div", { children: [
|
|
43
|
+
/* @__PURE__ */ r(A, {}),
|
|
44
|
+
!n && /* @__PURE__ */ i("div", { children: [
|
|
37
45
|
"TOP ",
|
|
38
|
-
|
|
46
|
+
L || 0,
|
|
39
47
|
"%"
|
|
40
48
|
] })
|
|
41
49
|
] })
|
|
42
50
|
] })
|
|
43
51
|
] }) }) }),
|
|
44
|
-
/* @__PURE__ */ i(
|
|
45
|
-
/* @__PURE__ */ i(
|
|
46
|
-
/* @__PURE__ */ r(e, { loading: t, style: { width: "100%" }, children: /* @__PURE__ */ r(
|
|
47
|
-
/* @__PURE__ */ r(e, { loading: t, style: { width: "100%" }, children: /* @__PURE__ */ r(
|
|
52
|
+
/* @__PURE__ */ i(B, { children: [
|
|
53
|
+
!n && /* @__PURE__ */ i(D, { children: [
|
|
54
|
+
/* @__PURE__ */ r(e, { loading: t, style: { width: "100%" }, children: /* @__PURE__ */ r(d, { indicator: m || 0, title: "Friends rank" }) }),
|
|
55
|
+
/* @__PURE__ */ r(e, { loading: t, style: { width: "100%" }, children: /* @__PURE__ */ r(d, { indicator: C || 0, title: "Global rank" }) })
|
|
48
56
|
] }),
|
|
49
|
-
/* @__PURE__ */ r(e, { loading: t, children: /* @__PURE__ */ i(
|
|
50
|
-
/* @__PURE__ */ r(c, { indicator:
|
|
51
|
-
/* @__PURE__ */ r(c, { indicator:
|
|
52
|
-
/* @__PURE__ */ r(c, { indicator:
|
|
53
|
-
/* @__PURE__ */ r(c, { indicator: `${
|
|
57
|
+
/* @__PURE__ */ r(e, { loading: t, children: /* @__PURE__ */ i(P, { children: [
|
|
58
|
+
/* @__PURE__ */ r(c, { indicator: p || 0, title: "Win streak" }),
|
|
59
|
+
/* @__PURE__ */ r(c, { indicator: f || 0, title: "Correct" }),
|
|
60
|
+
/* @__PURE__ */ r(c, { indicator: v || 0, title: "Incorrect" }),
|
|
61
|
+
/* @__PURE__ */ r(c, { indicator: `${g || 0}%`, title: "Succ. rate" })
|
|
54
62
|
] }) })
|
|
55
63
|
] })
|
|
56
64
|
] });
|
|
57
65
|
export {
|
|
58
|
-
|
|
66
|
+
z as UserStatistics
|
|
59
67
|
};
|
|
@@ -7,6 +7,8 @@ export declare const UserInfo: import('@linaria/react').StyledComponent<import('
|
|
|
7
7
|
export declare const UserName: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
8
|
export declare const UserRating: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
9
|
export declare const TrophyIcon: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
10
|
+
export declare const RtsContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
11
|
+
export declare const RtsDivider: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
12
|
export declare const Rts: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
11
13
|
export declare const RtsIndicator: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
12
14
|
export declare const RtsLabel: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -3,11 +3,11 @@ const o = /* @__PURE__ */ s("div")({
|
|
|
3
3
|
name: "Container",
|
|
4
4
|
class: "c1yrpn9o",
|
|
5
5
|
propsAsIs: !1
|
|
6
|
-
}),
|
|
6
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "TopInfo",
|
|
8
8
|
class: "t17fwahh",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), e = /* @__PURE__ */ s("div")({
|
|
11
11
|
name: "BottomInfo",
|
|
12
12
|
class: "by6w7e9",
|
|
13
13
|
propsAsIs: !1
|
|
@@ -36,53 +36,63 @@ const o = /* @__PURE__ */ s("div")({
|
|
|
36
36
|
class: "t1el3mrn",
|
|
37
37
|
propsAsIs: !1
|
|
38
38
|
}), m = /* @__PURE__ */ s("div")({
|
|
39
|
-
name: "
|
|
39
|
+
name: "RtsContainer",
|
|
40
40
|
class: "r2vgnxv",
|
|
41
41
|
propsAsIs: !1
|
|
42
|
-
}),
|
|
43
|
-
name: "
|
|
42
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
43
|
+
name: "RtsDivider",
|
|
44
44
|
class: "roqn06j",
|
|
45
45
|
propsAsIs: !1
|
|
46
46
|
}), f = /* @__PURE__ */ s("div")({
|
|
47
|
-
name: "
|
|
47
|
+
name: "Rts",
|
|
48
48
|
class: "r15adx7c",
|
|
49
49
|
propsAsIs: !1
|
|
50
|
-
}),
|
|
51
|
-
name: "
|
|
52
|
-
class: "
|
|
50
|
+
}), I = /* @__PURE__ */ s("div")({
|
|
51
|
+
name: "RtsIndicator",
|
|
52
|
+
class: "rv59lta",
|
|
53
53
|
propsAsIs: !1
|
|
54
54
|
}), v = /* @__PURE__ */ s("div")({
|
|
55
|
-
name: "
|
|
55
|
+
name: "RtsLabel",
|
|
56
56
|
class: "r55lotb",
|
|
57
57
|
propsAsIs: !1
|
|
58
58
|
}), A = /* @__PURE__ */ s("div")({
|
|
59
|
-
name: "
|
|
60
|
-
class: "
|
|
59
|
+
name: "Divider",
|
|
60
|
+
class: "d1knfgqt",
|
|
61
61
|
propsAsIs: !1
|
|
62
62
|
}), R = /* @__PURE__ */ s("div")({
|
|
63
|
+
name: "Ranks",
|
|
64
|
+
class: "r1mqo824",
|
|
65
|
+
propsAsIs: !1
|
|
66
|
+
}), U = /* @__PURE__ */ s("div")({
|
|
67
|
+
name: "Statistics",
|
|
68
|
+
class: "sxareh6",
|
|
69
|
+
propsAsIs: !1
|
|
70
|
+
}), u = /* @__PURE__ */ s("div")({
|
|
63
71
|
name: "AvatarPlaceholder",
|
|
64
|
-
class: "
|
|
72
|
+
class: "amcu48h",
|
|
65
73
|
propsAsIs: !1
|
|
66
|
-
}),
|
|
74
|
+
}), h = /* @__PURE__ */ s("button")({
|
|
67
75
|
name: "UserAccountBtn",
|
|
68
|
-
class: "
|
|
76
|
+
class: "u32nfkp",
|
|
69
77
|
propsAsIs: !1
|
|
70
78
|
});
|
|
71
79
|
export {
|
|
72
80
|
r as Avatar,
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
u as AvatarPlaceholder,
|
|
82
|
+
e as BottomInfo,
|
|
75
83
|
o as Container,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
A as Divider,
|
|
85
|
+
R as Ranks,
|
|
86
|
+
f as Rts,
|
|
87
|
+
m as RtsContainer,
|
|
88
|
+
d as RtsDivider,
|
|
79
89
|
I as RtsIndicator,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
v as RtsLabel,
|
|
91
|
+
U as Statistics,
|
|
92
|
+
n as TopInfo,
|
|
83
93
|
i as TrophyIcon,
|
|
84
94
|
t as User,
|
|
85
|
-
|
|
95
|
+
h as UserAccountBtn,
|
|
86
96
|
c as UserInfo,
|
|
87
97
|
l as UserName,
|
|
88
98
|
p as UserRating
|
|
@@ -1,71 +1,84 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i, jsxs as c, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { QuestionType as l } from "@streamlayer/sdk-web-types";
|
|
3
3
|
import { SvgIcon as m } from "../../../icons/index.js";
|
|
4
|
-
import { ShowInContainer as
|
|
5
|
-
const
|
|
6
|
-
feedbackMessages:
|
|
7
|
-
questionVotedCorrectly:
|
|
8
|
-
questionVoted:
|
|
4
|
+
import { ShowInContainer as H, Container as z, FeedbackContainer as h, IconPrediction as L, FeedbackDescription as F, FeedbackIconWrap as k, FeedbackHeader as x, FeedbackText as T, EarlyFeedbackDescription as G, FeedbackDynamicDescription as J, DynamicWrap as K, FeedbackTitle as U, FeedbackTitleWrap as X, FeedbackResultDescription as Z, FeedbackResultDescriptionWrap as _ } from "./styles.js";
|
|
5
|
+
const s = ({
|
|
6
|
+
feedbackMessages: t,
|
|
7
|
+
questionVotedCorrectly: R,
|
|
8
|
+
questionVoted: u,
|
|
9
9
|
questionType: d,
|
|
10
10
|
hasCorrectAnswer: r,
|
|
11
|
-
showExpiredNotification:
|
|
11
|
+
showExpiredNotification: f,
|
|
12
12
|
showClosedNotificationTrivia: O,
|
|
13
13
|
votedInCurrentRender: b,
|
|
14
|
-
votedAfterQuestionClosed:
|
|
15
|
-
voteErrorMessage:
|
|
16
|
-
enteredAnActiveQuestion:
|
|
17
|
-
marketClosed:
|
|
18
|
-
percentsAnimated:
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
votedAfterQuestionClosed: $,
|
|
15
|
+
voteErrorMessage: e,
|
|
16
|
+
enteredAnActiveQuestion: W,
|
|
17
|
+
marketClosed: y,
|
|
18
|
+
percentsAnimated: B,
|
|
19
|
+
votedAnswer: I,
|
|
20
|
+
isEarlyPrediction: n,
|
|
21
|
+
correctAnswer: o
|
|
21
22
|
}) => {
|
|
22
|
-
const C =
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
!
|
|
26
|
-
/* @__PURE__ */
|
|
23
|
+
const C = u && (d === l.TRIVIA || d === l.PREDICTION), N = d === l.PREDICTION && !r, D = y && d === l.PREDICTION && !u && !W || d === l.PREDICTION && $ && b && W, S = C && N, P = C && r, Q = d === l.PREDICTION && u && b && r, Y = u && d === l.POLL && b, p = R ? "correct" : "incorrect", a = R ? t == null ? void 0 : t.correctFeedback : t == null ? void 0 : t.incorrectFeedback;
|
|
24
|
+
return f || O || S || P || D || Y || Q || e ? /* @__PURE__ */ i(H, { enabled: b, animate: B, children: /* @__PURE__ */ c(z, { "data-prediction": N, children: [
|
|
25
|
+
e && !D && /* @__PURE__ */ c(h, { children: [
|
|
26
|
+
!n && /* @__PURE__ */ i(L, { name: "questionExpired" }),
|
|
27
|
+
/* @__PURE__ */ i(F, { children: e })
|
|
27
28
|
] }),
|
|
28
|
-
!
|
|
29
|
-
!
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
29
|
+
!e && f && /* @__PURE__ */ c(h, { children: [
|
|
30
|
+
!n && /* @__PURE__ */ i(k, { children: /* @__PURE__ */ i(m, { name: "questionExpired" }) }),
|
|
31
|
+
/* @__PURE__ */ c("div", { children: [
|
|
32
|
+
/* @__PURE__ */ i(x, { children: /* @__PURE__ */ i(F, { children: "Question Expired" }) }),
|
|
33
|
+
/* @__PURE__ */ i(T, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
|
|
33
34
|
] })
|
|
34
35
|
] }),
|
|
35
|
-
!
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
36
|
+
!e && O && /* @__PURE__ */ c(h, { children: [
|
|
37
|
+
/* @__PURE__ */ i(k, { children: /* @__PURE__ */ i(m, { name: "questionExpired" }) }),
|
|
38
|
+
/* @__PURE__ */ c("div", { children: [
|
|
39
|
+
/* @__PURE__ */ i(x, { children: /* @__PURE__ */ i(F, { children: "Question Closed" }) }),
|
|
40
|
+
/* @__PURE__ */ i(T, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
|
|
40
41
|
] })
|
|
41
42
|
] }),
|
|
42
|
-
|
|
43
|
-
!
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
43
|
+
D && /* @__PURE__ */ c(h, { children: [
|
|
44
|
+
!n && /* @__PURE__ */ i(k, { children: /* @__PURE__ */ i(m, { name: "questionExpired" }) }),
|
|
45
|
+
/* @__PURE__ */ c("div", { children: [
|
|
46
|
+
/* @__PURE__ */ i(x, { children: /* @__PURE__ */ i(F, { children: n ? r ? "The results are already in!" : "Question is Closed" : "Question Closed" }) }),
|
|
47
|
+
/* @__PURE__ */ i(T, { children: n ? /* @__PURE__ */ i(G, { children: r ? `Correct: ${o == null ? void 0 : o.text}` : "Event affecting the outcome has occurred." }) : "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
|
|
47
48
|
] })
|
|
48
49
|
] }),
|
|
49
|
-
!
|
|
50
|
-
!
|
|
51
|
-
/* @__PURE__ */
|
|
50
|
+
!e && S && /* @__PURE__ */ c(h, { children: [
|
|
51
|
+
!n && /* @__PURE__ */ i(L, { name: "icon-prediction" }),
|
|
52
|
+
/* @__PURE__ */ c(J, { children: [
|
|
52
53
|
"Your pick has been recorded. ",
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ i(K, { children: "We’ll notify you of the result." })
|
|
54
55
|
] })
|
|
55
56
|
] }),
|
|
56
|
-
!
|
|
57
|
-
!
|
|
58
|
-
/* @__PURE__ */
|
|
57
|
+
!e && Y && /* @__PURE__ */ c(h, { children: [
|
|
58
|
+
!n && /* @__PURE__ */ i(k, { "data-feedback-type": "correct", children: /* @__PURE__ */ i(m, { name: "correct" }) }),
|
|
59
|
+
/* @__PURE__ */ i(F, { children: "Thanks for answering. Please stay tuned for the next question." })
|
|
59
60
|
] }),
|
|
60
|
-
!
|
|
61
|
-
!
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
|
|
61
|
+
!e && (P || Q) && /* @__PURE__ */ c(h, { children: [
|
|
62
|
+
!n && /* @__PURE__ */ i(k, { "data-feedback-type": p, children: /* @__PURE__ */ i(m, { name: p }) }),
|
|
63
|
+
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ c(x, { children: [
|
|
64
|
+
n ? /* @__PURE__ */ i(X, { children: p === "incorrect" ? /* @__PURE__ */ c(j, { children: [
|
|
65
|
+
/* @__PURE__ */ i("div", { children: "So close!" }),
|
|
66
|
+
/* @__PURE__ */ i("div", { children: "Better luck next time" })
|
|
67
|
+
] }) : /* @__PURE__ */ c(j, { children: [
|
|
68
|
+
/* @__PURE__ */ i("div", { children: "That’s correct!" }),
|
|
69
|
+
/* @__PURE__ */ i("div", { children: "You chose wisely." })
|
|
70
|
+
] }) }) : /* @__PURE__ */ i(U, { "data-feedback-type": p, children: a == null ? void 0 : a.title }),
|
|
71
|
+
n ? /* @__PURE__ */ c(_, { children: [
|
|
72
|
+
/* @__PURE__ */ c("div", { children: [
|
|
73
|
+
"Your pick: ",
|
|
74
|
+
I == null ? void 0 : I.text
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ i("div", { children: p === "incorrect" ? `Correct: ${o == null ? void 0 : o.text}` : "" })
|
|
77
|
+
] }) : /* @__PURE__ */ i(Z, { children: a == null ? void 0 : a.description })
|
|
65
78
|
] }) })
|
|
66
79
|
] })
|
|
67
80
|
] }) }) : null;
|
|
68
81
|
};
|
|
69
82
|
export {
|
|
70
|
-
|
|
83
|
+
s as Feedback
|
|
71
84
|
};
|
|
@@ -6,6 +6,18 @@ export declare const FeedbackIconWrap: import('@linaria/react').StyledComponent<
|
|
|
6
6
|
export declare const FeedbackHeader: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
7
|
export declare const FeedbackTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
8
8
|
export declare const FeedbackDescription: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
9
|
+
export declare const FeedbackTitleWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
|
+
export declare const FeedbackResultDescriptionWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
11
|
+
export declare const FeedbackDynamicDescription: {
|
|
12
|
+
__wyw_meta: unknown;
|
|
13
|
+
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown> & {
|
|
14
|
+
as?: React.ElementType;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const FeedbackResultDescription: {
|
|
17
|
+
__wyw_meta: unknown;
|
|
18
|
+
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown> & {
|
|
19
|
+
as?: React.ElementType;
|
|
20
|
+
}>;
|
|
9
21
|
export declare const FeedbackText: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
22
|
export declare const DynamicWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
11
23
|
export declare const EarlyFeedbackDescription: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,61 +1,81 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
import { SvgIcon as
|
|
3
|
-
import { GrowingShowIn as
|
|
4
|
-
const n = () =>
|
|
2
|
+
import { SvgIcon as a } from "../../../icons/index.js";
|
|
3
|
+
import { GrowingShowIn as c } from "../../../show-in/index.js";
|
|
4
|
+
const n = () => c, d = /* @__PURE__ */ s(n())({
|
|
5
5
|
name: "ShowInContainer",
|
|
6
6
|
class: "s16sbdnm",
|
|
7
7
|
propsAsIs: !0
|
|
8
|
-
}),
|
|
8
|
+
}), f = /* @__PURE__ */ s("div")({
|
|
9
9
|
name: "FeedbackContainer",
|
|
10
10
|
class: "fbhorgl",
|
|
11
11
|
propsAsIs: !1
|
|
12
|
-
}),
|
|
12
|
+
}), k = /* @__PURE__ */ s("div")({
|
|
13
13
|
name: "Container",
|
|
14
14
|
class: "c1g20ja7",
|
|
15
15
|
propsAsIs: !1
|
|
16
|
-
}), o = () =>
|
|
16
|
+
}), o = () => a, m = /* @__PURE__ */ s(o())({
|
|
17
17
|
name: "IconPrediction",
|
|
18
18
|
class: "i455ozj",
|
|
19
19
|
propsAsIs: !0
|
|
20
|
-
}),
|
|
20
|
+
}), b = /* @__PURE__ */ s("div")({
|
|
21
21
|
name: "FeedbackIconWrap",
|
|
22
22
|
class: "f1913njx",
|
|
23
23
|
propsAsIs: !1
|
|
24
|
-
}),
|
|
24
|
+
}), I = /* @__PURE__ */ s("div")({
|
|
25
25
|
name: "FeedbackHeader",
|
|
26
26
|
class: "fzfk69z",
|
|
27
27
|
propsAsIs: !1
|
|
28
|
-
}),
|
|
28
|
+
}), F = /* @__PURE__ */ s("span")({
|
|
29
29
|
name: "FeedbackTitle",
|
|
30
30
|
class: "fx87qaj",
|
|
31
31
|
propsAsIs: !1
|
|
32
|
-
}),
|
|
32
|
+
}), e = /* @__PURE__ */ s("span")({
|
|
33
33
|
name: "FeedbackDescription",
|
|
34
34
|
class: "fvek9ew",
|
|
35
35
|
propsAsIs: !1
|
|
36
|
-
}),
|
|
37
|
-
name: "
|
|
36
|
+
}), A = /* @__PURE__ */ s("div")({
|
|
37
|
+
name: "FeedbackTitleWrap",
|
|
38
38
|
class: "f1kbtp09",
|
|
39
39
|
propsAsIs: !1
|
|
40
|
-
}),
|
|
40
|
+
}), D = /* @__PURE__ */ s("div")({
|
|
41
|
+
name: "FeedbackResultDescriptionWrap",
|
|
42
|
+
class: "f4i8rro",
|
|
43
|
+
propsAsIs: !1
|
|
44
|
+
}), p = () => e, v = /* @__PURE__ */ s(p())({
|
|
45
|
+
name: "FeedbackDynamicDescription",
|
|
46
|
+
class: "fqyssr",
|
|
47
|
+
propsAsIs: !0
|
|
48
|
+
}), r = () => e, x = /* @__PURE__ */ s(r())({
|
|
49
|
+
name: "FeedbackResultDescription",
|
|
50
|
+
class: "fyv794i",
|
|
51
|
+
propsAsIs: !0
|
|
52
|
+
}), u = /* @__PURE__ */ s("div")({
|
|
53
|
+
name: "FeedbackText",
|
|
54
|
+
class: "f1jkj9vx",
|
|
55
|
+
propsAsIs: !1
|
|
56
|
+
}), y = /* @__PURE__ */ s("span")({
|
|
41
57
|
name: "DynamicWrap",
|
|
42
|
-
class: "
|
|
58
|
+
class: "d1pxh3a6",
|
|
43
59
|
propsAsIs: !1
|
|
44
|
-
}),
|
|
60
|
+
}), W = /* @__PURE__ */ s("div")({
|
|
45
61
|
name: "EarlyFeedbackDescription",
|
|
46
|
-
class: "
|
|
62
|
+
class: "e1afvufn",
|
|
47
63
|
propsAsIs: !1
|
|
48
64
|
});
|
|
49
65
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
k as Container,
|
|
67
|
+
y as DynamicWrap,
|
|
68
|
+
W as EarlyFeedbackDescription,
|
|
69
|
+
f as FeedbackContainer,
|
|
70
|
+
e as FeedbackDescription,
|
|
71
|
+
v as FeedbackDynamicDescription,
|
|
72
|
+
I as FeedbackHeader,
|
|
73
|
+
b as FeedbackIconWrap,
|
|
74
|
+
x as FeedbackResultDescription,
|
|
75
|
+
D as FeedbackResultDescriptionWrap,
|
|
76
|
+
u as FeedbackText,
|
|
77
|
+
F as FeedbackTitle,
|
|
78
|
+
A as FeedbackTitleWrap,
|
|
79
|
+
m as IconPrediction,
|
|
80
|
+
d as ShowInContainer
|
|
61
81
|
};
|