@streamlayer/react 0.0.1-debug.1

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 (106) hide show
  1. package/README.md +6 -0
  2. package/lib/app/advertisement.d.ts +19 -0
  3. package/lib/app/app.d.ts +23 -0
  4. package/lib/app/auth.d.ts +4 -0
  5. package/lib/app/bet-pack.d.ts +10 -0
  6. package/lib/app/event.d.ts +6 -0
  7. package/lib/app/insight.d.ts +13 -0
  8. package/lib/app/masters.d.ts +23 -0
  9. package/lib/app/notification.d.ts +5 -0
  10. package/lib/app/pause-ad.d.ts +38 -0
  11. package/lib/app/points.d.ts +3 -0
  12. package/lib/app/provider.d.ts +49 -0
  13. package/lib/app/useStreamLayerApp.d.ts +23 -0
  14. package/lib/cjs/advertisement.js +219 -0
  15. package/lib/cjs/auth.js +1 -0
  16. package/lib/cjs/bet-pack.js +1 -0
  17. package/lib/cjs/gamification-feature.js +1 -0
  18. package/lib/cjs/gamification-feature2.js +1 -0
  19. package/lib/cjs/index-l-eyvmpL.js +5 -0
  20. package/lib/cjs/index.js +1 -0
  21. package/lib/cjs/index2.js +5 -0
  22. package/lib/cjs/insight.js +1 -0
  23. package/lib/cjs/masters.js +1 -0
  24. package/lib/cjs/masters2.js +13 -0
  25. package/lib/cjs/notification.js +1 -0
  26. package/lib/cjs/pause-ad.js +1 -0
  27. package/lib/cjs/points.js +1 -0
  28. package/lib/cjs/provider.js +84 -0
  29. package/lib/cjs/useStreamLayerApp.js +1 -0
  30. package/lib/cjs/useStreamLayerApp2.js +16 -0
  31. package/lib/cjs/vast-client.min-B0NUra1B.js +1 -0
  32. package/lib/classic/app/advertisement.d.ts +19 -0
  33. package/lib/classic/app/app.d.ts +23 -0
  34. package/lib/classic/app/auth.d.ts +4 -0
  35. package/lib/classic/app/bet-pack.d.ts +10 -0
  36. package/lib/classic/app/event.d.ts +6 -0
  37. package/lib/classic/app/insight.d.ts +13 -0
  38. package/lib/classic/app/masters.d.ts +23 -0
  39. package/lib/classic/app/notification.d.ts +5 -0
  40. package/lib/classic/app/pause-ad.d.ts +38 -0
  41. package/lib/classic/app/points.d.ts +3 -0
  42. package/lib/classic/app/provider.d.ts +49 -0
  43. package/lib/classic/app/useStreamLayerApp.d.ts +23 -0
  44. package/lib/classic/cjs/advertisement.js +219 -0
  45. package/lib/classic/cjs/auth.js +1 -0
  46. package/lib/classic/cjs/bet-pack.js +5 -0
  47. package/lib/classic/cjs/gamification-feature.js +1 -0
  48. package/lib/classic/cjs/index-l-eyvmpL.js +5 -0
  49. package/lib/classic/cjs/index.js +1 -0
  50. package/lib/classic/cjs/insight.js +1 -0
  51. package/lib/classic/cjs/notification.js +1 -0
  52. package/lib/classic/cjs/pause-ad.js +1 -0
  53. package/lib/classic/cjs/points.js +1 -0
  54. package/lib/classic/cjs/provider.js +68 -0
  55. package/lib/classic/cjs/useStreamLayerApp.js +1 -0
  56. package/lib/classic/cjs/useStreamLayerApp2.js +16 -0
  57. package/lib/classic/cjs/vast-client.min-B0NUra1B.js +1 -0
  58. package/lib/classic/es/advertisement.js +34410 -0
  59. package/lib/classic/es/auth.js +11 -0
  60. package/lib/classic/es/bet-pack.js +3427 -0
  61. package/lib/classic/es/gamification-feature.js +4 -0
  62. package/lib/classic/es/index-l-eyvmpL.js +3758 -0
  63. package/lib/classic/es/index.js +19 -0
  64. package/lib/classic/es/insight.js +82 -0
  65. package/lib/classic/es/notification.js +1008 -0
  66. package/lib/classic/es/pause-ad.js +253 -0
  67. package/lib/classic/es/points.js +76 -0
  68. package/lib/classic/es/provider.js +7264 -0
  69. package/lib/classic/es/useStreamLayerApp.js +5 -0
  70. package/lib/classic/es/useStreamLayerApp2.js +8282 -0
  71. package/lib/classic/es/vast-client.min-B0NUra1B.js +1060 -0
  72. package/lib/classic/index.d.ts +5 -0
  73. package/lib/classic/masters.d.ts +8 -0
  74. package/lib/dist/cjs/gamification-feature.js +1 -0
  75. package/lib/dist/cjs/gamification-feature2.js +1 -0
  76. package/lib/dist/cjs/index.js +1 -0
  77. package/lib/dist/cjs/masters.js +76 -0
  78. package/lib/dist/cjs/package.json +1 -0
  79. package/lib/dist/es/gamification-feature.js +4 -0
  80. package/lib/dist/es/gamification-feature2.js +285 -0
  81. package/lib/dist/es/index.js +15 -0
  82. package/lib/dist/es/masters.js +18614 -0
  83. package/lib/dist/es/package.json +1 -0
  84. package/lib/dist/style.css +1 -0
  85. package/lib/es/advertisement.js +34410 -0
  86. package/lib/es/auth.js +11 -0
  87. package/lib/es/bet-pack.js +19 -0
  88. package/lib/es/gamification-feature.js +4 -0
  89. package/lib/es/gamification-feature2.js +4 -0
  90. package/lib/es/index-l-eyvmpL.js +3758 -0
  91. package/lib/es/index.js +19 -0
  92. package/lib/es/index2.js +3415 -0
  93. package/lib/es/insight.js +82 -0
  94. package/lib/es/masters.js +9 -0
  95. package/lib/es/masters2.js +873 -0
  96. package/lib/es/notification.js +1008 -0
  97. package/lib/es/pause-ad.js +253 -0
  98. package/lib/es/points.js +76 -0
  99. package/lib/es/provider.js +7685 -0
  100. package/lib/es/useStreamLayerApp.js +5 -0
  101. package/lib/es/useStreamLayerApp2.js +8282 -0
  102. package/lib/es/vast-client.min-B0NUra1B.js +1060 -0
  103. package/lib/index.d.ts +5 -0
  104. package/lib/masters.d.ts +8 -0
  105. package/lib/style.css +1 -0
  106. package/package.json +158 -0
