@streamlayer/react-ui 0.98.1 → 0.99.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 (109) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/{index-jRXrW6ie.js → index-Bicco-Aq.js} +1 -1
  3. package/lib/{index-z0QjLiEL.js → index-CZvwzN5o.js} +1 -1
  4. package/lib/index.js +4 -8
  5. package/lib/ui/app/Features/Gamification/Friends.js +10 -23
  6. package/lib/ui/app/Features/Gamification/Leaderboard.js +30 -45
  7. package/lib/ui/app/Features/Gamification/Question.js +31 -63
  8. package/lib/ui/app/Features/Gamification/QuestionsList.js +8 -34
  9. package/lib/ui/app/Features/Gamification/Tabs.js +25 -82
  10. package/lib/ui/app/Features/Gamification/UserSummary.js +12 -21
  11. package/lib/ui/app/Features/Gamification/gamification-feature.js +2 -93
  12. package/lib/ui/app/Features/Gamification/index.js +52 -133
  13. package/lib/ui/app/Features/index.js +21 -109
  14. package/lib/ui/app/Navigation/MastersNavigation/index.js +16 -22
  15. package/lib/ui/app/Navigation/index.js +9 -12
  16. package/lib/ui/app/Notifications/Onboarding/Notification/index.js +13 -16
  17. package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +18 -20
  18. package/lib/ui/app/Notifications/Onboarding/index.js +55 -82
  19. package/lib/ui/app/Notifications/index.js +96 -148
  20. package/lib/ui/app/Notifications/styles.js +10 -15
  21. package/lib/ui/app/Points/index.js +18 -26
  22. package/lib/ui/app/masters.js +60 -179
  23. package/lib/ui/app/useClipboardCopy.js +11 -15
  24. package/lib/ui/app/useMastersApp.js +34 -44
  25. package/lib/ui/app/useSdkResponsive.js +18 -19
  26. package/lib/ui/app/useSdkScroll.js +5 -6
  27. package/lib/ui/button/index.js +3 -4
  28. package/lib/ui/gamification/copyNotification/index.js +5 -7
  29. package/lib/ui/gamification/detail/header/index.js +15 -18
  30. package/lib/ui/gamification/detail/header/styles.js +12 -14
  31. package/lib/ui/gamification/detail/sponsor/index.js +2 -3
  32. package/lib/ui/gamification/insight/index.js +5 -6
  33. package/lib/ui/gamification/insight-list/index.js +3 -6
  34. package/lib/ui/gamification/invite-link/index.js +11 -17
  35. package/lib/ui/gamification/invite-link/styles.js +13 -15
  36. package/lib/ui/gamification/leaderboard/index.js +21 -28
  37. package/lib/ui/gamification/leaderboard/list-item/index.js +19 -22
  38. package/lib/ui/gamification/leaderboard/list-item/styles.js +16 -18
  39. package/lib/ui/gamification/leaderboard/static.js +19 -23
  40. package/lib/ui/gamification/leaderboard/styles.js +1 -1
  41. package/lib/ui/gamification/onboarding/index.js +51 -73
  42. package/lib/ui/gamification/onboarding/invitingUser/index.js +10 -11
  43. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +3 -2
  44. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +17 -20
  45. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +2 -0
  46. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +21 -11
  47. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +21 -30
  48. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +22 -24
  49. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +5 -7
  50. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +2 -3
  51. package/lib/ui/gamification/onboarding/styles.js +14 -17
  52. package/lib/ui/gamification/points/index.js +9 -15
  53. package/lib/ui/gamification/points/styles.js +12 -14
  54. package/lib/ui/gamification/question/index.js +22 -26
  55. package/lib/ui/gamification/question/insight/index.js +7 -15
  56. package/lib/ui/gamification/question/list/index.js +33 -54
  57. package/lib/ui/gamification/question/notification/index.js +22 -35
  58. package/lib/ui/gamification/question/notification/insight/index.js +12 -17
  59. package/lib/ui/gamification/question/notification/pill/index.js +7 -9
  60. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js +11 -12
  61. package/lib/ui/gamification/question/notification/prediction-result/index.js +45 -51
  62. package/lib/ui/gamification/question/notification/prediction-result/styles.js +23 -26
  63. package/lib/ui/gamification/question/notification/styles.js +17 -19
  64. package/lib/ui/gamification/question/notification/tweet/index.js +8 -18
  65. package/lib/ui/gamification/question/styles.js +32 -34
  66. package/lib/ui/gamification/question/twitter/index.js +8 -20
  67. package/lib/ui/gamification/question/twitter/styles.js +4 -6
  68. package/lib/ui/gamification/tabs/index.js +6 -7
  69. package/lib/ui/gamification/user-statistics/components/rank/index.js +4 -5
  70. package/lib/ui/gamification/user-statistics/components/statistic/index.js +0 -1
  71. package/lib/ui/gamification/user-statistics/index.js +2 -6
  72. package/lib/ui/gamification/vote/expired-alert/index.js +8 -10
  73. package/lib/ui/gamification/vote/feedback/index.js +19 -23
  74. package/lib/ui/gamification/vote/feedback/styles.js +20 -23
  75. package/lib/ui/gamification/vote/index.js +77 -91
  76. package/lib/ui/gamification/vote/insight-details/index.js +9 -16
  77. package/lib/ui/gamification/vote/twitter-details/index.js +7 -17
  78. package/lib/ui/gamification/vote/vote-option/index.js +21 -24
  79. package/lib/ui/gamification/vote/vote-option/styles.js +24 -26
  80. package/lib/ui/gamification/vote/win-bar/index.js +29 -37
  81. package/lib/ui/gamification/vote/win-bar/styles.js +16 -19
  82. package/lib/ui/login/demo.d.ts +1 -0
  83. package/lib/ui/login/demo.js +5 -17
  84. package/lib/ui/login/index.js +29 -35
  85. package/lib/ui/modal/index.js +9 -10
  86. package/lib/ui/navigation/button/Channels.js +5 -8
  87. package/lib/ui/navigation/button/FeaturedGroups.js +3 -6
  88. package/lib/ui/navigation/button/LeaderBoard.js +8 -11
  89. package/lib/ui/navigation/button/index.js +10 -11
  90. package/lib/ui/navigation/masters.js +2 -3
  91. package/lib/ui/questions/insight/index.js +14 -19
  92. package/lib/ui/questions/twitter/account/index.js +13 -15
  93. package/lib/ui/questions/twitter/account/styles.js +14 -16
  94. package/lib/ui/questions/twitter/index.js +31 -38
  95. package/lib/ui/skeleton/index.js +3 -4
  96. package/lib/ui/theme/index.js +3 -5
  97. package/lib/ui/video-player/index.js +44 -38
  98. package/lib/utils/createDemo.js +18 -28
  99. package/lib/utils/debug/components/copyLogs.js +2 -3
  100. package/lib/utils/debug/components/developer.js +20 -24
  101. package/lib/utils/debug/components/eventInput.js +9 -10
  102. package/lib/utils/debug/components/sdkKey.js +9 -10
  103. package/lib/utils/debug/index.js +17 -28
  104. package/lib/utils/debug/storage.js +32 -14
  105. package/lib/utils/decorators/container.js +5 -9
  106. package/lib/utils/storage.js +32 -14
  107. package/package.json +25 -25
  108. /package/lib/{index-uEuzH3jr.js → index-xuotMAFm.js} +0 -0
  109. /package/lib/{styles_z07sl8-w40geAFS.js → styles_z07sl8-l0sNRNKZ.js} +0 -0
