@streamlayer/react-ui 0.42.1 → 0.43.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 (62) hide show
  1. package/lib/{icon-exit-6a55bb8f.js → icon-exit-d3f9fc80.js} +1 -1
  2. package/lib/{index-7045fbb2.js → index-7f3361f2.js} +1 -1
  3. package/lib/index.js +36 -39
  4. package/lib/ui/app/Features/Gamification/Leaderboard.js +1 -1
  5. package/lib/ui/app/Features/Gamification/Question.js +32 -27
  6. package/lib/ui/app/Features/Gamification/Tabs.js +1 -1
  7. package/lib/ui/app/Features/Gamification/index.js +13 -8
  8. package/lib/ui/app/Features/Highlights/Insight.js +1 -1
  9. package/lib/ui/app/Features/Highlights/index.js +1 -1
  10. package/lib/ui/app/Features/index.js +13 -8
  11. package/lib/ui/app/Notifications/index.js +1 -1
  12. package/lib/ui/app/masters.js +12 -8
  13. package/lib/ui/demo/Gamification.js +21 -24
  14. package/lib/ui/demo/Highlights.js +8 -11
  15. package/lib/ui/demo/Login.js +4 -5
  16. package/lib/ui/demo/components/Insight.js +1 -1
  17. package/lib/ui/demo/components/Leaderboard.js +1 -1
  18. package/lib/ui/demo/components/Question.js +49 -64
  19. package/lib/ui/demo/components/index.js +20 -23
  20. package/lib/ui/demo/index.js +8 -11
  21. package/lib/ui/gamification/common-header/index.js +8 -8
  22. package/lib/ui/gamification/detailed-insight/index.js +1 -1
  23. package/lib/ui/gamification/leaderboard-item-detail/index.js +1 -1
  24. package/lib/ui/gamification/onboarding/index.js +19 -19
  25. package/lib/ui/gamification/user-statistics/index.js +31 -31
  26. package/lib/ui/gamification/vote/index.js +42 -35
  27. package/lib/ui/gamification/vote/styles.js +7 -7
  28. package/lib/ui/gamification/vote/{components/voting-option → vote-option}/index.js +1 -1
  29. package/lib/ui/gamification/vote/win-bar/index.d.ts +10 -0
  30. package/lib/ui/gamification/vote/win-bar/index.js +24 -0
  31. package/lib/ui/gamification/vote/win-bar/styles.d.ts +8 -0
  32. package/lib/ui/gamification/vote/win-bar/styles.js +50 -0
  33. package/lib/ui/icons/index.js +1 -1
  34. package/lib/ui/login/index.js +15 -17
  35. package/lib/ui/notifications/decorator.js +1 -1
  36. package/lib/ui/notifications/index.js +1 -1
  37. package/lib/ui/notifications/notification/index.js +1 -1
  38. package/lib/ui/notifications/notification/question-inapp/index.js +8 -8
  39. package/lib/ui/theme/constants.d.ts +4 -0
  40. package/lib/ui/theme/constants.js +2 -0
  41. package/lib/ui/timer/index.d.ts +9 -0
  42. package/lib/ui/timer/index.js +37 -0
  43. package/package.json +2 -2
  44. package/lib/ui/gamification/vote/components/voting-header/components/points/index.d.ts +0 -6
  45. package/lib/ui/gamification/vote/components/voting-header/components/points/index.js +0 -13
  46. package/lib/ui/gamification/vote/components/voting-header/components/points/styles.d.ts +0 -6
  47. package/lib/ui/gamification/vote/components/voting-header/components/points/styles.js +0 -32
  48. package/lib/ui/gamification/vote/components/voting-header/components/timer/index.d.ts +0 -8
  49. package/lib/ui/gamification/vote/components/voting-header/components/timer/index.js +0 -28
  50. package/lib/ui/gamification/vote/components/voting-header/components/timer/styles.d.ts +0 -2
  51. package/lib/ui/gamification/vote/components/voting-header/components/timer/styles.js +0 -8
  52. package/lib/ui/gamification/vote/components/voting-header/index.d.ts +0 -12
  53. package/lib/ui/gamification/vote/components/voting-header/index.js +0 -44
  54. package/lib/ui/gamification/vote/components/voting-header/styles.d.ts +0 -11
  55. package/lib/ui/gamification/vote/components/voting-header/styles.js +0 -57
  56. /package/lib/ui/gamification/vote/{vote-header → header}/index.d.ts +0 -0
  57. /package/lib/ui/gamification/vote/{vote-header → header}/index.js +0 -0
  58. /package/lib/ui/gamification/vote/{vote-header → header}/styles.d.ts +0 -0
  59. /package/lib/ui/gamification/vote/{vote-header → header}/styles.js +0 -0
  60. /package/lib/ui/gamification/vote/{components/voting-option → vote-option}/index.d.ts +0 -0
  61. /package/lib/ui/gamification/vote/{components/voting-option → vote-option}/styles.d.ts +0 -0
  62. /package/lib/ui/gamification/vote/{components/voting-option → vote-option}/styles.js +0 -0
@@ -1,4 +1,4 @@
1
1
  const I = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CiAgPHJlY3QgeD0iOC4yNSIgeT0iNyIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcpIiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHg9IjciIHk9IjE1Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSA3IDE1Ljc1KSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";
2
2
  export {
3
- I as i
3
+ I as c
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as N, jsx as M } from "react/jsx-runtime";
2
2
  import { QuestionType as w } from "@streamlayer/sdk-web-types";
