@streamlayer/react 1.23.0 → 1.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/lib/app/pause-ad.d.ts +2 -4
  2. package/lib/app/polymarket.d.ts +7 -0
  3. package/lib/cjs/Question.js +1 -1
  4. package/lib/cjs/advertisement.js +28 -223
  5. package/lib/cjs/analytics.js +1 -1
  6. package/lib/cjs/auth.js +1 -1
  7. package/lib/cjs/bet-pack.js +1 -1
  8. package/lib/cjs/feature.js +1 -0
  9. package/lib/cjs/gamification-feature.js +1 -1
  10. package/lib/cjs/gamification-feature2.js +1 -1
  11. package/lib/cjs/hooks-WfHlJH12.js +1 -0
  12. package/lib/cjs/index-eShKGO10.js +1 -5
  13. package/lib/cjs/index.js +1 -1
  14. package/lib/cjs/index10.js +1 -4
  15. package/lib/cjs/index11.js +3 -1
  16. package/lib/cjs/index12.js +1 -1
  17. package/lib/cjs/index13.js +3 -1
  18. package/lib/cjs/index14.js +1 -1
  19. package/lib/cjs/index15.js +1 -5
  20. package/lib/cjs/index16.js +3 -0
  21. package/lib/cjs/index2.js +1 -1
  22. package/lib/cjs/index3.js +1 -1
  23. package/lib/cjs/index4.js +3 -5
  24. package/lib/cjs/index5.js +1 -1
  25. package/lib/cjs/index6.js +1 -1
  26. package/lib/cjs/index7.js +1 -1
  27. package/lib/cjs/index8.js +1 -1
  28. package/lib/cjs/index9.js +1 -1
  29. package/lib/cjs/insight.js +1 -1
  30. package/lib/cjs/masters.js +1 -1
  31. package/lib/cjs/masters2.js +1 -13
  32. package/lib/cjs/notification.js +1 -1
  33. package/lib/cjs/pause-ad.js +1 -1
  34. package/lib/cjs/points.js +1 -1
  35. package/lib/cjs/polymarket.js +9 -0
  36. package/lib/cjs/sl-types.js +1 -15
  37. package/lib/cjs/storage.js +1 -1
  38. package/lib/cjs/style.css +1 -0
  39. package/lib/cjs/theme.js +1 -17
  40. package/lib/cjs/useStreamLayerApp.js +1 -1
  41. package/lib/cjs/useStreamLayerApp2.js +3 -17
  42. package/lib/cjs/utils.js +1 -47
  43. package/lib/classic/app/pause-ad.d.ts +2 -4
  44. package/lib/classic/app/polymarket.d.ts +7 -0
  45. package/lib/classic/cjs/Question.js +1 -1
  46. package/lib/classic/cjs/advertisement.js +28 -223
  47. package/lib/classic/cjs/analytics.js +1 -1
  48. package/lib/classic/cjs/auth.js +1 -1
  49. package/lib/classic/cjs/bet-pack.js +3 -5
  50. package/lib/classic/cjs/feature.js +1 -0
  51. package/lib/classic/cjs/gamification-feature.js +1 -1
  52. package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
  53. package/lib/classic/cjs/index-eShKGO10.js +1 -5
  54. package/lib/classic/cjs/index.js +1 -1
  55. package/lib/classic/cjs/index10.js +1 -1
  56. package/lib/classic/cjs/index11.js +1 -1
  57. package/lib/classic/cjs/index12.js +1 -4
  58. package/lib/classic/cjs/index13.js +3 -0
  59. package/lib/classic/cjs/index2.js +3 -5
  60. package/lib/classic/cjs/index3.js +1 -1
  61. package/lib/classic/cjs/index4.js +1 -1
  62. package/lib/classic/cjs/index5.js +1 -1
  63. package/lib/classic/cjs/index6.js +1 -1
  64. package/lib/classic/cjs/index7.js +1 -1
  65. package/lib/classic/cjs/index8.js +1 -1
  66. package/lib/classic/cjs/index9.js +3 -1
  67. package/lib/classic/cjs/insight.js +1 -1
  68. package/lib/classic/cjs/notification.js +1 -1
  69. package/lib/classic/cjs/notification2.js +1 -1
  70. package/lib/classic/cjs/pause-ad.js +1 -1
  71. package/lib/classic/cjs/points.js +1 -1
  72. package/lib/classic/cjs/polymarket.js +9 -0
  73. package/lib/classic/cjs/sl-types.js +1 -15
  74. package/lib/classic/cjs/style.css +1 -0
  75. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  76. package/lib/classic/cjs/useStreamLayerApp2.js +3 -17
  77. package/lib/classic/cjs/utils.js +1 -47
  78. package/lib/classic/es/Question.js +277 -264
  79. package/lib/classic/es/advertisement.js +34990 -18881
  80. package/lib/classic/es/analytics.js +58 -56
  81. package/lib/classic/es/auth.js +14 -8
  82. package/lib/classic/es/bet-pack.js +2448 -2418
  83. package/lib/classic/es/feature.js +108 -0
  84. package/lib/classic/es/gamification-feature.js +2 -2
  85. package/lib/classic/es/hooks-WfHlJH12.js +98 -0
  86. package/lib/classic/es/index-eShKGO10.js +948 -948
  87. package/lib/classic/es/index.js +13 -13
  88. package/lib/classic/es/index10.js +83 -2295
  89. package/lib/classic/es/index11.js +3095 -179
  90. package/lib/classic/es/index12.js +174 -821
  91. package/lib/classic/es/index13.js +850 -0
  92. package/lib/classic/es/index2.js +2099 -1763
  93. package/lib/classic/es/index3.js +11 -11
  94. package/lib/classic/es/index4.js +127 -127
  95. package/lib/classic/es/index5.js +3 -5
  96. package/lib/classic/es/index6.js +10 -11
  97. package/lib/classic/es/index7.js +6 -62
  98. package/lib/classic/es/index8.js +9 -316
  99. package/lib/classic/es/index9.js +316 -82
  100. package/lib/classic/es/insight.js +58 -53
  101. package/lib/classic/es/notification.js +5 -5
  102. package/lib/classic/es/notification2.js +765 -722
  103. package/lib/classic/es/pause-ad.js +190 -167
  104. package/lib/classic/es/points.js +55 -47
  105. package/lib/classic/es/polymarket.js +6848 -0
  106. package/lib/classic/es/sl-types.js +193 -125
  107. package/lib/classic/es/useStreamLayerApp.js +2 -2
  108. package/lib/classic/es/useStreamLayerApp2.js +9727 -7592
  109. package/lib/classic/es/utils.js +28 -28
  110. package/lib/classic/index.d.ts +1 -0
  111. package/lib/classic/style.css +1 -0
  112. package/lib/dist/cjs/gamification-feature.js +1 -1
  113. package/lib/dist/cjs/index-eShKGO10.js +1 -5
  114. package/lib/dist/cjs/index.js +1 -1
  115. package/lib/dist/cjs/masters.js +3 -77
  116. package/lib/dist/es/gamification-feature.js +2 -2
  117. package/lib/dist/es/index-eShKGO10.js +948 -948
  118. package/lib/dist/es/index.js +7 -8
  119. package/lib/dist/es/masters.js +18212 -14741
  120. package/lib/dist/index.d.ts +29 -8
  121. package/lib/dist/style.css +1 -1
  122. package/lib/es/Question.js +108 -106
  123. package/lib/es/advertisement.js +34990 -18881
  124. package/lib/es/analytics.js +58 -56
  125. package/lib/es/auth.js +14 -8
  126. package/lib/es/bet-pack.js +29 -17
  127. package/lib/es/feature.js +108 -0
  128. package/lib/es/gamification-feature.js +2 -2
  129. package/lib/es/gamification-feature2.js +2 -2
  130. package/lib/es/hooks-WfHlJH12.js +98 -0
  131. package/lib/es/index-eShKGO10.js +948 -948
  132. package/lib/es/index.js +14 -13
  133. package/lib/es/index10.js +258 -816
  134. package/lib/es/index11.js +837 -170
  135. package/lib/es/index12.js +181 -312
  136. package/lib/es/index13.js +316 -82
  137. package/lib/es/index14.js +83 -2350
  138. package/lib/es/index15.js +3069 -1224
  139. package/lib/es/index16.js +1453 -0
  140. package/lib/es/index2.js +1118 -984
  141. package/lib/es/index3.js +3 -62
  142. package/lib/es/index4.js +2424 -2407
  143. package/lib/es/index5.js +11 -11
  144. package/lib/es/index6.js +127 -127
  145. package/lib/es/index7.js +10 -7
  146. package/lib/es/index8.js +5 -9
  147. package/lib/es/index9.js +10 -265
  148. package/lib/es/insight.js +58 -53
  149. package/lib/es/masters.js +6 -5
  150. package/lib/es/masters2.js +696 -558
  151. package/lib/es/notification.js +697 -655
  152. package/lib/es/pause-ad.js +190 -167
  153. package/lib/es/points.js +56 -48
  154. package/lib/es/polymarket.js +6848 -0
  155. package/lib/es/sl-types.js +200 -132
  156. package/lib/es/storage.js +75 -74
  157. package/lib/es/theme.js +177 -31
  158. package/lib/es/useStreamLayerApp.js +2 -2
  159. package/lib/es/useStreamLayerApp2.js +9727 -7592
  160. package/lib/es/utils.js +28 -28
  161. package/lib/index.d.ts +1 -0
  162. package/lib/style.css +1 -1
  163. package/package.json +33 -20
  164. package/lib/cjs/hooks-B0Qttldg.js +0 -1
  165. package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
  166. package/lib/classic/es/hooks-B0Qttldg.js +0 -98
  167. package/lib/es/hooks-B0Qttldg.js +0 -98
