@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.
Files changed (129) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/hooks/showIn.js +45 -0
  3. package/lib/{index-jRXrW6ie.js → index-Bicco-Aq.js} +1 -1
  4. package/lib/{index-z0QjLiEL.js → index-CZvwzN5o.js} +1 -1
  5. package/lib/index.js +4 -8
  6. package/lib/ui/app/Features/Gamification/Friends.js +10 -23
  7. package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +1 -2
  8. package/lib/ui/app/Features/Gamification/Leaderboard.js +37 -54
  9. package/lib/ui/app/Features/Gamification/Question.js +33 -65
  10. package/lib/ui/app/Features/Gamification/QuestionsList.js +8 -34
  11. package/lib/ui/app/Features/Gamification/Tabs.d.ts +1 -2
  12. package/lib/ui/app/Features/Gamification/Tabs.js +30 -97
  13. package/lib/ui/app/Features/Gamification/UserSummary.js +12 -21
  14. package/lib/ui/app/Features/Gamification/gamification-feature.js +2 -93
  15. package/lib/ui/app/Features/Gamification/index.d.ts +1 -2
  16. package/lib/ui/app/Features/Gamification/index.js +68 -143
  17. package/lib/ui/app/Features/index.d.ts +1 -2
  18. package/lib/ui/app/Features/index.js +20 -109
  19. package/lib/ui/app/Navigation/MastersNavigation/index.js +16 -22
  20. package/lib/ui/app/Navigation/index.js +9 -12
  21. package/lib/ui/app/Notifications/Onboarding/Notification/index.js +13 -16
  22. package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +18 -20
  23. package/lib/ui/app/Notifications/Onboarding/index.js +45 -72
  24. package/lib/ui/app/Notifications/index.js +96 -148
  25. package/lib/ui/app/Notifications/styles.js +10 -15
  26. package/lib/ui/app/Points/index.js +18 -26
  27. package/lib/ui/app/masters.js +71 -190
  28. package/lib/ui/app/useClipboardCopy.js +11 -15
  29. package/lib/ui/app/useMastersApp.js +34 -44
  30. package/lib/ui/app/useSdkResponsive.js +18 -19
  31. package/lib/ui/app/useSdkScroll.js +28 -26
  32. package/lib/ui/button/index.js +3 -4
  33. package/lib/ui/gamification/copyNotification/index.js +5 -7
  34. package/lib/ui/gamification/detail/header/index.js +15 -18
  35. package/lib/ui/gamification/detail/header/styles.js +12 -14
  36. package/lib/ui/gamification/detail/sponsor/index.js +2 -3
  37. package/lib/ui/gamification/insight/index.js +5 -6
  38. package/lib/ui/gamification/insight-list/index.js +3 -6
  39. package/lib/ui/gamification/invite-link/index.js +11 -17
  40. package/lib/ui/gamification/invite-link/styles.js +13 -15
  41. package/lib/ui/gamification/leaderboard/index.js +21 -28
  42. package/lib/ui/gamification/leaderboard/list-item/index.d.ts +0 -1
  43. package/lib/ui/gamification/leaderboard/list-item/index.js +17 -20
  44. package/lib/ui/gamification/leaderboard/list-item/styles.js +16 -18
  45. package/lib/ui/gamification/leaderboard/static.js +34 -31
  46. package/lib/ui/gamification/leaderboard/styles.js +1 -1
  47. package/lib/ui/gamification/onboarding/index.js +51 -73
  48. package/lib/ui/gamification/onboarding/invitingUser/index.js +10 -11
  49. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +3 -2
  50. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +17 -20
  51. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +2 -0
  52. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +21 -11
  53. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +21 -30
  54. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +22 -24
  55. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +5 -7
  56. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +2 -3
  57. package/lib/ui/gamification/onboarding/styles.js +14 -17
  58. package/lib/ui/gamification/points/index.js +9 -15
  59. package/lib/ui/gamification/points/styles.js +12 -14
  60. package/lib/ui/gamification/question/index.d.ts +1 -3
  61. package/lib/ui/gamification/question/index.js +29 -34
  62. package/lib/ui/gamification/question/insight/index.d.ts +0 -1
  63. package/lib/ui/gamification/question/insight/index.js +7 -15
  64. package/lib/ui/gamification/question/list/index.js +20 -57
  65. package/lib/ui/gamification/question/notification/index.js +22 -35
  66. package/lib/ui/gamification/question/notification/insight/index.js +12 -17
  67. package/lib/ui/gamification/question/notification/pill/index.js +7 -9
  68. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js +11 -12
  69. package/lib/ui/gamification/question/notification/prediction-result/index.js +45 -51
  70. package/lib/ui/gamification/question/notification/prediction-result/styles.js +23 -26
  71. package/lib/ui/gamification/question/notification/styles.js +17 -19
  72. package/lib/ui/gamification/question/notification/tweet/index.js +8 -18
  73. package/lib/ui/gamification/question/styles.js +32 -34
  74. package/lib/ui/gamification/question/twitter/index.d.ts +0 -1
  75. package/lib/ui/gamification/question/twitter/index.js +8 -20
  76. package/lib/ui/gamification/question/twitter/styles.js +4 -6
  77. package/lib/ui/gamification/tabs/index.js +6 -7
  78. package/lib/ui/gamification/user-statistics/components/rank/index.js +4 -5
  79. package/lib/ui/gamification/user-statistics/components/statistic/index.js +0 -1
  80. package/lib/ui/gamification/user-statistics/index.js +2 -6
  81. package/lib/ui/gamification/vote/alert/index.d.ts +8 -0
  82. package/lib/ui/gamification/vote/alert/index.js +11 -0
  83. package/lib/ui/gamification/vote/{expired-alert → alert}/styles.js +7 -7
  84. package/lib/ui/gamification/vote/feedback/index.js +29 -33
  85. package/lib/ui/gamification/vote/feedback/styles.js +20 -23
  86. package/lib/ui/gamification/vote/index.d.ts +1 -0
  87. package/lib/ui/gamification/vote/index.js +123 -117
  88. package/lib/ui/gamification/vote/insight-details/index.js +9 -16
  89. package/lib/ui/gamification/vote/styles.d.ts +1 -0
  90. package/lib/ui/gamification/vote/styles.js +14 -8
  91. package/lib/ui/gamification/vote/twitter-details/index.js +7 -17
  92. package/lib/ui/gamification/vote/vote-option/index.js +38 -41
  93. package/lib/ui/gamification/vote/vote-option/styles.d.ts +1 -0
  94. package/lib/ui/gamification/vote/vote-option/styles.js +35 -32
  95. package/lib/ui/gamification/vote/win-bar/index.js +29 -37
  96. package/lib/ui/gamification/vote/win-bar/styles.js +16 -19
  97. package/lib/ui/login/demo.d.ts +1 -0
  98. package/lib/ui/login/demo.js +5 -17
  99. package/lib/ui/login/index.js +29 -35
  100. package/lib/ui/modal/index.js +31 -32
  101. package/lib/ui/navigation/button/Channels.js +5 -8
  102. package/lib/ui/navigation/button/FeaturedGroups.js +3 -6
  103. package/lib/ui/navigation/button/LeaderBoard.js +8 -11
  104. package/lib/ui/navigation/button/index.js +10 -11
  105. package/lib/ui/navigation/masters.js +2 -3
  106. package/lib/ui/questions/insight/index.js +14 -19
  107. package/lib/ui/questions/twitter/account/index.js +13 -15
  108. package/lib/ui/questions/twitter/account/styles.js +14 -16
  109. package/lib/ui/questions/twitter/index.js +31 -38
  110. package/lib/ui/show-in/index.d.ts +1 -0
  111. package/lib/ui/show-in/index.js +12 -10
  112. package/lib/ui/skeleton/index.js +3 -4
  113. package/lib/ui/theme/index.js +3 -5
  114. package/lib/ui/video-player/index.js +44 -38
  115. package/lib/utils/createDemo.js +18 -28
  116. package/lib/utils/debug/components/copyLogs.js +2 -3
  117. package/lib/utils/debug/components/developer.js +20 -24
  118. package/lib/utils/debug/components/eventInput.js +9 -10
  119. package/lib/utils/debug/components/sdkKey.js +9 -10
  120. package/lib/utils/debug/index.js +17 -28
  121. package/lib/utils/debug/storage.js +32 -14
  122. package/lib/utils/decorators/container.js +5 -9
  123. package/lib/utils/storage.js +32 -14
  124. package/package.json +25 -26
  125. package/lib/ui/gamification/vote/expired-alert/index.d.ts +0 -7
  126. package/lib/ui/gamification/vote/expired-alert/index.js +0 -13
  127. /package/lib/{index-uEuzH3jr.js → index-xuotMAFm.js} +0 -0
  128. /package/lib/{styles_z07sl8-w40geAFS.js → styles_z07sl8-l0sNRNKZ.js} +0 -0
  129. /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