@@ -0,0 +1,873 @@
1
+ import { jsx as s, jsxs as h, Fragment as x } from "react/jsx-runtime";
2
+ import { s as c, k as Y, f as m, A as N, F as a2, v as l2, w as d2, x as c2, z as p2, p as C2, C as u2, D as m2, G as f2, H as h2, I as j, J as P, n as A, B as X, K as g2, L as v2, M as E2, e as L2, N as w, P as M, Q as S2, R as _2, U as T2, V as b, W as z, r as J, X as e2, m as F, Y as N2, S as I2, a as b2, Z as R2, _ as A2 } from "./provider.js";
3
+ import V from "lodash.throttle";
4
+ import { useRef as I, useState as _, useEffect as v, createContext as y2, useContext as n2, lazy as k2, useMemo as y, Suspense as w2, forwardRef as x2, useLayoutEffect as D2, useCallback as $, Component as F2 } from "react";
5
+ import { n as O2 } from "./index2.js";
6
+ import "nanostores";
7
+ import { Q as B2, S as k } from "./useStreamLayerApp2.js";
8
+ import { createPortal as V2 } from "react-dom";
9
+ const $2 = /* @__PURE__ */ c("div")({
10
+ name: "SDKContainer",
11
+ class: "s8zgqze",
12
+ propsAsIs: !1
13
+ }), H2 = "m6t897k", P2 = /* @__PURE__ */ c("div")({
14
+ name: "SDKScrollContainer",
15
+ class: "sw7pkvp",
16
+ propsAsIs: !1
17
+ }), t2 = /* @__PURE__ */ c("div")({
18
+ name: "SDKContentContainer",
19
+ class: "s14gkn7u",
20
+ propsAsIs: !1
21
+ }), U2 = () => t2, G2 = /* @__PURE__ */ c(U2())({
22
+ name: "SDKWhiteContainer",
23
+ class: "s1yxstm9",
24
+ propsAsIs: !0
25
+ }), M2 = /* @__PURE__ */ c("div")({
26
+ name: "TabsContainer",
27
+ class: "tdpty1s",
28
+ propsAsIs: !1
29
+ }), z2 = /* @__PURE__ */ c("div")({
30
+ name: "UserSummaryContainer",
31
+ class: "u136a59y",
32
+ propsAsIs: !1
33
+ }), s2 = (n, e, t) => {
34
+ var i;
35
+ (i = n.current) == null || i.scrollTo({
36
+ top: 0,
37
+ ...t
38
+ });
39
+ }, K2 = 15, q2 = (n, e, t) => {
40
+ const i = I(null), o = I(0), [a] = _(
41
+ Y({
42
+ scrollPosition: 0,
43
+ tabsShown: !1,
44
+ scrollDirection: "forward"
45
+ })
46
+ ), r = m(e);
47
+ return v(() => {
48
+ const d = window.innerWidth < N.lg && !t ? window : i.current;
49
+ if (!d)
50
+ return () => {
51
+ };
52
+ const l = V((C) => {
53
+ var u;
54
+ const p = C.target;
55
+ if (!p)
56
+ return;
57
+ let f = 0;
58
+ r.screen.size < N.lg && !t ? f = ((u = n.current) == null ? void 0 : u.getBoundingClientRect().y) || 0 : f = p.scrollTop;
59
+ const E = o.current - f;
60
+ if (K2 > Math.abs(E))
61
+ return;
62
+ const S = o.current < f ? "forward" : "backward";
63
+ o.current = f, a.set({
64
+ scrollPosition: Math.round(f),
65
+ scrollDirection: S,
66
+ tabsShown: a.get().tabsShown
67
+ });
68
+ }, 200);
69
+ return l({ target: d }), d.addEventListener("scroll", l), () => {
70
+ d.removeEventListener("scroll", l);
71
+ };
72
+ }, [a, n, r.screen, t]), [i, a];
73
+ }, O = /* @__PURE__ */ c("div")({
74
+ name: "LoadingContainer",
75
+ class: "l7wseip",
76
+ propsAsIs: !1
77
+ }), Q2 = ({
78
+ feature: n,
79
+ sdk: e,
80
+ children: t,
81
+ className: i,
82
+ noWait: o
83
+ }) => {
84
+ const a = m(n.status), r = m(e.sdkStore.slStreamId);
85
+ if (!o) {
86
+ if (r != null && r.loading && !r.data)
87
+ return /* @__PURE__ */ s(O, {
88
+ className: i,
89
+ children: "Event is loading..."
90
+ });
91
+ if (!(r != null && r.data))
92
+ return /* @__PURE__ */ s(O, {
93
+ className: i,
94
+ children: "Event is forbidden..."
95
+ });
96
+ if (a !== a2.Ready)
97
+ return /* @__PURE__ */ s(O, {
98
+ className: i,
99
+ children: "Wait feature..."
100
+ });
101
+ }
102
+ return t;
103
+ }, i2 = y2({
104
+ sdk: null
105
+ }), U = () => n2(i2), Z2 = /* @__PURE__ */ c("div")({
106
+ name: "QuestionContainer",
107
+ class: "qwgkhsv",
108
+ propsAsIs: !1
109
+ }), W2 = ({
110
+ openedQuestion: n
111
+ }) => {
112
+ var e, t;
113
+ const {
114
+ sdk: i
115
+ } = U();
116
+ return ((e = n == null ? void 0 : n.attributes) == null ? void 0 : e.attributes.case) === "insight" ? /* @__PURE__ */ s(c2, {
117
+ ...n.attributes.attributes.value,
118
+ controlVideo: i == null ? void 0 : i.controlVideoPlayer
119
+ }) : ((t = n == null ? void 0 : n.attributes) == null ? void 0 : t.attributes.case) === "tweet" ? /* @__PURE__ */ s(p2, {
120
+ ...n.attributes.attributes.value,
121
+ controlVideo: i == null ? void 0 : i.controlVideoPlayer
122
+ }) : null;
123
+ }, Y2 = ({
124
+ extendedQuestion: n,
125
+ vote: e,
126
+ close: t
127
+ }) => {
128
+ const {
129
+ loading: i,
130
+ data: o
131
+ } = n;
132
+ return o ? /* @__PURE__ */ s(C2, {
133
+ vote: e,
134
+ close: t,
135
+ openedQuestion: o,
136
+ isLoading: !!i,
137
+ mastersApp: !0
138
+ }) : /* @__PURE__ */ s(u2, {});
139
+ }, j2 = ({
140
+ gamification: n
141
+ }) => {
142
+ var e;
143
+ const t = m(n.openedQuestion.$store), i = m(n.openedQuestion.$extendedStore);
144
+ if (!t)
145
+ return null;
146
+ const o = t.type;
147
+ return /* @__PURE__ */ h(Z2, {
148
+ children: [/* @__PURE__ */ s(l2, {
149
+ close: n.closeQuestion,
150
+ type: ((e = t.attributes) == null ? void 0 : e.type) || B2.UNSET,
151
+ mastersApp: !0
152
+ }), o === "question" && /* @__PURE__ */ s(Y2, {
153
+ vote: n.submitAnswer,
154
+ close: n.closeQuestion,
155
+ extendedQuestion: i
156
+ }), o !== "question" && /* @__PURE__ */ s(W2, {
157
+ openedQuestion: t
158
+ }), /* @__PURE__ */ s(d2, {
159
+ mastersApp: !0
160
+ })]
161
+ });
162
+ }, X2 = ({ store: n, openQuestion: e }) => {
163
+ const { sdk: t } = U(), i = m(n);
164
+ return /* @__PURE__ */ s(m2, { openQuestion: e, questions: i.data, controlVideo: t == null ? void 0 : t.controlVideoPlayer });
165
+ }, J2 = ({ userSummary: n }) => {
166
+ var e;
167
+ const t = m(n.$store);
168
+ return /* @__PURE__ */ s(
169
+ f2,
170
+ {
171
+ hideFriendsRank: !0,
172
+ loading: !(t != null && t.summary),
173
+ ...t == null ? void 0 : t.summary,
174
+ successRate: (e = t == null ? void 0 : t.percentage) == null ? void 0 : e.correct
175
+ }
176
+ );
177
+ }, e0 = ({ gamification: n, className: e, style: t }) => /* @__PURE__ */ h(M2, { className: e, style: t, children: [
178
+ /* @__PURE__ */ s(G2, { style: { paddingTop: "16px" }, children: /* @__PURE__ */ s(z2, { children: /* @__PURE__ */ s(J2, { userSummary: n.userSummary }) }) }),
179
+ /* @__PURE__ */ s(t2, { style: { flex: 1 }, children: /* @__PURE__ */ s(X2, { openQuestion: n.openQuestion, store: n.feedList.getStore() }) })
180
+ ] }), n0 = () => P, t0 = /* @__PURE__ */ c(n0())({
181
+ name: "OpenedContainer",
182
+ class: "o1seszvt",
183
+ propsAsIs: !0
184
+ }), r1 = ({
185
+ gamification: n,
186
+ className: e
187
+ }) => /* @__PURE__ */ s(e0, {
188
+ className: e,
189
+ gamification: n
190
+ }), s0 = `
191
+ .SDKContainer {
192
+ position: static !important;
193
+ }
194
+ `, i0 = ({
195
+ gamification: n,
196
+ responsiveStore: e,
197
+ useContainer: t,
198
+ className: i,
199
+ appNode: o
200
+ }) => {
201
+ const a = m(n.openedQuestion.$store), {
202
+ sdkInDesktopView: r
203
+ } = m(e, {
204
+ keys: ["sdkInDesktopView"]
205
+ }), {
206
+ hiding: d,
207
+ onAnimationEnd: l
208
+ } = h2();
209
+ return !o.current || !a ? null : /* @__PURE__ */ s(j, {
210
+ container: o,
211
+ useContainer: typeof t == "boolean" ? !t : !r,
212
+ staticStyles: typeof t == "boolean" ? s0 : "",
213
+ children: /* @__PURE__ */ s(t0, {
214
+ className: i,
215
+ hiding: d,
216
+ onAnimationEnd: l,
217
+ children: /* @__PURE__ */ s(j2, {
218
+ gamification: n
219
+ })
220
+ })
221
+ });
222
+ }, o0 = k2(() => import("./gamification-feature2.js")), r0 = ({ sdk: n, feature: e, className: t }) => {
223
+ const i = y(() => e && e.featureConfig.get().type === k.GAMES ? /* @__PURE__ */ s(Q2, { className: t, sdk: n, feature: e, children: /* @__PURE__ */ s(o0, { className: t, gamification: e }) }) : null, [n, e, t]);
224
+ return /* @__PURE__ */ s(
225
+ w2,
226
+ {
227
+ fallback: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
228
+ children: i
229
+ }
230
+ );
231
+ }, a0 = ({ feature: n, className: e, useContainer: t, appNode: i, responsiveStore: o }) => n && n.featureConfig.get().type === k.GAMES ? /* @__PURE__ */ s(
232
+ i0,
233
+ {
234
+ responsiveStore: o,
235
+ className: e,
236
+ appNode: i,
237
+ useContainer: t,
238
+ gamification: n
239
+ }
240
+ ) : null, l0 = /* @__PURE__ */ c("div")({
241
+ name: "Navigation",
242
+ class: "n1o1tw60",
243
+ propsAsIs: !1
244
+ }), d0 = /* @__PURE__ */ c("div")({
245
+ name: "Container",
246
+ class: "co2rstw",
247
+ propsAsIs: !1
248
+ }), c0 = /* @__PURE__ */ c("div")({
249
+ name: "Title",
250
+ class: "t1bqnx9c",
251
+ propsAsIs: !1
252
+ }), p0 = "hlc2pcy", C0 = x2(({
253
+ className: n
254
+ }, e) => /* @__PURE__ */ h(l0, {
255
+ className: A(n, p0),
256
+ children: [/* @__PURE__ */ s(d0, {
257
+ children: /* @__PURE__ */ h(c0, {
258
+ children: [/* @__PURE__ */ s(X, {
259
+ name: "fgIcon"
260
+ }), "FG+ Game Center", " "]
261
+ })
262
+ }), /* @__PURE__ */ s("div", {
263
+ ref: e
264
+ })]
265
+ })), u0 = /* @__PURE__ */ c("div")({
266
+ name: "Container",
267
+ class: "czz4rjk",
268
+ propsAsIs: !1
269
+ }), m0 = /* @__PURE__ */ c("div")({
270
+ name: "CloseIconWrap",
271
+ class: "cxmojsy",
272
+ propsAsIs: !1
273
+ }), f0 = () => X, h0 = /* @__PURE__ */ c(f0())({
274
+ name: "CloseIcon",
275
+ class: "c1urm3yx",
276
+ propsAsIs: !0
277
+ }), g0 = /* @__PURE__ */ c("div")({
278
+ name: "Title",
279
+ class: "tme976v",
280
+ propsAsIs: !1
281
+ }), v0 = /* @__PURE__ */ c("img")({
282
+ name: "SponsorLogo",
283
+ class: "s1lal9yz",
284
+ propsAsIs: !1
285
+ }), E0 = /* @__PURE__ */ c("div")({
286
+ name: "PresentsTitle",
287
+ class: "pnn1sv1",
288
+ propsAsIs: !1
289
+ }), L0 = /* @__PURE__ */ c("div")({
290
+ name: "Subtitle",
291
+ class: "s1hjj1y8",
292
+ propsAsIs: !1
293
+ }), S0 = /* @__PURE__ */ c("div")({
294
+ name: "Description",
295
+ class: "dz7yjzw",
296
+ propsAsIs: !1
297
+ }), _0 = /* @__PURE__ */ c("button")({
298
+ name: "ActionButton",
299
+ class: "avpowqk",
300
+ propsAsIs: !1
301
+ }), K = ({ close: n, action: e, onboarding: t }) => {
302
+ var i, o, a, r, d, l, C, u;
303
+ return /* @__PURE__ */ h(u0, { children: [
304
+ /* @__PURE__ */ s(m0, { onClick: n, children: /* @__PURE__ */ s(h0, { name: "icon-cross" }) }),
305
+ ((o = (i = t == null ? void 0 : t.titleCard) == null ? void 0 : i.media) == null ? void 0 : o.sponsorLogo) && /* @__PURE__ */ h(g0, { children: [
306
+ /* @__PURE__ */ s(v0, { alt: "sponsor-logo", src: (r = (a = t == null ? void 0 : t.titleCard) == null ? void 0 : a.media) == null ? void 0 : r.sponsorLogo }),
307
+ /* @__PURE__ */ s(E0, { children: "PRESENTS" })
308
+ ] }),
309
+ ((d = t == null ? void 0 : t.titleCard) == null ? void 0 : d.title) && /* @__PURE__ */ s(L0, { children: (l = t == null ? void 0 : t.titleCard) == null ? void 0 : l.title }),
310
+ ((C = t == null ? void 0 : t.titleCard) == null ? void 0 : C.subtitle) && /* @__PURE__ */ s(S0, { children: (u = t == null ? void 0 : t.titleCard) == null ? void 0 : u.subtitle }),
311
+ /* @__PURE__ */ s(_0, { onClick: e, children: "Play Now" })
312
+ ] });
313
+ }, T0 = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200%2092%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1701%200.953996C13.9047%200.873145%2013.6393%201.0177%2013.3739%201.1647C13.2797%201.21615%2013.2127%201.3068%2013.1904%201.4097L12.7736%203.33298C12.7588%203.40404%2012.8233%203.46774%2012.8952%203.45304C13.3342%203.35504%2013.7509%202.97528%2014.19%203.10758C14.6811%203.25703%2015.1722%202.64207%2015.6634%202.64942V0.429688C15.1698%200.432138%2014.6613%201.10345%2014.1701%200.953996Z'%20fill='%23006747'/%3e%3cpath%20d='M20.4404%206.84786C20.3362%206.77681%2020.2717%206.66166%2020.2717%206.53671V6.18635C20.2717%205.87275%2020.0138%205.61549%2019.6938%205.61549H19.4631C19.1878%205.61549%2018.9348%205.75269%2018.7859%205.98055L18.0418%207.11492C17.9674%207.22762%2017.8434%207.29377%2017.7094%207.29377H17.2084C16.9603%207.29377%2016.7321%207.42852%2016.6131%207.64412C16.4915%207.86708%2016.2757%208.02143%2016.0302%208.07288V0.181303C16.0302%200.0808513%2015.9483%200%2015.8466%200C15.7449%200%2015.663%200.0808513%2015.663%200.181303V0.426307V2.64604V8.07778C15.4175%208.02633%2015.2017%207.87198%2015.0801%207.64657C14.9636%207.43097%2014.7354%207.29622%2014.4848%207.29622H14.1475C13.8796%207.29622%2013.639%207.45057%2013.5298%207.69312L13.2496%208.31299C13.2049%208.41099%2013.1057%208.47469%2012.9965%208.47469C12.8874%208.47469%2012.7882%208.41099%2012.7435%208.31299L12.4633%207.69312C12.3541%207.45302%2012.1135%207.29622%2011.8456%207.29622H2.33802C2.26113%207.29622%202.19911%207.35747%202.19911%207.43342C2.19911%207.59512%202.06517%207.72498%201.90394%207.72498H1.49218C1.41529%207.72498%201.35328%207.78623%201.35328%207.86218V8.33504C1.35328%208.77849%201.26646%209.2097%201.09283%209.61886L0.842303%2010.2142C0.60914%2010.7655%200.5%2011.3363%200.5%2011.8974V13.2694C0.5%2013.6394%200.55457%2014.0142%200.66371%2014.3793C0.968807%2015.4034%201.66334%2016.2413%202.61831%2016.7362L4.13883%2017.5276C4.15868%2017.5374%204.181%2017.5423%204.20332%2017.5423L5.32697%2017.5521C5.5899%2017.5545%205.84787%2017.6207%206.07855%2017.7481L6.6813%2018.0813C6.70115%2018.0935%206.72595%2018.0984%206.75076%2018.0984H7.5569C7.83968%2018.0984%208.11997%2018.1744%208.36057%2018.3189C8.36057%2018.3189%208.75497%2018.5566%208.88891%2018.6326C9.10223%2018.7551%209.3602%2018.8727%209.80916%2018.8972C9.91086%2018.9021%2010.0126%2018.8653%2010.0895%2018.7943C10.1639%2018.7232%2010.2085%2018.6228%2010.2085%2018.5223V17.9882C10.2085%2017.6011%2010.4392%2017.2483%2010.7989%2017.0939L12.0317%2016.5598C12.2003%2016.4863%2012.3888%2016.4741%2012.5649%2016.528L13.0263%2016.6627C13.2223%2016.7191%2013.4306%2016.7215%2013.6266%2016.6627L14.718%2016.3418C14.8619%2016.3001%2015.0156%2016.3001%2015.162%2016.3442L15.606%2016.4667C15.8119%2016.5231%2015.9582%2016.7142%2015.9582%2016.9249V17.9931C15.9582%2018.4905%2016.3675%2018.8972%2016.871%2018.8972C17.2481%2018.8972%2017.578%2018.6595%2017.6921%2018.3042C17.8979%2017.6648%2018.0021%2016.9984%2018.0021%2016.3271V15.8714C18.0021%2015.548%2018.1385%2015.2368%2018.3767%2015.0138L18.8306%2014.59C19.1357%2014.3033%2019.3118%2013.8966%2019.3118%2013.4801V10.9468C19.3118%2010.5548%2019.4309%2010.175%2019.6591%209.85161C19.6764%209.82956%2019.6839%209.80016%2019.6839%209.77321V9.1754C19.6839%208.78584%2019.8029%208.40854%2020.0262%208.08758L20.4751%207.44322C20.4925%207.42117%2020.4999%207.39422%2020.4999%207.36482V6.96056C20.5024%206.88461%2020.4553%206.85766%2020.4404%206.84786ZM16.0302%2012.8554C16.3352%2012.9019%2016.5634%2013.0563%2016.5634%2013.2425C16.5634%2013.4287%2016.3377%2013.583%2016.0302%2013.6296V12.8554ZM2.98046%2016.6137L2.74978%2016.4937C2.12222%2016.1678%201.62117%2015.6827%201.27886%2015.0922V14.3523C1.67078%2014.9134%202.20407%2015.3912%202.85644%2015.7317L2.98046%2015.7954V16.6137ZM4.14131%2017.2189L3.52616%2016.9004V16.0821L4.13883%2016.4006H4.14131V17.2189ZM6.70115%2017.775L6.21498%2017.5055C5.94957%2017.3585%205.65191%2017.2801%205.34682%2017.2752V16.4226C5.6023%2016.4275%205.85531%2016.4937%206.07855%2016.6162L6.6813%2016.9494C6.68626%2016.9518%206.6937%2016.9518%206.70115%2016.9543V17.775ZM9.92822%2017.9882V18.4047V18.5223C9.92822%2018.5493%209.91582%2018.5762%209.89598%2018.5958C9.87613%2018.6154%209.85133%2018.6228%209.82404%2018.6228C9.43461%2018.6032%209.21137%2018.5027%209.0303%2018.3973C8.89883%2018.3214%208.50692%2018.0862%208.50444%2018.0862C8.25887%2017.9392%207.98106%2017.8583%207.69581%2017.8363V16.9788C7.92897%2017.0008%208.15718%2017.0694%208.36057%2017.1895L8.7004%2017.3904C9.07246%2017.6109%209.49662%2017.7358%209.92822%2017.7603V17.9882ZM13.2868%2016.4275C13.2272%2016.4251%2013.1652%2016.4153%2013.1057%2016.3981L12.6443%2016.2609C12.5451%2016.2315%2012.4434%2016.2217%2012.3417%2016.2217V15.3667C12.4161%2015.3667%2012.4905%2015.374%2012.5649%2015.3961L13.0263%2015.5308C13.1107%2015.5553%2013.1999%2015.5676%2013.2868%2015.5725V16.4275ZM16.1765%2016.6333C16.0872%2016.4275%2015.9111%2016.2634%2015.6854%2016.2021L15.2438%2016.0796C15.1397%2016.0478%2015.0305%2016.0355%2014.9214%2016.0355V15.1829C15.0057%2015.1804%2015.0901%2015.1902%2015.1719%2015.2172L15.5341%2015.3299C15.9185%2015.45%2016.1765%2015.7979%2016.1765%2016.1948V16.6333ZM17.449%2018.1474C17.4415%2018.1719%2017.4366%2018.1964%2017.4291%2018.2209C17.3522%2018.4611%2017.129%2018.6203%2016.876%2018.6203C16.8537%2018.6203%2016.8313%2018.6154%2016.809%2018.613V17.7628C16.8264%2017.7652%2016.8413%2017.7677%2016.8586%2017.7677C17.1067%2017.7677%2017.3324%2017.6305%2017.4515%2017.4222V18.1474H17.449ZM19.8302%207.48242C19.5524%207.87933%2019.4061%208.34484%2019.4061%208.82749V9.2489L19.1903%209.5576C18.91%209.95696%2018.7611%2010.4249%2018.7611%2010.91V13.0342C18.7611%2013.3772%2018.6173%2013.7129%2018.3643%2013.9481L17.9103%2014.3744C17.6052%2014.661%2017.4366%2015.0628%2017.449%2015.4794L17.4515%2015.5749C17.4688%2016.1262%2017.3969%2016.675%2017.2406%2017.2042C17.191%2017.3732%2017.0323%2017.4908%2016.8561%2017.4908C16.6354%2017.4908%2016.4543%2017.3144%2016.4543%2017.0939V16.1948C16.4543%2015.6754%2016.117%2015.2221%2015.6159%2015.0677L15.2538%2014.955C15.0528%2014.8938%2014.842%2014.8913%2014.6386%2014.9501L13.5472%2015.2686C13.4033%2015.3103%2013.2496%2015.3103%2013.1057%2015.2686L12.6443%2015.1339C12.4062%2015.0628%2012.1482%2015.08%2011.92%2015.178L10.9502%2015.5994C10.3301%2015.8689%209.9307%2016.4741%209.9307%2017.1429V17.4884C9.54871%2017.4663%209.17664%2017.3536%208.84674%2017.1576L8.50692%2016.9567C8.21919%2016.7877%207.89177%2016.697%207.5569%2016.697H6.78548L6.21498%2016.381C5.94461%2016.2315%205.63951%2016.1531%205.32945%2016.1507L4.23805%2016.1433L2.98542%2015.4916C1.08539%2014.5042%200.274278%2012.2821%201.10027%2010.322L1.3508%209.72666C1.53683%209.28565%201.63357%208.81769%201.63357%208.33749V8.00428H1.90394C2.17183%208.00428%202.40003%207.82053%202.46204%207.57307H11.8481C12.0044%207.57307%2012.1482%207.66372%2012.2102%207.80583L12.4905%208.42569C12.5798%208.62414%2012.7783%208.75154%2012.999%208.75154C13.2173%208.75154%2013.4182%208.62414%2013.5075%208.42569L13.7878%207.80338C13.8523%207.66127%2013.9937%207.57062%2014.15%207.57062H14.4873C14.6337%207.57062%2014.7676%207.64902%2014.837%207.77643C15.0082%208.09003%2015.3158%208.30074%2015.6655%208.35709V12.2575C15.1025%2012.3188%2014.6709%2012.6496%2014.6709%2013.0514C14.6709%2013.4973%2015.1967%2013.8574%2015.8466%2013.8574C16.4965%2013.8574%2017.0223%2013.4973%2017.0223%2013.0514C17.0223%2012.6496%2016.5907%2012.3163%2016.0277%2012.2575V8.35464C16.3774%208.29828%2016.685%208.08758%2016.8561%207.77398C16.9256%207.64657%2017.0595%207.56817%2017.2059%207.56817H17.7069C17.9376%207.56817%2018.1485%207.45302%2018.275%207.26192L19.0191%206.12755C19.1158%205.9781%2019.282%205.8899%2019.4631%205.8899H19.6938C19.8575%205.8899%2019.9914%206.0222%2019.9914%206.1839V6.53426C19.9914%206.70331%2020.0584%206.86501%2020.175%206.98506L19.8302%207.48242ZM15.663%2012.8554V13.6296C15.3579%2013.583%2015.1322%2013.4287%2015.1322%2013.2425C15.1322%2013.0563%2015.3579%2012.8995%2015.663%2012.8554Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M43.6355%2014.2212L45.783%206.63627C46.0175%205.80901%2046.629%205.14498%2047.4288%204.848L47.4874%204.60107H44.5028L39.434%2010.6989L37.4942%204.60107H34.7636L34.6978%204.848C35.1653%205.08213%2035.423%205.78176%2035.423%206.35097V6.38628C35.423%209.63469%2033.0443%2015.2183%2029.6984%2015.2183C28.3982%2015.2183%2027.7242%2014.2901%2027.7242%2013.5165C27.7242%2012.5794%2028.5003%2011.9129%2029.3191%2011.9129C30.112%2011.9129%2030.2342%2012.211%2030.6909%2012.211C30.9696%2012.211%2031.2366%2012.0667%2031.3701%2011.8195C31.5797%2011.4313%2031.4208%2010.9572%2031.0376%2010.7714L30.8283%2010.6705C28.8775%209.72228%2026.6152%2011.1582%2026.6152%2013.3453V13.3756C26.6152%2014.9675%2027.8525%2016.2989%2029.4275%2016.3545C33.4867%2016.4983%2036.2019%2010.9661%2036.6338%206.91684L36.9458%208.01243L38.5448%2012.8545H39.1504L44.1452%206.83425L42.0498%2014.229C41.8094%2015.0773%2041.1437%2015.7344%2040.2985%2015.958L40.2399%2016.2049H44.2561L44.3216%2015.958C43.7283%2015.6043%2043.4461%2014.8902%2043.6355%2014.2212Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M51.9847%2012.6335H50.0625C50.2808%2012.034%2050.4898%2011.4617%2050.5603%2011.2743C51.0465%209.97682%2051.971%209.45183%2052.8665%209.37842L52.8572%209.3862L51.9847%2012.6335ZM53.7159%208.72607H53.6817C51.8071%208.7283%2049.7916%208.91155%2048.719%2011.9903C47.8179%2014.5767%2047.5745%2015.6481%2046.8705%2015.6481C46.4204%2015.6481%2046.5297%2014.763%2045.8549%2014.763C45.5509%2014.763%2045.2332%2015.0093%2045.2104%2015.3661C45.1705%2015.9826%2045.9909%2016.3555%2046.6092%2016.3555C48.4929%2016.3555%2049.2148%2014.9671%2049.4505%2014.3203C49.481%2014.2358%2049.6473%2013.778%2049.8436%2013.2386H51.8231L51.4878%2014.4866C51.3107%2015.145%2050.9465%2015.6839%2050.3304%2015.9595L50.2772%2016.2062H53.5154L53.5755%2015.9595C53.1372%2015.5941%2052.9469%2015.0082%2053.089%2014.4627L54.3075%209.78302C54.4011%209.42403%2054.6472%209.12789%2054.9809%208.973L55.0338%208.72607H53.9785H53.7159Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M70.056%209.26026C70.1601%209.08619%2070.2595%208.82035%2070.2595%208.67186L70.2597%208.67103C70.2741%208.39018%2070.0208%208.17273%2069.7488%208.23196H69.7482C69.5304%208.27951%2069.373%208.47499%2069.3771%208.70023C69.3807%208.93436%2069.3341%209.18574%2069.2353%209.30836C69.0082%209.59116%2068.645%209.56697%2066.9717%209.08174V9.07896C66.8186%209.03363%2066.6504%208.98414%2066.4731%208.93492C66.4637%208.93241%2066.4549%208.92963%2066.4453%208.92657L66.4456%208.92741C65.6106%208.698%2064.5732%208.4875%2063.8929%208.82869C63.8874%208.83148%2063.8816%208.83453%2063.8764%208.83704C63.2118%209.17406%2062.7479%209.81223%2062.6086%2010.5502C62.5879%2010.6587%2062.5728%2010.7468%2062.5711%2010.7788V10.7799C62.5513%2011.1675%2062.9009%2011.4679%2063.2767%2011.3864L63.2773%2011.3858C63.5821%2011.3196%2063.7965%2011.0441%2063.7902%2010.7296C63.7836%2010.4117%2063.7205%209.98741%2063.8918%209.70267C64.1674%209.31059%2064.4537%209.28278%2065.7361%209.71462L64.3436%2014.4877C64.1514%2015.1456%2063.6812%2015.6848%2063.059%2015.9601L63.0001%2016.2073H66.3319L66.3977%2015.9601C65.9679%2015.595%2065.7906%2015.0088%2065.9453%2014.4635L67.1628%2010.1637C67.6969%2010.276%2068.2381%2010.305%2068.7651%2010.1531L68.9548%2010.0986C69.3787%209.97629%2069.8129%209.6668%2070.056%209.26026Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M71.3889%208.72607L71.3234%208.97328C71.736%209.26108%2071.9219%209.78079%2071.7886%2010.2671L70.5506%2014.4816C70.3584%2015.14%2069.8882%2015.6789%2069.2659%2015.9542L69.207%2016.2011H70.9696H71.1306H75.1868L75.7226%2014.2252H75.4709L75.3806%2014.4145C75.0447%2015.1206%2074.3372%2015.5699%2073.5614%2015.5699H71.8415L72.7572%2012.2623L73.4878%2012.2615C73.9807%2012.2612%2074.3512%2012.7153%2074.2568%2013.2036H74.5084L75.1094%2010.9679H74.8578C74.7122%2011.3814%2074.3253%2011.6578%2073.8904%2011.658L72.9243%2011.6592L73.5597%209.36341L75.3825%209.36202C75.9775%209.36146%2076.4229%209.9126%2076.304%2010.5015H76.5556L77.033%208.72607H71.3889Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M82.8655%2010.5324C82.6668%2011.2028%2082.0564%2011.6627%2081.3632%2011.6627L80.3076%2011.6636L80.9466%209.36726L82.0055%209.3667C82.6067%209.36642%2083.0379%209.9512%2082.8655%2010.5324ZM82.7978%208.72998H78.7711L78.7053%208.97691C79.0919%209.24636%2079.2791%209.71935%2079.1921%2010.1779L77.9311%2014.4846C77.739%2015.1431%2077.269%2015.682%2076.6465%2015.9573L76.5879%2016.2048H79.9164L79.9822%2015.9573C79.5524%2015.5922%2079.3754%2015.006%2079.5296%2014.4607L80.14%2012.2662H80.3944C80.7787%2012.2665%2081.1014%2012.5584%2081.1438%2012.9444C81.1578%2013.069%2081.3505%2014.5947%2081.5044%2015.1195C81.7059%2015.8052%2081.9705%2016.205%2082.5729%2016.205H84.0788L84.1375%2015.9578L83.9219%2015.8288C83.4966%2015.5738%2083.1885%2015.1773%2083.0508%2014.6531C82.9203%2014.1585%2082.677%2013.2372%2082.5578%2012.7495C82.4961%2012.4981%2082.1866%2012.2654%2081.8667%2012.2654L82.3741%2012.2651C83.284%2012.2645%2084.0827%2011.6525%2084.328%2010.7671C84.611%209.74382%2083.8495%208.72998%2082.7978%208.72998Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M60.6842%209.10931C60.576%209.10931%2060.3431%209.03478%2059.9858%208.88463C59.6281%208.73447%2059.2669%208.65967%2058.9027%208.65967C58.1467%208.65967%2057.5157%208.90687%2056.9997%209.4352C56.5703%209.87483%2056.3795%2010.3628%2056.3795%2010.7852C56.3795%2011.2349%2056.6399%2011.7635%2057.1616%2012.1909C57.6542%2012.5949%2058.1668%2012.982%2058.68%2013.3771C59.2196%2013.8134%2059.4897%2014.2158%2059.4897%2014.5431C59.4897%2015.2616%2059.0269%2015.6481%2058.0688%2015.6481C57.0953%2015.6481%2056.4221%2014.9276%2056.2063%2013.5782H55.9431L55.1777%2016.2045H55.4203C55.7366%2015.9807%2055.9615%2015.8366%2056.4202%2015.8366C56.858%2015.8366%2057.3257%2016.3558%2058.3229%2016.3558C59.1191%2016.3558%2059.7493%2016.189%2060.2892%2015.6434C60.7481%2015.1668%2060.9775%2014.4994%2060.9775%2013.9538C60.9775%2013.4494%2060.6644%2012.8613%2060.1174%2012.4375C59.648%2012.0741%2059.1453%2011.7496%2058.6596%2011.3948C58.1332%2010.9993%2057.87%2010.6637%2057.87%2010.2956C57.87%2010.0906%2057.9713%209.88651%2058.174%209.68213C58.43%209.42325%2058.773%209.36596%2059.232%209.36596C60.1529%209.36596%2060.7974%209.88429%2060.8516%2010.9746H61.0945L61.7368%208.65967H61.4939C61.2373%208.95971%2060.9675%209.10931%2060.6842%209.10931Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M89.1717%209.36569C90.0926%209.36569%2090.7374%209.88401%2090.7914%2010.9743H91.0345L91.6765%208.65967H91.4334C91.1771%208.95915%2090.9075%209.10903%2090.6237%209.10903C90.5158%209.10903%2090.2829%209.03423%2089.9252%208.88435C89.5676%208.73447%2089.2067%208.65967%2088.8422%208.65967C88.0864%208.65967%2087.4554%208.90687%2086.9395%209.43493C86.51%209.87455%2086.3192%2010.3628%2086.3192%2010.785C86.3192%2011.2351%2086.5796%2011.7629%2087.1014%2012.1909C87.5939%2012.5949%2088.1065%2012.9817%2088.6197%2013.3768C89.159%2013.8134%2089.4294%2014.2158%2089.4294%2014.5428C89.4294%2015.2613%2088.9666%2015.6478%2088.0085%2015.6478C87.035%2015.6478%2086.3619%2014.9274%2086.1458%2013.5782H85.8826L85.1172%2016.2045H85.3603C85.6763%2015.9807%2085.9013%2015.8366%2086.3597%2015.8366C86.7977%2015.8366%2087.2652%2016.3558%2088.2626%2016.3558C89.0588%2016.3558%2089.689%2016.1884%2090.2289%2015.6434C90.6878%2015.1662%2090.9172%2014.4991%2090.9172%2013.9538C90.9172%2013.4494%2090.6041%2012.8613%2090.0574%2012.4375C89.5877%2012.0738%2089.0853%2011.7493%2088.5996%2011.3945C88.0729%2010.9993%2087.8097%2010.6632%2087.8097%2010.295C87.8097%2010.0909%2087.911%209.88623%2088.1134%209.68185C88.3697%209.42297%2088.7128%209.36569%2089.1717%209.36569Z'%20fill='%23006747'/%3e%3c/svg%3e", H = [{
314
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
315
+ tagline: "Featured groups+ experience",
316
+ headline: /* @__PURE__ */ h(x, {
317
+ children: ["Welcome to ", /* @__PURE__ */ s("br", {}), " Featured Groups +"]
318
+ })
319
+ }, {
320
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
321
+ headline: "Get real-time insights"
322
+ }, {
323
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",
324
+ headline: "Predictions, trivia & polls synced to match play"
325
+ }, {
326
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",
327
+ headline: "Win points for every answer you get right"
328
+ }, {
329
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
330
+ headline: "Compete against friends on the leaderboard"
331
+ }], N0 = /* @__PURE__ */ c("div")({
332
+ name: "OnboardingContainer",
333
+ class: "on59ra",
334
+ propsAsIs: !1
335
+ }), I0 = () => P, b0 = /* @__PURE__ */ c(I0())({
336
+ name: "OnboardingNotificationContainer",
337
+ class: "op1wk5d",
338
+ propsAsIs: !0
339
+ }), q = /* @__PURE__ */ c("div")({
340
+ name: "InnerContainer",
341
+ class: "i1i1g2vj",
342
+ propsAsIs: !1
343
+ }), R0 = ({
344
+ deepLink: n,
345
+ onboardingOpts: e,
346
+ notification: t,
347
+ gamification: i,
348
+ loading: o,
349
+ sdk: a
350
+ }) => {
351
+ var r, d, l, C, u, p, f;
352
+ const E = m(i.friends.getStore()), [S, D] = _(void 0), L = y(() => {
353
+ var T, R;
354
+ const G = a.getInviter();
355
+ return G ? (R = (T = E.data) == null ? void 0 : T.find(({
356
+ slId: r2
357
+ }) => r2 === G)) == null ? void 0 : R.name : "";
358
+ }, [E.data, a]);
359
+ return v(() => {
360
+ const T = n.$store.subscribe((R) => {
361
+ R && D(R.data);
362
+ });
363
+ return () => {
364
+ T();
365
+ };
366
+ }, [n.$store]), /* @__PURE__ */ s(N0, {
367
+ children: /* @__PURE__ */ s(v2, {
368
+ loading: o,
369
+ rules: [{
370
+ label: "Answer as many questions as you like.",
371
+ icon: "icon-btn-feature-groups"
372
+ }, {
373
+ label: "Win points for each correct trivia or prediction answer.",
374
+ icon: "icon-thumb-up"
375
+ }, {
376
+ label: "Top the leader board and best your friends.",
377
+ icon: "icon-trophy"
378
+ }],
379
+ rulesBtnLabel: (r = e.rules) == null ? void 0 : r.buttonLabel,
380
+ rulesTitle: (d = e.rules) == null ? void 0 : d.heading,
381
+ termsTitle: "Terms and Conditions",
382
+ termsText: (l = e.rules) == null ? void 0 : l.terms,
383
+ steps: H,
384
+ primaryColor: (C = e.inviteCard) == null ? void 0 : C.iconColor,
385
+ inviteLink: S,
386
+ inviteCardTitle: (u = e.inviteCard) == null ? void 0 : u.heading,
387
+ inviteCardSubtext: (p = e.inviteCard) == null ? void 0 : p.subtext,
388
+ inviteCardBtnLabel: (f = e.inviteCard) == null ? void 0 : f.buttonLabel,
389
+ onClose: () => {
390
+ var T;
391
+ (T = t.close) == null || T.call(t);
392
+ },
393
+ gamification: i,
394
+ sdk: a,
395
+ inviterName: L
396
+ })
397
+ });
398
+ }, A0 = ({
399
+ sdk: n,
400
+ notification: e,
401
+ saveHeight: t,
402
+ style: i,
403
+ appNode: o,
404
+ responsiveStore: a
405
+ }) => {
406
+ var r;
407
+ const d = I(null), l = e.data.onboarding, [C, u] = _(l == null ? void 0 : l.instantOpen), p = n.getFeature(k.GAMES), f = y(() => H == null ? void 0 : H.map(({
408
+ graphicSrc: L
409
+ }) => L), []), {
410
+ screen: E
411
+ } = m(a, {
412
+ keys: ["screen"]
413
+ });
414
+ (r = l == null ? void 0 : l.titleCard) != null && r.media && (l.titleCard.media.sponsorLogo = T0), D2(() => {
415
+ var L;
416
+ t(((L = d.current) == null ? void 0 : L.getBoundingClientRect().height) || 0);
417
+ }, [t]);
418
+ const {
419
+ loading: S,
420
+ throttled: D
421
+ } = g2(f);
422
+ return C && p && l && o.current && !D ? /* @__PURE__ */ s(j, {
423
+ container: o,
424
+ useContainer: !1,
425
+ children: /* @__PURE__ */ s(R0, {
426
+ notification: e,
427
+ setOpened: u,
428
+ gamification: p,
429
+ onboardingOpts: l,
430
+ deepLink: p.deepLink,
431
+ loading: S,
432
+ sdk: n
433
+ })
434
+ }) : /* @__PURE__ */ h(x, {
435
+ children: [/* @__PURE__ */ s(q, {
436
+ ref: d,
437
+ style: {
438
+ position: "absolute",
439
+ visibility: "hidden"
440
+ },
441
+ children: /* @__PURE__ */ s(K, {
442
+ close: () => {
443
+ },
444
+ action: () => {
445
+ },
446
+ onboarding: l
447
+ })
448
+ }), /* @__PURE__ */ s(b0, {
449
+ style: i,
450
+ hiding: e.hiding,
451
+ children: /* @__PURE__ */ s(q, {
452
+ children: /* @__PURE__ */ s(K, {
453
+ close: e.close,
454
+ action: () => {
455
+ var L;
456
+ u(!0), (((L = o.current) == null ? void 0 : L.getBoundingClientRect().y) || 0) < 0 && s2(o, E.size, {
457
+ behavior: "smooth"
458
+ });
459
+ },
460
+ onboarding: l
461
+ })
462
+ })
463
+ })]
464
+ });
465
+ }, y0 = () => P, k0 = /* @__PURE__ */ c(y0())({
466
+ name: "Container",
467
+ class: "c1f0y7nw",
468
+ propsAsIs: !0
469
+ }), o2 = /* @__PURE__ */ c("div")({
470
+ name: "InnerContainer",
471
+ class: "i1qa3p7a",
472
+ propsAsIs: !1
473
+ }), w0 = () => o2, x0 = /* @__PURE__ */ c(w0())({
474
+ name: "HiddenContainer",
475
+ class: "hrthymv",
476
+ propsAsIs: !0
477
+ }), D0 = /* @__PURE__ */ c("div")({
478
+ name: "NotificationRefreshing",
479
+ class: "n13rok4i",
480
+ propsAsIs: !1
481
+ }), F0 = () => E2, O0 = /* @__PURE__ */ c(F0())({
482
+ name: "Pill",
483
+ class: "pht79xf",
484
+ propsAsIs: !0
485
+ }), B0 = (n) => {
486
+ const [e, t] = _(0), i = I(null), o = $((r) => {
487
+ i.current = r;
488
+ }, []);
489
+ v(() => {
490
+ var r;
491
+ const d = (r = i.current) == null ? void 0 : r.getBoundingClientRect();
492
+ d && t(d.height);
493
+ }, [n]);
494
+ const a = $((r) => {
495
+ t(r);
496
+ }, []);
497
+ return [o, e, a];
498
+ }, V0 = ({
499
+ sdk: n,
500
+ notification: e,
501
+ appNode: t,
502
+ responsiveStore: i
503
+ }) => {
504
+ var o, a;
505
+ const {
506
+ sdk: r
507
+ } = U(), [d, l, C] = B0(e.id);
508
+ return e.type === w.QUESTION ? /* @__PURE__ */ h(x, {
509
+ children: [/* @__PURE__ */ s(x0, {
510
+ ref: d,
511
+ children: /* @__PURE__ */ s(M, {
512
+ ...e
513
+ })
514
+ }), /* @__PURE__ */ h(k0, {
515
+ style: {
516
+ height: e.hiding ? 0 : l
517
+ },
518
+ hiding: e.hiding,
519
+ children: [/* @__PURE__ */ s(o2, {
520
+ style: {
521
+ height: "100%"
522
+ },
523
+ children: /* @__PURE__ */ s(M, {
524
+ ...e,
525
+ controlVideo: r == null ? void 0 : r.controlVideoPlayer
526
+ })
527
+ }), /* @__PURE__ */ s(D0, {}, e.id)]
528
+ })]
529
+ }) : e.type === w.QUESTION_RESOLVED && (a = (o = e.data) == null ? void 0 : o.question) != null && a.predictionResult ? /* @__PURE__ */ s(S2, {
530
+ style: {
531
+ height: e.hiding ? 0 : l
532
+ },
533
+ saveHeight: C,
534
+ close: e.close,
535
+ hiding: e.hiding,
536
+ ...e.data.question,
537
+ mastersApp: !0
538
+ }) : e.type === w.ONBOARDING ? /* @__PURE__ */ s(A0, {
539
+ style: {
540
+ height: e.hiding ? 0 : l
541
+ },
542
+ saveHeight: C,
543
+ sdk: n,
544
+ notification: e,
545
+ appNode: t,
546
+ responsiveStore: i
547
+ }) : null;
548
+ }, $0 = "p1co32q0", H0 = ({
549
+ pill: n,
550
+ setPill: e,
551
+ appNode: t,
552
+ headerNode: i,
553
+ scrollNode: o,
554
+ responsiveStore: a,
555
+ scrollStore: r,
556
+ useContainer: d
557
+ }) => {
558
+ var l, C;
559
+ const {
560
+ screen: u
561
+ } = m(a, {
562
+ keys: ["screen"]
563
+ }), {
564
+ tabsShown: p,
565
+ scrollPosition: f
566
+ } = m(r, {
567
+ keys: ["tabsShown", "scrollPosition"]
568
+ });
569
+ v(() => {
570
+ a.get().sdkInDesktopView || d ? f < 50 && e(null) : f > -50 && e(null);
571
+ }, [f, a, e, d]);
572
+ const E = a.get().sdkInDesktopView ? t : i;
573
+ return !n || !E.current ? null : V2(/* @__PURE__ */ s(O0, {
574
+ title: n.type === w.QUESTION_RESOLVED ? "Prediction result" : `New ${((C = _2[(l = n.data) == null ? void 0 : l.questionType]) == null ? void 0 : C.label) || "notification"}`,
575
+ onClick: () => {
576
+ var S;
577
+ a.get().sdkInDesktopView ? (S = o.current) == null || S.scrollTo({
578
+ top: 0,
579
+ behavior: "smooth"
580
+ }) : s2(o, u.size, {
581
+ behavior: "smooth"
582
+ }), e(null);
583
+ },
584
+ className: A(p && $0, "sl-pill-button")
585
+ }), E.current);
586
+ }, P0 = ({
587
+ sdk: n,
588
+ headerNode: e,
589
+ scrollNode: t,
590
+ useContainer: i,
591
+ responsiveStore: o,
592
+ appNode: a,
593
+ scrollStore: r
594
+ }) => {
595
+ const [d] = _(n.getNotificationsStore()), l = m(d), [C, u] = _(null), p = y(() => n.getActiveNotification(), [n, l]);
596
+ return v(() => {
597
+ p && L2.emit("notification", {
598
+ action: "rendered",
599
+ payload: {
600
+ questionId: p.data.questionId,
601
+ questionType: p.data.questionType
602
+ }
603
+ });
604
+ }, [p]), v(() => {
605
+ p && (o.get().sdkInDesktopView || o.get().sdkInView) && (!o.get().sdkInDesktopView && o.get().sdkInView && u(p), o.get().sdkInDesktopView && window.requestAnimationFrame(() => {
606
+ r.get().scrollPosition !== 0 && u(p);
607
+ }));
608
+ }, [p]), v(() => {
609
+ p || u(null);
610
+ }, [p]), /* @__PURE__ */ h(x, {
611
+ children: [!C && p && /* @__PURE__ */ s(V0, {
612
+ headerNode: e,
613
+ appNode: a,
614
+ sdk: n,
615
+ notification: p,
616
+ responsiveStore: o
617
+ }), C && /* @__PURE__ */ s(H0, {
618
+ pill: C,
619
+ setPill: u,
620
+ appNode: a,
621
+ notification: p,
622
+ headerNode: e,
623
+ scrollNode: t,
624
+ scrollStore: r,
625
+ useContainer: i,
626
+ responsiveStore: o
627
+ })]
628
+ });
629
+ }, Q = Object.keys(N), B = () => {
630
+ const n = window.innerWidth;
631
+ let e = "sm";
632
+ for (let t = Q.length - 1; t > 0; t--) {
633
+ const i = Q[t];
634
+ if (!(n < N[i]) && n >= N[i]) {
635
+ e = i;
636
+ break;
637
+ }
638
+ }
639
+ return {
640
+ name: e,
641
+ size: N[e]
642
+ };
643
+ }, Z = (n) => {
644
+ var e;
645
+ const t = (e = n.current) == null ? void 0 : e.getBoundingClientRect();
646
+ return t ? t.y > -t.height && t.y < window.innerHeight : !1;
647
+ }, W = (n) => n >= N.lg, U0 = (n) => {
648
+ const [e] = _(() => {
649
+ const t = B();
650
+ return Y({
651
+ screen: B(),
652
+ sdkInView: Z(n),
653
+ sdkInDesktopView: W(t.size)
654
+ });
655
+ });
656
+ return v(() => {
657
+ const t = V(() => {
658
+ e.setKey("sdkInView", Z(n));
659
+ }, 200), i = V(() => {
660
+ const o = B();
661
+ e.setKey("screen", o), e.setKey("sdkInDesktopView", W(o.size));
662
+ }, 200);
663
+ return t(), i(), window.addEventListener("scroll", t), window.addEventListener("resize", i), () => {
664
+ window.removeEventListener("scroll", t), window.removeEventListener("resize", i);
665
+ };
666
+ }, [e, n]), [e];
667
+ }, G0 = {
668
+ ...T2,
669
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
670
+ // @ts-expect-error
671
+ BG_TRANSPARENT: "rgba(0,0,0, .8)",
672
+ BLUE_QUESTION_ACTION_BTN: "#1589ee",
673
+ WHITE: "#FFFFFF",
674
+ BLUE: "#2d6ffd",
675
+ GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
676
+ GREY_PRIMARY: "#909395",
677
+ PRIMARY_1: "#107D57",
678
+ PRIMARY_2: "#006747",
679
+ PRIMARY_TEXT: "#25282A",
680
+ QUESTION_TYPE_ICON: "#107D57",
681
+ SUCCESS: "#107D57",
682
+ UNSUCCESS: "#DF2F3B",
683
+ SECONDARY_RED1: "#DF2F3B",
684
+ NEUTRALS_WHITE: "#FFFFFF",
685
+ NEUTRALS_WHITE1: "#FFFFFF",
686
+ NEUTRALS_GRAY1: "#F7F7F7",
687
+ NEUTRALS_GRAY2: "#F2F2F1",
688
+ NEUTRALS_GRAY3: "#E8E8E8",
689
+ NEUTRALS_GRAY4: "#D9D9D6",
690
+ NEUTRALS_GRAY5: "#B1B3B3",
691
+ NEUTRALS_GRAY6: "#888B8D",
692
+ NEUTRALS_GRAY7: "#6B6F73",
693
+ NEUTRALS_GRAY9: "#25282A",
694
+ SDK_CONTAINER_BG: "#F7F7F7",
695
+ SDK_WHITE_CONTAINER_BG: "#fff",
696
+ SDK_DARK_CONTAINER_BG: "#fff",
697
+ SDK_PREDICTION_RESULT_SUCCESS_BG: "#fff",
698
+ SDK_PREDICTION_RESULT_INCORRECT_BG: "#fff",
699
+ SDK_PREDICTION_RESULT_SUCCESS_TEXT: "#107D57",
700
+ SDK_PREDICTION_RESULT_ERROR_TITLE: "#090E13",
701
+ SDK_PREDICTION_RESULT_ERROR_SUBTITLE: "#DF2F3B",
702
+ SDK_PREDICTION_RESULT_CLOSE_ICON: "#6B6F73",
703
+ SDK_PREDICTION_FEEDBACK_SUCCESS_ICON: "#107D57",
704
+ SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1: "#CD2525",
705
+ SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2: "#fff",
706
+ PREDICTION_BG_LINES_CORRECT: "#01AB58",
707
+ PREDICTION_BG_LINES_INCORRECT: "#888B8D",
708
+ SKELETON_COLOR_1: "#f1efef",
709
+ SKELETON_COLOR_2: "#f9f8f8",
710
+ TABS_CONTAINER_BG: "#F2F2F1",
711
+ TABS_ACTIVE_BG: "#FFFFFF",
712
+ TABS_COLOR: "#6B6F73",
713
+ TABS_ACTIVE_COLOR: "#107D57",
714
+ CARD_BG: "#FFFFFF",
715
+ CARD_BORDER: "#fff",
716
+ BORDER: "#E8E8E8",
717
+ VOTE_BTN_BG: "#F7F7F7",
718
+ VOTE_BTN_BORDER: "rgb(232, 232, 232)",
719
+ VOTE_BTN_DISABLED_BORDER: "#B1B3B3",
720
+ VOTE_BTN_SELECTED_BORDER: "#25282A",
721
+ VOTE_BTN_NOT_SELECTED_BORDER: "#E8E8E8",
722
+ VOTE_BTN_SELECTED_BG: "#FFFFFF",
723
+ VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF",
724
+ VOTE_BTN_NOT_SELECTED_BG_UNSET: "rgb(196, 196, 196)",
725
+ VOTED_ANSWER_BG: "rgba(16, 125, 87, 0.10)",
726
+ VOTED_BTN_RCT_BG: "rgba(16, 125, 87, 0.30)",
727
+ IN_APP_BG: "rgba(255, 255, 255, 0.90)",
728
+ IN_APP_QUESTION_TYPE_ICON: "#1D7BFF",
729
+ IN_APP_QUESTION_TYPE_LABEL: "#82899E",
730
+ IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
731
+ IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
732
+ IN_APP_QUESTION_RESULT_LINE: "#babfc5",
733
+ QUOTE_TEXT: "#006944"
734
+ }, g = {
735
+ ...b,
736
+ REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
737
+ REGULAR1: b.REGULAR,
738
+ SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
739
+ SERIF1: "'Tiempos', 'Tiempos Headline', Times New Roman, serif",
740
+ COLOR: "#fff",
741
+ WEIGHT_DEFAULT: "500"
742
+ }, M0 = Object.entries(G0).reduce((n, [e, t]) => `
743
+ ${n}
744
+ --color-${e.toLowerCase().replaceAll("_", "-")}: ${t};
745
+ `, "");
746
+ `${M0}${g.REGULAR}${g.REGULAR}${g.REGULAR1}${g.COLOR}${g.SERIF}${g.SERIF1}${g.WEIGHT_DEFAULT}${g.WEIGHT_DEFAULT1}${g.WEIGHT_DEFAULT2}${g.WEIGHT_DEFAULT3}${b.SIZE_DEFAULT}${b.SIZE_DEFAULT1}${b.SIZE_DEFAULT2}${b.LINE_HEIGHT}${z.down("xl")`
747
+ --header-offset: 0px;
748
+ --watch-live-header: 0px;
749
+ `}${z.intermediate("xl", "lg")`
750
+ --header-offset: 0px;
751
+ `}`;
752
+ const z0 = "m1ojpy2l", K0 = ({ children: n, style: e }) => /* @__PURE__ */ s("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ s("div", { className: A("masters-theme", z0), style: e, children: n }) }), q0 = ({ sdk: n, className: e }) => {
753
+ const [, t] = N2(n);
754
+ return /* @__PURE__ */ s(r0, { className: e, feature: t, sdk: n });
755
+ }, Q0 = ({ sdk: n, className: e, appNode: t, responsiveStore: i, useContainer: o }) => {
756
+ const a = m(n.featuresList.getStore());
757
+ return a ? Array.from(a, (r) => {
758
+ const d = n.getFeature(r);
759
+ return d ? /* @__PURE__ */ s(
760
+ a0,
761
+ {
762
+ useContainer: o,
763
+ responsiveStore: i,
764
+ className: e,
765
+ appNode: t,
766
+ feature: d,
767
+ sdk: n
768
+ },
769
+ r
770
+ ) : null;
771
+ }) : null;
772
+ }, Z0 = (n) => {
773
+ const e = I(null);
774
+ return J(e, { enabled: !0, event: "click", listener: e2 }), /* @__PURE__ */ s(O2, { ref: e, ...n });
775
+ }, W0 = ({ sdk: n, useContainer: e }) => {
776
+ const t = I(null), i = m(n.status), o = m(n.sdkStore.slStreamId), a = I(null), [r] = U0(t), [d, l] = q2(t, r, e), C = i === "ready" && !!o.data;
777
+ return v(() => {
778
+ window.requestAnimationFrame(() => {
779
+ n.initializeApp().then(() => {
780
+ n.openFeature(k.GAMES);
781
+ });
782
+ });
783
+ }, [n]), J(t, { enabled: !0, event: "click", listener: e2 }), v(() => {
784
+ import("./gamification-feature2.js");
785
+ }, []), /* @__PURE__ */ h($2, { className: A("SDKContainer", !e && H2), ref: t, children: [
786
+ /* @__PURE__ */ s(C0, { className: A(F), ref: a }),
787
+ /* @__PURE__ */ h(P2, { className: "sl-hide-on-modal", ref: d, children: [
788
+ C && /* @__PURE__ */ s(
789
+ P0,
790
+ {
791
+ sdk: n,
792
+ scrollNode: d,
793
+ headerNode: a,
794
+ appNode: t,
795
+ scrollStore: l,
796
+ responsiveStore: r,
797
+ useContainer: e
798
+ }
799
+ ),
800
+ C && /* @__PURE__ */ s(q0, { className: F, sdk: n }),
801
+ C && /* @__PURE__ */ s(
802
+ Q0,
803
+ {
804
+ responsiveStore: r,
805
+ appNode: t,
806
+ className: F,
807
+ sdk: n,
808
+ useContainer: e
809
+ }
810
+ )
811
+ ] })
812
+ ] });
813
+ }, Y0 = ({ sdk: n, betPack: e, useContainer: t }) => {
814
+ const [i, o] = _(e), a = !!m(n.userId()), r = y(() => ({ sdk: n }), [n]), d = $(() => {
815
+ o(!1);
816
+ const l = n == null ? void 0 : n.getFeature(k.GAMES);
817
+ l == null || l.closeQuestion();
818
+ }, [n]);
819
+ return /* @__PURE__ */ h(i2.Provider, { value: r, children: [
820
+ i && a && /* @__PURE__ */ s(
821
+ Z0,
822
+ {
823
+ sdk: n,
824
+ onEvent: ({ type: l }) => l === "slOpenGameCenter" ? d() : () => {
825
+ },
826
+ close: () => d()
827
+ }
828
+ ),
829
+ !i && /* @__PURE__ */ s(W0, { sdk: n, useContainer: t })
830
+ ] });
831
+ }, a1 = ({ sdkKey: n, plugins: e, children: t, event: i, onDeepLinkHandled: o, videoPlayerController: a, production: r = !0 }) => /* @__PURE__ */ h(
832
+ I2,
833
+ {
834
+ sdkKey: n,
835
+ plugins: e,
836
+ production: r,
837
+ autoEnable: !0,
838
+ onDeepLinkHandled: o,
839
+ videoPlayerController: a,
840
+ friendsTab: "disabled",
841
+ skipOnboarding: !0,
842
+ hideFriends: !0,
843
+ children: [
844
+ /* @__PURE__ */ s(b2, { event: i }),
845
+ t
846
+ ]
847
+ }
848
+ ), j0 = ({
849
+ betPack: n,
850
+ useContainer: e
851
+ }) => {
852
+ const { sdk: t, status: i } = n2(R2);
853
+ return i === A2.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : t ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(K0, { style: { height: "100%" }, children: /* @__PURE__ */ s(Y0, { sdk: t, betPack: n, useContainer: e }) }) }) : null;
854
+ };
855
+ class l1 extends F2 {
856
+ constructor(e) {
857
+ super(e), this.state = { hasError: !1 };
858
+ }
859
+ static getDerivedStateFromError() {
860
+ return { hasError: !0 };
861
+ }
862
+ componentDidCatch(e, t) {
863
+ console.error(e, t.componentStack);
864
+ }
865
+ render() {
866
+ return this.state.hasError ? null : /* @__PURE__ */ s(j0, { ...this.props });
867
+ }
868
+ }
869
+ export {
870
+ r1 as C,
871
+ a1 as M,
872
+ l1 as a
873
+ };