@streamlayer/react 1.23.2 → 1.24.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 (174) hide show
  1. package/lib/app/masters.d.ts +0 -1
  2. package/lib/cjs/Question.js +1 -1
  3. package/lib/cjs/advertisement.js +203 -28
  4. package/lib/cjs/analytics.js +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -1
  8. package/lib/cjs/gamification-feature.js +1 -1
  9. package/lib/cjs/gamification-feature2.js +1 -1
  10. package/lib/cjs/hooks-n9ax4LRT.js +1 -0
  11. package/lib/cjs/index-ByUNFvMk.js +5 -0
  12. package/lib/cjs/index.js +1 -1
  13. package/lib/cjs/index10.js +1 -1
  14. package/lib/cjs/index11.js +1 -3
  15. package/lib/cjs/index12.js +1 -1
  16. package/lib/cjs/index13.js +1 -3
  17. package/lib/cjs/index14.js +4 -1
  18. package/lib/cjs/index15.js +1 -1
  19. package/lib/cjs/index16.js +5 -3
  20. package/lib/cjs/index2.js +1 -1
  21. package/lib/cjs/index3.js +1 -1
  22. package/lib/cjs/index4.js +5 -3
  23. package/lib/cjs/index5.js +1 -1
  24. package/lib/cjs/index6.js +1 -1
  25. package/lib/cjs/index7.js +1 -1
  26. package/lib/cjs/index8.js +1 -1
  27. package/lib/cjs/index9.js +7 -1
  28. package/lib/cjs/insight.js +1 -1
  29. package/lib/cjs/masters.js +1 -1
  30. package/lib/cjs/masters2.js +8 -1
  31. package/lib/cjs/notification.js +1 -1
  32. package/lib/cjs/pause-ad.js +1 -1
  33. package/lib/cjs/points.js +1 -1
  34. package/lib/cjs/polymarket.js +14 -9
  35. package/lib/cjs/sl-types.js +1 -1
  36. package/lib/cjs/storage.js +1 -1
  37. package/lib/cjs/theme.js +1 -1
  38. package/lib/cjs/useStreamLayerApp.js +1 -1
  39. package/lib/cjs/useStreamLayerApp2.js +17 -3
  40. package/lib/cjs/utils.js +47 -1
  41. package/lib/classic/app/masters.d.ts +0 -1
  42. package/lib/classic/cjs/Question.js +1 -1
  43. package/lib/classic/cjs/advertisement.js +203 -28
  44. package/lib/classic/cjs/analytics.js +1 -1
  45. package/lib/classic/cjs/auth.js +1 -1
  46. package/lib/classic/cjs/bet-pack.js +5 -3
  47. package/lib/classic/cjs/feature.js +1 -1
  48. package/lib/classic/cjs/gamification-feature.js +1 -1
  49. package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
  50. package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
  51. package/lib/classic/cjs/index.js +1 -1
  52. package/lib/classic/cjs/index10.js +1 -1
  53. package/lib/classic/cjs/index11.js +1 -1
  54. package/lib/classic/cjs/index12.js +1 -1
  55. package/lib/classic/cjs/index13.js +4 -3
  56. package/lib/classic/cjs/index2.js +5 -3
  57. package/lib/classic/cjs/index3.js +1 -1
  58. package/lib/classic/cjs/index4.js +1 -1
  59. package/lib/classic/cjs/index5.js +1 -1
  60. package/lib/classic/cjs/index6.js +1 -1
  61. package/lib/classic/cjs/index7.js +7 -1
  62. package/lib/classic/cjs/index8.js +1 -1
  63. package/lib/classic/cjs/index9.js +1 -3
  64. package/lib/classic/cjs/insight.js +1 -1
  65. package/lib/classic/cjs/notification.js +1 -1
  66. package/lib/classic/cjs/notification2.js +1 -1
  67. package/lib/classic/cjs/pause-ad.js +1 -1
  68. package/lib/classic/cjs/points.js +1 -1
  69. package/lib/classic/cjs/polymarket.js +14 -9
  70. package/lib/classic/cjs/sl-types.js +1 -1
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +17 -3
  73. package/lib/classic/cjs/utils.js +47 -1
  74. package/lib/classic/es/Question.js +258 -275
  75. package/lib/classic/es/advertisement.js +22128 -38694
  76. package/lib/classic/es/analytics.js +55 -57
  77. package/lib/classic/es/auth.js +8 -14
  78. package/lib/classic/es/bet-pack.js +2413 -2455
  79. package/lib/classic/es/feature.js +46 -95
  80. package/lib/classic/es/gamification-feature.js +2 -2
  81. package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
  82. package/lib/classic/es/index-ByUNFvMk.js +3775 -0
  83. package/lib/classic/es/index.js +13 -16
  84. package/lib/classic/es/index10.js +2587 -83
  85. package/lib/classic/es/index11.js +305 -3087
  86. package/lib/classic/es/index12.js +121 -124
  87. package/lib/classic/es/index13.js +559 -589
  88. package/lib/classic/es/index2.js +1755 -2114
  89. package/lib/classic/es/index3.js +13 -13
  90. package/lib/classic/es/index4.js +4 -283
  91. package/lib/classic/es/index5.js +5 -5
  92. package/lib/classic/es/index6.js +285 -10
  93. package/lib/classic/es/index7.js +179 -6
  94. package/lib/classic/es/index8.js +5 -10
  95. package/lib/classic/es/index9.js +8 -318
  96. package/lib/classic/es/insight.js +54 -61
  97. package/lib/classic/es/notification.js +5 -5
  98. package/lib/classic/es/notification2.js +730 -787
  99. package/lib/classic/es/pause-ad.js +168 -191
  100. package/lib/classic/es/points.js +47 -55
  101. package/lib/classic/es/polymarket.js +4058 -4289
  102. package/lib/classic/es/sl-types.js +128 -298
  103. package/lib/classic/es/useStreamLayerApp.js +2 -2
  104. package/lib/classic/es/useStreamLayerApp2.js +9090 -11121
  105. package/lib/classic/es/utils.js +28 -28
  106. package/lib/classic/index.d.ts +0 -1
  107. package/lib/classic/source.css +110 -0
  108. package/lib/dist/cjs/gamification-feature.js +1 -1
  109. package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
  110. package/lib/dist/cjs/index.js +1 -1
  111. package/lib/dist/cjs/masters.js +69 -3
  112. package/lib/dist/es/gamification-feature.js +2 -2
  113. package/lib/dist/es/index-ByUNFvMk.js +3775 -0
  114. package/lib/dist/es/index.js +7 -10
  115. package/lib/dist/es/masters.js +16944 -19645
  116. package/lib/dist/index.d.ts +7 -17
  117. package/lib/dist/source.css +64 -0
  118. package/lib/es/Question.js +101 -105
  119. package/lib/es/advertisement.js +22128 -38694
  120. package/lib/es/analytics.js +55 -57
  121. package/lib/es/auth.js +8 -14
  122. package/lib/es/bet-pack.js +18 -29
  123. package/lib/es/feature.js +46 -95
  124. package/lib/es/gamification-feature.js +2 -2
  125. package/lib/es/gamification-feature2.js +2 -2
  126. package/lib/es/hooks-n9ax4LRT.js +97 -0
  127. package/lib/es/index-ByUNFvMk.js +3775 -0
  128. package/lib/es/index.js +13 -17
  129. package/lib/es/index10.js +8 -274
  130. package/lib/es/index11.js +172 -837
  131. package/lib/es/index12.js +2587 -183
  132. package/lib/es/index13.js +258 -314
  133. package/lib/es/index14.js +813 -81
  134. package/lib/es/index15.js +305 -3087
  135. package/lib/es/index16.js +803 -1005
  136. package/lib/es/index2.js +980 -1133
  137. package/lib/es/index3.js +4 -3
  138. package/lib/es/index4.js +2401 -2431
  139. package/lib/es/index5.js +13 -13
  140. package/lib/es/index6.js +5 -285
  141. package/lib/es/index7.js +7 -10
  142. package/lib/es/index8.js +283 -5
  143. package/lib/es/index9.js +180 -10
  144. package/lib/es/insight.js +54 -61
  145. package/lib/es/masters.js +5 -7
  146. package/lib/es/masters2.js +538 -708
  147. package/lib/es/notification.js +663 -719
  148. package/lib/es/pause-ad.js +168 -191
  149. package/lib/es/points.js +48 -56
  150. package/lib/es/polymarket.js +4058 -4289
  151. package/lib/es/sl-types.js +128 -317
  152. package/lib/es/storage.js +74 -75
  153. package/lib/es/theme.js +3 -190
  154. package/lib/es/useStreamLayerApp.js +2 -2
  155. package/lib/es/useStreamLayerApp2.js +9090 -11121
  156. package/lib/es/utils.js +28 -28
  157. package/lib/index.d.ts +0 -1
  158. package/lib/source.css +120 -0
  159. package/lib/style.css +1 -1
  160. package/package.json +23 -26
  161. package/lib/cjs/hooks-WfHlJH12.js +0 -1
  162. package/lib/cjs/index-eShKGO10.js +0 -1
  163. package/lib/cjs/style.css +0 -1
  164. package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
  165. package/lib/classic/cjs/index-eShKGO10.js +0 -1
  166. package/lib/classic/cjs/style.css +0 -1
  167. package/lib/classic/es/hooks-WfHlJH12.js +0 -98
  168. package/lib/classic/es/index-eShKGO10.js +0 -3757
  169. package/lib/classic/style.css +0 -1
  170. package/lib/dist/cjs/index-eShKGO10.js +0 -1
  171. package/lib/dist/es/index-eShKGO10.js +0 -3757
  172. package/lib/dist/style.css +0 -1
  173. package/lib/es/hooks-WfHlJH12.js +0 -98
  174. package/lib/es/index-eShKGO10.js +0 -3757