- import "../../skeleton/styles.js";
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
- z as UserStatistics
58
+ O as UserStatistics
63
59
  };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type AlertProps = {
3
+ icon: 'icon-check-circle';
4
+ title: string;
5
+ description: React.ReactElement | string;
6
+ };
7
+ export declare const Alert: React.FC<AlertProps>;
8
+ export {};
@@ -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 t = /* @__PURE__ */ s("div")({
2
+ const n = /* @__PURE__ */ s("div")({
3
3
  name: "Container",
4
- class: "c38csyt",
4
+ class: "c1gcvmcj",
5
5
  propsAsIs: !1
6
6
  }), o = /* @__PURE__ */ s("div")({
7
7
  name: "Title",
8
- class: "ty221rx",
8
+ class: "tnr592a",
9
9
  propsAsIs: !1
10
- }), a = /* @__PURE__ */ s("div")({
10
+ }), t = /* @__PURE__ */ s("div")({
11
11
  name: "Description",
12
- class: "dlaj9xp",
12
+ class: "d1e8jqpv",
13
13
  propsAsIs: !1
14
14
  });
15
15
  export {
16
- t as Container,
17
- a as Description,
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 e } from "@streamlayer/sdk-web-types";
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 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";
5
- import "@linaria/react";
6
- import "react";
7
- import "../../../show-in/index.js";
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: d,
9
+ questionType: e,
14
10
  hasCorrectAnswer: b,
15
- showExpiredNotification: u,
16
- showClosedNotificationTrivia: w,
11
+ showExpiredNotification: w,
12
+ showClosedNotificationTrivia: x,
17
13
  votedInCurrentRender: p,
18
14
  votedAfterQuestionClosed: S,
19
15
  voteErrorMessage: c,
20
- enteredAnActiveQuestion: x,
16
+ enteredAnActiveQuestion: D,
21
17
  marketClosed: W,
22
18
  percentsAnimated: Q
23
19
  }) => {
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: [
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(t, { children: c })
24
+ /* @__PURE__ */ i(l, { children: c })
29
25
  ] }),
