@streamlayer/react-ui 0.74.3 → 0.75.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.
@@ -1,10 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { useStore as f } from "@nanostores/react";
3
- import { useState as u, useMemo as s } from "react";
4
- import { NotificationType as m } from "@streamlayer/sdk-web-notifications";
5
- import { Notification as n } from "../../gamification/question/notification/index.js";
6
- import { Onboarding as c } from "./Onboarding/index.js";
7
- import { Container as l } from "./styles.js";
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 N = ({ sdk: o, notification: r }) => r.type === m.QUESTION ? /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(n, { ...r }) }) : r.type === m.QUESTION_RESOLVED ? /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(n, { ...r }) }) : r.type === m.ONBOARDING ? /* @__PURE__ */ t(c, { sdk: o, notification: r, hiding: r.hiding }) : null, rr = ({ sdk: o }) => {
41
- const [r] = u(o.getNotificationsStore()), i = f(r), p = s(() => {
42
- if (!(i != null && i.size))
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 e of i.values())
45
- if (e.type === m.ONBOARDING)
46
- return e;
47
- return i.values().next().value;
48
- }, [i]);
49
- return p ? /* @__PURE__ */ t(l, { hiding: p.hiding, children: /* @__PURE__ */ t(N, { sdk: o, notification: p }) }) : null;
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
- rr as SDKNotifications
89
+ ht as SDKNotifications
53
90
  };
@@ -1 +1,3 @@
1
+ /// <reference types="react" />
1
2
  export declare const Container: any;
3
+ export declare const InnerContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1,12 +1,17 @@
1
- import { styled as o } from "@linaria/react";
2
- import { ShowIn as t } from "../../show-in/index.js";
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 = () => t, m = /* @__PURE__ */ o(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
- m as Container
15
+ p as Container,
16
+ a as InnerContainer
12
17
  };
