@streamlayer/react-ui 0.98.1 → 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/style.css +1 -1
- package/lib/hooks/showIn.js +45 -0
- package/lib/{index-jRXrW6ie.js → index-Bicco-Aq.js} +1 -1
- package/lib/{index-z0QjLiEL.js → index-CZvwzN5o.js} +1 -1
- package/lib/index.js +4 -8
- package/lib/ui/app/Features/Gamification/Friends.js +10 -23
- package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +1 -2
- package/lib/ui/app/Features/Gamification/Leaderboard.js +37 -54
- package/lib/ui/app/Features/Gamification/Question.js +33 -65
- package/lib/ui/app/Features/Gamification/QuestionsList.js +8 -34
- package/lib/ui/app/Features/Gamification/Tabs.d.ts +1 -2
- package/lib/ui/app/Features/Gamification/Tabs.js +30 -97
- package/lib/ui/app/Features/Gamification/UserSummary.js +12 -21
- package/lib/ui/app/Features/Gamification/gamification-feature.js +2 -93
- package/lib/ui/app/Features/Gamification/index.d.ts +1 -2
- package/lib/ui/app/Features/Gamification/index.js +68 -143
- package/lib/ui/app/Features/index.d.ts +1 -2
- package/lib/ui/app/Features/index.js +20 -109
- package/lib/ui/app/Navigation/MastersNavigation/index.js +16 -22
- package/lib/ui/app/Navigation/index.js +9 -12
- package/lib/ui/app/Notifications/Onboarding/Notification/index.js +13 -16
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +18 -20
- package/lib/ui/app/Notifications/Onboarding/index.js +45 -72
- package/lib/ui/app/Notifications/index.js +96 -148
- package/lib/ui/app/Notifications/styles.js +10 -15
- package/lib/ui/app/Points/index.js +18 -26
- package/lib/ui/app/masters.js +71 -190
- package/lib/ui/app/useClipboardCopy.js +11 -15
- package/lib/ui/app/useMastersApp.js +34 -44
- package/lib/ui/app/useSdkResponsive.js +18 -19
- package/lib/ui/app/useSdkScroll.js +28 -26
- package/lib/ui/button/index.js +3 -4
- package/lib/ui/gamification/copyNotification/index.js +5 -7
- package/lib/ui/gamification/detail/header/index.js +15 -18
- package/lib/ui/gamification/detail/header/styles.js +12 -14
- package/lib/ui/gamification/detail/sponsor/index.js +2 -3
- package/lib/ui/gamification/insight/index.js +5 -6
- package/lib/ui/gamification/insight-list/index.js +3 -6
- package/lib/ui/gamification/invite-link/index.js +11 -17
- package/lib/ui/gamification/invite-link/styles.js +13 -15
- package/lib/ui/gamification/leaderboard/index.js +21 -28
- package/lib/ui/gamification/leaderboard/list-item/index.d.ts +0 -1
- package/lib/ui/gamification/leaderboard/list-item/index.js +17 -20
- package/lib/ui/gamification/leaderboard/list-item/styles.js +16 -18
- package/lib/ui/gamification/leaderboard/static.js +34 -31
- package/lib/ui/gamification/leaderboard/styles.js +1 -1
- package/lib/ui/gamification/onboarding/index.js +51 -73
- package/lib/ui/gamification/onboarding/invitingUser/index.js +10 -11
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +3 -2
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +17 -20
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +2 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +21 -11
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +21 -30
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +22 -24
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +5 -7
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +2 -3
- package/lib/ui/gamification/onboarding/styles.js +14 -17
- package/lib/ui/gamification/points/index.js +9 -15
- package/lib/ui/gamification/points/styles.js +12 -14
- package/lib/ui/gamification/question/index.d.ts +1 -3
- package/lib/ui/gamification/question/index.js +29 -34
- package/lib/ui/gamification/question/insight/index.d.ts +0 -1
- package/lib/ui/gamification/question/insight/index.js +7 -15
- package/lib/ui/gamification/question/list/index.js +20 -57
- package/lib/ui/gamification/question/notification/index.js +22 -35
- package/lib/ui/gamification/question/notification/insight/index.js +12 -17
- package/lib/ui/gamification/question/notification/pill/index.js +7 -9
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js +11 -12
- package/lib/ui/gamification/question/notification/prediction-result/index.js +45 -51
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +23 -26
- package/lib/ui/gamification/question/notification/styles.js +17 -19
- package/lib/ui/gamification/question/notification/tweet/index.js +8 -18
- package/lib/ui/gamification/question/styles.js +32 -34
- package/lib/ui/gamification/question/twitter/index.d.ts +0 -1
- package/lib/ui/gamification/question/twitter/index.js +8 -20
- package/lib/ui/gamification/question/twitter/styles.js +4 -6
- package/lib/ui/gamification/tabs/index.js +6 -7
- package/lib/ui/gamification/user-statistics/components/rank/index.js +4 -5
- package/lib/ui/gamification/user-statistics/components/statistic/index.js +0 -1
- package/lib/ui/gamification/user-statistics/index.js +2 -6
- package/lib/ui/gamification/vote/alert/index.d.ts +8 -0
- package/lib/ui/gamification/vote/alert/index.js +11 -0
- package/lib/ui/gamification/vote/{expired-alert → alert}/styles.js +7 -7
- package/lib/ui/gamification/vote/feedback/index.js +29 -33
- package/lib/ui/gamification/vote/feedback/styles.js +20 -23
- package/lib/ui/gamification/vote/index.d.ts +1 -0
- package/lib/ui/gamification/vote/index.js +123 -117
- package/lib/ui/gamification/vote/insight-details/index.js +9 -16
- package/lib/ui/gamification/vote/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/styles.js +14 -8
- package/lib/ui/gamification/vote/twitter-details/index.js +7 -17
- package/lib/ui/gamification/vote/vote-option/index.js +38 -41
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/vote-option/styles.js +35 -32
- package/lib/ui/gamification/vote/win-bar/index.js +29 -37
- package/lib/ui/gamification/vote/win-bar/styles.js +16 -19
- package/lib/ui/login/demo.d.ts +1 -0
- package/lib/ui/login/demo.js +5 -17
- package/lib/ui/login/index.js +29 -35
- package/lib/ui/modal/index.js +31 -32
- package/lib/ui/navigation/button/Channels.js +5 -8
- package/lib/ui/navigation/button/FeaturedGroups.js +3 -6
- package/lib/ui/navigation/button/LeaderBoard.js +8 -11
- package/lib/ui/navigation/button/index.js +10 -11
- package/lib/ui/navigation/masters.js +2 -3
- package/lib/ui/questions/insight/index.js +14 -19
- package/lib/ui/questions/twitter/account/index.js +13 -15
- package/lib/ui/questions/twitter/account/styles.js +14 -16
- package/lib/ui/questions/twitter/index.js +31 -38
- package/lib/ui/show-in/index.d.ts +1 -0
- package/lib/ui/show-in/index.js +12 -10
- package/lib/ui/skeleton/index.js +3 -4
- package/lib/ui/theme/index.js +3 -5
- package/lib/ui/video-player/index.js +44 -38
- package/lib/utils/createDemo.js +18 -28
- package/lib/utils/debug/components/copyLogs.js +2 -3
- package/lib/utils/debug/components/developer.js +20 -24
- package/lib/utils/debug/components/eventInput.js +9 -10
- package/lib/utils/debug/components/sdkKey.js +9 -10
- package/lib/utils/debug/index.js +17 -28
- package/lib/utils/debug/storage.js +32 -14
- package/lib/utils/decorators/container.js +5 -9
- package/lib/utils/storage.js +32 -14
- package/package.json +25 -26
- package/lib/ui/gamification/vote/expired-alert/index.d.ts +0 -7
- package/lib/ui/gamification/vote/expired-alert/index.js +0 -13
- /package/lib/{index-uEuzH3jr.js → index-xuotMAFm.js} +0 -0
- /package/lib/{styles_z07sl8-w40geAFS.js → styles_z07sl8-l0sNRNKZ.js} +0 -0
- /package/lib/ui/gamification/vote/{expired-alert → alert}/styles.d.ts +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { Container as n, Indicator as c, Title as e } from "./styles.js";
|
|
3
|
-
import "@linaria/react";
|
|
4
3
|
const l = ({ indicator: r, title: t }) => /* @__PURE__ */ o(n, { children: [
|
|
5
4
|
/* @__PURE__ */ i(c, { children: r }),
|
|
6
5
|
/* @__PURE__ */ i(e, { children: t })
|
|
@@ -4,11 +4,7 @@ import { abbreviate as v, formatDecimals as L } from "../../../utils/common.js";
|
|
|
4
4
|
import { Rank as C } from "./components/rank/index.js";
|
|
5
5
|
import { Statistic as c } from "./components/statistic/index.js";
|
|
6
6
|
import { Container as w, TopInfo as V, User as g, UserAccountBtn as k, Avatar as I, AvatarPlaceholder as S, UserInfo as x, UserName as H, UserRating as R, Rts as U, TrophyIcon as b, RtsIndicator as u, RtsLabel as y, Divider as T, BottomInfo as M, Ranks as Z, Statistics as A } from "./styles.js";
|
|
7
|
-
|
|
8
|
-
import "@linaria/react";
|
|
9
|
-
import "./components/rank/styles.js";
|
|
10
|
-
import "./components/statistic/styles.js";
|
|
11
|
-
const B = "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 = ({
|
|
7
|
+
const B = "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", O = ({
|
|
12
8
|
loading: t,
|
|
13
9
|
avatar: n,
|
|
14
10
|
name: o,
|
|
@@ -59,5 +55,5 @@ const B = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200
|
|
|
59
55
|
] })
|
|
60
56
|
] });
|
|
61
57
|
export {
|
|
62
|
-
|
|
58
|
+
O as UserStatistics
|
|
63
59
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon as t } from "../../../icons/index.js";
|
|
3
|
+
import { Container as m, Title as c, Description as l } from "./styles.js";
|
|
4
|
+
const f = ({ icon: o, title: e, description: i }) => /* @__PURE__ */ n(m, { children: [
|
|
5
|
+
/* @__PURE__ */ r(t, { name: o }),
|
|
6
|
+
/* @__PURE__ */ r(c, { children: e }),
|
|
7
|
+
/* @__PURE__ */ r(l, { children: i })
|
|
8
|
+
] });
|
|
9
|
+
export {
|
|
10
|
+
f as Alert
|
|
11
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const n = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "Container",
|
|
4
|
-
class: "
|
|
4
|
+
class: "c1gcvmcj",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
}), o = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "Title",
|
|
8
|
-
class: "
|
|
8
|
+
class: "tnr592a",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
11
11
|
name: "Description",
|
|
12
|
-
class: "
|
|
12
|
+
class: "d1e8jqpv",
|
|
13
13
|
propsAsIs: !1
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
n as Container,
|
|
17
|
+
t as Description,
|
|
18
18
|
o as Title
|
|
19
19
|
};
|
|
@@ -1,73 +1,69 @@
|
|
|
1
1
|
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { QuestionType as
|
|
2
|
+
import { QuestionType as d } from "@streamlayer/sdk-web-types";
|
|
3
3
|
import { SvgIcon as h } from "../../../icons/index.js";
|
|
4
|
-
import { ShowInContainer as j, Container as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "@linaria/core";
|
|
9
|
-
const _ = ({
|
|
10
|
-
feedbackMessages: l,
|
|
11
|
-
questionVotedCorrectly: P,
|
|
4
|
+
import { ShowInContainer as j, Container as E, FeedbackContainer as r, IconPrediction as C, FeedbackDescription as l, FeedbackIconWrap as a, FeedbackHeader as F, FeedbackText as P, DynamicWrap as L, FeedbackTitle as Y } from "./styles.js";
|
|
5
|
+
const J = ({
|
|
6
|
+
feedbackMessages: t,
|
|
7
|
+
questionVotedCorrectly: u,
|
|
12
8
|
questionVoted: m,
|
|
13
|
-
questionType:
|
|
9
|
+
questionType: e,
|
|
14
10
|
hasCorrectAnswer: b,
|
|
15
|
-
showExpiredNotification:
|
|
16
|
-
showClosedNotificationTrivia:
|
|
11
|
+
showExpiredNotification: w,
|
|
12
|
+
showClosedNotificationTrivia: x,
|
|
17
13
|
votedInCurrentRender: p,
|
|
18
14
|
votedAfterQuestionClosed: S,
|
|
19
15
|
voteErrorMessage: c,
|
|
20
|
-
enteredAnActiveQuestion:
|
|
16
|
+
enteredAnActiveQuestion: D,
|
|
21
17
|
marketClosed: W,
|
|
22
18
|
percentsAnimated: Q
|
|
23
19
|
}) => {
|
|
24
|
-
const
|
|
25
|
-
return
|
|
26
|
-
c && /* @__PURE__ */ n(r, { children: [
|
|
20
|
+
const y = m && (e === d.TRIVIA || e === d.PREDICTION), O = e === d.PREDICTION && !b, k = W && e === d.PREDICTION && !m && !D || e === d.PREDICTION && S && p && D, T = y && O, N = y && b, R = e === d.PREDICTION && m && p && b, f = m && e === d.POLL && p, I = u ? "correct" : "incorrect", o = u ? t == null ? void 0 : t.correctFeedback : t == null ? void 0 : t.incorrectFeedback;
|
|
21
|
+
return w || x || T || N || k || f || R || c ? /* @__PURE__ */ i(j, { enabled: p, animate: Q, children: /* @__PURE__ */ n(E, { "data-prediction": O, children: [
|
|
22
|
+
c && !k && /* @__PURE__ */ n(r, { children: [
|
|
27
23
|
/* @__PURE__ */ i(C, { name: "questionExpired" }),
|
|
28
|
-
/* @__PURE__ */ i(
|
|
24
|
+
/* @__PURE__ */ i(l, { children: c })
|
|
29
25
|
] }),
|
|
30
|
-
!c &&
|
|
26
|
+
!c && w && /* @__PURE__ */ n(r, { children: [
|
|
31
27
|
/* @__PURE__ */ i(a, { children: /* @__PURE__ */ i(h, { name: "questionExpired" }) }),
|
|
32
28
|
/* @__PURE__ */ n("div", { children: [
|
|
33
|
-
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(
|
|
34
|
-
/* @__PURE__ */ i(
|
|
29
|
+
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(l, { children: "Question Expired" }) }),
|
|
30
|
+
/* @__PURE__ */ i(P, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
|
|
35
31
|
] })
|
|
36
32
|
] }),
|
|
37
|
-
!c &&
|
|
33
|
+
!c && x && /* @__PURE__ */ n(r, { children: [
|
|
38
34
|
/* @__PURE__ */ i(a, { children: /* @__PURE__ */ i(h, { name: "questionExpired" }) }),
|
|
39
35
|
/* @__PURE__ */ n("div", { children: [
|
|
40
|
-
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(
|
|
41
|
-
/* @__PURE__ */ i(
|
|
36
|
+
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(l, { children: "Question Closed" }) }),
|
|
37
|
+
/* @__PURE__ */ i(P, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
|
|
42
38
|
] })
|
|
43
39
|
] }),
|
|
44
|
-
|
|
40
|
+
k && /* @__PURE__ */ n(r, { children: [
|
|
45
41
|
/* @__PURE__ */ i(a, { children: /* @__PURE__ */ i(h, { name: "questionExpired" }) }),
|
|
46
42
|
/* @__PURE__ */ n("div", { children: [
|
|
47
|
-
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(
|
|
48
|
-
/* @__PURE__ */ i(
|
|
43
|
+
/* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(l, { children: "Question Closed" }) }),
|
|
44
|
+
/* @__PURE__ */ i(P, { children: "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
|
|
49
45
|
] })
|
|
50
46
|
] }),
|
|
51
47
|
!c && T && /* @__PURE__ */ n(r, { children: [
|
|
52
48
|
/* @__PURE__ */ i(C, { name: "icon-prediction" }),
|
|
53
|
-
/* @__PURE__ */ n(
|
|
49
|
+
/* @__PURE__ */ n(l, { children: [
|
|
54
50
|
"Your pick has been recorded. ",
|
|
55
|
-
/* @__PURE__ */ i(
|
|
51
|
+
/* @__PURE__ */ i(L, { children: "We’ll notify you of the result." })
|
|
56
52
|
] })
|
|
57
53
|
] }),
|
|
58
54
|
!c && f && /* @__PURE__ */ n(r, { children: [
|
|
59
55
|
/* @__PURE__ */ i(a, { "data-feedback-type": "correct", children: /* @__PURE__ */ i(h, { name: "correct" }) }),
|
|
60
|
-
/* @__PURE__ */ i(
|
|
56
|
+
/* @__PURE__ */ i(l, { children: "Thanks for answering. Please stay tuned for the next question." })
|
|
61
57
|
] }),
|
|
62
58
|
!c && (N || R) && /* @__PURE__ */ n(r, { children: [
|
|
63
|
-
/* @__PURE__ */ i(a, { "data-feedback-type":
|
|
59
|
+
/* @__PURE__ */ i(a, { "data-feedback-type": I, children: /* @__PURE__ */ i(h, { name: I }) }),
|
|
64
60
|
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ n(F, { children: [
|
|
65
|
-
/* @__PURE__ */ i(
|
|
66
|
-
/* @__PURE__ */ i(
|
|
61
|
+
/* @__PURE__ */ i(Y, { "data-feedback-type": I, children: o == null ? void 0 : o.title }),
|
|
62
|
+
/* @__PURE__ */ i(l, { children: o == null ? void 0 : o.description })
|
|
67
63
|
] }) })
|
|
68
64
|
] })
|
|
69
65
|
] }) }) : null;
|
|
70
66
|
};
|
|
71
67
|
export {
|
|
72
|
-
|
|
68
|
+
J as Feedback
|
|
73
69
|
};
|
|
@@ -1,59 +1,56 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
import { SvgIcon as e } from "../../../icons/index.js";
|
|
3
3
|
import { GrowingShowIn as a } from "../../../show-in/index.js";
|
|
4
|
-
|
|
5
|
-
import "react";
|
|
6
|
-
import "@linaria/core";
|
|
7
|
-
const n = () => a, l = /* @__PURE__ */ s(n())({
|
|
4
|
+
const n = () => a, t = /* @__PURE__ */ s(n())({
|
|
8
5
|
name: "ShowInContainer",
|
|
9
6
|
class: "s16sbdnm",
|
|
10
7
|
propsAsIs: !0
|
|
11
|
-
}),
|
|
8
|
+
}), i = /* @__PURE__ */ s("div")({
|
|
12
9
|
name: "FeedbackContainer",
|
|
13
10
|
class: "fbhorgl",
|
|
14
11
|
propsAsIs: !1
|
|
15
|
-
}),
|
|
12
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
16
13
|
name: "Container",
|
|
17
14
|
class: "c1g20ja7",
|
|
18
15
|
propsAsIs: !1
|
|
19
|
-
}), o = () => e,
|
|
16
|
+
}), o = () => e, l = /* @__PURE__ */ s(o())({
|
|
20
17
|
name: "IconPrediction",
|
|
21
18
|
class: "i455ozj",
|
|
22
19
|
propsAsIs: !0
|
|
23
|
-
}),
|
|
20
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
24
21
|
name: "FeedbackIconWrap",
|
|
25
22
|
class: "f1913njx",
|
|
26
23
|
propsAsIs: !1
|
|
27
|
-
}),
|
|
24
|
+
}), f = /* @__PURE__ */ s("div")({
|
|
28
25
|
name: "FeedbackHeader",
|
|
29
26
|
class: "fzfk69z",
|
|
30
27
|
propsAsIs: !1
|
|
31
|
-
}),
|
|
28
|
+
}), I = /* @__PURE__ */ s("span")({
|
|
32
29
|
name: "FeedbackTitle",
|
|
33
30
|
class: "fx87qaj",
|
|
34
31
|
propsAsIs: !1
|
|
35
|
-
}),
|
|
32
|
+
}), b = /* @__PURE__ */ s("span")({
|
|
36
33
|
name: "FeedbackDescription",
|
|
37
34
|
class: "fvek9ew",
|
|
38
35
|
propsAsIs: !1
|
|
39
|
-
}),
|
|
36
|
+
}), k = /* @__PURE__ */ s("div")({
|
|
40
37
|
name: "FeedbackText",
|
|
41
38
|
class: "f1kbtp09",
|
|
42
39
|
propsAsIs: !1
|
|
43
|
-
}),
|
|
40
|
+
}), F = /* @__PURE__ */ s("span")({
|
|
44
41
|
name: "DynamicWrap",
|
|
45
42
|
class: "d4i8rro",
|
|
46
43
|
propsAsIs: !1
|
|
47
44
|
});
|
|
48
45
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
d as Container,
|
|
47
|
+
F as DynamicWrap,
|
|
48
|
+
i as FeedbackContainer,
|
|
49
|
+
b as FeedbackDescription,
|
|
50
|
+
f as FeedbackHeader,
|
|
51
|
+
m as FeedbackIconWrap,
|
|
52
|
+
k as FeedbackText,
|
|
53
|
+
I as FeedbackTitle,
|
|
54
|
+
l as IconPrediction,
|
|
55
|
+
t as ShowInContainer
|
|
59
56
|
};
|
|
@@ -1,161 +1,167 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
|
|
12
|
-
import "./feedback/styles.js";
|
|
13
|
-
import "../../show-in/index.js";
|
|
14
|
-
import "@linaria/core";
|
|
15
|
-
import "../../app/styles.js";
|
|
16
|
-
import "../../animated-counter/index.js";
|
|
17
|
-
import "react-countup";
|
|
18
|
-
import "./vote-option/styles.js";
|
|
19
|
-
import "../../timer/index.js";
|
|
20
|
-
import "react-countdown-circle-timer";
|
|
21
|
-
import "../../theme/constants.js";
|
|
22
|
-
import "./win-bar/styles.js";
|
|
23
|
-
const Tt = (t, d) => {
|
|
1
|
+
import { jsx as s, jsxs as y, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { useHideTransition as ht } from "../../../hooks/showIn.js";
|
|
3
|
+
import { useRef as J, useState as c, useEffect as g, useCallback as w, useMemo as u } from "react";
|
|
4
|
+
import { QuestionType as a, QuestionStatus as k } from "@streamlayer/sdk-web-types";
|
|
5
|
+
import { Skeleton as N } from "../../skeleton/index.js";
|
|
6
|
+
import { Alert as Tt } from "./alert/index.js";
|
|
7
|
+
import { Feedback as gt } from "./feedback/index.js";
|
|
8
|
+
import { Container as K, Content as U, Options as X, QuestionScrollContainer as yt, AlertContainer as It, Title as Vt } from "./styles.js";
|
|
9
|
+
import { VotingOption as Ct } from "./vote-option/index.js";
|
|
10
|
+
import { WinBar as Et } from "./win-bar/index.js";
|
|
11
|
+
const vt = (t, l) => {
|
|
24
12
|
switch (t) {
|
|
25
13
|
case "already_voted":
|
|
26
|
-
return
|
|
14
|
+
return l === a.POLL ? "You’ve already answered this question on another device." : "You’ve already answered this question on another device. So the points for this answer won't tally.";
|
|
27
15
|
default:
|
|
28
16
|
return "Something went wrong, please try again";
|
|
29
17
|
}
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
}, kt = () => /* @__PURE__ */ s(K, { children: /* @__PURE__ */ y(U, { children: [
|
|
19
|
+
/* @__PURE__ */ s(N, { loading: !0, style: { height: "40px", borderRadius: "100px" } }),
|
|
20
|
+
/* @__PURE__ */ s(N, { loading: !0, style: { height: "24px", margin: "16px 0" } }),
|
|
21
|
+
/* @__PURE__ */ s(X, { children: Array.from({ length: 5 }).map((t, l) => /* @__PURE__ */ s(N, { loading: !0, style: { height: "44px" } }, l)) })
|
|
22
|
+
] }) }), Nt = ({ openedQuestion: t, isLoading: l, vote: b, close: M }) => {
|
|
23
|
+
var z, G;
|
|
24
|
+
const Z = t.subject, r = t.type, h = t.status, I = (z = t.options) == null ? void 0 : z.options, T = t.marketClosed, A = t.id, L = J(), [V, $] = c(!1), [R, Q] = c(!1), [C, B] = c(!0), [f, tt] = c(!1), [W, et] = c(!1), [Y, p] = c(""), [x, rt] = c(""), [O, j] = c(!1), [it, nt] = c(!1), { runAnimation: E, finished: H } = ht();
|
|
25
|
+
g(() => {
|
|
26
|
+
H && M();
|
|
27
|
+
}, [M, H]), g(() => {
|
|
28
|
+
r === a.PREDICTION ? T && B(!1) : h === k.RESOLVED && B(!1);
|
|
35
29
|
}, []);
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
}, []), P =
|
|
39
|
-
async (
|
|
40
|
-
if (!P.current && (P.current = !0,
|
|
41
|
-
const
|
|
42
|
-
|
|
30
|
+
const st = w((n) => {
|
|
31
|
+
Q(n), $(!0);
|
|
32
|
+
}, []), P = J(!1), F = w(
|
|
33
|
+
async (n) => {
|
|
34
|
+
if (!P.current && (P.current = !0, A)) {
|
|
35
|
+
const m = n.currentTarget.value;
|
|
36
|
+
p(m);
|
|
43
37
|
try {
|
|
44
|
-
await
|
|
45
|
-
} catch (
|
|
46
|
-
|
|
38
|
+
await b(A, m);
|
|
39
|
+
} catch (v) {
|
|
40
|
+
rt(vt(v.message, r)), p(""), console.error("Error while voting", v), P.current = !1;
|
|
47
41
|
}
|
|
48
42
|
}
|
|
49
43
|
},
|
|
50
|
-
[
|
|
51
|
-
),
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
()
|
|
44
|
+
[r, A, p, b]
|
|
45
|
+
), ot = w(() => {
|
|
46
|
+
tt(!0), E({ delay: 3500 });
|
|
47
|
+
}, [E]), at = w(() => {
|
|
48
|
+
et(!0), E({ delay: 3500 });
|
|
49
|
+
}, [E]), e = u(
|
|
50
|
+
() => t == null ? void 0 : t.answers.find((n) => n.youVoted === !0),
|
|
55
51
|
[t]
|
|
56
|
-
),
|
|
57
|
-
() => !!(t != null && t.answers.find((
|
|
52
|
+
), o = u(
|
|
53
|
+
() => !!(t != null && t.answers.find((n) => n.correct === !0)),
|
|
58
54
|
[t]
|
|
59
55
|
), i = u(
|
|
60
|
-
() => t == null ? void 0 : t.answers.find((
|
|
56
|
+
() => t == null ? void 0 : t.answers.find((n) => n.correct === !0),
|
|
61
57
|
[t]
|
|
62
58
|
);
|
|
63
|
-
|
|
64
|
-
e
|
|
65
|
-
}, [
|
|
66
|
-
clearTimeout(
|
|
59
|
+
g(() => {
|
|
60
|
+
e && V && !it && (L.current = setTimeout(at, 1e4), nt(!0));
|
|
61
|
+
}, [e]), g(() => () => {
|
|
62
|
+
clearTimeout(L.current);
|
|
67
63
|
}, []);
|
|
68
|
-
const
|
|
69
|
-
var
|
|
64
|
+
const S = u(() => t ? t.answers.map((n) => {
|
|
65
|
+
var m;
|
|
70
66
|
return {
|
|
71
|
-
...
|
|
72
|
-
questionVoted: !!
|
|
73
|
-
youSelected:
|
|
74
|
-
isLoading:
|
|
75
|
-
hasCorrectAnswer:
|
|
67
|
+
...n,
|
|
68
|
+
questionVoted: !!e,
|
|
69
|
+
youSelected: Y === n.id,
|
|
70
|
+
isLoading: l,
|
|
71
|
+
hasCorrectAnswer: o,
|
|
76
72
|
questionType: t.type,
|
|
77
|
-
answerTimeExpired:
|
|
78
|
-
questionStatus:
|
|
79
|
-
imageMode: (
|
|
80
|
-
onVote:
|
|
73
|
+
answerTimeExpired: f,
|
|
74
|
+
questionStatus: h,
|
|
75
|
+
imageMode: (m = t.appearance) == null ? void 0 : m.images,
|
|
76
|
+
onVote: F
|
|
81
77
|
};
|
|
82
78
|
}) : [], [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
o,
|
|
80
|
+
f,
|
|
81
|
+
l,
|
|
86
82
|
t,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
e,
|
|
84
|
+
h,
|
|
85
|
+
F,
|
|
86
|
+
Y
|
|
91
87
|
]);
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
}, [
|
|
96
|
-
const
|
|
97
|
-
if (
|
|
98
|
-
return
|
|
99
|
-
if (!(
|
|
100
|
-
return
|
|
101
|
-
}, [
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
88
|
+
g(() => {
|
|
89
|
+
const n = S.some(({ percentageDecimal: v }) => v !== 0), m = e && r === a.PREDICTION;
|
|
90
|
+
x && (!n || T && m) && j(!0);
|
|
91
|
+
}, [S, x, T, r, e]);
|
|
92
|
+
const ct = I && (I.case === "trivia" || I.case === "prediction") ? I.value : void 0, d = h === k.RESOLVED && r === a.TRIVIA && !e && !C, _ = r === a.TRIVIA && R, q = u(() => r === a.PREDICTION ? !!(e && !o || e && o && (i != null && i.youVoted)) : !0, [r, e, o, i]), lt = u(() => {
|
|
93
|
+
if (r === a.PREDICTION && e && (!o || o && (i != null && i.youVoted)))
|
|
94
|
+
return e.points;
|
|
95
|
+
if (!(d || f))
|
|
96
|
+
return e ? e.correct ? e.pointsEarned : 0 : i == null ? void 0 : i.points;
|
|
97
|
+
}, [f, e, i, d, r, o]), ft = u(() => r === a.PREDICTION && e ? o ? o && (i != null && i.youVoted) ? "You won" : "" : "To win" : d || f ? "Time expired" : r === a.POLL ? "Time remaining" : e ? "You won" : "To win", [f, r, e, d, o, i]), mt = !q || q && r === a.PREDICTION && V && !O, ut = (r === a.TRIVIA || r === a.PREDICTION) && e && o && (i == null ? void 0 : i.youVoted), dt = e || d || _ || r === a.TRIVIA && h === k.RESOLVED && C;
|
|
98
|
+
return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(K, { children: /* @__PURE__ */ y(U, { children: [
|
|
99
|
+
/* @__PURE__ */ s(
|
|
100
|
+
gt,
|
|
105
101
|
{
|
|
106
|
-
feedbackMessages:
|
|
107
|
-
questionVoted: !!
|
|
108
|
-
questionVotedCorrectly:
|
|
109
|
-
questionType:
|
|
110
|
-
hasCorrectAnswer:
|
|
111
|
-
showExpiredNotification:
|
|
112
|
-
showClosedNotificationTrivia:
|
|
113
|
-
votedInCurrentRender:
|
|
114
|
-
votedAfterQuestionClosed:
|
|
102
|
+
feedbackMessages: ct,
|
|
103
|
+
questionVoted: !!e,
|
|
104
|
+
questionVotedCorrectly: e == null ? void 0 : e.correct,
|
|
105
|
+
questionType: r,
|
|
106
|
+
hasCorrectAnswer: o,
|
|
107
|
+
showExpiredNotification: d,
|
|
108
|
+
showClosedNotificationTrivia: _,
|
|
109
|
+
votedInCurrentRender: V,
|
|
110
|
+
votedAfterQuestionClosed: R,
|
|
115
111
|
enteredAnActiveQuestion: C,
|
|
116
|
-
marketClosed:
|
|
112
|
+
marketClosed: T,
|
|
117
113
|
percentsAnimated: O,
|
|
118
|
-
voteErrorMessage:
|
|
114
|
+
voteErrorMessage: x
|
|
119
115
|
}
|
|
120
116
|
),
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
q && /* @__PURE__ */ s(
|
|
118
|
+
Et,
|
|
123
119
|
{
|
|
124
|
-
title:
|
|
125
|
-
points:
|
|
126
|
-
onTimerExpired:
|
|
120
|
+
title: ft,
|
|
121
|
+
points: lt,
|
|
122
|
+
onTimerExpired: ot,
|
|
127
123
|
questionType: t.type,
|
|
128
|
-
isTimer: !
|
|
129
|
-
isPlayingTimer: !
|
|
130
|
-
animatePoints:
|
|
131
|
-
timerDuration:
|
|
132
|
-
votedInCurrentRender:
|
|
124
|
+
isTimer: !l,
|
|
125
|
+
isPlayingTimer: !e,
|
|
126
|
+
animatePoints: ut,
|
|
127
|
+
timerDuration: dt ? 0 : Number(((G = t == null ? void 0 : t.appearance) == null ? void 0 : G.autoHideInterval) || "30"),
|
|
128
|
+
votedInCurrentRender: V,
|
|
133
129
|
percentsAnimated: O
|
|
134
130
|
}
|
|
135
131
|
),
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
f || W ? /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(
|
|
133
|
+
Tt,
|
|
138
134
|
{
|
|
135
|
+
icon: "icon-check-circle",
|
|
139
136
|
title: "More to come...",
|
|
140
|
-
description:
|
|
137
|
+
description: W ? /* @__PURE__ */ y(D, { children: [
|
|
138
|
+
"Stay tuned for more questions ",
|
|
139
|
+
/* @__PURE__ */ s("br", {}),
|
|
140
|
+
" and insights."
|
|
141
|
+
] }) : /* @__PURE__ */ y(D, { children: [
|
|
142
|
+
"Watch for additional enhanced stream ",
|
|
143
|
+
/* @__PURE__ */ s("br", {}),
|
|
144
|
+
" interactive experience."
|
|
145
|
+
] })
|
|
141
146
|
}
|
|
142
|
-
) : /* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
|
|
147
|
+
) }) : /* @__PURE__ */ y(D, { children: [
|
|
148
|
+
/* @__PURE__ */ s(Vt, { style: mt ? { marginTop: 0 } : {}, children: Z }),
|
|
149
|
+
/* @__PURE__ */ s(X, { children: S.map((n) => /* @__PURE__ */ s(
|
|
150
|
+
Ct,
|
|
146
151
|
{
|
|
147
|
-
...
|
|
148
|
-
markThatVoted:
|
|
149
|
-
onPercentsAnimated: () =>
|
|
150
|
-
votedAfterQuestionClosed:
|
|
152
|
+
...n,
|
|
153
|
+
markThatVoted: st,
|
|
154
|
+
onPercentsAnimated: () => j(!0),
|
|
155
|
+
votedAfterQuestionClosed: R,
|
|
151
156
|
enteredAnActiveQuestion: C,
|
|
152
|
-
marketClosed:
|
|
157
|
+
marketClosed: T
|
|
153
158
|
},
|
|
154
|
-
|
|
159
|
+
n.id
|
|
155
160
|
)) })
|
|
156
161
|
] })
|
|
157
162
|
] }) }) });
|
|
158
163
|
};
|
|
159
164
|
export {
|
|
160
|
-
|
|
165
|
+
Nt as Vote,
|
|
166
|
+
kt as VoteSkeleton
|
|
161
167
|
};
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
2
|
-
import { SvgIcon as
|
|
3
|
-
import { InsightContent as
|
|
4
|
-
import { Container as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "../../../video-player/index.js";
|
|
9
|
-
import "@linaria/core";
|
|
10
|
-
import "../../../video-player/styles.js";
|
|
11
|
-
import "../../../questions/insight/styles.js";
|
|
12
|
-
const D = ({ instantView: r, ...l }) => /* @__PURE__ */ o(k, { children: [
|
|
13
|
-
/* @__PURE__ */ m(b, { instantView: r, ...l, isDetail: !0 }),
|
|
14
|
-
(r == null ? void 0 : r.webLink) && /* @__PURE__ */ o(c, { href: r == null ? void 0 : r.webLink.url, target: "_blank", "data-analytics": "web-link", children: [
|
|
1
|
+
import { jsxs as o, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon as b } from "../../../icons/index.js";
|
|
3
|
+
import { InsightContent as k } from "../../../questions/insight/index.js";
|
|
4
|
+
import { Container as c, WebLinkBtn as e } from "./styles.js";
|
|
5
|
+
const x = ({ instantView: r, ...m }) => /* @__PURE__ */ o(c, { children: [
|
|
6
|
+
/* @__PURE__ */ l(k, { instantView: r, ...m, isDetail: !0 }),
|
|
7
|
+
(r == null ? void 0 : r.webLink) && /* @__PURE__ */ o(e, { href: r == null ? void 0 : r.webLink.url, target: "_blank", "data-analytics": "web-link", children: [
|
|
15
8
|
r == null ? void 0 : r.webLink.label,
|
|
16
|
-
/* @__PURE__ */
|
|
9
|
+
/* @__PURE__ */ l(b, { name: "icon-external-link" })
|
|
17
10
|
] })
|
|
18
11
|
] });
|
|
19
12
|
export {
|
|
20
|
-
|
|
13
|
+
x as InsightDetails
|
|
21
14
|
};
|
|
@@ -4,3 +4,4 @@ export declare const QuestionScrollContainer: any;
|
|
|
4
4
|
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
5
|
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
6
|
export declare const Options: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
|
+
export declare const AlertContainer: any;
|