3
- import { AnsweredContainer as k, ButtonPct as L, Button as O, Icon as l, Title as E, Indicators as u, CheckIconWrap as S, CheckIcon as n, Percentage as i, Container as r } from "./ui/gamification/vote/components/voting-option/styles.js";
3
+ import { AnsweredContainer as k, ButtonPct as L, Button as O, Icon as l, Title as E, Indicators as u, CheckIconWrap as S, CheckIcon as n, Percentage as i, Container as r } from "./ui/gamification/vote/vote-option/styles.js";
4
4
  const o = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrbWFyayI+CjxwYXRoIGlkPSJTZWxlY3RlZCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMi4wMDJDMjQgMTguNjI5NCAxOC42Mjc0IDI0LjAwMiAxMiAyNC4wMDJDNS4zNzI1OCAyNC4wMDIgMCAxOC42Mjk0IDAgMTIuMDAyQzAgNS4zNzQ1NCA1LjM3MjU4IDAuMDAxOTUzMTIgMTIgMC4wMDE5NTMxMkMxOC42Mjc0IDAuMDAxOTUzMTIgMjQgNS4zNzQ1NCAyNCAxMi4wMDJaTTE3LjQwODYgOC4xNTM1N0MxNi45NCA3LjY4NDk0IDE2LjE4MDIgNy42ODQ5NCAxNS43MTE2IDguMTUzNTdMMTAuNDA3MiAxNC45NTc5TDcuNjI1NzMgMTMuMTAzNkM3LjA3NDI5IDEyLjczNiA2LjMyOTI1IDEyLjg4NSA1Ljk2MTYzIDEzLjQzNjVDNS41OTQwMSAxMy45ODc5IDUuNzQzMDEgMTQuNzMyOSA2LjI5NDQ1IDE1LjEwMDZMOS44OTQ0NSAxNy41MDA2QzEwLjM3MDQgMTcuODE3OSAxMS4wMDQxIDE3Ljc1NTEgMTEuNDA4NiAxNy4zNTA2TDE3LjQwODYgOS44NTA2M0MxNy44NzcyIDkuMzgyIDE3Ljg3NzIgOC42MjIyIDE3LjQwODYgOC4xNTM1N1oiIGZpbGw9IiMwMEJENjAiLz4KPC9nPgo8L3N2Zz4K", a = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrbWFyayI+CjxwYXRoIGlkPSJTZWxlY3RlZCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMi4wMDJDMjQgMTguNjI5NCAxOC42Mjc0IDI0LjAwMiAxMiAyNC4wMDJDNS4zNzI1OCAyNC4wMDIgMCAxOC42Mjk0IDAgMTIuMDAyQzAgNS4zNzQ1NCA1LjM3MjU4IDAuMDAxOTUzMTIgMTIgMC4wMDE5NTMxMkMxOC42Mjc0IDAuMDAxOTUzMTIgMjQgNS4zNzQ1NCAyNCAxMi4wMDJaTTE3LjQwODYgOC4xNTM1N0MxNi45NCA3LjY4NDk0IDE2LjE4MDIgNy42ODQ5NCAxNS43MTE2IDguMTUzNTdMMTAuNDA3MiAxNC45NTc5TDcuNjI1NzMgMTMuMTAzNkM3LjA3NDI5IDEyLjczNiA2LjMyOTI1IDEyLjg4NSA1Ljk2MTYzIDEzLjQzNjVDNS41OTQwMSAxMy45ODc5IDUuNzQzMDEgMTQuNzMyOSA2LjI5NDQ1IDE1LjEwMDZMOS44OTQ0NSAxNy41MDA2QzEwLjM3MDQgMTcuODE3OSAxMS4wMDQxIDE3Ljc1NTEgMTEuNDA4NiAxNy4zNTA2TDE3LjQwODYgOS44NTA2M0MxNy44NzcyIDkuMzgyIDE3Ljg3NzIgOC42MjIyIDE3LjQwODYgOC4xNTM1N1oiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K", G = ({
5
5
  icon: D,
6
6
  id: C,
package/lib/index.js CHANGED
@@ -1,27 +1,26 @@
1
- import { QuestionInApp as ko } from "./ui/notifications/notification/question-inapp/index.js";
2
- import { Login as wo } from "./ui/login/index.js";
3
- import { Onboarding as Bo } from "./ui/gamification/onboarding/index.js";
4
- import { ActivePages as Eo, Tab as Fo, Tabs as Go } from "./ui/gamification/tabs/index.js";
5
- import { LeaderboardItemDetail as Jo } from "./ui/gamification/leaderboard-item-detail/index.js";
6
- import { Question as Mo } from "./ui/gamification/question/index.js";
7
- import { QuestionList as Ro } from "./ui/gamification/question/list/index.js";
8
- import { UserStatistics as Xo } from "./ui/gamification/user-statistics/index.js";
9
- import { Vote as Zo } from "./ui/gamification/vote/index.js";
10
- import { Demo as $o } from "./ui/demo/index.js";
11
- import { Points as rr } from "./ui/gamification/points/index.js";
12
- import { StreamLayerThemeProvider as mr } from "./ui/theme/index.js";
13
- import { ThemeVariables as ir, theme as er, themeStr as fr } from "./ui/theme/theme.js";
1
+ import { QuestionInApp as Oo } from "./ui/notifications/notification/question-inapp/index.js";
2
+ import { Login as jo } from "./ui/login/index.js";
3
+ import { Onboarding as qo } from "./ui/gamification/onboarding/index.js";
4
+ import { ActivePages as zo, Tab as Bo, Tabs as Co } from "./ui/gamification/tabs/index.js";
5
+ import { LeaderboardItemDetail as Fo } from "./ui/gamification/leaderboard-item-detail/index.js";
6
+ import { Question as Ho } from "./ui/gamification/question/index.js";
7
+ import { QuestionList as Ko } from "./ui/gamification/question/list/index.js";
8
+ import { UserStatistics as No } from "./ui/gamification/user-statistics/index.js";
9
+ import { Vote as Wo } from "./ui/gamification/vote/index.js";
10
+ import { Demo as Yo } from "./ui/demo/index.js";
11
+ import { Points as _o } from "./ui/gamification/points/index.js";
12
+ import { StreamLayerThemeProvider as or } from "./ui/theme/index.js";
13
+ import { ThemeVariables as tr, theme as mr, themeStr as pr } from "./ui/theme/theme.js";
14
14
  import "react/jsx-runtime";
15
15
  import "react";
16
- import "./icon-exit-6a55bb8f.js";
16
+ import "./icon-exit-d3f9fc80.js";
17
17
  import "./ui/notifications/notification/question-inapp/styles.js";
18
18
  import "@linaria/react";
19
19
  import "react-auth-code-input";
20
20
  import "react-phone-number-input";
21
- import "./ui/gamification/vote/components/voting-header/components/timer/index.js";
21
+ import "./ui/timer/index.js";
22
22
  import "react-countdown-circle-timer";
23
23
  import "./ui/theme/constants.js";
24
- import "./ui/gamification/vote/components/voting-header/components/timer/styles.js";
25
24
  import "./utils/login.js";
26
25
  import "@connectrpc/connect";
27
26
  import "@connectrpc/connect-web";
@@ -51,9 +50,11 @@ import "./ui/gamification/user-statistics/components/rank/styles.js";
51
50
  import "./ui/gamification/user-statistics/components/statistic/index.js";
52
51
  import "./ui/gamification/user-statistics/components/statistic/styles.js";
53
52
  import "./ui/gamification/user-statistics/styles.js";
54
- import "./index-7045fbb2.js";
55
- import "./ui/gamification/vote/components/voting-option/styles.js";
53
+ import "./index-7f3361f2.js";
54
+ import "./ui/gamification/vote/vote-option/styles.js";
56
55
  import "./ui/gamification/vote/styles.js";
56
+ import "./ui/gamification/vote/win-bar/index.js";
57
+ import "./ui/gamification/vote/win-bar/styles.js";
57
58
  import "@streamlayer/sdk-web-interfaces";
58
59
  import "@streamlayer/sdk-web-features";
59
60
  import "@streamlayer/sdk-web-api";
@@ -70,10 +71,6 @@ import "./ui/demo/Gamification.js";
70
71
  import "./ui/demo/components/UserSummary.js";
71
72
  import "./ui/demo/components/QuestionsList.js";
72
73
  import "./ui/demo/components/Question.js";
73
- import "./ui/gamification/vote/components/voting-header/index.js";
74
- import "./ui/gamification/vote/components/voting-header/components/points/index.js";
75
- import "./ui/gamification/vote/components/voting-header/components/points/styles.js";
76
- import "./ui/gamification/vote/components/voting-header/styles.js";
77
74
  import "./ui/gamification/insight/styles.js";
78
75
  import "./ui/gamification/insight-list/styles.js";
79
76
  import "./ui/gamification/detailed-insight/styles.js";
@@ -96,21 +93,21 @@ import "@streamlayer/sdk-web-anonymous-auth";
96
93
  import "./ui/gamification/points/styles.js";
97
94
  import "@linaria/core";
98
95
  export {
99
- Eo as ActivePages,
100
- $o as Demo,
101
- Jo as LeaderboardItemDetail,
102
- wo as Login,
103
- Bo as Onboarding,
104
- rr as Points,
105
- Mo as Question,
106
- ko as QuestionInApp,
107
- Ro as QuestionList,
108
- mr as StreamLayerThemeProvider,
109
- Fo as Tab,
110
- Go as Tabs,
111
- ir as ThemeVariables,
112
- Xo as UserStatistics,
113
- Zo as Vote,
114
- er as theme,
115
- fr as themeStr
96
+ zo as ActivePages,
97
+ Yo as Demo,
98
+ Fo as LeaderboardItemDetail,
99
+ jo as Login,
100
+ qo as Onboarding,
101
+ _o as Points,
102
+ Ho as Question,
103
+ Oo as QuestionInApp,
104
+ Ko as QuestionList,
105
+ or as StreamLayerThemeProvider,
106
+ Bo as Tab,
107
+ Co as Tabs,
108
+ tr as ThemeVariables,
109
+ No as UserStatistics,
110
+ Wo as Vote,
111
+ mr as theme,
112
+ pr as themeStr
116
113
  };
@@ -4,7 +4,7 @@ import { useState as b } from "react";
4
4
  import { LeaderboardItemDetail as f } from "../../../gamification/leaderboard-item-detail/index.js";
5
5
  import { LeaderboardList as I } from "../../../gamification/leaderboard-list/index.js";
6
6
  import "../../../gamification/common-header/index.js";
7
- import "../../../../icon-exit-6a55bb8f.js";
7
+ import "../../../../icon-exit-d3f9fc80.js";
8
8
  import "../../../gamification/common-header/styles.js";
9
9
  import "@linaria/react";
10
10
  import "../../../gamification/user-statistics/index.js";
@@ -1,16 +1,21 @@
1
- import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
- import { styled as x } from "@linaria/react";
3
- import { useState as p, useCallback as g, useMemo as s } from "react";
1
+ import { jsxs as y, jsx as o } from "react/jsx-runtime";
2
+ import { styled as e } from "@linaria/react";
3
+ import { useState as x, useCallback as g, useMemo as a } from "react";
4
4
  import { QuestionType as b } from "@streamlayer/sdk-web-types";
5
5
  import { Vote as h } from "../../../gamification/vote/index.js";
6
- import { VoteHeader as C } from "../../../gamification/vote/vote-header/index.js";
7
- import "../../../../index-7045fbb2.js";
8
- import "../../../gamification/vote/components/voting-option/styles.js";
6
+ import { VoteHeader as C } from "../../../gamification/vote/header/index.js";
7
+ import "../../../../index-7f3361f2.js";
8
+ import "../../../gamification/vote/vote-option/styles.js";
9
9
  import "../../../gamification/vote/styles.js";
10
- import "../../../gamification/constants.js";
11
- import "../../../gamification/vote/vote-header/styles.js";
10
+ import "../../../gamification/vote/win-bar/index.js";
11
+ import "../../../timer/index.js";
12
+ import "react-countdown-circle-timer";
13
+ import "../../../theme/constants.js";
14
+ import "../../../gamification/vote/win-bar/styles.js";
12
15
  import "../../../icons/index.js";
13
- const T = x.div`
16
+ import "../../../gamification/constants.js";
17
+ import "../../../gamification/vote/header/styles.js";
18
+ const T = e.div`
14
19
  background: var(--color-transparent-item);
15
20
  width: 100%;
16
21
  height: 100%;
@@ -19,33 +24,33 @@ const T = x.div`
19
24
  align-items: center;
20
25
  justify-content: flex-start;
21
26
  flex-direction: column;
22
- `, I = ({ openedQuestion: r, closeQuestion: l, vote: o }) => {
23
- var m;
24
- const [f, i] = p(!1);
27
+ `, D = ({ openedQuestion: r, closeQuestion: s, vote: l }) => {
28
+ var c;
29
+ const [f, m] = x(!1);
25
30
  g(
26
31
  (t) => {
27
- i(t);
32
+ m(t);
28
33
  },
29
- [i]
34
+ [m]
30
35
  );
31
- const c = s(
36
+ const i = a(
32
37
  () => r == null ? void 0 : r.answers.find((t) => t.youVoted === !0),
33
38
  [r]
34
- ), y = s(
39
+ ), p = a(
35
40
  () => !!(r != null && r.answers.find((t) => t.correct === !0)),
36
41
  [r]
37
42
  );
38
- return /* @__PURE__ */ e(T, { children: [
39
- /* @__PURE__ */ a(C, { close: l, type: (r == null ? void 0 : r.type) || b.UNSET }),
40
- r && /* @__PURE__ */ a(
43
+ return /* @__PURE__ */ y(T, { children: [
44
+ /* @__PURE__ */ o(C, { close: s, type: (r == null ? void 0 : r.type) || b.UNSET }),
45
+ r && /* @__PURE__ */ o(
41
46
  h,
42
47
  {
43
48
  title: r.subject,
44
- feedbackMessages: (m = r.options) == null ? void 0 : m.options.value,
49
+ feedbackMessages: (c = r.options) == null ? void 0 : c.options.value,
45
50
  questionType: r.type,
46
51
  questionId: r.id,
47
- questionAnswered: !!c,
48
- questionAnsweredCorrectly: c == null ? void 0 : c.correct,
52
+ questionAnswered: !!i,
53
+ questionAnsweredCorrectly: i == null ? void 0 : i.correct,
49
54
  options: r.answers.map((t) => ({
50
55
  id: t.id,
51
56
  title: t.text,
@@ -54,16 +59,16 @@ const T = x.div`
54
59
  correct: t.correct,
55
60
  percentage: t.percentage,
56
61
  answered: t.youVoted,
57
- disabled: !!c || r.marketClosed || f,
58
- questionAnswered: !!c,
59
- hasCorrectAnswer: y,
62
+ disabled: !!i || r.marketClosed || f,
63
+ questionAnswered: !!i,
64
+ hasCorrectAnswer: p,
60
65
  points: t.points,
61
- onVote: o
66
+ onVote: l
62
67
  }))
