@streamlayer/react 1.11.3-rc.4 → 1.11.3

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 (64) hide show
  1. package/lib/app/masters.d.ts +28 -0
  2. package/lib/cjs/advertisement.js +1 -1
  3. package/lib/cjs/gamification-feature.js +1 -1
  4. package/lib/cjs/gamification-feature2.js +1 -0
  5. package/lib/cjs/index.js +1 -1
  6. package/lib/cjs/insight.js +1 -1
  7. package/lib/cjs/masters.js +1 -0
  8. package/lib/cjs/masters2.js +9 -0
  9. package/lib/cjs/notification.js +1 -1
  10. package/lib/cjs/points.js +1 -1
  11. package/lib/cjs/provider.js +90 -78
  12. package/lib/cjs/useStreamLayerApp2.js +12 -12
  13. package/lib/classic/app/masters.d.ts +28 -0
  14. package/lib/classic/cjs/advertisement.js +1 -1
  15. package/lib/classic/cjs/gamification-feature.js +1 -1
  16. package/lib/classic/cjs/gamification-feature2.js +1 -0
  17. package/lib/classic/cjs/index.js +1 -1
  18. package/lib/classic/cjs/insight.js +1 -1
  19. package/lib/classic/cjs/masters.js +1 -0
  20. package/lib/classic/cjs/masters2.js +9 -0
  21. package/lib/classic/cjs/notification.js +1 -1
  22. package/lib/classic/cjs/points.js +1 -1
  23. package/lib/classic/cjs/provider.js +90 -78
  24. package/lib/classic/cjs/useStreamLayerApp2.js +12 -12
  25. package/lib/classic/es/advertisement.js +605 -704
  26. package/lib/classic/es/gamification-feature.js +1 -1
  27. package/lib/classic/es/gamification-feature2.js +4 -0
  28. package/lib/classic/es/index.js +14 -11
  29. package/lib/classic/es/insight.js +35 -34
  30. package/lib/classic/es/masters.js +8 -0
  31. package/lib/classic/es/masters2.js +1106 -0
  32. package/lib/classic/es/notification.js +378 -452
  33. package/lib/classic/es/points.js +44 -67
  34. package/lib/classic/es/provider.js +17477 -15544
  35. package/lib/classic/es/useStreamLayerApp2.js +2967 -3251
  36. package/lib/classic/index.d.ts +10 -1
  37. package/lib/classic/masters.d.ts +5 -0
  38. package/lib/classic/style.css +1 -455
  39. package/lib/dist/cjs/gamification-feature.js +1 -0
  40. package/lib/dist/cjs/gamification-feature2.js +1 -0
  41. package/lib/dist/cjs/index.js +1 -0
  42. package/lib/dist/cjs/masters.js +219 -0
  43. package/lib/dist/cjs/package.json +1 -0
  44. package/lib/dist/es/gamification-feature.js +4 -0
  45. package/lib/dist/es/gamification-feature2.js +123 -0
  46. package/lib/dist/es/index.js +9 -0
  47. package/lib/dist/es/masters.js +42736 -0
  48. package/lib/dist/es/package.json +1 -0
  49. package/lib/dist/style.css +1 -0
  50. package/lib/es/advertisement.js +605 -704
  51. package/lib/es/gamification-feature.js +1 -1
  52. package/lib/es/gamification-feature2.js +4 -0
  53. package/lib/es/index.js +14 -11
  54. package/lib/es/insight.js +35 -34
  55. package/lib/es/masters.js +8 -0
  56. package/lib/es/masters2.js +1106 -0
  57. package/lib/es/notification.js +378 -452
  58. package/lib/es/points.js +44 -67
  59. package/lib/es/provider.js +17477 -15545
  60. package/lib/es/useStreamLayerApp2.js +2967 -3251
  61. package/lib/index.d.ts +10 -1
  62. package/lib/masters.d.ts +5 -0
  63. package/lib/style.css +1 -1
  64. package/package.json +76 -1