@@ -1,2139 +1,2468 @@
1
- var we = Object.defineProperty;
2
- var Le = (e, t, n) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var T = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { useState as L, useEffect as y, useRef as V, useCallback as U, Component as ke, createElement as _e, PureComponent as Te, lazy as Se, useMemo as M, Suspense as Ne, forwardRef as ie, useLayoutEffect as xe, useContext as f2 } from "react";
5
- import { c as g2, F as Re, z as Ee, Y as I2 } from "./hooks-B0Qttldg.js";
6
- import { jsx as s, jsxs as h, Fragment as R } from "react/jsx-runtime";
7
- import { I as re, l as Ve, S as H, e as B, p as b2, Q as S, a as He } from "./useStreamLayerApp2.js";
8
- import { m as Q, h as ze } from "./index5.js";
9
- import { u as A, A as D, s as i, b as Me, c as F, a as e2 } from "./sl-types.js";
10
- import { l as Oe, S as De, m as Fe, d as Be, n as qe, C as Ue, a as Pe, b as We, f as i2, p as je, c as Ze } from "./index12.js";
11
- import { F as t2, c as G, e as Ge } from "./index7.js";
12
- import { atom as Qe } from "nanostores";
13
- import c2 from "lodash.throttle";
14
- import { f as ae, c as oe, b as Ke, A as Ye } from "./analytics.js";
15
- import { O as Je, p as u2, h as Xe, y as e0, e as t0 } from "./Question.js";
16
- import { i as O } from "./index6.js";
17
- import { I as m2, s as le, b as ce, e as de } from "./index11.js";
18
- import { createPortal as s2 } from "react-dom";
19
- import { u as s0 } from "./utils.js";
20
- import { B as _ } from "./index4.js";
21
- import n0 from "react-infinite-scroller";
22
- import { r as pe, S as i0, R as r0, D as a0 } from "./notification2.js";
23
- import { w as o0, E as l0 } from "./index8.js";
24
- import "uuid";
25
- import "@nanostores/query";
26
- import { d as c0 } from "./index3.js";
27
- const he = (e) => Qe(e), d0 = (e) => {
28
- const t = A(e.getActiveFeature()), n = A(e.streamStore()), [r, a] = L(null);
29
- return y(() => {
30
- const o = e.getFeatures();
31
- if (!t)
32
- a(null);
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ import { useState, useEffect, useRef, useCallback, Component, createElement, PureComponent, lazy, useMemo, Suspense, forwardRef, useLayoutEffect, useContext } from "react";
5
+ import { i as i$g, F as F$5, z as z$5, Y } from "./hooks-WfHlJH12.js";
6
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
7
+ import { p as atom, I as InvitationFrom, l as global, S as SdkOverlayType, e as Code, q as createContextKey, Q as QuestionType, a as QuestionImages } from "./useStreamLayerApp2.js";
8
+ import { m as m$e, h as h$3 } from "./index7.js";
9
+ import { u as useStore, A as A$6, s as styled_default, b as useTransition, c as cx_default, a as NotificationType } from "./sl-types.js";
10
+ import { l as l$f, S as S$3, m as m$d, d as d$9, n as n$f, C as C$4, a as S$4, b as a$d, f as f$c, p as p$i, c as c$d } from "./index13.js";
11
+ import { F as FeatureStatus, c as createLogger } from "./feature.js";
12
+ import i$e from "lodash.throttle";
13
+ import { f as f$a, c as f$b, b as b$6, A as A$7 } from "./analytics.js";
14
+ import { O as O$1, p as p$h, h as ht, y as y$2, e as e$l } from "./Question.js";
15
+ import { i as i$f } from "./index8.js";
16
+ import { I as I$a, s as s$7, b as b$5, e as e$k } from "./index12.js";
17
+ import { createPortal } from "react-dom";
18
+ import { u as u$5 } from "./utils.js";
19
+ import { B as B1 } from "./index4.js";
20
+ import m$c from "react-infinite-scroller";
21
+ import { r as r$e, S as S$2, R as R$3, D as D$3 } from "./notification2.js";
22
+ import { w as wt, E as Et } from "./index9.js";
23
+ import "./index6.js";
24
+ import { e as eventBus } from "./index5.js";
25
+ import { d as d$a } from "./index3.js";
26
+ const createSingleStore = (initialData) => atom(initialData);
27
+ const p$g = (t2) => {
28
+ const r2 = useStore(t2.getActiveFeature()), n2 = useStore(t2.streamStore()), [i2, u2] = useState(null);
29
+ return useEffect(() => {
30
+ const o2 = t2.getFeatures();
31
+ if (!r2)
32
+ u2(null);
33
33
  else
34
- for (const [c, l] of o)
35
- c === t ? (l.status.get() === t2.Suspended && l.enable(), a(l)) : l.status.get() === t2.Ready && l.disable();
34
+ for (const [s2, e2] of o2)
35
+ s2 === r2 ? (e2.status.get() === FeatureStatus.Suspended && e2.enable(), u2(e2)) : e2.status.get() === FeatureStatus.Ready && e2.disable();
36
36
  return () => {
37
- for (const [, c] of o)
38
- c.status.get() === t2.Ready && c.disable();
37
+ for (const [, s2] of o2)
38
+ s2.status.get() === FeatureStatus.Ready && s2.disable();
39
39
  };
40
- }, [t, e, n]), [t, r];
41
- }, $2 = Object.keys(D), A2 = () => {
42
- const e = window.innerWidth;
43
- let t = "sm";
44
- for (let n = $2.length - 1; n > 0; n--) {
45
- const r = $2[n];
46
- if (!(e < D[r]) && e >= D[r]) {
47
- t = r;
40
+ }, [r2, t2, n2]), [r2, i2];
41
+ };
42
+ const o$j = Object.keys(A$6), c$c = () => {
43
+ const t2 = window.innerWidth;
44
+ let e2 = "sm";
45
+ for (let n2 = o$j.length - 1; n2 > 0; n2--) {
46
+ const s2 = o$j[n2];
47
+ if (!(t2 < A$6[s2]) && t2 >= A$6[s2]) {
48
+ e2 = s2;
48
49
  break;
49
50
  }
50
51
  }
51
52
  return {
52
- name: t,
53
- size: D[t]
53
+ name: e2,
54
+ size: A$6[e2]
54
55
  };
55
- }, y2 = (e) => {
56
- var t;
57
- return (((t = e.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) < -68;
58
- }, n2 = () => window.matchMedia("(orientation: landscape)").matches, p0 = (e) => {
59
- const [t] = L(() => ae({
60
- screen: A2(),
61
- sdkInView: y2(e),
62
- sdkInDesktopView: n2()
56
+ }, d$8 = (t2) => {
57
+ var e2;
58
+ return (((e2 = t2.current) == null ? void 0 : e2.getBoundingClientRect().y) || 0) < -68;
59
+ }, w$4 = () => window.matchMedia("(orientation: landscape)").matches, h$2 = (t2) => {
60
+ const [e2] = useState(() => f$a({
61
+ screen: c$c(),
62
+ sdkInView: d$8(t2),
63
+ sdkInDesktopView: w$4()
63
64
  }));
64
- return y(() => {
65
- const n = c2(() => {
66
- t.setKey("sdkInView", y2(e));
67
- }, 200), r = c2(() => {
68
- const a = A2();
69
- t.setKey("screen", a), t.setKey("sdkInDesktopView", n2());
65
+ return useEffect(() => {
66
+ const n2 = i$e(() => {
67
+ e2.setKey("sdkInView", d$8(t2));
68
+ }, 200), s2 = i$e(() => {
69
+ const k2 = c$c();
70
+ e2.setKey("screen", k2), e2.setKey("sdkInDesktopView", w$4());
70
71
  }, 200);
71
- return window.addEventListener("scroll", n), window.addEventListener("resize", r), () => {
72
- window.removeEventListener("scroll", n), window.removeEventListener("resize", r);
72
+ return window.addEventListener("scroll", n2), window.addEventListener("resize", s2), () => {
73
+ window.removeEventListener("scroll", n2), window.removeEventListener("resize", s2);
73
74
  };
74
- }, [t, e]), [t];
75
- }, v2 = (e, t, n) => {
76
- const r = t >= D.lg && t < D.xl ? 75 : 52;
77
- e.current && window.scrollTo({
78
- top: e.current.offsetTop - r,
79
- ...n
75
+ }, [e2, t2]), [e2];
76
+ };
77
+ const I$9 = (o2, e2, n2) => {
78
+ const t2 = e2 >= A$6.lg && e2 < A$6.xl ? 75 : 52;
79
+ o2.current && window.scrollTo({
80
+ top: o2.current.offsetTop - t2,
81
+ ...n2
80
82
  });
81
- }, h0 = 15, u0 = (e, t) => {
82
- const n = V(null), r = V(0), [a] = L(
83
- ae({
83
+ }, T$4 = 15, L$1 = (o2, e2) => {
84
+ const n2 = useRef(null), t2 = useRef(0), [s2] = useState(
85
+ f$a({
84
86
  scrollPosition: 0,
85
- tabsShown: !0,
87
+ tabsShown: true,
86
88
  scrollDirection: "forward"
87
89
  })
88
- ), o = A(t);
89
- return y(() => {
90
- const c = n2() ? n.current : window;
91
- if (!c)
90
+ ), d2 = useStore(e2);
91
+ return useEffect(() => {
92
+ const c2 = w$4() ? n2.current : window;
93
+ if (!c2)
92
94
  return () => {
93
95
  };
94
- const l = c2((d) => {
95
- var u;
96
- const v = d.target;
97
- if (!v)
96
+ const l2 = i$e((p2) => {
97
+ var f2;
98
+ const i2 = p2.target;
99
+ if (!i2)
98
100
  return;
99
- let m = 0;
100
- n2() ? m = v.scrollTop : m = ((u = e.current) == null ? void 0 : u.getBoundingClientRect().y) || 0;
101
- const p = r.current - m;
102
- if (h0 > Math.abs(p))
101
+ let r2 = 0;
102
+ w$4() ? r2 = i2.scrollTop : r2 = ((f2 = o2.current) == null ? void 0 : f2.getBoundingClientRect().y) || 0;
103
+ const w2 = t2.current - r2;
104
+ if (T$4 > Math.abs(w2))
103
105
  return;
104
- const C = r.current < m ? "forward" : "backward";
105
- r.current = m, a.set({
106
- scrollPosition: Math.round(m),
107
- scrollDirection: C,
108
- tabsShown: a.get().tabsShown
106
+ const S2 = t2.current < r2 ? "forward" : "backward";
107
+ t2.current = r2, s2.set({
108
+ scrollPosition: Math.round(r2),
109
+ scrollDirection: S2,
110
+ tabsShown: s2.get().tabsShown
109
111
  });
110
112
  }, 200);
111
- return c.addEventListener("scroll", l), () => {
112
- c.removeEventListener("scroll", l);
113
+ return c2.addEventListener("scroll", l2), () => {
114
+ c2.removeEventListener("scroll", l2);
113
115
  };
114
- }, [a, e, o.screen]), [n, a];
115
- }, a2 = /* @__PURE__ */ i("div")({
116
+ }, [s2, o2, d2.screen]), [n2, s2];
117
+ };
118
+ const o$i = /* @__PURE__ */ styled_default("div")({
116
119
  name: "LoadingContainer",
117
120
  class: "lclc0ej",
118
- propsAsIs: !1
119
- }), m0 = ({
120
- feature: e,
121
- sdk: t,
122
- children: n,
123
- className: r,
124
- noWait: a
121
+ propsAsIs: false
122
+ }), v$6 = ({
123
+ feature: n2,
124
+ sdk: a2,
125
+ children: s2,
126
+ className: r2,
127
+ noWait: d2
125
128
  }) => {
126
- const o = A(e.status), c = A(t.sdkStore.slStreamId);
127
- if (!a) {
128
- if (c != null && c.loading && !c.data)
129
- return /* @__PURE__ */ s(a2, {
130
- className: r,
129
+ const f2 = useStore(n2.status), t2 = useStore(a2.sdkStore.slStreamId);
130
+ if (!d2) {
131
+ if (t2 != null && t2.loading && !t2.data)
132
+ return /* @__PURE__ */ jsx(o$i, {
133
+ className: r2,
131
134
  children: "Event is loading..."
132
135
  });
133
- if (!(c != null && c.data))
134
- return /* @__PURE__ */ s(a2, {
135
- className: r,
136
+ if (!(t2 != null && t2.data))
137
+ return /* @__PURE__ */ jsx(o$i, {
138
+ className: r2,
136
139
  children: "Event is forbidden..."
137
140
  });
138
- if (o !== t2.Ready)
139
- return /* @__PURE__ */ s(a2, {
140
- className: r,
141
+ if (f2 !== FeatureStatus.Ready)
142
+ return /* @__PURE__ */ jsx(o$i, {
143
+ className: r2,
141
144
  children: "Wait feature..."
142
145
  });
143
146
  }
144
- return n;
145
- }, v0 = /* @__PURE__ */ i("div")({
147
+ return s2;
148
+ };
149
+ const n$e = /* @__PURE__ */ styled_default("div")({
146
150
  name: "Container",
147
151
  class: "c1zy8a",
148
- propsAsIs: !1
149
- }), C0 = /* @__PURE__ */ i("div")({
152
+ propsAsIs: false
153
+ }), o$h = /* @__PURE__ */ styled_default("div")({
150
154
  name: "Title",
151
155
  class: "t1vih9p5",
152
- propsAsIs: !1
153
- }), f0 = /* @__PURE__ */ i("div")({
156
+ propsAsIs: false
157
+ }), t$g = /* @__PURE__ */ styled_default("div")({
154
158
  name: "Indicator",
155
159
  class: "i1fbnvpb",
156
- propsAsIs: !1
157
- }), w2 = ({ indicator: e, title: t }) => /* @__PURE__ */ h(v0, { children: [
158
- /* @__PURE__ */ s(C0, { children: t }),
159
- /* @__PURE__ */ s(f0, { children: e })
160
- ] }), g0 = /* @__PURE__ */ i("div")({
160
+ propsAsIs: false
161
+ });
162
+ const m$b = ({ indicator: i2, title: n2 }) => /* @__PURE__ */ jsxs(n$e, { children: [
163
+ /* @__PURE__ */ jsx(o$h, { children: n2 }),
164
+ /* @__PURE__ */ jsx(t$g, { children: i2 })
165
+ ] });
166
+ const t$f = /* @__PURE__ */ styled_default("div")({
161
167
  name: "Container",
162
168
  class: "ctmhwyc",
163
- propsAsIs: !1
164
- }), I0 = /* @__PURE__ */ i("div")({
169
+ propsAsIs: false
170
+ }), a$c = /* @__PURE__ */ styled_default("div")({
165
171
  name: "Indicator",
166
172
  class: "i1jri200",
167
- propsAsIs: !1
168
- }), b0 = /* @__PURE__ */ i("div")({
173
+ propsAsIs: false
174
+ }), e$j = /* @__PURE__ */ styled_default("div")({
169
175
  name: "Title",
170
176
  class: "t8s05oq",
171
- propsAsIs: !1
172
- }), K = ({ indicator: e, title: t }) => /* @__PURE__ */ h(g0, { children: [
173
- /* @__PURE__ */ s(I0, { children: e }),
174
- /* @__PURE__ */ s(b0, { children: t })
175
- ] }), $0 = /* @__PURE__ */ i("div")({
177
+ propsAsIs: false
178
+ });
179
+ const l$e = ({ indicator: r2, title: t2 }) => /* @__PURE__ */ jsxs(t$f, { children: [
180
+ /* @__PURE__ */ jsx(a$c, { children: r2 }),
181
+ /* @__PURE__ */ jsx(e$j, { children: t2 })
182
+ ] });
183
+ const o$g = /* @__PURE__ */ styled_default("div")({
176
184
  name: "Container",
177
185
  class: "c1yrpn9o",
178
- propsAsIs: !1
179
- }), A0 = /* @__PURE__ */ i("div")({
186
+ propsAsIs: false
187
+ }), n$d = /* @__PURE__ */ styled_default("div")({
180
188
  name: "TopInfo",
181
189
  class: "t17fwahh",
182
- propsAsIs: !1
183
- }), y0 = /* @__PURE__ */ i("div")({
190
+ propsAsIs: false
191
+ }), e$i = /* @__PURE__ */ styled_default("div")({
184
192
  name: "BottomInfo",
185
193
  class: "by6w7e9",
186
- propsAsIs: !1
187
- }), w0 = /* @__PURE__ */ i("div")({
194
+ propsAsIs: false
195
+ }), t$e = /* @__PURE__ */ styled_default("div")({
188
196
  name: "User",
189
197
  class: "u1g7arbm",
190
- propsAsIs: !1
191
- }), L0 = /* @__PURE__ */ i("img")({
198
+ propsAsIs: false
199
+ }), r$d = /* @__PURE__ */ styled_default("img")({
192
200
  name: "Avatar",
193
201
  class: "a1ldeata",
194
- propsAsIs: !1
195
- }), k0 = /* @__PURE__ */ i("div")({
202
+ propsAsIs: false
203
+ }), c$b = /* @__PURE__ */ styled_default("div")({
196
204
  name: "UserInfo",
197
205
  class: "u10d4koz",
198
- propsAsIs: !1
199
- }), _0 = /* @__PURE__ */ i("div")({
206
+ propsAsIs: false
207
+ }), l$d = /* @__PURE__ */ styled_default("div")({
200
208
  name: "UserName",
201
209
  class: "u1q6roj0",
202
- propsAsIs: !1
203
- }), T0 = /* @__PURE__ */ i("div")({
210
+ propsAsIs: false
211
+ }), p$f = /* @__PURE__ */ styled_default("div")({
204
212
  name: "UserRating",
205
213
  class: "ui0m425",
206
- propsAsIs: !1
207
- }), S0 = /* @__PURE__ */ i("img")({
214
+ propsAsIs: false
215
+ }), i$d = /* @__PURE__ */ styled_default("img")({
208
216
  name: "TrophyIcon",
209
217
  class: "t1el3mrn",
210
- propsAsIs: !1
211
- }), N0 = /* @__PURE__ */ i("div")({
218
+ propsAsIs: false
219
+ }), m$a = /* @__PURE__ */ styled_default("div")({
212
220
  name: "RtsContainer",
213
221
  class: "r2vgnxv",
214
- propsAsIs: !1
215
- }), x0 = /* @__PURE__ */ i("div")({
222
+ propsAsIs: false
223
+ }), d$7 = /* @__PURE__ */ styled_default("div")({
216
224
  name: "RtsDivider",
217
225
  class: "roqn06j",
218
- propsAsIs: !1
219
- }), R0 = /* @__PURE__ */ i("div")({
226
+ propsAsIs: false
227
+ }), f$9 = /* @__PURE__ */ styled_default("div")({
220
228
  name: "Rts",
221
229
  class: "r15adx7c",
222
- propsAsIs: !1
223
- }), L2 = /* @__PURE__ */ i("div")({
230
+ propsAsIs: false
231
+ }), I$8 = /* @__PURE__ */ styled_default("div")({
224
232
  name: "RtsIndicator",
225
233
  class: "rv59lta",
226
- propsAsIs: !1
227
- }), k2 = /* @__PURE__ */ i("div")({
234
+ propsAsIs: false
235
+ }), v$5 = /* @__PURE__ */ styled_default("div")({
228
236
  name: "RtsLabel",
229
237
  class: "r55lotb",
230
- propsAsIs: !1
231
- }), E0 = /* @__PURE__ */ i("div")({
238
+ propsAsIs: false
239
+ }), A$5 = /* @__PURE__ */ styled_default("div")({
232
240
  name: "Divider",
233
241
  class: "d1knfgqt",
234
- propsAsIs: !1
235
- }), V0 = /* @__PURE__ */ i("div")({
242
+ propsAsIs: false
243
+ }), R$2 = /* @__PURE__ */ styled_default("div")({
236
244
  name: "Ranks",
237
245
  class: "r1mqo824",
238
- propsAsIs: !1
239
- }), H0 = /* @__PURE__ */ i("div")({
246
+ propsAsIs: false
247
+ }), U$2 = /* @__PURE__ */ styled_default("div")({
240
248
  name: "Statistics",
241
249
  class: "sxareh6",
242
- propsAsIs: !1
243
- }), z0 = /* @__PURE__ */ i("div")({
250
+ propsAsIs: false
251
+ }), u$4 = /* @__PURE__ */ styled_default("div")({
244
252
  name: "AvatarPlaceholder",
245
253
  class: "amcu48h",
246
- propsAsIs: !1
247
- }), M0 = /* @__PURE__ */ i("button")({
254
+ propsAsIs: false
255
+ }), h$1 = /* @__PURE__ */ styled_default("button")({
248
256
  name: "UserAccountBtn",
249
257
  class: "u32nfkp",
250
- propsAsIs: !1
251
- }), O0 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e", ue = ({
252
- loading: e,
253
- hideFriendsRank: t,
254
- avatar: n,
255
- name: r,
256
- points: a,
257
- friendsRank: o,
258
- rank: c,
259
- streak: l,
260
- correct: d,
261
- incorrect: u,
262
- inTop: v,
263
- successRate: m
264
- }) => /* @__PURE__ */ h($0, { "data-loading": e, children: [
265
- /* @__PURE__ */ s(A0, { children: /* @__PURE__ */ s(O, { loading: e, children: /* @__PURE__ */ h(w0, { children: [
266
- /* @__PURE__ */ h(M0, { children: [
267
- n && /* @__PURE__ */ s(L0, { alt: "avatar", src: n }),
268
- !n && /* @__PURE__ */ s(z0, { children: m2(r || "") })
258
+ propsAsIs: false
259
+ });
260
+ const F$4 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e", z$4 = ({
261
+ loading: t2,
262
+ hideFriendsRank: n2,
263
+ avatar: l2,
264
+ name: o2,
265
+ points: s2,
266
+ friendsRank: m2,
267
+ rank: C2,
268
+ streak: p2,
269
+ correct: f2,
270
+ incorrect: v2,
271
+ inTop: L2,
272
+ successRate: g2
273
+ }) => /* @__PURE__ */ jsxs(o$g, { "data-loading": t2, children: [
274
+ /* @__PURE__ */ jsx(n$d, { children: /* @__PURE__ */ jsx(i$f, { loading: t2, children: /* @__PURE__ */ jsxs(t$e, { children: [
275
+ /* @__PURE__ */ jsxs(h$1, { children: [
276
+ l2 && /* @__PURE__ */ jsx(r$d, { alt: "avatar", src: l2 }),
277
+ !l2 && /* @__PURE__ */ jsx(u$4, { children: I$a(o2 || "") })
269
278
  ] }),
270
- /* @__PURE__ */ h(k0, { children: [
271
- /* @__PURE__ */ s(_0, { children: r }),
272
- /* @__PURE__ */ h(T0, { children: [
273
- /* @__PURE__ */ h(N0, { children: [
274
- /* @__PURE__ */ h(R0, { children: [
275
- /* @__PURE__ */ s(S0, { alt: "rank-icon", src: O0 }),
276
- /* @__PURE__ */ h(L2, { children: [
277
- le(a),
278
- /* @__PURE__ */ s(k2, { children: "PTS" })
279
+ /* @__PURE__ */ jsxs(c$b, { children: [
280
+ /* @__PURE__ */ jsx(l$d, { children: o2 }),
281
+ /* @__PURE__ */ jsxs(p$f, { children: [
282
+ /* @__PURE__ */ jsxs(m$a, { children: [
283
+ /* @__PURE__ */ jsxs(f$9, { children: [
284
+ /* @__PURE__ */ jsx(i$d, { alt: "rank-icon", src: F$4 }),
285
+ /* @__PURE__ */ jsxs(I$8, { children: [
286
+ s$7(s2),
287
+ /* @__PURE__ */ jsx(v$5, { children: "PTS" })
279
288
  ] })
280
289
  ] }),
281
- t && /* @__PURE__ */ h(L2, { children: [
282
- /* @__PURE__ */ s(x0, {}),
283
- c || 0,
284
- /* @__PURE__ */ s(k2, { children: "global rank" })
290
+ n2 && /* @__PURE__ */ jsxs(I$8, { children: [
291
+ /* @__PURE__ */ jsx(d$7, {}),
292
+ C2 || 0,
293
+ /* @__PURE__ */ jsx(v$5, { children: "global rank" })
285
294
  ] })
286
295
  ] }),
287
- !t && /* @__PURE__ */ h(R, { children: [
288
- /* @__PURE__ */ s(E0, {}),
289
- /* @__PURE__ */ h("div", { children: [
296
+ !n2 && /* @__PURE__ */ jsxs(Fragment, { children: [
297
+ /* @__PURE__ */ jsx(A$5, {}),
298
+ /* @__PURE__ */ jsxs("div", { children: [
290
299
  "TOP ",
291
- v || 0,
300
+ L2 || 0,
292
301
  "%"
293
302
  ] })
294
303
  ] })
295
304
  ] })
296
305
  ] })
297
306
  ] }) }) }),
298
- /* @__PURE__ */ h(y0, { children: [
299
- !t && /* @__PURE__ */ h(V0, { children: [
300
- /* @__PURE__ */ s(O, { loading: e, style: { width: "100%" }, children: /* @__PURE__ */ s(w2, { indicator: o || 0, title: "Friends rank" }) }),
301
- /* @__PURE__ */ s(O, { loading: e, style: { width: "100%" }, children: /* @__PURE__ */ s(w2, { indicator: c || 0, title: "Global rank" }) })
307
+ /* @__PURE__ */ jsxs(e$i, { children: [
308
+ !n2 && /* @__PURE__ */ jsxs(R$2, { children: [
309
+ /* @__PURE__ */ jsx(i$f, { loading: t2, style: { width: "100%" }, children: /* @__PURE__ */ jsx(m$b, { indicator: m2 || 0, title: "Friends rank" }) }),
310
+ /* @__PURE__ */ jsx(i$f, { loading: t2, style: { width: "100%" }, children: /* @__PURE__ */ jsx(m$b, { indicator: C2 || 0, title: "Global rank" }) })
302
311
  ] }),
303
- /* @__PURE__ */ s(O, { loading: e, children: /* @__PURE__ */ h(H0, { children: [
304
- /* @__PURE__ */ s(K, { indicator: l || 0, title: "Win streak" }),
305
- /* @__PURE__ */ s(K, { indicator: d || 0, title: "Correct" }),
306
- /* @__PURE__ */ s(K, { indicator: u || 0, title: "Incorrect" }),
307
- /* @__PURE__ */ s(K, { indicator: `${m || 0}%`, title: "Succ. rate" })
312
+ /* @__PURE__ */ jsx(i$f, { loading: t2, children: /* @__PURE__ */ jsxs(U$2, { children: [
313
+ /* @__PURE__ */ jsx(l$e, { indicator: p2 || 0, title: "Win streak" }),
314
+ /* @__PURE__ */ jsx(l$e, { indicator: f2 || 0, title: "Correct" }),
315
+ /* @__PURE__ */ jsx(l$e, { indicator: v2 || 0, title: "Incorrect" }),
316
+ /* @__PURE__ */ jsx(l$e, { indicator: `${g2 || 0}%`, title: "Succ. rate" })
308
317
  ] }) })
309
318
  ] })
310
- ] }), D0 = /* @__PURE__ */ i("div")({
319
+ ] });
320
+ const S$1 = /* @__PURE__ */ styled_default("div")({
311
321
  name: "StaticContainer",
312
322
  class: "svm502q",
313
- propsAsIs: !1
314
- }), F0 = `
323
+ propsAsIs: false
324
+ }), C$3 = `
315
325
  .sl-pill-button {
316
326
  display: none !important;
317
327
  }
318
- `, me = () => window.innerWidth >= D.md && window.innerWidth < D.lg ? 76 : 53, _2 = (e) => {
319
- var t;
320
- const n = me();
321
- return Math.round((((t = e.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) - n) <= 0;
322
- }, ve = ({
323
- children: e,
324
- container: t,
325
- useContainer: n,
326
- staticStyles: r
328
+ `, p$e = () => window.innerWidth >= A$6.md && window.innerWidth < A$6.lg ? 76 : 53, m$9 = (e2) => {
329
+ var n2;
330
+ const t2 = p$e();
331
+ return Math.round((((n2 = e2.current) == null ? void 0 : n2.getBoundingClientRect().y) || 0) - t2) <= 0;
332
+ }, T$3 = ({
333
+ children: e2,
334
+ container: t2,
335
+ useContainer: n2,
336
+ staticStyles: w2
327
337
  }) => {
328
- const [a] = L(() => _2(t)), [o, c] = L(!1);
329
- return y(() => {
330
- if (!t.current || !a)
331
- return c(!0), () => {
338
+ const [s2] = useState(() => m$9(t2)), [r2, i2] = useState(false);
339
+ return useEffect(() => {
340
+ if (!t2.current || !s2)
341
+ return i2(true), () => {
332
342
  };
333
- const l = window.scrollY;
334
- return c(!0), () => {
335
- _2(t) && window.scrollTo({
336
- top: l,
343
+ const o2 = window.scrollY;
344
+ return i2(true), () => {
345
+ m$9(t2) && window.scrollTo({
346
+ top: o2,
337
347
  behavior: "instant"
338
348
  });
339
349
  };
340
- }, []), y(() => {
341
- if (o && t.current && a) {
342
- const l = me();
350
+ }, []), useEffect(() => {
351
+ if (r2 && t2.current && s2) {
352
+ const o2 = p$e();
343
353
  window.scrollTo({
344
- top: t.current.offsetTop - l,
354
+ top: t2.current.offsetTop - o2,
345
355
  behavior: "instant"
346
356
  });
347
357
  }
348
- }, [o]), !t.current || !o ? null : n ? s2(/* @__PURE__ */ h(D0, {
358
+ }, [r2]), !t2.current || !r2 ? null : n2 ? createPortal(/* @__PURE__ */ jsxs(S$1, {
349
359
  className: "StaticContainer",
350
- children: [e, /* @__PURE__ */ s("style", {
351
- children: s0
352
- }), /* @__PURE__ */ s("style", {
353
- children: F0
360
+ children: [e2, /* @__PURE__ */ jsx("style", {
361
+ children: u$5
362
+ }), /* @__PURE__ */ jsx("style", {
363
+ children: C$3
354
364
  })]
355
- }), t.current, "modal-node") : s2(/* @__PURE__ */ h(R, {
356
- children: [e, /* @__PURE__ */ s("style", {
357
- children: r
365
+ }), t2.current, "modal-node") : createPortal(/* @__PURE__ */ jsxs(Fragment, {
366
+ children: [e2, /* @__PURE__ */ jsx("style", {
367
+ children: w2
358
368
  })]
359
- }), t.current, "modal-node");
360
- }, B0 = /* @__PURE__ */ i("div")({
369
+ }), t2.current, "modal-node");
370
+ };
371
+ const t$d = /* @__PURE__ */ styled_default("div")({
361
372
  name: "Container",
362
373
  class: "c115qtkr",
363
- propsAsIs: !1
364
- }), q0 = /* @__PURE__ */ i("div")({
374
+ propsAsIs: false
375
+ }), n$c = /* @__PURE__ */ styled_default("div")({
365
376
  name: "STabs",
366
377
  class: "sxnslc8",
367
- propsAsIs: !1
368
- }), U0 = /* @__PURE__ */ i("button")({
378
+ propsAsIs: false
379
+ }), o$f = /* @__PURE__ */ styled_default("button")({
369
380
  name: "Button",
370
381
  class: "b1umzux0",
371
- propsAsIs: !1
372
- }), P0 = /* @__PURE__ */ i("span")({
382
+ propsAsIs: false
383
+ }), e$h = /* @__PURE__ */ styled_default("span")({
373
384
  name: "Title",
374
385
  class: "tspsaas",
375
- propsAsIs: !1
386
+ propsAsIs: false
376
387
  });
377
- var j = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(j || {});
378
- const T2 = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ s(U0, { "data-a": "intr", onClick: n, "data-selected": t, children: /* @__PURE__ */ s(P0, { "data-a": "intr", children: e }) }), W0 = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ s(B0, { children: /* @__PURE__ */ h(q0, { "data-position": e === "home" ? "left" : "right", children: [
379
- /* @__PURE__ */ s(T2, { title: "Home", active: e === "home", onClick: () => t(
388
+ var m$8 = /* @__PURE__ */ ((r2) => (r2.HOME = "home", r2.LEADERBOARD = "leaderboard", r2))(m$8 || {});
389
+ const o$e = ({ title: r2, active: e2, onClick: n2 }) => /* @__PURE__ */ jsx(o$f, { "data-a": "intr", onClick: n2, "data-selected": e2, children: /* @__PURE__ */ jsx(e$h, { "data-a": "intr", children: r2 }) }), b$4 = ({ activePage: r2 = "home", toggleActivePage: e2 }) => /* @__PURE__ */ jsx(t$d, { children: /* @__PURE__ */ jsxs(n$c, { "data-position": r2 === "home" ? "left" : "right", children: [
390
+ /* @__PURE__ */ jsx(o$e, { title: "Home", active: r2 === "home", onClick: () => e2(
380
391
  "home"
381
392
  /* HOME */
382
393
  ) }),
383
- /* @__PURE__ */ s(
384
- T2,
394
+ /* @__PURE__ */ jsx(
395
+ o$e,
385
396
  {
386
397
  title: "Friends",
387
- active: e === "leaderboard",
388
- onClick: () => t(
398
+ active: r2 === "leaderboard",
399
+ onClick: () => e2(
389
400
  "leaderboard"
390
401
  /* LEADERBOARD */
391
402
  )
392
403
  }
393
404
  )
394
- ] }) }), j0 = /* @__PURE__ */ i("button")({
405
+ ] }) });
406
+ const n$b = /* @__PURE__ */ styled_default("button")({
395
407
  name: "Container",
396
408
  class: "cpjnajb",
397
- propsAsIs: !1
398
- }), Z0 = /* @__PURE__ */ i("div")({
409
+ propsAsIs: false
410
+ }), a$b = /* @__PURE__ */ styled_default("div")({
399
411
  name: "Content",
400
412
  class: "c4m6kaz",
401
- propsAsIs: !1
402
- }), G0 = /* @__PURE__ */ i("span")({
413
+ propsAsIs: false
414
+ }), e$g = /* @__PURE__ */ styled_default("span")({
403
415
  name: "Title",
404
416
  class: "t1h8t9cc",
405
- propsAsIs: !1
406
- }), Q0 = () => /* @__PURE__ */ s(j0, { children: /* @__PURE__ */ h(Z0, { children: [
407
- /* @__PURE__ */ s(_, { name: "iconCopySuccess" }),
408
- /* @__PURE__ */ s(G0, { children: "Link Copied to Clipboard" })
409
- ] }) }), Ce = (e) => {
410
- const t = V(), [n, r] = L(null), a = U(
411
- async (o) => {
412
- var c;
413
- if (o && (c = navigator == null ? void 0 : navigator.clipboard) != null && c.writeText) {
414
- t.current && (clearTimeout(t.current), r(null));
417
+ propsAsIs: false
418
+ });
419
+ const s$6 = () => /* @__PURE__ */ jsx(n$b, { children: /* @__PURE__ */ jsxs(a$b, { children: [
420
+ /* @__PURE__ */ jsx(B1, { name: "iconCopySuccess" }),
421
+ /* @__PURE__ */ jsx(e$g, { children: "Link Copied to Clipboard" })
422
+ ] }) });
423
+ const T$2 = (r2) => {
424
+ const t2 = useRef(), [c2, o2] = useState(null), a2 = useCallback(
425
+ async (e2) => {
426
+ var i2;
427
+ if (e2 && ((i2 = navigator == null ? void 0 : navigator.clipboard) != null && i2.writeText)) {
428
+ t2.current && (clearTimeout(t2.current), o2(null));
415
429
  try {
416
- await navigator.clipboard.writeText(o), e.current && (r(s2(/* @__PURE__ */ s(Q0, {}), e.current)), t.current = setTimeout(() => {
417
- r(null);
430
+ await navigator.clipboard.writeText(e2), r2.current && (o2(createPortal(/* @__PURE__ */ jsx(s$6, {}), r2.current)), t2.current = setTimeout(() => {
431
+ o2(null);
418
432
  }, 1e3));
419
- } catch (l) {
420
- console.error("Unable to copy to clipboard", l);
433
+ } catch (n2) {
434
+ console.error("Unable to copy to clipboard", n2);
421
435
  }
422
436
  }
423
437
  },
424
- [e]
438
+ [r2]
425
439
  );
426
- return y(() => () => {
427
- clearTimeout(t.current);
428
- }, []), [a, n];
429
- }, K0 = /* @__PURE__ */ i("div")({
440
+ return useEffect(() => () => {
441
+ clearTimeout(t2.current);
442
+ }, []), [a2, c2];
443
+ };
444
+ const r$c = /* @__PURE__ */ styled_default("div")({
430
445
  name: "Container",
431
446
  class: "c1ux29ft",
432
- propsAsIs: !1
433
- }), Y0 = () => _, J0 = /* @__PURE__ */ i(Y0())({
447
+ propsAsIs: false
448
+ }), o$d = () => B1, a$a = /* @__PURE__ */ styled_default(o$d())({
434
449
  name: "FriendsIcon",
435
450
  class: "f10ncfg2",
436
- propsAsIs: !0
437
- }), X0 = /* @__PURE__ */ i("div")({
451
+ propsAsIs: true
452
+ }), p$d = /* @__PURE__ */ styled_default("div")({
438
453
  name: "Content",
439
454
  class: "c1yc07bd",
440
- propsAsIs: !1
441
- }), et = /* @__PURE__ */ i("div")({
455
+ propsAsIs: false
456
+ }), i$c = /* @__PURE__ */ styled_default("div")({
442
457
  name: "Title",
443
458
  class: "tj6cq7w",
444
- propsAsIs: !1
445
- }), tt = /* @__PURE__ */ i("div")({
459
+ propsAsIs: false
460
+ }), l$c = /* @__PURE__ */ styled_default("div")({
446
461
  name: "Description",
447
462
  class: "d1ag78xo",
448
- propsAsIs: !1
449
- }), st = () => _, nt = /* @__PURE__ */ i(st())({
463
+ propsAsIs: false
464
+ }), e$f = () => B1, I$7 = /* @__PURE__ */ styled_default(e$f())({
450
465
  name: "ArrowInviteIcon",
451
466
  class: "awohrz6",
452
- propsAsIs: !0
453
- }), it = ({ title: e, description: t, onClick: n, className: r }) => {
454
- const [a] = oe({
467
+ propsAsIs: true
468
+ });
469
+ const C$2 = ({ title: o2, description: t2, onClick: r2, className: e2 }) => {
470
+ const [c2] = f$b({
455
471
  type: "invitation",
456
472
  action: "sent",
457
473
  payload: {
458
- from: re.TITLE_CARD
474
+ from: InvitationFrom.TITLE_CARD
459
475
  }
460
476
  });
461
- return /* @__PURE__ */ h(K0, { "data-a": "intr", onClick: a(n), className: r, children: [
462
- /* @__PURE__ */ s(J0, { name: "icon-friends" }),
463
- /* @__PURE__ */ h(X0, { children: [
464
- /* @__PURE__ */ s(et, { children: e }),
465
- /* @__PURE__ */ s(tt, { children: t })
477
+ return /* @__PURE__ */ jsxs(r$c, { "data-a": "intr", onClick: c2(r2), className: e2, children: [
478
+ /* @__PURE__ */ jsx(a$a, { name: "icon-friends" }),
479
+ /* @__PURE__ */ jsxs(p$d, { children: [
480
+ /* @__PURE__ */ jsx(i$c, { children: o2 }),
481
+ /* @__PURE__ */ jsx(l$c, { children: t2 })
466
482
  ] }),
467
- /* @__PURE__ */ s(nt, { name: "icon-copy" })
483
+ /* @__PURE__ */ jsx(I$7, { name: "icon-copy" })
468
484
  ] });
469
485
  };
470
- let E;
471
- typeof window < "u" ? E = window : typeof self < "u" ? E = self : E = Ve;
472
- let d2 = null, p2 = null;
473
- const S2 = 20, o2 = E.clearTimeout, N2 = E.setTimeout, l2 = E.cancelAnimationFrame || E.mozCancelAnimationFrame || E.webkitCancelAnimationFrame, x2 = E.requestAnimationFrame || E.mozRequestAnimationFrame || E.webkitRequestAnimationFrame;
474
- l2 == null || x2 == null ? (d2 = o2, p2 = function(t) {
475
- return N2(t, S2);
476
- }) : (d2 = function([t, n]) {
477
- l2(t), o2(n);
478
- }, p2 = function(t) {
479
- const n = x2(function() {
480
- o2(r), t();
481
- }), r = N2(function() {
482
- l2(n), t();
483
- }, S2);
484
- return [n, r];
485
- });
486
- function rt(e) {
487
- let t, n, r, a, o, c, l;
488
- const d = typeof document < "u" && document.attachEvent;
489
- if (!d) {
490
- c = function($) {
491
- const b = $.__resizeTriggers__, k = b.firstElementChild, w = b.lastElementChild, x = k.firstElementChild;
492
- w.scrollLeft = w.scrollWidth, w.scrollTop = w.scrollHeight, x.style.width = k.offsetWidth + 1 + "px", x.style.height = k.offsetHeight + 1 + "px", k.scrollLeft = k.scrollWidth, k.scrollTop = k.scrollHeight;
493
- }, o = function($) {
494
- return $.offsetWidth !== $.__resizeLast__.width || $.offsetHeight !== $.__resizeLast__.height;
495
- }, l = function($) {
496
- if ($.target.className && typeof $.target.className.indexOf == "function" && $.target.className.indexOf("contract-trigger") < 0 && $.target.className.indexOf("expand-trigger") < 0)
486
+ let windowObject;
487
+ if (typeof window !== "undefined") {
488
+ windowObject = window;
489
+ } else if (typeof self !== "undefined") {
490
+ windowObject = self;
491
+ } else {
492
+ windowObject = global;
493
+ }
494
+ let cancelFrame = null;
495
+ let requestFrame = null;
496
+ const TIMEOUT_DURATION = 20;
497
+ const clearTimeoutFn = windowObject.clearTimeout;
498
+ const setTimeoutFn = windowObject.setTimeout;
499
+ const cancelAnimationFrameFn = windowObject.cancelAnimationFrame || windowObject.mozCancelAnimationFrame || windowObject.webkitCancelAnimationFrame;
500
+ const requestAnimationFrameFn = windowObject.requestAnimationFrame || windowObject.mozRequestAnimationFrame || windowObject.webkitRequestAnimationFrame;
501
+ if (cancelAnimationFrameFn == null || requestAnimationFrameFn == null) {
502
+ cancelFrame = clearTimeoutFn;
503
+ requestFrame = function requestAnimationFrameViaSetTimeout(callback) {
504
+ return setTimeoutFn(callback, TIMEOUT_DURATION);
505
+ };
506
+ } else {
507
+ cancelFrame = function cancelFrame2([animationFrameID, timeoutID]) {
508
+ cancelAnimationFrameFn(animationFrameID);
509
+ clearTimeoutFn(timeoutID);
510
+ };
511
+ requestFrame = function requestAnimationFrameWithSetTimeoutFallback(callback) {
512
+ const animationFrameID = requestAnimationFrameFn(function animationFrameCallback() {
513
+ clearTimeoutFn(timeoutID);
514
+ callback();
515
+ });
516
+ const timeoutID = setTimeoutFn(function timeoutCallback() {
517
+ cancelAnimationFrameFn(animationFrameID);
518
+ callback();
519
+ }, TIMEOUT_DURATION);
520
+ return [animationFrameID, timeoutID];
521
+ };
522
+ }
523
+ function createDetectElementResize(nonce) {
524
+ let animationKeyframes;
525
+ let animationName;
526
+ let animationStartEvent;
527
+ let animationStyle;
528
+ let checkTriggers;
529
+ let resetTriggers;
530
+ let scrollListener;
531
+ const attachEvent = typeof document !== "undefined" && document.attachEvent;
532
+ if (!attachEvent) {
533
+ resetTriggers = function(element) {
534
+ const triggers = element.__resizeTriggers__, expand = triggers.firstElementChild, contract = triggers.lastElementChild, expandChild = expand.firstElementChild;
535
+ contract.scrollLeft = contract.scrollWidth;
536
+ contract.scrollTop = contract.scrollHeight;
537
+ expandChild.style.width = expand.offsetWidth + 1 + "px";
538
+ expandChild.style.height = expand.offsetHeight + 1 + "px";
539
+ expand.scrollLeft = expand.scrollWidth;
540
+ expand.scrollTop = expand.scrollHeight;
541
+ };
542
+ checkTriggers = function(element) {
543
+ return element.offsetWidth !== element.__resizeLast__.width || element.offsetHeight !== element.__resizeLast__.height;
544
+ };
545
+ scrollListener = function(e2) {
546
+ if (e2.target.className && typeof e2.target.className.indexOf === "function" && e2.target.className.indexOf("contract-trigger") < 0 && e2.target.className.indexOf("expand-trigger") < 0) {
497
547
  return;
498
- const b = this;
499
- c(this), this.__resizeRAF__ && d2(this.__resizeRAF__), this.__resizeRAF__ = p2(function() {
500
- o(b) && (b.__resizeLast__.width = b.offsetWidth, b.__resizeLast__.height = b.offsetHeight, b.__resizeListeners__.forEach(function(x) {
501
- x.call(b, $);
502
- }));
548
+ }
549
+ const element = this;
550
+ resetTriggers(this);
551
+ if (this.__resizeRAF__) {
552
+ cancelFrame(this.__resizeRAF__);
553
+ }
554
+ this.__resizeRAF__ = requestFrame(function animationFrame() {
555
+ if (checkTriggers(element)) {
556
+ element.__resizeLast__.width = element.offsetWidth;
557
+ element.__resizeLast__.height = element.offsetHeight;
558
+ element.__resizeListeners__.forEach(function forEachResizeListener(fn) {
559
+ fn.call(element, e2);
560
+ });
561
+ }
503
562
  });
504
563
  };
505
- let p = !1, C = "";
506
- r = "animationstart";
507
- const g = "Webkit Moz O ms".split(" ");
508
- let I = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), f = "";
564
+ let animation = false;
565
+ let keyframeprefix = "";
566
+ animationStartEvent = "animationstart";
567
+ const domPrefixes = "Webkit Moz O ms".split(" ");
568
+ let startEvents = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");
569
+ let pfx = "";
509
570
  {
510
- const $ = document.createElement("fakeelement");
511
- if ($.style.animationName !== void 0 && (p = !0), p === !1) {
512
- for (let b = 0; b < g.length; b++)
513
- if ($.style[g[b] + "AnimationName"] !== void 0) {
514
- f = g[b], C = "-" + f.toLowerCase() + "-", r = I[b], p = !0;
571
+ const elm = document.createElement("fakeelement");
572
+ if (elm.style.animationName !== void 0) {
573
+ animation = true;
574
+ }
575
+ if (animation === false) {
576
+ for (let i2 = 0; i2 < domPrefixes.length; i2++) {
577
+ if (elm.style[domPrefixes[i2] + "AnimationName"] !== void 0) {
578
+ pfx = domPrefixes[i2];
579
+ keyframeprefix = "-" + pfx.toLowerCase() + "-";
580
+ animationStartEvent = startEvents[i2];
581
+ animation = true;
515
582
  break;
516
583
  }
584
+ }
517
585
  }
518
586
  }
519
- n = "resizeanim", t = "@" + C + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", a = C + "animation: 1ms " + n + "; ";
587
+ animationName = "resizeanim";
588
+ animationKeyframes = "@" + keyframeprefix + "keyframes " + animationName + " { from { opacity: 0; } to { opacity: 0; } } ";
589
+ animationStyle = keyframeprefix + "animation: 1ms " + animationName + "; ";
520
590
  }
521
- const u = function(p) {
522
- if (!p.getElementById("detectElementResize")) {
523
- const C = (t || "") + ".resize-triggers { " + (a || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', g = p.head || p.getElementsByTagName("head")[0], I = p.createElement("style");
524
- I.id = "detectElementResize", I.type = "text/css", e != null && I.setAttribute("nonce", e), I.styleSheet ? I.styleSheet.cssText = C : I.appendChild(p.createTextNode(C)), g.appendChild(I);
591
+ const createStyles = function(doc) {
592
+ if (!doc.getElementById("detectElementResize")) {
593
+ const css = (animationKeyframes ? animationKeyframes : "") + ".resize-triggers { " + (animationStyle ? animationStyle : "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', head = doc.head || doc.getElementsByTagName("head")[0], style = doc.createElement("style");
594
+ style.id = "detectElementResize";
595
+ style.type = "text/css";
596
+ if (nonce != null) {
597
+ style.setAttribute("nonce", nonce);
598
+ }
599
+ if (style.styleSheet) {
600
+ style.styleSheet.cssText = css;
601
+ } else {
602
+ style.appendChild(doc.createTextNode(css));
603
+ }
604
+ head.appendChild(style);
525
605
  }
526
606
  };
527
- return {
528
- addResizeListener: function(p, C) {
529
- if (d)
530
- p.attachEvent("onresize", C);
531
- else {
532
- if (!p.__resizeTriggers__) {
533
- const g = p.ownerDocument, I = E.getComputedStyle(p);
534
- I && I.position === "static" && (p.style.position = "relative"), u(g), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = g.createElement("div")).className = "resize-triggers";
535
- const f = g.createElement("div");
536
- f.className = "expand-trigger", f.appendChild(g.createElement("div"));
537
- const $ = g.createElement("div");
538
- $.className = "contract-trigger", p.__resizeTriggers__.appendChild(f), p.__resizeTriggers__.appendChild($), p.appendChild(p.__resizeTriggers__), c(p), p.addEventListener("scroll", l, !0), r && (p.__resizeTriggers__.__animationListener__ = function(k) {
539
- k.animationName === n && c(p);
540
- }, p.__resizeTriggers__.addEventListener(r, p.__resizeTriggers__.__animationListener__));
607
+ const addResizeListener = function(element, fn) {
608
+ if (attachEvent) {
609
+ element.attachEvent("onresize", fn);
610
+ } else {
611
+ if (!element.__resizeTriggers__) {
612
+ const doc = element.ownerDocument;
613
+ const elementStyle = windowObject.getComputedStyle(element);
614
+ if (elementStyle && elementStyle.position === "static") {
615
+ element.style.position = "relative";
616
+ }
617
+ createStyles(doc);
618
+ element.__resizeLast__ = {};
619
+ element.__resizeListeners__ = [];
620
+ (element.__resizeTriggers__ = doc.createElement("div")).className = "resize-triggers";
621
+ const expandTrigger = doc.createElement("div");
622
+ expandTrigger.className = "expand-trigger";
623
+ expandTrigger.appendChild(doc.createElement("div"));
624
+ const contractTrigger = doc.createElement("div");
625
+ contractTrigger.className = "contract-trigger";
626
+ element.__resizeTriggers__.appendChild(expandTrigger);
627
+ element.__resizeTriggers__.appendChild(contractTrigger);
628
+ element.appendChild(element.__resizeTriggers__);
629
+ resetTriggers(element);
630
+ element.addEventListener("scroll", scrollListener, true);
631
+ if (animationStartEvent) {
632
+ element.__resizeTriggers__.__animationListener__ = function animationListener(e2) {
633
+ if (e2.animationName === animationName) {
634
+ resetTriggers(element);
635
+ }
636
+ };
637
+ element.__resizeTriggers__.addEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);
541
638
  }
542
- p.__resizeListeners__.push(C);
543
639
  }
544
- },
545
- removeResizeListener: function(p, C) {
546
- if (d)
547
- p.detachEvent("onresize", C);
548
- else if (p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(C), 1), !p.__resizeListeners__.length) {
549
- p.removeEventListener("scroll", l, !0), p.__resizeTriggers__.__animationListener__ && (p.__resizeTriggers__.removeEventListener(r, p.__resizeTriggers__.__animationListener__), p.__resizeTriggers__.__animationListener__ = null);
640
+ element.__resizeListeners__.push(fn);
641
+ }
642
+ };
643
+ const removeResizeListener = function(element, fn) {
644
+ if (attachEvent) {
645
+ element.detachEvent("onresize", fn);
646
+ } else {
647
+ element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
648
+ if (!element.__resizeListeners__.length) {
649
+ element.removeEventListener("scroll", scrollListener, true);
650
+ if (element.__resizeTriggers__.__animationListener__) {
651
+ element.__resizeTriggers__.removeEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);
652
+ element.__resizeTriggers__.__animationListener__ = null;
653
+ }
550
654
  try {
551
- p.__resizeTriggers__ = !p.removeChild(p.__resizeTriggers__);
552
- } catch {
655
+ element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);
656
+ } catch (e2) {
553
657
  }
554
658
  }
555
659
  }
556
660
  };
661
+ return {
662
+ addResizeListener,
663
+ removeResizeListener
664
+ };
557
665
  }
558
- class at extends ke {
559
- constructor(...t) {
560
- super(...t), this.state = {
666
+ class AutoSizer extends Component {
667
+ constructor(...args) {
668
+ super(...args);
669
+ this.state = {
561
670
  height: this.props.defaultHeight || 0,
562
671
  scaledHeight: this.props.defaultHeight || 0,
563
672
  scaledWidth: this.props.defaultWidth || 0,
564
673
  width: this.props.defaultWidth || 0
565
- }, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
674
+ };
675
+ this._autoSizer = null;
676
+ this._detectElementResize = null;
677
+ this._parentNode = null;
678
+ this._resizeObserver = null;
679
+ this._timeoutId = null;
680
+ this._onResize = () => {
566
681
  this._timeoutId = null;
567
682
  const {
568
- disableHeight: n,
569
- disableWidth: r,
570
- onResize: a
683
+ disableHeight,
684
+ disableWidth,
685
+ onResize
571
686
  } = this.props;
572
687
  if (this._parentNode) {
573
- const o = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(o.paddingLeft || "0"), l = parseFloat(o.paddingRight || "0"), d = parseFloat(o.paddingTop || "0"), u = parseFloat(o.paddingBottom || "0"), v = this._parentNode.getBoundingClientRect(), m = v.height - d - u, p = v.width - c - l, C = this._parentNode.offsetHeight - d - u, g = this._parentNode.offsetWidth - c - l;
574
- (!n && (this.state.height !== C || this.state.scaledHeight !== m) || !r && (this.state.width !== g || this.state.scaledWidth !== p)) && (this.setState({
575
- height: C,
576
- width: g,
577
- scaledHeight: m,
578
- scaledWidth: p
579
- }), typeof a == "function" && a({
580
- height: C,
581
- scaledHeight: m,
582
- scaledWidth: p,
583
- width: g
584
- }));
688
+ const style = window.getComputedStyle(this._parentNode) || {};
689
+ const paddingLeft = parseFloat(style.paddingLeft || "0");
690
+ const paddingRight = parseFloat(style.paddingRight || "0");
691
+ const paddingTop = parseFloat(style.paddingTop || "0");
692
+ const paddingBottom = parseFloat(style.paddingBottom || "0");
693
+ const rect = this._parentNode.getBoundingClientRect();
694
+ const scaledHeight = rect.height - paddingTop - paddingBottom;
695
+ const scaledWidth = rect.width - paddingLeft - paddingRight;
696
+ const height = this._parentNode.offsetHeight - paddingTop - paddingBottom;
697
+ const width = this._parentNode.offsetWidth - paddingLeft - paddingRight;
698
+ if (!disableHeight && (this.state.height !== height || this.state.scaledHeight !== scaledHeight) || !disableWidth && (this.state.width !== width || this.state.scaledWidth !== scaledWidth)) {
699
+ this.setState({
700
+ height,
701
+ width,
702
+ scaledHeight,
703
+ scaledWidth
704
+ });
705
+ if (typeof onResize === "function") {
706
+ onResize({
707
+ height,
708
+ scaledHeight,
709
+ scaledWidth,
710
+ width
711
+ });
712
+ }
713
+ }
585
714
  }
586
- }, this._setRef = (n) => {
587
- this._autoSizer = n;
715
+ };
716
+ this._setRef = (autoSizer) => {
717
+ this._autoSizer = autoSizer;
588
718
  };
589
719
  }
590
720
  componentDidMount() {
591
721
  const {
592
- nonce: t
593
- } = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
594
- if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
595
- this._parentNode = n;
596
- const r = n.ownerDocument.defaultView.ResizeObserver;
597
- r != null ? (this._resizeObserver = new r(() => {
598
- this._timeoutId = setTimeout(this._onResize, 0);
599
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = rt(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
722
+ nonce
723
+ } = this.props;
724
+ const parentNode = this._autoSizer ? this._autoSizer.parentNode : null;
725
+ if (parentNode != null && parentNode.ownerDocument && parentNode.ownerDocument.defaultView && parentNode instanceof parentNode.ownerDocument.defaultView.HTMLElement) {
726
+ this._parentNode = parentNode;
727
+ const ResizeObserverInstance = parentNode.ownerDocument.defaultView.ResizeObserver;
728
+ if (ResizeObserverInstance != null) {
729
+ this._resizeObserver = new ResizeObserverInstance(() => {
730
+ this._timeoutId = setTimeout(this._onResize, 0);
731
+ });
732
+ this._resizeObserver.observe(parentNode);
733
+ } else {
734
+ this._detectElementResize = createDetectElementResize(nonce);
735
+ this._detectElementResize.addResizeListener(parentNode, this._onResize);
736
+ }
737
+ this._onResize();
600
738
  }
601
739
  }
602
740
  componentWillUnmount() {
603
- this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && this._resizeObserver.disconnect());
741
+ if (this._parentNode) {
742
+ if (this._detectElementResize) {
743
+ this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
744
+ }
745
+ if (this._timeoutId !== null) {
746
+ clearTimeout(this._timeoutId);
747
+ }
748
+ if (this._resizeObserver) {
749
+ this._resizeObserver.disconnect();
750
+ }
751
+ }
604
752
  }
605
753
  render() {
606
754
  const {
607
- children: t,
608
- defaultHeight: n,
609
- defaultWidth: r,
610
- disableHeight: a = !1,
611
- disableWidth: o = !1,
612
- doNotBailOutOnEmptyChildren: c = !1,
613
- nonce: l,
614
- onResize: d,
615
- style: u = {},
616
- tagName: v = "div",
617
- ...m
618
- } = this.props, {
619
- height: p,
620
- scaledHeight: C,
621
- scaledWidth: g,
622
- width: I
623
- } = this.state, f = {
755
+ children,
756
+ defaultHeight,
757
+ defaultWidth,
758
+ disableHeight = false,
759
+ disableWidth = false,
760
+ doNotBailOutOnEmptyChildren = false,
761
+ nonce,
762
+ onResize,
763
+ style = {},
764
+ tagName = "div",
765
+ ...rest
766
+ } = this.props;
767
+ const {
768
+ height,
769
+ scaledHeight,
770
+ scaledWidth,
771
+ width
772
+ } = this.state;
773
+ const outerStyle = {
624
774
  overflow: "visible"
625
- }, $ = {};
626
- let b = !1;
627
- return a || (p === 0 && (b = !0), f.height = 0, $.height = p, $.scaledHeight = C), o || (I === 0 && (b = !0), f.width = 0, $.width = I, $.scaledWidth = g), c && (b = !1), _e(v, {
775
+ };
776
+ const childParams = {};
777
+ let bailoutOnChildren = false;
778
+ if (!disableHeight) {
779
+ if (height === 0) {
780
+ bailoutOnChildren = true;
781
+ }
782
+ outerStyle.height = 0;
783
+ childParams.height = height;
784
+ childParams.scaledHeight = scaledHeight;
785
+ }
786
+ if (!disableWidth) {
787
+ if (width === 0) {
788
+ bailoutOnChildren = true;
789
+ }
790
+ outerStyle.width = 0;
791
+ childParams.width = width;
792
+ childParams.scaledWidth = scaledWidth;
793
+ }
794
+ if (doNotBailOutOnEmptyChildren) {
795
+ bailoutOnChildren = false;
796
+ }
797
+ return createElement(tagName, {
628
798
  ref: this._setRef,
629
799
  style: {
630
- ...f,
631
- ...u
800
+ ...outerStyle,
801
+ ...style
632
802
  },
633
- ...m
634
- }, !b && t($));
803
+ ...rest
804
+ }, !bailoutOnChildren && children(childParams));
635
805
  }
636
806
  }
637
- function ot(e) {
638
- var t = e.lastRenderedStartIndex, n = e.lastRenderedStopIndex, r = e.startIndex, a = e.stopIndex;
639
- return !(r > n || a < t);
807
+ function isRangeVisible(_ref) {
808
+ var lastRenderedStartIndex = _ref.lastRenderedStartIndex, lastRenderedStopIndex = _ref.lastRenderedStopIndex, startIndex = _ref.startIndex, stopIndex = _ref.stopIndex;
809
+ return !(startIndex > lastRenderedStopIndex || stopIndex < lastRenderedStartIndex);
640
810
  }
641
- function lt(e) {
642
- for (var t = e.isItemLoaded, n = e.itemCount, r = e.minimumBatchSize, a = e.startIndex, o = e.stopIndex, c = [], l = null, d = null, u = a; u <= o; u++) {
643
- var v = t(u);
644
- v ? d !== null && (c.push(l, d), l = d = null) : (d = u, l === null && (l = u));
811
+ function scanForUnloadedRanges(_ref) {
812
+ var isItemLoaded = _ref.isItemLoaded, itemCount = _ref.itemCount, minimumBatchSize = _ref.minimumBatchSize, startIndex = _ref.startIndex, stopIndex = _ref.stopIndex;
813
+ var unloadedRanges = [];
814
+ var rangeStartIndex = null;
815
+ var rangeStopIndex = null;
816
+ for (var _index = startIndex; _index <= stopIndex; _index++) {
817
+ var loaded = isItemLoaded(_index);
818
+ if (!loaded) {
819
+ rangeStopIndex = _index;
820
+ if (rangeStartIndex === null) {
821
+ rangeStartIndex = _index;
822
+ }
823
+ } else if (rangeStopIndex !== null) {
824
+ unloadedRanges.push(rangeStartIndex, rangeStopIndex);
825
+ rangeStartIndex = rangeStopIndex = null;
826
+ }
645
827
  }
646
- if (d !== null) {
647
- for (var m = Math.min(Math.max(d, l + r - 1), n - 1), p = d + 1; p <= m && !t(p); p++)
648
- d = p;
649
- c.push(l, d);
828
+ if (rangeStopIndex !== null) {
829
+ var potentialStopIndex = Math.min(Math.max(rangeStopIndex, rangeStartIndex + minimumBatchSize - 1), itemCount - 1);
830
+ for (var _index2 = rangeStopIndex + 1; _index2 <= potentialStopIndex; _index2++) {
831
+ if (!isItemLoaded(_index2)) {
832
+ rangeStopIndex = _index2;
833
+ } else {
834
+ break;
835
+ }
836
+ }
837
+ unloadedRanges.push(rangeStartIndex, rangeStopIndex);
650
838
  }
651
- if (c.length)
652
- for (; c[1] - c[0] + 1 < r && c[0] > 0; ) {
653
- var C = c[0] - 1;
654
- if (!t(C))
655
- c[0] = C;
656
- else
839
+ if (unloadedRanges.length) {
840
+ while (unloadedRanges[1] - unloadedRanges[0] + 1 < minimumBatchSize && unloadedRanges[0] > 0) {
841
+ var _index3 = unloadedRanges[0] - 1;
842
+ if (!isItemLoaded(_index3)) {
843
+ unloadedRanges[0] = _index3;
844
+ } else {
657
845
  break;
846
+ }
658
847
  }
659
- return c;
848
+ }
849
+ return unloadedRanges;
660
850
  }
661
- var ct = function(e, t) {
662
- if (!(e instanceof t))
851
+ var classCallCheck = function(instance, Constructor) {
852
+ if (!(instance instanceof Constructor)) {
663
853
  throw new TypeError("Cannot call a class as a function");
664
- }, dt = /* @__PURE__ */ function() {
665
- function e(t, n) {
666
- for (var r = 0; r < n.length; r++) {
667
- var a = n[r];
668
- a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(t, a.key, a);
854
+ }
855
+ };
856
+ var createClass = /* @__PURE__ */ function() {
857
+ function defineProperties(target, props) {
858
+ for (var i2 = 0; i2 < props.length; i2++) {
859
+ var descriptor = props[i2];
860
+ descriptor.enumerable = descriptor.enumerable || false;
861
+ descriptor.configurable = true;
862
+ if ("value" in descriptor) descriptor.writable = true;
863
+ Object.defineProperty(target, descriptor.key, descriptor);
669
864
  }
670
865
  }
671
- return function(t, n, r) {
672
- return n && e(t.prototype, n), r && e(t, r), t;
866
+ return function(Constructor, protoProps, staticProps) {
867
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
868
+ if (staticProps) defineProperties(Constructor, staticProps);
869
+ return Constructor;
673
870
  };
674
- }(), pt = function(e, t) {
675
- if (typeof t != "function" && t !== null)
676
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
677
- e.prototype = Object.create(t && t.prototype, {
871
+ }();
872
+ var inherits = function(subClass, superClass) {
873
+ if (typeof superClass !== "function" && superClass !== null) {
874
+ throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
875
+ }
876
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
678
877
  constructor: {
679
- value: e,
680
- enumerable: !1,
681
- writable: !0,
682
- configurable: !0
878
+ value: subClass,
879
+ enumerable: false,
880
+ writable: true,
881
+ configurable: true
683
882
  }
684
- }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
685
- }, R2 = function(e, t) {
686
- if (!e)
883
+ });
884
+ if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
885
+ };
886
+ var possibleConstructorReturn = function(self2, call) {
887
+ if (!self2) {
687
888
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
688
- return t && (typeof t == "object" || typeof t == "function") ? t : e;
889
+ }
890
+ return call && (typeof call === "object" || typeof call === "function") ? call : self2;
689
891
  };
690
- (function(e) {
691
- pt(t, e);
692
- function t() {
693
- var n, r, a, o;
694
- ct(this, t);
695
- for (var c = arguments.length, l = Array(c), d = 0; d < c; d++)
696
- l[d] = arguments[d];
697
- return o = (r = (a = R2(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(l))), a), a._lastRenderedStartIndex = -1, a._lastRenderedStopIndex = -1, a._memoizedUnloadedRanges = [], a._onItemsRendered = function(u) {
698
- var v = u.visibleStartIndex, m = u.visibleStopIndex;
699
- a._lastRenderedStartIndex = v, a._lastRenderedStopIndex = m, a._ensureRowsLoaded(v, m);
700
- }, a._setRef = function(u) {
701
- a._listRef = u;
702
- }, r), R2(a, o);
892
+ (function(_PureComponent) {
893
+ inherits(InfiniteLoader2, _PureComponent);
894
+ function InfiniteLoader2() {
895
+ var _ref;
896
+ var _temp, _this, _ret;
897
+ classCallCheck(this, InfiniteLoader2);
898
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
899
+ args[_key] = arguments[_key];
900
+ }
901
+ return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = InfiniteLoader2.__proto__ || Object.getPrototypeOf(InfiniteLoader2)).call.apply(_ref, [this].concat(args))), _this), _this._lastRenderedStartIndex = -1, _this._lastRenderedStopIndex = -1, _this._memoizedUnloadedRanges = [], _this._onItemsRendered = function(_ref2) {
902
+ var visibleStartIndex = _ref2.visibleStartIndex, visibleStopIndex = _ref2.visibleStopIndex;
903
+ _this._lastRenderedStartIndex = visibleStartIndex;
904
+ _this._lastRenderedStopIndex = visibleStopIndex;
905
+ _this._ensureRowsLoaded(visibleStartIndex, visibleStopIndex);
906
+ }, _this._setRef = function(listRef) {
907
+ _this._listRef = listRef;
908
+ }, _temp), possibleConstructorReturn(_this, _ret);
703
909
  }
704
- return dt(t, [{
910
+ createClass(InfiniteLoader2, [{
705
911
  key: "resetloadMoreItemsCache",
706
- value: function() {
707
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
708
- this._memoizedUnloadedRanges = [], r && this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
912
+ value: function resetloadMoreItemsCache() {
913
+ var autoReload = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
914
+ this._memoizedUnloadedRanges = [];
915
+ if (autoReload) {
916
+ this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
917
+ }
709
918
  }
710
919
  }, {
711
920
  key: "componentDidMount",
712
- value: function() {
921
+ value: function componentDidMount() {
713
922
  }
714
923
  }, {
715
924
  key: "render",
716
- value: function() {
717
- var r = this.props.children;
718
- return r({
925
+ value: function render() {
926
+ var children = this.props.children;
927
+ return children({
719
928
  onItemsRendered: this._onItemsRendered,
720
929
  ref: this._setRef
721
930
  });
722
931
  }
723
932
  }, {
724
933
  key: "_ensureRowsLoaded",
725
- value: function(r, a) {
726
- var o = this.props, c = o.isItemLoaded, l = o.itemCount, d = o.minimumBatchSize, u = d === void 0 ? 10 : d, v = o.threshold, m = v === void 0 ? 15 : v, p = lt({
727
- isItemLoaded: c,
728
- itemCount: l,
729
- minimumBatchSize: u,
730
- startIndex: Math.max(0, r - m),
731
- stopIndex: Math.min(l - 1, a + m)
934
+ value: function _ensureRowsLoaded(startIndex, stopIndex) {
935
+ var _props = this.props, isItemLoaded = _props.isItemLoaded, itemCount = _props.itemCount, _props$minimumBatchSi = _props.minimumBatchSize, minimumBatchSize = _props$minimumBatchSi === void 0 ? 10 : _props$minimumBatchSi, _props$threshold = _props.threshold, threshold = _props$threshold === void 0 ? 15 : _props$threshold;
936
+ var unloadedRanges = scanForUnloadedRanges({
937
+ isItemLoaded,
938
+ itemCount,
939
+ minimumBatchSize,
940
+ startIndex: Math.max(0, startIndex - threshold),
941
+ stopIndex: Math.min(itemCount - 1, stopIndex + threshold)
732
942
  });
733
- (this._memoizedUnloadedRanges.length !== p.length || this._memoizedUnloadedRanges.some(function(C, g) {
734
- return p[g] !== C;
735
- })) && (this._memoizedUnloadedRanges = p, this._loadUnloadedRanges(p));
943
+ if (this._memoizedUnloadedRanges.length !== unloadedRanges.length || this._memoizedUnloadedRanges.some(function(startOrStop, index) {
944
+ return unloadedRanges[index] !== startOrStop;
945
+ })) {
946
+ this._memoizedUnloadedRanges = unloadedRanges;
947
+ this._loadUnloadedRanges(unloadedRanges);
948
+ }
736
949
  }
737
950
  }, {
738
951
  key: "_loadUnloadedRanges",
739
- value: function(r) {
740
- for (var a = this, o = this.props.loadMoreItems || this.props.loadMoreRows, c = function(u) {
741
- var v = r[u], m = r[u + 1], p = o(v, m);
742
- p != null && p.then(function() {
743
- if (ot({
744
- lastRenderedStartIndex: a._lastRenderedStartIndex,
745
- lastRenderedStopIndex: a._lastRenderedStopIndex,
746
- startIndex: v,
747
- stopIndex: m
748
- })) {
749
- if (a._listRef == null)
750
- return;
751
- typeof a._listRef.resetAfterIndex == "function" ? a._listRef.resetAfterIndex(v, !0) : (typeof a._listRef._getItemStyleCache == "function" && a._listRef._getItemStyleCache(-1), a._listRef.forceUpdate());
752
- }
753
- });
754
- }, l = 0; l < r.length; l += 2)
755
- c(l);
952
+ value: function _loadUnloadedRanges(unloadedRanges) {
953
+ var _this2 = this;
954
+ var loadMoreItems = this.props.loadMoreItems || this.props.loadMoreRows;
955
+ var _loop = function _loop2(i22) {
956
+ var startIndex = unloadedRanges[i22];
957
+ var stopIndex = unloadedRanges[i22 + 1];
958
+ var promise = loadMoreItems(startIndex, stopIndex);
959
+ if (promise != null) {
960
+ promise.then(function() {
961
+ if (isRangeVisible({
962
+ lastRenderedStartIndex: _this2._lastRenderedStartIndex,
963
+ lastRenderedStopIndex: _this2._lastRenderedStopIndex,
964
+ startIndex,
965
+ stopIndex
966
+ })) {
967
+ if (_this2._listRef == null) {
968
+ return;
969
+ }
970
+ if (typeof _this2._listRef.resetAfterIndex === "function") {
971
+ _this2._listRef.resetAfterIndex(startIndex, true);
972
+ } else {
973
+ if (typeof _this2._listRef._getItemStyleCache === "function") {
974
+ _this2._listRef._getItemStyleCache(-1);
975
+ }
976
+ _this2._listRef.forceUpdate();
977
+ }
978
+ }
979
+ });
980
+ }
981
+ };
982
+ for (var i2 = 0; i2 < unloadedRanges.length; i2 += 2) {
983
+ _loop(i2);
984
+ }
756
985
  }
757
- }]), t;
758
- })(Te);
759
- const ht = /* @__PURE__ */ i("div")({
986
+ }]);
987
+ return InfiniteLoader2;
988
+ })(PureComponent);
989
+ const r$b = /* @__PURE__ */ styled_default("div")({
760
990
  name: "Container",
761
991
  class: "culdu4a",
762
- propsAsIs: !1
763
- }), ut = /* @__PURE__ */ i("div")({
992
+ propsAsIs: false
993
+ }), t$c = /* @__PURE__ */ styled_default("div")({
764
994
  name: "Position",
765
995
  class: "pwf8e69",
766
- propsAsIs: !1
767
- }), mt = /* @__PURE__ */ i("img")({
996
+ propsAsIs: false
997
+ }), c$a = /* @__PURE__ */ styled_default("img")({
768
998
  name: "Avatar",
769
999
  class: "atf4yh4",
770
- propsAsIs: !1
771
- }), vt = /* @__PURE__ */ i("div")({
1000
+ propsAsIs: false
1001
+ }), p$c = /* @__PURE__ */ styled_default("div")({
772
1002
  name: "AvatarPlaceholder",
773
1003
  class: "a1dg29ja",
774
- propsAsIs: !1
775
- }), Ct = /* @__PURE__ */ i("div")({
1004
+ propsAsIs: false
1005
+ }), l$b = /* @__PURE__ */ styled_default("div")({
776
1006
  name: "Content",
777
1007
  class: "c10a68rc",
778
- propsAsIs: !1
779
- }), ft = /* @__PURE__ */ i("div")({
1008
+ propsAsIs: false
1009
+ }), m$7 = /* @__PURE__ */ styled_default("div")({
780
1010
  name: "NameContainer",
781
1011
  class: "nc4kck5",
782
- propsAsIs: !1
783
- }), gt = /* @__PURE__ */ i("span")({
1012
+ propsAsIs: false
1013
+ }), i$b = /* @__PURE__ */ styled_default("span")({
784
1014
  name: "Name",
785
1015
  class: "njsrqgr",
786
- propsAsIs: !1
787
- }), It = () => _, bt = /* @__PURE__ */ i(It())({
1016
+ propsAsIs: false
1017
+ }), e$e = () => B1, d$6 = /* @__PURE__ */ styled_default(e$e())({
788
1018
  name: "CurrentUserBadge",
789
1019
  class: "c17uc4zr",
790
- propsAsIs: !0
791
- }), $t = ({
792
- friendsRank: e,
793
- avatar: t,
794
- name: n,
795
- userId: r,
796
- points: a,
797
- isCurrentUser: o,
798
- style: c
799
- }) => /* @__PURE__ */ h(ht, { "data-name": r, style: c, children: [
800
- /* @__PURE__ */ s(ut, { children: e || 0 }),
801
- /* @__PURE__ */ h(Ct, { children: [
802
- t ? /* @__PURE__ */ s(mt, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ s(vt, { children: m2(n || "") }),
803
- /* @__PURE__ */ h(ft, { children: [
804
- /* @__PURE__ */ s(gt, { children: n || "" }),
805
- o && /* @__PURE__ */ s(bt, { name: "icon-star" })
1020
+ propsAsIs: true
1021
+ });
1022
+ const N$1 = ({
1023
+ friendsRank: i2,
1024
+ avatar: a2,
1025
+ name: t2,
1026
+ userId: n2,
1027
+ points: o2,
1028
+ isCurrentUser: d2,
1029
+ style: m2
1030
+ }) => /* @__PURE__ */ jsxs(r$b, { "data-name": n2, style: m2, children: [
1031
+ /* @__PURE__ */ jsx(t$c, { children: i2 || 0 }),
1032
+ /* @__PURE__ */ jsxs(l$b, { children: [
1033
+ a2 ? /* @__PURE__ */ jsx(c$a, { alt: "leaderboard-item-avatar", src: a2 }) : /* @__PURE__ */ jsx(p$c, { children: I$a(t2 || "") }),
1034
+ /* @__PURE__ */ jsxs(m$7, { children: [
1035
+ /* @__PURE__ */ jsx(i$b, { children: t2 || "" }),
1036
+ d2 && /* @__PURE__ */ jsx(d$6, { name: "icon-star" })
806
1037
  ] })
807
1038
  ] }),
808
- /* @__PURE__ */ s("div", { children: le(a) })
809
- ] }), At = /* @__PURE__ */ i("div")({
1039
+ /* @__PURE__ */ jsx("div", { children: s$7(o2) })
1040
+ ] });
1041
+ const u$3 = /* @__PURE__ */ styled_default("div")({
810
1042
  name: "Container",
811
1043
  class: "c16btbfp",
812
- propsAsIs: !1
813
- }), yt = ({
814
- items: e,
815
- currentUserId: t,
816
- openItemDetail: n,
817
- fetchMore: r,
818
- scrollNode: a,
819
- hasMore: o
1044
+ propsAsIs: false
1045
+ }), S = ({
1046
+ items: s2,
1047
+ currentUserId: e2,
1048
+ openItemDetail: o2,
1049
+ fetchMore: n2,
1050
+ scrollNode: i2,
1051
+ hasMore: d2
820
1052
  }) => {
821
- const c = U((l) => {
822
- const d = l.target.getAttribute("data-name");
823
- d && n(d);
824
- }, [n]);
825
- return /* @__PURE__ */ s(n0, {
826
- loadMore: r,
827
- initialLoad: !1,
828
- hasMore: o,
829
- useWindow: !1,
830
- getScrollParent: () => a.current,
831
- children: /* @__PURE__ */ s(At, {
1053
+ const l2 = useCallback((r2) => {
1054
+ const a2 = r2.target.getAttribute("data-name");
1055
+ a2 && o2(a2);
1056
+ }, [o2]);
1057
+ return /* @__PURE__ */ jsx(m$c, {
1058
+ loadMore: n2,
1059
+ initialLoad: false,
1060
+ hasMore: d2,
1061
+ useWindow: false,
1062
+ getScrollParent: () => i2.current,
1063
+ children: /* @__PURE__ */ jsx(u$3, {
832
1064
  "data-a": "intr",
833
- onClick: c,
834
- children: e.map((l) => /* @__PURE__ */ s($t, {
835
- ...l,
836
- isCurrentUser: !!t && t === l.userId
837
- }, l.userId))
1065
+ onClick: l2,
1066
+ children: s2.map((r2) => /* @__PURE__ */ jsx(N$1, {
1067
+ ...r2,
1068
+ isCurrentUser: !!e2 && e2 === r2.userId
1069
+ }, r2.userId))
838
1070
  })
839
1071
  });
840
- }, wt = /* @__PURE__ */ i("div")({
1072
+ };
1073
+ const i$a = /* @__PURE__ */ styled_default("div")({
841
1074
  name: "Container",
842
1075
  class: "c1itm4k7",
843
- propsAsIs: !1
844
- }), Lt = /* @__PURE__ */ i("div")({
1076
+ propsAsIs: false
1077
+ }), c$9 = /* @__PURE__ */ styled_default("div")({
845
1078
  name: "IconContainer",
846
1079
  class: "i1w4fsni",
847
- propsAsIs: !1
848
- }), kt = () => _, _t = /* @__PURE__ */ i(kt())({
1080
+ propsAsIs: false
1081
+ }), e$d = () => B1, l$a = /* @__PURE__ */ styled_default(e$d())({
849
1082
  name: "InviteGameIcon",
850
1083
  class: "i19m85r1",
851
- propsAsIs: !0
852
- }), Tt = /* @__PURE__ */ i("div")({
1084
+ propsAsIs: true
1085
+ }), p$b = /* @__PURE__ */ styled_default("div")({
853
1086
  name: "Content",
854
1087
  class: "c1mbu204",
855
- propsAsIs: !1
856
- }), St = /* @__PURE__ */ i("div")({
1088
+ propsAsIs: false
1089
+ }), r$a = /* @__PURE__ */ styled_default("div")({
857
1090
  name: "Heading",
858
1091
  class: "h1amdqtv",
859
- propsAsIs: !1
860
- }), Nt = /* @__PURE__ */ i("div")({
1092
+ propsAsIs: false
1093
+ }), m$6 = /* @__PURE__ */ styled_default("div")({
861
1094
  name: "Subtext",
862
1095
  class: "s1lhlj9j",
863
- propsAsIs: !1
864
- }), xt = /* @__PURE__ */ i("div")({
1096
+ propsAsIs: false
1097
+ }), I$6 = /* @__PURE__ */ styled_default("div")({
865
1098
  name: "LinkContainer",
866
1099
  class: "l1wot35e",
867
- propsAsIs: !1
868
- }), Rt = /* @__PURE__ */ i("div")({
1100
+ propsAsIs: false
1101
+ }), d$5 = /* @__PURE__ */ styled_default("div")({
869
1102
  name: "LinkInfo",
870
1103
  class: "l1jdw39q",
871
- propsAsIs: !1
872
- }), Et = /* @__PURE__ */ i("span")({
1104
+ propsAsIs: false
1105
+ }), f$8 = /* @__PURE__ */ styled_default("span")({
873
1106
  name: "LinkTitle",
874
1107
  class: "l1cr5mk",
875
- propsAsIs: !1
876
- }), Vt = /* @__PURE__ */ i("span")({
1108
+ propsAsIs: false
1109
+ }), v$4 = /* @__PURE__ */ styled_default("span")({
877
1110
  name: "LinkAddress",
878
1111
  class: "lvi87q4",
879
- propsAsIs: !1
880
- }), Ht = () => _, zt = /* @__PURE__ */ i(Ht())({
1112
+ propsAsIs: false
1113
+ }), o$c = () => B1, A$4 = /* @__PURE__ */ styled_default(o$c())({
881
1114
  name: "LinkIcon",
882
1115
  class: "l1pqlvw3",
883
- propsAsIs: !0
884
- }), fe = ({
885
- inviteLink: e,
886
- inviteCardTitle: t,
887
- inviteCardSubtext: n,
888
- primaryColor: r,
889
- className: a
1116
+ propsAsIs: true
1117
+ });
1118
+ const M$1 = ({
1119
+ inviteLink: i2,
1120
+ inviteCardTitle: e2,
1121
+ inviteCardSubtext: t2,
1122
+ primaryColor: c2,
1123
+ className: a2
890
1124
  }) => {
891
- const o = V(null), [c, l] = Ce(o), [d] = oe({
1125
+ const r2 = useRef(null), [l2, d2] = T$2(r2), [m2] = f$b({
892
1126
  type: "invitation",
893
1127
  action: "sent",
894
1128
  payload: {
895
- from: re.MENU
1129
+ from: InvitationFrom.MENU
896
1130
  }
897
1131
  });
898
- return /* @__PURE__ */ h(wt, { className: a, children: [
899
- /* @__PURE__ */ s(Lt, { style: { backgroundColor: r }, children: /* @__PURE__ */ s(_t, { name: "invite-game-icon" }) }),
900
- /* @__PURE__ */ h(Tt, { children: [
901
- /* @__PURE__ */ s(St, { children: t || "" }),
902
- /* @__PURE__ */ s(Nt, { children: n || "" })
1132
+ return /* @__PURE__ */ jsxs(i$a, { className: a2, children: [
1133
+ /* @__PURE__ */ jsx(c$9, { style: { backgroundColor: c2 }, children: /* @__PURE__ */ jsx(l$a, { name: "invite-game-icon" }) }),
1134
+ /* @__PURE__ */ jsxs(p$b, { children: [
1135
+ /* @__PURE__ */ jsx(r$a, { children: e2 || "" }),
1136
+ /* @__PURE__ */ jsx(m$6, { children: t2 || "" })
903
1137
  ] }),
904
- e && /* @__PURE__ */ h(xt, { ref: o, "data-a": "intr", onClick: d(() => c(e)), children: [
905
- /* @__PURE__ */ h(Rt, { children: [
906
- /* @__PURE__ */ s(Et, { children: "Invite link" }),
907
- /* @__PURE__ */ s(Vt, { children: e })
1138
+ i2 && /* @__PURE__ */ jsxs(I$6, { ref: r2, "data-a": "intr", onClick: m2(() => l2(i2)), children: [
1139
+ /* @__PURE__ */ jsxs(d$5, { children: [
1140
+ /* @__PURE__ */ jsx(f$8, { children: "Invite link" }),
1141
+ /* @__PURE__ */ jsx(v$4, { children: i2 })
908
1142
  ] }),
909
- /* @__PURE__ */ s(zt, { name: "icon-copy" })
1143
+ /* @__PURE__ */ jsx(A$4, { name: "icon-copy" })
910
1144
  ] }),
911
- l
1145
+ d2
912
1146
  ] });
913
- }, Mt = /* @__PURE__ */ i("div")({
1147
+ };
1148
+ const r$9 = /* @__PURE__ */ styled_default("div")({
914
1149
  name: "InviteFriendsContainer",
915
1150
  class: "i1c9dygq",
916
- propsAsIs: !1
917
- }), Ot = ({
918
- deepLink: e
919
- }) => /* @__PURE__ */ s(Mt, {
920
- children: /* @__PURE__ */ s(fe, {
921
- inviteLink: e,
1151
+ propsAsIs: false
1152
+ }), a$9 = ({
1153
+ deepLink: i2
1154
+ }) => /* @__PURE__ */ jsx(r$9, {
1155
+ children: /* @__PURE__ */ jsx(M$1, {
1156
+ inviteLink: i2,
922
1157
  inviteCardTitle: "It’s More Fun With Friends",
923
1158
  inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
924
1159
  })
925
- }), Dt = /* @__PURE__ */ i("div")({
1160
+ });
1161
+ const v$3 = /* @__PURE__ */ styled_default("div")({
926
1162
  name: "InviteLinkContainer",
927
1163
  class: "i1odbhm4",
928
- propsAsIs: !1
929
- }), Ft = ({
930
- gamification: e,
931
- scrollNode: t,
932
- scrollStore: n,
933
- leaderboardList: r
1164
+ propsAsIs: false
1165
+ }), x$5 = ({
1166
+ gamification: r2,
1167
+ scrollNode: t2,
1168
+ scrollStore: o2,
1169
+ leaderboardList: i2
934
1170
  }) => {
935
- const a = V(null), {
936
- data: o,
937
- hasMore: c,
938
- loading: l,
939
- key: d
940
- } = A(r.$store), {
941
- data: u
942
- } = A(e.deepLink.$store), [v, m] = Ce(a);
943
- return !o.length && !l ? /* @__PURE__ */ s(Ot, {
944
- deepLink: u
945
- }) : /* @__PURE__ */ h(R, {
946
- children: [/* @__PURE__ */ s(yt, {
947
- items: o,
948
- scrollNode: t,
949
- scrollStore: n,
950
- fetchMore: r.fetchMore,
951
- hasMore: c,
952
- openItemDetail: e.openUser,
953
- currentUserId: e.currentUserId.get()
954
- }, d), u && /* @__PURE__ */ s(Dt, {
955
- ref: a,
956
- children: /* @__PURE__ */ s(it, {
1171
+ const s2 = useRef(null), {
1172
+ data: d2,
1173
+ hasMore: m2,
1174
+ loading: a2,
1175
+ key: l2
1176
+ } = useStore(i2.$store), {
1177
+ data: n2
1178
+ } = useStore(r2.deepLink.$store), [c2, f2] = T$2(s2);
1179
+ return !d2.length && !a2 ? /* @__PURE__ */ jsx(a$9, {
1180
+ deepLink: n2
1181
+ }) : /* @__PURE__ */ jsxs(Fragment, {
1182
+ children: [/* @__PURE__ */ jsx(S, {
1183
+ items: d2,
1184
+ scrollNode: t2,
1185
+ scrollStore: o2,
1186
+ fetchMore: i2.fetchMore,
1187
+ hasMore: m2,
1188
+ openItemDetail: r2.openUser,
1189
+ currentUserId: r2.currentUserId.get()
1190
+ }, l2), n2 && /* @__PURE__ */ jsx(v$3, {
1191
+ ref: s2,
1192
+ children: /* @__PURE__ */ jsx(C$2, {
957
1193
  "data-a": "intr",
958
- onClick: () => v(u),
1194
+ onClick: () => c2(n2),
959
1195
  title: "Invite Friends",
960
1196
  description: "Challenge them now!"
961
1197
  })
962
- }), m]
1198
+ }), f2]
963
1199
  });
964
- }, Bt = ({
965
- gamification: e,
966
- scrollNode: t,
967
- scrollStore: n
968
- }) => e.leaderboardList ? /* @__PURE__ */ s(Ft, {
969
- leaderboardList: e.leaderboardList,
970
- gamification: e,
971
- scrollNode: t,
972
- scrollStore: n
973
- }) : null, qt = () => pe, Ut = /* @__PURE__ */ i(qt())({
1200
+ }, E$1 = ({
1201
+ gamification: r2,
1202
+ scrollNode: t2,
1203
+ scrollStore: o2
1204
+ }) => r2.leaderboardList ? /* @__PURE__ */ jsx(x$5, {
1205
+ leaderboardList: r2.leaderboardList,
1206
+ gamification: r2,
1207
+ scrollNode: t2,
1208
+ scrollStore: o2
1209
+ }) : null;
1210
+ const s$5 = () => r$e, i$9 = /* @__PURE__ */ styled_default(s$5())({
974
1211
  name: "Container",
975
1212
  class: "cll3md7",
976
- propsAsIs: !0
977
- }), Pt = () => i0, Wt = /* @__PURE__ */ i(Pt())({
1213
+ propsAsIs: true
1214
+ }), e$c = () => S$2, p$a = /* @__PURE__ */ styled_default(e$c())({
978
1215
  name: "ActionBtn",
979
1216
  class: "a10g1iik",
980
- propsAsIs: !0
981
- }), jt = ({ questionId: e, ...t }) => /* @__PURE__ */ h(Ut, { "data-a": "intr", "data-name": e, children: [
982
- /* @__PURE__ */ s(Je, { questionId: e, ...t }),
983
- /* @__PURE__ */ s(Wt, { "data-a": "intr", "data-name": e, children: "View Insight" })
984
- ] }), Zt = () => pe, Gt = /* @__PURE__ */ i(Zt())({
1217
+ propsAsIs: true
1218
+ });
1219
+ const c$8 = ({ questionId: t2, ...r2 }) => /* @__PURE__ */ jsxs(i$9, { "data-a": "intr", "data-name": t2, children: [
1220
+ /* @__PURE__ */ jsx(O$1, { questionId: t2, ...r2 }),
1221
+ /* @__PURE__ */ jsx(p$a, { "data-a": "intr", "data-name": t2, children: "View Insight" })
1222
+ ] });
1223
+ const s$4 = () => r$e, a$8 = /* @__PURE__ */ styled_default(s$4())({
985
1224
  name: "Container",
986
1225
  class: "cl56x6b",
987
- propsAsIs: !0
988
- }), Qt = /* @__PURE__ */ i("button")({
1226
+ propsAsIs: true
1227
+ }), c$7 = /* @__PURE__ */ styled_default("button")({
989
1228
  name: "ActionButton",
990
1229
  class: "a11pzf92",
991
- propsAsIs: !1
992
- }), Kt = /* @__PURE__ */ i("blockquote")({
1230
+ propsAsIs: false
1231
+ }), p$9 = /* @__PURE__ */ styled_default("blockquote")({
993
1232
  name: "Quote",
994
1233
  class: "q1hbaleq",
995
- propsAsIs: !1
996
- }), Yt = ({ ...e }) => /* @__PURE__ */ h(Gt, { "data-a": "intr", "data-name": e.tweetId, children: [
997
- e.title && /* @__PURE__ */ s(Kt, { children: e.title }),
998
- /* @__PURE__ */ s(ce, { ...e }),
999
- /* @__PURE__ */ s(Qt, { "data-a": "intr", "data-name": e.tweetId, children: "View Insight" })
1000
- ] }), E2 = /* @__PURE__ */ i("div")({
1234
+ propsAsIs: false
1235
+ });
1236
+ const l$9 = ({ ...t2 }) => /* @__PURE__ */ jsxs(a$8, { "data-a": "intr", "data-name": t2.tweetId, children: [
1237
+ t2.title && /* @__PURE__ */ jsx(p$9, { children: t2.title }),
1238
+ /* @__PURE__ */ jsx(b$5, { ...t2 }),
1239
+ /* @__PURE__ */ jsx(c$7, { "data-a": "intr", "data-name": t2.tweetId, children: "View Insight" })
1240
+ ] });
1241
+ const e$b = /* @__PURE__ */ styled_default("div")({
1001
1242
  name: "QuestionsContainer",
1002
1243
  class: "qvghv3l",
1003
- propsAsIs: !1
1004
- }), Jt = ({ questions: e, openQuestion: t, controlVideo: n }) => e ? /* @__PURE__ */ s(E2, { "data-a": "intr", onClick: (a) => {
1005
- const o = a.target.getAttribute("data-name");
1006
- o && (o0(), t(o, { openedFrom: "list" }));
1007
- }, children: e == null ? void 0 : e.map((a) => {
1008
- var o, c, l;
1009
- if (a.type === "question" && ((o = a.attributes) == null ? void 0 : o.attributes.case) === "question") {
1010
- const d = a.attributes.attributes.value;
1011
- return /* @__PURE__ */ s(r0, { ...d }, d.questionId);
1012
- }
1013
- if (a.type === "insight" && ((c = a.attributes) == null ? void 0 : c.attributes.case) === "insight") {
1014
- const d = a.attributes.attributes.value;
1015
- return /* @__PURE__ */ s(jt, { controlVideo: n, ...d }, d.questionId);
1016
- }
1017
- if (a.type === "tweet" && ((l = a.attributes) == null ? void 0 : l.attributes.case) === "tweet") {
1018
- const d = a.attributes.attributes.value, u = a.attributes.id;
1019
- return /* @__PURE__ */ s(Yt, { controlVideo: n, ...d, tweetId: u }, u);
1020
- }
1021
- return null;
1022
- }) }) : /* @__PURE__ */ s(E2, { children: Array.from({ length: 5 }).map((a, o) => /* @__PURE__ */ s(a0, {}, o)) }), Xt = ({ store: e, openQuestion: t }) => {
1023
- const { sdk: n } = u2(), r = A(e);
1024
- return /* @__PURE__ */ s(Jt, { openQuestion: t, questions: r.data, controlVideo: n == null ? void 0 : n.controlVideoPlayer });
1025
- }, es = ({ userSummary: e }) => {
1026
- var t;
1027
- const [n, r] = L(void 0);
1028
- return y(() => {
1029
- const a = e.$store.subscribe((o) => {
1030
- o && r(o);
1244
+ propsAsIs: false
1245
+ });
1246
+ const k$2 = ({ questions: n2, openQuestion: b2, controlVideo: a2 }) => {
1247
+ const l2 = (t2) => {
1248
+ const e2 = t2.target.getAttribute("data-name");
1249
+ e2 && (wt(), b2(e2, { openedFrom: "list" }));
1250
+ };
1251
+ return n2 ? /* @__PURE__ */ jsx(e$b, { "data-a": "intr", onClick: l2, children: n2 == null ? void 0 : n2.map((t2) => {
1252
+ var e2, u2, s2;
1253
+ if (t2.type === "question" && ((e2 = t2.attributes) == null ? void 0 : e2.attributes.case) === "question") {
1254
+ const i2 = t2.attributes.attributes.value;
1255
+ return /* @__PURE__ */ jsx(R$3, { ...i2 }, i2.questionId);
1256
+ }
1257
+ if (t2.type === "insight" && ((u2 = t2.attributes) == null ? void 0 : u2.attributes.case) === "insight") {
1258
+ const i2 = t2.attributes.attributes.value;
1259
+ return /* @__PURE__ */ jsx(c$8, { controlVideo: a2, ...i2 }, i2.questionId);
1260
+ }
1261
+ if (t2.type === "tweet" && ((s2 = t2.attributes) == null ? void 0 : s2.attributes.case) === "tweet") {
1262
+ const i2 = t2.attributes.attributes.value, o2 = t2.attributes.id;
1263
+ return /* @__PURE__ */ jsx(l$9, { controlVideo: a2, ...i2, tweetId: o2 }, o2);
1264
+ }
1265
+ return null;
1266
+ }) }) : /* @__PURE__ */ jsx(e$b, { children: Array.from({ length: 5 }).map((t2, e2) => /* @__PURE__ */ jsx(D$3, {}, e2)) });
1267
+ };
1268
+ const a$7 = ({ store: t2, openQuestion: r2 }) => {
1269
+ const { sdk: o2 } = p$h(), e2 = useStore(t2);
1270
+ return /* @__PURE__ */ jsx(k$2, { openQuestion: r2, questions: e2.data, controlVideo: o2 == null ? void 0 : o2.controlVideoPlayer });
1271
+ };
1272
+ const b$3 = ({ userSummary: r2 }) => {
1273
+ var e2;
1274
+ const [t2, s2] = useState(void 0);
1275
+ return useEffect(() => {
1276
+ const c2 = r2.$store.subscribe((o2) => {
1277
+ o2 && s2(o2);
1031
1278
  });
1032
1279
  return () => {
1033
- a();
1280
+ c2();
1034
1281
  };
1035
- }, [e]), /* @__PURE__ */ s(ue, { loading: !(n != null && n.summary), ...n == null ? void 0 : n.summary, successRate: (t = n == null ? void 0 : n.percentage) == null ? void 0 : t.correct });
1036
- }, ts = ({ gamification: e, className: t, scrollStore: n, scrollNode: r, appNode: a, style: o, responsiveStore: c }) => {
1037
- const { tabsShown: l } = A(n, { keys: ["tabsShown"] }), d = A(e.friendsTabEnabled), [u, v] = L(j.HOME), [, m] = Me(), { sdkInDesktopView: p, screen: C } = A(c, { keys: ["sdkInDesktopView"] }), g = (f) => {
1038
- m(() => {
1039
- var $;
1040
- v(f), p === !1 && ((($ = a.current) == null ? void 0 : $.getBoundingClientRect().y) || 0) < 0 && v2(a, C.size, { behavior: "instant" });
1282
+ }, [r2]), /* @__PURE__ */ jsx(z$4, { loading: !(t2 != null && t2.summary), ...t2 == null ? void 0 : t2.summary, successRate: (e2 = t2 == null ? void 0 : t2.percentage) == null ? void 0 : e2.correct });
1283
+ };
1284
+ const W$1 = ({ gamification: s2, className: w2, scrollStore: t2, scrollNode: y2, appNode: c2, style: k2, responsiveStore: i2 }) => {
1285
+ const { tabsShown: u2 } = useStore(t2, { keys: ["tabsShown"] }), o2 = useStore(s2.friendsTabEnabled), [a2, h2] = useState(m$8.HOME), [, T2] = useTransition(), { sdkInDesktopView: l2, screen: g2 } = useStore(i2, { keys: ["sdkInDesktopView"] }), x2 = (r2) => {
1286
+ T2(() => {
1287
+ var b2;
1288
+ h2(r2), l2 === false && (((b2 = c2.current) == null ? void 0 : b2.getBoundingClientRect().y) || 0) < 0 && I$9(c2, g2.size, { behavior: "instant" });
1041
1289
  });
1042
1290
  };
1043
- y(() => n.subscribe((f) => {
1044
- if (f.scrollPosition === 0) {
1045
- n.setKey("tabsShown", !0);
1291
+ useEffect(() => t2.subscribe((r2) => {
1292
+ if (r2.scrollPosition === 0) {
1293
+ t2.setKey("tabsShown", true);
1046
1294
  return;
1047
1295
  }
1048
- c.get().sdkInDesktopView ? n.setKey("tabsShown", f.scrollDirection === "backward") : n.setKey("tabsShown", f.scrollDirection === "forward");
1049
- }), [n, c]), y(() => {
1050
- d || v(j.HOME);
1051
- }, [d]);
1052
- let I = "0px";
1053
- return p ? I = l ? "0px" : "calc(0px - var(--header-height))" : I = l ? "var(--header-height)" : "0px", /* @__PURE__ */ h(Oe, { className: F(t, "SL-Tabs", "sl-hide-on-modal"), style: o, children: [
1054
- d && /* @__PURE__ */ s(
1055
- De,
1296
+ i2.get().sdkInDesktopView ? t2.setKey("tabsShown", r2.scrollDirection === "backward") : t2.setKey("tabsShown", r2.scrollDirection === "forward");
1297
+ }), [t2, i2]), useEffect(() => {
1298
+ o2 || h2(m$8.HOME);
1299
+ }, [o2]);
1300
+ let m2 = "0px";
1301
+ return l2 ? m2 = u2 ? "0px" : "calc(0px - var(--header-height))" : m2 = u2 ? "var(--header-height)" : "0px", /* @__PURE__ */ jsxs(l$f, { className: cx_default(w2, "SL-Tabs", "sl-hide-on-modal"), style: k2, children: [
1302
+ o2 && /* @__PURE__ */ jsx(
1303
+ S$3,
1056
1304
  {
1057
1305
  style: {
1058
- top: I
1306
+ top: m2
1059
1307
  },
1060
- children: /* @__PURE__ */ s(W0, { activePage: u, toggleActivePage: g })
1308
+ children: /* @__PURE__ */ jsx(b$4, { activePage: a2, toggleActivePage: x2 })
1061
1309
  }
1062
1310
  ),
1063
- u === j.HOME && /* @__PURE__ */ h(R, { children: [
1064
- /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(Be, { children: /* @__PURE__ */ s(es, { userSummary: e.userSummary }) }) }),
1065
- /* @__PURE__ */ s(qe, { style: { flex: 1 }, children: /* @__PURE__ */ s(Xt, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
1311
+ a2 === m$8.HOME && /* @__PURE__ */ jsxs(Fragment, { children: [
1312
+ /* @__PURE__ */ jsx(m$d, { children: /* @__PURE__ */ jsx(d$9, { children: /* @__PURE__ */ jsx(b$3, { userSummary: s2.userSummary }) }) }),
1313
+ /* @__PURE__ */ jsx(n$f, { style: { flex: 1 }, children: /* @__PURE__ */ jsx(a$7, { openQuestion: s2.openQuestion, store: s2.feedList.getStore() }) })
1066
1314
  ] }),
1067
- u === j.LEADERBOARD && /* @__PURE__ */ s(Ue, { children: /* @__PURE__ */ s(Bt, { scrollStore: n, scrollNode: r, gamification: e }) })
1315
+ a2 === m$8.LEADERBOARD && /* @__PURE__ */ jsx(C$4, { children: /* @__PURE__ */ jsx(E$1, { scrollStore: t2, scrollNode: y2, gamification: s2 }) })
1068
1316
  ] });
1069
- }, ss = () => i2, V2 = /* @__PURE__ */ i(ss())({
1317
+ };
1318
+ const R$1 = () => f$c, u$2 = /* @__PURE__ */ styled_default(R$1())({
1070
1319
  name: "OpenedContainer",
1071
1320
  class: "ouvguos",
1072
- propsAsIs: !0
1073
- }), H2 = "t1eu4lbg", ns = /* @__PURE__ */ i("div")({
1321
+ propsAsIs: true
1322
+ }), f$7 = "t1eu4lbg", V$1 = /* @__PURE__ */ styled_default("div")({
1074
1323
  name: "UserContainer",
1075
1324
  class: "uuv2xqo",
1076
- propsAsIs: !1
1077
- }), is = ({
1078
- correct: e,
1079
- incorrect: t
1325
+ propsAsIs: false
1326
+ }), j$1 = ({
1327
+ correct: e2,
1328
+ incorrect: t2
1080
1329
  }) => {
1081
- const n = e + t;
1082
- return n === 0 ? 0 : Math.round(e / n * 100);
1083
- }, O1 = ({
1084
- gamification: e,
1085
- scrollStore: t,
1086
- className: n,
1087
- appNode: r,
1088
- scrollNode: a,
1089
- responsiveStore: o
1090
- }) => /* @__PURE__ */ s(ts, {
1091
- appNode: r,
1092
- scrollStore: t,
1093
- scrollNode: a,
1094
- className: n,
1095
- gamification: e,
1096
- responsiveStore: o
1097
- }), rs = ({
1098
- gamification: e,
1099
- muted: t,
1100
- sdk: n,
1101
- className: r,
1102
- appNode: a,
1103
- responsiveStore: o
1330
+ const n2 = e2 + t2;
1331
+ return n2 === 0 ? 0 : Math.round(e2 / n2 * 100);
1332
+ }, B$3 = ({
1333
+ gamification: e2,
1334
+ scrollStore: t2,
1335
+ className: n2,
1336
+ appNode: r2,
1337
+ scrollNode: p2,
1338
+ responsiveStore: a2
1339
+ }) => /* @__PURE__ */ jsx(W$1, {
1340
+ appNode: r2,
1341
+ scrollStore: t2,
1342
+ scrollNode: p2,
1343
+ className: n2,
1344
+ gamification: e2,
1345
+ responsiveStore: a2
1346
+ }), J$2 = ({
1347
+ gamification: e2,
1348
+ muted: t2,
1349
+ sdk: n2,
1350
+ className: r2,
1351
+ appNode: p2,
1352
+ responsiveStore: a2
1104
1353
  }) => {
1105
1354
  const {
1106
- topNavigation: c
1107
- } = u2(), l = A(e.openedQuestionId), d = A(e.openedQuestion.$store), u = A(e.openedUser || he(void 0)), {
1108
- sdkInDesktopView: v
1109
- } = A(o, {
1355
+ topNavigation: c2
1356
+ } = p$h(), C2 = useStore(e2.openedQuestionId), S2 = useStore(e2.openedQuestion.$store), s2 = useStore(e2.openedUser || createSingleStore(void 0)), {
1357
+ sdkInDesktopView: v2
1358
+ } = useStore(a2, {
1110
1359
  keys: ["sdkInDesktopView"]
1111
1360
  }), {
1112
- hiding: m,
1113
- onAnimationEnd: p
1114
- } = Pe();
1115
- if (!l && !u)
1361
+ hiding: m2,
1362
+ onAnimationEnd: d2
1363
+ } = S$4();
1364
+ if (!C2 && !s2)
1116
1365
  return null;
1117
- const C = d ? /* @__PURE__ */ s(V2, {
1118
- className: F(r, !c && H2),
1119
- hiding: m,
1120
- onAnimationEnd: p,
1121
- children: /* @__PURE__ */ s(Xe, {
1122
- muted: t,
1123
- sdk: n,
1124
- gamification: e
1366
+ const x2 = S2 ? /* @__PURE__ */ jsx(u$2, {
1367
+ className: cx_default(r2, !c2 && f$7),
1368
+ hiding: m2,
1369
+ onAnimationEnd: d2,
1370
+ children: /* @__PURE__ */ jsx(ht, {
1371
+ muted: t2,
1372
+ sdk: n2,
1373
+ gamification: e2
1125
1374
  })
1126
- }) : u ? /* @__PURE__ */ s(V2, {
1127
- className: F(r, !c && H2),
1128
- hiding: m,
1129
- onAnimationEnd: p,
1130
- children: /* @__PURE__ */ h(ns, {
1131
- children: [/* @__PURE__ */ s(e0, {
1375
+ }) : s2 ? /* @__PURE__ */ jsx(u$2, {
1376
+ className: cx_default(r2, !c2 && f$7),
1377
+ hiding: m2,
1378
+ onAnimationEnd: d2,
1379
+ children: /* @__PURE__ */ jsxs(V$1, {
1380
+ children: [/* @__PURE__ */ jsx(y$2, {
1132
1381
  label: "Friend's Rank",
1133
- close: e.closeUser
1134
- }), /* @__PURE__ */ s(We, {
1135
- children: /* @__PURE__ */ s(ue, {
1136
- ...u,
1137
- successRate: is(u)
1382
+ close: e2.closeUser
1383
+ }), /* @__PURE__ */ jsx(a$d, {
1384
+ children: /* @__PURE__ */ jsx(z$4, {
1385
+ ...s2,
1386
+ successRate: j$1(s2)
1138
1387
  })
1139
1388
  })]
1140
1389
  })
1141
1390
  }) : null;
1142
- return /* @__PURE__ */ s(ve, {
1143
- container: a,
1144
- useContainer: !v,
1145
- children: C
1391
+ return /* @__PURE__ */ jsx(T$3, {
1392
+ container: p2,
1393
+ useContainer: !v2,
1394
+ children: x2
1146
1395
  });
1147
- }, as = Se(() => import("./gamification-feature.js")), os = ({ sdk: e, feature: t, className: n, scrollStore: r, appNode: a, scrollNode: o, responsiveStore: c }) => {
1148
- const l = M(() => t && t.featureConfig.get().type === H.GAMES ? /* @__PURE__ */ s(m0, { className: n, sdk: e, feature: t, children: /* @__PURE__ */ s(
1149
- as,
1396
+ };
1397
+ const d$4 = lazy(() => import("./gamification-feature.js")), x$4 = ({ sdk: i2, feature: t2, className: n2, scrollStore: e2, appNode: o2, scrollNode: a2, responsiveStore: l2 }) => {
1398
+ const u2 = useMemo(() => t2 && t2.featureConfig.get().type === SdkOverlayType.GAMES ? /* @__PURE__ */ jsx(v$6, { className: n2, sdk: i2, feature: t2, children: /* @__PURE__ */ jsx(
1399
+ d$4,
1150
1400
  {
1151
- appNode: a,
1152
- scrollStore: r,
1153
- scrollNode: o,
1154
- className: n,
1155
- responsiveStore: c,
1156
- gamification: t
1401
+ appNode: o2,
1402
+ scrollStore: e2,
1403
+ scrollNode: a2,
1404
+ className: n2,
1405
+ responsiveStore: l2,
1406
+ gamification: t2
1157
1407
  }
1158
- ) }) : null, [e, t, n, c, r, o, a]);
1159
- return /* @__PURE__ */ s(
1160
- Ne,
1408
+ ) }) : null, [i2, t2, n2, l2, e2, a2, o2]);
1409
+ return /* @__PURE__ */ jsx(
1410
+ Suspense,
1161
1411
  {
1162
- fallback: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
1163
- children: l
1412
+ fallback: /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
1413
+ children: u2
1164
1414
  }
1165
1415
  );
1166
- }, ls = ({ feature: e, sdk: t, muted: n, className: r, appNode: a, responsiveStore: o }) => e && e.featureConfig.get().type === H.GAMES ? /* @__PURE__ */ s(
1167
- rs,
1416
+ }, A$3 = ({ feature: i2, sdk: t2, muted: n2, className: e2, appNode: o2, responsiveStore: a2 }) => i2 && i2.featureConfig.get().type === SdkOverlayType.GAMES ? /* @__PURE__ */ jsx(
1417
+ J$2,
1168
1418
  {
1169
- className: r,
1170
- appNode: a,
1171
- muted: n,
1172
- sdk: t,
1173
- responsiveStore: o,
1174
- gamification: e
1419
+ className: e2,
1420
+ appNode: o2,
1421
+ muted: n2,
1422
+ sdk: t2,
1423
+ responsiveStore: a2,
1424
+ gamification: i2
1175
1425
  }
1176
1426
  ) : null;
1177
1427
  window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
1178
- function cs(e) {
1179
- return e instanceof DOMException && // everything except Firefox
1180
- (e.code === 22 || // Firefox
1181
- e.code === 1014 || // test name field too, because code might not be present
1428
+ function isQuotaExceededError(err) {
1429
+ return err instanceof DOMException && // everything except Firefox
1430
+ (err.code === 22 || // Firefox
1431
+ err.code === 1014 || // test name field too, because code might not be present
1182
1432
  // everything except Firefox
1183
- e.name === "QuotaExceededError" || // Firefox
1184
- e.name === "NS_ERROR_DOM_QUOTA_REACHED");
1433
+ err.name === "QuotaExceededError" || // Firefox
1434
+ err.name === "NS_ERROR_DOM_QUOTA_REACHED");
1185
1435
  }
1186
- class ds {
1187
- constructor(t = "main", n = window.localStorage) {
1188
- T(this, "delimiter", ":");
1189
- T(this, "prefix");
1190
- T(this, "storage");
1191
- T(this, "clear", () => {
1192
- for (const t in window.localStorage)
1193
- t.startsWith(this.prefix) && this.storage.removeItem(t);
1436
+ class Storage {
1437
+ constructor(prefix = "main", storage = window.localStorage) {
1438
+ __publicField(this, "delimiter", ":");
1439
+ __publicField(this, "prefix");
1440
+ __publicField(this, "storage");
1441
+ __publicField(this, "clear", () => {
1442
+ for (const key in window.localStorage) {
1443
+ if (key.startsWith(this.prefix)) {
1444
+ this.storage.removeItem(key);
1445
+ }
1446
+ }
1194
1447
  });
1195
- T(this, "generateKey", (t) => `${this.prefix}${this.delimiter}${t.join(this.delimiter)}`);
1196
- T(this, "write", (...t) => {
1197
- const n = t.pop() || "", r = this.generateKey(t);
1448
+ __publicField(this, "generateKey", (keyParts) => `${this.prefix}${this.delimiter}${keyParts.join(this.delimiter)}`);
1449
+ __publicField(this, "write", (...keyParts) => {
1450
+ const value = keyParts.pop() || "";
1451
+ const key = this.generateKey(keyParts);
1198
1452
  try {
1199
- this.storage.setItem(r, n);
1200
- } catch (a) {
1201
- cs(a) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(r, n));
1453
+ this.storage.setItem(key, value);
1454
+ } catch (err) {
1455
+ if (isQuotaExceededError(err) && this.storage === window.sessionStorage) {
1456
+ window.sessionStorage.removeItem("slstreamlogs");
1457
+ this.storage.setItem(key, value);
1458
+ }
1202
1459
  }
1203
1460
  });
1204
- T(this, "read", (...t) => {
1205
- const n = this.storage.getItem(this.generateKey(t));
1206
- return n === null ? void 0 : n;
1461
+ __publicField(this, "read", (...keyParts) => {
1462
+ const value = this.storage.getItem(this.generateKey(keyParts));
1463
+ return value === null ? void 0 : value;
1207
1464
  });
1208
- T(this, "remove", (...t) => {
1209
- this.storage.removeItem(this.generateKey(t));
1465
+ __publicField(this, "remove", (...keyParts) => {
1466
+ this.storage.removeItem(this.generateKey(keyParts));
1210
1467
  });
1211
- this.prefix = `sl-sdk${this.delimiter}${t}`, this.storage = n;
1468
+ this.prefix = `sl-sdk${this.delimiter}${prefix}`;
1469
+ this.storage = storage;
1212
1470
  }
1213
1471
  }
1214
- var z2;
1215
- (function(e) {
1216
- e.Init = "init", e.Ready = "ready", e.Connecting = "connecting", e.Connected = "connected", e.Disconnected = "disconnected", e.Failed = "failed", e.Reconnect = "reconnect", e.Reconnecting = "reconnecting";
1217
- })(z2 || (z2 = {}));
1218
- G("grpc:stream");
1219
- B.Unknown, B.Internal, B.DeadlineExceeded, B.ResourceExhausted, B.FailedPrecondition, B.Unavailable, B.DataLoss;
1220
- G("grpc:retry");
1221
- b2(10, { description: "Number of attempts to retry" }), b2(3e4, { description: "Max delay between retries in milliseconds" });
1222
- var z;
1223
- (function(e) {
1224
- e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
1225
- })(z || (z = {}));
1226
- class ps extends ds {
1472
+ var ServerStreamSubscriptionStatus;
1473
+ (function(ServerStreamSubscriptionStatus2) {
1474
+ ServerStreamSubscriptionStatus2["Init"] = "init";
1475
+ ServerStreamSubscriptionStatus2["Ready"] = "ready";
1476
+ ServerStreamSubscriptionStatus2["Connecting"] = "connecting";
1477
+ ServerStreamSubscriptionStatus2["Connected"] = "connected";
1478
+ ServerStreamSubscriptionStatus2["Disconnected"] = "disconnected";
1479
+ ServerStreamSubscriptionStatus2["Failed"] = "failed";
1480
+ ServerStreamSubscriptionStatus2["Reconnect"] = "reconnect";
1481
+ ServerStreamSubscriptionStatus2["Reconnecting"] = "reconnecting";
1482
+ })(ServerStreamSubscriptionStatus || (ServerStreamSubscriptionStatus = {}));
1483
+ createLogger("grpc:stream");
1484
+ /* @__PURE__ */ new Set([
1485
+ Code.Unknown,
1486
+ Code.Internal,
1487
+ Code.DeadlineExceeded,
1488
+ Code.ResourceExhausted,
1489
+ Code.FailedPrecondition,
1490
+ Code.Unavailable,
1491
+ Code.DataLoss
1492
+ ]);
1493
+ createLogger("grpc:retry");
1494
+ ({
1495
+ retryAttempts: createContextKey(10, { description: "Number of attempts to retry" }),
1496
+ retryDelay: createContextKey(3e4, { description: "Max delay between retries in milliseconds" })
1497
+ });
1498
+ var KEY_PREFIX$2;
1499
+ (function(KEY_PREFIX2) {
1500
+ KEY_PREFIX2["SCHEMA"] = "schema";
1501
+ KEY_PREFIX2["EXTERNAL_TOKEN"] = "eToken";
1502
+ KEY_PREFIX2["TOKEN"] = "token";
1503
+ })(KEY_PREFIX$2 || (KEY_PREFIX$2 = {}));
1504
+ class UserStorage extends Storage {
1227
1505
  constructor() {
1228
1506
  super("user");
1229
1507
  // Schema
1230
- T(this, "setSchema", (n) => {
1231
- this.write(z.SCHEMA, n);
1508
+ __publicField(this, "setSchema", (value) => {
1509
+ this.write(KEY_PREFIX$2.SCHEMA, value);
1510
+ });
1511
+ __publicField(this, "getSchema", () => {
1512
+ return this.read(KEY_PREFIX$2.SCHEMA);
1232
1513
  });
1233
- T(this, "getSchema", () => this.read(z.SCHEMA));
1234
1514
  // Token
1235
- T(this, "setToken", (n) => {
1236
- this.write(z.TOKEN, n);
1515
+ __publicField(this, "setToken", (value) => {
1516
+ this.write(KEY_PREFIX$2.TOKEN, value);
1517
+ });
1518
+ __publicField(this, "getToken", () => {
1519
+ return this.read(KEY_PREFIX$2.TOKEN);
1237
1520
  });
1238
- T(this, "getToken", () => this.read(z.TOKEN));
1239
1521
  // External Token
1240
- T(this, "setExternalToken", (n) => {
1241
- this.write(z.EXTERNAL_TOKEN, n);
1522
+ __publicField(this, "setExternalToken", (value) => {
1523
+ this.write(KEY_PREFIX$2.EXTERNAL_TOKEN, value);
1524
+ });
1525
+ __publicField(this, "getExternalToken", () => {
1526
+ return this.read(KEY_PREFIX$2.EXTERNAL_TOKEN);
1242
1527
  });
1243
- T(this, "getExternalToken", () => this.read(z.EXTERNAL_TOKEN));
1244
- T(this, "removeToken", () => {
1245
- this.remove(z.TOKEN);
1528
+ __publicField(this, "removeToken", () => {
1529
+ this.remove(KEY_PREFIX$2.TOKEN);
1246
1530
  });
1247
1531
  }
1248
1532
  }
1249
- var M2;
1250
- (function(e) {
1251
- e.DISABLED = "disabled", e.INITIALIZATION = "initialization", e.READY = "ready", e.FAILED = "failed", e.SUSPENDED = "suspended";
1252
- })(M2 || (M2 = {}));
1253
- var O2;
1254
- (function(e) {
1255
- e.SHOWED = "showed", e.EVENT = "ev";
1256
- })(O2 || (O2 = {}));
1257
- var D2;
1258
- (function(e) {
1259
- e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.QUESTION_RECEIVED = "q-received", e.QUESTION_OPENED = "q-opened";
1260
- })(D2 || (D2 = {}));
1261
- var F2;
1262
- (function(e) {
1263
- e.ALLOWED = "allowed", e.DISALLOWED = "disallowed";
1264
- })(F2 || (F2 = {}));
1265
- var B2;
1266
- (function(e) {
1267
- e.UNKNOWN = "unknown", e.ALREADY_VOTED = "already_voted";
1268
- })(B2 || (B2 = {}));
1269
- G("deep_link");
1270
- G("bypass");
1271
- new ps();
1272
- G("video_player");
1273
- S.FACTOID + "", S.POLL + "", S.TRIVIA + "", S.PREDICTION + "", S.TWEET + "";
1274
- var q2;
1275
- (function(e) {
1276
- e.Unset = "unset", e.Required = "required", e.Optional = "optional", e.Completed = "completed", e.Disabled = "disabled", e.Unavailable = "unavailable";
1277
- })(q2 || (q2 = {}));
1278
- S.POLL, S.PREDICTION, S.TRIVIA;
1279
- const hs = {
1280
- [H.GAMES]: !0
1281
- }, us = /* @__PURE__ */ i("div")({
1533
+ var CoreStatus;
1534
+ (function(CoreStatus2) {
1535
+ CoreStatus2["DISABLED"] = "disabled";
1536
+ CoreStatus2["INITIALIZATION"] = "initialization";
1537
+ CoreStatus2["READY"] = "ready";
1538
+ CoreStatus2["FAILED"] = "failed";
1539
+ CoreStatus2["SUSPENDED"] = "suspended";
1540
+ })(CoreStatus || (CoreStatus = {}));
1541
+ var KEY_PREFIX$1;
1542
+ (function(KEY_PREFIX2) {
1543
+ KEY_PREFIX2["SHOWED"] = "showed";
1544
+ KEY_PREFIX2["EVENT"] = "ev";
1545
+ })(KEY_PREFIX$1 || (KEY_PREFIX$1 = {}));
1546
+ var KEY_PREFIX;
1547
+ (function(KEY_PREFIX2) {
1548
+ KEY_PREFIX2["ONBOARDING"] = "onboarding";
1549
+ KEY_PREFIX2["ONBOARDING_IO"] = "onboarding_io";
1550
+ KEY_PREFIX2["QUESTION_RECEIVED"] = "q-received";
1551
+ KEY_PREFIX2["QUESTION_OPENED"] = "q-opened";
1552
+ })(KEY_PREFIX || (KEY_PREFIX = {}));
1553
+ var InteractiveAllowed;
1554
+ (function(InteractiveAllowed2) {
1555
+ InteractiveAllowed2["ALLOWED"] = "allowed";
1556
+ InteractiveAllowed2["DISALLOWED"] = "disallowed";
1557
+ })(InteractiveAllowed || (InteractiveAllowed = {}));
1558
+ var ERROR;
1559
+ (function(ERROR2) {
1560
+ ERROR2["UNKNOWN"] = "unknown";
1561
+ ERROR2["ALREADY_VOTED"] = "already_voted";
1562
+ })(ERROR || (ERROR = {}));
1563
+ createLogger("deep_link");
1564
+ createLogger("bypass");
1565
+ new UserStorage();
1566
+ createLogger("video_player");
1567
+ var OnboardingStatus;
1568
+ (function(OnboardingStatus2) {
1569
+ OnboardingStatus2["Unset"] = "unset";
1570
+ OnboardingStatus2["Required"] = "required";
1571
+ OnboardingStatus2["Optional"] = "optional";
1572
+ OnboardingStatus2["Completed"] = "completed";
1573
+ OnboardingStatus2["Disabled"] = "disabled";
1574
+ OnboardingStatus2["Unavailable"] = "unavailable";
1575
+ })(OnboardingStatus || (OnboardingStatus = {}));
1576
+ /* @__PURE__ */ new Set([QuestionType.POLL, QuestionType.PREDICTION, QuestionType.TRIVIA]);
1577
+ const AvailableFeatures = {
1578
+ [SdkOverlayType.GAMES]: true
1579
+ };
1580
+ const n$a = /* @__PURE__ */ styled_default("div")({
1282
1581
  name: "Buttons",
1283
1582
  class: "b5o8qbl",
1284
- propsAsIs: !1
1285
- }), ms = ({
1286
- children: e,
1287
- className: t
1288
- }) => /* @__PURE__ */ s(us, {
1289
- className: t,
1290
- children: e
1291
- }), ge = /* @__PURE__ */ i("div")({
1583
+ propsAsIs: false
1584
+ }), i$8 = ({
1585
+ children: o2,
1586
+ className: s2
1587
+ }) => /* @__PURE__ */ jsx(n$a, {
1588
+ className: s2,
1589
+ children: o2
1590
+ });
1591
+ const n$9 = /* @__PURE__ */ styled_default("div")({
1292
1592
  name: "Navigation",
1293
1593
  class: "n6tbwuy",
1294
- propsAsIs: !1
1295
- }), vs = () => ms, U2 = /* @__PURE__ */ i(vs())({
1594
+ propsAsIs: false
1595
+ }), t$b = () => i$8, e$a = /* @__PURE__ */ styled_default(t$b())({
1296
1596
  name: "NavigationItems",
1297
1597
  class: "n1up4z7v",
1298
- propsAsIs: !0
1299
- }), Cs = /* @__PURE__ */ i("button")({
1598
+ propsAsIs: true
1599
+ });
1600
+ const o$b = /* @__PURE__ */ styled_default("button")({
1300
1601
  name: "SButton",
1301
1602
  class: "sxxa0c",
1302
- propsAsIs: !1
1303
- }), fs = /* @__PURE__ */ i("span")({
1603
+ propsAsIs: false
1604
+ }), n$8 = /* @__PURE__ */ styled_default("span")({
1304
1605
  name: "ButtonIcon",
1305
1606
  class: "b193dcyu",
1306
- propsAsIs: !1
1307
- }), gs = /* @__PURE__ */ i("span")({
1607
+ propsAsIs: false
1608
+ }), a$6 = /* @__PURE__ */ styled_default("span")({
1308
1609
  name: "ButtonLabel",
1309
1610
  class: "b40tuix",
1310
- propsAsIs: !1
1311
- }), Is = "s14xk0af", bs = "ha3mg7c", $s = "h103yr45", Y = ({ disabled: e, active: t, onClick: n, label: r, icon: a, id: o }) => /* @__PURE__ */ s(
1312
- Cs,
1611
+ propsAsIs: false
1612
+ }), e$9 = "s14xk0af", c$6 = "ha3mg7c", r$8 = "h103yr45";
1613
+ const i$7 = ({ disabled: n2, active: r2, onClick: a2, label: c2, icon: o2, id: t2 }) => /* @__PURE__ */ jsx(
1614
+ o$b,
1313
1615
  {
1314
- onClick: n,
1616
+ onClick: a2,
1315
1617
  "data-a": "intr",
1316
- disabled: e,
1317
- className: F(
1318
- t && Is,
1319
- !t && (o === "channels" || o === "featuredGroups") && bs,
1320
- !t && o === "leaderboard" && $s
1618
+ disabled: n2,
1619
+ className: cx_default(
1620
+ r2 && e$9,
1621
+ !r2 && (t2 === "channels" || t2 === "featuredGroups") && c$6,
1622
+ !r2 && t2 === "leaderboard" && r$8
1321
1623
  ),
1322
- children: /* @__PURE__ */ h(R, { children: [
1323
- a && /* @__PURE__ */ s(fs, { children: a }),
1324
- /* @__PURE__ */ s(gs, { children: r })
1624
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
1625
+ o2 && /* @__PURE__ */ jsx(n$8, { children: o2 }),
1626
+ /* @__PURE__ */ jsx(a$6, { children: c2 })
1325
1627
  ] })
1326
1628
  }
1327
- ), As = () => _, ys = /* @__PURE__ */ i(As())({
1629
+ );
1630
+ const g = () => B1, x$3 = /* @__PURE__ */ styled_default(g())({
1328
1631
  name: "ButtonIcon",
1329
1632
  class: "b11wpe79",
1330
- propsAsIs: !0
1331
- }), ws = /* @__PURE__ */ i("div")({
1633
+ propsAsIs: true
1634
+ }), F$3 = /* @__PURE__ */ styled_default("div")({
1332
1635
  name: "Container",
1333
1636
  class: "calnblm",
1334
- propsAsIs: !1
1335
- }), Ls = /* @__PURE__ */ i("div")({
1637
+ propsAsIs: false
1638
+ }), D$2 = /* @__PURE__ */ styled_default("div")({
1336
1639
  name: "Title",
1337
1640
  class: "t1438p52",
1338
- propsAsIs: !1
1339
- }), ks = /* @__PURE__ */ i("div")({
1641
+ propsAsIs: false
1642
+ }), N = /* @__PURE__ */ styled_default("div")({
1340
1643
  name: "CloseIconWrap",
1341
1644
  class: "c17srj38",
1342
- propsAsIs: !1
1343
- }), _s = () => _, Ts = /* @__PURE__ */ i(_s())({
1645
+ propsAsIs: false
1646
+ }), B$2 = () => B1, j = /* @__PURE__ */ styled_default(B$2())({
1344
1647
  name: "CloseIcon",
1345
1648
  class: "clqia8k",
1346
- propsAsIs: !0
1347
- }), Ss = () => _, Ns = /* @__PURE__ */ i(Ss())({
1649
+ propsAsIs: true
1650
+ }), w$3 = () => B1, G$2 = /* @__PURE__ */ styled_default(w$3())({
1348
1651
  name: "DashboardIcon",
1349
1652
  class: "df5w958",
1350
- propsAsIs: !0
1351
- }), xs = "h12x6aiv", Rs = ie(({
1352
- sdk: e,
1353
- className: t
1354
- }, n) => {
1355
- const r = () => {
1356
- e.closeFeature();
1653
+ propsAsIs: true
1654
+ }), M = "h12x6aiv", z$3 = forwardRef(({
1655
+ sdk: s2,
1656
+ className: l2
1657
+ }, p2) => {
1658
+ const a2 = () => {
1659
+ s2.closeFeature();
1357
1660
  };
1358
- return /* @__PURE__ */ h(ge, {
1359
- className: F(t, xs),
1360
- children: [/* @__PURE__ */ h(ws, {
1361
- children: [/* @__PURE__ */ h(Ls, {
1362
- children: [/* @__PURE__ */ s(Ns, {
1661
+ return /* @__PURE__ */ jsxs(n$9, {
1662
+ className: cx_default(l2, M),
1663
+ children: [/* @__PURE__ */ jsxs(F$3, {
1664
+ children: [/* @__PURE__ */ jsxs(D$2, {
1665
+ children: [/* @__PURE__ */ jsx(G$2, {
1363
1666
  name: "dashboard"
1364
1667
  }), "Dashboard"]
1365
- }), /* @__PURE__ */ s(ks, {
1668
+ }), /* @__PURE__ */ jsx(N, {
1366
1669
  "data-a": "intr",
1367
- onClick: r,
1368
- children: /* @__PURE__ */ s(Ts, {
1670
+ onClick: a2,
1671
+ children: /* @__PURE__ */ jsx(j, {
1369
1672
  name: "icon-cross"
1370
1673
  })
1371
1674
  })]
1372
- }), /* @__PURE__ */ s("div", {
1373
- ref: n
1675
+ }), /* @__PURE__ */ jsx("div", {
1676
+ ref: p2
1374
1677
  })]
1375
1678
  });
1376
- }), Es = ie(({
1377
- sdk: e,
1378
- className: t
1379
- }, n) => {
1380
- const r = A(e.sdkStore.organizationSettings), a = A(e.sdkStore.streamSettings), o = A(e.getActiveFeature()), c = M(() => {
1381
- const d = (a == null ? void 0 : a.data) || (r == null ? void 0 : r.data);
1382
- return d != null && d.overlays ? d.overlays : [];
1383
- }, [r, a]), l = M(() => [...c.filter(({
1384
- enableSdkButton: d,
1385
- type: u
1386
- }) => u === H.GAMES || d).map((d) => ({
1387
- id: d.type,
1388
- onClick: () => e.openFeature(d.type),
1389
- disabled: !(d.type in hs),
1390
- label: d.name,
1391
- icon: /* @__PURE__ */ s("img", {
1392
- src: d.icon,
1679
+ }), J$1 = forwardRef(({
1680
+ sdk: s2,
1681
+ className: l2
1682
+ }, p2) => {
1683
+ const a2 = useStore(s2.sdkStore.organizationSettings), r2 = useStore(s2.sdkStore.streamSettings), i2 = useStore(s2.getActiveFeature()), f2 = useMemo(() => {
1684
+ const o2 = (r2 == null ? void 0 : r2.data) || (a2 == null ? void 0 : a2.data);
1685
+ return o2 != null && o2.overlays ? o2.overlays : [];
1686
+ }, [a2, r2]), d2 = useMemo(() => [...f2.filter(({
1687
+ enableSdkButton: o2,
1688
+ type: m2
1689
+ }) => m2 === SdkOverlayType.GAMES || o2).map((o2) => ({
1690
+ id: o2.type,
1691
+ onClick: () => s2.openFeature(o2.type),
1692
+ disabled: !(o2.type in AvailableFeatures),
1693
+ label: o2.name,
1694
+ icon: /* @__PURE__ */ jsx("img", {
1695
+ src: o2.icon,
1393
1696
  alt: ""
1394
1697
  }),
1395
1698
  /** multiplied by 10 to add the ability to insert custom buttons between our buttons */
1396
- position: d.position * 10
1397
- }))].sort((d, u) => d.position - u.position), [c, e]);
1398
- return /* @__PURE__ */ h(ge, {
1399
- className: t,
1400
- children: [l.length !== 0 && /* @__PURE__ */ s(U2, {
1401
- children: [/* @__PURE__ */ s(Y, {
1699
+ position: o2.position * 10
1700
+ }))].sort((o2, m2) => o2.position - m2.position), [f2, s2]);
1701
+ return /* @__PURE__ */ jsxs(n$9, {
1702
+ className: l2,
1703
+ children: [d2.length !== 0 && /* @__PURE__ */ jsx(e$a, {
1704
+ children: [/* @__PURE__ */ jsx(i$7, {
1402
1705
  id: "Channels",
1403
- onClick: () => e.closeFeature(),
1706
+ onClick: () => s2.closeFeature(),
1404
1707
  label: "Channels",
1405
- active: o === 0
1406
- }, "Channels"), ...l.map((d) => d.id === H.GAMES ? /* @__PURE__ */ s(Y, {
1407
- ...d,
1408
- active: d.id === o,
1708
+ active: i2 === 0
1709
+ }, "Channels"), ...d2.map((o2) => o2.id === SdkOverlayType.GAMES ? /* @__PURE__ */ jsx(i$7, {
1710
+ ...o2,
1711
+ active: o2.id === i2,
1409
1712
  label: "StreamLayer +",
1410
1713
  id: "featuredGroups",
1411
- icon: /* @__PURE__ */ s(ys, {
1714
+ icon: /* @__PURE__ */ jsx(x$3, {
1412
1715
  name: "icon-btn-feature-groups",
1413
- "data-selected": d.id === o
1716
+ "data-selected": o2.id === i2
1414
1717
  })
1415
- }, d.id) : /* @__PURE__ */ s(Y, {
1416
- ...d,
1718
+ }, o2.id) : /* @__PURE__ */ jsx(i$7, {
1719
+ ...o2,
1417
1720
  icon: void 0,
1418
- active: d.id === o
1419
- }, d.id))]
1420
- }), !l.length && /* @__PURE__ */ s(U2, {
1421
- children: [/* @__PURE__ */ s(Y, {
1721
+ active: o2.id === i2
1722
+ }, o2.id))]
1723
+ }), !d2.length && /* @__PURE__ */ jsx(e$a, {
1724
+ children: [/* @__PURE__ */ jsx(i$7, {
1422
1725
  id: "empty",
1423
1726
  label: "No Features...",
1424
- active: !1,
1425
- disabled: !0
1727
+ active: false,
1728
+ disabled: true
1426
1729
  }, "empty")]
1427
- }), /* @__PURE__ */ s("div", {
1428
- ref: n
1730
+ }), /* @__PURE__ */ jsx("div", {
1731
+ ref: p2
1429
1732
  })]
1430
1733
  });
1431
- }), Vs = /* @__PURE__ */ i("div")({
1734
+ });
1735
+ const t$a = /* @__PURE__ */ styled_default("div")({
1432
1736
  name: "InsightContainer",
1433
1737
  class: "i1pqqgpo",
1434
- propsAsIs: !1
1435
- }), Hs = /* @__PURE__ */ i("img")({
1738
+ propsAsIs: false
1739
+ }), e$8 = /* @__PURE__ */ styled_default("img")({
1436
1740
  name: "Image",
1437
1741
  class: "igj7luu",
1438
- propsAsIs: !1
1439
- }), zs = /* @__PURE__ */ i("div")({
1742
+ propsAsIs: false
1743
+ }), a$5 = /* @__PURE__ */ styled_default("div")({
1440
1744
  name: "ImageContainer",
1441
1745
  class: "i1qne9g6",
1442
- propsAsIs: !1
1443
- }), Ms = /* @__PURE__ */ i("div")({
1746
+ propsAsIs: false
1747
+ }), o$a = /* @__PURE__ */ styled_default("div")({
1444
1748
  name: "InsightContent",
1445
1749
  class: "itpr98r",
1446
- propsAsIs: !1
1447
- }), Os = /* @__PURE__ */ i("h3")({
1750
+ propsAsIs: false
1751
+ }), i$6 = /* @__PURE__ */ styled_default("h3")({
1448
1752
  name: "Title",
1449
1753
  class: "t17iaqp8",
1450
- propsAsIs: !1
1451
- }), Ds = /* @__PURE__ */ i("div")({
1754
+ propsAsIs: false
1755
+ }), p$8 = /* @__PURE__ */ styled_default("div")({
1452
1756
  name: "Description",
1453
1757
  class: "d16t3y7s",
1454
- propsAsIs: !1
1455
- }), Fs = /* @__PURE__ */ i("button")({
1758
+ propsAsIs: false
1759
+ }), r$7 = /* @__PURE__ */ styled_default("button")({
1456
1760
  name: "ActionBtn",
1457
1761
  class: "a12495er",
1458
- propsAsIs: !1
1459
- }), Bs = ({ video: e, image: t, imageMode: n, heading: r, body: a, action: o, controlVideo: c }) => /* @__PURE__ */ h(Vs, { children: [
1460
- (e == null ? void 0 : e.url) && /* @__PURE__ */ s(l0, { source: e.url, poster: e.thumbnailUrl, controlVideo: c }),
1461
- t && !(e != null && e.url) && /* @__PURE__ */ s(zs, { "data-rounded": n === He.ROUNDED, children: /* @__PURE__ */ s(Hs, { src: t, alt: r }) }),
1462
- /* @__PURE__ */ h(Ms, { children: [
1463
- /* @__PURE__ */ s(Os, { children: r }),
1464
- /* @__PURE__ */ s(Ds, { children: a }),
1465
- o && /* @__PURE__ */ s(Fs, { onClick: o, children: "View Insight" })
1762
+ propsAsIs: false
1763
+ });
1764
+ const V = ({ video: r2, image: t2, imageMode: i2, heading: l2, body: m2, action: s2, controlVideo: e2 }) => /* @__PURE__ */ jsxs(t$a, { children: [
1765
+ (r2 == null ? void 0 : r2.url) && /* @__PURE__ */ jsx(Et, { source: r2.url, poster: r2.thumbnailUrl, controlVideo: e2 }),
1766
+ t2 && !(r2 != null && r2.url) && /* @__PURE__ */ jsx(a$5, { "data-rounded": i2 === QuestionImages.ROUNDED, children: /* @__PURE__ */ jsx(e$8, { src: t2, alt: l2 }) }),
1767
+ /* @__PURE__ */ jsxs(o$a, { children: [
1768
+ /* @__PURE__ */ jsx(i$6, { children: l2 }),
1769
+ /* @__PURE__ */ jsx(p$8, { children: m2 }),
1770
+ s2 && /* @__PURE__ */ jsx(r$7, { onClick: s2, children: "View Insight" })
1466
1771
  ] })
1467
- ] }), qs = /* @__PURE__ */ i("div")({
1772
+ ] });
1773
+ const p$7 = /* @__PURE__ */ styled_default("div")({
1468
1774
  name: "Container",
1469
1775
  class: "c1eptrjd",
1470
- propsAsIs: !1
1471
- }), Us = /* @__PURE__ */ i("div")({
1776
+ propsAsIs: false
1777
+ }), t$9 = /* @__PURE__ */ styled_default("div")({
1472
1778
  name: "CloseIconWrap",
1473
1779
  class: "crylm65",
1474
- propsAsIs: !1
1475
- }), Ps = () => _, Ws = /* @__PURE__ */ i(Ps())({
1780
+ propsAsIs: false
1781
+ }), o$9 = () => B1, r$6 = /* @__PURE__ */ styled_default(o$9())({
1476
1782
  name: "CloseIcon",
1477
1783
  class: "c9mrcz7",
1478
- propsAsIs: !0
1479
- }), js = /* @__PURE__ */ i("div")({
1784
+ propsAsIs: true
1785
+ }), l$8 = /* @__PURE__ */ styled_default("div")({
1480
1786
  name: "Header",
1481
1787
  class: "hw3lzv4",
1482
- propsAsIs: !1
1483
- }), Zs = () => _, Gs = /* @__PURE__ */ i(Zs())({
1788
+ propsAsIs: false
1789
+ }), n$7 = () => B1, m$5 = /* @__PURE__ */ styled_default(n$7())({
1484
1790
  name: "TypeIcon",
1485
1791
  class: "t1rrb3kf",
1486
- propsAsIs: !0
1487
- }), Qs = /* @__PURE__ */ i("span")({
1792
+ propsAsIs: true
1793
+ }), I$5 = /* @__PURE__ */ styled_default("span")({
1488
1794
  name: "TypeName",
1489
1795
  class: "t1ydnjov",
1490
- propsAsIs: !1
1491
- }), Ks = /* @__PURE__ */ i("div")({
1796
+ propsAsIs: false
1797
+ }), f$6 = /* @__PURE__ */ styled_default("div")({
1492
1798
  name: "Question",
1493
1799
  class: "qlf90cl",
1494
- propsAsIs: !1
1495
- }), Ys = /* @__PURE__ */ i("button")({
1800
+ propsAsIs: false
1801
+ }), i$5 = /* @__PURE__ */ styled_default("button")({
1496
1802
  name: "AnswerButton",
1497
1803
  class: "a1e0nhcl",
1498
- propsAsIs: !1
1499
- }), Js = /* @__PURE__ */ i("div")({
1804
+ propsAsIs: false
1805
+ });
1806
+ const t$8 = /* @__PURE__ */ styled_default("div")({
1500
1807
  name: "Container",
1501
1808
  class: "c1t4f0x4",
1502
- propsAsIs: !1
1503
- }), Xs = /* @__PURE__ */ i("button")({
1809
+ propsAsIs: false
1810
+ }), n$6 = /* @__PURE__ */ styled_default("button")({
1504
1811
  name: "ActionBtn",
1505
1812
  class: "a16w1nl6",
1506
- propsAsIs: !1
1507
- }), en = /* @__PURE__ */ i("div")({
1813
+ propsAsIs: false
1814
+ }), a$4 = /* @__PURE__ */ styled_default("div")({
1508
1815
  name: "QuoteWrap",
1509
1816
  class: "q14u54rf",
1510
- propsAsIs: !1
1511
- }), tn = /* @__PURE__ */ i("blockquote")({
1817
+ propsAsIs: false
1818
+ }), e$7 = /* @__PURE__ */ styled_default("blockquote")({
1512
1819
  name: "Quote",
1513
1820
  class: "q1hxm6zo",
1514
- propsAsIs: !1
1515
- }), sn = ({ action: e, ...t }) => /* @__PURE__ */ h(Js, { children: [
1516
- t.title && /* @__PURE__ */ s(en, { children: /* @__PURE__ */ s(tn, { children: t.title }) }),
1517
- /* @__PURE__ */ s(ce, { ...t }),
1518
- e && /* @__PURE__ */ s(Xs, { onClick: e, children: "View Insight" })
1519
- ] }), P2 = ({
1520
- close: e,
1521
- action: t,
1522
- controlVideo: n,
1523
- data: { questionType: r, question: a, insight: o, tweet: c }
1821
+ propsAsIs: false
1822
+ });
1823
+ const s$3 = ({ action: i2, ...e2 }) => /* @__PURE__ */ jsxs(t$8, { children: [
1824
+ e2.title && /* @__PURE__ */ jsx(a$4, { children: /* @__PURE__ */ jsx(e$7, { children: e2.title }) }),
1825
+ /* @__PURE__ */ jsx(b$5, { ...e2 }),
1826
+ i2 && /* @__PURE__ */ jsx(n$6, { onClick: i2, children: "View Insight" })
1827
+ ] });
1828
+ const w$2 = ({
1829
+ close: i2,
1830
+ action: o2,
1831
+ controlVideo: c2,
1832
+ data: { questionType: r2, question: t2, insight: d2, tweet: e2 }
1524
1833
  }) => {
1525
- const l = de[r];
1526
- return l ? /* @__PURE__ */ h(qs, { onClick: t, style: r === S.TWEET ? { paddingTop: "12px" } : {}, children: [
1527
- /* @__PURE__ */ s(
1528
- Us,
1834
+ const l2 = e$k[r2];
1835
+ return l2 ? /* @__PURE__ */ jsxs(p$7, { onClick: o2, style: r2 === QuestionType.TWEET ? { paddingTop: "12px" } : {}, children: [
1836
+ /* @__PURE__ */ jsx(
1837
+ t$9,
1529
1838
  {
1530
1839
  "data-a": "intr",
1531
- onClick: (d) => {
1532
- d.stopPropagation(), e && e(d);
1840
+ onClick: (p2) => {
1841
+ p2.stopPropagation(), i2 && i2(p2);
1533
1842
  },
1534
- children: /* @__PURE__ */ s(Ws, { name: "icon-cross" })
1843
+ children: /* @__PURE__ */ jsx(r$6, { name: "icon-cross" })
1535
1844
  }
1536
1845
  ),
1537
- r !== S.TWEET && /* @__PURE__ */ h(js, { children: [
1538
- /* @__PURE__ */ s(
1539
- Gs,
1846
+ r2 !== QuestionType.TWEET && /* @__PURE__ */ jsxs(l$8, { children: [
1847
+ /* @__PURE__ */ jsx(
1848
+ m$5,
1540
1849
  {
1541
- "data-type-trivia": r === S.TRIVIA,
1542
- "data-type-poll": r === S.POLL,
1543
- name: l.iconName
1850
+ "data-type-trivia": r2 === QuestionType.TRIVIA,
1851
+ "data-type-poll": r2 === QuestionType.POLL,
1852
+ name: l2.iconName
1544
1853
  }
1545
1854
  ),
1546
- /* @__PURE__ */ s(Qs, { children: l.label })
1855
+ /* @__PURE__ */ jsx(I$5, { children: l2.label })
1547
1856
  ] }),
1548
- r === S.FACTOID && o && /* @__PURE__ */ s(Bs, { ...o, action: t, controlVideo: n }),
1549
- r === S.TWEET && c && /* @__PURE__ */ s(sn, { ...c, action: t, controlVideo: n }),
1550
- r !== S.FACTOID && r !== S.TWEET && /* @__PURE__ */ h(R, { children: [
1551
- /* @__PURE__ */ s(Ks, { children: a == null ? void 0 : a.title }),
1552
- /* @__PURE__ */ s(Ys, { children: "Answer" })
1857
+ r2 === QuestionType.FACTOID && d2 && /* @__PURE__ */ jsx(V, { ...d2, action: o2, controlVideo: c2 }),
1858
+ r2 === QuestionType.TWEET && e2 && /* @__PURE__ */ jsx(s$3, { ...e2, action: o2, controlVideo: c2 }),
1859
+ r2 !== QuestionType.FACTOID && r2 !== QuestionType.TWEET && /* @__PURE__ */ jsxs(Fragment, { children: [
1860
+ /* @__PURE__ */ jsx(f$6, { children: t2 == null ? void 0 : t2.title }),
1861
+ /* @__PURE__ */ jsx(i$5, { children: "Answer" })
1553
1862
  ] })
1554
1863
  ] }) : null;
1555
- }, P = /* @__PURE__ */ i("div")({
1864
+ };
1865
+ const l$7 = /* @__PURE__ */ styled_default("div")({
1556
1866
  name: "BGWrap",
1557
1867
  class: "b1dqe0sz",
1558
- propsAsIs: !1
1559
- }), N = /* @__PURE__ */ i("div")({
1868
+ propsAsIs: false
1869
+ }), s$2 = /* @__PURE__ */ styled_default("div")({
1560
1870
  name: "BGLineBase",
1561
1871
  class: "b1v6w7ni",
1562
- propsAsIs: !1
1563
- }), nn = () => N, rn = /* @__PURE__ */ i(nn())({
1872
+ propsAsIs: false
1873
+ }), n$5 = () => s$2, m$4 = /* @__PURE__ */ styled_default(n$5())({
1564
1874
  name: "BGOneLineOne",
1565
1875
  class: "b2nqb1p",
1566
- propsAsIs: !0
1567
- }), an = () => N, on = /* @__PURE__ */ i(an())({
1876
+ propsAsIs: true
1877
+ }), o$8 = () => s$2, x$2 = /* @__PURE__ */ styled_default(o$8())({
1568
1878
  name: "BGOneLineTwo",
1569
1879
  class: "b1xxgmbk",
1570
- propsAsIs: !0
1571
- }), ln = () => N, cn = /* @__PURE__ */ i(ln())({
1880
+ propsAsIs: true
1881
+ }), r$5 = () => s$2, w$1 = /* @__PURE__ */ styled_default(r$5())({
1572
1882
  name: "BGOneLineThree",
1573
1883
  class: "b63lwcb",
1574
- propsAsIs: !0
1575
- }), dn = () => N, W2 = /* @__PURE__ */ i(dn())({
1884
+ propsAsIs: true
1885
+ }), p$6 = () => s$2, A$2 = /* @__PURE__ */ styled_default(p$6())({
1576
1886
  name: "BGTwoLineOne",
1577
1887
  class: "b2iah4",
1578
- propsAsIs: !0
1579
- }), pn = () => N, j2 = /* @__PURE__ */ i(pn())({
1888
+ propsAsIs: true
1889
+ }), t$7 = () => s$2, I$4 = /* @__PURE__ */ styled_default(t$7())({
1580
1890
  name: "BGTwoLineTwo",
1581
1891
  class: "b1xezvf6",
1582
- propsAsIs: !0
1583
- }), hn = () => N, Z2 = /* @__PURE__ */ i(hn())({
1892
+ propsAsIs: true
1893
+ }), c$5 = () => s$2, O = /* @__PURE__ */ styled_default(c$5())({
1584
1894
  name: "BGTwoLineThree",
1585
1895
  class: "b1jz1hg0",
1586
- propsAsIs: !0
1587
- }), un = () => N, G2 = /* @__PURE__ */ i(un())({
1896
+ propsAsIs: true
1897
+ }), a$3 = () => s$2, _$1 = /* @__PURE__ */ styled_default(a$3())({
1588
1898
  name: "BGThreeLineOne",
1589
1899
  class: "b18ho1tk",
1590
- propsAsIs: !0
1591
- }), mn = () => N, Q2 = /* @__PURE__ */ i(mn())({
1900
+ propsAsIs: true
1901
+ }), i$4 = () => s$2, F$2 = /* @__PURE__ */ styled_default(i$4())({
1592
1902
  name: "BGThreeLineTwo",
1593
1903
  class: "b14uvjfm",
1594
- propsAsIs: !0
1595
- }), vn = () => N, K2 = /* @__PURE__ */ i(vn())({
1904
+ propsAsIs: true
1905
+ }), B$1 = () => s$2, d$3 = /* @__PURE__ */ styled_default(B$1())({
1596
1906
  name: "BGThreeLineThree",
1597
1907
  class: "b11c3ns7",
1598
- propsAsIs: !0
1599
- }), Cn = () => N, Y2 = /* @__PURE__ */ i(Cn())({
1908
+ propsAsIs: true
1909
+ }), G$1 = () => s$2, v$2 = /* @__PURE__ */ styled_default(G$1())({
1600
1910
  name: "BGThreeLineFour",
1601
1911
  class: "b1bqhhet",
1602
- propsAsIs: !0
1603
- }), fn = () => N, gn = /* @__PURE__ */ i(fn())({
1912
+ propsAsIs: true
1913
+ }), L = () => s$2, f$5 = /* @__PURE__ */ styled_default(L())({
1604
1914
  name: "BGFourLineOne",
1605
1915
  class: "b1xyzi7o",
1606
- propsAsIs: !0
1607
- }), In = () => N, bn = /* @__PURE__ */ i(In())({
1916
+ propsAsIs: true
1917
+ }), T$1 = () => s$2, q = /* @__PURE__ */ styled_default(T$1())({
1608
1918
  name: "BGFourLineTwo",
1609
1919
  class: "byo0rup",
1610
- propsAsIs: !0
1611
- }), $n = () => N, An = /* @__PURE__ */ i($n())({
1920
+ propsAsIs: true
1921
+ }), u$1 = () => s$2, y$1 = /* @__PURE__ */ styled_default(u$1())({
1612
1922
  name: "BGFourLineThree",
1613
1923
  class: "b1oyiqgv",
1614
- propsAsIs: !0
1615
- }), yn = () => N, wn = /* @__PURE__ */ i(yn())({
1924
+ propsAsIs: true
1925
+ }), h = () => s$2, z$2 = /* @__PURE__ */ styled_default(h())({
1616
1926
  name: "BGFourLineFour",
1617
1927
  class: "bx3ddqw",
1618
- propsAsIs: !0
1619
- }), Ln = ({ step: e, correct: t }) => /* @__PURE__ */ h(R, { children: [
1620
- /* @__PURE__ */ h(P, { "data-active": e === 1, "data-first-screen": "true", children: [
1621
- /* @__PURE__ */ s(rn, {}),
1622
- /* @__PURE__ */ s(on, {}),
1623
- /* @__PURE__ */ s(cn, {})
1928
+ propsAsIs: true
1929
+ });
1930
+ const s$1 = ({ step: n2, correct: L2 }) => /* @__PURE__ */ jsxs(Fragment, { children: [
1931
+ /* @__PURE__ */ jsxs(l$7, { "data-active": n2 === 1, "data-first-screen": "true", children: [
1932
+ /* @__PURE__ */ jsx(m$4, {}),
1933
+ /* @__PURE__ */ jsx(x$2, {}),
1934
+ /* @__PURE__ */ jsx(w$1, {})
1624
1935
  ] }),
1625
- /* @__PURE__ */ h(P, { "data-active": e === 2, children: [
1626
- /* @__PURE__ */ s(W2, {}),
1627
- /* @__PURE__ */ s(j2, {}),
1628
- /* @__PURE__ */ s(Z2, {})
1936
+ /* @__PURE__ */ jsxs(l$7, { "data-active": n2 === 2, children: [
1937
+ /* @__PURE__ */ jsx(A$2, {}),
1938
+ /* @__PURE__ */ jsx(I$4, {}),
1939
+ /* @__PURE__ */ jsx(O, {})
1629
1940
  ] }),
1630
- /* @__PURE__ */ h(P, { "data-active": e === 3, children: [
1631
- /* @__PURE__ */ s(W2, {}),
1632
- /* @__PURE__ */ s(j2, {}),
1633
- /* @__PURE__ */ s(Z2, {})
1941
+ /* @__PURE__ */ jsxs(l$7, { "data-active": n2 === 3, children: [
1942
+ /* @__PURE__ */ jsx(A$2, {}),
1943
+ /* @__PURE__ */ jsx(I$4, {}),
1944
+ /* @__PURE__ */ jsx(O, {})
1634
1945
  ] }),
1635
- t ? /* @__PURE__ */ h(R, { children: [
1636
- /* @__PURE__ */ h(P, { "data-active": e === 4, "data-correct": "true", children: [
1637
- /* @__PURE__ */ s(G2, {}),
1638
- /* @__PURE__ */ s(Q2, {}),
1639
- /* @__PURE__ */ s(K2, {}),
1640
- /* @__PURE__ */ s(Y2, {})
1946
+ L2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
1947
+ /* @__PURE__ */ jsxs(l$7, { "data-active": n2 === 4, "data-correct": "true", children: [
1948
+ /* @__PURE__ */ jsx(_$1, {}),
1949
+ /* @__PURE__ */ jsx(F$2, {}),
1950
+ /* @__PURE__ */ jsx(d$3, {}),
1951
+ /* @__PURE__ */ jsx(v$2, {})
1641
1952
  ] }),
1642
- /* @__PURE__ */ h(P, { "data-active": e === 5, "data-correct": "true", children: [
1643
- /* @__PURE__ */ s(G2, {}),
1644
- /* @__PURE__ */ s(Q2, {}),
1645
- /* @__PURE__ */ s(K2, {}),
1646
- /* @__PURE__ */ s(Y2, {})
1953
+ /* @__PURE__ */ jsxs(l$7, { "data-active": n2 === 5, "data-correct": "true", children: [
1954
+ /* @__PURE__ */ jsx(_$1, {}),
1955
+ /* @__PURE__ */ jsx(F$2, {}),
1956
+ /* @__PURE__ */ jsx(d$3, {}),
1957
+ /* @__PURE__ */ jsx(v$2, {})
1647
1958
  ] })
1648
- ] }) : /* @__PURE__ */ h(P, { "data-active": e === 4, "data-correct": "false", children: [
1649
- /* @__PURE__ */ s(gn, {}),
1650
- /* @__PURE__ */ s(bn, {}),
1651
- /* @__PURE__ */ s(An, {}),
1652
- /* @__PURE__ */ s(wn, {})
1959
+ ] }) : /* @__PURE__ */ jsxs(l$7, { "data-active": n2 === 4, "data-correct": "false", children: [
1960
+ /* @__PURE__ */ jsx(f$5, {}),
1961
+ /* @__PURE__ */ jsx(q, {}),
1962
+ /* @__PURE__ */ jsx(y$1, {}),
1963
+ /* @__PURE__ */ jsx(z$2, {})
1653
1964
  ] })
1654
- ] }), kn = 118, _n = () => i2, Tn = /* @__PURE__ */ i(_n())({
1965
+ ] });
1966
+ const A$1 = 118, t$6 = () => f$c, f$4 = /* @__PURE__ */ styled_default(t$6())({
1655
1967
  name: "Container",
1656
1968
  class: "c10131zw",
1657
- propsAsIs: !0
1658
- }), Sn = /* @__PURE__ */ i("div")({
1969
+ propsAsIs: true
1970
+ }), C$1 = /* @__PURE__ */ styled_default("div")({
1659
1971
  name: "InnerContainer",
1660
1972
  class: "ir6k2eo",
1661
- propsAsIs: !1
1662
- }), q = /* @__PURE__ */ i("div")({
1973
+ propsAsIs: false
1974
+ }), b$2 = /* @__PURE__ */ styled_default("div")({
1663
1975
  name: "Content",
1664
1976
  class: "c1hwoq9l",
1665
- propsAsIs: !1
1666
- }), Z = /* @__PURE__ */ i("div")({
1977
+ propsAsIs: false
1978
+ }), c$4 = /* @__PURE__ */ styled_default("div")({
1667
1979
  name: "Title",
1668
1980
  class: "t4ujo4g",
1669
- propsAsIs: !1
1670
- }), Nn = () => Z, xn = /* @__PURE__ */ i(Nn())({
1981
+ propsAsIs: false
1982
+ }), r$4 = () => c$4, u = /* @__PURE__ */ styled_default(r$4())({
1671
1983
  name: "PointsTitle",
1672
1984
  class: "p1pjil1h",
1673
- propsAsIs: !0
1674
- }), J = /* @__PURE__ */ i("div")({
1985
+ propsAsIs: true
1986
+ }), v$1 = /* @__PURE__ */ styled_default("div")({
1675
1987
  name: "Subtitle",
1676
1988
  class: "s1iorwr9",
1677
- propsAsIs: !1
1678
- }), J2 = /* @__PURE__ */ i("div")({
1989
+ propsAsIs: false
1990
+ }), k$1 = /* @__PURE__ */ styled_default("div")({
1679
1991
  name: "SubtitleFG",
1680
1992
  class: "s51sv9d",
1681
- propsAsIs: !1
1682
- }), X = /* @__PURE__ */ i("div")({
1993
+ propsAsIs: false
1994
+ }), x$1 = /* @__PURE__ */ styled_default("div")({
1683
1995
  name: "AnswerText",
1684
1996
  class: "a1lbk2ye",
1685
- propsAsIs: !1
1686
- }), Rn = () => _, Ie = /* @__PURE__ */ i(Rn())({
1997
+ propsAsIs: false
1998
+ }), a$2 = () => B1, o$7 = /* @__PURE__ */ styled_default(a$2())({
1687
1999
  name: "FeedbackIcon",
1688
2000
  class: "frcvk3t",
1689
- propsAsIs: !0
1690
- }), En = () => Ie, X2 = /* @__PURE__ */ i(En())({
2001
+ propsAsIs: true
2002
+ }), p$5 = () => o$7, T = /* @__PURE__ */ styled_default(p$5())({
1691
2003
  name: "FeedbackIconCorrect",
1692
2004
  class: "f33p82r",
1693
- propsAsIs: !0
1694
- }), Vn = () => Ie, Hn = /* @__PURE__ */ i(Vn())({
2005
+ propsAsIs: true
2006
+ }), l$6 = () => o$7, F$1 = /* @__PURE__ */ styled_default(l$6())({
1695
2007
  name: "FeedbackIconIncorrect",
1696
2008
  class: "f12r9net",
1697
- propsAsIs: !0
1698
- }), ee = /* @__PURE__ */ i("div")({
2009
+ propsAsIs: true
2010
+ }), _ = /* @__PURE__ */ styled_default("div")({
1699
2011
  name: "CloseIconWrap",
1700
2012
  class: "c1fw6699",
1701
- propsAsIs: !1
1702
- }), zn = () => _, te = /* @__PURE__ */ i(zn())({
2013
+ propsAsIs: false
2014
+ }), I$3 = () => B1, w = /* @__PURE__ */ styled_default(I$3())({
1703
2015
  name: "CloseIcon",
1704
2016
  class: "c115o126",
1705
- propsAsIs: !0
1706
- }), Mn = "data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e", On = "data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Dn = (e, t, n) => e === t ? "translateY(0px)" : e > t ? `translateY(${n}px)` : "translateY(-100%)", Fn = ({ close: e, votedAnswer: t, mastersApp: n, correct: r, correctAnswerTitle: a, questionTitle: o, saveHeight: c, style: l, hiding: d }) => {
1707
- const [u, v] = L(1), m = V({});
1708
- y(() => {
1709
- const I = setInterval(() => {
1710
- v((f) => r && f > 4 || !r && f > 3 ? f : ++f);
2017
+ propsAsIs: true
2018
+ });
2019
+ const E = "data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e", R = "data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", W = (s2, i2, L2) => s2 === i2 ? "translateY(0px)" : s2 > i2 ? `translateY(${L2}px)` : "translateY(-100%)", D$1 = ({ close: s2, votedAnswer: i2, mastersApp: L2, correct: a2, correctAnswerTitle: w$12, questionTitle: k2, saveHeight: u$12, style: n2, hiding: x2 }) => {
2020
+ const [c2, b2] = useState(1), H = useRef({});
2021
+ useEffect(() => {
2022
+ const l2 = setInterval(() => {
2023
+ b2((e2) => a2 && e2 > 4 || !a2 && e2 > 3 ? e2 : ++e2);
1711
2024
  }, 3e3);
1712
- return () => clearInterval(I);
1713
- }, [r]), y(() => {
1714
- var I, f;
1715
- m.current[u] && c(((f = (I = m.current[u]) == null ? void 0 : I.getBoundingClientRect()) == null ? void 0 : f.height) || kn);
1716
- }, [u, c]);
1717
- const p = (I) => (f) => {
1718
- m.current && (m.current[I] = f);
1719
- }, C = (I) => ({ transform: Dn(I, u, l.height) }), g = { ...l };
1720
- return n && g.height && typeof g.height == "number" && (g.height += 32), /* @__PURE__ */ s(Tn, { style: l.height ? g : { ...l, paddingTop: 0, paddingBottom: 0 }, hiding: d, children: /* @__PURE__ */ h(
1721
- Sn,
2025
+ return () => clearInterval(l2);
2026
+ }, [a2]), useEffect(() => {
2027
+ var l2, e2;
2028
+ H.current[c2] && u$12(((e2 = (l2 = H.current[c2]) == null ? void 0 : l2.getBoundingClientRect()) == null ? void 0 : e2.height) || A$1);
2029
+ }, [c2, u$12]);
2030
+ const r2 = (l2) => (e2) => {
2031
+ H.current && (H.current[l2] = e2);
2032
+ }, h2 = (l2) => ({ transform: W(l2, c2, n2.height) }), V2 = { ...n2 };
2033
+ return L2 && V2.height && typeof V2.height == "number" && (V2.height += 32), /* @__PURE__ */ jsx(f$4, { style: n2.height ? V2 : { ...n2, paddingTop: 0, paddingBottom: 0 }, hiding: x2, children: /* @__PURE__ */ jsxs(
2034
+ C$1,
1722
2035
  {
1723
2036
  style: {
1724
- height: l.height,
1725
- minHeight: l.height,
1726
- backgroundColor: u > 3 ? r ? "var(--color-sdk-prediction-result-success-bg)" : "var(--color-sdk-prediction-result-incorrect-bg)" : "var(--color-primary-1)"
2037
+ height: n2.height,
2038
+ minHeight: n2.height,
2039
+ backgroundColor: c2 > 3 ? a2 ? "var(--color-sdk-prediction-result-success-bg)" : "var(--color-sdk-prediction-result-incorrect-bg)" : "var(--color-primary-1)"
1727
2040
  },
1728
2041
  children: [
1729
- /* @__PURE__ */ s(Ln, { step: u, correct: r }),
1730
- n && /* @__PURE__ */ h(q, { ref: p(1), style: C(1), children: [
1731
- /* @__PURE__ */ s("img", { alt: "sponsor-logo", src: Mn }),
1732
- /* @__PURE__ */ s(J2, { children: "Featured Groups +" })
2042
+ /* @__PURE__ */ jsx(s$1, { step: c2, correct: a2 }),
2043
+ L2 && /* @__PURE__ */ jsxs(b$2, { ref: r2(1), style: h2(1), children: [
2044
+ /* @__PURE__ */ jsx("img", { alt: "sponsor-logo", src: E }),
2045
+ /* @__PURE__ */ jsx(k$1, { children: "Featured Groups +" })
1733
2046
  ] }),
1734
- !n && /* @__PURE__ */ s(q, { ref: p(1), style: C(1), children: /* @__PURE__ */ s("img", { alt: "sponsor-logo", src: On }) }),
1735
- /* @__PURE__ */ h(q, { ref: p(2), style: C(2), children: [
1736
- /* @__PURE__ */ s(Z, { children: "Prediction results are in!" }),
1737
- n && /* @__PURE__ */ s(J2, { children: "Featured Groups +" })
2047
+ !L2 && /* @__PURE__ */ jsx(b$2, { ref: r2(1), style: h2(1), children: /* @__PURE__ */ jsx("img", { alt: "sponsor-logo", src: R }) }),
2048
+ /* @__PURE__ */ jsxs(b$2, { ref: r2(2), style: h2(2), children: [
2049
+ /* @__PURE__ */ jsx(c$4, { children: "Prediction results are in!" }),
2050
+ L2 && /* @__PURE__ */ jsx(k$1, { children: "Featured Groups +" })
1738
2051
  ] }),
1739
- /* @__PURE__ */ h(q, { ref: p(3), style: C(3), children: [
1740
- /* @__PURE__ */ s(Z, { children: o }),
1741
- /* @__PURE__ */ s(J, { children: /* @__PURE__ */ h(X, { children: [
1742
- /* @__PURE__ */ s("span", { children: "Your Pick:" }),
2052
+ /* @__PURE__ */ jsxs(b$2, { ref: r2(3), style: h2(3), children: [
2053
+ /* @__PURE__ */ jsx(c$4, { children: k2 }),
2054
+ /* @__PURE__ */ jsx(v$1, { children: /* @__PURE__ */ jsxs(x$1, { children: [
2055
+ /* @__PURE__ */ jsx("span", { children: "Your Pick:" }),
1743
2056
  " ",
1744
- t == null ? void 0 : t.title
2057
+ i2 == null ? void 0 : i2.title
1745
2058
  ] }) })
1746
2059
  ] }),
1747
- r ? /* @__PURE__ */ h(R, { children: [
1748
- /* @__PURE__ */ h(
1749
- q,
2060
+ a2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
2061
+ /* @__PURE__ */ jsxs(
2062
+ b$2,
1750
2063
  {
1751
- ref: p(4),
1752
- style: { ...C(4), color: "var(--color-sdk-prediction-result-success-text)" },
2064
+ ref: r2(4),
2065
+ style: { ...h2(4), color: "var(--color-sdk-prediction-result-success-text)" },
1753
2066
  children: [
1754
- /* @__PURE__ */ h(Z, { children: [
2067
+ /* @__PURE__ */ jsxs(c$4, { children: [
1755
2068
  "Congratulations!",
1756
- /* @__PURE__ */ s("br", {}),
2069
+ /* @__PURE__ */ jsx("br", {}),
1757
2070
  "You answered correctly."
1758
2071
  ] }),
1759
- /* @__PURE__ */ h(J, { children: [
1760
- /* @__PURE__ */ s(X2, { name: "selected" }),
1761
- /* @__PURE__ */ h(X, { children: [
1762
- /* @__PURE__ */ s("span", { children: "Your Pick:" }),
2072
+ /* @__PURE__ */ jsxs(v$1, { children: [
2073
+ /* @__PURE__ */ jsx(T, { name: "selected" }),
2074
+ /* @__PURE__ */ jsxs(x$1, { children: [
2075
+ /* @__PURE__ */ jsx("span", { children: "Your Pick:" }),
1763
2076
  " ",
1764
- t == null ? void 0 : t.title
2077
+ i2 == null ? void 0 : i2.title
1765
2078
  ] })
1766
2079
  ] })
1767
2080
  ]
1768
2081
  }
1769
2082
  ),
1770
- /* @__PURE__ */ h(
1771
- q,
2083
+ /* @__PURE__ */ jsxs(
2084
+ b$2,
1772
2085
  {
1773
- ref: p(5),
1774
- style: { ...C(5), color: "var(--color-sdk-prediction-result-success-text)" },
2086
+ ref: r2(5),
2087
+ style: { ...h2(5), color: "var(--color-sdk-prediction-result-success-text)" },
1775
2088
  children: [
1776
- /* @__PURE__ */ s(xn, { children: u === 5 && /* @__PURE__ */ s(c0, { delay: 0.5, prefix: "+", suffix: " points", value: t == null ? void 0 : t.points }) }),
1777
- /* @__PURE__ */ h(J, { children: [
1778
- /* @__PURE__ */ s(X2, { name: "selected" }),
1779
- /* @__PURE__ */ h(X, { children: [
1780
- /* @__PURE__ */ s("span", { children: "Your Pick:" }),
2089
+ /* @__PURE__ */ jsx(u, { children: c2 === 5 && /* @__PURE__ */ jsx(d$a, { delay: 0.5, prefix: "+", suffix: " points", value: i2 == null ? void 0 : i2.points }) }),
2090
+ /* @__PURE__ */ jsxs(v$1, { children: [
2091
+ /* @__PURE__ */ jsx(T, { name: "selected" }),
2092
+ /* @__PURE__ */ jsxs(x$1, { children: [
2093
+ /* @__PURE__ */ jsx("span", { children: "Your Pick:" }),
1781
2094
  " ",
1782
- t == null ? void 0 : t.title
2095
+ i2 == null ? void 0 : i2.title
1783
2096
  ] })
1784
2097
  ] }),
1785
- /* @__PURE__ */ s(ee, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ s(te, { name: "icon-cross" }) })
2098
+ /* @__PURE__ */ jsx(_, { "data-a": "intr", onClick: s2, children: /* @__PURE__ */ jsx(w, { name: "icon-cross" }) })
1786
2099
  ]
1787
2100
  }
1788
2101
  )
1789
- ] }) : /* @__PURE__ */ h(q, { ref: p(4), style: C(4), children: [
1790
- /* @__PURE__ */ h(Z, { style: { color: "var(--color-sdk-prediction-result-error-title)" }, children: [
2102
+ ] }) : /* @__PURE__ */ jsxs(b$2, { ref: r2(4), style: h2(4), children: [
2103
+ /* @__PURE__ */ jsxs(c$4, { style: { color: "var(--color-sdk-prediction-result-error-title)" }, children: [
1791
2104
  "Better luck next time!",
1792
- /* @__PURE__ */ s("br", {}),
2105
+ /* @__PURE__ */ jsx("br", {}),
1793
2106
  "Correct: ",
1794
- a,
2107
+ w$12,
1795
2108
  "."
1796
2109
  ] }),
1797
- /* @__PURE__ */ h(J, { style: { color: "var(--color-sdk-prediction-result-error-subtitle)" }, children: [
1798
- /* @__PURE__ */ s(Hn, { name: "circleClose" }),
1799
- /* @__PURE__ */ h(X, { children: [
1800
- /* @__PURE__ */ s("span", { children: "Your Pick:" }),
2110
+ /* @__PURE__ */ jsxs(v$1, { style: { color: "var(--color-sdk-prediction-result-error-subtitle)" }, children: [
2111
+ /* @__PURE__ */ jsx(F$1, { name: "circleClose" }),
2112
+ /* @__PURE__ */ jsxs(x$1, { children: [
2113
+ /* @__PURE__ */ jsx("span", { children: "Your Pick:" }),
1801
2114
  " ",
1802
- t == null ? void 0 : t.title
2115
+ i2 == null ? void 0 : i2.title
1803
2116
  ] })
1804
2117
  ] }),
1805
- /* @__PURE__ */ s(ee, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ s(te, { name: "icon-cross" }) })
2118
+ /* @__PURE__ */ jsx(_, { "data-a": "intr", onClick: s2, children: /* @__PURE__ */ jsx(w, { name: "icon-cross" }) })
1806
2119
  ] })
1807
2120
  ]
1808
2121
  }
1809
2122
  ) });
1810
- }, Bn = (e) => {
1811
- const [t, n] = L(!1), [r, a] = L(!1), o = V(null), c = U(() => {
1812
- a(!0), o.current && clearTimeout(o.current), o.current = setTimeout(() => {
1813
- a(!1);
2123
+ };
2124
+ const I$2 = (e2) => {
2125
+ const [i2, r2] = useState(false), [f2, s2] = useState(false), t2 = useRef(null), a2 = useCallback(() => {
2126
+ s2(true), t2.current && clearTimeout(t2.current), t2.current = setTimeout(() => {
2127
+ s2(false);
1814
2128
  }, 1e3);
1815
- }, []), l = U(async (d) => {
1816
- n(!0);
1817
- const u = d.map(
1818
- (v) => new Promise((m, p) => {
1819
- const C = new Image();
1820
- C.onload = () => m(v), C.onerror = () => p(), C.src = v;
2129
+ }, []), l2 = useCallback(async (m2) => {
2130
+ r2(true);
2131
+ const d2 = m2.map(
2132
+ (n2) => new Promise((g2, h2) => {
2133
+ const o2 = new Image();
2134
+ o2.onload = () => g2(n2), o2.onerror = () => h2(), o2.src = n2;
1821
2135
  })
1822
2136
  );
1823
- await Promise.allSettled(u), n(!1);
2137
+ await Promise.allSettled(d2), r2(false);
1824
2138
  }, []);
1825
- return y(() => {
1826
- e && (c(), l(e));
1827
- }, [e, c, l]), { loading: t, throttled: r };
1828
- }, qn = /* @__PURE__ */ i("div")({
2139
+ return useEffect(() => {
2140
+ e2 && (a2(), l2(e2));
2141
+ }, [e2, a2, l2]), { loading: i2, throttled: f2 };
2142
+ };
2143
+ const e$6 = /* @__PURE__ */ styled_default("div")({
1829
2144
  name: "Container",
1830
2145
  class: "cl51m2q",
1831
- propsAsIs: !1
1832
- }), Un = /* @__PURE__ */ i("img")({
2146
+ propsAsIs: false
2147
+ }), n$4 = /* @__PURE__ */ styled_default("img")({
1833
2148
  name: "Avatar",
1834
2149
  class: "a2yhhhr",
1835
- propsAsIs: !1
1836
- }), Pn = /* @__PURE__ */ i("div")({
2150
+ propsAsIs: false
2151
+ }), t$5 = /* @__PURE__ */ styled_default("div")({
1837
2152
  name: "AvatarPlaceholder",
1838
2153
  class: "a1dtxxlr",
1839
- propsAsIs: !1
1840
- }), Wn = /* @__PURE__ */ i("div")({
2154
+ propsAsIs: false
2155
+ }), l$5 = /* @__PURE__ */ styled_default("div")({
1841
2156
  name: "Content",
1842
2157
  class: "c12clm3w",
1843
- propsAsIs: !1
1844
- }), jn = /* @__PURE__ */ i("span")({
2158
+ propsAsIs: false
2159
+ }), o$6 = /* @__PURE__ */ styled_default("span")({
1845
2160
  name: "Name",
1846
2161
  class: "n14lctn7",
1847
- propsAsIs: !1
1848
- }), Zn = ({ avatar: e, name: t }) => /* @__PURE__ */ h(qn, { children: [
1849
- e && /* @__PURE__ */ s(Un, { src: e }),
1850
- !e && /* @__PURE__ */ s(Pn, { children: m2(t || "") }),
1851
- /* @__PURE__ */ h(Wn, { children: [
1852
- /* @__PURE__ */ h(jn, { children: [
1853
- t,
2162
+ propsAsIs: false
2163
+ });
2164
+ const p$4 = ({ avatar: r2, name: e2 }) => /* @__PURE__ */ jsxs(e$6, { children: [
2165
+ r2 && /* @__PURE__ */ jsx(n$4, { src: r2 }),
2166
+ !r2 && /* @__PURE__ */ jsx(t$5, { children: I$a(e2 || "") }),
2167
+ /* @__PURE__ */ jsxs(l$5, { children: [
2168
+ /* @__PURE__ */ jsxs(o$6, { children: [
2169
+ e2,
1854
2170
  " "
1855
2171
  ] }),
1856
2172
  "is waiting for you!"
1857
2173
  ] })
1858
- ] }), Gn = /* @__PURE__ */ i("div")({
2174
+ ] });
2175
+ const n$3 = /* @__PURE__ */ styled_default("div")({
1859
2176
  name: "Container",
1860
2177
  class: "c1htq1lb",
1861
- propsAsIs: !1
1862
- }), Qn = /* @__PURE__ */ i("div")({
2178
+ propsAsIs: false
2179
+ }), e$5 = /* @__PURE__ */ styled_default("div")({
1863
2180
  name: "Graphic",
1864
2181
  class: "gjyzpp7",
1865
- propsAsIs: !1
1866
- }), Kn = /* @__PURE__ */ i("img")({
2182
+ propsAsIs: false
2183
+ }), p$3 = /* @__PURE__ */ styled_default("img")({
1867
2184
  name: "GraphicImage",
1868
2185
  class: "g16mldgz",
1869
- propsAsIs: !1
1870
- }), Yn = /* @__PURE__ */ i("div")({
2186
+ propsAsIs: false
2187
+ }), o$5 = /* @__PURE__ */ styled_default("div")({
1871
2188
  name: "Headline",
1872
2189
  class: "h69js65",
1873
- propsAsIs: !1
1874
- }), Jn = /* @__PURE__ */ i("div")({
2190
+ propsAsIs: false
2191
+ }), t$4 = /* @__PURE__ */ styled_default("div")({
1875
2192
  name: "TaglineContainer",
1876
2193
  class: "tmm7qmo",
1877
- propsAsIs: !1
1878
- }), Xn = /* @__PURE__ */ i("div")({
2194
+ propsAsIs: false
2195
+ }), i$3 = /* @__PURE__ */ styled_default("div")({
1879
2196
  name: "Tagline",
1880
2197
  class: "t17knuw2",
1881
- propsAsIs: !1
1882
- }), ei = /* @__PURE__ */ i("div")({
2198
+ propsAsIs: false
2199
+ }), l$4 = /* @__PURE__ */ styled_default("div")({
1883
2200
  name: "Content",
1884
2201
  class: "c1b74psg",
1885
- propsAsIs: !1
1886
- }), ti = /* @__PURE__ */ i("div")({
2202
+ propsAsIs: false
2203
+ }), r$3 = /* @__PURE__ */ styled_default("div")({
1887
2204
  name: "StepsContainer",
1888
2205
  class: "s1y99ug7",
1889
- propsAsIs: !1
1890
- }), si = /* @__PURE__ */ i("span")({
2206
+ propsAsIs: false
2207
+ }), c$3 = /* @__PURE__ */ styled_default("span")({
1891
2208
  name: "StepIndicator",
1892
2209
  class: "sgf3v5n",
1893
- propsAsIs: !1
1894
- }), ni = /* @__PURE__ */ i("div")({
2210
+ propsAsIs: false
2211
+ }), m$3 = /* @__PURE__ */ styled_default("div")({
1895
2212
  name: "InvitingUserWrap",
1896
2213
  class: "i1sj6gn8",
1897
- propsAsIs: !1
1898
- }), ii = ({
1899
- loading: e,
1900
- steps: t,
1901
- currentStep: n,
1902
- inviterName: r
2214
+ propsAsIs: false
2215
+ });
2216
+ const k = ({
2217
+ loading: e2,
2218
+ steps: a2,
2219
+ currentStep: i2,
2220
+ inviterName: l2
1903
2221
  }) => {
1904
- const { headline: a, tagline: o } = t[n];
1905
- return /* @__PURE__ */ h(Gn, { children: [
1906
- o && /* @__PURE__ */ s(Jn, { children: /* @__PURE__ */ s(O, { loading: e, children: /* @__PURE__ */ s(Xn, { children: o }) }) }),
1907
- /* @__PURE__ */ h(ei, { "data-welcome-screen": n === 0, children: [
1908
- /* @__PURE__ */ s(Qn, { children: /* @__PURE__ */ s(O, { loading: e, children: t.map(({ graphicSrc: c }, l) => /* @__PURE__ */ s(Kn, { src: c, "data-active": n === l })) }) }),
1909
- a && /* @__PURE__ */ s(O, { loading: e, children: /* @__PURE__ */ s(Yn, { children: a }) })
2222
+ const { headline: c2, tagline: o2 } = a2[i2];
2223
+ return /* @__PURE__ */ jsxs(n$3, { children: [
2224
+ o2 && /* @__PURE__ */ jsx(t$4, { children: /* @__PURE__ */ jsx(i$f, { loading: e2, children: /* @__PURE__ */ jsx(i$3, { children: o2 }) }) }),
2225
+ /* @__PURE__ */ jsxs(l$4, { "data-welcome-screen": i2 === 0, children: [
2226
+ /* @__PURE__ */ jsx(e$5, { children: /* @__PURE__ */ jsx(i$f, { loading: e2, children: a2.map(({ graphicSrc: d2 }, r2) => /* @__PURE__ */ jsx(p$3, { src: d2, "data-active": i2 === r2 })) }) }),
2227
+ c2 && /* @__PURE__ */ jsx(i$f, { loading: e2, children: /* @__PURE__ */ jsx(o$5, { children: c2 }) })
1910
2228
  ] }),
1911
- r && n === 0 && /* @__PURE__ */ s(ni, { children: /* @__PURE__ */ s(Zn, { name: r }) }),
1912
- /* @__PURE__ */ s(ti, { style: e ? { visibility: "hidden" } : {}, children: Array.from({ length: t.length }).map((c, l) => /* @__PURE__ */ s(si, { "data-active": n === l }, l)) })
2229
+ l2 && i2 === 0 && /* @__PURE__ */ jsx(m$3, { children: /* @__PURE__ */ jsx(p$4, { name: l2 }) }),
2230
+ /* @__PURE__ */ jsx(r$3, { style: e2 ? { visibility: "hidden" } : {}, children: Array.from({ length: a2.length }).map((d2, r2) => /* @__PURE__ */ jsx(c$3, { "data-active": i2 === r2 }, r2)) })
1913
2231
  ] });
1914
- }, ri = /* @__PURE__ */ i("div")({
2232
+ };
2233
+ const t$3 = /* @__PURE__ */ styled_default("div")({
1915
2234
  name: "Container",
1916
2235
  class: "cm0bev",
1917
- propsAsIs: !1
1918
- }), ai = /* @__PURE__ */ i("div")({
2236
+ propsAsIs: false
2237
+ }), l$3 = /* @__PURE__ */ styled_default("div")({
1919
2238
  name: "Content",
1920
2239
  class: "ce7x737",
1921
- propsAsIs: !1
1922
- }), oi = /* @__PURE__ */ i("div")({
2240
+ propsAsIs: false
2241
+ }), n$2 = /* @__PURE__ */ styled_default("div")({
1923
2242
  name: "Title",
1924
2243
  class: "tc2tor6",
1925
- propsAsIs: !1
1926
- }), li = /* @__PURE__ */ i("div")({
2244
+ propsAsIs: false
2245
+ }), o$4 = /* @__PURE__ */ styled_default("div")({
1927
2246
  name: "RulesList",
1928
2247
  class: "r1k5klql",
1929
- propsAsIs: !1
1930
- }), ci = /* @__PURE__ */ i("div")({
2248
+ propsAsIs: false
2249
+ }), a$1 = /* @__PURE__ */ styled_default("div")({
1931
2250
  name: "RulesItem",
1932
2251
  class: "r1tf3ft2",
1933
- propsAsIs: !1
1934
- }), di = /* @__PURE__ */ i("div")({
2252
+ propsAsIs: false
2253
+ }), c$2 = /* @__PURE__ */ styled_default("div")({
1935
2254
  name: "RuleIcon",
1936
2255
  class: "rwpvg1k",
1937
- propsAsIs: !1
1938
- }), pi = /* @__PURE__ */ i("div")({
2256
+ propsAsIs: false
2257
+ }), r$2 = /* @__PURE__ */ styled_default("div")({
1939
2258
  name: "RuleText",
1940
2259
  class: "rbxiag0",
1941
- propsAsIs: !1
1942
- }), hi = /* @__PURE__ */ i("button")({
2260
+ propsAsIs: false
2261
+ }), p$2 = /* @__PURE__ */ styled_default("button")({
1943
2262
  name: "TermsButton",
1944
2263
  class: "t6cyrry",
1945
- propsAsIs: !1
1946
- }), ui = ({
1947
- rules: e,
1948
- rulesTitle: t,
1949
- termsText: n,
1950
- primaryColor: r,
1951
- openTerms: a
1952
- }) => /* @__PURE__ */ h(ri, { children: [
1953
- /* @__PURE__ */ h(ai, { children: [
1954
- /* @__PURE__ */ s(oi, { children: t }),
1955
- /* @__PURE__ */ s(li, { children: e == null ? void 0 : e.map(({ label: o, icon: c }, l) => /* @__PURE__ */ h(ci, { children: [
1956
- c && /* @__PURE__ */ s(di, { style: { backgroundColor: r }, children: /* @__PURE__ */ s(_, { name: c, "data-icon": c }) }),
1957
- /* @__PURE__ */ s(pi, { children: o })
1958
- ] }, l)) })
2264
+ propsAsIs: false
2265
+ });
2266
+ const b$1 = ({
2267
+ rules: e2,
2268
+ rulesTitle: o2,
2269
+ termsText: i2,
2270
+ primaryColor: d2,
2271
+ openTerms: l2
2272
+ }) => /* @__PURE__ */ jsxs(t$3, { children: [
2273
+ /* @__PURE__ */ jsxs(l$3, { children: [
2274
+ /* @__PURE__ */ jsx(n$2, { children: o2 }),
2275
+ /* @__PURE__ */ jsx(o$4, { children: e2 == null ? void 0 : e2.map(({ label: c2, icon: r2 }, a2) => /* @__PURE__ */ jsxs(a$1, { children: [
2276
+ r2 && /* @__PURE__ */ jsx(c$2, { style: { backgroundColor: d2 }, children: /* @__PURE__ */ jsx(B1, { name: r2, "data-icon": r2 }) }),
2277
+ /* @__PURE__ */ jsx(r$2, { children: c2 })
2278
+ ] }, a2)) })
1959
2279
  ] }),
1960
- n && /* @__PURE__ */ s(hi, { "data-a": "intr", onClick: a, children: "See Terms and Conditions" })
1961
- ] }), mi = /* @__PURE__ */ i("div")({
2280
+ i2 && /* @__PURE__ */ jsx(p$2, { "data-a": "intr", onClick: l2, children: "See Terms and Conditions" })
2281
+ ] });
2282
+ const t$2 = /* @__PURE__ */ styled_default("div")({
1962
2283
  name: "Container",
1963
2284
  class: "cj0g35h",
1964
- propsAsIs: !1
1965
- }), vi = /* @__PURE__ */ i("div")({
2285
+ propsAsIs: false
2286
+ }), e$4 = /* @__PURE__ */ styled_default("div")({
1966
2287
  name: "Content",
1967
2288
  class: "c1xkhrbn",
1968
- propsAsIs: !1
1969
- }), Ci = /* @__PURE__ */ i("div")({
2289
+ propsAsIs: false
2290
+ }), o$3 = /* @__PURE__ */ styled_default("div")({
1970
2291
  name: "Title",
1971
2292
  class: "tifzb8b",
1972
- propsAsIs: !1
1973
- }), fi = /* @__PURE__ */ i("div")({
2293
+ propsAsIs: false
2294
+ }), l$2 = /* @__PURE__ */ styled_default("div")({
1974
2295
  name: "ScrollingText",
1975
2296
  class: "stduw5c",
1976
- propsAsIs: !1
1977
- }), gi = ({ termsTitle: e, termsText: t }) => /* @__PURE__ */ s(mi, { children: /* @__PURE__ */ h(vi, { children: [
1978
- /* @__PURE__ */ s(Ci, { children: e }),
1979
- /* @__PURE__ */ s(fi, { children: t })
1980
- ] }) }), Ii = /* @__PURE__ */ i("button")({
2297
+ propsAsIs: false
2298
+ });
2299
+ const s = ({ termsTitle: n2, termsText: e2 }) => /* @__PURE__ */ jsx(t$2, { children: /* @__PURE__ */ jsxs(e$4, { children: [
2300
+ /* @__PURE__ */ jsx(o$3, { children: n2 }),
2301
+ /* @__PURE__ */ jsx(l$2, { children: e2 })
2302
+ ] }) });
2303
+ const o$2 = /* @__PURE__ */ styled_default("button")({
1981
2304
  name: "SButton",
1982
2305
  class: "s1nve60q",
1983
- propsAsIs: !1
1984
- }), bi = /* @__PURE__ */ i("span")({
2306
+ propsAsIs: false
2307
+ }), n$1 = /* @__PURE__ */ styled_default("span")({
1985
2308
  name: "ButtonLabel",
1986
2309
  class: "b1xoswwx",
1987
- propsAsIs: !1
1988
- }), $i = ({ disabled: e, variant: t = "primary", onClick: n, children: r, ...a }) => /* @__PURE__ */ s(Ii, { "data-a": "intr", onClick: n, disabled: e, "data-variant": t, ...a, children: /* @__PURE__ */ s(bi, { children: r }) }), Ai = /* @__PURE__ */ i("div")({
2310
+ propsAsIs: false
2311
+ });
2312
+ const d$2 = ({ disabled: r2, variant: a2 = "primary", onClick: o2, children: n2, ...i2 }) => /* @__PURE__ */ jsx(o$2, { "data-a": "intr", onClick: o2, disabled: r2, "data-variant": a2, ...i2, children: /* @__PURE__ */ jsx(n$1, { children: n2 }) });
2313
+ const i$2 = /* @__PURE__ */ styled_default("div")({
1989
2314
  name: "Container",
1990
2315
  class: "c18uddbs",
1991
- propsAsIs: !1
1992
- }), yi = /* @__PURE__ */ i("div")({
2316
+ propsAsIs: false
2317
+ }), p$1 = /* @__PURE__ */ styled_default("div")({
1993
2318
  name: "Content",
1994
2319
  class: "cvcfjf6",
1995
- propsAsIs: !1
1996
- }), wi = /* @__PURE__ */ i("div")({
2320
+ propsAsIs: false
2321
+ }), l$1 = /* @__PURE__ */ styled_default("div")({
1997
2322
  name: "OnboardingHeader",
1998
2323
  class: "o1ie27lw",
1999
- propsAsIs: !1
2000
- }), Li = /* @__PURE__ */ i("button")({
2324
+ propsAsIs: false
2325
+ }), d$1 = /* @__PURE__ */ styled_default("button")({
2001
2326
  name: "CloseBtn",
2002
2327
  class: "c15cjkwi",
2003
- propsAsIs: !1
2004
- }), ki = () => _, _i = /* @__PURE__ */ i(ki())({
2328
+ propsAsIs: false
2329
+ }), t$1 = () => B1, m$2 = /* @__PURE__ */ styled_default(t$1())({
2005
2330
  name: "IconClose",
2006
2331
  class: "i1mavjt2",
2007
- propsAsIs: !0
2008
- }), Ti = /* @__PURE__ */ i("div")({
2332
+ propsAsIs: true
2333
+ }), f$3 = /* @__PURE__ */ styled_default("div")({
2009
2334
  name: "OnboardingFooter",
2010
2335
  class: "o1x0dyzv",
2011
- propsAsIs: !1
2012
- }), Si = () => $i, Ni = /* @__PURE__ */ i(Si())({
2336
+ propsAsIs: false
2337
+ }), e$3 = () => d$2, I$1 = /* @__PURE__ */ styled_default(e$3())({
2013
2338
  name: "OnboardingActionBtn",
2014
2339
  class: "o1jfi9c3",
2015
- propsAsIs: !0
2016
- }), W = {
2017
- steps: !1,
2018
- rules: !1,
2019
- inviteCard: !1
2020
- }, xi = ({
2021
- gamification: e,
2022
- steps: t,
2023
- rules: n,
2024
- rulesBtnLabel: r,
2025
- rulesTitle: a,
2026
- termsTitle: o,
2027
- termsText: c,
2028
- primaryColor: l,
2029
- inviteLink: d,
2030
- inviteCardTitle: u,
2031
- inviteCardSubtext: v,
2032
- inviteCardBtnLabel: m,
2033
- loading: p,
2034
- inviterName: C,
2035
- sdk: g,
2036
- onClose: I
2340
+ propsAsIs: true
2341
+ });
2342
+ const o$1 = {
2343
+ steps: false,
2344
+ rules: false,
2345
+ inviteCard: false
2346
+ }, tn = ({
2347
+ gamification: I2,
2348
+ steps: n2,
2349
+ rules: t2,
2350
+ rulesBtnLabel: c2,
2351
+ rulesTitle: T2,
2352
+ termsTitle: x2,
2353
+ termsText: u2,
2354
+ primaryColor: g2,
2355
+ inviteLink: D2,
2356
+ inviteCardTitle: k$12,
2357
+ inviteCardSubtext: w2,
2358
+ inviteCardBtnLabel: b2,
2359
+ loading: d2,
2360
+ inviterName: f2,
2361
+ sdk: C2,
2362
+ onClose: A2
2037
2363
  }) => {
2038
- const [f, $] = L(0), [b, k] = L(!1), [w, x] = L(W);
2039
- y(() => {
2040
- t != null && t.length ? x({ ...W, steps: !0 }) : n != null && n.length ? x({ ...W, rules: !0 }) : x({ ...W, inviteCard: !0 });
2364
+ const [a2, O2] = useState(0), [l2, S2] = useState(false), [e2, r2] = useState(o$1);
2365
+ useEffect(() => {
2366
+ n2 != null && n2.length ? r2({ ...o$1, steps: true }) : t2 != null && t2.length ? r2({ ...o$1, rules: true }) : r2({ ...o$1, inviteCard: true });
2041
2367
  }, []);
2042
- const $e = M(() => w.steps && f === 0 ? "Continue" : w.rules ? b || !r ? "Got it" : r : w.inviteCard ? m || "Play Now" : "Next", [w, f, b, r, m]), Ae = U(() => {
2043
- t != null && t.length && f < t.length - 1 ? $((r2) => ++r2) : n != null && n.length && w.steps ? x({ ...W, rules: !0 }) : w.rules && x({ ...W, inviteCard: !0 });
2044
- }, [f, t == null ? void 0 : t.length, n == null ? void 0 : n.length, w, $, x]), ye = async () => {
2045
- w.inviteCard ? await e.onboardingStatus.submitInplay() : w.rules && b ? k(!1) : Ae();
2368
+ const j2 = useMemo(() => e2.steps && a2 === 0 ? "Continue" : e2.rules ? l2 || !c2 ? "Got it" : c2 : e2.inviteCard ? b2 || "Play Now" : "Next", [e2, a2, l2, c2, b2]), p2 = useCallback(() => {
2369
+ n2 != null && n2.length && a2 < n2.length - 1 ? O2((m2) => ++m2) : t2 != null && t2.length && e2.steps ? r2({ ...o$1, rules: true }) : e2.rules && r2({ ...o$1, inviteCard: true });
2370
+ }, [a2, n2 == null ? void 0 : n2.length, t2 == null ? void 0 : t2.length, e2, O2, r2]), H = async () => {
2371
+ e2.inviteCard ? await I2.onboardingStatus.submitInplay() : e2.rules && l2 ? S2(false) : p2();
2046
2372
  };
2047
- return y(() => {
2048
- !p && C && g.inviteDisplayed();
2049
- }, [p, C, g]), /* @__PURE__ */ s(at, { children: ({ width: r2, height: C2 }) => /* @__PURE__ */ h(Ai, { style: { width: r2, height: C2, maxHeight: C2 }, children: [
2050
- /* @__PURE__ */ s(wi, { children: /* @__PURE__ */ s(Li, { "data-a": "intr", onClick: I, children: /* @__PURE__ */ s(_i, { name: "icon-close-btn-gray" }) }) }),
2051
- /* @__PURE__ */ h(yi, { children: [
2052
- w.steps && (t == null ? void 0 : t.length) && /* @__PURE__ */ s(
2053
- ii,
2373
+ return useEffect(() => {
2374
+ !d2 && f2 && C2.inviteDisplayed();
2375
+ }, [d2, f2, C2]), /* @__PURE__ */ jsx(AutoSizer, { children: ({ width: m2, height: y2 }) => /* @__PURE__ */ jsxs(i$2, { style: { width: m2, height: y2, maxHeight: y2 }, children: [
2376
+ /* @__PURE__ */ jsx(l$1, { children: /* @__PURE__ */ jsx(d$1, { "data-a": "intr", onClick: A2, children: /* @__PURE__ */ jsx(m$2, { name: "icon-close-btn-gray" }) }) }),
2377
+ /* @__PURE__ */ jsxs(p$1, { children: [
2378
+ e2.steps && (n2 == null ? void 0 : n2.length) && /* @__PURE__ */ jsx(
2379
+ k,
2054
2380
  {
2055
- loading: p,
2056
- steps: t,
2057
- currentStep: f,
2058
- inviterName: C
2381
+ loading: d2,
2382
+ steps: n2,
2383
+ currentStep: a2,
2384
+ inviterName: f2
2059
2385
  }
2060
2386
  ),
2061
- w.rules && !b && /* @__PURE__ */ s(
2062
- ui,
2387
+ e2.rules && !l2 && /* @__PURE__ */ jsx(
2388
+ b$1,
2063
2389
  {
2064
- rules: n,
2065
- rulesTitle: a,
2066
- termsText: c,
2067
- primaryColor: l,
2068
- openTerms: () => k(!0)
2390
+ rules: t2,
2391
+ rulesTitle: T2,
2392
+ termsText: u2,
2393
+ primaryColor: g2,
2394
+ openTerms: () => S2(true)
2069
2395
  }
2070
2396
  ),
2071
- w.rules && b && /* @__PURE__ */ s(gi, { termsTitle: o, termsText: c }),
2072
- w.inviteCard && /* @__PURE__ */ s(
2073
- fe,
2397
+ e2.rules && l2 && /* @__PURE__ */ jsx(s, { termsTitle: x2, termsText: u2 }),
2398
+ e2.inviteCard && /* @__PURE__ */ jsx(
2399
+ M$1,
2074
2400
  {
2075
- inviteLink: d,
2076
- inviteCardTitle: u,
2077
- inviteCardSubtext: v,
2078
- primaryColor: l
2401
+ inviteLink: D2,
2402
+ inviteCardTitle: k$12,
2403
+ inviteCardSubtext: w2,
2404
+ primaryColor: g2
2079
2405
  }
2080
2406
  )
2081
2407
  ] }),
2082
- /* @__PURE__ */ s(Ti, { children: /* @__PURE__ */ s(O, { loading: p, style: { width: "100%" }, children: /* @__PURE__ */ s(Ni, { "data-a": "intr", onClick: ye, children: $e }) }) })
2408
+ /* @__PURE__ */ jsx(f$3, { children: /* @__PURE__ */ jsx(i$f, { loading: d2, style: { width: "100%" }, children: /* @__PURE__ */ jsx(I$1, { "data-a": "intr", onClick: H, children: j2 }) }) })
2083
2409
  ] }) });
2084
- }, Ri = /* @__PURE__ */ i("div")({
2410
+ };
2411
+ const a = /* @__PURE__ */ styled_default("div")({
2085
2412
  name: "Container",
2086
2413
  class: "c1qjj4d4",
2087
- propsAsIs: !1
2088
- }), Ei = /* @__PURE__ */ i("div")({
2414
+ propsAsIs: false
2415
+ }), c$1 = /* @__PURE__ */ styled_default("div")({
2089
2416
  name: "CloseIconWrap",
2090
2417
  class: "c1lg6b8a",
2091
- propsAsIs: !1
2092
- }), Vi = () => _, Hi = /* @__PURE__ */ i(Vi())({
2418
+ propsAsIs: false
2419
+ }), e$2 = () => B1, l = /* @__PURE__ */ styled_default(e$2())({
2093
2420
  name: "CloseIcon",
2094
2421
  class: "c159el66",
2095
- propsAsIs: !0
2096
- }), zi = /* @__PURE__ */ i("div")({
2422
+ propsAsIs: true
2423
+ }), p = /* @__PURE__ */ styled_default("div")({
2097
2424
  name: "Title",
2098
2425
  class: "t16xmufv",
2099
- propsAsIs: !1
2100
- }), Mi = /* @__PURE__ */ i("img")({
2426
+ propsAsIs: false
2427
+ }), i$1 = /* @__PURE__ */ styled_default("img")({
2101
2428
  name: "SponsorLogo",
2102
2429
  class: "s83lc21",
2103
- propsAsIs: !1
2104
- }), Oi = /* @__PURE__ */ i("div")({
2430
+ propsAsIs: false
2431
+ }), r$1 = /* @__PURE__ */ styled_default("div")({
2105
2432
  name: "PresentsTitle",
2106
2433
  class: "p1p7igia",
2107
- propsAsIs: !1
2108
- }), Di = /* @__PURE__ */ i("div")({
2434
+ propsAsIs: false
2435
+ }), m$1 = /* @__PURE__ */ styled_default("div")({
2109
2436
  name: "Subtitle",
2110
2437
  class: "s1eftsbu",
2111
- propsAsIs: !1
2112
- }), Fi = /* @__PURE__ */ i("div")({
2438
+ propsAsIs: false
2439
+ }), I = /* @__PURE__ */ styled_default("div")({
2113
2440
  name: "Description",
2114
2441
  class: "d8uezec",
2115
- propsAsIs: !1
2116
- }), Bi = /* @__PURE__ */ i("button")({
2442
+ propsAsIs: false
2443
+ }), f$2 = /* @__PURE__ */ styled_default("button")({
2117
2444
  name: "ActionButton",
2118
2445
  class: "a1h1bk90",
2119
- propsAsIs: !1
2120
- }), se = ({ close: e, action: t, onboarding: n }) => {
2121
- var r, a, o, c, l, d, u, v;
2122
- return /* @__PURE__ */ h(Ri, { children: [
2123
- /* @__PURE__ */ s(Ei, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ s(Hi, { name: "icon-cross" }) }),
2124
- ((a = (r = n == null ? void 0 : n.titleCard) == null ? void 0 : r.media) == null ? void 0 : a.sponsorLogo) && /* @__PURE__ */ h(zi, { children: [
2125
- /* @__PURE__ */ s(Mi, { alt: "sponsor-logo", src: (c = (o = n == null ? void 0 : n.titleCard) == null ? void 0 : o.media) == null ? void 0 : c.sponsorLogo }),
2126
- /* @__PURE__ */ s(Oi, { children: "PRESENTS" })
2446
+ propsAsIs: false
2447
+ });
2448
+ const y = ({ close: r2, action: S2, onboarding: t2 }) => {
2449
+ var l$12, s2, c2, C2, p$12, h2, m2, i2;
2450
+ return /* @__PURE__ */ jsxs(a, { children: [
2451
+ /* @__PURE__ */ jsx(c$1, { "data-a": "intr", onClick: r2, children: /* @__PURE__ */ jsx(l, { name: "icon-cross" }) }),
2452
+ ((s2 = (l$12 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : l$12.media) == null ? void 0 : s2.sponsorLogo) && /* @__PURE__ */ jsxs(p, { children: [
2453
+ /* @__PURE__ */ jsx(i$1, { alt: "sponsor-logo", src: (C2 = (c2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : c2.media) == null ? void 0 : C2.sponsorLogo }),
2454
+ /* @__PURE__ */ jsx(r$1, { children: "PRESENTS" })
2127
2455
  ] }),
2128
- ((l = n == null ? void 0 : n.titleCard) == null ? void 0 : l.title) && /* @__PURE__ */ s(Di, { children: (d = n == null ? void 0 : n.titleCard) == null ? void 0 : d.title }),
2129
- ((u = n == null ? void 0 : n.titleCard) == null ? void 0 : u.subtitle) && /* @__PURE__ */ s(Fi, { children: (v = n == null ? void 0 : n.titleCard) == null ? void 0 : v.subtitle }),
2130
- /* @__PURE__ */ s(Bi, { "data-a": "intr", onClick: t, children: "Play Now" })
2456
+ ((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 }),
2457
+ ((m2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : m2.subtitle) && /* @__PURE__ */ jsx(I, { children: (i2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : i2.subtitle }),
2458
+ /* @__PURE__ */ jsx(f$2, { "data-a": "intr", onClick: S2, children: "Play Now" })
2131
2459
  ] });
2132
- }, h2 = [{
2460
+ };
2461
+ const C = [{
2133
2462
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",
2134
2463
  tagline: "",
2135
- headline: /* @__PURE__ */ h(R, {
2136
- children: ["Welcome to ", /* @__PURE__ */ s("br", {}), " Live Challenge"]
2464
+ headline: /* @__PURE__ */ jsxs(Fragment, {
2465
+ children: ["Welcome to ", /* @__PURE__ */ jsx("br", {}), " Live Challenge"]
2137
2466
  })
2138
2467
  }, {
2139
2468
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_2.png",
@@ -2141,51 +2470,51 @@ const hs = {
2141
2470
  }, {
2142
2471
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_3.png",
2143
2472
  headline: "Win points and play against friends."
2144
- }], qi = /* @__PURE__ */ i("div")({
2473
+ }], z$1 = /* @__PURE__ */ styled_default("div")({
2145
2474
  name: "OnboardingContainer",
2146
2475
  class: "o1xni1kr",
2147
- propsAsIs: !1
2148
- }), Ui = () => i2, Pi = /* @__PURE__ */ i(Ui())({
2476
+ propsAsIs: false
2477
+ }), D = () => f$c, G = /* @__PURE__ */ styled_default(D())({
2149
2478
  name: "OnboardingNotificationContainer",
2150
2479
  class: "o1vnouv7",
2151
- propsAsIs: !0
2152
- }), ne = /* @__PURE__ */ i("div")({
2480
+ propsAsIs: true
2481
+ }), x = /* @__PURE__ */ styled_default("div")({
2153
2482
  name: "InnerContainer",
2154
2483
  class: "i59uefw",
2155
- propsAsIs: !1
2156
- }), Wi = /* @__PURE__ */ i("div")({
2484
+ propsAsIs: false
2485
+ }), U$1 = /* @__PURE__ */ styled_default("div")({
2157
2486
  name: "OnboardingOverlap",
2158
2487
  class: "ovnr8ov",
2159
- propsAsIs: !1
2160
- }), ji = ({
2161
- deepLink: e,
2162
- onboardingOpts: t,
2163
- notification: n,
2164
- gamification: r,
2165
- loading: a,
2166
- sdk: o,
2167
- throttled: c
2488
+ propsAsIs: false
2489
+ }), J = ({
2490
+ deepLink: l2,
2491
+ onboardingOpts: e2,
2492
+ notification: o2,
2493
+ gamification: d2,
2494
+ loading: s2,
2495
+ sdk: c2,
2496
+ throttled: I2
2168
2497
  }) => {
2169
- var l, d, u, v, m, p, C;
2170
- const g = A(r.friends ? r.friends.getStore() : he({
2498
+ var a2, b2, h2, f2, v2, t2, m2;
2499
+ const u2 = useStore(d2.friends ? d2.friends.getStore() : createSingleStore({
2171
2500
  data: []
2172
- })), [I, f] = L(void 0), $ = M(() => {
2173
- var b, k;
2174
- const w = o.getInviter();
2175
- return w ? (k = (b = g.data) == null ? void 0 : b.find(({
2176
- slId: x
2177
- }) => x === w)) == null ? void 0 : k.name : "";
2178
- }, [g.data, o]);
2179
- return y(() => {
2180
- const b = e.$store.subscribe((k) => {
2181
- k && f(k.data);
2501
+ })), [r2, S2] = useState(void 0), g2 = useMemo(() => {
2502
+ var p2, w2;
2503
+ const i2 = c2.getInviter();
2504
+ return i2 ? (w2 = (p2 = u2.data) == null ? void 0 : p2.find(({
2505
+ slId: B2
2506
+ }) => B2 === i2)) == null ? void 0 : w2.name : "";
2507
+ }, [u2.data, c2]);
2508
+ return useEffect(() => {
2509
+ const i2 = l2.$store.subscribe((p2) => {
2510
+ p2 && S2(p2.data);
2182
2511
  });
2183
2512
  return () => {
2184
- b();
2513
+ i2();
2185
2514
  };
2186
- }, [e.$store]), /* @__PURE__ */ h(qi, {
2187
- children: [/* @__PURE__ */ s(xi, {
2188
- loading: a,
2515
+ }, [l2.$store]), /* @__PURE__ */ jsxs(z$1, {
2516
+ children: [/* @__PURE__ */ jsx(tn, {
2517
+ loading: s2,
2189
2518
  rules: [{
2190
2519
  label: "Answer as many questions as you like.",
2191
2520
  icon: "icon-btn-feature-groups"
@@ -2196,407 +2525,413 @@ const hs = {
2196
2525
  label: "Top the leader board and best your friends.",
2197
2526
  icon: "icon-trophy"
2198
2527
  }],
2199
- rulesBtnLabel: (l = t.rules) == null ? void 0 : l.buttonLabel,
2200
- rulesTitle: (d = t.rules) == null ? void 0 : d.heading,
2528
+ rulesBtnLabel: (a2 = e2.rules) == null ? void 0 : a2.buttonLabel,
2529
+ rulesTitle: (b2 = e2.rules) == null ? void 0 : b2.heading,
2201
2530
  termsTitle: "Terms and Conditions",
2202
- termsText: (u = t.rules) == null ? void 0 : u.terms,
2203
- steps: h2,
2204
- primaryColor: (v = t.inviteCard) == null ? void 0 : v.iconColor,
2205
- inviteLink: I,
2206
- inviteCardTitle: (m = t.inviteCard) == null ? void 0 : m.heading,
2207
- inviteCardSubtext: (p = t.inviteCard) == null ? void 0 : p.subtext,
2208
- inviteCardBtnLabel: (C = t.inviteCard) == null ? void 0 : C.buttonLabel,
2531
+ termsText: (h2 = e2.rules) == null ? void 0 : h2.terms,
2532
+ steps: C,
2533
+ primaryColor: (f2 = e2.inviteCard) == null ? void 0 : f2.iconColor,
2534
+ inviteLink: r2,
2535
+ inviteCardTitle: (v2 = e2.inviteCard) == null ? void 0 : v2.heading,
2536
+ inviteCardSubtext: (t2 = e2.inviteCard) == null ? void 0 : t2.subtext,
2537
+ inviteCardBtnLabel: (m2 = e2.inviteCard) == null ? void 0 : m2.buttonLabel,
2209
2538
  onClose: () => {
2210
- var b;
2211
- (b = n.close) == null || b.call(n);
2539
+ var i2;
2540
+ (i2 = o2.close) == null || i2.call(o2);
2212
2541
  },
2213
- gamification: r,
2214
- sdk: o,
2215
- inviterName: $
2216
- }), c && /* @__PURE__ */ s(Wi, {})]
2542
+ gamification: d2,
2543
+ sdk: c2,
2544
+ inviterName: g2
2545
+ }), I2 && /* @__PURE__ */ jsx(U$1, {})]
2217
2546
  });
2218
- }, Zi = ({
2219
- sdk: e,
2220
- notification: t,
2221
- saveHeight: n,
2222
- style: r,
2223
- appNode: a,
2224
- sdkInDesktopView: o,
2225
- responsiveStore: c
2547
+ }, ie = ({
2548
+ sdk: l2,
2549
+ notification: e2,
2550
+ saveHeight: o2,
2551
+ style: d2,
2552
+ appNode: s2,
2553
+ sdkInDesktopView: c2,
2554
+ responsiveStore: I2
2226
2555
  }) => {
2227
- const l = V(null), d = t.data.onboarding, [u, v] = L(d == null ? void 0 : d.instantOpen), m = e.getFeature(H.GAMES), p = M(() => h2 == null ? void 0 : h2.map(({
2228
- graphicSrc: f
2229
- }) => f), []), {
2230
- screen: C
2231
- } = A(c, {
2556
+ const u2 = useRef(null), r2 = e2.data.onboarding, [S2, g2] = useState(r2 == null ? void 0 : r2.instantOpen), a2 = l2.getFeature(SdkOverlayType.GAMES), b2 = useMemo(() => C == null ? void 0 : C.map(({
2557
+ graphicSrc: t2
2558
+ }) => t2), []), {
2559
+ screen: h2
2560
+ } = useStore(I2, {
2232
2561
  keys: ["screen"]
2233
2562
  });
2234
- xe(() => {
2235
- var f;
2236
- n(((f = l.current) == null ? void 0 : f.getBoundingClientRect().height) || 0);
2237
- }, [n]);
2563
+ useLayoutEffect(() => {
2564
+ var t2;
2565
+ o2(((t2 = u2.current) == null ? void 0 : t2.getBoundingClientRect().height) || 0);
2566
+ }, [o2]);
2238
2567
  const {
2239
- loading: g,
2240
- throttled: I
2241
- } = Bn(p);
2242
- return u && m && d && a.current ? /* @__PURE__ */ s(ve, {
2243
- container: a,
2244
- useContainer: !o,
2245
- children: /* @__PURE__ */ s(ji, {
2246
- throttled: I,
2247
- notification: t,
2248
- setOpened: v,
2249
- gamification: m,
2250
- onboardingOpts: d,
2251
- deepLink: m.deepLink,
2252
- loading: g,
2253
- renderToNode: a,
2254
- sdk: e
2568
+ loading: f2,
2569
+ throttled: v2
2570
+ } = I$2(b2);
2571
+ return S2 && a2 && r2 && s2.current ? /* @__PURE__ */ jsx(T$3, {
2572
+ container: s2,
2573
+ useContainer: !c2,
2574
+ children: /* @__PURE__ */ jsx(J, {
2575
+ throttled: v2,
2576
+ notification: e2,
2577
+ setOpened: g2,
2578
+ gamification: a2,
2579
+ onboardingOpts: r2,
2580
+ deepLink: a2.deepLink,
2581
+ loading: f2,
2582
+ renderToNode: s2,
2583
+ sdk: l2
2255
2584
  })
2256
- }) : /* @__PURE__ */ h(R, {
2257
- children: [/* @__PURE__ */ s(ne, {
2258
- ref: l,
2585
+ }) : /* @__PURE__ */ jsxs(Fragment, {
2586
+ children: [/* @__PURE__ */ jsx(x, {
2587
+ ref: u2,
2259
2588
  style: {
2260
2589
  position: "absolute",
2261
2590
  visibility: "hidden"
2262
2591
  },
2263
- children: /* @__PURE__ */ s(se, {
2592
+ children: /* @__PURE__ */ jsx(y, {
2264
2593
  close: () => {
2265
2594
  },
2266
2595
  action: () => {
2267
2596
  },
2268
- onboarding: d
2597
+ onboarding: r2
2269
2598
  })
2270
- }), /* @__PURE__ */ s(Pi, {
2271
- style: r,
2272
- hiding: t.hiding,
2273
- children: /* @__PURE__ */ s(ne, {
2274
- children: /* @__PURE__ */ s(se, {
2275
- close: t.close,
2599
+ }), /* @__PURE__ */ jsx(G, {
2600
+ style: d2,
2601
+ hiding: e2.hiding,
2602
+ children: /* @__PURE__ */ jsx(x, {
2603
+ children: /* @__PURE__ */ jsx(y, {
2604
+ close: e2.close,
2276
2605
  action: () => {
2277
- var f;
2278
- v(!0), (((f = a.current) == null ? void 0 : f.getBoundingClientRect().y) || 0) < 0 && v2(a, C.size, {
2606
+ var m2;
2607
+ g2(true), (((m2 = s2.current) == null ? void 0 : m2.getBoundingClientRect().y) || 0) < 0 && I$9(s2, h2.size, {
2279
2608
  behavior: "smooth"
2280
2609
  });
2281
2610
  },
2282
- onboarding: d
2611
+ onboarding: r2
2283
2612
  })
2284
2613
  })
2285
2614
  })]
2286
2615
  });
2287
- }, Gi = /* @__PURE__ */ i("button")({
2616
+ };
2617
+ const n = /* @__PURE__ */ styled_default("button")({
2288
2618
  name: "Container",
2289
2619
  class: "crkmfw1",
2290
- propsAsIs: !1
2291
- }), Qi = /* @__PURE__ */ i("div")({
2620
+ propsAsIs: false
2621
+ }), e$1 = /* @__PURE__ */ styled_default("div")({
2292
2622
  name: "Content",
2293
2623
  class: "c11awpy4",
2294
- propsAsIs: !1
2295
- }), Ki = /* @__PURE__ */ i("span")({
2624
+ propsAsIs: false
2625
+ }), o = /* @__PURE__ */ styled_default("span")({
2296
2626
  name: "Title",
2297
2627
  class: "t154z7mh",
2298
- propsAsIs: !1
2299
- }), Yi = ({ title: e, onClick: t, className: n, style: r }) => /* @__PURE__ */ s(Gi, { "data-a": "intr", onClick: t, className: n, style: r, children: /* @__PURE__ */ h(Qi, { "data-a": "intr", children: [
2300
- /* @__PURE__ */ s(_, { "data-a": "intr", name: "iconUp" }),
2301
- e && /* @__PURE__ */ s(Ki, { "data-a": "intr", children: e })
2302
- ] }) }), Ji = () => i2, Xi = /* @__PURE__ */ i(Ji())({
2628
+ propsAsIs: false
2629
+ });
2630
+ const f$1 = ({ title: n$12, onClick: t2, className: a2, style: i2 }) => /* @__PURE__ */ jsx(n, { "data-a": "intr", onClick: t2, className: a2, style: i2, children: /* @__PURE__ */ jsxs(e$1, { "data-a": "intr", children: [
2631
+ /* @__PURE__ */ jsx(B1, { "data-a": "intr", name: "iconUp" }),
2632
+ n$12 && /* @__PURE__ */ jsx(o, { "data-a": "intr", children: n$12 })
2633
+ ] }) });
2634
+ const e = () => f$c, c = /* @__PURE__ */ styled_default(e())({
2303
2635
  name: "Container",
2304
2636
  class: "c8ol1ve",
2305
- propsAsIs: !0
2306
- }), be = /* @__PURE__ */ i("div")({
2637
+ propsAsIs: true
2638
+ }), t = /* @__PURE__ */ styled_default("div")({
2307
2639
  name: "InnerContainer",
2308
2640
  class: "iqfywam",
2309
- propsAsIs: !1
2310
- }), e1 = () => be, t1 = /* @__PURE__ */ i(e1())({
2641
+ propsAsIs: false
2642
+ }), i = () => t, m = /* @__PURE__ */ styled_default(i())({
2311
2643
  name: "HiddenContainer",
2312
2644
  class: "hokmtod",
2313
- propsAsIs: !0
2314
- }), s1 = /* @__PURE__ */ i("div")({
2645
+ propsAsIs: true
2646
+ }), f = /* @__PURE__ */ styled_default("div")({
2315
2647
  name: "NotificationRefreshing",
2316
2648
  class: "n192d1q8",
2317
- propsAsIs: !1
2318
- }), n1 = () => Yi, i1 = /* @__PURE__ */ i(n1())({
2649
+ propsAsIs: false
2650
+ }), r = () => f$1, d = /* @__PURE__ */ styled_default(r())({
2319
2651
  name: "Pill",
2320
2652
  class: "p1lha68t",
2321
- propsAsIs: !0
2322
- }), r1 = (e) => {
2323
- const [t, n] = L(0), r = V(null), a = M(() => new ResizeObserver((l) => {
2653
+ propsAsIs: true
2654
+ });
2655
+ const v = (r2) => {
2656
+ const [e2, d2] = useState(0), i2 = useRef(null), l2 = useMemo(() => new ResizeObserver((n2) => {
2324
2657
  window.requestAnimationFrame(() => {
2325
- var d;
2326
- if (Array.isArray(l)) {
2327
- for (const u of l)
2328
- if (u.contentBoxSize) {
2329
- const v = (d = r.current) == null ? void 0 : d.getBoundingClientRect();
2330
- v && n(v.height);
2658
+ var f2;
2659
+ if (Array.isArray(n2)) {
2660
+ for (const c2 of n2)
2661
+ if (c2.contentBoxSize) {
2662
+ const o2 = (f2 = i2.current) == null ? void 0 : f2.getBoundingClientRect();
2663
+ o2 && d2(o2.height);
2331
2664
  }
2332
2665
  }
2333
2666
  });
2334
- }), []), o = U((l) => {
2335
- r.current = l;
2336
- }, []), c = U((l) => {
2337
- n(l);
2667
+ }), []), s2 = useCallback((n2) => {
2668
+ i2.current = n2;
2669
+ }, []), a2 = useCallback((n2) => {
2670
+ d2(n2);
2338
2671
  }, []);
2339
- return y(() => {
2340
- const l = r.current;
2341
- return l ? (a.observe(l), () => {
2342
- a.unobserve(l);
2672
+ return useEffect(() => {
2673
+ const n2 = i2.current;
2674
+ return n2 ? (l2.observe(n2), () => {
2675
+ l2.unobserve(n2);
2343
2676
  }) : () => {
2344
2677
  };
2345
- }, [e]), y(() => () => {
2346
- a.disconnect();
2347
- }), [o, t, c];
2348
- }, a1 = ({
2349
- sdk: e,
2350
- notification: t,
2351
- appNode: n,
2352
- responsiveStore: r,
2353
- hasActiveFeature: a
2678
+ }, [r2]), useEffect(() => () => {
2679
+ l2.disconnect();
2680
+ }), [s2, e2, a2];
2681
+ }, Q = ({
2682
+ sdk: r2,
2683
+ notification: e2,
2684
+ appNode: d2,
2685
+ responsiveStore: i2,
2686
+ hasActiveFeature: l2
2354
2687
  }) => {
2355
- var o, c;
2688
+ var t$12, m$12;
2356
2689
  const {
2357
- sdkInDesktopView: l
2358
- } = A(r, {
2690
+ sdkInDesktopView: s2
2691
+ } = useStore(i2, {
2359
2692
  keys: ["sdkInDesktopView"]
2360
2693
  }), {
2361
- sdk: d
2362
- } = u2(), [u, v, m] = r1(t.id);
2363
- let p = v;
2364
- return a || (p = "auto"), t.type === e2.QUESTION ? /* @__PURE__ */ h(R, {
2365
- children: [/* @__PURE__ */ s(t1, {
2366
- ref: u,
2367
- children: /* @__PURE__ */ s(P2, {
2368
- ...t
2694
+ sdk: a2
2695
+ } = p$h(), [n2, f$12, c$12] = v(e2.id);
2696
+ let o2 = f$12;
2697
+ return l2 || (o2 = "auto"), e2.type === NotificationType.QUESTION ? /* @__PURE__ */ jsxs(Fragment, {
2698
+ children: [/* @__PURE__ */ jsx(m, {
2699
+ ref: n2,
2700
+ children: /* @__PURE__ */ jsx(w$2, {
2701
+ ...e2
2369
2702
  })
2370
- }), /* @__PURE__ */ h(Xi, {
2703
+ }), /* @__PURE__ */ jsxs(c, {
2371
2704
  style: {
2372
- height: t.hiding ? 0 : p
2705
+ height: e2.hiding ? 0 : o2
2373
2706
  },
2374
- hiding: t.hiding,
2375
- children: [/* @__PURE__ */ s(be, {
2707
+ hiding: e2.hiding,
2708
+ children: [/* @__PURE__ */ jsx(t, {
2376
2709
  style: {
2377
2710
  height: "100%"
2378
2711
  },
2379
- children: /* @__PURE__ */ s(P2, {
2380
- ...t,
2381
- controlVideo: d == null ? void 0 : d.controlVideoPlayer
2712
+ children: /* @__PURE__ */ jsx(w$2, {
2713
+ ...e2,
2714
+ controlVideo: a2 == null ? void 0 : a2.controlVideoPlayer
2382
2715
  })
2383
- }), /* @__PURE__ */ s(s1, {}, t.id)]
2716
+ }), /* @__PURE__ */ jsx(f, {}, e2.id)]
2384
2717
  })]
2385
- }) : t.type === e2.QUESTION_RESOLVED && (c = (o = t.data) == null ? void 0 : o.question) != null && c.predictionResult ? /* @__PURE__ */ s(Fn, {
2718
+ }) : e2.type === NotificationType.QUESTION_RESOLVED && ((m$12 = (t$12 = e2.data) == null ? void 0 : t$12.question) != null && m$12.predictionResult) ? /* @__PURE__ */ jsx(D$1, {
2386
2719
  style: {
2387
- height: t.hiding ? 0 : v
2720
+ height: e2.hiding ? 0 : f$12
2388
2721
  },
2389
- saveHeight: m,
2390
- close: t.close,
2391
- hiding: t.hiding,
2392
- ...t.data.question
2393
- }) : t.type === e2.ONBOARDING ? /* @__PURE__ */ s(Zi, {
2722
+ saveHeight: c$12,
2723
+ close: e2.close,
2724
+ hiding: e2.hiding,
2725
+ ...e2.data.question
2726
+ }) : e2.type === NotificationType.ONBOARDING ? /* @__PURE__ */ jsx(ie, {
2394
2727
  style: {
2395
- height: t.hiding ? 0 : p
2728
+ height: e2.hiding ? 0 : o2
2396
2729
  },
2397
- saveHeight: m,
2398
- sdk: e,
2399
- notification: t,
2400
- sdkInDesktopView: l,
2401
- appNode: n,
2402
- responsiveStore: r
2730
+ saveHeight: c$12,
2731
+ sdk: r2,
2732
+ notification: e2,
2733
+ sdkInDesktopView: s2,
2734
+ appNode: d2,
2735
+ responsiveStore: i2
2403
2736
  }) : null;
2404
- }, o1 = "p7vfi6t", l1 = ({
2405
- pill: e,
2406
- setPill: t,
2407
- appNode: n,
2408
- headerNode: r,
2409
- scrollNode: a,
2410
- responsiveStore: o,
2411
- scrollStore: c
2737
+ }, F = "p7vfi6t", U = ({
2738
+ pill: r2,
2739
+ setPill: e2,
2740
+ appNode: d$12,
2741
+ headerNode: i2,
2742
+ scrollNode: l2,
2743
+ responsiveStore: s2,
2744
+ scrollStore: a2
2412
2745
  }) => {
2413
- var l, d;
2746
+ var t2, m2;
2414
2747
  const {
2415
- screen: u
2416
- } = A(o, {
2748
+ screen: n2
2749
+ } = useStore(s2, {
2417
2750
  keys: ["screen"]
2418
2751
  }), {
2419
- tabsShown: v,
2420
- scrollPosition: m
2421
- } = A(c, {
2752
+ tabsShown: f2,
2753
+ scrollPosition: c2
2754
+ } = useStore(a2, {
2422
2755
  keys: ["tabsShown", "scrollPosition"]
2423
2756
  });
2424
- y(() => {
2425
- o.get().sdkInDesktopView ? m < 50 && t(null) : m > -50 && t(null);
2426
- }, [m, o, t]);
2427
- const p = o.get().sdkInDesktopView ? n : r;
2428
- return !e || !p.current ? null : s2(/* @__PURE__ */ s(i1, {
2429
- title: e.type === e2.QUESTION_RESOLVED ? "Prediction result" : `New ${((d = de[(l = e.data) == null ? void 0 : l.questionType]) == null ? void 0 : d.label) || "notification"}`,
2757
+ useEffect(() => {
2758
+ s2.get().sdkInDesktopView ? c2 < 50 && e2(null) : c2 > -50 && e2(null);
2759
+ }, [c2, s2, e2]);
2760
+ const o2 = s2.get().sdkInDesktopView ? d$12 : i2;
2761
+ return !r2 || !o2.current ? null : createPortal(/* @__PURE__ */ jsx(d, {
2762
+ title: r2.type === NotificationType.QUESTION_RESOLVED ? "Prediction result" : `New ${((m2 = e$k[(t2 = r2.data) == null ? void 0 : t2.questionType]) == null ? void 0 : m2.label) || "notification"}`,
2430
2763
  "data-a": "intr",
2431
2764
  onClick: () => {
2432
- var C;
2433
- o.get().sdkInDesktopView ? (C = a.current) == null || C.scrollTo({
2765
+ var g2;
2766
+ s2.get().sdkInDesktopView ? (g2 = l2.current) == null || g2.scrollTo({
2434
2767
  top: 0,
2435
2768
  behavior: "smooth"
2436
- }) : v2(n, u.size, {
2769
+ }) : I$9(d$12, n2.size, {
2437
2770
  behavior: "smooth"
2438
- }), t(null);
2771
+ }), e2(null);
2439
2772
  },
2440
- className: F(v && o1, "sl-pill-button")
2441
- }), p.current);
2442
- }, c1 = ({
2443
- sdk: e,
2444
- headerNode: t,
2445
- scrollNode: n,
2446
- responsiveStore: r,
2447
- appNode: a,
2448
- scrollStore: o,
2449
- hasActiveFeature: c
2773
+ className: cx_default(f2 && F, "sl-pill-button")
2774
+ }), o2.current);
2775
+ }, ne = ({
2776
+ sdk: r2,
2777
+ headerNode: e2,
2778
+ scrollNode: d2,
2779
+ responsiveStore: i2,
2780
+ appNode: l2,
2781
+ scrollStore: s2,
2782
+ hasActiveFeature: a2
2450
2783
  }) => {
2451
- const [l] = L(e.getNotificationsStore()), d = A(l), [u, v] = L(null), m = M(() => e.getActiveNotification(), [e, d]);
2452
- return y(() => {
2453
- m && Ge.emit("notification", {
2784
+ const [n2] = useState(r2.getNotificationsStore()), f2 = useStore(n2), [c2, o2] = useState(null), t2 = useMemo(() => r2.getActiveNotification(), [r2, f2]);
2785
+ return useEffect(() => {
2786
+ t2 && eventBus.emit("notification", {
2454
2787
  action: "rendered",
2455
2788
  payload: {
2456
- questionId: m.data.questionId,
2457
- questionType: m.data.questionType
2789
+ questionId: t2.data.questionId,
2790
+ questionType: t2.data.questionType
2458
2791
  }
2459
2792
  });
2460
- }, [m]), y(() => {
2793
+ }, [t2]), useEffect(() => {
2461
2794
  const {
2462
- sdkInDesktopView: p,
2463
- sdkInView: C
2464
- } = r.get();
2465
- m && (p || C) && (!p && C && v(m), p && window.requestAnimationFrame(() => {
2466
- o.get().scrollPosition !== 0 && v(m);
2795
+ sdkInDesktopView: m2,
2796
+ sdkInView: g2
2797
+ } = i2.get();
2798
+ t2 && (m2 || g2) && (!m2 && g2 && o2(t2), m2 && window.requestAnimationFrame(() => {
2799
+ s2.get().scrollPosition !== 0 && o2(t2);
2467
2800
  }));
2468
- }, [m]), y(() => {
2469
- m || v(null);
2470
- }, [m]), /* @__PURE__ */ h(R, {
2471
- children: [!u && m && /* @__PURE__ */ s(a1, {
2472
- appNode: a,
2473
- sdk: e,
2474
- hasActiveFeature: c,
2475
- notification: m,
2476
- responsiveStore: r
2477
- }), u && /* @__PURE__ */ s(l1, {
2478
- pill: u,
2479
- setPill: v,
2480
- appNode: a,
2481
- notification: m,
2482
- headerNode: t,
2483
- scrollNode: n,
2484
- scrollStore: o,
2485
- responsiveStore: r
2801
+ }, [t2]), useEffect(() => {
2802
+ t2 || o2(null);
2803
+ }, [t2]), /* @__PURE__ */ jsxs(Fragment, {
2804
+ children: [!c2 && t2 && /* @__PURE__ */ jsx(Q, {
2805
+ appNode: l2,
2806
+ sdk: r2,
2807
+ hasActiveFeature: a2,
2808
+ notification: t2,
2809
+ responsiveStore: i2
2810
+ }), c2 && /* @__PURE__ */ jsx(U, {
2811
+ pill: c2,
2812
+ setPill: o2,
2813
+ appNode: l2,
2814
+ notification: t2,
2815
+ headerNode: e2,
2816
+ scrollNode: d2,
2817
+ scrollStore: s2,
2818
+ responsiveStore: i2
2486
2819
  })]
2487
2820
  });
2488
- }, d1 = (e) => {
2489
- const t = A(e.status), n = A(e.sdkStore.slStreamId), r = A(e.userId()), a = A(e.getActiveFeature()), o = t === "ready" && !!n.data;
2490
- return y(() => {
2491
- const c = e.getFeature(H.GAMES);
2492
- c && a !== H.GAMES && (c.closeQuestion(), c.closeUser()), c == null || c.openedQuestionId.subscribe((l) => {
2493
- l && a !== H.GAMES && e.openFeature(H.GAMES);
2821
+ };
2822
+ const A = (e2) => {
2823
+ const u2 = useStore(e2.status), a2 = useStore(e2.sdkStore.slStreamId), c2 = useStore(e2.userId()), r2 = useStore(e2.getActiveFeature()), n2 = u2 === "ready" && !!a2.data;
2824
+ return useEffect(() => {
2825
+ const t2 = e2.getFeature(SdkOverlayType.GAMES);
2826
+ t2 && r2 !== SdkOverlayType.GAMES && (t2.closeQuestion(), t2.closeUser()), t2 == null || t2.openedQuestionId.subscribe((p2) => {
2827
+ p2 && r2 !== SdkOverlayType.GAMES && e2.openFeature(SdkOverlayType.GAMES);
2494
2828
  });
2495
- }, [a, e]), {
2496
- sdkReady: o,
2497
- activeFeature: a,
2498
- isLogged: !!r
2829
+ }, [r2, e2]), {
2830
+ sdkReady: n2,
2831
+ activeFeature: r2,
2832
+ isLogged: !!c2
2499
2833
  };
2500
- }, p1 = ({
2501
- sdk: e,
2502
- className: t,
2503
- scrollStore: n,
2504
- appNode: r,
2505
- scrollNode: a,
2506
- responsiveStore: o
2834
+ };
2835
+ const z = ({
2836
+ sdk: e2,
2837
+ className: l2,
2838
+ scrollStore: o2,
2839
+ appNode: a2,
2840
+ scrollNode: m2,
2841
+ responsiveStore: r2
2507
2842
  }) => {
2508
- const [, c] = d0(e);
2509
- return /* @__PURE__ */ s(os, {
2510
- className: t,
2511
- scrollNode: a,
2512
- appNode: r,
2513
- scrollStore: n,
2514
- feature: c,
2515
- responsiveStore: o,
2516
- sdk: e
2843
+ const [, t2] = p$g(e2);
2844
+ return /* @__PURE__ */ jsx(x$4, {
2845
+ className: l2,
2846
+ scrollNode: m2,
2847
+ appNode: a2,
2848
+ scrollStore: o2,
2849
+ feature: t2,
2850
+ responsiveStore: r2,
2851
+ sdk: e2
2517
2852
  });
2518
- }, h1 = ({
2519
- sdk: e,
2520
- muted: t,
2521
- className: n,
2522
- appNode: r,
2523
- responsiveStore: a
2853
+ }, B = ({
2854
+ sdk: e2,
2855
+ muted: l2,
2856
+ className: o2,
2857
+ appNode: a2,
2858
+ responsiveStore: m2
2524
2859
  }) => {
2525
- const o = A(e.featuresList.getStore());
2526
- return o ? Array.from(o, (c) => {
2527
- const l = e.getFeature(c);
2528
- return l ? /* @__PURE__ */ s(ls, {
2529
- className: n,
2530
- muted: t,
2531
- appNode: r,
2532
- feature: l,
2533
- responsiveStore: a,
2534
- sdk: e
2535
- }, c) : null;
2860
+ const r2 = useStore(e2.featuresList.getStore());
2861
+ return r2 ? Array.from(r2, (t2) => {
2862
+ const i2 = e2.getFeature(t2);
2863
+ return i2 ? /* @__PURE__ */ jsx(A$3, {
2864
+ className: o2,
2865
+ muted: l2,
2866
+ appNode: a2,
2867
+ feature: i2,
2868
+ responsiveStore: m2,
2869
+ sdk: e2
2870
+ }, t2) : null;
2536
2871
  }) : null;
2537
- }, u1 = ({
2538
- sdk: e,
2539
- muted: t,
2540
- topNavigation: n
2872
+ }, oe = ({
2873
+ sdk: e2,
2874
+ muted: l2,
2875
+ topNavigation: o2
2541
2876
  }) => {
2542
- const [r, a] = L(!0), o = V(null), c = A(e.uiState), l = V(null), [d] = p0(o), [u, v] = u0(o, d), {
2543
- sdkReady: m,
2544
- activeFeature: p,
2545
- isLogged: C
2546
- } = d1(e), g = !!m;
2547
- Ke(o, {
2548
- enabled: g,
2877
+ const [a2, m2] = useState(true), r2 = useRef(null), t2 = useStore(e2.uiState), i2 = useRef(null), [c2] = h$2(r2), [p2, d2] = L$1(r2, c2), {
2878
+ sdkReady: x2,
2879
+ activeFeature: f2,
2880
+ isLogged: N2
2881
+ } = A(e2), s2 = !!x2;
2882
+ b$6(r2, {
2883
+ enabled: s2,
2549
2884
  event: "click",
2550
- listener: Ye
2885
+ listener: A$7
2551
2886
  });
2552
- const I = M(() => ({
2553
- sdk: e,
2554
- topNavigation: n
2555
- }), [e, n]);
2556
- return y(() => {
2887
+ const g2 = useMemo(() => ({
2888
+ sdk: e2,
2889
+ topNavigation: o2
2890
+ }), [e2, o2]);
2891
+ return useEffect(() => {
2557
2892
  import("./gamification-feature.js");
2558
- }, []), /* @__PURE__ */ s(t0.Provider, {
2559
- value: I,
2560
- children: /* @__PURE__ */ h(je, {
2561
- ref: (f) => {
2562
- o.current = f, a(!!f);
2893
+ }, []), /* @__PURE__ */ jsx(e$l.Provider, {
2894
+ value: g2,
2895
+ children: /* @__PURE__ */ jsxs(p$i, {
2896
+ ref: (S2) => {
2897
+ r2.current = S2, m2(!!S2);
2563
2898
  },
2564
- className: n ? "" : "c10llmat",
2565
- children: [g && n && c.app && /* @__PURE__ */ s(Es, {
2566
- className: F(Q, "sl-hide-on-modal"),
2567
- sdk: e,
2568
- ref: l
2569
- }), g && !n && !!p && c.app && /* @__PURE__ */ s(Rs, {
2570
- className: F(Q, "sl-hide-on-modal"),
2571
- sdk: e,
2572
- ref: l
2573
- }), /* @__PURE__ */ h(Ze, {
2899
+ className: o2 ? "" : "c10llmat",
2900
+ children: [s2 && o2 && t2.app && /* @__PURE__ */ jsx(J$1, {
2901
+ className: cx_default(m$e, "sl-hide-on-modal"),
2902
+ sdk: e2,
2903
+ ref: i2
2904
+ }), s2 && !o2 && !!f2 && t2.app && /* @__PURE__ */ jsx(z$3, {
2905
+ className: cx_default(m$e, "sl-hide-on-modal"),
2906
+ sdk: e2,
2907
+ ref: i2
2908
+ }), /* @__PURE__ */ jsxs(c$d, {
2574
2909
  className: "sl-hide-on-modal",
2575
- ref: u,
2576
- "data-nav": (!!p && g).toString(),
2577
- children: [g && c.app && /* @__PURE__ */ s(c1, {
2578
- sdk: e,
2579
- scrollNode: u,
2580
- headerNode: l,
2581
- appNode: o,
2582
- scrollStore: v,
2583
- responsiveStore: d,
2584
- hasActiveFeature: !!p
2585
- }), g && c.app && /* @__PURE__ */ s(p1, {
2586
- scrollStore: v,
2587
- responsiveStore: d,
2588
- scrollNode: u,
2589
- appNode: o,
2590
- className: Q,
2591
- sdk: e
2592
- }), g && r && /* @__PURE__ */ s(h1, {
2593
- muted: t,
2594
- responsiveStore: d,
2595
- appNode: o,
2596
- className: Q,
2597
- sdk: e
2910
+ ref: p2,
2911
+ "data-nav": (!!f2 && s2).toString(),
2912
+ children: [s2 && t2.app && /* @__PURE__ */ jsx(ne, {
2913
+ sdk: e2,
2914
+ scrollNode: p2,
2915
+ headerNode: i2,
2916
+ appNode: r2,
2917
+ scrollStore: d2,
2918
+ responsiveStore: c2,
2919
+ hasActiveFeature: !!f2
2920
+ }), s2 && t2.app && /* @__PURE__ */ jsx(z, {
2921
+ scrollStore: d2,
2922
+ responsiveStore: c2,
2923
+ scrollNode: p2,
2924
+ appNode: r2,
2925
+ className: m$e,
2926
+ sdk: e2
2927
+ }), s2 && a2 && /* @__PURE__ */ jsx(B, {
2928
+ muted: l2,
2929
+ responsiveStore: c2,
2930
+ appNode: r2,
2931
+ className: m$e,
2932
+ sdk: e2
2598
2933
  })]
2599
- }), g && !C && r && c.app && /* @__PURE__ */ s("div", {
2934
+ }), s2 && !N2 && a2 && t2.app && /* @__PURE__ */ jsx("div", {
2600
2935
  style: {
2601
2936
  display: "flex",
2602
2937
  alignItems: "center",
@@ -2608,13 +2943,14 @@ const hs = {
2608
2943
  })]
2609
2944
  })
2610
2945
  });
2611
- }, D1 = ({ event: e, topNavigation: t, theme: n, muted: r, withSidebarNotification: a = !0 }) => {
2612
- const { sdk: o, status: c } = f2(g2), l = Re(), d = Ee(), { event: u } = f2(g2);
2613
- if (c === I2.UNSET)
2946
+ };
2947
+ const b = ({ event: p2, topNavigation: S2, theme: c2, muted: u2, withSidebarNotification: d2 = true }) => {
2948
+ const { sdk: t2, status: i2 } = useContext(i$g), e2 = F$5(), m2 = z$5(), { event: a2 } = useContext(i$g);
2949
+ if (i2 === Y.UNSET)
2614
2950
  throw new Error("Wrap app in `StreamLayerProvider`");
2615
- return c === I2.CONNECTED ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "wait" }) : o === null ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !l.app && !l.appNotification && !l.appSidebar || !l.app && !l.appSidebar && l.appNotification && !a ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(ze, { customTheme: n ?? d.theme, themeMode: d.themeMode, children: /* @__PURE__ */ s(u1, { sdk: o, muted: r, event: (u == null ? void 0 : u.current) || e, topNavigation: t }) }) });
2951
+ return i2 === Y.CONNECTED ? /* @__PURE__ */ jsx("div", { className: "StreamLayerSDK", children: "wait" }) : t2 === null ? /* @__PURE__ */ jsx("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !e2.app && !e2.appNotification && !e2.appSidebar || !e2.app && !e2.appSidebar && e2.appNotification && !d2 ? null : /* @__PURE__ */ jsx("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ jsx(h$3, { customTheme: c2 ?? m2.theme, themeMode: m2.themeMode, children: /* @__PURE__ */ jsx(oe, { sdk: t2, muted: u2, event: (a2 == null ? void 0 : a2.current) || p2, topNavigation: S2 }) }) });
2616
2952
  };
2617
2953
  export {
2618
- O1 as B,
2619
- D1 as b
2954
+ B$3 as B,
2955
+ b
2620
2956
  };