@@ -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 m } from "@nanostores/react";
2
- import { useRef as y, useState as v, useCallback as F, useEffect as d } from "react";
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 a } from "../navigation/button/FeaturedGroups.js";
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 j = (e) => {
15
- const n = y(""), [f, l] = v(!1), A = m(e.status), r = m(e.userId()), i = A === "ready", [s, u] = v(a), p = F(
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 === a ? (t && e.createEventSession(t), e.openFeature(I.GAMES)) : e.closeFeature();
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
- d(() => {
22
- !i && s === a && (u(c), e.closeFeature());
23
+ v(() => {
24
+ !i && s === n && (u(c), e.closeFeature());
23
25
  }, [i, s, e]);
24
26
  const E = (t) => {
25
- n.current = t, e.initializeApp().then(({ enabled: o, err: b }) => {
26
- if (l(!0), b) {
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, a);
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
- l(!1), e.disableApp();
44
+ f(!1), e.disableApp();
43
45
  };
44
- return d(() => {
46
+ return v(() => {
45
47
  if (!r) {
46
48
  i && (u(c), e.disableApp());
47
49
  return;
48
50
  }
49
- r && n.current && f && e.initializeApp().then(() => {
50
- e.createEventSession(n.current);
51
+ r && a.current && m && e.initializeApp().then(() => {
52
+ e.createEventSession(a.current);
51
53
  });
52
54
  }, [r]), {
53
- sdkEnabled: f,
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
- j as useMastersApp
65
+ U as useMastersApp
64
66
  };
@@ -1,52 +1,48 @@
1
- import { jsx as r, jsxs as a, Fragment as n } from "react/jsx-runtime";
2
- import { QuestionType as o } from "@streamlayer/sdk-web-types";
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 { PredictionResult as h } from "./prediction-result/index.js";
6
- import { Container as I, CloseIconWrap as T, CloseIcon as C, Header as E, TypeIcon as A, TypeName as D, Question as W, AnswerButton as w } from "./styles.js";
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 J = ({
21
- close: l,
16
+ const R = ({
17
+ close: e,
22
18
  action: i,
23
- data: { questionType: t, question: m, insight: c, tweet: e }
19
+ data: { questionType: r, question: m, insight: l, tweet: p }
24
20
  }) => {
25
- const p = d[t];
26
- return p ? m != null && m.predictionResult ? /* @__PURE__ */ r(h, { close: l, ...m }) : /* @__PURE__ */ a(I, { children: [
27
- /* @__PURE__ */ r(T, { onClick: l, children: /* @__PURE__ */ r(C, { name: "icon-cross" }) }),
28
- t !== o.TWEET && /* @__PURE__ */ a(E, { children: [
29
- /* @__PURE__ */ r(
30
- A,
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": t === o.TRIVIA,
33
- "data-type-poll": t === o.POLL,
34
- name: p.iconName
28
+ "data-type-trivia": r === t.TRIVIA,
29
+ "data-type-poll": r === t.POLL,
30
+ name: n.iconName
35
31
  }
36
32
  ),
37
- /* @__PURE__ */ r(D, { children: p.label })
33
+ /* @__PURE__ */ o(s, { children: n.label })
38
34
  ] }),
39
- t === o.FACTOID && /* @__PURE__ */ r(f, { ...c, action: i }),
40
- t === o.TWEET && // ToDo: connect with real Api data
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__ */ r(x, { ...e, action: i }),
44
- t !== o.FACTOID && t !== o.TWEET && /* @__PURE__ */ a(n, { children: [
45
- /* @__PURE__ */ r(W, { children: m == null ? void 0 : m.title }),
46
- /* @__PURE__ */ r(w, { onClick: i, children: "Answer" })
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
- J as Notification
47
+ R as Notification
52
48
  };
@@ -1,6 +1,6 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { VideoPlayer as m } from "../../../../video-player/index.js";
3
- import { InsightContainer as c, Image as e, InsightContent as h, Title as p, Description as u, ActionBtn as I } from "./styles.js";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { VideoPlayer as c } from "../../../../video-player/index.js";
3
+ import { InsightContainer as h, Image as p, InsightContent as o, Title as u, Description as e, ActionBtn as I } from "./styles.js";
4
4
  import "react";
5
5
  import "../../../../icons/index.js";
6
6
  import "@linaria/react";
@@ -8,16 +8,16 @@ import "../../../../video-player/styles.js";
8
8
  const b = ({
9
9
  video: r,
10
10
  image: n,
11
- heading: l,
12
- body: s,
13
- action: i
14
- }) => /* @__PURE__ */ o(c, { children: [
15
- (r == null ? void 0 : r.url) && /* @__PURE__ */ t(m, { source: r.url, poster: r.thumbnailUrl }),
16
- n && /* @__PURE__ */ t(e, { src: n }),
17
- /* @__PURE__ */ o(h, { children: [
18
- /* @__PURE__ */ t(p, { children: l }),
11
+ heading: s,
12
+ body: m,
13
+ action: l
14
+ }) => /* @__PURE__ */ i(h, { children: [
15
+ (r == null ? void 0 : r.url) && /* @__PURE__ */ t(c, { source: r.url, poster: r.thumbnailUrl }),
16
+ n && !(r != null && r.url) && /* @__PURE__ */ t(p, { src: n }),
17
+ /* @__PURE__ */ i(o, { children: [
19
18
  /* @__PURE__ */ t(u, { children: s }),
20
- i && /* @__PURE__ */ t(I, { onClick: i, children: "View Insight" })
19
+ /* @__PURE__ */ t(e, { children: m }),
20
+ l && /* @__PURE__ */ t(I, { onClick: l, children: "View Insight" })
21
21
  ] })
22
22
  ] });
23
23
  export {
@@ -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 { jsxs as c, jsx as i, Fragment as f } from "react/jsx-runtime";
2
- import { useState as b, useEffect as g } from "react";
3
- import { AnimationLines as S } from "./animation-lines/index.js";
4
- import { Container as x, AnimateContent as E, Content as t, Title as n, SubtitleFG as d, Subtitle as a, AnswerText as h, FeedbackIcon as m, CloseButton as C, CloseIcon as p } from "./styles.js";
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
- const j = ({
9
- close: u,
10
- votedAnswer: l,
11
- correct: r,
12
- correctAnswerTitle: k
13
- }) => {
14
- const [o, s] = b(1);
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(P);
20
- }, [r]), /* @__PURE__ */ c(x, { "data-bg-color-white": o > 3, children: [
21
- /* @__PURE__ */ i(S, { step: o, correct: r }),
22
- /* @__PURE__ */ c(E, { "data-active-number": o, children: [
23
- /* @__PURE__ */ c(t, { children: [
24
- /* @__PURE__ */ i(n, { children: "Master" }),
25
- /* @__PURE__ */ i(d, { children: "FEATURED GROUPS +" })
26
- ] }),
27
- /* @__PURE__ */ c(t, { children: [
28
- /* @__PURE__ */ i(n, { children: "Prediction results are in!" }),
29
- /* @__PURE__ */ i(d, { children: "FEATURED GROUPS +" })
30
- ] }),
31
- /* @__PURE__ */ c(t, { children: [
32
- /* @__PURE__ */ i(n, { children: "Who holds the most birdies in golf?" }),
33
- /* @__PURE__ */ c(a, { children: [
34
- "Your Pick: ",
35
- /* @__PURE__ */ i(h, { children: l == null ? void 0 : l.title })
36
- ] })
37
- ] }),
38
- r ? /* @__PURE__ */ c(f, { children: [
39
- /* @__PURE__ */ c(t, { "data-color-green": "true", children: [
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__ */ c(t, { "data-color-green": "true", children: [
48
- /* @__PURE__ */ i(C, { onClick: u, children: /* @__PURE__ */ i(p, { name: "icon-cross" }) }),
49
- /* @__PURE__ */ c(n, { children: [
50
- "+",
51
- l == null ? void 0 : l.points,
52
- " points"
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
- /* @__PURE__ */ i(h, { children: l == null ? void 0 : l.title })
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__ */ c(a, { "data-incorrect": "true", children: [
68
- /* @__PURE__ */ i(m, { name: "circleClose" }),
69
- "Your Pick: ",
70
- /* @__PURE__ */ i(h, { children: l == null ? void 0 : l.title })
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
- j as PredictionResult
109
+ z as PredictionResult
78
110
  };
@@ -1,6 +1,7 @@
1
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 AnimateContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
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>>;