63
68
  }
64
69
  )
65
70
  ] });
66
71
  };
67
72
  export {
68
- I as Question
73
+ D as Question
69
74
  };
@@ -10,7 +10,7 @@ import "../../../gamification/tabs/styles.js";
10
10
  import "@nanostores/react";
11
11
  import "../../../gamification/leaderboard-item-detail/index.js";
12
12
  import "../../../gamification/common-header/index.js";
13
- import "../../../../icon-exit-6a55bb8f.js";
13
+ import "../../../../icon-exit-d3f9fc80.js";
14
14
  import "../../../gamification/common-header/styles.js";
15
15
  import "../../../gamification/user-statistics/index.js";
16
16
  import "../../../../utils/common.js";
@@ -8,19 +8,24 @@ import { Tabs as l } from "./Tabs.js";
8
8
  import "react";
9
9
  import "@streamlayer/sdk-web-types";
10
10
  import "../../../gamification/vote/index.js";
11
- import "../../../../index-7045fbb2.js";
12
- import "../../../gamification/vote/components/voting-option/styles.js";
11
+ import "../../../../index-7f3361f2.js";
12
+ import "../../../gamification/vote/vote-option/styles.js";
13
13
  import "../../../gamification/vote/styles.js";
14
- import "../../../gamification/vote/vote-header/index.js";
15
- import "../../../gamification/constants.js";
16
- import "../../../gamification/vote/vote-header/styles.js";
14
+ import "../../../gamification/vote/win-bar/index.js";
15
+ import "../../../timer/index.js";
16
+ import "react-countdown-circle-timer";
17
+ import "../../../theme/constants.js";
18
+ import "../../../gamification/vote/win-bar/styles.js";
17
19
  import "../../../icons/index.js";
