@streamlayer/react 1.23.0 → 1.23.2

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