30
- !c && u && /* @__PURE__ */ n(r, { children: [
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(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." })
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 && w && /* @__PURE__ */ n(r, { children: [
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(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." })
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
- !c && O && /* @__PURE__ */ n(r, { children: [
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(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." })
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(t, { children: [
49
+ /* @__PURE__ */ n(l, { children: [
54
50
  "Your pick has been recorded. ",
55
- /* @__PURE__ */ i(Y, { children: "We’ll notify you of the result." })
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(t, { children: "Thanks for answering. Please stay tuned for the next question." })
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": k, children: /* @__PURE__ */ i(h, { name: k }) }),
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(E, { "data-feedback-type": k, children: o == null ? void 0 : o.title }),
66
- /* @__PURE__ */ i(t, { children: o == null ? void 0 : o.description })
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
- _ as Feedback
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
- import "react/jsx-runtime";
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
- }), m = /* @__PURE__ */ s("div")({
8
+ }), i = /* @__PURE__ */ s("div")({
12
9
  name: "FeedbackContainer",
13
10
  class: "fbhorgl",
14
11
  propsAsIs: !1
15
- }), f = /* @__PURE__ */ s("div")({
12
+ }), d = /* @__PURE__ */ s("div")({
16
13
  name: "Container",
17
14
  class: "c1g20ja7",
18
15
  propsAsIs: !1
19
- }), o = () => e, I = /* @__PURE__ */ s(o())({
16
+ }), o = () => e, l = /* @__PURE__ */ s(o())({
20
17
  name: "IconPrediction",
21
18
  class: "i455ozj",
22
19
  propsAsIs: !0
23
- }), b = /* @__PURE__ */ s("div")({
20
+ }), m = /* @__PURE__ */ s("div")({
24
21
  name: "FeedbackIconWrap",
25
22
  class: "f1913njx",
26
23
  propsAsIs: !1
27
- }), k = /* @__PURE__ */ s("div")({
24
+ }), f = /* @__PURE__ */ s("div")({
28
25
  name: "FeedbackHeader",
29
26
  class: "fzfk69z",
30
27
  propsAsIs: !1
31
- }), F = /* @__PURE__ */ s("span")({
28
+ }), I = /* @__PURE__ */ s("span")({
32
29
  name: "FeedbackTitle",
33
30
  class: "fx87qaj",
34
31
  propsAsIs: !1
35
- }), A = /* @__PURE__ */ s("span")({
32
+ }), b = /* @__PURE__ */ s("span")({
36
33
  name: "FeedbackDescription",
37
34
  class: "fvek9ew",
38
35
  propsAsIs: !1
39
- }), v = /* @__PURE__ */ s("div")({
36
+ }), k = /* @__PURE__ */ s("div")({
40
37
  name: "FeedbackText",
41
38
  class: "f1kbtp09",
42
39
  propsAsIs: !1
43
- }), x = /* @__PURE__ */ s("span")({
40
+ }), F = /* @__PURE__ */ s("span")({
44
41
  name: "DynamicWrap",
45
42
  class: "d4i8rro",
46
43
  propsAsIs: !1
47
44
  });
48
45
  export {
49
- f as Container,
50
- x as DynamicWrap,
51
- m as FeedbackContainer,
52
- A as FeedbackDescription,
53
- k as FeedbackHeader,
54
- b as FeedbackIconWrap,
55
- v as FeedbackText,
56
- F as FeedbackTitle,
57
- I as IconPrediction,
58
- l as ShowInContainer
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
  };
@@ -6,5 +6,6 @@ interface VoteProps {
6
6
  vote: (questionId: string, answerId: string) => void;
7
7
  close: () => void;
8
8
  }
9
+ export declare const VoteSkeleton: React.FC;
9
10
  export declare const Vote: React.FC<VoteProps>;
10
11
  export {};
@@ -1,161 +1,167 @@
1
- import { jsx as a, jsxs as j, Fragment as st } from "react/jsx-runtime";
2
- import { useRef as F, useState as c, useEffect as v, useCallback as q, useMemo as u } from "react";
3
- import { QuestionType as o, QuestionStatus as x } from "@streamlayer/sdk-web-types";
4
- import { ExpiredAlert as ot } from "./expired-alert/index.js";
5
- import { Feedback as nt } from "./feedback/index.js";
6
- import { QuestionScrollContainer as at, Container as ct, Content as mt, Title as lt, Options as ut } from "./styles.js";
7
- import { VotingOption as ft } from "./vote-option/index.js";
8
- import { WinBar as dt } from "./win-bar/index.js";
9
- import "../../icons/index.js";
10
- import "@linaria/react";
11
- import "./expired-alert/styles.js";
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 d === o.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.";
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
- }, Lt = ({ openedQuestion: t, isLoading: d, vote: N, close: y }) => {
31
- var W, Y;
32
- const H = t.subject, e = t.type, T = t.status, E = (W = t.options) == null ? void 0 : W.options, I = t.marketClosed, V = t.id, S = F(), [h, _] = c(!1), [w, z] = c(!1), [C, k] = c(!0), [m, G] = c(!1), [M, R] = c(""), [g, J] = c(""), [O, b] = c(!1), [K, U] = c(!1);
33
- v(() => {
34
- e === o.PREDICTION ? I && k(!1) : T === x.RESOLVED && k(!1);
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 X = q((s) => {
37
- z(s), _(!0);
38
- }, []), P = F(!1), L = q(
39
- async (s) => {
40
- if (!P.current && (P.current = !0, V)) {
41
- const l = s.currentTarget.value;
42
- R(l);
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 N(V, l);
45
- } catch (p) {
46
- J(Tt(p.message, e)), R(""), console.error("Error while voting", p), P.current = !1;
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
- [e, V, R, N]
51
- ), Z = q(() => {
52
- G(!0), setTimeout(y, 3e3);
53
- }, [y]), r = u(
54
- () => t == null ? void 0 : t.answers.find((s) => s.youVoted === !0),
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
- ), n = u(
57
- () => !!(t != null && t.answers.find((s) => s.correct === !0)),
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((s) => s.correct === !0),
56
+ () => t == null ? void 0 : t.answers.find((n) => n.correct === !0),
61
57
  [t]
62
58
  );
63
- v(() => {
64
- e === o.PREDICTION && r && h && !K && (S.current = setTimeout(y, 1e4), U(!0));
65
- }, [r]), v(() => () => {
66
- clearTimeout(S.current);
59
+ g(() => {
60
+ e && V && !it && (L.current = setTimeout(at, 1e4), nt(!0));
61
+ }, [e]), g(() => () => {
62
+ clearTimeout(L.current);
67
63
  }, []);
68
- const A = u(() => t ? t.answers.map((s) => {
69
- var l;
64
+ const S = u(() => t ? t.answers.map((n) => {
65
+ var m;
70
66
  return {
71
- ...s,
72
- questionVoted: !!r,
73
- youSelected: M === s.id,
74
- isLoading: d,
75
- hasCorrectAnswer: n,
67
+ ...n,
68
+ questionVoted: !!e,
69
+ youSelected: Y === n.id,
70
+ isLoading: l,
71
+ hasCorrectAnswer: o,
76
72
  questionType: t.type,
77
- answerTimeExpired: m,
78
- questionStatus: T,
79
- imageMode: (l = t.appearance) == null ? void 0 : l.images,
80
- onVote: L
73
+ answerTimeExpired: f,
74
+ questionStatus: h,
75
+ imageMode: (m = t.appearance) == null ? void 0 : m.images,
76
+ onVote: F
81
77
  };
82
78
  }) : [], [
83
- n,
84
- m,
85
- d,
79
+ o,
80
+ f,
81
+ l,
86
82
  t,
87
- r,
88
- T,
89
- L,
90
- M
83
+ e,
84
+ h,
85
+ F,
86
+ Y
91
87
  ]);
92
- v(() => {
93
- const s = A.some(({ percentageDecimal: p }) => p !== 0), l = r && e === o.PREDICTION;
94
- g && (!s || I && l) && b(!0);
95
- }, [A, g, I, e, r]);
96
- const $ = E && (E.case === "trivia" || E.case === "prediction") ? E.value : void 0, f = T === x.RESOLVED && e === o.TRIVIA && !r && !C, B = e === o.TRIVIA && w, D = u(() => e === o.PREDICTION ? !!(r && !n || r && n && (i != null && i.youVoted)) : !0, [e, r, n, i]), Q = u(() => {
97
- if (e === o.PREDICTION && r && (!n || n && (i != null && i.youVoted)))
98
- return r.points;
99
- if (!(f || m))
100
- return r ? r.correct ? r.pointsEarned : 0 : i == null ? void 0 : i.points;
101
- }, [m, r, i, f, e, n]), tt = u(() => e === o.PREDICTION && r ? n ? n && (i != null && i.youVoted) ? "You won" : "" : "To win" : f || m ? "Time expired" : e === o.POLL ? "Time remaining" : r ? "You won" : "To win", [m, e, r, f, n, i]), rt = !D || D && e === o.PREDICTION && h && !O, et = (e === o.TRIVIA || e === o.PREDICTION) && r && n && (i == null ? void 0 : i.youVoted), it = r || f || B || e === o.TRIVIA && T === x.RESOLVED && C;
102
- return /* @__PURE__ */ a(at, { children: /* @__PURE__ */ a(ct, { children: /* @__PURE__ */ j(mt, { children: [
103
- /* @__PURE__ */ a(
104
- nt,
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: !!r,
108
- questionVotedCorrectly: r == null ? void 0 : r.correct,
109
- questionType: e,
110
- hasCorrectAnswer: n,
111
- showExpiredNotification: f,
112
- showClosedNotificationTrivia: B,
113
- votedInCurrentRender: h,
114
- votedAfterQuestionClosed: w,
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: I,
112
+ marketClosed: T,
117
113
  percentsAnimated: O,
118
- voteErrorMessage: g
114
+ voteErrorMessage: x
119
115
  }
120
116
  ),
121
- D && /* @__PURE__ */ a(
122
- dt,
117
+ q && /* @__PURE__ */ s(
118
+ Et,
123
119
  {
124
- title: tt,
125
- points: Q,
126
- onTimerExpired: Z,
120
+ title: ft,
121
+ points: lt,
122
+ onTimerExpired: ot,
127
123
  questionType: t.type,
128
- isTimer: !d,
129
- isPlayingTimer: !r,
130
- animatePoints: et,
131
- timerDuration: it ? 0 : Number(((Y = t == null ? void 0 : t.appearance) == null ? void 0 : Y.autoHideInterval) || "30"),
132
- votedInCurrentRender: h,
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
- m ? /* @__PURE__ */ a(
137
- ot,
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: "Watch for additional enhanced stream interactive experience."
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__ */ j(st, { children: [
143
- /* @__PURE__ */ a(lt, { style: rt ? { marginTop: 0 } : {}, children: H }),
144
- /* @__PURE__ */ a(ut, { children: A.map((s) => /* @__PURE__ */ a(
145
- ft,
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
- ...s,
148
- markThatVoted: X,
149
- onPercentsAnimated: () => b(!0),
150
- votedAfterQuestionClosed: w,
152
+ ...n,
153
+ markThatVoted: st,
154
+ onPercentsAnimated: () => j(!0),
155
+ votedAfterQuestionClosed: R,
151
156
  enteredAnActiveQuestion: C,
152
- marketClosed: I
157
+ marketClosed: T
153
158
  },
154
- s.id
159
+ n.id
155
160
  )) })
156
161
  ] })
157
162
  ] }) }) });
158
163
  };
159
164
  export {
160
- Lt as Vote
165
+ Nt as Vote,
166
+ kt as VoteSkeleton
161
167
  };
@@ -1,21 +1,14 @@
1
- import { jsxs as o, jsx as m } from "react/jsx-runtime";
2
- import { SvgIcon as p } from "../../../icons/index.js";
3
- import { InsightContent as b } from "../../../questions/insight/index.js";
4
- import { Container as k, WebLinkBtn as c } from "./styles.js";
5
- import "@linaria/react";
6
- import "react";
7
- import "@streamlayer/sdk-web-types";
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__ */ m(p, { name: "icon-external-link" })
9
+ /* @__PURE__ */ l(b, { name: "icon-external-link" })
17
10
  ] })
18
11
  ] });
19
12
  export {
20
- D as InsightDetails
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;