@@ -1,343 +1,324 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { s as styled_default, u as useStore, A as A$1, c as cx_default, a as NotificationType, R as R$1, D as D$1 } from "./sl-types.js";
3
- import i$5 from "lodash.throttle";
4
- import { useRef, useState, useEffect, createContext, useContext, lazy, useMemo, Suspense, forwardRef, useLayoutEffect, useCallback, Component } from "react";
5
- import { f as f$3, b, A as A$2 } from "./analytics.js";
6
- import { k as k$2, z as z$3, T, I as I$4, c as createSingleStore, t as tn, f as f$5, w as w$1, D, p as p$4 } from "./index16.js";
7
- import { c as c$3, m as m$3 } from "./theme.js";
8
- import { n as nr } from "./index4.js";
9
- import { F as FeatureStatus } from "./feature.js";
10
- import { e as ee, t as te, S as S$1, f as f$4 } from "./index11.js";
11
- import { y as y$3, d as d$2, x as x$1, a as a$2 } from "./index10.js";
12
- import { Q as QuestionType, S as SdkOverlayType } from "./useStreamLayerApp2.js";
13
- import { B as B1 } from "./index6.js";
14
- import { createPortal } from "react-dom";
15
- import { e as eventBus } from "./index3.js";
1
+ import { jsx as n, jsxs as f, Fragment as I } from "react/jsx-runtime";
2
+ import { s as d, u as p, c as S, N as T } from "./sl-types.js";
3
+ import D from "lodash.throttle";
4
+ import { useRef as g, useState as L, useEffect as E, createContext as J, useContext as U, useMemo as _, Suspense as e2, lazy as s2, forwardRef as t2, useLayoutEffect as n2, useCallback as b, Component as r2 } from "react";
5
+ import { A as h, R as o2 } from "./index9.js";
6
+ import { f as G, A as M, a as Q } from "./analytics.js";
7
+ import { Q as i2, z as a2, T as K, I as l2, c as c2, n as d2, f as C2, w as B, a as p2, p as u2 } from "./index16.js";
8
+ import { m as A } from "./theme.js";
9
+ import { a as m2 } from "./index4.js";
10
+ import { F as f2 } from "./feature.js";
11
+ import "nanostores";
12
+ import { Q as E2, Z as L2, y as h2, f as O } from "./index14.js";
13
+ import { O as g2, d as S2, f as _2, a as N2 } from "./index13.js";
14
+ import { Q as T2, S as N } from "./useStreamLayerApp2.js";
15
+ import { B as x } from "./index8.js";
16
+ import { createPortal as I2 } from "react-dom";
17
+ import { e as v2 } from "./index3.js";
16
18
  import "./storage.js";