20
+ import "../../../gamification/vote/header/index.js";
21
+ import "../../../gamification/constants.js";
22
+ import "../../../gamification/vote/header/styles.js";
18
23
  import "../../../gamification/tabs/index.js";
19
24
  import "../../../gamification/tabs/styles.js";
20
25
  import "./Leaderboard.js";
21
26
  import "../../../gamification/leaderboard-item-detail/index.js";
22
27
  import "../../../gamification/common-header/index.js";
23
- import "../../../../icon-exit-6a55bb8f.js";
28
+ import "../../../../icon-exit-d3f9fc80.js";
24
29
  import "../../../gamification/common-header/styles.js";
25
30
  import "../../../gamification/user-statistics/index.js";
26
31
  import "../../../../utils/common.js";
@@ -50,7 +55,7 @@ const u = e(a)`
50
55
  top: var(--header-height);
51
56
  background: var(--color-neutrals-white);
52
57
  z-index: 3;
53
- `, po = ({
58
+ `, lo = ({
54
59
  gamification: o
55
60
  }) => {
56
61
  const { loading: i, data: t } = n(o.openedQuestion);
@@ -67,5 +72,5 @@ const u = e(a)`
67
72
  ] });
68
73
  };
69
74
  export {
70
- po as GamificationOverlay
75
+ lo as GamificationOverlay
71
76
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { DetailedInsight as L } from "../../../gamification/detailed-insight/index.js";
3
3
  import "../../../gamification/common-header/index.js";
4
- import "../../../../icon-exit-6a55bb8f.js";
4
+ import "../../../../icon-exit-d3f9fc80.js";
5
5
  import "../../../gamification/common-header/styles.js";
6
6
  import "@linaria/react";
7
7
  import "../../../gamification/detailed-insight/styles.js";
@@ -4,7 +4,7 @@ import { Insight as p } from "../../../demo/components/Insight.js";
4
4
  import { Insights as s } from "../../../demo/components/Insights.js";
5
5
  import "../../../gamification/detailed-insight/index.js";
6
6
  import "../../../gamification/common-header/index.js";
7
- import "../../../../icon-exit-6a55bb8f.js";
7
+ import "../../../../icon-exit-d3f9fc80.js";
8
8
  import "../../../gamification/common-header/styles.js";
9
9
  import "@linaria/react";
10
10
  import "../../../gamification/detailed-insight/styles.js";
@@ -11,20 +11,25 @@ import "../styles.js";
11
11
  import "../../show-in/index.js";
12
12
  import "./Gamification/Question.js";
13
13
  import "../../gamification/vote/index.js";
14
- import "../../../index-7045fbb2.js";
15
- import "../../gamification/vote/components/voting-option/styles.js";
14
+ import "../../../index-7f3361f2.js";
15
+ import "../../gamification/vote/vote-option/styles.js";
16
16
  import "../../gamification/vote/styles.js";
17
- import "../../gamification/vote/vote-header/index.js";
18
- import "../../gamification/constants.js";
19
- import "../../gamification/vote/vote-header/styles.js";
17
+ import "../../gamification/vote/win-bar/index.js";
18
+ import "../../timer/index.js";
19
+ import "react-countdown-circle-timer";
20
+ import "../../theme/constants.js";
21
+ import "../../gamification/vote/win-bar/styles.js";
20
22
  import "../../icons/index.js";
23
+ import "../../gamification/vote/header/index.js";
24
+ import "../../gamification/constants.js";
25
+ import "../../gamification/vote/header/styles.js";
21
26
  import "./Gamification/Tabs.js";
22
27
  import "../../gamification/tabs/index.js";
23
28
  import "../../gamification/tabs/styles.js";
24
29
  import "./Gamification/Leaderboard.js";
25
30
  import "../../gamification/leaderboard-item-detail/index.js";
26
31
  import "../../gamification/common-header/index.js";
27
- import "../../../icon-exit-6a55bb8f.js";
32
+ import "../../../icon-exit-d3f9fc80.js";
28
33
  import "../../gamification/common-header/styles.js";
29
34
  import "../../gamification/user-statistics/index.js";
30
35
  import "../../../utils/common.js";
@@ -56,7 +61,7 @@ import "../../gamification/insight-list/index.js";
56
61
  import "../../gamification/insight/index.js";
57
62
  import "../../gamification/insight/styles.js";
58
63
  import "../../gamification/insight-list/styles.js";
59
- const hr = ({ sdk: i, feature: r }) => p(() => r ? r.featureConfig.get().type === o.GAMES ? /* @__PURE__ */ t(m, { sdk: i, feature: r, children: /* @__PURE__ */ t(e, { gamification: r, sdk: i }) }) : r.featureConfig.get().type === o.HIGHLIGHTS ? /* @__PURE__ */ t(m, { sdk: i, feature: r, children: /* @__PURE__ */ t(n, { highlights: r, sdk: i }) }) : null : null, [i, r]);
64
+ const Gr = ({ sdk: i, feature: r }) => p(() => r ? r.featureConfig.get().type === o.GAMES ? /* @__PURE__ */ t(m, { sdk: i, feature: r, children: /* @__PURE__ */ t(e, { gamification: r, sdk: i }) }) : r.featureConfig.get().type === o.HIGHLIGHTS ? /* @__PURE__ */ t(m, { sdk: i, feature: r, children: /* @__PURE__ */ t(n, { highlights: r, sdk: i }) }) : null : null, [i, r]);
60
65
  export {
61
- hr as ActiveFeature
66
+ Gr as ActiveFeature
62
67
  };
@@ -8,7 +8,7 @@ import "../../notifications/notification/onboarding-inapp/index.js";
8
8
  import "../../notifications/notification/onboarding-inapp/styles.js";
9
9
  import "@linaria/react";
10
10
  import "../../notifications/notification/question-inapp/index.js";
11
- import "../../../icon-exit-6a55bb8f.js";
11
+ import "../../../icon-exit-d3f9fc80.js";
12
12
  import "../../notifications/notification/question-inapp/styles.js";
13
13
  import "../../notifications/notification/styles.js";
14
14
  import "../../notifications/styles.js";
@@ -22,20 +22,24 @@ import "@linaria/react";
22
22
  import "../show-in/index.js";
23
23
  import "./Features/Gamification/Question.js";
24
24
  import "../gamification/vote/index.js";
25
- import "../../index-7045fbb2.js";
26
- import "../gamification/vote/components/voting-option/styles.js";
25
+ import "../../index-7f3361f2.js";
26
+ import "../gamification/vote/vote-option/styles.js";
27
27
  import "../gamification/vote/styles.js";
28
- import "../gamification/vote/vote-header/index.js";
29
- import "../gamification/constants.js";
30
- import "../gamification/vote/vote-header/styles.js";
28
+ import "../gamification/vote/win-bar/index.js";
29
+ import "../timer/index.js";
30
+ import "react-countdown-circle-timer";
31
+ import "../gamification/vote/win-bar/styles.js";
31
32
  import "../icons/index.js";
33
+ import "../gamification/vote/header/index.js";
34
+ import "../gamification/constants.js";
35
+ import "../gamification/vote/header/styles.js";
32
36
  import "./Features/Gamification/Tabs.js";
33
37
  import "../gamification/tabs/index.js";
34
38
  import "../gamification/tabs/styles.js";
35
39
  import "./Features/Gamification/Leaderboard.js";
36
40
  import "../gamification/leaderboard-item-detail/index.js";
37
41
  import "../gamification/common-header/index.js";
38
- import "../../icon-exit-6a55bb8f.js";
42
+ import "../../icon-exit-d3f9fc80.js";
39
43
  import "../gamification/common-header/styles.js";
40
44
  import "../gamification/user-statistics/index.js";
41
45
  import "../../utils/common.js";
@@ -75,7 +79,7 @@ import "../navigation/button/styles.js";
75
79
  const B = ({ sdk: o }) => {
76
80
  const [, m] = k(o);
77
81
  return /* @__PURE__ */ t(S, { feature: m, sdk: o });
78
- }, Hr = ({ sdk: o, overlays: m, children: p, event: n }) => {
82
+ }, Wr = ({ sdk: o, overlays: m, children: p, event: n }) => {
79
83
  const { sdkEnabled: i, sdkReady: s, activeOverlay: r, activateAndLoadOverlay: d, enableSdk: l, disableSdk: c } = b(
80
84
  o,
81
85
  n
@@ -109,5 +113,5 @@ const B = ({ sdk: o }) => {
109
113
  ] }) });