@@ -0,0 +1,1106 @@
1
+ import { jsx as t, jsxs as L, Fragment as $ } from "react/jsx-runtime";
2
+ import { s as C, k as t2, a as v, A as I, l as G, F as u2, m as o2, n as v2, p as h2, o as m2, N as g2, q as E2, M as L2, T as f2, r as S2, C as N2, t as I2, O as r2, v as B, w as T2, x as _2, y as A2, B as i2, D as z, I as a2, f as K, E as b2, G as R2, H as y2, J as k2, i as $2, K as O, Q as q, R as D2, U as w2, V as F2, e as O2, W as V2, X as k, Z as Y, L as x, _ as B2, $ as x2, a0 as H2, c as H, a1 as U2, a2 as P2, a3 as G2, a4 as M2 } from "./provider.js";
3
+ import { useRef as R, useState as T, useEffect as S, createContext as z2, useContext as l2, lazy as K2, useMemo as F, Suspense as Q2, forwardRef as W2, useLayoutEffect as Z2, useCallback as w, Component as q2 } from "react";
4
+ import { Q as Y2, S as y } from "./useStreamLayerApp2.js";
5
+ const j2 = /* @__PURE__ */ C("div")({
6
+ name: "SDKContainer",
7
+ class: "s8zgqze",
8
+ propsAsIs: !1
9
+ }), X2 = /* @__PURE__ */ C("div")({
10
+ name: "SDKScrollContainer",
11
+ class: "s6t897k",
12
+ propsAsIs: !1
13
+ }), d2 = /* @__PURE__ */ C("div")({
14
+ name: "SDKContentContainer",
15
+ class: "sw7pkvp",
16
+ propsAsIs: !1
17
+ }), J2 = () => d2, V = /* @__PURE__ */ C(J2())({
18
+ name: "SDKWhiteContainer",
19
+ class: "s14gkn7u",
20
+ propsAsIs: !0
21
+ }), e0 = /* @__PURE__ */ C("div")({
22
+ name: "TabsContainer",
23
+ class: "t1yxstm9",
24
+ propsAsIs: !1
25
+ }), s0 = () => V, n0 = /* @__PURE__ */ C(s0())({
26
+ name: "LeaderboardContainer",
27
+ class: "ldpty1s",
28
+ propsAsIs: !0
29
+ }), t0 = () => V, o0 = /* @__PURE__ */ C(t0())({
30
+ name: "TabsNavContainer",
31
+ class: "t136a59y",
32
+ propsAsIs: !0
33
+ }), r0 = /* @__PURE__ */ C("div")({
34
+ name: "UserSummaryContainer",
35
+ class: "u11vnm9m",
36
+ propsAsIs: !1
37
+ }), Q = (e, s, n) => {
38
+ const o = s >= I.lg && s < I.xl ? 75 : 52;
39
+ e.current && window.scrollTo({
40
+ top: e.current.offsetTop - o,
41
+ ...n
42
+ });
43
+ }, i0 = 15, a0 = (e, s) => {
44
+ const n = R(null), o = R(0), [r] = T(
45
+ t2({
46
+ scrollPosition: 0,
47
+ tabsShown: !0,
48
+ scrollDirection: "forward"
49
+ })
50
+ ), i = v(s);
51
+ return S(() => {
52
+ const a = window.innerWidth < I.xl ? window : n.current;
53
+ if (!a)
54
+ return () => {
55
+ };
56
+ const p = G((c) => {
57
+ var d;
58
+ const l = c.target;
59
+ if (!l)
60
+ return;
61
+ let u = 0;
62
+ i.screen.size < I.xl ? u = ((d = e.current) == null ? void 0 : d.getBoundingClientRect().y) || 0 : u = l.scrollTop;
63
+ const m = o.current - u;
64
+ if (i0 > Math.abs(m))
65
+ return;
66
+ const f = o.current < u ? "forward" : "backward";
67
+ o.current = u, r.set({
68
+ scrollPosition: Math.round(u),
69
+ scrollDirection: f,
70
+ tabsShown: r.get().tabsShown
71
+ });
72
+ }, 200);
73
+ return a.addEventListener("scroll", p), () => {
74
+ a.removeEventListener("scroll", p);
75
+ };
76
+ }, [r, e, i.screen]), [n, r];
77
+ }, U = /* @__PURE__ */ C("div")({
78
+ name: "LoadingContainer",
79
+ class: "l7wseip",
80
+ propsAsIs: !1
81
+ }), l0 = ({
82
+ feature: e,
83
+ sdk: s,
84
+ children: n,
85
+ className: o,
86
+ noWait: r
87
+ }) => {
88
+ const i = v(e.status), a = v(s.sdkStore.slStreamId);
89
+ if (!r) {
90
+ if (a != null && a.loading && !a.data)
91
+ return /* @__PURE__ */ t(U, {
92
+ className: o,
93
+ children: "Event is loading..."
94
+ });
95
+ if (!(a != null && a.data))
96
+ return /* @__PURE__ */ t(U, {
97
+ className: o,
98
+ children: "Event is forbidden..."
99
+ });
100
+ if (i !== u2.Ready)
101
+ return /* @__PURE__ */ t(U, {
102
+ className: o,
103
+ children: "Wait feature..."
104
+ });
105
+ }
106
+ return n;
107
+ }, c2 = z2({
108
+ sdk: null
109
+ }), W = () => l2(c2), d0 = /* @__PURE__ */ C("div")({
110
+ name: "QuestionContainer",
111
+ class: "qwgkhsv",
112
+ propsAsIs: !1
113
+ }), c0 = ({
114
+ openedQuestion: e
115
+ }) => {
116
+ var s, n;
117
+ const {
118
+ sdk: o
119
+ } = W();
120
+ return ((s = e == null ? void 0 : e.attributes) == null ? void 0 : s.attributes.case) === "insight" ? /* @__PURE__ */ t(h2, {
121
+ ...e.attributes.attributes.value,
122
+ controlVideo: o == null ? void 0 : o.controlVideoPlayer
123
+ }) : ((n = e == null ? void 0 : e.attributes) == null ? void 0 : n.attributes.case) === "tweet" ? /* @__PURE__ */ t(m2, {
124
+ ...e.attributes.attributes.value,
125
+ controlVideo: o == null ? void 0 : o.controlVideoPlayer
126
+ }) : null;
127
+ }, p0 = ({
128
+ extendedQuestion: e,
129
+ vote: s,
130
+ close: n
131
+ }) => {
132
+ const {
133
+ loading: o,
134
+ data: r
135
+ } = e;
136
+ return r ? /* @__PURE__ */ t(g2, {
137
+ vote: s,
138
+ close: n,
139
+ openedQuestion: r,
140
+ isLoading: !!o
141
+ }) : /* @__PURE__ */ t(E2, {});
142
+ }, C0 = ({
143
+ gamification: e
144
+ }) => {
145
+ var s;
146
+ const n = v(e.openedQuestion.$store), o = v(e.openedQuestion.$extendedStore);
147
+ if (!n)
148
+ return null;
149
+ const r = n.type;
150
+ return /* @__PURE__ */ L(d0, {
151
+ children: [/* @__PURE__ */ t(o2, {
152
+ close: e.closeQuestion,
153
+ type: ((s = n.attributes) == null ? void 0 : s.type) || Y2.UNSET
154
+ }), r === "question" && /* @__PURE__ */ t(p0, {
155
+ vote: e.submitAnswer,
156
+ close: e.closeQuestion,
157
+ extendedQuestion: o
158
+ }), r !== "question" && /* @__PURE__ */ t(c0, {
159
+ openedQuestion: n
160
+ }), /* @__PURE__ */ t(v2, {
161
+ mastersLogo: !0
162
+ })]
163
+ });
164
+ }, u0 = /* @__PURE__ */ C("div")({
165
+ name: "InviteFriendsContainer",
166
+ class: "i1b9agwt",
167
+ propsAsIs: !1
168
+ }), v0 = ({
169
+ deepLink: e
170
+ }) => /* @__PURE__ */ t(u0, {
171
+ children: /* @__PURE__ */ t(L2, {
172
+ inviteLink: e,
173
+ inviteCardTitle: "It’s More Fun With Friends",
174
+ inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
175
+ })
176
+ }), h0 = /* @__PURE__ */ C("div")({
177
+ name: "InviteLinkContainer",
178
+ class: "ij36hcn",
179
+ propsAsIs: !1
180
+ }), m0 = ({
181
+ gamification: e,
182
+ scrollNode: s,
183
+ scrollStore: n
184
+ }) => {
185
+ const o = R(null), {
186
+ data: r,
187
+ hasMore: i,
188
+ loading: a,
189
+ key: p
190
+ } = v(e.leaderboardList.$store), {
191
+ data: c
192
+ } = v(e.deepLink.$store), [d, l] = f2(o);
193
+ return !r.length && !a ? /* @__PURE__ */ t(v0, {
194
+ deepLink: c
195
+ }) : /* @__PURE__ */ L($, {
196
+ children: [/* @__PURE__ */ t(S2, {
197
+ items: r,
198
+ scrollNode: s,
199
+ scrollStore: n,
200
+ fetchMore: e.leaderboardList.fetchMore,
201
+ hasMore: i,
202
+ openItemDetail: e.openUser,
203
+ currentUserId: e.currentUserId.get()
204
+ }, p), c && /* @__PURE__ */ t(h0, {
205
+ ref: o,
206
+ children: /* @__PURE__ */ t(N2, {
207
+ onClick: () => d(c),
208
+ title: "Invite Friends",
209
+ description: "Challenge them now!"
210
+ })
211
+ }), l]
212
+ });
213
+ }, g0 = ({ store: e, openQuestion: s }) => {
214
+ const { sdk: n } = W(), o = v(e);
215
+ return /* @__PURE__ */ t(I2, { openQuestion: s, questions: o.data, controlVideo: n == null ? void 0 : n.controlVideoPlayer });
216
+ }, E0 = ({ userSummary: e }) => {
217
+ var s;
218
+ const [n, o] = T(void 0);
219
+ return S(() => {
220
+ const r = e.$store.subscribe((i) => {
221
+ i && o(i);
222
+ });
223
+ return () => {
224
+ r();
225
+ };
226
+ }, [e]), /* @__PURE__ */ t(r2, { loading: !(n != null && n.summary), ...n == null ? void 0 : n.summary, successRate: (s = n == null ? void 0 : n.percentage) == null ? void 0 : s.correct });
227
+ }, L0 = ({ gamification: e, className: s, scrollStore: n, scrollNode: o, appNode: r, style: i, responsiveStore: a }) => {
228
+ const { tabsShown: p } = v(n, { keys: ["tabsShown"] }), [c, d] = T(B.HOME), [, l] = _2(), { sdkInDesktopView: u, screen: m } = v(a, { keys: ["sdkInDesktopView"] }), f = (E) => {
229
+ l(() => {
230
+ var N;
231
+ d(E), u === !1 && (((N = r.current) == null ? void 0 : N.getBoundingClientRect().y) || 0) < 0 && Q(r, m.size, { behavior: "instant" });
232
+ });
233
+ };
234
+ S(() => n.subscribe((E) => {
235
+ if (E.scrollPosition === 0) {
236
+ n.setKey("tabsShown", !0);
237
+ return;
238
+ }
239
+ a.get().sdkInDesktopView ? n.setKey("tabsShown", E.scrollDirection === "backward") : n.setKey("tabsShown", E.scrollDirection === "forward");
240
+ }), [n, a]);
241
+ let h = "0px";
242
+ return u ? h = p ? "0px" : "calc(8px - var(--header-height) - var(--header-offset))" : h = p ? "calc(var(--header-height) + var(--header-offset) - 2px)" : "0px", /* @__PURE__ */ L(e0, { className: s, style: i, children: [
243
+ /* @__PURE__ */ t(
244
+ o0,
245
+ {
246
+ style: {
247
+ top: h
248
+ },
249
+ children: /* @__PURE__ */ t(T2, { activePage: c, toggleActivePage: f })
250
+ }
251
+ ),
252
+ c === B.HOME && /* @__PURE__ */ L($, { children: [
253
+ /* @__PURE__ */ t(V, { style: { paddingTop: "8px" }, children: /* @__PURE__ */ t(r0, { children: /* @__PURE__ */ t(E0, { userSummary: e.userSummary }) }) }),
254
+ /* @__PURE__ */ t(d2, { style: { flex: 1 }, children: /* @__PURE__ */ t(g0, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
255
+ ] }),
256
+ c === B.LEADERBOARD && /* @__PURE__ */ t(n0, { children: /* @__PURE__ */ t(m0, { scrollStore: n, scrollNode: o, gamification: e }) })
257
+ ] });
258
+ }, f0 = () => z, j = /* @__PURE__ */ C(f0())({
259
+ name: "OpenedContainer",
260
+ class: "o1seszvt",
261
+ propsAsIs: !0
262
+ }), S0 = /* @__PURE__ */ C("div")({
263
+ name: "UserContainer",
264
+ class: "u1pbry50",
265
+ propsAsIs: !1
266
+ }), N0 = ({
267
+ correct: e,
268
+ incorrect: s
269
+ }) => {
270
+ const n = e + s;
271
+ return n === 0 ? 0 : Math.round(e / n * 100);
272
+ }, A1 = ({
273
+ gamification: e,
274
+ scrollStore: s,
275
+ className: n,
276
+ appNode: o,
277
+ scrollNode: r,
278
+ responsiveStore: i
279
+ }) => /* @__PURE__ */ t(L0, {
280
+ appNode: o,
281
+ scrollStore: s,
282
+ scrollNode: r,
283
+ className: n,
284
+ gamification: e,
285
+ responsiveStore: i
286
+ }), I0 = ({
287
+ gamification: e,
288
+ className: s,
289
+ appNode: n,
290
+ responsiveStore: o
291
+ }) => {
292
+ const r = v(e.openedQuestion.$store), i = v(e.openedUser), {
293
+ sdkInDesktopView: a
294
+ } = v(o, {
295
+ keys: ["sdkInDesktopView"]
296
+ }), {
297
+ hiding: p,
298
+ onAnimationEnd: c
299
+ } = A2();
300
+ if (!n.current || !r && !i)
301
+ return null;
302
+ const d = r ? /* @__PURE__ */ t(j, {
303
+ className: s,
304
+ hiding: p,
305
+ onAnimationEnd: c,
306
+ children: /* @__PURE__ */ t(C0, {
307
+ gamification: e
308
+ })
309
+ }) : i ? /* @__PURE__ */ t(j, {
310
+ className: s,
311
+ hiding: p,
312
+ onAnimationEnd: c,
313
+ children: /* @__PURE__ */ L(S0, {
314
+ children: [/* @__PURE__ */ t(o2, {
315
+ label: "Friend's Rank",
316
+ close: e.closeUser
317
+ }), /* @__PURE__ */ t(V, {
318
+ children: /* @__PURE__ */ t(r2, {
319
+ ...i,
320
+ successRate: N0(i)
321
+ })
322
+ })]
323
+ })
324
+ }) : null;
325
+ return /* @__PURE__ */ t(i2, {
326
+ container: n,
327
+ useContainer: !a,
328
+ children: d
329
+ });
330
+ }, T0 = K2(() => import("./gamification-feature2.js")), _0 = ({ sdk: e, feature: s, className: n, scrollStore: o, appNode: r, scrollNode: i, responsiveStore: a }) => {
331
+ const p = F(() => s && s.featureConfig.get().type === y.GAMES ? /* @__PURE__ */ t(l0, { className: n, sdk: e, feature: s, children: /* @__PURE__ */ t(
332
+ T0,
333
+ {
334
+ appNode: r,
335
+ scrollStore: o,
336
+ scrollNode: i,
337
+ className: n,
338
+ responsiveStore: a,
339
+ gamification: s
340
+ }
341
+ ) }) : null, [e, s, n, a, o, i, r]);
342
+ return /* @__PURE__ */ t(
343
+ Q2,
344
+ {
345
+ fallback: /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
346
+ children: p
347
+ }
348
+ );
349
+ }, A0 = ({ feature: e, className: s, appNode: n, responsiveStore: o }) => e && e.featureConfig.get().type === y.GAMES ? /* @__PURE__ */ t(
350
+ I0,
351
+ {
352
+ className: s,
353
+ appNode: n,
354
+ responsiveStore: o,
355
+ gamification: e
356
+ }
357
+ ) : null, b0 = () => K, R0 = /* @__PURE__ */ C(b0())({
358
+ name: "ButtonIcon",
359
+ class: "b1whzxvd",
360
+ propsAsIs: !0
361
+ }), _ = "channels", y0 = (e) => {
362
+ var s;
363
+ return /* @__PURE__ */ t(a2, {
364
+ ...e,
365
+ id: "channels",
366
+ label: "Channels",
367
+ icon: /* @__PURE__ */ t(R0, {
368
+ name: "icon-btn-channels",
369
+ "data-selected": (s = e.active) == null ? void 0 : s.toString()
370
+ })
371
+ });
372
+ }, k0 = () => K, $0 = /* @__PURE__ */ C(k0())({
373
+ name: "ButtonIcon",
374
+ class: "b11des7c",
375
+ propsAsIs: !0
376
+ }), b = "featuredGroups", D0 = (e) => {
377
+ var s;
378
+ return /* @__PURE__ */ t(a2, {
379
+ ...e,
380
+ label: e.labelFull ? "Featured Groups +" : "FG+",
381
+ id: "featuredGroups",
382
+ icon: /* @__PURE__ */ t($0, {
383
+ name: "icon-btn-feature-groups",
384
+ "data-selected": (s = e.active) == null ? void 0 : s.toString()
385
+ })
386
+ });
387
+ }, w0 = "leaderboard", F0 = /* @__PURE__ */ C("div")({
388
+ name: "Navigation",
389
+ class: "n19lpak2",
390
+ propsAsIs: !1
391
+ }), O0 = () => b2, V0 = /* @__PURE__ */ C(O0())({
392
+ name: "NavigationItems",
393
+ class: "n1w473c2",
394
+ propsAsIs: !0
395
+ }), B0 = W2(
396
+ ({ activeOverlay: e, setActiveOverlay: s, scrollToTop: n, sdkReady: o, className: r, responsiveStore: i }, a) => {
397
+ const { screen: p } = v(i, { keys: ["screen"] });
398
+ return /* @__PURE__ */ L(F0, { className: r, children: [
399
+ /* @__PURE__ */ L(V0, { children: [
400
+ /* @__PURE__ */ t(
401
+ y0,
402
+ {
403
+ active: e === _,
404
+ onClick: () => {
405
+ s(_), e !== _ && n();
406
+ }
407
+ }
408
+ ),
409
+ /* @__PURE__ */ t(
410
+ D0,
411
+ {
412
+ active: e === b,
413
+ disabled: !o,
414
+ onClick: () => {
415
+ s(b), e !== b && n();
416
+ },
417
+ labelFull: p.size >= I.md && p.size < I.xl
418
+ }
419
+ )
420
+ ] }),
421
+ /* @__PURE__ */ t(
422
+ "div",
423
+ {
424
+ ref: a
425
+ }
426
+ )
427
+ ] });
428
+ }
429
+ ), x0 = /* @__PURE__ */ C("div")({
430
+ name: "Container",
431
+ class: "czz4rjk",
432
+ propsAsIs: !1
433
+ }), H0 = /* @__PURE__ */ C("div")({
434
+ name: "CloseIconWrap",
435
+ class: "cxmojsy",
436
+ propsAsIs: !1
437
+ }), U0 = () => K, P0 = /* @__PURE__ */ C(U0())({
438
+ name: "CloseIcon",
439
+ class: "c1urm3yx",
440
+ propsAsIs: !0
441
+ }), G0 = /* @__PURE__ */ C("div")({
442
+ name: "Title",
443
+ class: "tme976v",
444
+ propsAsIs: !1
445
+ }), M0 = /* @__PURE__ */ C("img")({
446
+ name: "SponsorLogo",
447
+ class: "s1lal9yz",
448
+ propsAsIs: !1
449
+ }), z0 = /* @__PURE__ */ C("div")({
450
+ name: "PresentsTitle",
451
+ class: "pnn1sv1",
452
+ propsAsIs: !1
453
+ }), K0 = /* @__PURE__ */ C("div")({
454
+ name: "Subtitle",
455
+ class: "s1hjj1y8",
456
+ propsAsIs: !1
457
+ }), Q0 = /* @__PURE__ */ C("div")({
458
+ name: "Description",
459
+ class: "dz7yjzw",
460
+ propsAsIs: !1
461
+ }), W0 = /* @__PURE__ */ C("button")({
462
+ name: "ActionButton",
463
+ class: "avpowqk",
464
+ propsAsIs: !1
465
+ }), X = ({ close: e, action: s, onboarding: n }) => {
466
+ var o, r, i, a, p, c, d, l;
467
+ return /* @__PURE__ */ L(x0, { children: [
468
+ /* @__PURE__ */ t(H0, { onClick: e, children: /* @__PURE__ */ t(P0, { name: "icon-cross" }) }),
469
+ ((r = (o = n == null ? void 0 : n.titleCard) == null ? void 0 : o.media) == null ? void 0 : r.sponsorLogo) && /* @__PURE__ */ L(G0, { children: [
470
+ /* @__PURE__ */ t(M0, { alt: "sponsor-logo", src: (a = (i = n == null ? void 0 : n.titleCard) == null ? void 0 : i.media) == null ? void 0 : a.sponsorLogo }),
471
+ /* @__PURE__ */ t(z0, { children: "PRESENTS" })
472
+ ] }),
473
+ ((p = n == null ? void 0 : n.titleCard) == null ? void 0 : p.title) && /* @__PURE__ */ t(K0, { children: (c = n == null ? void 0 : n.titleCard) == null ? void 0 : c.title }),
474
+ ((d = n == null ? void 0 : n.titleCard) == null ? void 0 : d.subtitle) && /* @__PURE__ */ t(Q0, { children: (l = n == null ? void 0 : n.titleCard) == null ? void 0 : l.subtitle }),
475
+ /* @__PURE__ */ t(W0, { onClick: s, children: "Play Now" })
476
+ ] });
477
+ }, Z0 = "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", M = [{
478
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
479
+ tagline: "Featured groups+ experience",
480
+ headline: /* @__PURE__ */ L($, {
481
+ children: ["Welcome to ", /* @__PURE__ */ t("br", {}), " Featured Groups +"]
482
+ })
483
+ }, {
484
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
485
+ headline: "Get real-time insights"
486
+ }, {
487
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",
488
+ headline: "Predictions, trivia & polls synced to match play"
489
+ }, {
490
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",
491
+ headline: "Win points for every answer you get right"
492
+ }, {
493
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
494
+ headline: "Compete against friends on the leaderboard"
495
+ }], q0 = /* @__PURE__ */ C("div")({
496
+ name: "OnboardingContainer",
497
+ class: "on59ra",
498
+ propsAsIs: !1
499
+ }), Y0 = () => z, j0 = /* @__PURE__ */ C(Y0())({
500
+ name: "OnboardingNotificationContainer",
501
+ class: "op1wk5d",
502
+ propsAsIs: !0
503
+ }), J = /* @__PURE__ */ C("div")({
504
+ name: "InnerContainer",
505
+ class: "i1i1g2vj",
506
+ propsAsIs: !1
507
+ }), X0 = ({
508
+ deepLink: e,
509
+ onboardingOpts: s,
510
+ notification: n,
511
+ gamification: o,
512
+ loading: r,
513
+ sdk: i
514
+ }) => {
515
+ var a, p, c, d, l, u, m;
516
+ const f = v(o.friends.getStore()), [h, E] = T(void 0), N = F(() => {
517
+ var g, D;
518
+ const Z = i.getInviter();
519
+ return Z ? (D = (g = f.data) == null ? void 0 : g.find(({
520
+ slId: C2
521
+ }) => C2 === Z)) == null ? void 0 : D.name : "";
522
+ }, [f.data, i]);
523
+ return S(() => {
524
+ const g = e.$store.subscribe((D) => {
525
+ D && E(D.data);
526
+ });
527
+ return () => {
528
+ g();
529
+ };
530
+ }, [e.$store]), /* @__PURE__ */ t(q0, {
531
+ children: /* @__PURE__ */ t(y2, {
532
+ loading: r,
533
+ rules: [{
534
+ label: "Answer as many questions as you like.",
535
+ icon: "icon-btn-feature-groups"
536
+ }, {
537
+ label: "Win points for each correct trivia or prediction answer.",
538
+ icon: "icon-thumb-up"
539
+ }, {
540
+ label: "Top the leader board and best your friends.",
541
+ icon: "icon-trophy"
542
+ }],
543
+ rulesBtnLabel: (a = s.rules) == null ? void 0 : a.buttonLabel,
544
+ rulesTitle: (p = s.rules) == null ? void 0 : p.heading,
545
+ termsTitle: "Terms and Conditions",
546
+ termsText: (c = s.rules) == null ? void 0 : c.terms,
547
+ steps: M,
548
+ primaryColor: (d = s.inviteCard) == null ? void 0 : d.iconColor,
549
+ inviteLink: h,
550
+ inviteCardTitle: (l = s.inviteCard) == null ? void 0 : l.heading,
551
+ inviteCardSubtext: (u = s.inviteCard) == null ? void 0 : u.subtext,
552
+ inviteCardBtnLabel: (m = s.inviteCard) == null ? void 0 : m.buttonLabel,
553
+ onClose: () => {
554
+ var g;
555
+ (g = n.close) == null || g.call(n);
556
+ },
557
+ gamification: o,
558
+ sdk: i,
559
+ inviterName: N
560
+ })
561
+ });
562
+ }, J0 = ({
563
+ sdk: e,
564
+ notification: s,
565
+ saveHeight: n,
566
+ style: o,
567
+ appNode: r,
568
+ sdkInDesktopView: i,
569
+ responsiveStore: a
570
+ }) => {
571
+ var p;
572
+ const c = R(null), d = s.data.onboarding, [l, u] = T(d == null ? void 0 : d.instantOpen), m = e.getFeature(y.GAMES), f = F(() => M == null ? void 0 : M.map(({
573
+ graphicSrc: g
574
+ }) => g), []), {
575
+ screen: h
576
+ } = v(a, {
577
+ keys: ["screen"]
578
+ });
579
+ (p = d == null ? void 0 : d.titleCard) != null && p.media && (d.titleCard.media.sponsorLogo = Z0), Z2(() => {
580
+ var g;
581
+ n(((g = c.current) == null ? void 0 : g.getBoundingClientRect().height) || 0);
582
+ }, [n]);
583
+ const {
584
+ loading: E,
585
+ throttled: N
586
+ } = R2(f);
587
+ return l && m && d && r.current && !N ? /* @__PURE__ */ t(i2, {
588
+ container: r,
589
+ useContainer: !i,
590
+ children: /* @__PURE__ */ t(X0, {
591
+ notification: s,
592
+ setOpened: u,
593
+ gamification: m,
594
+ onboardingOpts: d,
595
+ deepLink: m.deepLink,
596
+ loading: E,
597
+ sdk: e
598
+ })
599
+ }) : /* @__PURE__ */ L($, {
600
+ children: [/* @__PURE__ */ t(J, {
601
+ ref: c,
602
+ style: {
603
+ position: "absolute",
604
+ visibility: "hidden"
605
+ },
606
+ children: /* @__PURE__ */ t(X, {
607
+ close: () => {
608
+ },
609
+ action: () => {
610
+ },
611
+ onboarding: d
612
+ })
613
+ }), /* @__PURE__ */ t(j0, {
614
+ style: o,
615
+ hiding: s.hiding,
616
+ children: /* @__PURE__ */ t(J, {
617
+ children: /* @__PURE__ */ t(X, {
618
+ close: s.close,
619
+ action: () => {
620
+ var g;
621
+ u(!0), (((g = r.current) == null ? void 0 : g.getBoundingClientRect().y) || 0) < 0 && Q(r, h.size, {
622
+ behavior: "smooth"
623
+ });
624
+ },
625
+ onboarding: d
626
+ })
627
+ })
628
+ })]
629
+ });
630
+ }, e1 = () => z, s1 = /* @__PURE__ */ C(e1())({
631
+ name: "Container",
632
+ class: "c1f0y7nw",
633
+ propsAsIs: !0
634
+ }), p2 = /* @__PURE__ */ C("div")({
635
+ name: "InnerContainer",
636
+ class: "i1qa3p7a",
637
+ propsAsIs: !1
638
+ }), n1 = () => p2, t1 = /* @__PURE__ */ C(n1())({
639
+ name: "HiddenContainer",
640
+ class: "hrthymv",
641
+ propsAsIs: !0
642
+ }), o1 = /* @__PURE__ */ C("div")({
643
+ name: "NotificationRefreshing",
644
+ class: "n13rok4i",
645
+ propsAsIs: !1
646
+ }), r1 = () => k2, i1 = /* @__PURE__ */ C(r1())({
647
+ name: "Pill",
648
+ class: "pht79xf",
649
+ propsAsIs: !0
650
+ }), a1 = (e) => {
651
+ const [s, n] = T(0), o = R(null), r = w((a) => {
652
+ o.current = a;
653
+ }, []);
654
+ S(() => {
655
+ var a;
656
+ const p = (a = o.current) == null ? void 0 : a.getBoundingClientRect();
657
+ p && n(p.height);
658
+ }, [e]);
659
+ const i = w((a) => {
660
+ n(a);
661
+ }, []);
662
+ return [r, s, i];
663
+ }, l1 = ({
664
+ sdk: e,
665
+ notification: s,
666
+ appNode: n,
667
+ responsiveStore: o
668
+ }) => {
669
+ var r, i;
670
+ const {
671
+ sdkInDesktopView: a
672
+ } = v(o, {
673
+ keys: ["sdkInDesktopView"]
674
+ }), {
675
+ sdk: p
676
+ } = W(), [c, d, l] = a1(s.id);
677
+ return s.type === O.QUESTION ? /* @__PURE__ */ L($, {
678
+ children: [/* @__PURE__ */ t(t1, {
679
+ ref: c,
680
+ children: /* @__PURE__ */ t(q, {
681
+ ...s
682
+ })
683
+ }), /* @__PURE__ */ L(s1, {
684
+ style: {
685
+ height: s.hiding ? 0 : d
686
+ },
687
+ hiding: s.hiding,
688
+ children: [/* @__PURE__ */ t(p2, {
689
+ style: {
690
+ height: "100%"
691
+ },
692
+ children: /* @__PURE__ */ t(q, {
693
+ ...s,
694
+ controlVideo: p == null ? void 0 : p.controlVideoPlayer
695
+ })
696
+ }), /* @__PURE__ */ t(o1, {}, s.id)]
697
+ })]
698
+ }) : s.type === O.QUESTION_RESOLVED && (i = (r = s.data) == null ? void 0 : r.question) != null && i.predictionResult ? /* @__PURE__ */ t(D2, {
699
+ style: {
700
+ height: s.hiding ? 0 : d
701
+ },
702
+ saveHeight: l,
703
+ close: s.close,
704
+ hiding: s.hiding,
705
+ ...s.data.question,
706
+ mastersApp: !0
707
+ }) : s.type === O.ONBOARDING ? /* @__PURE__ */ t(J0, {
708
+ style: {
709
+ height: s.hiding ? 0 : d
710
+ },
711
+ saveHeight: l,
712
+ sdk: e,
713
+ notification: s,
714
+ sdkInDesktopView: a,
715
+ appNode: n,
716
+ responsiveStore: o
717
+ }) : null;
718
+ }, d1 = "p1co32q0", c1 = ({
719
+ pill: e,
720
+ setPill: s,
721
+ appNode: n,
722
+ headerNode: o,
723
+ scrollNode: r,
724
+ responsiveStore: i,
725
+ scrollStore: a
726
+ }) => {
727
+ var p, c;
728
+ const {
729
+ screen: d
730
+ } = v(i, {
731
+ keys: ["screen"]
732
+ }), {
733
+ tabsShown: l,
734
+ scrollPosition: u
735
+ } = v(a, {
736
+ keys: ["tabsShown", "scrollPosition"]
737
+ });
738
+ S(() => {
739
+ i.get().sdkInDesktopView ? u < 50 && s(null) : u > -50 && s(null);
740
+ }, [u, i, s]);
741
+ const m = i.get().sdkInDesktopView ? n : o;
742
+ return !e || !m.current ? null : w2.createPortal(/* @__PURE__ */ t(i1, {
743
+ title: e.type === O.QUESTION_RESOLVED ? "Prediction result" : `New ${((c = F2[(p = e.data) == null ? void 0 : p.questionType]) == null ? void 0 : c.label) || "notification"}`,
744
+ onClick: () => {
745
+ var f;
746
+ i.get().sdkInDesktopView ? (f = r.current) == null || f.scrollTo({
747
+ top: 0,
748
+ behavior: "smooth"
749
+ }) : Q(n, d.size, {
750
+ behavior: "smooth"
751
+ }), s(null);
752
+ },
753
+ className: O2(l && d1, "sl-pill-button")
754
+ }), m.current);
755
+ }, p1 = ({
756
+ sdk: e,
757
+ headerNode: s,
758
+ scrollNode: n,
759
+ responsiveStore: o,
760
+ appNode: r,
761
+ scrollStore: i
762
+ }) => {
763
+ const [a] = T(e.getNotificationsStore()), p = v(a), [c, d] = T(null), l = F(() => e.getActiveNotification(), [e, p]);
764
+ return S(() => {
765
+ l && $2.emit("notification", {
766
+ action: "rendered",
767
+ payload: {
768
+ questionId: l.data.questionId,
769
+ questionType: l.data.questionType
770
+ }
771
+ });
772
+ }, [l]), S(() => {
773
+ l && (o.get().sdkInDesktopView || o.get().sdkInView) && (!o.get().sdkInDesktopView && o.get().sdkInView && d(l), o.get().sdkInDesktopView && window.requestAnimationFrame(() => {
774
+ i.get().scrollPosition !== 0 && d(l);
775
+ }));
776
+ }, [l]), S(() => {
777
+ l || d(null);
778
+ }, [l]), /* @__PURE__ */ L($, {
779
+ children: [!c && l && /* @__PURE__ */ t(l1, {
780
+ headerNode: s,
781
+ appNode: r,
782
+ sdk: e,
783
+ notification: l,
784
+ responsiveStore: o
785
+ }), c && /* @__PURE__ */ t(c1, {
786
+ pill: c,
787
+ setPill: d,
788
+ appNode: r,
789
+ notification: l,
790
+ headerNode: s,
791
+ scrollNode: n,
792
+ scrollStore: i,
793
+ responsiveStore: o
794
+ })]
795
+ });
796
+ }, C1 = (e) => {
797
+ const s = R(""), [n, o] = T(!1), r = v(e.status), i = v(e.sdkStore.slStreamId), a = v(e.userId()), p = v(e.getActiveFeature()), c = r === "ready" && !!i.data, [d, l] = T(b), u = w(
798
+ (h, E) => {
799
+ l(E), h && e.createEventSession(h), E === b ? window.requestAnimationFrame(() => {
800
+ e.openFeature(y.GAMES);
801
+ }) : e.closeFeature(!1);
802
+ },
803
+ [e]
804
+ );
805
+ S(() => {
806
+ !c && d === b && (l(_), e.closeFeature(!0));
807
+ }, [c, d, e]), S(() => {
808
+ p === y.GAMES ? l(b) : p === y.UNSET && l(_);
809
+ const h = e.getFeature(y.GAMES);
810
+ h && (h.closeQuestion(), h.closeUser());
811
+ }, [p, e]);
812
+ const m = w(
813
+ (h) => {
814
+ s.current = h, o(!0), e.initializeApp({ skipOrganizationSettings: !0 }).then(({ enabled: E, err: N }) => {
815
+ if (N) {
816
+ u(h, _);
817
+ return;
818
+ }
819
+ if (E) {
820
+ e.isUserAuthorized().then((g) => {
821
+ if (g) {
822
+ u(h, _);
823
+ return;
824
+ } else
825
+ e.disableApp();
826
+ });
827
+ return;
828
+ }
829
+ });
830
+ },
831
+ [u, e]
832
+ ), f = w(() => {
833
+ o(!1), e.disableApp();
834
+ }, [e]);
835
+ return S(() => {
836
+ if (!a) {
837
+ c && (l(_), e.disableApp());
838
+ return;
839
+ }
840
+ if (a && s.current && n) {
841
+ e.initializeApp({ skipOrganizationSettings: !0 }).then(() => {
842
+ e.createEventSession(s.current);
843
+ });
844
+ return;
845
+ }
846
+ }, [a]), S(() => () => {
847
+ o(!1), e.disableApp();
848
+ }, [o, e]), {
849
+ sdkEnabled: n,
850
+ sdkReady: c,
851
+ activeOverlay: d,
852
+ activateAndLoadOverlay: u,
853
+ activateEventWithId: m,
854
+ deactivate: f,
855
+ isLogged: !!a
856
+ };
857
+ }, e2 = Object.keys(I), P = () => {
858
+ const e = window.innerWidth;
859
+ let s = "sm";
860
+ for (let n = e2.length - 1; n > 0; n--) {
861
+ const o = e2[n];
862
+ if (!(e < I[o]) && e >= I[o]) {
863
+ s = o;
864
+ break;
865
+ }
866
+ }
867
+ return {
868
+ name: s,
869
+ size: I[s]
870
+ };
871
+ }, s2 = (e) => {
872
+ var s;
873
+ return (((s = e.current) == null ? void 0 : s.getBoundingClientRect().y) || 0) < -68;
874
+ }, n2 = (e) => e >= I.xl, u1 = (e) => {
875
+ const [s] = T(() => {
876
+ const n = P();
877
+ return t2({
878
+ screen: P(),
879
+ sdkInView: s2(e),
880
+ sdkInDesktopView: n2(n.size)
881
+ });
882
+ });
883
+ return S(() => {
884
+ const n = G(() => {
885
+ s.setKey("sdkInView", s2(e));
886
+ }, 200), o = G(() => {
887
+ const r = P();
888
+ s.setKey("screen", r), s.setKey("sdkInDesktopView", n2(r.size));
889
+ }, 200);
890
+ return window.addEventListener("scroll", n), window.addEventListener("resize", o), () => {
891
+ window.removeEventListener("scroll", n), window.removeEventListener("resize", o);
892
+ };
893
+ }, [s, e]), [s];
894
+ }, v1 = {
895
+ ...V2,
896
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
897
+ // @ts-expect-error
898
+ BG_TRANSPARENT: "rgba(0,0,0, .8)",
899
+ BLUE_QUESTION_ACTION_BTN: "#1589ee",
900
+ WHITE: "#FFFFFF",
901
+ BLUE: "#2d6ffd",
902
+ GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
903
+ GREY_PRIMARY: "#909395",
904
+ PRIMARY_1: "#107D57",
905
+ PRIMARY_2: "#006747",
906
+ PRIMARY_TEXT: "#25282A",
907
+ QUESTION_TYPE_ICON: "#107D57",
908
+ SUCCESS: "#107D57",
909
+ UNSUCCESS: "#DF2F3B",
910
+ SECONDARY_RED1: "#DF2F3B",
911
+ NEUTRALS_WHITE: "#FFFFFF",
912
+ NEUTRALS_WHITE1: "#FFFFFF",
913
+ NEUTRALS_GRAY1: "#F7F7F7",
914
+ NEUTRALS_GRAY2: "#F2F2F1",
915
+ NEUTRALS_GRAY3: "#E8E8E8",
916
+ NEUTRALS_GRAY4: "#D9D9D6",
917
+ NEUTRALS_GRAY5: "#B1B3B3",
918
+ NEUTRALS_GRAY6: "#888B8D",
919
+ NEUTRALS_GRAY7: "#6B6F73",
920
+ NEUTRALS_GRAY9: "#25282A",
921
+ SDK_CONTAINER_BG: "#F7F7F7",
922
+ SDK_WHITE_CONTAINER_BG: "#fff",
923
+ SDK_DARK_CONTAINER_BG: "#fff",
924
+ SDK_PREDICTION_RESULT_SUCCESS_BG: "#fff",
925
+ SDK_PREDICTION_RESULT_INCORRECT_BG: "#fff",
926
+ SDK_PREDICTION_RESULT_SUCCESS_TEXT: "#107D57",
927
+ SDK_PREDICTION_RESULT_ERROR_TITLE: "#090E13",
928
+ SDK_PREDICTION_RESULT_ERROR_SUBTITLE: "#DF2F3B",
929
+ SDK_PREDICTION_RESULT_CLOSE_ICON: "#6B6F73",
930
+ SDK_PREDICTION_FEEDBACK_SUCCESS_ICON: "#107D57",
931
+ SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1: "#CD2525",
932
+ SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2: "#fff",
933
+ PREDICTION_BG_LINES_CORRECT: "#01AB58",
934
+ PREDICTION_BG_LINES_INCORRECT: "#888B8D",
935
+ SKELETON_COLOR_1: "#f1efef",
936
+ SKELETON_COLOR_2: "#f9f8f8",
937
+ TABS_CONTAINER_BG: "#F2F2F1",
938
+ TABS_ACTIVE_BG: "#FFFFFF",
939
+ TABS_COLOR: "#6B6F73",
940
+ TABS_ACTIVE_COLOR: "#107D57",
941
+ CARD_BG: "#FFFFFF",
942
+ CARD_BORDER: "#fff",
943
+ BORDER: "#E8E8E8",
944
+ VOTE_BTN_BG: "#F7F7F7",
945
+ VOTE_BTN_BORDER: "rgb(232, 232, 232)",
946
+ VOTE_BTN_DISABLED_BORDER: "#B1B3B3",
947
+ VOTE_BTN_SELECTED_BORDER: "#25282A",
948
+ VOTE_BTN_NOT_SELECTED_BORDER: "#E8E8E8",
949
+ VOTE_BTN_SELECTED_BG: "#FFFFFF",
950
+ VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF",
951
+ VOTE_BTN_NOT_SELECTED_BG_UNSET: "rgb(196, 196, 196)",
952
+ VOTED_ANSWER_BG: "rgba(16, 125, 87, 0.10)",
953
+ VOTED_BTN_RCT_BG: "rgba(16, 125, 87, 0.30)",
954
+ IN_APP_BG: "rgba(255, 255, 255, 0.90)",
955
+ IN_APP_QUESTION_TYPE_ICON: "#1D7BFF",
956
+ IN_APP_QUESTION_TYPE_LABEL: "#82899E",
957
+ IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
958
+ IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
959
+ IN_APP_QUESTION_RESULT_LINE: "#babfc5"
960
+ }, A = {
961
+ ...k,
962
+ REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
963
+ SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
964
+ COLOR: "#fff",
965
+ WEIGHT_DEFAULT: "500"
966
+ }, h1 = Object.entries(v1).reduce((e, [s, n]) => `
967
+ ${e}
968
+ --color-${s.toLowerCase().replaceAll("_", "-")}: ${n};
969
+ `, "");
970
+ `${h1}${A.REGULAR}${A.REGULAR}${A.COLOR}${A.SERIF}${A.WEIGHT_DEFAULT}${A.WEIGHT_DEFAULT1}${A.WEIGHT_DEFAULT2}${A.WEIGHT_DEFAULT3}${k.SIZE_DEFAULT}${k.SIZE_DEFAULT1}${k.SIZE_DEFAULT2}${k.LINE_HEIGHT}${k.MARGIN_TITLE_DEFAULT}${Y.down("xl")`
971
+ --header-offset: 56px;
972
+ --watch-live-header: 46px;
973
+ `}${Y.intermediate("xl", "lg")`
974
+ --header-offset: 76px;
975
+ `}`;
976
+ const m1 = "m1ojpy2l", g1 = ({ children: e, style: s }) => /* @__PURE__ */ t("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ t("div", { className: m1, style: s, children: e }) }), E1 = ({ sdk: e, className: s, scrollStore: n, appNode: o, scrollNode: r, responsiveStore: i }) => {
977
+ const [, a] = U2(e);
978
+ return /* @__PURE__ */ t(
979
+ _0,
980
+ {
981
+ className: s,
982
+ scrollNode: r,
983
+ appNode: o,
984
+ scrollStore: n,
985
+ feature: a,
986
+ responsiveStore: i,
987
+ sdk: e
988
+ }
989
+ );
990
+ }, L1 = ({ sdk: e, className: s, appNode: n, responsiveStore: o }) => {
991
+ const r = v(e.featuresList.getStore());
992
+ return r ? Array.from(r, (i) => {
993
+ const a = e.getFeature(i);
994
+ return a ? /* @__PURE__ */ t(
995
+ A0,
996
+ {
997
+ className: s,
998
+ appNode: n,
999
+ feature: a,
1000
+ responsiveStore: o,
1001
+ sdk: e
1002
+ },
1003
+ i
1004
+ ) : null;
1005
+ }) : null;
1006
+ }, f1 = ({ sdk: e, overlays: s, children: n }) => {
1007
+ const o = R(null), r = R(null), [i] = u1(o), [a, p] = a0(o, i), { sdkEnabled: c, sdkReady: d, activeOverlay: l, activateAndLoadOverlay: u, activateEventWithId: m, deactivate: f, isLogged: h } = C1(e);
1008
+ x(o, { enabled: c, event: "click", listener: B2 }), x(a, {
1009
+ enabled: c,
1010
+ event: "scrollend",
1011
+ listener: x2,
1012
+ useDomNode: !0
1013
+ }), x(a, {
1014
+ enabled: c,
1015
+ event: "click",
1016
+ listener: H2,
1017
+ useDomNode: !0
1018
+ });
1019
+ const E = F(() => ({ sdk: e }), [e]);
1020
+ return S(() => {
1021
+ import("./gamification-feature2.js");
1022
+ }, []), /* @__PURE__ */ t(c2.Provider, { value: E, children: /* @__PURE__ */ L(j2, { ref: o, children: [
1023
+ c && /* @__PURE__ */ t(
1024
+ B0,
1025
+ {
1026
+ ref: r,
1027
+ sdkReady: d,
1028
+ activeOverlay: l,
1029
+ className: H,
1030
+ setActiveOverlay: (N) => u("", N),
1031
+ scrollToTop: () => {
1032
+ var N;
1033
+ return (N = a.current) == null ? void 0 : N.scrollTo(0, 0);
1034
+ },
1035
+ responsiveStore: i
1036
+ }
1037
+ ),
1038
+ /* @__PURE__ */ L(X2, { className: "sl-hide-on-modal", ref: a, "data-nav": c.toString(), children: [
1039
+ d && /* @__PURE__ */ t(
1040
+ p1,
1041
+ {
1042
+ sdk: e,
1043
+ scrollNode: a,
1044
+ headerNode: r,
1045
+ appNode: o,
1046
+ scrollStore: p,
1047
+ responsiveStore: i
1048
+ }
1049
+ ),
1050
+ /* @__PURE__ */ t("div", { style: !c || l === _ ? {} : { display: "none" }, children: n && n({ activateEventWithId: m, deactivate: f }) }),
1051
+ s && l === w0 && s[l],
1052
+ d && l === b && /* @__PURE__ */ t(
1053
+ E1,
1054
+ {
1055
+ scrollStore: p,
1056
+ responsiveStore: i,
1057
+ scrollNode: a,
1058
+ appNode: o,
1059
+ className: H,
1060
+ sdk: e
1061
+ }
1062
+ ),
1063
+ d && /* @__PURE__ */ t(L1, { responsiveStore: i, appNode: o, className: H, sdk: e })
1064
+ ] }),
1065
+ c && !h && /* @__PURE__ */ t(
1066
+ "div",
1067
+ {
1068
+ style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" },
1069
+ children: "You are not logged in."
1070
+ }
1071
+ )
1072
+ ] }) });
1073
+ }, b1 = ({ sdkKey: e, plugins: s, children: n, onDeepLinkHandled: o, videoPlayerController: r, production: i = !0 }) => /* @__PURE__ */ t(
1074
+ P2,
1075
+ {
1076
+ sdkKey: e,
1077
+ plugins: s,
1078
+ production: i,
1079
+ autoEnable: !1,
1080
+ onDeepLinkHandled: o,
1081
+ videoPlayerController: r,
1082
+ children: n
1083
+ }
1084
+ ), S1 = ({ children: e, overlays: s }) => {
1085
+ const { sdk: n, status: o } = l2(G2);
1086
+ return o === M2.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), e({})) : n ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(g1, { style: { height: "100%" }, children: /* @__PURE__ */ t(f1, { sdk: n, overlays: s, children: e }) }) }) : e({});
1087
+ };
1088
+ class R1 extends q2 {
1089
+ constructor(s) {
1090
+ super(s), this.state = { hasError: !1 };
1091
+ }
1092
+ static getDerivedStateFromError() {
1093
+ return { hasError: !0 };
1094
+ }
1095
+ componentDidCatch(s, n) {
1096
+ console.error(s, n.componentStack);
1097
+ }
1098
+ render() {
1099
+ return this.state.hasError ? this.props.children({}) : /* @__PURE__ */ t(S1, { ...this.props });
1100
+ }
1101
+ }
1102
+ export {
1103
+ b1 as M,
1104
+ R1 as a,
1105
+ A1 as z
1106
+ };