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