110
114
  };
111
115
  export {
112
- Hr as MastersApp
116
+ Wr as MastersApp
113
117
  };
@@ -32,18 +32,15 @@ import "../gamification/question/styles.js";
32
32
  import "../icons/index.js";
33
33
  import "../gamification/question/list/styles.js";
34
34
  import "../gamification/vote/index.js";
35
- import "../../index-7045fbb2.js";
36
- import "../gamification/vote/components/voting-option/styles.js";
35
+ import "../../index-7f3361f2.js";
36
+ import "../gamification/vote/vote-option/styles.js";
37
37
  import "../gamification/vote/styles.js";
38
- import "../gamification/vote/components/voting-header/index.js";
39
- import "../../icon-exit-6a55bb8f.js";
40
- import "../gamification/vote/components/voting-header/components/points/index.js";
41
- import "../gamification/vote/components/voting-header/components/points/styles.js";
42
- import "../gamification/vote/components/voting-header/components/timer/index.js";
38
+ import "../gamification/vote/win-bar/index.js";
39
+ import "../timer/index.js";
43
40
  import "react-countdown-circle-timer";
44
41
  import "../theme/constants.js";
45
- import "../gamification/vote/components/voting-header/components/timer/styles.js";
46
- import "../gamification/vote/components/voting-header/styles.js";
42
+ import "../gamification/vote/win-bar/styles.js";
43
+ import "../../icon-exit-d3f9fc80.js";
47
44
  import "../gamification/onboarding/components/onboarding-slides/onboarding-instructions/index.js";
