@streamlayer/react-ui 1.22.1 → 1.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/app/Notifications/index.js +64 -60
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.d.ts +3 -2
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +10 -12
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/styles.d.ts +5 -1
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/styles.js +1 -1
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +1 -1
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +20 -28
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.d.ts +5 -17
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.js +10 -56
- package/lib/app/masters/BetPack/BetPackContent/LoaderScreen/index.d.ts +3 -1
- package/lib/app/masters/BetPack/BetPackContent/LoaderScreen/index.js +9 -6
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +4 -8
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.d.ts +2 -3
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +18 -24
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -6
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +14 -40
- package/lib/app/masters/BetPack/BetPackContent/constants.js +1 -1
- package/lib/app/masters/BetPack/BetPackContent/index.d.ts +1 -3
- package/lib/app/masters/BetPack/BetPackContent/index.js +106 -106
- package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +9 -1
- package/lib/app/masters/BetPack/BetPackContent/styles.js +48 -10
- package/lib/app/masters/BetPack/BetPackOverlay/index.js +2 -3
- package/lib/app/masters/BetPack/index.d.ts +2 -2
- package/lib/app/masters/BetPack/index.js +60 -88
- package/lib/app/masters/BetPack/styles.d.ts +0 -1
- package/lib/app/masters/BetPack/styles.js +7 -12
- package/lib/app/masters/Features/Gamification/Tabs.js +1 -1
- package/lib/app/masters/masters.js +58 -67
- package/lib/app/masters/useSdkResponsive.d.ts +0 -2
- package/lib/app/masters/useSdkResponsive.js +0 -2
- package/lib/assets/style.css +1 -1
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +18 -16
- package/lib/ui/gamification/user-statistics/index.js +27 -25
- package/lib/ui/gamification/vote/index.js +1 -1
- package/lib/ui/theme/masters-theme.js +23 -92
- package/lib/ui/theme/theme.js +5 -5
- package/lib/{useVastAds-Dt_tRbpd.js → useVastAds-Bu_IhLJ2.js} +2 -2
- package/lib/utils/decorators/masters.js +49 -11
- package/package.json +15 -15
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +0 -4
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +0 -33
- package/lib/app/masters/useOrientation.d.ts +0 -3
- package/lib/app/masters/useOrientation.js +0 -12
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as w, Fragment as b, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { cx as V } from "@linaria/core";
|
|
3
3
|
import { useAppContext as O } from "../useAppContext.js";
|
|
4
4
|
import { scrollIntoAppView as T } from "../../useSdkScroll.js";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { r as
|
|
5
|
+
import { useState as k, useMemo as D, useEffect as h, useRef as E, useCallback as I } from "react";
|
|
6
|
+
import { r as q } from "../../../index-DALxy-8N.js";
|
|
7
7
|
import { useStore as y } from "@streamlayer/react-polyfills";
|
|
8
|
-
import { eventBus as
|
|
8
|
+
import { eventBus as R } from "@streamlayer/sdk-web-interfaces";
|
|
9
9
|
import { NotificationType as p } from "@streamlayer/sdk-web-notifications";
|
|
10
|
-
import { QuestionTypeData as
|
|
10
|
+
import { QuestionTypeData as A } from "../../../ui/gamification/constants.js";
|
|
11
11
|
import { Notification as N } from "../../../ui/gamification/question/notification/index.js";
|
|
12
|
-
import { PredictionResult as
|
|
13
|
-
import { Onboarding as
|
|
14
|
-
import { HiddenContainer as
|
|
15
|
-
const v = (
|
|
16
|
-
const [e, d] =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
import { PredictionResult as C } from "../../../ui/gamification/question/notification/prediction-result/index.js";
|
|
13
|
+
import { Onboarding as x } from "./Onboarding/index.js";
|
|
14
|
+
import { HiddenContainer as P, Container as z, InnerContainer as B, NotificationRefreshing as H, Pill as S } from "./styles.js";
|
|
15
|
+
const v = (n) => {
|
|
16
|
+
const [e, d] = k(0), i = E(null), l = D(() => new ResizeObserver((o) => {
|
|
17
|
+
window.requestAnimationFrame(() => {
|
|
18
|
+
var f;
|
|
19
|
+
if (Array.isArray(o)) {
|
|
20
|
+
for (const c of o)
|
|
21
|
+
if (c.contentBoxSize) {
|
|
22
|
+
const r = (f = i.current) == null ? void 0 : f.getBoundingClientRect();
|
|
23
|
+
r && d(r.height);
|
|
24
|
+
}
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
});
|
|
27
|
+
}), []), s = I((o) => {
|
|
24
28
|
i.current = o;
|
|
25
|
-
}, []),
|
|
29
|
+
}, []), a = I((o) => {
|
|
26
30
|
d(o);
|
|
27
31
|
}, []);
|
|
28
|
-
return
|
|
32
|
+
return h(() => {
|
|
29
33
|
const o = i.current;
|
|
30
34
|
return o ? (l.observe(o), () => {
|
|
31
35
|
l.unobserve(o);
|
|
32
36
|
}) : () => {
|
|
33
37
|
};
|
|
34
|
-
}, [
|
|
38
|
+
}, [n]), h(() => () => {
|
|
35
39
|
l.disconnect();
|
|
36
|
-
}), [s, e,
|
|
40
|
+
}), [s, e, a];
|
|
37
41
|
}, Q = ({
|
|
38
|
-
sdk:
|
|
42
|
+
sdk: n,
|
|
39
43
|
notification: e,
|
|
40
44
|
appNode: d,
|
|
41
45
|
responsiveStore: i,
|
|
@@ -47,18 +51,18 @@ const v = (r) => {
|
|
|
47
51
|
} = y(i, {
|
|
48
52
|
keys: ["sdkInDesktopView"]
|
|
49
53
|
}), {
|
|
50
|
-
sdk:
|
|
51
|
-
} = O(), [o,
|
|
52
|
-
let
|
|
53
|
-
return l || (
|
|
54
|
-
children: [/* @__PURE__ */ u(
|
|
54
|
+
sdk: a
|
|
55
|
+
} = O(), [o, f, c] = v(e.id);
|
|
56
|
+
let r = f;
|
|
57
|
+
return l || (r = "auto"), e.type === p.QUESTION ? /* @__PURE__ */ w(b, {
|
|
58
|
+
children: [/* @__PURE__ */ u(P, {
|
|
55
59
|
ref: o,
|
|
56
60
|
children: /* @__PURE__ */ u(N, {
|
|
57
61
|
...e
|
|
58
62
|
})
|
|
59
|
-
}), /* @__PURE__ */
|
|
63
|
+
}), /* @__PURE__ */ w(z, {
|
|
60
64
|
style: {
|
|
61
|
-
height: e.hiding ? 0 :
|
|
65
|
+
height: e.hiding ? 0 : r
|
|
62
66
|
},
|
|
63
67
|
hiding: e.hiding,
|
|
64
68
|
children: [/* @__PURE__ */ u(B, {
|
|
@@ -67,37 +71,37 @@ const v = (r) => {
|
|
|
67
71
|
},
|
|
68
72
|
children: /* @__PURE__ */ u(N, {
|
|
69
73
|
...e,
|
|
70
|
-
controlVideo:
|
|
74
|
+
controlVideo: a == null ? void 0 : a.controlVideoPlayer
|
|
71
75
|
})
|
|
72
76
|
}), /* @__PURE__ */ u(H, {}, e.id)]
|
|
73
77
|
})]
|
|
74
|
-
}) : e.type === p.QUESTION_RESOLVED && ((m = (t = e.data) == null ? void 0 : t.question) != null && m.predictionResult) ? /* @__PURE__ */ u(
|
|
78
|
+
}) : e.type === p.QUESTION_RESOLVED && ((m = (t = e.data) == null ? void 0 : t.question) != null && m.predictionResult) ? /* @__PURE__ */ u(C, {
|
|
75
79
|
style: {
|
|
76
|
-
height: e.hiding ? 0 :
|
|
80
|
+
height: e.hiding ? 0 : f
|
|
77
81
|
},
|
|
78
82
|
saveHeight: c,
|
|
79
83
|
close: e.close,
|
|
80
84
|
hiding: e.hiding,
|
|
81
85
|
...e.data.question
|
|
82
|
-
}) : e.type === p.ONBOARDING ? /* @__PURE__ */ u(
|
|
86
|
+
}) : e.type === p.ONBOARDING ? /* @__PURE__ */ u(x, {
|
|
83
87
|
style: {
|
|
84
|
-
height: e.hiding ? 0 :
|
|
88
|
+
height: e.hiding ? 0 : r
|
|
85
89
|
},
|
|
86
90
|
saveHeight: c,
|
|
87
|
-
sdk:
|
|
91
|
+
sdk: n,
|
|
88
92
|
notification: e,
|
|
89
93
|
sdkInDesktopView: s,
|
|
90
94
|
appNode: d,
|
|
91
95
|
responsiveStore: i
|
|
92
96
|
}) : null;
|
|
93
|
-
},
|
|
94
|
-
pill:
|
|
97
|
+
}, F = "p7vfi6t", U = ({
|
|
98
|
+
pill: n,
|
|
95
99
|
setPill: e,
|
|
96
100
|
appNode: d,
|
|
97
101
|
headerNode: i,
|
|
98
102
|
scrollNode: l,
|
|
99
103
|
responsiveStore: s,
|
|
100
|
-
scrollStore:
|
|
104
|
+
scrollStore: a
|
|
101
105
|
}) => {
|
|
102
106
|
var t, m;
|
|
103
107
|
const {
|
|
@@ -105,17 +109,17 @@ const v = (r) => {
|
|
|
105
109
|
} = y(s, {
|
|
106
110
|
keys: ["screen"]
|
|
107
111
|
}), {
|
|
108
|
-
tabsShown:
|
|
112
|
+
tabsShown: f,
|
|
109
113
|
scrollPosition: c
|
|
110
|
-
} = y(
|
|
114
|
+
} = y(a, {
|
|
111
115
|
keys: ["tabsShown", "scrollPosition"]
|
|
112
116
|
});
|
|
113
|
-
|
|
117
|
+
h(() => {
|
|
114
118
|
s.get().sdkInDesktopView ? c < 50 && e(null) : c > -50 && e(null);
|
|
115
119
|
}, [c, s, e]);
|
|
116
|
-
const
|
|
117
|
-
return !
|
|
118
|
-
title:
|
|
120
|
+
const r = s.get().sdkInDesktopView ? d : i;
|
|
121
|
+
return !n || !r.current ? null : q.createPortal(/* @__PURE__ */ u(S, {
|
|
122
|
+
title: n.type === p.QUESTION_RESOLVED ? "Prediction result" : `New ${((m = A[(t = n.data) == null ? void 0 : t.questionType]) == null ? void 0 : m.label) || "notification"}`,
|
|
119
123
|
onClick: () => {
|
|
120
124
|
var g;
|
|
121
125
|
s.get().sdkInDesktopView ? (g = l.current) == null || g.scrollTo({
|
|
@@ -125,46 +129,46 @@ const v = (r) => {
|
|
|
125
129
|
behavior: "smooth"
|
|
126
130
|
}), e(null);
|
|
127
131
|
},
|
|
128
|
-
className: V(
|
|
129
|
-
}),
|
|
132
|
+
className: V(f && F, "sl-pill-button")
|
|
133
|
+
}), r.current);
|
|
130
134
|
}, oe = ({
|
|
131
|
-
sdk:
|
|
135
|
+
sdk: n,
|
|
132
136
|
headerNode: e,
|
|
133
137
|
scrollNode: d,
|
|
134
138
|
responsiveStore: i,
|
|
135
139
|
appNode: l,
|
|
136
140
|
scrollStore: s,
|
|
137
|
-
hasActiveFeature:
|
|
141
|
+
hasActiveFeature: a
|
|
138
142
|
}) => {
|
|
139
|
-
const [o] =
|
|
140
|
-
return
|
|
141
|
-
t &&
|
|
143
|
+
const [o] = k(n.getNotificationsStore()), f = y(o), [c, r] = k(null), t = D(() => n.getActiveNotification(), [n, f]);
|
|
144
|
+
return h(() => {
|
|
145
|
+
t && R.emit("notification", {
|
|
142
146
|
action: "rendered",
|
|
143
147
|
payload: {
|
|
144
148
|
questionId: t.data.questionId,
|
|
145
149
|
questionType: t.data.questionType
|
|
146
150
|
}
|
|
147
151
|
});
|
|
148
|
-
}, [t]),
|
|
152
|
+
}, [t]), h(() => {
|
|
149
153
|
const {
|
|
150
154
|
sdkInDesktopView: m,
|
|
151
155
|
sdkInView: g
|
|
152
156
|
} = i.get();
|
|
153
|
-
t && (m || g) && (!m && g &&
|
|
154
|
-
s.get().scrollPosition !== 0 &&
|
|
157
|
+
t && (m || g) && (!m && g && r(t), m && window.requestAnimationFrame(() => {
|
|
158
|
+
s.get().scrollPosition !== 0 && r(t);
|
|
155
159
|
}));
|
|
156
|
-
}, [t]),
|
|
157
|
-
t ||
|
|
158
|
-
}, [t]), /* @__PURE__ */
|
|
160
|
+
}, [t]), h(() => {
|
|
161
|
+
t || r(null);
|
|
162
|
+
}, [t]), /* @__PURE__ */ w(b, {
|
|
159
163
|
children: [!c && t && /* @__PURE__ */ u(Q, {
|
|
160
164
|
appNode: l,
|
|
161
|
-
sdk:
|
|
162
|
-
hasActiveFeature:
|
|
165
|
+
sdk: n,
|
|
166
|
+
hasActiveFeature: a,
|
|
163
167
|
notification: t,
|
|
164
168
|
responsiveStore: i
|
|
165
|
-
}), c && /* @__PURE__ */ u(
|
|
169
|
+
}), c && /* @__PURE__ */ u(U, {
|
|
166
170
|
pill: c,
|
|
167
|
-
setPill:
|
|
171
|
+
setPill: r,
|
|
168
172
|
appNode: l,
|
|
169
173
|
notification: t,
|
|
170
174
|
headerNode: e,
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
] });
|
|
12
|
-
};
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as o } from "react";
|
|
3
|
+
import { EmergencyContainer as m, EmergencyScreenTitle as g, EmergencyScreenDescription as y, EmergencyScreenButton as l } from "./styles.js";
|
|
4
|
+
const d = ({ actionFn: n, description: c, className: t, onEvent: r }) => (o(() => {
|
|
5
|
+
r({ type: "slBetPackReady" });
|
|
6
|
+
}, [r]), /* @__PURE__ */ i(m, { className: t, children: [
|
|
7
|
+
/* @__PURE__ */ e(g, { children: "Something went wrong." }),
|
|
8
|
+
/* @__PURE__ */ e(y, { children: c }),
|
|
9
|
+
/* @__PURE__ */ e(l, { onClick: n, children: "Try again" })
|
|
10
|
+
] }));
|
|
13
11
|
export {
|
|
14
12
|
d as EmergencyScreen
|
|
15
13
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const EmergencyContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const EmergencyScreenTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
3
|
export declare const EmergencyScreenDescription: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const EmergencyScreenButton:
|
|
4
|
+
export declare const EmergencyScreenButton: {
|
|
5
|
+
__wyw_meta: unknown;
|
|
6
|
+
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown> & {
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}>;
|
|
@@ -1,46 +1,38 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { ScreenContainer as
|
|
4
|
-
import { ScreenWrap as i,
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { useState as l } from "react";
|
|
3
|
+
import { ScreenContainer as t } from "../ScreenContainer/index.js";
|
|
4
|
+
import { ScreenWrap as i, ScreenTextBlock as m, ScreenTitle as p, ScreenDescription as c, ScreenButton as o } from "../styles.js";
|
|
5
|
+
import { EndScreenSponsorIcon as h, EndScreenMedia as S } from "./styles.js";
|
|
6
|
+
const E = ({ onEvent: s, height: r }) => {
|
|
7
|
+
const [d, a] = l(
|
|
7
8
|
0
|
|
8
9
|
/* FIRST */
|
|
9
10
|
);
|
|
10
|
-
return
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */ e(
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
"As results come in we’ll send you",
|
|
16
|
-
/* @__PURE__ */ e("br", {}),
|
|
17
|
-
"live updates right here."
|
|
18
|
-
] })
|
|
11
|
+
return d === 0 ? /* @__PURE__ */ e(t, { height: r, children: /* @__PURE__ */ n(i, { children: [
|
|
12
|
+
/* @__PURE__ */ e(h, {}),
|
|
13
|
+
/* @__PURE__ */ n(m, { children: [
|
|
14
|
+
/* @__PURE__ */ e(p, { children: "Great picks!" }),
|
|
15
|
+
/* @__PURE__ */ e(c, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
|
|
19
16
|
] }),
|
|
20
17
|
/* @__PURE__ */ e(
|
|
21
|
-
|
|
18
|
+
o,
|
|
22
19
|
{
|
|
23
20
|
onClick: () => {
|
|
24
|
-
|
|
21
|
+
a(
|
|
25
22
|
1
|
|
26
23
|
/* LAST */
|
|
27
24
|
);
|
|
28
25
|
},
|
|
26
|
+
style: { marginTop: "auto " },
|
|
29
27
|
children: "Continue"
|
|
30
28
|
}
|
|
31
29
|
)
|
|
32
|
-
] }) }
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */ e("br", {}),
|
|
38
|
-
"predictions and more."
|
|
39
|
-
] })
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ e(d, { onClick: () => o({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
42
|
-
] }) }) }, "end");
|
|
30
|
+
] }) }, "end") : /* @__PURE__ */ e(t, { height: r, children: /* @__PURE__ */ n(i, { children: [
|
|
31
|
+
/* @__PURE__ */ e(S, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
|
|
32
|
+
/* @__PURE__ */ e(c, { children: "Look for more live match insights, predictions and more." }),
|
|
33
|
+
/* @__PURE__ */ e(o, { onClick: () => s({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
34
|
+
] }) }, "end");
|
|
43
35
|
};
|
|
44
36
|
export {
|
|
45
|
-
|
|
37
|
+
E as EndScreen
|
|
46
38
|
};
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const EndScreenWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const EndFirstScreenWrap: {
|
|
5
|
-
__wyw_meta: unknown;
|
|
6
|
-
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const EndLastScreenWrap: {
|
|
1
|
+
export declare const EndScreenMedia: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const EndScreenSponsorIcon: {
|
|
10
3
|
__wyw_meta: unknown;
|
|
11
|
-
} & import('react').
|
|
12
|
-
|
|
4
|
+
} & import('react').FC<{
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
className?: string;
|
|
13
7
|
}>;
|
|
14
|
-
export declare const EndScreenMain: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
15
|
-
export declare const EndScreenTitle: any;
|
|
16
|
-
export declare const EndScreenDescription: any;
|
|
17
|
-
export declare const EndLastScreenDescription: any;
|
|
18
|
-
export declare const EndScreenButton: any;
|
|
19
|
-
export declare const EndScreenMedia: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
@@ -1,61 +1,15 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const u = /* @__PURE__ */ e("div")({
|
|
5
|
-
name: "ScreenWrap",
|
|
6
|
-
class: "s8s3kc9",
|
|
7
|
-
propsAsIs: !1
|
|
8
|
-
}), t = () => o, A = /* @__PURE__ */ e(t())({
|
|
9
|
-
name: "SponsorIcon",
|
|
10
|
-
class: "s1uswib2",
|
|
11
|
-
propsAsIs: !0
|
|
12
|
-
}), n = /* @__PURE__ */ e("div")({
|
|
13
|
-
name: "EndScreenWrap",
|
|
14
|
-
class: "el0dbzn",
|
|
15
|
-
propsAsIs: !1
|
|
16
|
-
}), p = () => n, x = /* @__PURE__ */ e(p())({
|
|
17
|
-
name: "EndFirstScreenWrap",
|
|
18
|
-
class: "e11do4i1",
|
|
19
|
-
propsAsIs: !0
|
|
20
|
-
}), a = () => n, f = /* @__PURE__ */ e(a())({
|
|
21
|
-
name: "EndLastScreenWrap",
|
|
22
|
-
class: "ef67yx9",
|
|
23
|
-
propsAsIs: !0
|
|
24
|
-
}), W = /* @__PURE__ */ e("div")({
|
|
25
|
-
name: "EndScreenMain",
|
|
26
|
-
class: "enw6fxs",
|
|
27
|
-
propsAsIs: !1
|
|
28
|
-
}), i = () => r, _ = /* @__PURE__ */ e(i())({
|
|
29
|
-
name: "EndScreenTitle",
|
|
30
|
-
class: "euaws9b",
|
|
31
|
-
propsAsIs: !0
|
|
32
|
-
}), d = () => s, v = /* @__PURE__ */ e(d())({
|
|
33
|
-
name: "EndScreenDescription",
|
|
34
|
-
class: "e9uqaot",
|
|
35
|
-
propsAsIs: !0
|
|
36
|
-
}), S = () => s, D = /* @__PURE__ */ e(S())({
|
|
37
|
-
name: "EndLastScreenDescription",
|
|
38
|
-
class: "etyeg2m",
|
|
39
|
-
propsAsIs: !0
|
|
40
|
-
}), l = () => c, L = /* @__PURE__ */ e(l())({
|
|
41
|
-
name: "EndScreenButton",
|
|
42
|
-
class: "e177v9in",
|
|
43
|
-
propsAsIs: !0
|
|
44
|
-
}), M = /* @__PURE__ */ e("img")({
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
import { SponsorIcon as e } from "../styles.js";
|
|
3
|
+
const c = /* @__PURE__ */ s("img")({
|
|
45
4
|
name: "EndScreenMedia",
|
|
46
|
-
class: "
|
|
5
|
+
class: "e8s3kc9",
|
|
47
6
|
propsAsIs: !1
|
|
7
|
+
}), n = () => e, p = /* @__PURE__ */ s(n())({
|
|
8
|
+
name: "EndScreenSponsorIcon",
|
|
9
|
+
class: "e1uswib2",
|
|
10
|
+
propsAsIs: !0
|
|
48
11
|
});
|
|
49
12
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
f as EndLastScreenWrap,
|
|
53
|
-
L as EndScreenButton,
|
|
54
|
-
v as EndScreenDescription,
|
|
55
|
-
W as EndScreenMain,
|
|
56
|
-
M as EndScreenMedia,
|
|
57
|
-
_ as EndScreenTitle,
|
|
58
|
-
n as EndScreenWrap,
|
|
59
|
-
u as ScreenWrap,
|
|
60
|
-
A as SponsorIcon
|
|
13
|
+
c as EndScreenMedia,
|
|
14
|
+
p as EndScreenSponsorIcon
|
|
61
15
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { styled as
|
|
3
|
-
import { Loader as
|
|
4
|
-
const
|
|
2
|
+
import { styled as e } from "@linaria/react";
|
|
3
|
+
import { Loader as t } from "../../../../../ui/loader/index.js";
|
|
4
|
+
const s = /* @__PURE__ */ e("div")({
|
|
5
5
|
name: "Container",
|
|
6
6
|
class: "cv31tt7",
|
|
7
7
|
propsAsIs: !1
|
|
8
|
-
}),
|
|
9
|
-
|
|
8
|
+
}), m = ({
|
|
9
|
+
className: r
|
|
10
|
+
}) => /* @__PURE__ */ o(s, {
|
|
11
|
+
className: r,
|
|
12
|
+
children: /* @__PURE__ */ o(t, {})
|
|
10
13
|
});
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
m as LoaderScreen
|
|
13
16
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ScreenContainerBox as
|
|
3
|
-
|
|
4
|
-
const s = ({ children: o, height: r }) => {
|
|
5
|
-
const { container: e, fontSize: t } = c(r);
|
|
6
|
-
return /* @__PURE__ */ n(i, { style: { height: r, fontSize: t }, ref: e, children: /* @__PURE__ */ n("div", { children: o }) });
|
|
7
|
-
};
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ScreenContainerBox as o } from "./styles.js";
|
|
3
|
+
const i = ({ children: n, height: r }) => /* @__PURE__ */ e(o, { className: "ScreenContainer", children: /* @__PURE__ */ e("div", { style: r ? { height: r } : {}, children: n }) });
|
|
8
4
|
export {
|
|
9
|
-
|
|
5
|
+
i as ScreenContainer
|
|
10
6
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare const StartScreen:
|
|
2
|
-
height: number | undefined;
|
|
1
|
+
export declare const StartScreen: import('react').ForwardRefExoticComponent<{
|
|
3
2
|
countQuestionsAvailable: number;
|
|
4
3
|
sliderRef: React.MutableRefObject<null>;
|
|
5
|
-
}
|
|
4
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,36 +1,30 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ e("br", {}),
|
|
12
|
-
"predictions for today’s play."
|
|
13
|
-
] })
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { ScreenContainer as s } from "../ScreenContainer/index.js";
|
|
4
|
+
import { ScreenWrap as l, SponsorIcon as a, ScreenTextBlock as S, ScreenTitle as h, ScreenDescription as d, ScreenButton as m } from "../styles.js";
|
|
5
|
+
import { StartScreenSponsor as p, NextButton as f, IconArrowRight as x, StartScreenNote as u } from "./styles.js";
|
|
6
|
+
const N = c(({ countQuestionsAvailable: o, sliderRef: n }, i) => /* @__PURE__ */ e(s, { children: /* @__PURE__ */ r(l, { ref: i, children: [
|
|
7
|
+
/* @__PURE__ */ e(a, {}),
|
|
8
|
+
/* @__PURE__ */ r(S, { children: [
|
|
9
|
+
/* @__PURE__ */ e(p, { children: "FEATURED GROUPS+" }),
|
|
10
|
+
/* @__PURE__ */ e(h, { children: "The First Five" })
|
|
14
11
|
] }),
|
|
12
|
+
/* @__PURE__ */ e(d, { children: "Tee off with these five initial predictions for today’s play." }),
|
|
15
13
|
/* @__PURE__ */ r(
|
|
16
|
-
|
|
14
|
+
m,
|
|
17
15
|
{
|
|
18
16
|
onClick: () => {
|
|
19
|
-
var
|
|
20
|
-
(
|
|
17
|
+
var t;
|
|
18
|
+
(t = n.current) == null || t.slickNext();
|
|
21
19
|
},
|
|
22
20
|
children: [
|
|
23
|
-
|
|
24
|
-
/* @__PURE__ */ e(
|
|
21
|
+
o ? `${o} questions available` : "See all questions",
|
|
22
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(x, { name: "iconArrowRight" }) })
|
|
25
23
|
]
|
|
26
24
|
}
|
|
27
25
|
),
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
/* @__PURE__ */ e("br", {}),
|
|
31
|
-
"resolved as a result of today’s play."
|
|
32
|
-
] })
|
|
33
|
-
] }) }, "start");
|
|
26
|
+
/* @__PURE__ */ e(u, { children: "Note: Some questions may have been resolved as a result of today’s play." })
|
|
27
|
+
] }) }, "start"));
|
|
34
28
|
export {
|
|
35
|
-
|
|
29
|
+
N as StartScreen
|
|
36
30
|
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const Main: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
1
|
+
export declare const NextButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
3
2
|
export declare const IconArrowRight: any;
|
|
4
|
-
export declare const SponsorIcon: any;
|
|
5
3
|
export declare const StartScreenSponsor: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
-
export declare const StartScreenTitle: any;
|
|
7
|
-
export declare const StartScreenDescription: any;
|
|
8
|
-
export declare const StartScreenButton: any;
|
|
9
4
|
export declare const StartScreenNote: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|