@streamlayer/react-ui 0.97.1 → 0.98.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/style.css +1 -1
- package/lib/hooks/analytics.js +2 -2
- package/lib/ui/app/Features/Gamification/UserSummary.js +11 -11
- package/lib/ui/app/Features/Gamification/gamification-feature.js +2 -2
- package/lib/ui/app/Features/Gamification/index.js +42 -44
- package/lib/ui/app/Features/index.js +2 -2
- package/lib/ui/app/Notifications/Onboarding/index.js +7 -8
- package/lib/ui/app/Notifications/index.js +123 -103
- package/lib/ui/app/Points/index.js +14 -14
- package/lib/ui/app/masters.js +26 -28
- package/lib/ui/app/useMastersApp.js +25 -23
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
- package/lib/ui/gamification/vote/feedback/index.js +64 -73
- package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/styles.js +29 -24
- package/lib/ui/gamification/vote/index.js +107 -97
- package/lib/ui/gamification/vote/vote-option/index.js +54 -52
- package/lib/ui/gamification/vote/win-bar/index.d.ts +2 -0
- package/lib/ui/gamification/vote/win-bar/index.js +44 -25
- package/lib/ui/gamification/vote/win-bar/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/win-bar/styles.js +28 -21
- package/lib/ui/modal/index.d.ts +0 -1
- package/lib/ui/modal/index.js +47 -37
- package/lib/ui/show-in/index.d.ts +7 -3
- package/lib/ui/show-in/index.js +43 -21
- package/lib/ui/theme/constants.js +1 -1
- package/lib/ui/theme/theme.js +16 -14
- package/package.json +10 -10
package/lib/ui/app/masters.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as m, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { useStore as C } from "@nanostores/react";
|
|
3
3
|
import { useAnalyticsListener as d, newTabLinkListener as A, appScrollListener as F, appClickListener as x } from "../../hooks/analytics.js";
|
|
4
|
-
import { useRef as S,
|
|
4
|
+
import { useRef as S, useMemo as b } from "react";
|
|
5
5
|
import { resetCss as f } from "../theme/theme.js";
|
|
6
|
-
import { ActiveFeature as
|
|
7
|
-
import { MastersNavigation as
|
|
8
|
-
import { SDKNotifications as
|
|
9
|
-
import { SDKContainer as
|
|
6
|
+
import { ActiveFeature as D, StandaloneFeature as I } from "./Features/index.js";
|
|
7
|
+
import { MastersNavigation as M } from "./Navigation/MastersNavigation/index.js";
|
|
8
|
+
import { SDKNotifications as B } from "./Notifications/index.js";
|
|
9
|
+
import { SDKContainer as j, SDKScrollContainer as k } from "./styles.js";
|
|
10
10
|
import { useMastersApp as K } from "./useMastersApp.js";
|
|
11
11
|
import { MastersContext as O } from "./useMastersContext.js";
|
|
12
12
|
import { useSdkFeature as R } from "./useSdkFeature.js";
|
|
13
13
|
import { useSdkResponsive as T } from "./useSdkResponsive.js";
|
|
14
14
|
import { useSdkScroll as w } from "./useSdkScroll.js";
|
|
15
|
-
import { ChannelsButtonId as
|
|
16
|
-
import { LeaderBoardButtonId as
|
|
17
|
-
import { FeaturedGroupsButtonId as
|
|
15
|
+
import { ChannelsButtonId as E } from "../navigation/button/Channels.js";
|
|
16
|
+
import { LeaderBoardButtonId as G } from "../navigation/button/LeaderBoard.js";
|
|
17
|
+
import { FeaturedGroupsButtonId as P } from "../navigation/button/FeaturedGroups.js";
|
|
18
18
|
import "lodash.throttle";
|
|
19
19
|
import "@streamlayer/sdk-web-interfaces";
|
|
20
20
|
import "../theme/constants.js";
|
|
@@ -37,10 +37,10 @@ import "../gamification/user-statistics/components/statistic/index.js";
|
|
|
37
37
|
import "../gamification/user-statistics/components/statistic/styles.js";
|
|
38
38
|
import "../gamification/user-statistics/styles.js";
|
|
39
39
|
import "../modal/index.js";
|
|
40
|
-
import "@linaria/core";
|
|
41
40
|
import "../../index-jRXrW6ie.js";
|
|
42
41
|
import "../../index-uEuzH3jr.js";
|
|
43
42
|
import "../show-in/index.js";
|
|
43
|
+
import "@linaria/core";
|
|
44
44
|
import "./Features/Gamification/Question.js";
|
|
45
45
|
import "../gamification/detail/sponsor/index.js";
|
|
46
46
|
import "../gamification/vote/index.js";
|
|
@@ -134,10 +134,10 @@ import "./Notifications/styles.js";
|
|
|
134
134
|
import "../gamification/question/notification/pill/index.js";
|
|
135
135
|
import "../gamification/question/notification/pill/styles.js";
|
|
136
136
|
import "../../index-z0QjLiEL.js";
|
|
137
|
-
const
|
|
137
|
+
const V = ({ sdk: t, className: n, scrollStore: s, appNode: r, scrollNode: p, headerNode: i, responsiveStore: o }) => {
|
|
138
138
|
const [, l] = R(t);
|
|
139
139
|
return /* @__PURE__ */ m(
|
|
140
|
-
|
|
140
|
+
D,
|
|
141
141
|
{
|
|
142
142
|
className: n,
|
|
143
143
|
scrollNode: p,
|
|
@@ -149,12 +149,12 @@ const W = ({ sdk: t, className: n, scrollStore: s, appNode: r, scrollNode: p, he
|
|
|
149
149
|
sdk: t
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
|
-
},
|
|
152
|
+
}, W = ({ sdk: t, className: n, appNode: s, responsiveStore: r }) => {
|
|
153
153
|
const p = C(t.featuresList.getStore());
|
|
154
154
|
return p ? Array.from(p, (i) => {
|
|
155
155
|
const o = t.getFeature(i);
|
|
156
156
|
return o ? /* @__PURE__ */ m(
|
|
157
|
-
|
|
157
|
+
I,
|
|
158
158
|
{
|
|
159
159
|
className: n,
|
|
160
160
|
appNode: s,
|
|
@@ -165,7 +165,7 @@ const W = ({ sdk: t, className: n, scrollStore: s, appNode: r, scrollNode: p, he
|
|
|
165
165
|
i
|
|
166
166
|
) : null;
|
|
167
167
|
}) : null;
|
|
168
|
-
},
|
|
168
|
+
}, No = ({ sdk: t, overlays: n, children: s }) => {
|
|
169
169
|
const r = S(null), p = S(null), [i] = T(r), [o, l] = w(r, i), { sdkEnabled: e, sdkReady: c, activeOverlay: a, activateAndLoadOverlay: h, activateEventWithId: N, deactivate: g, isLogged: y } = K(t);
|
|
170
170
|
d(r, { enabled: e, event: "click", listener: A }), d(o, {
|
|
171
171
|
enabled: e,
|
|
@@ -177,13 +177,11 @@ const W = ({ sdk: t, className: n, scrollStore: s, appNode: r, scrollNode: p, he
|
|
|
177
177
|
event: "click",
|
|
178
178
|
listener: x,
|
|
179
179
|
useDomNode: !0
|
|
180
|
-
})
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
const L = D(() => ({ sdk: t }), [t]);
|
|
184
|
-
return /* @__PURE__ */ m(O.Provider, { value: L, children: /* @__PURE__ */ v(k, { ref: r, children: [
|
|
180
|
+
});
|
|
181
|
+
const L = b(() => ({ sdk: t }), [t]);
|
|
182
|
+
return /* @__PURE__ */ m(O.Provider, { value: L, children: /* @__PURE__ */ v(j, { ref: r, children: [
|
|
185
183
|
e && /* @__PURE__ */ m(
|
|
186
|
-
|
|
184
|
+
M,
|
|
187
185
|
{
|
|
188
186
|
ref: p,
|
|
189
187
|
sdkReady: c,
|
|
@@ -197,9 +195,9 @@ const W = ({ sdk: t, className: n, scrollStore: s, appNode: r, scrollNode: p, he
|
|
|
197
195
|
responsiveStore: i
|
|
198
196
|
}
|
|
199
197
|
),
|
|
200
|
-
/* @__PURE__ */ v(
|
|
198
|
+
/* @__PURE__ */ v(k, { className: "sl-hide-on-modal", ref: o, "data-nav": e.toString(), children: [
|
|
201
199
|
c && /* @__PURE__ */ m(
|
|
202
|
-
|
|
200
|
+
B,
|
|
203
201
|
{
|
|
204
202
|
sdk: t,
|
|
205
203
|
scrollNode: o,
|
|
@@ -209,10 +207,10 @@ const W = ({ sdk: t, className: n, scrollStore: s, appNode: r, scrollNode: p, he
|
|
|
209
207
|
responsiveStore: i
|
|
210
208
|
}
|
|
211
209
|
),
|
|
212
|
-
/* @__PURE__ */ m("div", { style: !e || a ===
|
|
213
|
-
n && a ===
|
|
214
|
-
c && a ===
|
|
215
|
-
|
|
210
|
+
/* @__PURE__ */ m("div", { style: !e || a === E ? {} : { display: "none" }, children: s && s({ activateEventWithId: N, deactivate: g }) }),
|
|
211
|
+
n && a === G && n[a],
|
|
212
|
+
c && a === P && /* @__PURE__ */ m(
|
|
213
|
+
V,
|
|
216
214
|
{
|
|
217
215
|
scrollStore: l,
|
|
218
216
|
responsiveStore: i,
|
|
@@ -223,7 +221,7 @@ const W = ({ sdk: t, className: n, scrollStore: s, appNode: r, scrollNode: p, he
|
|
|
223
221
|
sdk: t
|
|
224
222
|
}
|
|
225
223
|
),
|
|
226
|
-
c && /* @__PURE__ */ m(
|
|
224
|
+
c && /* @__PURE__ */ m(W, { responsiveStore: i, appNode: r, className: f, sdk: t })
|
|
227
225
|
] }),
|
|
228
226
|
e && !y && /* @__PURE__ */ m(
|
|
229
227
|
"div",
|
|
@@ -235,5 +233,5 @@ const W = ({ sdk: t, className: n, scrollStore: s, appNode: r, scrollNode: p, he
|
|
|
235
233
|
] }) });
|
|
236
234
|
};
|
|
237
235
|
export {
|
|
238
|
-
|
|
236
|
+
No as MastersApp
|
|
239
237
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useStore as
|
|
2
|
-
import { useRef as y, useState as
|
|
3
|
-
import { FeatureType as
|
|
1
|
+
import { useStore as v } from "@nanostores/react";
|
|
2
|
+
import { useRef as y, useState as E, useCallback as z, useEffect as u } from "react";
|
|
3
|
+
import { FeatureType as p } from "@streamlayer/sdk-web-types";
|
|
4
4
|
import "./Navigation/MastersNavigation/index.js";
|
|
5
|
-
import { FeaturedGroupsButtonId as
|
|
5
|
+
import { FeaturedGroupsButtonId as c } from "../navigation/button/FeaturedGroups.js";
|
|
6
6
|
import { ChannelsButtonId as i } from "../navigation/button/Channels.js";
|
|
7
7
|
import "react/jsx-runtime";
|
|
8
8
|
import "../navigation/button/LeaderBoard.js";
|
|
@@ -14,30 +14,32 @@ import "../navigation/button/styles.js";
|
|
|
14
14
|
import "../navigation/masters.js";
|
|
15
15
|
import "../navigation/index.js";
|
|
16
16
|
import "../theme/constants.js";
|
|
17
|
-
const
|
|
18
|
-
const
|
|
17
|
+
const j = (e) => {
|
|
18
|
+
const f = y(""), [S, o] = E(!1), g = v(e.status), a = v(e.userId()), l = v(e.getActiveFeature()), n = g === "ready", [m, r] = E(c), A = z(
|
|
19
19
|
(t, s) => {
|
|
20
|
-
r(s), t && e.createEventSession(t), s ===
|
|
21
|
-
e.openFeature(
|
|
20
|
+
r(s), t && e.createEventSession(t), s === c ? window.requestAnimationFrame(() => {
|
|
21
|
+
e.openFeature(p.GAMES);
|
|
22
22
|
}) : e.closeFeature(!1);
|
|
23
23
|
},
|
|
24
24
|
[e]
|
|
25
25
|
);
|
|
26
26
|
u(() => {
|
|
27
|
-
!n &&
|
|
28
|
-
}, [n,
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
!n && m === c && (r(i), e.closeFeature(!0));
|
|
28
|
+
}, [n, m, e]), u(() => {
|
|
29
|
+
l === p.GAMES ? r(c) : l === p.UNSET && r(i);
|
|
30
|
+
const t = e.getFeature(p.GAMES);
|
|
31
|
+
t && (t.closeQuestion(), t.closeUser());
|
|
32
|
+
}, [l, e]);
|
|
31
33
|
const F = (t) => {
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
|
|
34
|
+
f.current = t, o(!0), e.initializeApp({ skipOrganizationSettings: !0 }).then(({ enabled: s, err: b }) => {
|
|
35
|
+
if (b) {
|
|
36
|
+
A(t, i);
|
|
35
37
|
return;
|
|
36
38
|
}
|
|
37
39
|
if (s) {
|
|
38
40
|
e.isUserAuthorized().then((h) => {
|
|
39
41
|
if (h) {
|
|
40
|
-
|
|
42
|
+
A(t, i);
|
|
41
43
|
return;
|
|
42
44
|
} else
|
|
43
45
|
e.disableApp();
|
|
@@ -45,7 +47,7 @@ const D = (e) => {
|
|
|
45
47
|
return;
|
|
46
48
|
}
|
|
47
49
|
});
|
|
48
|
-
},
|
|
50
|
+
}, d = () => {
|
|
49
51
|
o(!1), e.disableApp();
|
|
50
52
|
};
|
|
51
53
|
return u(() => {
|
|
@@ -53,9 +55,9 @@ const D = (e) => {
|
|
|
53
55
|
n && (r(i), e.disableApp());
|
|
54
56
|
return;
|
|
55
57
|
}
|
|
56
|
-
if (a &&
|
|
58
|
+
if (a && f.current && S) {
|
|
57
59
|
e.initializeApp({ skipOrganizationSettings: !0 }).then(() => {
|
|
58
|
-
e.createEventSession(
|
|
60
|
+
e.createEventSession(f.current);
|
|
59
61
|
});
|
|
60
62
|
return;
|
|
61
63
|
}
|
|
@@ -64,13 +66,13 @@ const D = (e) => {
|
|
|
64
66
|
}, [o, e]), {
|
|
65
67
|
sdkEnabled: S,
|
|
66
68
|
sdkReady: n,
|
|
67
|
-
activeOverlay:
|
|
68
|
-
activateAndLoadOverlay:
|
|
69
|
+
activeOverlay: m,
|
|
70
|
+
activateAndLoadOverlay: A,
|
|
69
71
|
activateEventWithId: F,
|
|
70
|
-
deactivate:
|
|
72
|
+
deactivate: d,
|
|
71
73
|
isLogged: !!a
|
|
72
74
|
};
|
|
73
75
|
};
|
|
74
76
|
export {
|
|
75
|
-
|
|
77
|
+
j as useMastersApp
|
|
76
78
|
};
|
|
@@ -1,82 +1,73 @@
|
|
|
1
|
-
import { jsx as i, jsxs as n
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ShowInContainer as E, Container as K, IconPrediction as j, FeedbackDescription as l, FeedbackIconWrap as m, FeedbackHeader as F, FeedbackText as I, DynamicWrap as z, FeedbackTitle as G } from "./styles.js";
|
|
1
|
+
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionType as e } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { SvgIcon as h } from "../../../icons/index.js";
|
|
4
|
+
import { ShowInContainer as j, Container as L, FeedbackContainer as r, IconPrediction as C, FeedbackDescription as t, FeedbackIconWrap as a, FeedbackHeader as F, FeedbackText as I, DynamicWrap as Y, FeedbackTitle as E } from "./styles.js";
|
|
6
5
|
import "@linaria/react";
|
|
6
|
+
import "react";
|
|
7
7
|
import "../../../show-in/index.js";
|
|
8
8
|
import "@linaria/core";
|
|
9
|
-
const
|
|
10
|
-
feedbackMessages:
|
|
11
|
-
questionVotedCorrectly:
|
|
12
|
-
questionVoted:
|
|
13
|
-
questionType:
|
|
14
|
-
hasCorrectAnswer:
|
|
15
|
-
showExpiredNotification:
|
|
16
|
-
showClosedNotificationTrivia:
|
|
17
|
-
votedInCurrentRender:
|
|
18
|
-
votedAfterQuestionClosed:
|
|
9
|
+
const _ = ({
|
|
10
|
+
feedbackMessages: l,
|
|
11
|
+
questionVotedCorrectly: P,
|
|
12
|
+
questionVoted: m,
|
|
13
|
+
questionType: d,
|
|
14
|
+
hasCorrectAnswer: b,
|
|
15
|
+
showExpiredNotification: u,
|
|
16
|
+
showClosedNotificationTrivia: w,
|
|
17
|
+
votedInCurrentRender: p,
|
|
18
|
+
votedAfterQuestionClosed: S,
|
|
19
19
|
voteErrorMessage: c,
|
|
20
|
-
enteredAnActiveQuestion:
|
|
21
|
-
marketClosed:
|
|
22
|
-
percentsAnimated:
|
|
20
|
+
enteredAnActiveQuestion: x,
|
|
21
|
+
marketClosed: W,
|
|
22
|
+
percentsAnimated: Q
|
|
23
23
|
}) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */ i(l, { children: c })
|
|
36
|
-
] }),
|
|
37
|
-
!c && w && /* @__PURE__ */ n(t, { children: [
|
|
38
|
-
/* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(a, { name: "questionExpired" }) }),
|
|
39
|
-
/* @__PURE__ */ n("div", { children: [
|
|
40
|
-
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(l, { children: "Question Expired" }) }),
|
|
41
|
-
/* @__PURE__ */ i(I, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
|
|
42
|
-
] })
|
|
43
|
-
] }),
|
|
44
|
-
!c && P && /* @__PURE__ */ n(t, { children: [
|
|
45
|
-
/* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(a, { name: "questionExpired" }) }),
|
|
46
|
-
/* @__PURE__ */ n("div", { children: [
|
|
47
|
-
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(l, { children: "Question Closed" }) }),
|
|
48
|
-
/* @__PURE__ */ i(I, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
|
|
49
|
-
] })
|
|
50
|
-
] }),
|
|
51
|
-
!c && O && /* @__PURE__ */ n(t, { children: [
|
|
52
|
-
/* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(a, { name: "questionExpired" }) }),
|
|
53
|
-
/* @__PURE__ */ n("div", { children: [
|
|
54
|
-
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(l, { children: "Question Closed" }) }),
|
|
55
|
-
/* @__PURE__ */ i(I, { children: "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
|
|
56
|
-
] })
|
|
57
|
-
] }),
|
|
58
|
-
!c && R && /* @__PURE__ */ n(t, { children: [
|
|
59
|
-
/* @__PURE__ */ i(j, { name: "icon-prediction" }),
|
|
60
|
-
/* @__PURE__ */ n(l, { children: [
|
|
61
|
-
"Your pick has been recorded. ",
|
|
62
|
-
/* @__PURE__ */ i(z, { children: "We’ll notify you of the result." })
|
|
63
|
-
] })
|
|
64
|
-
] }),
|
|
65
|
-
!c && S && /* @__PURE__ */ n(t, { children: [
|
|
66
|
-
/* @__PURE__ */ i(m, { "data-feedback-type": "correct", children: /* @__PURE__ */ i(a, { name: "correct" }) }),
|
|
67
|
-
/* @__PURE__ */ i(l, { children: "Thanks for answering. Please stay tuned for the next question." })
|
|
68
|
-
] }),
|
|
69
|
-
!c && (T || N) && !P && /* @__PURE__ */ n(t, { children: [
|
|
70
|
-
/* @__PURE__ */ i(m, { "data-feedback-type": b, children: /* @__PURE__ */ i(a, { name: b }) }),
|
|
71
|
-
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ n(F, { children: [
|
|
72
|
-
/* @__PURE__ */ i(G, { "data-feedback-type": b, children: h == null ? void 0 : h.title }),
|
|
73
|
-
/* @__PURE__ */ i(l, { children: h == null ? void 0 : h.description })
|
|
74
|
-
] }) })
|
|
75
|
-
] })
|
|
24
|
+
const D = m && (d === e.TRIVIA || d === e.PREDICTION), y = d === e.PREDICTION && !b, O = W && d === e.PREDICTION && !m && !x || d === e.PREDICTION && S && p && x, T = D && y, N = D && b, R = d === e.PREDICTION && m && p && b, f = m && d === e.POLL && p, k = P ? "correct" : "incorrect", o = P ? l == null ? void 0 : l.correctFeedback : l == null ? void 0 : l.incorrectFeedback;
|
|
25
|
+
return u || w || T || N || O || f || R || c ? /* @__PURE__ */ i(j, { enabled: p, animate: Q, children: /* @__PURE__ */ n(L, { "data-prediction": y, children: [
|
|
26
|
+
c && /* @__PURE__ */ n(r, { children: [
|
|
27
|
+
/* @__PURE__ */ i(C, { name: "questionExpired" }),
|
|
28
|
+
/* @__PURE__ */ i(t, { children: c })
|
|
29
|
+
] }),
|
|
30
|
+
!c && u && /* @__PURE__ */ n(r, { children: [
|
|
31
|
+
/* @__PURE__ */ i(a, { children: /* @__PURE__ */ i(h, { name: "questionExpired" }) }),
|
|
32
|
+
/* @__PURE__ */ n("div", { children: [
|
|
33
|
+
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(t, { children: "Question Expired" }) }),
|
|
34
|
+
/* @__PURE__ */ i(I, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
|
|
76
35
|
] })
|
|
77
|
-
}
|
|
78
|
-
|
|
36
|
+
] }),
|
|
37
|
+
!c && w && /* @__PURE__ */ n(r, { children: [
|
|
38
|
+
/* @__PURE__ */ i(a, { children: /* @__PURE__ */ i(h, { name: "questionExpired" }) }),
|
|
39
|
+
/* @__PURE__ */ n("div", { children: [
|
|
40
|
+
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(t, { children: "Question Closed" }) }),
|
|
41
|
+
/* @__PURE__ */ i(I, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
|
|
42
|
+
] })
|
|
43
|
+
] }),
|
|
44
|
+
!c && O && /* @__PURE__ */ n(r, { children: [
|
|
45
|
+
/* @__PURE__ */ i(a, { children: /* @__PURE__ */ i(h, { name: "questionExpired" }) }),
|
|
46
|
+
/* @__PURE__ */ n("div", { children: [
|
|
47
|
+
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(t, { children: "Question Closed" }) }),
|
|
48
|
+
/* @__PURE__ */ i(I, { children: "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
|
|
49
|
+
] })
|
|
50
|
+
] }),
|
|
51
|
+
!c && T && /* @__PURE__ */ n(r, { children: [
|
|
52
|
+
/* @__PURE__ */ i(C, { name: "icon-prediction" }),
|
|
53
|
+
/* @__PURE__ */ n(t, { children: [
|
|
54
|
+
"Your pick has been recorded. ",
|
|
55
|
+
/* @__PURE__ */ i(Y, { children: "We’ll notify you of the result." })
|
|
56
|
+
] })
|
|
57
|
+
] }),
|
|
58
|
+
!c && f && /* @__PURE__ */ n(r, { children: [
|
|
59
|
+
/* @__PURE__ */ i(a, { "data-feedback-type": "correct", children: /* @__PURE__ */ i(h, { name: "correct" }) }),
|
|
60
|
+
/* @__PURE__ */ i(t, { children: "Thanks for answering. Please stay tuned for the next question." })
|
|
61
|
+
] }),
|
|
62
|
+
!c && (N || R) && /* @__PURE__ */ n(r, { children: [
|
|
63
|
+
/* @__PURE__ */ i(a, { "data-feedback-type": k, children: /* @__PURE__ */ i(h, { name: k }) }),
|
|
64
|
+
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ n(F, { children: [
|
|
65
|
+
/* @__PURE__ */ i(E, { "data-feedback-type": k, children: o == null ? void 0 : o.title }),
|
|
66
|
+
/* @__PURE__ */ i(t, { children: o == null ? void 0 : o.description })
|
|
67
|
+
] }) })
|
|
68
|
+
] })
|
|
69
|
+
] }) }) : null;
|
|
79
70
|
};
|
|
80
71
|
export {
|
|
81
|
-
|
|
72
|
+
_ as Feedback
|
|
82
73
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ShowInContainer: any;
|
|
3
|
+
export declare const FeedbackContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
4
|
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
5
|
export declare const IconPrediction: any;
|
|
5
6
|
export declare const FeedbackIconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,54 +1,59 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
import { SvgIcon as e } from "../../../icons/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { GrowingShowIn as a } from "../../../show-in/index.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@linaria/core";
|
|
7
|
-
const
|
|
7
|
+
const n = () => a, l = /* @__PURE__ */ s(n())({
|
|
8
8
|
name: "ShowInContainer",
|
|
9
9
|
class: "s16sbdnm",
|
|
10
10
|
propsAsIs: !0
|
|
11
|
-
}),
|
|
11
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
12
|
+
name: "FeedbackContainer",
|
|
13
|
+
class: "fbhorgl",
|
|
14
|
+
propsAsIs: !1
|
|
15
|
+
}), f = /* @__PURE__ */ s("div")({
|
|
12
16
|
name: "Container",
|
|
13
|
-
class: "
|
|
17
|
+
class: "c1g20ja7",
|
|
14
18
|
propsAsIs: !1
|
|
15
|
-
}),
|
|
19
|
+
}), o = () => e, I = /* @__PURE__ */ s(o())({
|
|
16
20
|
name: "IconPrediction",
|
|
17
|
-
class: "
|
|
21
|
+
class: "i455ozj",
|
|
18
22
|
propsAsIs: !0
|
|
19
|
-
}), f = /* @__PURE__ */ s("div")({
|
|
20
|
-
name: "FeedbackIconWrap",
|
|
21
|
-
class: "f455ozj",
|
|
22
|
-
propsAsIs: !1
|
|
23
23
|
}), b = /* @__PURE__ */ s("div")({
|
|
24
|
-
name: "
|
|
24
|
+
name: "FeedbackIconWrap",
|
|
25
25
|
class: "f1913njx",
|
|
26
26
|
propsAsIs: !1
|
|
27
|
-
}), k = /* @__PURE__ */ s("
|
|
28
|
-
name: "
|
|
27
|
+
}), k = /* @__PURE__ */ s("div")({
|
|
28
|
+
name: "FeedbackHeader",
|
|
29
29
|
class: "fzfk69z",
|
|
30
30
|
propsAsIs: !1
|
|
31
31
|
}), F = /* @__PURE__ */ s("span")({
|
|
32
|
-
name: "
|
|
32
|
+
name: "FeedbackTitle",
|
|
33
33
|
class: "fx87qaj",
|
|
34
34
|
propsAsIs: !1
|
|
35
|
-
}), A = /* @__PURE__ */ s("
|
|
36
|
-
name: "
|
|
35
|
+
}), A = /* @__PURE__ */ s("span")({
|
|
36
|
+
name: "FeedbackDescription",
|
|
37
37
|
class: "fvek9ew",
|
|
38
38
|
propsAsIs: !1
|
|
39
|
+
}), v = /* @__PURE__ */ s("div")({
|
|
40
|
+
name: "FeedbackText",
|
|
41
|
+
class: "f1kbtp09",
|
|
42
|
+
propsAsIs: !1
|
|
39
43
|
}), x = /* @__PURE__ */ s("span")({
|
|
40
44
|
name: "DynamicWrap",
|
|
41
|
-
class: "
|
|
45
|
+
class: "d4i8rro",
|
|
42
46
|
propsAsIs: !1
|
|
43
47
|
});
|
|
44
48
|
export {
|
|
45
|
-
|
|
49
|
+
f as Container,
|
|
46
50
|
x as DynamicWrap,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
m as FeedbackContainer,
|
|
52
|
+
A as FeedbackDescription,
|
|
53
|
+
k as FeedbackHeader,
|
|
54
|
+
b as FeedbackIconWrap,
|
|
55
|
+
v as FeedbackText,
|
|
56
|
+
F as FeedbackTitle,
|
|
52
57
|
I as IconPrediction,
|
|
53
|
-
|
|
58
|
+
l as ShowInContainer
|
|
54
59
|
};
|