48
45
  import "../gamification/onboarding/components/onboarding-slides/onboarding-instructions/styles.js";
49
46
  import "../gamification/onboarding/components/onboarding-slides/onboarding-invite-card/index.js";
@@ -60,17 +57,17 @@ import "../gamification/leaderboard-invite-link/styles.js";
60
57
  import "../gamification/leaderboard-item/index.js";
61
58
  import "../gamification/leaderboard-item/styles.js";
62
59
  import "../gamification/leaderboard-list/styles.js";
63
- const st = ({
60
+ const pt = ({
64
61
  gamification: r,
65
62
  sdk: u
66
63
  }) => {
67
64
  var d, v, c, b, y, g, S, h, C, G, L, Q, A, E, f, w, x, P, F, O, B, D, R;
68
- const T = p(r.status), j = p(r.onboardingStatus), l = p(r.openedQuestion), { slStreamId: e } = p(u.sdkStore), o = p(r.featureSettings), [n, q] = K(a.HOME);
65
+ const T = p(r.status), j = p(r.onboardingStatus), l = p(r.openedQuestion), { slStreamId: o } = p(u.sdkStore), e = p(r.featureSettings), [n, q] = K(a.HOME);
69
66
  if (T !== J.Ready)
70
67
  return /* @__PURE__ */ t("div", { children: "wait..." });
71
- if (e != null && e.loading)
68
+ if (o != null && o.loading)
72
69
  return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t("div", { children: "Event is loading" }) });
73
- if (!(e != null && e.data))
70
+ if (!(o != null && o.data))
74
71
  return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t("div", { children: "Event is forbidden" }) });