17
- import { e as e$3 } from "./index12.js";
18
- import { q as q$1, j as j$1, i as i$6, Y } from "./hooks-WfHlJH12.js";
19
- const o$1 = /* @__PURE__ */ styled_default("div")({
19
+ import { e as R2 } from "./index11.js";
20
+ import { V as A2, g as y2, i as k2, j as D2 } from "./hooks-n9ax4LRT.js";
21
+ const b2 = /* @__PURE__ */ d("div")({
20
22
  name: "SDKContainer",
21
23
  class: "s8zgqze",
22
- propsAsIs: false
23
- }), t$1 = "m6t897k", r$3 = /* @__PURE__ */ styled_default("div")({
24
+ propsAsIs: !1
25
+ }), O2 = "m6t897k", F2 = /* @__PURE__ */ d("div")({
24
26
  name: "SDKScrollContainer",
25
27
  class: "sw7pkvp",
26
- propsAsIs: false
27
- }), n$3 = /* @__PURE__ */ styled_default("div")({
28
+ propsAsIs: !1
29
+ }), Z = /* @__PURE__ */ d("div")({
28
30
  name: "SDKContentContainer",
29
31
  class: "s14gkn7u",
30
- propsAsIs: false
31
- }), e$2 = () => n$3, i$4 = /* @__PURE__ */ styled_default(e$2())({
32
+ propsAsIs: !1
33
+ }), B2 = () => Z, V2 = /* @__PURE__ */ d(B2())({
32
34
  name: "SDKWhiteContainer",
33
35
  class: "s1yxstm9",
34
- propsAsIs: true
35
- }), p$3 = /* @__PURE__ */ styled_default("div")({
36
+ propsAsIs: !0
37
+ }), w2 = /* @__PURE__ */ d("div")({
36
38
  name: "TabsContainer",
37
39
  class: "tdpty1s",
38
- propsAsIs: false
39
- }), l$3 = /* @__PURE__ */ styled_default("div")({
40
+ propsAsIs: !1
41
+ }), $2 = /* @__PURE__ */ d("div")({
40
42
  name: "UserSummaryContainer",
41
43
  class: "u136a59y",
42
- propsAsIs: false
43
- });
44
- const y$2 = (e2, i2, o2) => {
45
- var t2;
46
- (t2 = e2.current) == null || t2.scrollTo({
44
+ propsAsIs: !1
45
+ }), z = (s, e, t) => {
46
+ s.current?.scrollTo({
47
47
  top: 0,
48
- ...o2
48
+ ...t
49
49
  });
50
- }, P = 15, z$2 = (e2, i2, o2) => {
51
- const t2 = useRef(null), c2 = useRef(0), [s] = useState(
52
- f$3({
50
+ }, P2 = 15, H2 = (s, e, t) => {
51
+ const r = g(null), o = g(0), [a] = L(
52
+ G({
53
53
  scrollPosition: 0,
54
- tabsShown: false,
54
+ tabsShown: !1,
55
55
  scrollDirection: "forward"
56
56
  })
57
- ), a2 = useStore(i2);
58
- return useEffect(() => {
59
- const n3 = window.innerWidth < A$1.lg && !o2 ? window : t2.current;
60
- if (!n3)
57
+ ), i = p(e);
58
+ return E(() => {
59
+ const l = window.innerWidth < h.lg && !t ? window : r.current;
60
+ if (!l)
61
61
  return () => {
62
62
  };
63
- const l2 = i$5((p2) => {
64
- var u;
65
- const f2 = p2.target;
66
- if (!f2)
63
+ const u = D((m) => {
64
+ const C = m.target;
65
+ if (!C)
67
66
  return;
68
- let r2 = 0;
69
- a2.screen.size < A$1.lg && !o2 ? r2 = ((u = e2.current) == null ? void 0 : u.getBoundingClientRect().y) || 0 : r2 = f2.scrollTop;
70
- const w2 = c2.current - r2;
71
- if (P > Math.abs(w2))
67
+ let c = 0;
68
+ i.screen.size < h.lg && !t ? c = s.current?.getBoundingClientRect().y || 0 : c = C.scrollTop;
69
+ const v = o.current - c;
70
+ if (P2 > Math.abs(v))
72
71
  return;
73
- const S2 = c2.current < r2 ? "forward" : "backward";
74
- c2.current = r2, s.set({
75
- scrollPosition: Math.round(r2),
76
- scrollDirection: S2,
77
- tabsShown: s.get().tabsShown
72
+ const R = o.current < c ? "forward" : "backward";
73
+ o.current = c, a.set({
74
+ scrollPosition: Math.round(c),
75
+ scrollDirection: R,
76
+ tabsShown: a.get().tabsShown
78
77
  });
79
78
  }, 200);
80
- return l2({ target: n3 }), n3.addEventListener("scroll", l2), () => {
81
- n3.removeEventListener("scroll", l2);
79
+ return u({ target: l }), l.addEventListener("scroll", u), () => {
80
+ l.removeEventListener("scroll", u);
82
81
  };
83
- }, [s, e2, a2.screen, o2]), [t2, s];
84
- };
85
- const i$3 = /* @__PURE__ */ styled_default("div")({
82
+ }, [a, s, i.screen, t]), [r, a];
83
+ }, y = /* @__PURE__ */ d("div")({
86
84
  name: "LoadingContainer",
87
85
  class: "l7wseip",
88
- propsAsIs: false
89
- }), v$1 = ({
90
- feature: n3,
91
- sdk: s,
92
- children: a2,
93
- className: r2,
94
- noWait: d2
86
+ propsAsIs: !1
87
+ }), U2 = ({
88
+ feature: s,
89
+ sdk: e,
90
+ children: t,
91
+ className: r,
92
+ noWait: o
95
93
  }) => {
96
- const f2 = useStore(n3.status), t2 = useStore(s.sdkStore.slStreamId);
97
- if (!d2) {
98
- if (t2 != null && t2.loading && !t2.data)
99
- return /* @__PURE__ */ jsx(i$3, {
100
- className: r2,
94
+ const a = p(s.status), i = p(e.sdkStore.slStreamId);
95
+ if (!o) {
96
+ if (i?.loading && !i.data)
97
+ return /* @__PURE__ */ n(y, {
98
+ className: r,
101
99
  children: "Event is loading..."
102
100
  });
103
- if (!(t2 != null && t2.data))
104
- return /* @__PURE__ */ jsx(i$3, {
105
- className: r2,
101
+ if (!i?.data)
102
+ return /* @__PURE__ */ n(y, {
103
+ className: r,
106
104
  children: "Event is forbidden..."
107
105
  });
108
- if (f2 !== FeatureStatus.Ready)
109
- return /* @__PURE__ */ jsx(i$3, {
110
- className: r2,
106
+ if (a !== f2.Ready)
107
+ return /* @__PURE__ */ n(y, {
108
+ className: r,
111
109
  children: "Wait feature..."
112
110
  });
113
111
  }
114
- return a2;
115
- };
116
- const o = createContext({
112
+ return t;
113
+ }, Y = J({
117
114
  sdk: null
118
- }), n$2 = () => useContext(o);
119
- const h$3 = /* @__PURE__ */ styled_default("div")({
115
+ }), F = () => U(Y), G2 = /* @__PURE__ */ d("div")({
120
116
  name: "QuestionContainer",
121
117
  class: "qwgkhsv",
122
- propsAsIs: false
123
- }), x = ({
124
- openedQuestion: t2
118
+ propsAsIs: !1
119
+ }), M2 = ({
120
+ openedQuestion: s
125
121
  }) => {
126
- var o2, s;
127
122
  const {
128
- sdk: r2
129
- } = n$2();
130
- return ((o2 = t2 == null ? void 0 : t2.attributes) == null ? void 0 : o2.attributes.case) === "insight" ? /* @__PURE__ */ jsx(x$1, {
131
- ...t2.attributes.attributes.value,
132
- controlVideo: r2 == null ? void 0 : r2.controlVideoPlayer
133
- }) : ((s = t2 == null ? void 0 : t2.attributes) == null ? void 0 : s.attributes.case) === "tweet" ? /* @__PURE__ */ jsx(a$2, {
134
- ...t2.attributes.attributes.value,
135
- controlVideo: r2 == null ? void 0 : r2.controlVideoPlayer
123
+ sdk: e
124
+ } = F();
125
+ return s?.attributes?.attributes.case === "insight" ? /* @__PURE__ */ n(_2, {
126
+ ...s.attributes.attributes.value,
127
+ controlVideo: e?.controlVideoPlayer
128
+ }) : s?.attributes?.attributes.case === "tweet" ? /* @__PURE__ */ n(N2, {
129
+ ...s.attributes.attributes.value,
130
+ controlVideo: e?.controlVideoPlayer
136
131
  }) : null;
137
- }, d$1 = ({
138
- extendedQuestion: t2,
139
- vote: r2,
140
- close: o2
132
+ }, Q2 = ({
133
+ extendedQuestion: s,
134
+ vote: e,
135
+ close: t
141
136
  }) => {
142
137
  const {
143
- loading: s,
144
- data: i2
145
- } = t2;
146
- return i2 ? /* @__PURE__ */ jsx(ee, {
147
- vote: r2,
148
- close: o2,
149
- openedQuestion: i2,
150
- isLoading: !!s,
151
- mastersApp: true
152
- }) : /* @__PURE__ */ jsx(te, {});
153
- }, H = ({
154
- gamification: t2
138
+ loading: r,
139
+ data: o
140
+ } = s;
141
+ return o ? /* @__PURE__ */ n(E2, {
142
+ vote: e,
143
+ close: t,
144
+ openedQuestion: o,
145
+ isLoading: !!r,
146
+ mastersApp: !0
147
+ }) : /* @__PURE__ */ n(L2, {});
148
+ }, K2 = ({
149
+ gamification: s
155
150
  }) => {
156
- var i2;
157
- const r2 = useStore(t2.openedQuestion.$store), o2 = useStore(t2.openedQuestion.$extendedStore);
158
- if (!r2)
151
+ const e = p(s.openedQuestion.$store), t = p(s.openedQuestion.$extendedStore);
152
+ if (!e)
159
153
  return null;
160
- const s = r2.type;
161
- return /* @__PURE__ */ jsxs(h$3, {
162
- children: [/* @__PURE__ */ jsx(y$3, {
163
- close: t2.closeQuestion,
164
- type: ((i2 = r2.attributes) == null ? void 0 : i2.type) || QuestionType.UNSET,
165
- mastersApp: true
166
- }), s === "question" && /* @__PURE__ */ jsx(d$1, {
167
- vote: t2.submitAnswer,
168
- close: t2.closeQuestion,
169
- extendedQuestion: o2
170
- }), s !== "question" && /* @__PURE__ */ jsx(x, {
171
- openedQuestion: r2
172
- }), /* @__PURE__ */ jsx(d$2, {
173
- mastersApp: true
154
+ const r = e.type;
155
+ return /* @__PURE__ */ f(G2, {
156
+ children: [/* @__PURE__ */ n(g2, {
157
+ close: s.closeQuestion,
158
+ type: e.attributes?.type || T2.UNSET,
159
+ mastersApp: !0
160
+ }), r === "question" && /* @__PURE__ */ n(Q2, {
161
+ vote: s.submitAnswer,
162
+ close: s.closeQuestion,
163
+ extendedQuestion: t
164
+ }), r !== "question" && /* @__PURE__ */ n(M2, {
165
+ openedQuestion: e
166
+ }), /* @__PURE__ */ n(S2, {
167
+ mastersApp: !0
174
168
  })]
175
169
  });
176
- };
177
- const a$1 = ({ store: t2, openQuestion: r2 }) => {
178
- const { sdk: o2 } = n$2(), e2 = useStore(t2);
179
- return /* @__PURE__ */ jsx(k$2, { openQuestion: r2, questions: e2.data, controlVideo: o2 == null ? void 0 : o2.controlVideoPlayer });
180
- };
181
- const n$1 = ({ userSummary: o2 }) => {
182
- var t2;
183
- const r2 = useStore(o2.$store);
184
- return /* @__PURE__ */ jsx(
185
- z$3,
170
+ }, x2 = ({ store: s, openQuestion: e }) => {
171
+ const { sdk: t } = F(), r = p(s);
172
+ return /* @__PURE__ */ n(i2, { openQuestion: e, questions: r.data, controlVideo: t?.controlVideoPlayer });
173
+ }, Z2 = ({ userSummary: s }) => {
174
+ const e = p(s.$store);
175
+ return /* @__PURE__ */ n(
176
+ a2,
186
177
  {
187
- hideFriendsRank: true,
188
- loading: !(r2 != null && r2.summary),
189
- ...r2 == null ? void 0 : r2.summary,
190
- successRate: (t2 = r2 == null ? void 0 : r2.percentage) == null ? void 0 : t2.correct
178
+ hideFriendsRank: !0,
179
+ loading: !e?.summary,
180
+ ...e?.summary,
181
+ successRate: e?.percentage?.correct
191
182
  }
192
183
  );
193
- };
194
- const h$2 = ({ gamification: r2, className: t2, style: o2 }) => /* @__PURE__ */ jsxs(p$3, { className: t2, style: o2, children: [
195
- /* @__PURE__ */ jsx(i$4, { style: { paddingTop: "16px" }, children: /* @__PURE__ */ jsx(l$3, { children: /* @__PURE__ */ jsx(n$1, { userSummary: r2.userSummary }) }) }),
196
- /* @__PURE__ */ jsx(n$3, { style: { flex: 1 }, children: /* @__PURE__ */ jsx(a$1, { openQuestion: r2.openQuestion, store: r2.feedList.getStore() }) })
197
- ] });
198
- const k$1 = () => f$4, h$1 = /* @__PURE__ */ styled_default(k$1())({
184
+ }, z2 = ({ gamification: s, className: e, style: t }) => /* @__PURE__ */ f(w2, { className: e, style: t, children: [
185
+ /* @__PURE__ */ n(V2, { style: { paddingTop: "16px" }, children: /* @__PURE__ */ n($2, { children: /* @__PURE__ */ n(Z2, { userSummary: s.userSummary }) }) }),
186
+ /* @__PURE__ */ n(Z, { style: { flex: 1 }, children: /* @__PURE__ */ n(x2, { openQuestion: s.openQuestion, store: s.feedList.getStore() }) })
187
+ ] }), Y2 = () => O, q2 = /* @__PURE__ */ d(Y2())({
199
188
  name: "OpenedContainer",
200
189
  class: "o1seszvt",
201
- propsAsIs: true
202
- }), C = ({
203
- gamification: o2,
204
- className: n3
205
- }) => /* @__PURE__ */ jsx(h$2, {
206
- className: n3,
207
- gamification: o2
208
- }), I$3 = `
190
+ propsAsIs: !0
191
+ }), d1 = ({
192
+ gamification: s,
193
+ className: e
194
+ }) => /* @__PURE__ */ n(z2, {
195
+ className: e,
196
+ gamification: s
197
+ }), j2 = `
209
198
  .SDKContainer {
210
199
  position: static !important;
211
200
  }
212
- `, G$1 = ({
213
- gamification: o2,
214
- responsiveStore: n3,
215
- useContainer: e2,
216
- className: s,
217
- appNode: r2
201
+ `, W2 = ({
202
+ gamification: s,
203
+ responsiveStore: e,
204
+ useContainer: t,
205
+ className: r,
206
+ appNode: o
218
207
  }) => {
219
- const a2 = useStore(o2.openedQuestion.$store), {
220
- sdkInDesktopView: m2
221
- } = useStore(n3, {
208
+ const a = p(s.openedQuestion.$store), {
209
+ sdkInDesktopView: i
210
+ } = p(e, {
222
211
  keys: ["sdkInDesktopView"]
223
212
  }), {
224
- hiding: p2,
225
- onAnimationEnd: c2
226
- } = S$1();
227
- return !r2.current || !a2 ? null : /* @__PURE__ */ jsx(T, {
228
- container: r2,
229
- useContainer: typeof e2 == "boolean" ? !e2 : !m2,
230
- staticStyles: typeof e2 == "boolean" ? I$3 : "",
231
- children: /* @__PURE__ */ jsx(h$1, {
232
- className: s,
233
- hiding: p2,
234
- onAnimationEnd: c2,
235
- children: /* @__PURE__ */ jsx(H, {
236
- gamification: o2
213
+ hiding: l,
214
+ onAnimationEnd: u
215
+ } = h2();
216
+ return !o.current || !a ? null : /* @__PURE__ */ n(K, {
217
+ container: o,
218
+ useContainer: typeof t == "boolean" ? !t : !i,
219
+ staticStyles: typeof t == "boolean" ? j2 : "",
220
+ children: /* @__PURE__ */ n(q2, {
221
+ className: r,
222
+ hiding: l,
223
+ onAnimationEnd: u,
224
+ children: /* @__PURE__ */ n(K2, {
225
+ gamification: s
237
226
  })
238
227
  })
239
228
  });
240
- };
241
- const p$2 = lazy(() => import("./gamification-feature2.js")), v = ({ sdk: e2, feature: t2, className: i2 }) => {
242
- const n3 = useMemo(() => t2 && t2.featureConfig.get().type === SdkOverlayType.GAMES ? /* @__PURE__ */ jsx(v$1, { className: i2, sdk: e2, feature: t2, children: /* @__PURE__ */ jsx(p$2, { className: i2, gamification: t2 }) }) : null, [e2, t2, i2]);
243
- return /* @__PURE__ */ jsx(
244
- Suspense,
229
+ }, X2 = s2(() => import("./gamification-feature2.js")), J2 = ({ sdk: s, feature: e, className: t }) => {
230
+ const r = _(() => e && e.featureConfig.get().type === N.GAMES ? /* @__PURE__ */ n(U2, { className: t, sdk: s, feature: e, children: /* @__PURE__ */ n(X2, { className: t, gamification: e }) }) : null, [s, e, t]);
231
+ return /* @__PURE__ */ n(
232
+ e2,
245
233
  {
246
- fallback: /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
247
- children: n3
234
+ fallback: /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
235
+ children: r
248
236
  }
249
237
  );
250
- }, F$1 = ({ feature: e2, className: t2, useContainer: i2, appNode: n3, responsiveStore: l2 }) => e2 && e2.featureConfig.get().type === SdkOverlayType.GAMES ? /* @__PURE__ */ jsx(
251
- G$1,
238
+ }, e0 = ({ feature: s, className: e, useContainer: t, appNode: r, responsiveStore: o }) => s && s.featureConfig.get().type === N.GAMES ? /* @__PURE__ */ n(
239
+ W2,
252
240
  {
253
- responsiveStore: l2,
254
- className: t2,
255
- appNode: n3,
256
- useContainer: i2,
257
- gamification: e2
241
+ responsiveStore: o,
242
+ className: e,
243
+ appNode: r,
244
+ useContainer: t,
245
+ gamification: s
258
246
  }
259
- ) : null;
260
- const c$2 = /* @__PURE__ */ styled_default("div")({
247
+ ) : null, s0 = /* @__PURE__ */ d("div")({
261
248
  name: "Navigation",
262
249
  class: "n1o1tw60",
263
- propsAsIs: false
264
- }), m$2 = /* @__PURE__ */ styled_default("div")({
250
+ propsAsIs: !1
251
+ }), t0 = /* @__PURE__ */ d("div")({
265
252
  name: "Container",
266
253
  class: "co2rstw",
267
- propsAsIs: false
268
- }), l$2 = /* @__PURE__ */ styled_default("div")({
254
+ propsAsIs: !1
255
+ }), n0 = /* @__PURE__ */ d("div")({
269
256
  name: "Title",
270
257
  class: "t1bqnx9c",
271
- propsAsIs: false
272
- }), p$1 = "hlc2pcy", I$2 = forwardRef(({
273
- className: e2
274
- }, n3) => /* @__PURE__ */ jsxs(c$2, {
275
- className: cx_default(e2, p$1),
276
- children: [/* @__PURE__ */ jsx(m$2, {
277
- children: /* @__PURE__ */ jsxs(l$2, {
278
- children: [/* @__PURE__ */ jsx(B1, {
258
+ propsAsIs: !1
259
+ }), r0 = "hlc2pcy", o0 = t2(({
260
+ className: s
261
+ }, e) => /* @__PURE__ */ f(s0, {
262
+ className: S(s, r0),
263
+ children: [/* @__PURE__ */ n(t0, {
264
+ children: /* @__PURE__ */ f(n0, {
265
+ children: [/* @__PURE__ */ n(x, {
279
266
  name: "fgIcon"
280
267
  }), "FG+ Game Center", " "]
281
268
  })
282
- }), /* @__PURE__ */ jsx("div", {
283
- ref: n3
269
+ }), /* @__PURE__ */ n("div", {
270
+ ref: e
284
271
  })]
285
- }));
286
- const a = /* @__PURE__ */ styled_default("div")({
272
+ })), i0 = /* @__PURE__ */ d("div")({
287
273
  name: "Container",
288
274
  class: "czz4rjk",
289
- propsAsIs: false
290
- }), c$1 = /* @__PURE__ */ styled_default("div")({
275
+ propsAsIs: !1
276
+ }), a0 = /* @__PURE__ */ d("div")({
291
277
  name: "CloseIconWrap",
292
278
  class: "cxmojsy",
293
- propsAsIs: false
294
- }), n = () => B1, l$1 = /* @__PURE__ */ styled_default(n())({
279
+ propsAsIs: !1
280
+ }), l0 = () => x, c0 = /* @__PURE__ */ d(l0())({
295
281
  name: "CloseIcon",
296
282
  class: "c1urm3yx",
297
- propsAsIs: true
298
- }), p = /* @__PURE__ */ styled_default("div")({
283
+ propsAsIs: !0
284
+ }), d0 = /* @__PURE__ */ d("div")({
299
285
  name: "Title",
300
286
  class: "tme976v",
301
- propsAsIs: false
302
- }), r$2 = /* @__PURE__ */ styled_default("img")({
287
+ propsAsIs: !1
288
+ }), C0 = /* @__PURE__ */ d("img")({
303
289
  name: "SponsorLogo",
304
290
  class: "s1lal9yz",
305
- propsAsIs: false
306
- }), i$2 = /* @__PURE__ */ styled_default("div")({
291
+ propsAsIs: !1
292
+ }), p0 = /* @__PURE__ */ d("div")({
307
293
  name: "PresentsTitle",
308
294
  class: "pnn1sv1",
309
- propsAsIs: false
310
- }), m$1 = /* @__PURE__ */ styled_default("div")({
295
+ propsAsIs: !1
296
+ }), u0 = /* @__PURE__ */ d("div")({
311
297
  name: "Subtitle",
312
298
  class: "s1hjj1y8",
313
- propsAsIs: false
314
- }), I$1 = /* @__PURE__ */ styled_default("div")({
299
+ propsAsIs: !1
300
+ }), m0 = /* @__PURE__ */ d("div")({
315
301
  name: "Description",
316
302
  class: "dz7yjzw",
317
- propsAsIs: false
318
- }), A = /* @__PURE__ */ styled_default("button")({
303
+ propsAsIs: !1
304
+ }), f0 = /* @__PURE__ */ d("button")({
319
305
  name: "ActionButton",
320
306
  class: "avpowqk",
321
- propsAsIs: false
322
- });
323
- const y$1 = ({ close: i2, action: x2, onboarding: t2 }) => {
324
- var l2, s, c2, C2, p$12, h2, m2, u;
325
- return /* @__PURE__ */ jsxs(a, { children: [
326
- /* @__PURE__ */ jsx(c$1, { onClick: i2, children: /* @__PURE__ */ jsx(l$1, { name: "icon-cross" }) }),
327
- ((s = (l2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : l2.media) == null ? void 0 : s.sponsorLogo) && /* @__PURE__ */ jsxs(p, { children: [
328
- /* @__PURE__ */ jsx(r$2, { alt: "sponsor-logo", src: (C2 = (c2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : c2.media) == null ? void 0 : C2.sponsorLogo }),
329
- /* @__PURE__ */ jsx(i$2, { children: "PRESENTS" })
330
- ] }),
331
- ((p$12 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : p$12.title) && /* @__PURE__ */ jsx(m$1, { children: (h2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : h2.title }),
332
- ((m2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : m2.subtitle) && /* @__PURE__ */ jsx(I$1, { children: (u = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : u.subtitle }),
333
- /* @__PURE__ */ jsx(A, { onClick: x2, children: "Play Now" })
334
- ] });
335
- };
336
- const W = "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", f$2 = [{
307
+ propsAsIs: !1
308
+ }), V = ({ close: s, action: e, onboarding: t }) => /* @__PURE__ */ f(i0, { children: [
309
+ /* @__PURE__ */ n(a0, { onClick: s, children: /* @__PURE__ */ n(c0, { name: "icon-cross" }) }),
310
+ t?.titleCard?.media?.sponsorLogo && /* @__PURE__ */ f(d0, { children: [
311
+ /* @__PURE__ */ n(C0, { alt: "sponsor-logo", src: t?.titleCard?.media?.sponsorLogo }),
312
+ /* @__PURE__ */ n(p0, { children: "PRESENTS" })
313
+ ] }),
314
+ t?.titleCard?.title && /* @__PURE__ */ n(u0, { children: t?.titleCard?.title }),
315
+ t?.titleCard?.subtitle && /* @__PURE__ */ n(m0, { children: t?.titleCard?.subtitle }),
316
+ /* @__PURE__ */ n(f0, { onClick: e, children: "Play Now" })
317
+ ] }), E0 = "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", q = [{
337
318
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
338
319
  tagline: "Featured groups+ experience",
339
- headline: /* @__PURE__ */ jsxs(Fragment, {
340
- children: ["Welcome to ", /* @__PURE__ */ jsx("br", {}), " Featured Groups +"]
320
+ headline: /* @__PURE__ */ f(I, {
321
+ children: ["Welcome to ", /* @__PURE__ */ n("br", {}), " Featured Groups +"]
341
322
  })
342
323
  }, {
343
324
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
@@ -351,46 +332,44 @@ const W = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
351
332
  }, {
352
333
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
353
334
  headline: "Compete against friends on the leaderboard"
354
- }], $ = /* @__PURE__ */ styled_default("div")({
335
+ }], L0 = /* @__PURE__ */ d("div")({
355
336
  name: "OnboardingContainer",
356
337
  class: "on59ra",
357
- propsAsIs: false
358
- }), O$1 = () => f$4, q = /* @__PURE__ */ styled_default(O$1())({
338
+ propsAsIs: !1
339
+ }), h0 = () => O, g0 = /* @__PURE__ */ d(h0())({
359
340
  name: "OnboardingNotificationContainer",
360
341
  class: "op1wk5d",
361
- propsAsIs: true
362
- }), y = /* @__PURE__ */ styled_default("div")({
342
+ propsAsIs: !0
343
+ }), w = /* @__PURE__ */ d("div")({
363
344
  name: "InnerContainer",
364
345
  class: "i1i1g2vj",
365
- propsAsIs: false
366
- }), z$1 = ({
367
- deepLink: l2,
368
- onboardingOpts: C2,
369
- notification: i2,
370
- gamification: a2,
371
- loading: s,
372
- sdk: d2
346
+ propsAsIs: !1
347
+ }), S0 = ({
348
+ deepLink: s,
349
+ onboardingOpts: e,
350
+ notification: t,
351
+ gamification: r,
352
+ loading: o,
353
+ sdk: a
373
354
  }) => {
374
- var o2, m2, h2, g, V, c2, n3;
375
- const L2 = useStore(a2.friends ? a2.friends.getStore() : createSingleStore({
355
+ const i = p(r.friends ? r.friends.getStore() : c2({
376
356
  data: []
377
- })), [e2, H2] = useState(void 0), u = useMemo(() => {
378
- var p2, b2;
379
- const r2 = d2.getInviter();
380
- return r2 ? (b2 = (p2 = L2.data) == null ? void 0 : p2.find(({
381
- slId: k2
382
- }) => k2 === r2)) == null ? void 0 : b2.name : "";
383
- }, [L2.data, d2]);
384
- return useEffect(() => {
385
- const r2 = l2.$store.subscribe((p2) => {
386
- p2 && H2(p2.data);
357
+ })), [l, u] = L(void 0), m = _(() => {
358
+ const C = a.getInviter();
359
+ return C ? i.data?.find(({
360
+ slId: c
361
+ }) => c === C)?.name : "";
362
+ }, [i.data, a]);
363
+ return E(() => {
364
+ const C = s.$store.subscribe((c) => {
365
+ c && u(c.data);
387
366
  });
388
367
  return () => {
389
- r2();
368
+ C();
390
369
  };
391
- }, [l2.$store]), /* @__PURE__ */ jsx($, {
392
- children: /* @__PURE__ */ jsx(tn, {
393
- loading: s,
370
+ }, [s.$store]), /* @__PURE__ */ n(L0, {
371
+ children: /* @__PURE__ */ n(d2, {
372
+ loading: o,
394
373
  rules: [{
395
374
  label: "Answer as many questions as you like.",
396
375
  icon: "icon-btn-feature-groups"
@@ -401,300 +380,287 @@ const W = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
401
380
  label: "Top the leader board and best your friends.",
402
381
  icon: "icon-trophy"
403
382
  }],
404
- rulesBtnLabel: (o2 = C2.rules) == null ? void 0 : o2.buttonLabel,
405
- rulesTitle: (m2 = C2.rules) == null ? void 0 : m2.heading,
383
+ rulesBtnLabel: e.rules?.buttonLabel,
384
+ rulesTitle: e.rules?.heading,
406
385
  termsTitle: "Terms and Conditions",
407
- termsText: (h2 = C2.rules) == null ? void 0 : h2.terms,
408
- steps: f$2,
409
- primaryColor: (g = C2.inviteCard) == null ? void 0 : g.iconColor,
410
- inviteLink: e2,
411
- inviteCardTitle: (V = C2.inviteCard) == null ? void 0 : V.heading,
412
- inviteCardSubtext: (c2 = C2.inviteCard) == null ? void 0 : c2.subtext,
413
- inviteCardBtnLabel: (n3 = C2.inviteCard) == null ? void 0 : n3.buttonLabel,
386
+ termsText: e.rules?.terms,
387
+ steps: q,
388
+ primaryColor: e.inviteCard?.iconColor,
389
+ inviteLink: l,
390
+ inviteCardTitle: e.inviteCard?.heading,
391
+ inviteCardSubtext: e.inviteCard?.subtext,
392
+ inviteCardBtnLabel: e.inviteCard?.buttonLabel,
414
393
  onClose: () => {
415
- var r2;
416
- (r2 = i2.close) == null || r2.call(i2);
394
+ t.close?.();
417
395
  },
418
- gamification: a2,
419
- sdk: d2,
420
- inviterName: u
396
+ gamification: r,
397
+ sdk: a,
398
+ inviterName: m
421
399
  })
422
400
  });
423
- }, n2 = ({
424
- sdk: l2,
425
- notification: C2,
426
- saveHeight: i2,
427
- style: a2,
428
- appNode: s,
429
- responsiveStore: d2
401
+ }, _0 = ({
402
+ sdk: s,
403
+ notification: e,
404
+ saveHeight: t,
405
+ style: r,
406
+ appNode: o,
407
+ responsiveStore: a
430
408
  }) => {
431
- var c2;
432
- const L2 = useRef(null), e2 = C2.data.onboarding, [H2, u] = useState(e2 == null ? void 0 : e2.instantOpen), o2 = l2.getFeature(SdkOverlayType.GAMES), m2 = useMemo(() => f$2 == null ? void 0 : f$2.map(({
433
- graphicSrc: n3
434
- }) => n3), []), {
435
- screen: h2
436
- } = useStore(d2, {
409
+ const i = g(null), l = e.data.onboarding, [u, m] = L(l?.instantOpen), C = s.getFeature(N.GAMES), c = _(() => q?.map(({
410
+ graphicSrc: X
411
+ }) => X), []), {
412
+ screen: v
413
+ } = p(a, {
437
414
  keys: ["screen"]
438
415
  });
439
- (c2 = e2 == null ? void 0 : e2.titleCard) != null && c2.media && (e2.titleCard.media.sponsorLogo = W), useLayoutEffect(() => {
440
- var n3;
441
- i2(((n3 = L2.current) == null ? void 0 : n3.getBoundingClientRect().height) || 0);
442
- }, [i2]);
416
+ l?.titleCard?.media && (l.titleCard.media.sponsorLogo = E0), n2(() => {
417
+ t(i.current?.getBoundingClientRect().height || 0);
418
+ }, [t]);
443
419
  const {
444
- loading: g,
445
- throttled: V
446
- } = I$4(m2);
447
- return H2 && o2 && e2 && s.current && !V ? /* @__PURE__ */ jsx(T, {
448
- container: s,
449
- useContainer: false,
450
- children: /* @__PURE__ */ jsx(z$1, {
451
- notification: C2,
452
- setOpened: u,
453
- gamification: o2,
454
- onboardingOpts: e2,
455
- deepLink: o2.deepLink,
456
- loading: g,
457
- sdk: l2
420
+ loading: R,
421
+ throttled: W
422
+ } = l2(c);
423
+ return u && C && l && o.current && !W ? /* @__PURE__ */ n(K, {
424
+ container: o,
425
+ useContainer: !1,
426
+ children: /* @__PURE__ */ n(S0, {
427
+ notification: e,
428
+ setOpened: m,
429
+ gamification: C,
430
+ onboardingOpts: l,
431
+ deepLink: C.deepLink,
432
+ loading: R,
433
+ sdk: s
458
434
  })
459
- }) : /* @__PURE__ */ jsxs(Fragment, {
460
- children: [/* @__PURE__ */ jsx(y, {
461
- ref: L2,
435
+ }) : /* @__PURE__ */ f(I, {
436
+ children: [/* @__PURE__ */ n(w, {
437
+ ref: i,
462
438
  style: {
463
439
  position: "absolute",
464
440
  visibility: "hidden"
465
441
  },
466
- children: /* @__PURE__ */ jsx(y$1, {
442
+ children: /* @__PURE__ */ n(V, {
467
443
  close: () => {
468
444
  },
469
445
  action: () => {
470
446
  },
471
- onboarding: e2
447
+ onboarding: l
472
448
  })
473
- }), /* @__PURE__ */ jsx(q, {
474
- style: a2,
475
- hiding: C2.hiding,
476
- children: /* @__PURE__ */ jsx(y, {
477
- children: /* @__PURE__ */ jsx(y$1, {
478
- close: C2.close,
449
+ }), /* @__PURE__ */ n(g0, {
450
+ style: r,
451
+ hiding: e.hiding,
452
+ children: /* @__PURE__ */ n(w, {
453
+ children: /* @__PURE__ */ n(V, {
454
+ close: e.close,
479
455
  action: () => {
480
- var r2;
481
- u(true), (((r2 = s.current) == null ? void 0 : r2.getBoundingClientRect().y) || 0) < 0 && y$2(s, h2.size, {
456
+ m(!0), (o.current?.getBoundingClientRect().y || 0) < 0 && z(o, v.size, {
482
457
  behavior: "smooth"
483
458
  });
484
459
  },
485
- onboarding: e2
460
+ onboarding: l
486
461
  })
487
462
  })
488
463
  })]
489
464
  });
490
- };
491
- const e$1 = () => f$4, l = /* @__PURE__ */ styled_default(e$1())({
465
+ }, N0 = () => O, T0 = /* @__PURE__ */ d(N0())({
492
466
  name: "Container",
493
467
  class: "c1f0y7nw",
494
- propsAsIs: true
495
- }), t = /* @__PURE__ */ styled_default("div")({
468
+ propsAsIs: !0
469
+ }), j = /* @__PURE__ */ d("div")({
496
470
  name: "InnerContainer",
497
471
  class: "i1qa3p7a",
498
- propsAsIs: false
499
- }), i$1 = () => t, m = /* @__PURE__ */ styled_default(i$1())({
472
+ propsAsIs: !1
473
+ }), I0 = () => j, v0 = /* @__PURE__ */ d(I0())({
500
474
  name: "HiddenContainer",
501
475
  class: "hrthymv",
502
- propsAsIs: true
503
- }), f$1 = /* @__PURE__ */ styled_default("div")({
476
+ propsAsIs: !0
477
+ }), R0 = /* @__PURE__ */ d("div")({
504
478
  name: "NotificationRefreshing",
505
479
  class: "n13rok4i",
506
- propsAsIs: false
507
- }), r$1 = () => f$5, I = /* @__PURE__ */ styled_default(r$1())({
480
+ propsAsIs: !1
481
+ }), A0 = () => C2, y0 = /* @__PURE__ */ d(A0())({
508
482
  name: "Pill",
509
483
  class: "pht79xf",
510
- propsAsIs: true
511
- });
512
- const z = (o2) => {
513
- const [t2, c2] = useState(0), u = useRef(null), e2 = useCallback((n3) => {
514
- u.current = n3;
484
+ propsAsIs: !0
485
+ }), k0 = (s) => {
486
+ const [e, t] = L(0), r = g(null), o = b((i) => {
487
+ r.current = i;
515
488
  }, []);
516
- useEffect(() => {
517
- var s;
518
- const n3 = (s = u.current) == null ? void 0 : s.getBoundingClientRect();
519
- n3 && c2(n3.height);
520
- }, [o2]);
521
- const r2 = useCallback((n3) => {
522
- c2(n3);
489
+ E(() => {
490
+ const i = r.current?.getBoundingClientRect();
491
+ i && t(i.height);
492
+ }, [s]);
493
+ const a = b((i) => {
494
+ t(i);
523
495
  }, []);
524
- return [e2, t2, r2];
525
- }, F = ({
526
- sdk: o2,
527
- notification: t$12,
528
- appNode: c2,
529
- responsiveStore: u
496
+ return [o, e, a];
497
+ }, D0 = ({
498
+ sdk: s,
499
+ notification: e,
500
+ appNode: t,
501
+ responsiveStore: r
530
502
  }) => {
531
- var h2, d2;
532
503
  const {
533
- sdk: e2
534
- } = n$2(), [r2, n3, s] = z(t$12.id);
535
- return t$12.type === NotificationType.QUESTION ? /* @__PURE__ */ jsxs(Fragment, {
536
- children: [/* @__PURE__ */ jsx(m, {
537
- ref: r2,
538
- children: /* @__PURE__ */ jsx(w$1, {
539
- ...t$12
504
+ sdk: o
505
+ } = F(), [a, i, l] = k0(e.id);
506
+ return e.type === T.QUESTION ? /* @__PURE__ */ f(I, {
507
+ children: [/* @__PURE__ */ n(v0, {
508
+ ref: a,
509
+ children: /* @__PURE__ */ n(B, {
510
+ ...e
540
511
  })
541
- }), /* @__PURE__ */ jsxs(l, {
512
+ }), /* @__PURE__ */ f(T0, {
542
513
  style: {
543
- height: t$12.hiding ? 0 : n3
514
+ height: e.hiding ? 0 : i
544
515
  },
545
- hiding: t$12.hiding,
546
- children: [/* @__PURE__ */ jsx(t, {
516
+ hiding: e.hiding,
517
+ children: [/* @__PURE__ */ n(j, {
547
518
  style: {
548
519
  height: "100%"
549
520
  },
550
- children: /* @__PURE__ */ jsx(w$1, {
551
- ...t$12,
552
- controlVideo: e2 == null ? void 0 : e2.controlVideoPlayer
521
+ children: /* @__PURE__ */ n(B, {
522
+ ...e,
523
+ controlVideo: o?.controlVideoPlayer
553
524
  })
554
- }), /* @__PURE__ */ jsx(f$1, {}, t$12.id)]
525
+ }), /* @__PURE__ */ n(R0, {}, e.id)]
555
526
  })]
556
- }) : t$12.type === NotificationType.QUESTION_RESOLVED && ((d2 = (h2 = t$12.data) == null ? void 0 : h2.question) != null && d2.predictionResult) ? /* @__PURE__ */ jsx(D, {
527
+ }) : e.type === T.QUESTION_RESOLVED && e.data?.question?.predictionResult ? /* @__PURE__ */ n(p2, {
557
528
  style: {
558
- height: t$12.hiding ? 0 : n3
529
+ height: e.hiding ? 0 : i
559
530
  },
560
- saveHeight: s,
561
- close: t$12.close,
562
- hiding: t$12.hiding,
563
- ...t$12.data.question,
564
- mastersApp: true
565
- }) : t$12.type === NotificationType.ONBOARDING ? /* @__PURE__ */ jsx(n2, {
531
+ saveHeight: l,
532
+ close: e.close,
533
+ hiding: e.hiding,
534
+ ...e.data.question,
535
+ mastersApp: !0
536
+ }) : e.type === T.ONBOARDING ? /* @__PURE__ */ n(_0, {
566
537
  style: {
567
- height: t$12.hiding ? 0 : n3
538
+ height: e.hiding ? 0 : i
568
539
  },
569
- saveHeight: s,
570
- sdk: o2,
571
- notification: t$12,
572
- appNode: c2,
573
- responsiveStore: u
540
+ saveHeight: l,
541
+ sdk: s,
542
+ notification: e,
543
+ appNode: t,
544
+ responsiveStore: r
574
545
  }) : null;
575
- }, L = "p1co32q0", M = ({
576
- pill: o2,
577
- setPill: t2,
578
- appNode: c2,
579
- headerNode: u,
580
- scrollNode: e2,
581
- responsiveStore: r2,
582
- scrollStore: n3,
583
- useContainer: s
546
+ }, b0 = "p1co32q0", O0 = ({
547
+ pill: s,
548
+ setPill: e,
549
+ appNode: t,
550
+ headerNode: r,
551
+ scrollNode: o,
552
+ responsiveStore: a,
553
+ scrollStore: i,
554
+ useContainer: l
584
555
  }) => {
585
- var I$12, k2;
586
556
  const {
587
- screen: h2
588
- } = useStore(r2, {
557
+ screen: u
558
+ } = p(a, {
589
559
  keys: ["screen"]
590
560
  }), {
591
- tabsShown: d2,
592
- scrollPosition: m2
593
- } = useStore(n3, {
561
+ tabsShown: m,
562
+ scrollPosition: C
563
+ } = p(i, {
594
564
  keys: ["tabsShown", "scrollPosition"]
595
565
  });
596
- useEffect(() => {
597
- r2.get().sdkInDesktopView || s ? m2 < 50 && t2(null) : m2 > -50 && t2(null);
598
- }, [m2, r2, t2, s]);
599
- const i2 = r2.get().sdkInDesktopView ? c2 : u;
600
- return !o2 || !i2.current ? null : createPortal(/* @__PURE__ */ jsx(I, {
601
- title: o2.type === NotificationType.QUESTION_RESOLVED ? "Prediction result" : `New ${((k2 = e$3[(I$12 = o2.data) == null ? void 0 : I$12.questionType]) == null ? void 0 : k2.label) || "notification"}`,
566
+ E(() => {
567
+ a.get().sdkInDesktopView || l ? C < 50 && e(null) : C > -50 && e(null);
568
+ }, [C, a, e, l]);
569
+ const c = a.get().sdkInDesktopView ? t : r;
570
+ return !s || !c.current ? null : I2(/* @__PURE__ */ n(y0, {
571
+ title: s.type === T.QUESTION_RESOLVED ? "Prediction result" : `New ${R2[s.data?.questionType]?.label || "notification"}`,
602
572
  onClick: () => {
603
- var w2;
604
- r2.get().sdkInDesktopView ? (w2 = e2.current) == null || w2.scrollTo({
573
+ a.get().sdkInDesktopView ? o.current?.scrollTo({
605
574
  top: 0,
606
575
  behavior: "smooth"
607
- }) : y$2(e2, h2.size, {
576
+ }) : z(o, u.size, {
608
577
  behavior: "smooth"
609
- }), t2(null);
578
+ }), e(null);
610
579
  },
611
- className: cx_default(d2 && L, "sl-pill-button")
612
- }), i2.current);
613
- }, nt = ({
614
- sdk: o2,
615
- headerNode: t2,
616
- scrollNode: c2,
617
- useContainer: u,
618
- responsiveStore: e2,
619
- appNode: r2,
620
- scrollStore: n3
580
+ className: S(m && b0, "sl-pill-button")
581
+ }), c.current);
582
+ }, F0 = ({
583
+ sdk: s,
584
+ headerNode: e,
585
+ scrollNode: t,
586
+ useContainer: r,
587
+ responsiveStore: o,
588
+ appNode: a,
589
+ scrollStore: i
621
590
  }) => {
622
- const [s] = useState(o2.getNotificationsStore()), h2 = useStore(s), [d2, m2] = useState(null), i2 = useMemo(() => o2.getActiveNotification(), [o2, h2]);
623
- return useEffect(() => {
624
- i2 && eventBus.emit("notification", {
591
+ const [l] = L(s.getNotificationsStore()), u = p(l), [m, C] = L(null), c = _(() => s.getActiveNotification(), [s, u]);
592
+ return E(() => {
593
+ c && v2.emit("notification", {
625
594
  action: "rendered",
626
595
  payload: {
627
- questionId: i2.data.questionId,
628
- questionType: i2.data.questionType
596
+ questionId: c.data.questionId,
597
+ questionType: c.data.questionType
629
598
  }
630
599
  });
631
- }, [i2]), useEffect(() => {
632
- i2 && (e2.get().sdkInDesktopView || e2.get().sdkInView) && (!e2.get().sdkInDesktopView && e2.get().sdkInView && m2(i2), e2.get().sdkInDesktopView && window.requestAnimationFrame(() => {
633
- n3.get().scrollPosition !== 0 && m2(i2);
600
+ }, [c]), E(() => {
601
+ c && (o.get().sdkInDesktopView || o.get().sdkInView) && (!o.get().sdkInDesktopView && o.get().sdkInView && C(c), o.get().sdkInDesktopView && window.requestAnimationFrame(() => {
602
+ i.get().scrollPosition !== 0 && C(c);
634
603
  }));
635
- }, [i2]), useEffect(() => {
636
- i2 || m2(null);
637
- }, [i2]), /* @__PURE__ */ jsxs(Fragment, {
638
- children: [!d2 && i2 && /* @__PURE__ */ jsx(F, {
639
- headerNode: t2,
640
- appNode: r2,
641
- sdk: o2,
642
- notification: i2,
643
- responsiveStore: e2
644
- }), d2 && /* @__PURE__ */ jsx(M, {
645
- pill: d2,
646
- setPill: m2,
647
- appNode: r2,
648
- notification: i2,
649
- headerNode: t2,
650
- scrollNode: c2,
651
- scrollStore: n3,
652
- useContainer: u,
653
- responsiveStore: e2
604
+ }, [c]), E(() => {
605
+ c || C(null);
606
+ }, [c]), /* @__PURE__ */ f(I, {
607
+ children: [!m && c && /* @__PURE__ */ n(D0, {
608
+ headerNode: e,
609
+ appNode: a,
610
+ sdk: s,
611
+ notification: c,
612
+ responsiveStore: o
613
+ }), m && /* @__PURE__ */ n(O0, {
614
+ pill: m,
615
+ setPill: C,
616
+ appNode: a,
617
+ notification: c,
618
+ headerNode: e,
619
+ scrollNode: t,
620
+ scrollStore: i,
621
+ useContainer: r,
622
+ responsiveStore: o
654
623
  })]
655
624
  });
656
- };
657
- const d = Object.keys(A$1), i = () => {
658
- const t2 = window.innerWidth;
659
- let e2 = "sm";
660
- for (let n3 = d.length - 1; n3 > 0; n3--) {
661
- const s = d[n3];
662
- if (!(t2 < A$1[s]) && t2 >= A$1[s]) {
663
- e2 = s;
625
+ }, $ = Object.keys(h), k = () => {
626
+ const s = window.innerWidth;
627
+ let e = "sm";
628
+ for (let t = $.length - 1; t > 0; t--) {
629
+ const r = $[t];
630
+ if (!(s < h[r]) && s >= h[r]) {
631
+ e = r;
664
632
  break;
665
633
  }
666
634
  }
667
635
  return {
668
- name: e2,
669
- size: A$1[e2]
636
+ name: e,
637
+ size: h[e]
670
638
  };
671
- }, w = (t2) => {
672
- var n3;
673
- const e2 = (n3 = t2.current) == null ? void 0 : n3.getBoundingClientRect();
674
- return e2 ? e2.y > -e2.height && e2.y < window.innerHeight : false;
675
- }, k = (t2) => t2 >= A$1.lg, h = (t2) => {
676
- const [e2] = useState(() => {
677
- const n3 = i();
678
- return f$3({
679
- screen: i(),
680
- sdkInView: w(t2),
681
- sdkInDesktopView: k(n3.size)
639
+ }, P = (s) => {
640
+ const e = s.current?.getBoundingClientRect();
641
+ return e ? e.y > -e.height && e.y < window.innerHeight : !1;
642
+ }, H = (s) => s >= h.lg, B0 = (s) => {
643
+ const [e] = L(() => {
644
+ const t = k();
645
+ return G({
646
+ screen: k(),
647
+ sdkInView: P(s),
648
+ sdkInDesktopView: H(t.size)
682
649
  });
683
650
  });
684
- return useEffect(() => {
685
- const n3 = i$5(() => {
686
- e2.setKey("sdkInView", w(t2));
687
- }, 200), s = i$5(() => {
688
- const o2 = i();
689
- e2.setKey("screen", o2), e2.setKey("sdkInDesktopView", k(o2.size));
651
+ return E(() => {
652
+ const t = D(() => {
653
+ e.setKey("sdkInView", P(s));
654
+ }, 200), r = D(() => {
655
+ const o = k();
656
+ e.setKey("screen", o), e.setKey("sdkInDesktopView", H(o.size));
690
657
  }, 200);
691
- return n3(), s(), window.addEventListener("scroll", n3), window.addEventListener("resize", s), () => {
692
- window.removeEventListener("scroll", n3), window.removeEventListener("resize", s);
658
+ return t(), r(), window.addEventListener("scroll", t), window.addEventListener("resize", r), () => {
659
+ window.removeEventListener("scroll", t), window.removeEventListener("resize", r);
693
660
  };
694
- }, [e2, t2]), [e2];
695
- };
696
- const _ = {
697
- ...R$1,
661
+ }, [e, s]), [e];
662
+ }, V0 = {
663
+ ...o2,
698
664
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
699
665
  // @ts-expect-error
700
666
  BG_TRANSPARENT: "rgba(0,0,0, .8)",
@@ -760,264 +726,128 @@ const _ = {
760
726
  IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
761
727
  IN_APP_QUESTION_RESULT_LINE: "#babfc5",
762
728
  QUOTE_TEXT: "#006944"
763
- }, e = {
764
- ...D$1,
765
- REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
766
- REGULAR1: D$1.REGULAR,
767
- SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
768
- SERIF1: "'Tiempos', 'Tiempos Headline', Times New Roman, serif",
769
- COLOR: "#fff",
770
- WEIGHT_DEFAULT: "500"
771
- }, r = Object.entries(_).reduce((i2, [E, a2]) => `
772
- ${i2}
773
- --color-${E.toLowerCase().replaceAll("_", "-")}: ${a2};
729
+ };
730
+ Object.entries(V0).reduce((s, [e, t]) => `
731
+ ${s}
732
+ --color-${e.toLowerCase().replaceAll("_", "-")}: ${t};
774
733
  `, "");
775
- `
776
- ${r}
777
- --font-family: ${e.REGULAR};
778
- --font-regular: ${e.REGULAR};
779
- --font-regular1: ${e.REGULAR1};
780
- --font-color: ${e.COLOR};
781
- --font-serif: ${e.SERIF};
782
- --font-serif1: ${e.SERIF1};
783
- --font-weight-default: ${e.WEIGHT_DEFAULT};
784
- --font-weight-default1: ${e.WEIGHT_DEFAULT1};
785
- --font-weight-default2: ${e.WEIGHT_DEFAULT2};
786
- --font-weight-default3: ${e.WEIGHT_DEFAULT3};
787
- --font-size-default: ${D$1.SIZE_DEFAULT};
788
- --font-size-secondary: ${D$1.SIZE_DEFAULT1};
789
- --font-size-small: ${D$1.SIZE_DEFAULT2};
790
- --line-height-default: ${D$1.LINE_HEIGHT};
791
- --margin-title-default: 0px 0px 12px;
792
- --font-header-title: 20px;
793
-
794
- --header-offset: 0px;
795
- --header-height: 54px;
796
- --watch-live-header: 0px;
797
- --animation-duration: 0.5s;
798
- --animation-function: ease;
799
- --container-padding: 16px;
800
- --max-tabs-width: 361px;
801
- --border-radius: 8px;
802
- --pill-offset: 0px;
803
- --max-width: 600px;
804
- --max-notifications-width: 400px;
805
- --header-padding: 12px 12px 12px 16px;
806
- --margin-web-link-btn: 0px;
807
- --padding-web-link-btn: 11px 16px;
808
- --insight-content-padding: 0px;
809
- --close-icon-size: 12px;
810
- --close-icon-stroke-width: 1.5;
811
- --padding-title-default: 0px;
812
- --insight-image-display: inline;
813
- --web-link-align-items: center;
814
- --web-link-column-gap: 10px;
815
- --welcome-screen-graphic-size: 80px;
816
- --welcome-screen-graphic-size-xl: 125px;
817
- --insight-image-ratio: 16/9;
818
- --quote-indent: 0px;
819
- --quote-padding: 0px;
820
- --history-card-gap: 1rem;
821
-
822
- ${c$3.down("xl")`
823
- --header-offset: 0px;
824
- --watch-live-header: 0px;
825
- `}
826
-
827
- ${c$3.intermediate("xl", "lg")`
828
- --header-offset: 0px;
829
- `}
830
-
831
- --bet-pack-primary-bg: #006944;
832
- --bet-pack-button-bg: rgba(255, 255, 255, 0.1);
833
-
834
- --padding-question-content: 16px 16px 0px;
835
- --gap-vote-options: 8px;
836
- --vote-feedback-font-size: 1em;
837
- --letter-spacing-feedback-header: normal;
838
- --size-transparent-icon: 51px;
839
- --padding-feedback-container: 8px 0px 24px;
840
- --fz-feedbackContainer: 14px;
841
- --margin-top-feedback-text: 10px;
842
- --margin-top-feedback-dynamic-text: 0px;
843
- --fz-feedback-text: 1em;
844
- --fz-feedback-dynamic-text: 1em;
845
- --letter-spacing-feedback-text: normal;
846
- --display-dynamic-wrap: inline;
847
- --padding-question-title: 0em;
848
- --text-align-question-title: start;
849
- --line-height-question-title: 24px;
850
- --vote-title-font-size: 16px;
851
- --padding-vote-answer: 5px 15px 5px 9px;
852
- --fz-vote-answer: 12px;
853
- --border-radius-vote-btn: 4px;
854
- --min-height-vote-btn: 44px;
855
- --justify-content-feedback-container: start;
856
- --bg-color-feedback-container: transparent;
857
- --padding-feedback-wrap: 0px;
858
- --border-radius-feedback-container: 0px;
859
- --color-feedback-description: #25282A;
860
- --text-align-feedback-description: start;
861
- --color-feedback-text: rgba(10, 14, 19, 0.70);
862
- --vote-answer-font-size: 0.75em;
863
- --size-vote-answer-icon: 32px;
864
- --margin-left-vote-answer-indicator: 8px;
865
- --size-vote-answer-indicator: 16px;
866
- --path-fill-vote-answer-indicator: #107D57;
867
- --vote-answer-font-weight: normal;
868
- --margin-left-percentage: 8px;
869
- --question-content-max-width: unset;
870
- --line-height-percentage: 17px;
871
- --line-height-percentage: 1.55em;
872
- --border-color-btn-correct: #107D57;
873
- --border-color-btn-voted: #107D57;
874
- --opacity-voted-btn-rct: 1;
875
- --opacity-vote-btn-not-selected: 1;
876
- --color-vote-btn-not-checked-bg: #fff;
877
- --vote-options-margin-bottom: 0px;
878
- --fw-feedback: inherit;
879
- --letter-spacing-question-title: normal;
880
- --margin-left-pts: 0px;
881
- --display-question-container: initial;
882
- --justify-content-question-container: initial;
883
- --color-question-body-text: #006747;
884
- --color-presented-by-text: #006747;
885
- --nav-border: 1px solid var(--color-neutrals-gray3);
886
- `;
887
- const f = "m1ojpy2l";
888
- const c = ({ children: r2, style: m2 }) => /* @__PURE__ */ jsx("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ jsx("div", { className: cx_default("masters-theme", f), style: m2, children: r2 }) });
889
- const S = ({ sdkKey: r2, plugins: e2, children: a2, event: t2, onDeepLinkHandled: s, videoPlayerController: i2, production: d2 = true }) => /* @__PURE__ */ jsxs(
890
- q$1,
734
+ const w0 = "m1ojpy2l", $0 = ({ children: s, style: e }) => /* @__PURE__ */ n("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ n("div", { className: S("masters-theme", w0), style: e, children: s }) }), C1 = ({ sdkKey: s, plugins: e, children: t, event: r, onDeepLinkHandled: o, videoPlayerController: a, production: i = !0 }) => /* @__PURE__ */ f(
735
+ A2,
891
736
  {
892
- sdkKey: r2,
893
- plugins: e2,
894
- production: d2,
895
- autoEnable: true,
896
- onDeepLinkHandled: s,
897
- videoPlayerController: i2,
737
+ sdkKey: s,
738
+ plugins: e,
739
+ production: i,
740
+ autoEnable: !0,
741
+ onDeepLinkHandled: o,
742
+ videoPlayerController: a,
898
743
  friendsTab: "disabled",
899
- skipOnboarding: true,
900
- hideFriends: true,
744
+ skipOnboarding: !0,
745
+ hideFriends: !0,
901
746
  children: [
902
- /* @__PURE__ */ jsx(j$1, { event: t2 }),
903
- a2
747
+ /* @__PURE__ */ n(y2, { event: r }),
748
+ t
904
749
  ]
905
750
  }
906
- );
907
- const G = ({ sdk: e2, className: r2 }) => {
908
- const [, t2] = p$4(e2);
909
- return /* @__PURE__ */ jsx(v, { className: r2, feature: t2, sdk: e2 });
910
- }, O = ({ sdk: e2, className: r2, appNode: t2, responsiveStore: l2, useContainer: c2 }) => {
911
- const m2 = useStore(e2.featuresList.getStore());
912
- return m2 ? Array.from(m2, (a2) => {
913
- const s = e2.getFeature(a2);
914
- return s ? /* @__PURE__ */ jsx(
915
- F$1,
751
+ ), P0 = ({ sdk: s, className: e }) => {
752
+ const [, t] = u2(s);
753
+ return /* @__PURE__ */ n(J2, { className: e, feature: t, sdk: s });
754
+ }, H0 = ({ sdk: s, className: e, appNode: t, responsiveStore: r, useContainer: o }) => {
755
+ const a = p(s.featuresList.getStore());
756
+ return a ? Array.from(a, (i) => {
757
+ const l = s.getFeature(i);
758
+ return l ? /* @__PURE__ */ n(
759
+ e0,
916
760
  {
917
- useContainer: c2,
918
- responsiveStore: l2,
919
- className: r2,
920
- appNode: t2,
921
- feature: s,
922
- sdk: e2
761
+ useContainer: o,
762
+ responsiveStore: r,
763
+ className: e,
764
+ appNode: t,
765
+ feature: l,
766
+ sdk: s
923
767
  },
924
- a2
768
+ i
925
769
  ) : null;
926
770
  }) : null;
927
- }, R = (e2) => {
928
- const r2 = useRef(null);
929
- return b(r2, { enabled: true, event: "click", listener: A$2 }), /* @__PURE__ */ jsx(nr, { ref: r2, ...e2 });
930
- }, j = ({ sdk: e2, useContainer: r2 }) => {
931
- const t2 = useRef(null), l2 = useStore(e2.status), c2 = useStore(e2.sdkStore.slStreamId), m2 = useRef(null), [a2] = h(t2), [s, i2] = z$2(t2, a2, r2), o2 = l2 === "ready" && !!c2.data;
932
- return useEffect(() => {
771
+ }, U0 = (s) => {
772
+ const e = g(null);
773
+ return M(e, { enabled: !0, event: "click", listener: Q }), /* @__PURE__ */ n(m2, { ref: e, ...s });
774
+ }, G0 = ({ sdk: s, useContainer: e }) => {
775
+ const t = g(null), r = p(s.status), o = p(s.sdkStore.slStreamId), a = g(null), [i] = B0(t), [l, u] = H2(t, i, e), m = r === "ready" && !!o.data;
776
+ return E(() => {
933
777
  window.requestAnimationFrame(() => {
934
- e2.initializeApp().then(() => {
935
- e2.openFeature(SdkOverlayType.GAMES);
778
+ s.initializeApp().then(() => {
779
+ s.openFeature(N.GAMES);
936
780
  });
937
781
  });
938
- }, [e2]), b(t2, { enabled: true, event: "click", listener: A$2 }), useEffect(() => {
782
+ }, [s]), M(t, { enabled: !0, event: "click", listener: Q }), E(() => {
939
783
  import("./gamification-feature2.js");
940
- }, []), /* @__PURE__ */ jsxs(o$1, { className: cx_default("SDKContainer", !r2 && t$1), ref: t2, children: [
941
- /* @__PURE__ */ jsx(I$2, { className: cx_default(m$3), ref: m2 }),
942
- /* @__PURE__ */ jsxs(r$3, { className: "sl-hide-on-modal", ref: s, children: [
943
- o2 && /* @__PURE__ */ jsx(
944
- nt,
784
+ }, []), /* @__PURE__ */ f(b2, { className: S("SDKContainer", !e && O2), ref: t, children: [
785
+ /* @__PURE__ */ n(o0, { className: S(A), ref: a }),
786
+ /* @__PURE__ */ f(F2, { className: "sl-hide-on-modal", ref: l, children: [
787
+ m && /* @__PURE__ */ n(
788
+ F0,
945
789
  {
946
- sdk: e2,
947
- scrollNode: s,
948
- headerNode: m2,
949
- appNode: t2,
950
- scrollStore: i2,
951
- responsiveStore: a2,
952
- useContainer: r2
790
+ sdk: s,
791
+ scrollNode: l,
792
+ headerNode: a,
793
+ appNode: t,
794
+ scrollStore: u,
795
+ responsiveStore: i,
796
+ useContainer: e
953
797
  }
954
798
  ),
955
- o2 && /* @__PURE__ */ jsx(G, { className: m$3, sdk: e2 }),
956
- o2 && /* @__PURE__ */ jsx(
957
- O,
799
+ m && /* @__PURE__ */ n(P0, { className: A, sdk: s }),
800
+ m && /* @__PURE__ */ n(
801
+ H0,
958
802
  {
959
- responsiveStore: a2,
960
- appNode: t2,
961
- className: m$3,
962
- sdk: e2,
963
- useContainer: r2
803
+ responsiveStore: i,
804
+ appNode: t,
805
+ className: A,
806
+ sdk: s,
807
+ useContainer: e
964
808
  }
965
809
  )
966
810
  ] })
967
811
  ] });
968
- }, re = ({ sdk: e2, betPack: r2, useContainer: t2 }) => {
969
- const [l2, c2] = useState(r2), a2 = !!useStore(e2.userId()), s = useMemo(() => ({ sdk: e2 }), [e2]), i2 = useCallback(() => {
970
- c2(false);
971
- const o2 = e2 == null ? void 0 : e2.getFeature(SdkOverlayType.GAMES);
972
- o2 == null || o2.closeQuestion();
973
- }, [e2]);
974
- return /* @__PURE__ */ jsxs(o.Provider, { value: s, children: [
975
- l2 && a2 && /* @__PURE__ */ jsx(
976
- R,
812
+ }, M0 = ({ sdk: s, betPack: e, useContainer: t }) => {
813
+ const [r, o] = L(e), a = !!p(s.userId()), i = _(() => ({ sdk: s }), [s]), l = b(() => {
814
+ o(!1), s?.getFeature(N.GAMES)?.closeQuestion();
815
+ }, [s]);
816
+ return /* @__PURE__ */ f(Y.Provider, { value: i, children: [
817
+ r && a && /* @__PURE__ */ n(
818
+ U0,
977
819
  {
978
- sdk: e2,
979
- onEvent: ({ type: o2 }) => o2 === "slOpenGameCenter" ? i2() : () => {
820
+ sdk: s,
821
+ onEvent: ({ type: u }) => u === "slOpenGameCenter" ? l() : () => {
980
822
  },
981
- close: () => i2()
823
+ close: () => l()
982
824
  }
983
825
  ),
984
- !l2 && /* @__PURE__ */ jsx(j, { sdk: e2, useContainer: t2 })
826
+ !r && /* @__PURE__ */ n(G0, { sdk: s, useContainer: t })
985
827
  ] });
986
- };
987
- const PureMastersStreamLayerSDKReact = ({
988
- betPack,
989
- useContainer
828
+ }, Q0 = ({
829
+ betPack: s,
830
+ useContainer: e
990
831
  }) => {
991
- const { sdk, status } = useContext(i$6);
992
- if (status === Y.UNSET) {
993
- console.error("Wrap app in `StreamLayerProvider`");
994
- return null;
995
- }
996
- if (!sdk) {
997
- return null;
998
- }
999
- return /* @__PURE__ */ jsx("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ jsx(c, { style: { height: "100%" }, children: /* @__PURE__ */ jsx(re, { sdk, betPack, useContainer }) }) });
832
+ const { sdk: t, status: r } = U(k2);
833
+ return r === D2.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : t ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ n($0, { style: { height: "100%" }, children: /* @__PURE__ */ n(M0, { sdk: t, betPack: s, useContainer: e }) }) }) : null;
1000
834
  };
1001
- class MastersStreamLayerSDKReact extends Component {
1002
- constructor(props) {
1003
- super(props);
1004
- this.state = { hasError: false };
835
+ class p1 extends r2 {
836
+ constructor(e) {
837
+ super(e), this.state = { hasError: !1 };
1005
838
  }
1006
839
  static getDerivedStateFromError() {
1007
- return { hasError: true };
840
+ return { hasError: !0 };
1008
841
  }
1009
- componentDidCatch(error, info) {
1010
- console.error(error, info.componentStack);
842
+ componentDidCatch(e, t) {
843
+ console.error(e, t.componentStack);
1011
844
  }
1012
845
  render() {
1013
- if (this.state.hasError) {
1014
- return null;
1015
- }
1016
- return /* @__PURE__ */ jsx(PureMastersStreamLayerSDKReact, { ...this.props });
846
+ return this.state.hasError ? null : /* @__PURE__ */ n(Q0, { ...this.props });
1017
847
  }
1018
848
  }
1019
849
  export {
1020
- C,
1021
- MastersStreamLayerSDKReact as M,
1022
- S
850
+ d1 as C,
851
+ p1 as M,
852
+ C1 as S
1023
853
  };