@@ -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
  };
@@ -1,13 +1,11 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { SvgIcon as t } from "../../../icons/index.js";
3
- import { Container as c, Title as n, Description as m } from "./styles.js";
4
- import "@linaria/react";
5
- import "react";
6
- const x = ({ title: i, description: o }) => /* @__PURE__ */ e(c, { children: [
7
- /* @__PURE__ */ r(t, { name: "icon-check-circle" }),
8
- /* @__PURE__ */ r(n, { children: i }),
9
- /* @__PURE__ */ r(m, { children: o })
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { SvgIcon as c } from "../../../icons/index.js";
3
+ import { Container as n, Title as t, Description as m } from "./styles.js";
4
+ const d = ({ title: e, description: i }) => /* @__PURE__ */ o(n, { children: [
5
+ /* @__PURE__ */ r(c, { name: "icon-check-circle" }),
6
+ /* @__PURE__ */ r(t, { children: e }),
7
+ /* @__PURE__ */ r(m, { children: i })
10
8
  ] });
11
9
  export {
12
- x as ExpiredAlert
10
+ d as ExpiredAlert
13
11
  };
@@ -1,13 +1,9 @@
1
1
  import { jsx as i, jsxs as n } from "react/jsx-runtime";
2
2
  import { QuestionType as e } 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,
4
+ import { ShowInContainer as j, Container as L, FeedbackContainer as l, IconPrediction as C, FeedbackDescription as r, FeedbackIconWrap as a, FeedbackHeader as F, FeedbackText as I, DynamicWrap as Y, FeedbackTitle as E } from "./styles.js";
5
+ const K = ({
6
+ feedbackMessages: t,
11
7
  questionVotedCorrectly: P,
12
8
  questionVoted: m,
13
9
  questionType: d,
@@ -21,53 +17,53 @@ const _ = ({
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;
20
+ 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 ? t == null ? void 0 : t.correctFeedback : t == null ? void 0 : t.incorrectFeedback;
25
21
  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: [
22
+ c && /* @__PURE__ */ n(l, { children: [
27
23
  /* @__PURE__ */ i(C, { name: "questionExpired" }),
28
- /* @__PURE__ */ i(t, { children: c })
24
+ /* @__PURE__ */ i(r, { children: c })
29
25
  ] }),
30
- !c && u && /* @__PURE__ */ n(r, { children: [
26
+ !c && u && /* @__PURE__ */ n(l, { 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" }) }),
29
+ /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(r, { children: "Question Expired" }) }),
34
30
  /* @__PURE__ */ i(I, { 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 && w && /* @__PURE__ */ n(l, { 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" }) }),
36
+ /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(r, { children: "Question Closed" }) }),
41
37
  /* @__PURE__ */ i(I, { 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
+ !c && O && /* @__PURE__ */ n(l, { 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" }) }),
43
+ /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(r, { children: "Question Closed" }) }),
48
44
  /* @__PURE__ */ i(I, { children: "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
49
45
  ] })
50
46
  ] }),
51
- !c && T && /* @__PURE__ */ n(r, { children: [
47
+ !c && T && /* @__PURE__ */ n(l, { children: [
52
48
  /* @__PURE__ */ i(C, { name: "icon-prediction" }),
53
- /* @__PURE__ */ n(t, { children: [
49
+ /* @__PURE__ */ n(r, { children: [
54
50
  "Your pick has been recorded. ",
55
51
  /* @__PURE__ */ i(Y, { children: "We’ll notify you of the result." })
56
52
  ] })
57
53
  ] }),
58
- !c && f && /* @__PURE__ */ n(r, { children: [
54
+ !c && f && /* @__PURE__ */ n(l, { 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(r, { children: "Thanks for answering. Please stay tuned for the next question." })
61
57
  ] }),
62
- !c && (N || R) && /* @__PURE__ */ n(r, { children: [
58
+ !c && (N || R) && /* @__PURE__ */ n(l, { children: [
63
59
  /* @__PURE__ */ i(a, { "data-feedback-type": k, children: /* @__PURE__ */ i(h, { name: k }) }),
64
60
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ n(F, { children: [
65
61
  /* @__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 })
62
+ /* @__PURE__ */ i(r, { children: o == null ? void 0 : o.description })
67
63
  ] }) })
68
64
  ] })
69
65
  ] }) }) : null;
70
66
  };
71
67
  export {
72
- _ as Feedback
68
+ K 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
  };
@@ -1,124 +1,110 @@
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";
1
+ import { jsx as a, jsxs as j, Fragment as it } from "react/jsx-runtime";
2
+ import { useRef as F, useState as c, useEffect as y, useCallback as x, useMemo as u } from "react";
3
+ import { QuestionType as n, QuestionStatus as N } from "@streamlayer/sdk-web-types";
4
+ import { ExpiredAlert as nt } from "./expired-alert/index.js";
5
+ import { Feedback as ot } from "./feedback/index.js";
6
+ import { QuestionScrollContainer as at, Container as ct, Content as lt, Title as mt, Options as ut } from "./styles.js";
7
7
  import { VotingOption as ft } from "./vote-option/index.js";
8
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
9
  const Tt = (t, d) => {
24
10
  switch (t) {
25
11
  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.";
12
+ return d === n.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
13
  default:
28
14
  return "Something went wrong, please try again";
29
15
  }
30
- }, Lt = ({ openedQuestion: t, isLoading: d, vote: N, close: y }) => {
16
+ }, Rt = ({ openedQuestion: t, isLoading: d, vote: p, close: V }) => {
31
17
  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
+ const H = t.subject, r = t.type, T = t.status, E = (W = t.options) == null ? void 0 : W.options, I = t.marketClosed, w = t.id, S = F(), [h, _] = c(!1), [R, z] = c(!1), [C, k] = c(!0), [l, G] = c(!1), [M, g] = c(""), [O, J] = c(""), [P, b] = c(!1), [K, U] = c(!1);
19
+ y(() => {
20
+ r === n.PREDICTION ? I && k(!1) : T === N.RESOLVED && k(!1);
35
21
  }, []);
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);
22
+ const X = x((i) => {
23
+ z(i), _(!0);
24
+ }, []), A = F(!1), L = x(
25
+ async (i) => {
26
+ if (!A.current && (A.current = !0, w)) {
27
+ const m = i.currentTarget.value;
28
+ g(m);
43
29
  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;
30
+ await p(w, m);
31
+ } catch (v) {
32
+ J(Tt(v.message, r)), g(""), console.error("Error while voting", v), A.current = !1;
47
33
  }
48
34
  }
49
35
  },
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),
36
+ [r, w, g, p]
37
+ ), Z = x(() => {
38
+ G(!0), setTimeout(V, 3e3);
39
+ }, [V]), e = u(
40
+ () => t == null ? void 0 : t.answers.find((i) => i.youVoted === !0),
55
41
  [t]
56
- ), n = u(
57
- () => !!(t != null && t.answers.find((s) => s.correct === !0)),
42
+ ), o = u(
43
+ () => !!(t != null && t.answers.find((i) => i.correct === !0)),
58
44
  [t]
59
- ), i = u(
60
- () => t == null ? void 0 : t.answers.find((s) => s.correct === !0),
45
+ ), s = u(
46
+ () => t == null ? void 0 : t.answers.find((i) => i.correct === !0),
61
47
  [t]
62
48
  );
63
- v(() => {
64
- e === o.PREDICTION && r && h && !K && (S.current = setTimeout(y, 1e4), U(!0));
65
- }, [r]), v(() => () => {
49
+ y(() => {
50
+ r === n.PREDICTION && e && h && !K && (S.current = setTimeout(V, 1e4), U(!0));
51
+ }, [e]), y(() => () => {
66
52
  clearTimeout(S.current);
67
53
  }, []);
68
- const A = u(() => t ? t.answers.map((s) => {
69
- var l;
54
+ const D = u(() => t ? t.answers.map((i) => {
55
+ var m;
70
56
  return {
71
- ...s,
72
- questionVoted: !!r,
73
- youSelected: M === s.id,
57
+ ...i,
58
+ questionVoted: !!e,
59
+ youSelected: M === i.id,
74
60
  isLoading: d,
75
- hasCorrectAnswer: n,
61
+ hasCorrectAnswer: o,
76
62
  questionType: t.type,
77
- answerTimeExpired: m,
63
+ answerTimeExpired: l,
78
64
  questionStatus: T,
79
- imageMode: (l = t.appearance) == null ? void 0 : l.images,
65
+ imageMode: (m = t.appearance) == null ? void 0 : m.images,
80
66
  onVote: L
81
67
  };
82
68
  }) : [], [
83
- n,
84
- m,
69
+ o,
70
+ l,
85
71
  d,
86
72
  t,
87
- r,
73
+ e,
88
74
  T,
89
75
  L,
90
76
  M
91
77
  ]);
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: [
78
+ y(() => {
79
+ const i = D.some(({ percentageDecimal: v }) => v !== 0), m = e && r === n.PREDICTION;
80
+ O && (!i || I && m) && b(!0);
81
+ }, [D, O, I, r, e]);
82
+ const $ = E && (E.case === "trivia" || E.case === "prediction") ? E.value : void 0, f = T === N.RESOLVED && r === n.TRIVIA && !e && !C, B = r === n.TRIVIA && R, q = u(() => r === n.PREDICTION ? !!(e && !o || e && o && (s != null && s.youVoted)) : !0, [r, e, o, s]), Q = u(() => {
83
+ if (r === n.PREDICTION && e && (!o || o && (s != null && s.youVoted)))
84
+ return e.points;
85
+ if (!(f || l))
86
+ return e ? e.correct ? e.pointsEarned : 0 : s == null ? void 0 : s.points;
87
+ }, [l, e, s, f, r, o]), tt = u(() => r === n.PREDICTION && e ? o ? o && (s != null && s.youVoted) ? "You won" : "" : "To win" : f || l ? "Time expired" : r === n.POLL ? "Time remaining" : e ? "You won" : "To win", [l, r, e, f, o, s]), et = !q || q && r === n.PREDICTION && h && !P, rt = (r === n.TRIVIA || r === n.PREDICTION) && e && o && (s == null ? void 0 : s.youVoted), st = e || f || B || r === n.TRIVIA && T === N.RESOLVED && C;
88
+ return /* @__PURE__ */ a(at, { children: /* @__PURE__ */ a(ct, { children: /* @__PURE__ */ j(lt, { children: [
103
89
  /* @__PURE__ */ a(
104
- nt,
90
+ ot,
105
91
  {
106
92
  feedbackMessages: $,
107
- questionVoted: !!r,
108
- questionVotedCorrectly: r == null ? void 0 : r.correct,
109
- questionType: e,
110
- hasCorrectAnswer: n,
93
+ questionVoted: !!e,
94
+ questionVotedCorrectly: e == null ? void 0 : e.correct,
95
+ questionType: r,
96
+ hasCorrectAnswer: o,
111
97
  showExpiredNotification: f,
112
98
  showClosedNotificationTrivia: B,
113
99
  votedInCurrentRender: h,
114
- votedAfterQuestionClosed: w,
100
+ votedAfterQuestionClosed: R,
115
101
  enteredAnActiveQuestion: C,
116
102
  marketClosed: I,
117
- percentsAnimated: O,
118
- voteErrorMessage: g
103
+ percentsAnimated: P,
104
+ voteErrorMessage: O
119
105
  }
120
106
  ),
121
- D && /* @__PURE__ */ a(
107
+ q && /* @__PURE__ */ a(
122
108
  dt,
123
109
  {
124
110
  title: tt,
@@ -126,36 +112,36 @@ const Tt = (t, d) => {
126
112
  onTimerExpired: Z,
127
113
  questionType: t.type,
128
114
  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"),
115
+ isPlayingTimer: !e,
116
+ animatePoints: rt,
117
+ timerDuration: st ? 0 : Number(((Y = t == null ? void 0 : t.appearance) == null ? void 0 : Y.autoHideInterval) || "30"),
132
118
  votedInCurrentRender: h,
133
- percentsAnimated: O
119
+ percentsAnimated: P
134
120
  }
135
121
  ),
136
- m ? /* @__PURE__ */ a(
137
- ot,
122
+ l ? /* @__PURE__ */ a(
123
+ nt,
138
124
  {
139
125
  title: "More to come...",
140
126
  description: "Watch for additional enhanced stream interactive experience."
141
127
  }
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(
128
+ ) : /* @__PURE__ */ j(it, { children: [
129
+ /* @__PURE__ */ a(mt, { style: et ? { marginTop: 0 } : {}, children: H }),
130
+ /* @__PURE__ */ a(ut, { children: D.map((i) => /* @__PURE__ */ a(
145
131
  ft,
146
132
  {
147
- ...s,
133
+ ...i,
148
134
  markThatVoted: X,
149
135
  onPercentsAnimated: () => b(!0),
150
- votedAfterQuestionClosed: w,
136
+ votedAfterQuestionClosed: R,
151
137
  enteredAnActiveQuestion: C,
152
138
  marketClosed: I
153
139
  },
154
- s.id
140
+ i.id
155
141
  )) })
156
142
  ] })
157
143
  ] }) }) });
158
144
  };
159
145
  export {
160
- Lt as Vote
146
+ Rt as Vote
161
147
  };
@@ -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
  };
@@ -1,20 +1,10 @@
1
- import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
- import { TwitterContent as o } from "../../../questions/twitter/index.js";
3
- import { Container as m, Quote as e } from "./styles.js";
4
- import "../../../video-player/index.js";
5
- import "@linaria/core";
6
- import "react";
7
- import "../../../icons/index.js";
8
- import "@linaria/react";
9
- import "../../../video-player/styles.js";
10
- import "../../../questions/twitter/account/index.js";
11
- import "../../../../utils/common.js";
12
- import "../../../questions/twitter/account/styles.js";
13
- import "../../../questions/twitter/styles.js";
14
- const C = (t) => /* @__PURE__ */ r(m, { children: [
15
- t.title && /* @__PURE__ */ i(e, { children: t.title }),
16
- /* @__PURE__ */ i(o, { ...t, isDetail: !0 })
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { TwitterContent as r } from "../../../questions/twitter/index.js";
3
+ import { Container as o, Quote as n } from "./styles.js";
4
+ const a = (t) => /* @__PURE__ */ i(o, { children: [
5
+ t.title && /* @__PURE__ */ e(n, { children: t.title }),
6
+ /* @__PURE__ */ e(r, { ...t, isDetail: !0 })
17
7
  ] });
18
8
  export {
19
- C as TwitterDetails
9
+ a as TwitterDetails
20
10
  };
@@ -1,11 +1,8 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import { useState as j, useLayoutEffect as U } from "react";
3
- import { QuestionImages as a, QuestionType as o, QuestionStatus as S } from "@streamlayer/sdk-web-types";
3
+ import { QuestionImages as a, QuestionType as o, QuestionStatus as D } from "@streamlayer/sdk-web-types";
4
4
  import { AnimatedCounter as $ } from "../../../animated-counter/index.js";
5
5
  import { IconDefault as y, IconContainer as F, IconWrap as M, IconCircle as W, ButtonContainer as z, ButtonPct as G, ButtonBody as H, Title as J, Pts as K, Indicators as X, CheckIcon as Y, Percentage as Z } from "./styles.js";
6
- import "react-countup";
7
- import "@linaria/react";
8
- import "../../../icons/index.js";
9
6
  const E = {
10
7
  [a.CENTERED]: (t) => /* @__PURE__ */ e(y, { alt: "option-icon", src: t }),
11
8
  [a.TRANSPARENT]: (t) => /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(M, { style: { backgroundImage: `url(${t})` } }) }),
@@ -28,68 +25,68 @@ const E = {
28
25
  correct: n,
29
26
  hasCorrectAnswer: r,
30
27
  questionStatus: i
31
- }) => t === o.TRIVIA ? c && n : t === o.PREDICTION ? c && n && r || i === S.RESOLVED && n : !1, at = (t) => {
32
- var N;
28
+ }) => t === o.TRIVIA ? c && n : t === o.PREDICTION ? c && n && r || i === D.RESOLVED && n : !1, ot = (t) => {
29
+ var S;
33
30
  const {
34
31
  // option props
35
32
  id: c,
36
33
  icon: n,
37
34
  text: r,
38
35
  percentageDecimal: i,
39
- points: D,
36
+ points: p,
40
37
  // extra props
41
38
  onVote: w,
42
39
  markThatVoted: A,
43
- onPercentsAnimated: m,
40
+ onPercentsAnimated: f,
44
41
  youSelected: h,
45
42
  questionVoted: s,
46
43
  imageMode: C,
47
44
  answerTimeExpired: O,
48
- questionStatus: p,
45
+ questionStatus: P,
49
46
  isLoading: g,
50
47
  questionType: d,
51
48
  correct: k,
52
49
  hasCorrectAnswer: v,
53
50
  votedAfterQuestionClosed: x,
54
- enteredAnActiveQuestion: P,
55
- marketClosed: f
56
- } = t, [L, R] = j(0), I = _(t), Q = q({ questionType: d, questionVoted: s, correct: k, hasCorrectAnswer: v, questionStatus: p }), u = f && d === o.PREDICTION, T = s || u, B = d === o.PREDICTION && !s && !f, V = s && !h && I !== "incorrect";
51
+ enteredAnActiveQuestion: R,
52
+ marketClosed: I
53
+ } = t, [L, T] = j(0), m = _(t), Q = q({ questionType: d, questionVoted: s, correct: k, hasCorrectAnswer: v, questionStatus: P }), u = I && d === o.PREDICTION, N = s || u, B = d === o.PREDICTION && !s && !I, V = s && !h && m !== "incorrect";
57
54
  return U(() => {
58
- R(0), requestAnimationFrame(() => {
59
- R(i);
55
+ T(0), requestAnimationFrame(() => {
56
+ T(i);
60
57
  });
61
58
  }, [i]), /* @__PURE__ */ l(
62
59
  z,
63
60
  {
64
61
  value: c,
65
62
  "data-selected": h,
66
- "data-answer-state": I,
67
- disabled: s || g || O || u && !P || u && P && x,
63
+ "data-answer-state": m,
64
+ disabled: s || g || O || u && !R || u && R && x,
68
65
  "data-is-not-checked": V,
69
66
  onClick: (b) => {
70
67
  A(
71
- d === o.PREDICTION ? f : p === S.RESOLVED
68
+ d === o.PREDICTION ? I : P === D.RESOLVED
72
69
  ), w(b);
73
70
  },
74
71
  children: [
75
72
  /* @__PURE__ */ e(
76
73
  G,
77
74
  {
78
- "data-answer-state": I,
79
- style: { width: `${T ? L : 0}%` },
75
+ "data-answer-state": m,
76
+ style: { width: `${N ? L : 0}%` },
80
77
  onTransitionEnd: () => {
81
- u || m == null || m();
78
+ u || f == null || f();
82
79
  }
83
80
  }
84
81
  ),
85
82
  /* @__PURE__ */ l(H, { children: [
86
- n && C && ((N = E[C]) == null ? void 0 : N.call(E, n)),
83
+ n && C && ((S = E[C]) == null ? void 0 : S.call(E, n)),
87
84
  /* @__PURE__ */ e(J, { children: r }),
88
85
  B && /* @__PURE__ */ l("div", { children: [
89
- D,
86
+ p,
90
87
  /* @__PURE__ */ e(K, { children: "pts" })
91
88
  ] }),
92
- T && /* @__PURE__ */ l(X, { children: [
89
+ N && /* @__PURE__ */ l(X, { children: [
93
90
  Q && /* @__PURE__ */ e(Y, { name: "selected" }),
94
91
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e($, { value: i, suffix: "%" }) })
95
92
  ] })
@@ -99,5 +96,5 @@ const E = {
99
96
  );
100
97
  };
101
98
  export {
102
- at as VotingOption
99
+ ot as VotingOption
103
100
  };