75
72
  if (!j)
76
73
  return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(
@@ -78,16 +75,16 @@ const st = ({
78
75
  {
79
76
  closeFeature: u.closeFeature,
80
77
  gamification: r,
81
- steps: (v = (d = o.inplayGame) == null ? void 0 : d.onboarding) == null ? void 0 : v.steps,
82
- gameIcon: (y = (b = (c = o.inplayGame) == null ? void 0 : c.overview) == null ? void 0 : b.media) == null ? void 0 : y.gameIcon,
83
- sponsorLogo: (h = (S = (g = o.inplayGame) == null ? void 0 : g.overview) == null ? void 0 : S.media) == null ? void 0 : h.sponsorLogo,
84
- rules: (G = (C = o.inplayGame) == null ? void 0 : C.rules) == null ? void 0 : G.rules,
85
- rulesBtnLabel: (Q = (L = o.inplayGame) == null ? void 0 : L.rules) == null ? void 0 : Q.buttonLabel,
86
- rulesTitle: (E = (A = o.inplayGame) == null ? void 0 : A.rules) == null ? void 0 : E.heading,
87
- primaryColor: (x = (w = (f = o.inplayGame) == null ? void 0 : f.overview) == null ? void 0 : w.appearance) == null ? void 0 : x.primaryColor,
88
- inviteCardTitle: (F = (P = o.inplayGame) == null ? void 0 : P.inviteCard) == null ? void 0 : F.heading,
89
- inviteCardSubtext: (B = (O = o.inplayGame) == null ? void 0 : O.inviteCard) == null ? void 0 : B.subtext,
90
- inviteCardBtnLabel: (R = (D = o.inplayGame) == null ? void 0 : D.inviteCard) == null ? void 0 : R.buttonLabel
78
+ steps: (v = (d = e.inplayGame) == null ? void 0 : d.onboarding) == null ? void 0 : v.steps,
79
+ gameIcon: (y = (b = (c = e.inplayGame) == null ? void 0 : c.overview) == null ? void 0 : b.media) == null ? void 0 : y.gameIcon,
80
+ sponsorLogo: (h = (S = (g = e.inplayGame) == null ? void 0 : g.overview) == null ? void 0 : S.media) == null ? void 0 : h.sponsorLogo,
81
+ rules: (G = (C = e.inplayGame) == null ? void 0 : C.rules) == null ? void 0 : G.rules,
82
+ rulesBtnLabel: (Q = (L = e.inplayGame) == null ? void 0 : L.rules) == null ? void 0 : Q.buttonLabel,
83
+ rulesTitle: (E = (A = e.inplayGame) == null ? void 0 : A.rules) == null ? void 0 : E.heading,
84
+ primaryColor: (x = (w = (f = e.inplayGame) == null ? void 0 : f.overview) == null ? void 0 : w.appearance) == null ? void 0 : x.primaryColor,
85
+ inviteCardTitle: (F = (P = e.inplayGame) == null ? void 0 : P.inviteCard) == null ? void 0 : F.heading,
86
+ inviteCardSubtext: (B = (O = e.inplayGame) == null ? void 0 : O.inviteCard) == null ? void 0 : B.subtext,
87
+ inviteCardBtnLabel: (R = (D = e.inplayGame) == null ? void 0 : D.inviteCard) == null ? void 0 : R.buttonLabel
91
88
  }
92
89
  ) });
93
90
  const H = (i) => {
@@ -112,5 +109,5 @@ const st = ({
112
109
  ] });
113
110
  };
114
111
  export {
115
- st as GamificationComponent
112
+ pt as GamificationComponent
116
113
  };
@@ -28,26 +28,23 @@ import "../gamification/constants.js";
28
28
  import "../gamification/question/styles.js";
29
29
  import "../icons/index.js";
30
30
  import "../gamification/vote/index.js";
31
- import "../../index-7045fbb2.js";
32
- import "../gamification/vote/components/voting-option/styles.js";
31
+ import "../../index-7f3361f2.js";
32
+ import "../gamification/vote/vote-option/styles.js";
33
33
  import "../gamification/vote/styles.js";
34
- import "../gamification/vote/components/voting-header/index.js";
35
- import "../../icon-exit-6a55bb8f.js";
36
- import "../gamification/vote/components/voting-header/components/points/index.js";
37
- import "../gamification/vote/components/voting-header/components/points/styles.js";
38
- import "../gamification/vote/components/voting-header/components/timer/index.js";
34
+ import "../gamification/vote/win-bar/index.js";
35
+ import "../timer/index.js";
39
36
  import "react-countdown-circle-timer";
40
37
  import "../theme/constants.js";
41
- import "../gamification/vote/components/voting-header/components/timer/styles.js";
42
- import "../gamification/vote/components/voting-header/styles.js";
38
+ import "../gamification/vote/win-bar/styles.js";
43
39
  import "../gamification/insight-list/index.js";
44
40
  import "../gamification/insight/index.js";
45
41
  import "../gamification/insight/styles.js";
46
42
  import "../gamification/insight-list/styles.js";
47
43
  import "../gamification/detailed-insight/index.js";
48
44
  import "../gamification/common-header/index.js";
45
+ import "../../icon-exit-d3f9fc80.js";
49
46
  import "../gamification/detailed-insight/styles.js";
50
- const nt = ({ highlights: i, sdk: e }) => {
47
+ const mt = ({ highlights: i, sdk: e }) => {
51
48
  const n = m(i.status), r = m(i.openedInsight), { slStreamId: o } = m(e.sdkStore);
52
49
  return n !== d.Ready ? /* @__PURE__ */ t("div", { children: "wait..." }) : o != null && o.loading ? /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t("div", { children: "Event is loading" }) }) : o != null && o.data ? i.insights === void 0 ? /* @__PURE__ */ t("div", { children: "wait insights..." }) : /* @__PURE__ */ s(p, { children: [
53
50
  !r && /* @__PURE__ */ t(c, { highlights: i, store: i.insights.getStore() }),
@@ -62,5 +59,5 @@ const nt = ({ highlights: i, sdk: e }) => {
62
59
  ] }) : /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t("div", { children: "Event is forbidden" }) });
63
60
  };
64
61
  export {
65
- nt as HighlightsComponent
62
+ mt as HighlightsComponent
66
63
  };
@@ -5,17 +5,16 @@ import { useStore as n } from "@nanostores/react";
5
5
  import "react";
6
6
  import "react-auth-code-input";
7
7
  import "react-phone-number-input";
8
- import "../gamification/vote/components/voting-header/components/timer/index.js";
8
+ import "../timer/index.js";
9
+ import "@linaria/react";
9
10
  import "react-countdown-circle-timer";
10
11
  import "../theme/constants.js";
11
- import "../gamification/vote/components/voting-header/components/timer/styles.js";
12
- import "@linaria/react";
13
12
  import "../../utils/login.js";
14
13
  import "@connectrpc/connect";
15
14
  import "@connectrpc/connect-web";
16
15
  import "@streamlayer/sl-eslib/users/users_connect";
17
16
  import "../login/styles.js";
18
- const A = ({ sdk: o }) => n(o.getUserStore()).data ? /* @__PURE__ */ r("button", { onClick: o.logout, children: "logout" }) : /* @__PURE__ */ r(m, { login: async (i) => {
17
+ const j = ({ sdk: o }) => n(o.getUserStore()).data ? /* @__PURE__ */ r("button", { onClick: o.logout, children: "logout" }) : /* @__PURE__ */ r(m, { login: async (i) => {
19
18
  try {
20
19
  await o.authorizationBypass("streamlayer:streamlayer", i);
21
20
  } catch (t) {
@@ -23,5 +22,5 @@ const A = ({ sdk: o }) => n(o.getUserStore()).data ? /* @__PURE__ */ r("button",
23
22
  }
24
23
  }, anonymousLogin: o.anonymousAuthorization, host: o.host });
25
24
  export {
26
- A as LoginComponent
25
+ j as LoginComponent
27
26
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { DetailedInsight as L } from "../../gamification/detailed-insight/index.js";
3
3
  import "../../gamification/common-header/index.js";
4
- import "../../../icon-exit-6a55bb8f.js";
4
+ import "../../../icon-exit-d3f9fc80.js";
5
5
  import "../../gamification/common-header/styles.js";
6
6
  import "@linaria/react";
7
7
  import "../../gamification/detailed-insight/styles.js";
@@ -4,7 +4,7 @@ import { useState as b } from "react";
4
4
  import { LeaderboardItemDetail as f } from "../../gamification/leaderboard-item-detail/index.js";
5
5
  import { LeaderboardList as I } from "../../gamification/leaderboard-list/index.js";
6
6
  import "../../gamification/common-header/index.js";
7
- import "../../../icon-exit-6a55bb8f.js";
7
+ import "../../../icon-exit-d3f9fc80.js";
8
8
  import "../../gamification/common-header/styles.js";
9
9
  import "@linaria/react";
10
10
  import "../../gamification/user-statistics/index.js";