@streamlayer/react 0.32.11 → 0.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,23 +3,23 @@ import { d as Ke, S as Wi, a as Gi, b as Pi, s as Zi } from "./index2.js";
3
3
  import { lazy as Vi, useMemo as Qe, Suspense as qi, useRef as je, useState as W, useEffect as J, Component as Hi, createElement as Ji, useCallback as Ae, useLayoutEffect as Xi, useContext as Ki } from "react";
4
4
  import { FeatureType as be, QuestionType as B } from "@streamlayer/sdk-web-types";
5
5
  import { useStore as re } from "@nanostores/react";
6
- import { FeatureStatus as Ie } from "@streamlayer/sdk-web-interfaces";
7
- import { s as l, o as b, c as hi } from "./index4.js";
6
+ import { FeatureStatus as De } from "@streamlayer/sdk-web-interfaces";
7
+ import { s as l, r as b, c as hi } from "./index4.js";
8
8
  import { NotificationType as pe } from "@streamlayer/sdk-web-notifications";
9
- const et = ({ feature: s, sdk: n, children: c, className: D }) => {
10
- const T = re(s.status), I = re(n.sdkStore.slStreamId);
11
- return I != null && I.loading ? /* @__PURE__ */ u("div", { className: D, children: "event is loading..." }) : I != null && I.data ? T !== Ie.Ready ? /* @__PURE__ */ u("div", { className: D, children: "wait feature..." }) : c : /* @__PURE__ */ u("div", { className: D, children: "event is forbidden..." });
9
+ const et = ({ feature: s, sdk: n, children: c, className: I }) => {
10
+ const T = re(s.status), D = re(n.sdkStore.slStreamId);
11
+ return D != null && D.loading ? /* @__PURE__ */ u("div", { className: I, children: "event is loading..." }) : D != null && D.data ? T !== De.Ready ? /* @__PURE__ */ u("div", { className: I, children: "wait feature..." }) : c : /* @__PURE__ */ u("div", { className: I, children: "event is forbidden..." });
12
12
  }, it = Vi(() => import("./gamification-feature.js")), tt = ({
13
13
  sdk: s,
14
14
  feature: n,
15
15
  className: c
16
16
  }) => {
17
- const D = Qe(() => n && n.featureConfig.get().type === be.GAMES ? /* @__PURE__ */ u(et, { className: c, sdk: s, feature: n, children: /* @__PURE__ */ u(it, { className: c, gamification: n, sdk: s }) }) : null, [s, n, c]);
17
+ const I = Qe(() => n && n.featureConfig.get().type === be.GAMES ? /* @__PURE__ */ u(et, { className: c, sdk: s, feature: n, children: /* @__PURE__ */ u(it, { className: c, gamification: n, sdk: s }) }) : null, [s, n, c]);
18
18
  return /* @__PURE__ */ u(
19
19
  qi,
20
20
  {
21
21
  fallback: /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
22
- children: D
22
+ children: I
23
23
  }
24
24
  );
25
25
  }, rt = /* @__PURE__ */ l("button")({
@@ -34,9 +34,9 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
34
34
  name: "ButtonLabel",
35
35
  class: "b40tuix",
36
36
  propsAsIs: !1
37
- }), ve = ({ disabled: s, active: n, onClick: c, label: D, icon: T }) => /* @__PURE__ */ u(rt, { onClick: c, disabled: s, "data-selected": n, children: /* @__PURE__ */ d(te, { children: [
37
+ }), ve = ({ disabled: s, active: n, onClick: c, label: I, icon: T }) => /* @__PURE__ */ u(rt, { onClick: c, disabled: s, "data-selected": n, children: /* @__PURE__ */ d(te, { children: [
38
38
  T && /* @__PURE__ */ u(nt, { children: T }),
39
- /* @__PURE__ */ u(st, { children: D })
39
+ /* @__PURE__ */ u(st, { children: I })
40
40
  ] }) }), ot = () => b, Mt = /* @__PURE__ */ l(ot())({
41
41
  name: "ButtonIcon",
42
42
  class: "b1whzxvd",
@@ -71,7 +71,7 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
71
71
  name: "ButtonIcon",
72
72
  class: "b180jd7l",
73
73
  propsAsIs: !0
74
- }), ze = "leaderboard", Dt = (s) => {
74
+ }), ze = "leaderboard", It = (s) => {
75
75
  var n;
76
76
  return /* @__PURE__ */ u(ve, {
77
77
  ...s,
@@ -82,21 +82,21 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
82
82
  "data-selected": (n = s.active) == null ? void 0 : n.toString()
83
83
  })
84
84
  });
85
- }, It = /* @__PURE__ */ l("div")({
85
+ }, Dt = /* @__PURE__ */ l("div")({
86
86
  name: "Buttons",
87
87
  class: "b6tbwuy",
88
88
  propsAsIs: !1
89
89
  }), Tt = ({
90
90
  children: s,
91
91
  className: n
92
- }) => /* @__PURE__ */ u(It, {
92
+ }) => /* @__PURE__ */ u(Dt, {
93
93
  className: n,
94
94
  children: s
95
95
  }), jt = () => Tt, ht = /* @__PURE__ */ l(jt())({
96
96
  name: "Navigation",
97
97
  class: "n19lpak2",
98
98
  propsAsIs: !0
99
- }), dt = ({ activeOverlay: s, setActiveOverlay: n, sdkReady: c, className: D }) => /* @__PURE__ */ d(ht, { className: D, children: [
99
+ }), dt = ({ activeOverlay: s, setActiveOverlay: n, sdkReady: c, className: I }) => /* @__PURE__ */ d(ht, { className: I, children: [
100
100
  /* @__PURE__ */ u(ct, { active: s === Ne, onClick: () => n(Ne) }),
101
101
  /* @__PURE__ */ u(
102
102
  lt,
@@ -109,7 +109,7 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
109
109
  }
110
110
  ),
111
111
  /* @__PURE__ */ u(
112
- Dt,
112
+ It,
113
113
  {
114
114
  active: s === ze,
115
115
  onClick: () => n(ze)
@@ -140,7 +140,7 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
140
140
  class: "cdpal9o",
141
141
  propsAsIs: !1
142
142
  }), Et = ({ poster: s, source: n }) => {
143
- const c = je(null), [D, T] = W(!1), [I, N] = W(!0);
143
+ const c = je(null), [I, T] = W(!1), [D, N] = W(!0);
144
144
  return /* @__PURE__ */ d(yt, { onClick: () => {
145
145
  const o = c == null ? void 0 : c.current;
146
146
  o && T((h) => h ? (o.pause(), !1) : (o.play(), N(!1), !0));
@@ -154,11 +154,11 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
154
154
  var o;
155
155
  (o = c == null ? void 0 : c.current) == null || o.load(), T(!1), N(!0);
156
156
  },
157
- style: { visibility: I ? "hidden" : "visible" }
157
+ style: { visibility: D ? "hidden" : "visible" }
158
158
  }
159
159
  ),
160
- /* @__PURE__ */ u(zt, { src: s, style: { visibility: I ? "visible" : "hidden" } }),
161
- /* @__PURE__ */ u(xt, { children: !D && /* @__PURE__ */ u(b, { name: "icon-play" }) })
160
+ /* @__PURE__ */ u(zt, { src: s, style: { visibility: D ? "visible" : "hidden" } }),
161
+ /* @__PURE__ */ u(xt, { children: !I && /* @__PURE__ */ u(b, { name: "icon-play" }) })
162
162
  ] });
163
163
  }, ft = /* @__PURE__ */ l("div")({
164
164
  name: "InsightContainer",
@@ -188,14 +188,14 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
188
188
  video: s,
189
189
  image: n,
190
190
  heading: c,
191
- body: D,
191
+ body: I,
192
192
  action: T
193
193
  }) => /* @__PURE__ */ d(ft, { children: [
194
194
  (s == null ? void 0 : s.url) && /* @__PURE__ */ u(Et, { source: s.url, poster: s.thumbnailUrl }),
195
195
  n && !(s != null && s.url) && /* @__PURE__ */ u(Ot, { src: n }),
196
196
  /* @__PURE__ */ d(Lt, { children: [
197
197
  /* @__PURE__ */ u(wt, { children: c }),
198
- /* @__PURE__ */ u(mt, { children: D }),
198
+ /* @__PURE__ */ u(mt, { children: I }),
199
199
  T && /* @__PURE__ */ u(kt, { onClick: T, children: "View Insight" })
200
200
  ] })
201
201
  ] }), St = /* @__PURE__ */ l("div")({
@@ -258,7 +258,7 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
258
258
  name: "UserName",
259
259
  class: "u1p051g3",
260
260
  propsAsIs: !1
261
- }), Jt = ({ image: s, name: n, userName: c, verified: D }) => /* @__PURE__ */ d(Rt, { children: [
261
+ }), Jt = ({ image: s, name: n, userName: c, verified: I }) => /* @__PURE__ */ d(Rt, { children: [
262
262
  s && /* @__PURE__ */ d(Wt, { children: [
263
263
  /* @__PURE__ */ u(Gt, { src: s }),
264
264
  /* @__PURE__ */ u(Zt, { name: "twitter" })
@@ -267,7 +267,7 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
267
267
  /* @__PURE__ */ d(qt, { children: [
268
268
  n,
269
269
  " ",
270
- D && /* @__PURE__ */ u(b, { name: "icon-twitter-verified" })
270
+ I && /* @__PURE__ */ u(b, { name: "icon-twitter-verified" })
271
271
  ] }),
272
272
  c && /* @__PURE__ */ d(Ht, { children: [
273
273
  "@",
@@ -286,8 +286,8 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
286
286
  name: "Body",
287
287
  class: "bezygt5",
288
288
  propsAsIs: !1
289
- }), ir = ({ image: s, body: n, account: c, accountVerified: D }) => /* @__PURE__ */ u(Xt, { children: /* @__PURE__ */ d(Kt, { children: [
290
- /* @__PURE__ */ u(Jt, { image: s, name: c, userName: c, verified: D }),
289
+ }), ir = ({ image: s, body: n, account: c, accountVerified: I }) => /* @__PURE__ */ u(Xt, { children: /* @__PURE__ */ d(Kt, { children: [
290
+ /* @__PURE__ */ u(Jt, { image: s, name: c, userName: c, verified: I }),
291
291
  /* @__PURE__ */ u(er, { children: n })
292
292
  ] }) }), tr = /* @__PURE__ */ l("div")({
293
293
  name: "Container",
@@ -312,7 +312,7 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
312
312
  ] }), ei = ({
313
313
  close: s,
314
314
  action: n,
315
- data: { questionType: c, question: D, insight: T, tweet: I }
315
+ data: { questionType: c, question: I, insight: T, tweet: D }
316
316
  }) => {
317
317
  const N = pt[c];
318
318
  return N ? /* @__PURE__ */ d(St, { children: [
@@ -332,9 +332,9 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
332
332
  c === B.TWEET && // ToDo: connect with real Api data
333
333
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
334
334
  // @ts-ignore
335
- /* @__PURE__ */ u(or, { ...I, action: n }),
335
+ /* @__PURE__ */ u(or, { ...D, action: n }),
336
336
  c !== B.FACTOID && c !== B.TWEET && /* @__PURE__ */ d(te, { children: [
337
- /* @__PURE__ */ u(Ft, { children: D == null ? void 0 : D.title }),
337
+ /* @__PURE__ */ u(Ft, { children: I == null ? void 0 : I.title }),
338
338
  /* @__PURE__ */ u($t, { onClick: n, children: "Answer" })
339
339
  ] })
340
340
  ] }) : null;
@@ -362,11 +362,11 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
362
362
  name: "BGTwoLineOne",
363
363
  class: "b2iah4",
364
364
  propsAsIs: !0
365
- }), Dr = () => _, ti = /* @__PURE__ */ l(Dr())({
365
+ }), Ir = () => _, ti = /* @__PURE__ */ l(Ir())({
366
366
  name: "BGTwoLineTwo",
367
367
  class: "b1xezvf6",
368
368
  propsAsIs: !0
369
- }), Ir = () => _, ri = /* @__PURE__ */ l(Ir())({
369
+ }), Dr = () => _, ri = /* @__PURE__ */ l(Dr())({
370
370
  name: "BGTwoLineThree",
371
371
  class: "b1jz1hg0",
372
372
  propsAsIs: !0
@@ -445,10 +445,10 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
445
445
  children: s,
446
446
  style: n,
447
447
  className: c,
448
- hiding: D
448
+ hiding: I
449
449
  }) => /* @__PURE__ */ u(wr, {
450
450
  style: n,
451
- className: hi(c, D && mr),
451
+ className: hi(c, I && mr),
452
452
  children: s
453
453
  }), kr = 118, Cr = () => Be, Sr = /* @__PURE__ */ l(Cr())({
454
454
  name: "Container",
@@ -490,7 +490,7 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
490
490
  name: "CloseIcon",
491
491
  class: "c33p82r",
492
492
  propsAsIs: !0
493
- }), ue = (s, n) => s === n ? "translateY(0px)" : s > n ? "translateY(100%)" : "translateY(-100%)", vr = ({ close: s, votedAnswer: n, correct: c, correctAnswerTitle: D, questionTitle: T, saveHeight: I, style: N, hiding: o }) => {
493
+ }), ue = (s, n) => s === n ? "translateY(0px)" : s > n ? "translateY(100%)" : "translateY(-100%)", vr = ({ close: s, votedAnswer: n, correct: c, correctAnswerTitle: I, questionTitle: T, saveHeight: D, style: N, hiding: o }) => {
494
494
  const [h, A] = W(1), y = je({});
495
495
  J(() => {
496
496
  const j = setInterval(() => {
@@ -499,8 +499,8 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
499
499
  return () => clearInterval(j);
500
500
  }, [c]), J(() => {
501
501
  var j, p;
502
- y.current[h] && I(((p = (j = y.current[h]) == null ? void 0 : j.getBoundingClientRect()) == null ? void 0 : p.height) || kr);
503
- }, [h, I]);
502
+ y.current[h] && D(((p = (j = y.current[h]) == null ? void 0 : j.getBoundingClientRect()) == null ? void 0 : p.height) || kr);
503
+ }, [h, D]);
504
504
  const E = (j) => (p) => {
505
505
  y.current && (y.current[j] = p);
506
506
  };
@@ -572,7 +572,7 @@ const et = ({ feature: s, sdk: n, children: c, className: D }) => {
572
572
  ] }) : /* @__PURE__ */ d(Me, { ref: E(4), style: { transform: ue(4, h) }, children: [
573
573
  /* @__PURE__ */ d(ce, { style: { color: "var(--color-neutrals-gray9)" }, children: [
574
574
  "Better luck next time! Correct: ",
575
- D,
575
+ I,
576
576
  "."
577
577
  ] }),
578
578
  /* @__PURE__ */ d(Te, { style: { color: "var(--color-secondary-red1)" }, children: [
@@ -603,58 +603,58 @@ function yi(s) {
603
603
  throw new Error("Invalid string. Length must be a multiple of 4");
604
604
  var c = s.indexOf("=");
605
605
  c === -1 && (c = n);
606
- var D = c === n ? 0 : 4 - c % 4;
607
- return [c, D];
606
+ var I = c === n ? 0 : 4 - c % 4;
607
+ return [c, I];
608
608
  }
609
609
  function Fr(s) {
610
- var n = yi(s), c = n[0], D = n[1];
611
- return (c + D) * 3 / 4 - D;
610
+ var n = yi(s), c = n[0], I = n[1];
611
+ return (c + I) * 3 / 4 - I;
612
612
  }
613
613
  function $r(s, n, c) {
614
614
  return (n + c) * 3 / 4 - c;
615
615
  }
616
616
  function Rr(s) {
617
- var n, c = yi(s), D = c[0], T = c[1], I = new Br($r(s, D, T)), N = 0, o = T > 0 ? D - 4 : D, h;
617
+ var n, c = yi(s), I = c[0], T = c[1], D = new Br($r(s, I, T)), N = 0, o = T > 0 ? I - 4 : I, h;
618
618
  for (h = 0; h < o; h += 4)
619
- n = $[s.charCodeAt(h)] << 18 | $[s.charCodeAt(h + 1)] << 12 | $[s.charCodeAt(h + 2)] << 6 | $[s.charCodeAt(h + 3)], I[N++] = n >> 16 & 255, I[N++] = n >> 8 & 255, I[N++] = n & 255;
620
- return T === 2 && (n = $[s.charCodeAt(h)] << 2 | $[s.charCodeAt(h + 1)] >> 4, I[N++] = n & 255), T === 1 && (n = $[s.charCodeAt(h)] << 10 | $[s.charCodeAt(h + 1)] << 4 | $[s.charCodeAt(h + 2)] >> 2, I[N++] = n >> 8 & 255, I[N++] = n & 255), I;
619
+ n = $[s.charCodeAt(h)] << 18 | $[s.charCodeAt(h + 1)] << 12 | $[s.charCodeAt(h + 2)] << 6 | $[s.charCodeAt(h + 3)], D[N++] = n >> 16 & 255, D[N++] = n >> 8 & 255, D[N++] = n & 255;
620
+ return T === 2 && (n = $[s.charCodeAt(h)] << 2 | $[s.charCodeAt(h + 1)] >> 4, D[N++] = n & 255), T === 1 && (n = $[s.charCodeAt(h)] << 10 | $[s.charCodeAt(h + 1)] << 4 | $[s.charCodeAt(h + 2)] >> 2, D[N++] = n >> 8 & 255, D[N++] = n & 255), D;
621
621
  }
622
622
  function Wr(s) {
623
623
  return V[s >> 18 & 63] + V[s >> 12 & 63] + V[s >> 6 & 63] + V[s & 63];
624
624
  }
625
625
  function Gr(s, n, c) {
626
- for (var D, T = [], I = n; I < c; I += 3)
627
- D = (s[I] << 16 & 16711680) + (s[I + 1] << 8 & 65280) + (s[I + 2] & 255), T.push(Wr(D));
626
+ for (var I, T = [], D = n; D < c; D += 3)
627
+ I = (s[D] << 16 & 16711680) + (s[D + 1] << 8 & 65280) + (s[D + 2] & 255), T.push(Wr(I));
628
628
  return T.join("");
629
629
  }
630
630
  function Pr(s) {
631
- for (var n, c = s.length, D = c % 3, T = [], I = 16383, N = 0, o = c - D; N < o; N += I)
632
- T.push(Gr(s, N, N + I > o ? o : N + I));
633
- return D === 1 ? (n = s[c - 1], T.push(
631
+ for (var n, c = s.length, I = c % 3, T = [], D = 16383, N = 0, o = c - I; N < o; N += D)
632
+ T.push(Gr(s, N, N + D > o ? o : N + D));
633
+ return I === 1 ? (n = s[c - 1], T.push(
634
634
  V[n >> 2] + V[n << 4 & 63] + "=="
635
- )) : D === 2 && (n = (s[c - 2] << 8) + s[c - 1], T.push(
635
+ )) : I === 2 && (n = (s[c - 2] << 8) + s[c - 1], T.push(
636
636
  V[n >> 10] + V[n >> 4 & 63] + V[n << 2 & 63] + "="
637
637
  )), T.join("");
638
638
  }
639
639
  var _e = {};
640
640
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
641
- _e.read = function(s, n, c, D, T) {
642
- var I, N, o = T * 8 - D - 1, h = (1 << o) - 1, A = h >> 1, y = -7, E = c ? T - 1 : 0, j = c ? -1 : 1, p = s[n + E];
643
- for (E += j, I = p & (1 << -y) - 1, p >>= -y, y += o; y > 0; I = I * 256 + s[n + E], E += j, y -= 8)
641
+ _e.read = function(s, n, c, I, T) {
642
+ var D, N, o = T * 8 - I - 1, h = (1 << o) - 1, A = h >> 1, y = -7, E = c ? T - 1 : 0, j = c ? -1 : 1, p = s[n + E];
643
+ for (E += j, D = p & (1 << -y) - 1, p >>= -y, y += o; y > 0; D = D * 256 + s[n + E], E += j, y -= 8)
644
644
  ;
645
- for (N = I & (1 << -y) - 1, I >>= -y, y += D; y > 0; N = N * 256 + s[n + E], E += j, y -= 8)
645
+ for (N = D & (1 << -y) - 1, D >>= -y, y += I; y > 0; N = N * 256 + s[n + E], E += j, y -= 8)
646
646
  ;
647
- if (I === 0)
648
- I = 1 - A;
647
+ if (D === 0)
648
+ D = 1 - A;
649
649
  else {
650
- if (I === h)
650
+ if (D === h)
651
651
  return N ? NaN : (p ? -1 : 1) * (1 / 0);
652
- N = N + Math.pow(2, D), I = I - A;
652
+ N = N + Math.pow(2, I), D = D - A;
653
653
  }
654
- return (p ? -1 : 1) * N * Math.pow(2, I - D);
654
+ return (p ? -1 : 1) * N * Math.pow(2, D - I);
655
655
  };
656
- _e.write = function(s, n, c, D, T, I) {
657
- var N, o, h, A = I * 8 - T - 1, y = (1 << A) - 1, E = y >> 1, j = T === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = D ? 0 : I - 1, z = D ? 1 : -1, f = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
656
+ _e.write = function(s, n, c, I, T, D) {
657
+ var N, o, h, A = D * 8 - T - 1, y = (1 << A) - 1, E = y >> 1, j = T === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = I ? 0 : D - 1, z = I ? 1 : -1, f = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
658
658
  for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, N = y) : (N = Math.floor(Math.log(n) / Math.LN2), n * (h = Math.pow(2, -N)) < 1 && (N--, h *= 2), N + E >= 1 ? n += j / h : n += j * Math.pow(2, 1 - E), n * h >= 2 && (N++, h /= 2), N + E >= y ? (o = 0, N = y) : N + E >= 1 ? (o = (n * h - 1) * Math.pow(2, T), N = N + E) : (o = n * Math.pow(2, E - 1) * Math.pow(2, T), N = 0)); T >= 8; s[c + p] = o & 255, p += z, o /= 256, T -= 8)
659
659
  ;
660
660
  for (N = N << T | o, A += T; A > 0; s[c + p] = N & 255, p += z, N /= 256, A -= 8)
@@ -668,13 +668,13 @@ _e.write = function(s, n, c, D, T, I) {
668
668
  * @license MIT
669
669
  */
670
670
  (function(s) {
671
- const n = xe, c = _e, D = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
671
+ const n = xe, c = _e, I = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
672
672
  s.Buffer = o, s.SlowBuffer = w, s.INSPECT_MAX_BYTES = 50;
673
673
  const T = 2147483647;
674
- s.kMaxLength = T, o.TYPED_ARRAY_SUPPORT = I(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
674
+ s.kMaxLength = T, o.TYPED_ARRAY_SUPPORT = D(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
675
675
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
676
676
  );
677
- function I() {
677
+ function D() {
678
678
  try {
679
679
  const t = new Uint8Array(1), e = { foo: function() {
680
680
  return 42;
@@ -975,7 +975,7 @@ _e.write = function(s, n, c, D, T, I) {
975
975
  let e = "";
976
976
  const i = s.INSPECT_MAX_BYTES;
977
977
  return e = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (e += " ... "), "<Buffer " + e + ">";
978
- }, D && (o.prototype[D] = o.prototype.inspect), o.prototype.compare = function(e, i, r, M, a) {
978
+ }, I && (o.prototype[I] = o.prototype.inspect), o.prototype.compare = function(e, i, r, M, a) {
979
979
  if (G(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), !o.isBuffer(e))
980
980
  throw new TypeError(
981
981
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
@@ -1237,13 +1237,13 @@ _e.write = function(s, n, c, D, T, I) {
1237
1237
  }, o.prototype.readBigUInt64LE = K(function(e) {
1238
1238
  e = e >>> 0, se(e, "offset");
1239
1239
  const i = this[e], r = this[e + 7];
1240
- (i === void 0 || r === void 0) && De(e, this.length - 8);
1240
+ (i === void 0 || r === void 0) && Ie(e, this.length - 8);
1241
1241
  const M = i + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, a = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + r * 2 ** 24;
1242
1242
  return BigInt(M) + (BigInt(a) << BigInt(32));
1243
1243
  }), o.prototype.readBigUInt64BE = K(function(e) {
1244
1244
  e = e >>> 0, se(e, "offset");
1245
1245
  const i = this[e], r = this[e + 7];
1246
- (i === void 0 || r === void 0) && De(e, this.length - 8);
1246
+ (i === void 0 || r === void 0) && Ie(e, this.length - 8);
1247
1247
  const M = i * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], a = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + r;
1248
1248
  return (BigInt(M) << BigInt(32)) + BigInt(a);
1249
1249
  }), o.prototype.readIntLE = function(e, i, r) {
@@ -1275,13 +1275,13 @@ _e.write = function(s, n, c, D, T, I) {
1275
1275
  }, o.prototype.readBigInt64LE = K(function(e) {
1276
1276
  e = e >>> 0, se(e, "offset");
1277
1277
  const i = this[e], r = this[e + 7];
1278
- (i === void 0 || r === void 0) && De(e, this.length - 8);
1278
+ (i === void 0 || r === void 0) && Ie(e, this.length - 8);
1279
1279
  const M = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (r << 24);
1280
1280
  return (BigInt(M) << BigInt(32)) + BigInt(i + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
1281
1281
  }), o.prototype.readBigInt64BE = K(function(e) {
1282
1282
  e = e >>> 0, se(e, "offset");
1283
1283
  const i = this[e], r = this[e + 7];
1284
- (i === void 0 || r === void 0) && De(e, this.length - 8);
1284
+ (i === void 0 || r === void 0) && Ie(e, this.length - 8);
1285
1285
  const M = (i << 24) + // Overflow
1286
1286
  this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
1287
1287
  return (BigInt(M) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + r);
@@ -1505,7 +1505,7 @@ _e.write = function(s, n, c, D, T, I) {
1505
1505
  return `${t.slice(0, i)}${e}`;
1506
1506
  }
1507
1507
  function bi(t, e, i) {
1508
- se(e, "offset"), (t[e] === void 0 || t[e + i] === void 0) && De(e, t.length - (i + 1));
1508
+ se(e, "offset"), (t[e] === void 0 || t[e + i] === void 0) && Ie(e, t.length - (i + 1));
1509
1509
  }
1510
1510
  function Je(t, e, i, r, M, a) {
1511
1511
  if (t > i || t < e) {
@@ -1519,7 +1519,7 @@ _e.write = function(s, n, c, D, T, I) {
1519
1519
  if (typeof t != "number")
1520
1520
  throw new ne.ERR_INVALID_ARG_TYPE(e, "number", t);
1521
1521
  }
1522
- function De(t, e, i) {
1522
+ function Ie(t, e, i) {
1523
1523
  throw Math.floor(t) !== t ? (se(t, i), new ne.ERR_OUT_OF_RANGE(i || "offset", "an integer", t)) : e < 0 ? new ne.ERR_BUFFER_OUT_OF_BOUNDS() : new ne.ERR_OUT_OF_RANGE(
1524
1524
  i || "offset",
1525
1525
  `>= ${i ? 1 : 0} and <= ${e}`,
@@ -1750,8 +1750,8 @@ S.umask = function() {
1750
1750
  var qr = Ai.exports;
1751
1751
  (function(s) {
1752
1752
  Object.defineProperty(s, Symbol.toStringTag, { value: "Module" });
1753
- const n = pi, c = qr, D = (N) => N && N.__esModule ? N : { default: N }, T = D(c), I = globalThis || void 0 || self;
1754
- Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () => T.default }), s.global = I;
1753
+ const n = pi, c = qr, I = (N) => N && N.__esModule ? N : { default: N }, T = I(c), D = globalThis || void 0 || self;
1754
+ Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () => T.default }), s.global = D;
1755
1755
  })(di);
1756
1756
  let R;
1757
1757
  typeof window < "u" ? R = window : typeof self < "u" ? R = self : R = di.global;
@@ -1763,33 +1763,33 @@ ke == null || gi == null ? (Ue = me, Ye = function(n) {
1763
1763
  ke(n), me(c);
1764
1764
  }, Ye = function(n) {
1765
1765
  const c = gi(function() {
1766
- me(D), n();
1767
- }), D = Ni(function() {
1766
+ me(I), n();
1767
+ }), I = Ni(function() {
1768
1768
  ke(c), n();
1769
1769
  }, li);
1770
- return [c, D];
1770
+ return [c, I];
1771
1771
  });
1772
1772
  function Hr(s) {
1773
- let n, c, D, T, I, N, o;
1773
+ let n, c, I, T, D, N, o;
1774
1774
  const h = typeof document < "u" && document.attachEvent;
1775
1775
  if (!h) {
1776
1776
  N = function(O) {
1777
1777
  const w = O.__resizeTriggers__, Q = w.firstElementChild, q = w.lastElementChild, F = Q.firstElementChild;
1778
1778
  q.scrollLeft = q.scrollWidth, q.scrollTop = q.scrollHeight, F.style.width = Q.offsetWidth + 1 + "px", F.style.height = Q.offsetHeight + 1 + "px", Q.scrollLeft = Q.scrollWidth, Q.scrollTop = Q.scrollHeight;
1779
- }, I = function(O) {
1779
+ }, D = function(O) {
1780
1780
  return O.offsetWidth !== O.__resizeLast__.width || O.offsetHeight !== O.__resizeLast__.height;
1781
1781
  }, o = function(O) {
1782
1782
  if (O.target.className && typeof O.target.className.indexOf == "function" && O.target.className.indexOf("contract-trigger") < 0 && O.target.className.indexOf("expand-trigger") < 0)
1783
1783
  return;
1784
1784
  const w = this;
1785
1785
  N(this), this.__resizeRAF__ && Ue(this.__resizeRAF__), this.__resizeRAF__ = Ye(function() {
1786
- I(w) && (w.__resizeLast__.width = w.offsetWidth, w.__resizeLast__.height = w.offsetHeight, w.__resizeListeners__.forEach(function(F) {
1786
+ D(w) && (w.__resizeLast__.width = w.offsetWidth, w.__resizeLast__.height = w.offsetHeight, w.__resizeListeners__.forEach(function(F) {
1787
1787
  F.call(w, O);
1788
1788
  }));
1789
1789
  });
1790
1790
  };
1791
1791
  let j = !1, p = "";
1792
- D = "animationstart";
1792
+ I = "animationstart";
1793
1793
  const z = "Webkit Moz O ms".split(" ");
1794
1794
  let f = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), U = "";
1795
1795
  {
@@ -1797,7 +1797,7 @@ function Hr(s) {
1797
1797
  if (O.style.animationName !== void 0 && (j = !0), j === !1) {
1798
1798
  for (let w = 0; w < z.length; w++)
1799
1799
  if (O.style[z[w] + "AnimationName"] !== void 0) {
1800
- U = z[w], p = "-" + U.toLowerCase() + "-", D = f[w], j = !0;
1800
+ U = z[w], p = "-" + U.toLowerCase() + "-", I = f[w], j = !0;
1801
1801
  break;
1802
1802
  }
1803
1803
  }
@@ -1821,9 +1821,9 @@ function Hr(s) {
1821
1821
  const U = z.createElement("div");
1822
1822
  U.className = "expand-trigger", U.appendChild(z.createElement("div"));
1823
1823
  const O = z.createElement("div");
1824
- O.className = "contract-trigger", j.__resizeTriggers__.appendChild(U), j.__resizeTriggers__.appendChild(O), j.appendChild(j.__resizeTriggers__), N(j), j.addEventListener("scroll", o, !0), D && (j.__resizeTriggers__.__animationListener__ = function(Q) {
1824
+ O.className = "contract-trigger", j.__resizeTriggers__.appendChild(U), j.__resizeTriggers__.appendChild(O), j.appendChild(j.__resizeTriggers__), N(j), j.addEventListener("scroll", o, !0), I && (j.__resizeTriggers__.__animationListener__ = function(Q) {
1825
1825
  Q.animationName === c && N(j);
1826
- }, j.__resizeTriggers__.addEventListener(D, j.__resizeTriggers__.__animationListener__));
1826
+ }, j.__resizeTriggers__.addEventListener(I, j.__resizeTriggers__.__animationListener__));
1827
1827
  }
1828
1828
  j.__resizeListeners__.push(p);
1829
1829
  }
@@ -1832,7 +1832,7 @@ function Hr(s) {
1832
1832
  if (h)
1833
1833
  j.detachEvent("onresize", p);
1834
1834
  else if (j.__resizeListeners__.splice(j.__resizeListeners__.indexOf(p), 1), !j.__resizeListeners__.length) {
1835
- j.removeEventListener("scroll", o, !0), j.__resizeTriggers__.__animationListener__ && (j.__resizeTriggers__.removeEventListener(D, j.__resizeTriggers__.__animationListener__), j.__resizeTriggers__.__animationListener__ = null);
1835
+ j.removeEventListener("scroll", o, !0), j.__resizeTriggers__.__animationListener__ && (j.__resizeTriggers__.removeEventListener(I, j.__resizeTriggers__.__animationListener__), j.__resizeTriggers__.__animationListener__ = null);
1836
1836
  try {
1837
1837
  j.__resizeTriggers__ = !j.removeChild(j.__resizeTriggers__);
1838
1838
  } catch {
@@ -1852,13 +1852,13 @@ class Jr extends Hi {
1852
1852
  this._timeoutId = null;
1853
1853
  const {
1854
1854
  disableHeight: c,
1855
- disableWidth: D,
1855
+ disableWidth: I,
1856
1856
  onResize: T
1857
1857
  } = this.props;
1858
1858
  if (this._parentNode) {
1859
- var I, N, o, h;
1860
- const A = window.getComputedStyle(this._parentNode) || {}, y = parseFloat((I = A.paddingLeft) !== null && I !== void 0 ? I : "0"), E = parseFloat((N = A.paddingRight) !== null && N !== void 0 ? N : "0"), j = parseFloat((o = A.paddingTop) !== null && o !== void 0 ? o : "0"), p = parseFloat((h = A.paddingBottom) !== null && h !== void 0 ? h : "0"), z = this._parentNode.getBoundingClientRect(), f = z.height - j - p, U = z.width - y - E, O = this._parentNode.offsetHeight - j - p, w = this._parentNode.offsetWidth - y - E;
1861
- (!c && (this.state.height !== O || this.state.scaledHeight !== f) || !D && (this.state.width !== w || this.state.scaledWidth !== U)) && (this.setState({
1859
+ var D, N, o, h;
1860
+ const A = window.getComputedStyle(this._parentNode) || {}, y = parseFloat((D = A.paddingLeft) !== null && D !== void 0 ? D : "0"), E = parseFloat((N = A.paddingRight) !== null && N !== void 0 ? N : "0"), j = parseFloat((o = A.paddingTop) !== null && o !== void 0 ? o : "0"), p = parseFloat((h = A.paddingBottom) !== null && h !== void 0 ? h : "0"), z = this._parentNode.getBoundingClientRect(), f = z.height - j - p, U = z.width - y - E, O = this._parentNode.offsetHeight - j - p, w = this._parentNode.offsetWidth - y - E;
1861
+ (!c && (this.state.height !== O || this.state.scaledHeight !== f) || !I && (this.state.width !== w || this.state.scaledWidth !== U)) && (this.setState({
1862
1862
  height: O,
1863
1863
  width: w,
1864
1864
  scaledHeight: f,
@@ -1889,9 +1889,9 @@ class Jr extends Hi {
1889
1889
  const {
1890
1890
  children: n,
1891
1891
  defaultHeight: c,
1892
- defaultWidth: D,
1892
+ defaultWidth: I,
1893
1893
  disableHeight: T = !1,
1894
- disableWidth: I = !1,
1894
+ disableWidth: D = !1,
1895
1895
  nonce: N,
1896
1896
  onResize: o,
1897
1897
  style: h = {},
@@ -1906,7 +1906,7 @@ class Jr extends Hi {
1906
1906
  overflow: "visible"
1907
1907
  }, U = {};
1908
1908
  let O = !1;
1909
- return T || (E === 0 && (O = !0), f.height = 0, U.height = E, U.scaledHeight = j), I || (z === 0 && (O = !0), f.width = 0, U.width = z, U.scaledWidth = p), Ji(A, {
1909
+ return T || (E === 0 && (O = !0), f.height = 0, U.height = E, U.scaledHeight = j), D || (z === 0 && (O = !0), f.width = 0, U.width = z, U.scaledWidth = p), Ji(A, {
1910
1910
  ref: this._setRef,
1911
1911
  style: {
1912
1912
  ...f,
@@ -1944,14 +1944,14 @@ const Xr = /* @__PURE__ */ l("div")({
1944
1944
  width: s,
1945
1945
  graphicSrc: n,
1946
1946
  headline: c,
1947
- stepsCount: D,
1947
+ stepsCount: I,
1948
1948
  currentStep: T
1949
1949
  }) => /* @__PURE__ */ d(Xr, { children: [
1950
1950
  /* @__PURE__ */ d(Kr, { children: [
1951
1951
  /* @__PURE__ */ u(en, { "data-centered": T === 0, children: /* @__PURE__ */ u("img", { src: n, alt: c, width: s || 300 }) }),
1952
1952
  c && /* @__PURE__ */ u(tn, { children: c })
1953
1953
  ] }),
1954
- /* @__PURE__ */ u(rn, { children: Array.from({ length: D }).map((I, N) => /* @__PURE__ */ u(nn, { "data-active": T === N }, N)) })
1954
+ /* @__PURE__ */ u(rn, { children: Array.from({ length: I }).map((D, N) => /* @__PURE__ */ u(nn, { "data-active": T === N }, N)) })
1955
1955
  ] }), on = /* @__PURE__ */ l("div")({
1956
1956
  name: "Container",
1957
1957
  class: "c1itm4k7",
@@ -1980,11 +1980,11 @@ const Xr = /* @__PURE__ */ l("div")({
1980
1980
  name: "LinkContainer",
1981
1981
  class: "l1wot35e",
1982
1982
  propsAsIs: !1
1983
- }), Dn = /* @__PURE__ */ l("div")({
1983
+ }), In = /* @__PURE__ */ l("div")({
1984
1984
  name: "LinkInfo",
1985
1985
  class: "l1jdw39q",
1986
1986
  propsAsIs: !1
1987
- }), In = /* @__PURE__ */ l("span")({
1987
+ }), Dn = /* @__PURE__ */ l("span")({
1988
1988
  name: "LinkTitle",
1989
1989
  class: "l1cr5mk",
1990
1990
  propsAsIs: !1
@@ -2012,14 +2012,14 @@ const Xr = /* @__PURE__ */ l("div")({
2012
2012
  inviteLink: s,
2013
2013
  socialLinks: n,
2014
2014
  inviteCardTitle: c,
2015
- inviteCardSubtext: D,
2015
+ inviteCardSubtext: I,
2016
2016
  primaryColor: T,
2017
- className: I
2018
- }) => /* @__PURE__ */ d(on, { className: I, children: [
2017
+ className: D
2018
+ }) => /* @__PURE__ */ d(on, { className: D, children: [
2019
2019
  /* @__PURE__ */ u(Mn, { style: { backgroundColor: T }, children: /* @__PURE__ */ u(un, { name: "invite-game-icon" }) }),
2020
2020
  /* @__PURE__ */ d(an, { children: [
2021
2021
  /* @__PURE__ */ u(ln, { children: c || "" }),
2022
- /* @__PURE__ */ u(Nn, { children: D || "" })
2022
+ /* @__PURE__ */ u(Nn, { children: I || "" })
2023
2023
  ] }),
2024
2024
  s && /* @__PURE__ */ d(gn, { onClick: async () => {
2025
2025
  if (s)
@@ -2029,8 +2029,8 @@ const Xr = /* @__PURE__ */ l("div")({
2029
2029
  console.error("Unable to copy to clipboard", N);
2030
2030
  }
2031
2031
  }, children: [
2032
- /* @__PURE__ */ d(Dn, { children: [
2033
- /* @__PURE__ */ u(In, { children: "Invite link" }),
2032
+ /* @__PURE__ */ d(In, { children: [
2033
+ /* @__PURE__ */ u(Dn, { children: "Invite link" }),
2034
2034
  /* @__PURE__ */ u(Tn, { children: s })
2035
2035
  ] }),
2036
2036
  /* @__PURE__ */ u(hn, { name: "icon-copy" })
@@ -2074,10 +2074,10 @@ const Xr = /* @__PURE__ */ l("div")({
2074
2074
  }), kn = ({ rules: s, rulesTitle: n, primaryColor: c }) => /* @__PURE__ */ d(zn, { children: [
2075
2075
  /* @__PURE__ */ d(xn, { children: [
2076
2076
  /* @__PURE__ */ u(En, { children: n }),
2077
- /* @__PURE__ */ u(fn, { children: s == null ? void 0 : s.map(({ label: D, icon: T }, I) => /* @__PURE__ */ d(On, { children: [
2077
+ /* @__PURE__ */ u(fn, { children: s == null ? void 0 : s.map(({ label: I, icon: T }, D) => /* @__PURE__ */ d(On, { children: [
2078
2078
  T && /* @__PURE__ */ u(Ln, { style: { backgroundColor: c }, children: /* @__PURE__ */ u(b, { name: T, "data-icon": T }) }),
2079
- /* @__PURE__ */ u(wn, { children: D })
2080
- ] }, I)) })
2079
+ /* @__PURE__ */ u(wn, { children: I })
2080
+ ] }, D)) })
2081
2081
  ] }),
2082
2082
  /* @__PURE__ */ u(mn, { children: "See Terms and Conditions" })
2083
2083
  ] }), Cn = /* @__PURE__ */ l("button")({
@@ -2088,7 +2088,7 @@ const Xr = /* @__PURE__ */ l("div")({
2088
2088
  name: "ButtonLabel",
2089
2089
  class: "b1xoswwx",
2090
2090
  propsAsIs: !1
2091
- }), Un = ({ disabled: s, variant: n = "primary", onClick: c, children: D, ...T }) => /* @__PURE__ */ u(Cn, { onClick: c, disabled: s, "data-variant": n, ...T, children: /* @__PURE__ */ u(Sn, { children: D }) }), Yn = /* @__PURE__ */ l("div")({
2091
+ }), Un = ({ disabled: s, variant: n = "primary", onClick: c, children: I, ...T }) => /* @__PURE__ */ u(Cn, { onClick: c, disabled: s, "data-variant": n, ...T, children: /* @__PURE__ */ u(Sn, { children: I }) }), Yn = /* @__PURE__ */ l("div")({
2092
2092
  name: "Container",
2093
2093
  class: "c18uddbs",
2094
2094
  propsAsIs: !1
@@ -2124,9 +2124,9 @@ const Xr = /* @__PURE__ */ l("div")({
2124
2124
  gamification: s,
2125
2125
  steps: n,
2126
2126
  rules: c,
2127
- rulesBtnLabel: D,
2127
+ rulesBtnLabel: I,
2128
2128
  rulesTitle: T,
2129
- primaryColor: I,
2129
+ primaryColor: D,
2130
2130
  inviteLink: N,
2131
2131
  socialLinks: o,
2132
2132
  inviteCardTitle: h,
@@ -2138,7 +2138,7 @@ const Xr = /* @__PURE__ */ l("div")({
2138
2138
  J(() => {
2139
2139
  n != null && n.length ? f({ ...le, steps: !0 }) : c != null && c.length ? f({ ...le, rules: !0 }) : f({ ...le, inviteCard: !0 });
2140
2140
  }, []);
2141
- const U = Qe(() => z.steps && j === 0 ? "Continue" : z.rules ? D || "Got it" : z.inviteCard ? y || "Play Now" : "Next", [z, j, D, y]), O = Ae(() => {
2141
+ const U = Qe(() => z.steps && j === 0 ? "Continue" : z.rules ? I || "Got it" : z.inviteCard ? y || "Play Now" : "Next", [z, j, I, y]), O = Ae(() => {
2142
2142
  n != null && n.length && j < n.length - 1 ? p((Q) => ++Q) : c != null && c.length && z.steps ? f({ ...le, rules: !0 }) : z.rules && f({ ...le, inviteCard: !0 });
2143
2143
  }, [j, n == null ? void 0 : n.length, c == null ? void 0 : c.length, z, p, f]), w = async () => {
2144
2144
  await s.onboardingStatus.submitInplay();
@@ -2147,14 +2147,14 @@ const Xr = /* @__PURE__ */ l("div")({
2147
2147
  /* @__PURE__ */ u(bn, { children: /* @__PURE__ */ u(vn, { onClick: E, children: /* @__PURE__ */ u(_n, { name: "icon-close-btn-gray" }) }) }),
2148
2148
  /* @__PURE__ */ d(Qn, { children: [
2149
2149
  z.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ u(sn, { stepsCount: n.length, currentStep: j, ...n[j] }),
2150
- z.rules && /* @__PURE__ */ u(kn, { rules: c, rulesTitle: T, primaryColor: I }),
2150
+ z.rules && /* @__PURE__ */ u(kn, { rules: c, rulesTitle: T, primaryColor: D }),
2151
2151
  z.inviteCard && /* @__PURE__ */ u(
2152
2152
  An,
2153
2153
  {
2154
2154
  inviteLink: N,
2155
2155
  inviteCardTitle: h,
2156
2156
  inviteCardSubtext: A,
2157
- primaryColor: I,
2157
+ primaryColor: D,
2158
2158
  socialLinks: o
2159
2159
  }
2160
2160
  )
@@ -2197,12 +2197,12 @@ const Xr = /* @__PURE__ */ l("div")({
2197
2197
  name: "ActionButton",
2198
2198
  class: "ay8e3j9",
2199
2199
  propsAsIs: !1
2200
- }), Di = ({ close: s, action: n, onboarding: c }) => {
2201
- var D, T, I, N, o, h, A, y;
2200
+ }), Ii = ({ close: s, action: n, onboarding: c }) => {
2201
+ var I, T, D, N, o, h, A, y;
2202
2202
  return /* @__PURE__ */ d(Gn, { children: [
2203
2203
  /* @__PURE__ */ u(Pn, { onClick: s, children: /* @__PURE__ */ u(Vn, { name: "icon-cross" }) }),
2204
- ((T = (D = c == null ? void 0 : c.titleCard) == null ? void 0 : D.media) == null ? void 0 : T.sponsorLogo) && /* @__PURE__ */ d(qn, { children: [
2205
- /* @__PURE__ */ u(Hn, { alt: "sponsor-logo", src: (N = (I = c == null ? void 0 : c.titleCard) == null ? void 0 : I.media) == null ? void 0 : N.sponsorLogo }),
2204
+ ((T = (I = c == null ? void 0 : c.titleCard) == null ? void 0 : I.media) == null ? void 0 : T.sponsorLogo) && /* @__PURE__ */ d(qn, { children: [
2205
+ /* @__PURE__ */ u(Hn, { alt: "sponsor-logo", src: (N = (D = c == null ? void 0 : c.titleCard) == null ? void 0 : D.media) == null ? void 0 : N.sponsorLogo }),
2206
2206
  /* @__PURE__ */ u(Jn, { children: "PRESENTS" })
2207
2207
  ] }),
2208
2208
  ((o = c == null ? void 0 : c.titleCard) == null ? void 0 : o.title) && /* @__PURE__ */ u(Xn, { children: (h = c == null ? void 0 : c.titleCard) == null ? void 0 : h.title }),
@@ -2217,7 +2217,7 @@ const Xr = /* @__PURE__ */ l("div")({
2217
2217
  name: "OnboardingNotificationContainer",
2218
2218
  class: "o1c8wcli",
2219
2219
  propsAsIs: !0
2220
- }), Ii = /* @__PURE__ */ l("div")({
2220
+ }), Di = /* @__PURE__ */ l("div")({
2221
2221
  name: "InnerContainer",
2222
2222
  class: "i18oyadd",
2223
2223
  propsAsIs: !1
@@ -2225,9 +2225,9 @@ const Xr = /* @__PURE__ */ l("div")({
2225
2225
  deepLink: s,
2226
2226
  onboardingOpts: n,
2227
2227
  notification: c,
2228
- gamification: D
2228
+ gamification: I
2229
2229
  }) => {
2230
- var T, I, N, o, h, A;
2230
+ var T, D, N, o, h, A;
2231
2231
  const [y, E] = W(void 0);
2232
2232
  return J(() => {
2233
2233
  const j = s.$store.subscribe((p) => {
@@ -2250,7 +2250,7 @@ const Xr = /* @__PURE__ */ l("div")({
2250
2250
  icon: "icon-trophy"
2251
2251
  }],
2252
2252
  rulesBtnLabel: (T = n.rules) == null ? void 0 : T.buttonLabel,
2253
- rulesTitle: (I = n.rules) == null ? void 0 : I.heading,
2253
+ rulesTitle: (D = n.rules) == null ? void 0 : D.heading,
2254
2254
  steps: [{
2255
2255
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
2256
2256
  headline: "Welcome to the Featured Groups +",
@@ -2287,20 +2287,20 @@ const Xr = /* @__PURE__ */ l("div")({
2287
2287
  link: "https://twitter.com/@TheMasters",
2288
2288
  label: "X"
2289
2289
  }],
2290
- gamification: D
2290
+ gamification: I
2291
2291
  })
2292
2292
  });
2293
2293
  }, Ms = ({
2294
2294
  sdk: s,
2295
2295
  notification: n,
2296
2296
  saveHeight: c,
2297
- style: D
2297
+ style: I
2298
2298
  }) => {
2299
2299
  var T;
2300
- const I = je(null), [N, o] = W(!1), h = s.getFeature(be.GAMES), A = n.data.onboarding;
2300
+ const D = je(null), [N, o] = W(!1), h = s.getFeature(be.GAMES), A = n.data.onboarding;
2301
2301
  return (T = A == null ? void 0 : A.titleCard) != null && T.media && (A.titleCard.media.sponsorLogo = is), Xi(() => {
2302
2302
  var y;
2303
- c(((y = I.current) == null ? void 0 : y.getBoundingClientRect().height) || 0);
2303
+ c(((y = D.current) == null ? void 0 : y.getBoundingClientRect().height) || 0);
2304
2304
  }, [c]), N && h && A ? /* @__PURE__ */ u(os, {
2305
2305
  notification: n,
2306
2306
  setOpened: o,
@@ -2308,15 +2308,15 @@ const Xr = /* @__PURE__ */ l("div")({
2308
2308
  onboardingOpts: A,
2309
2309
  deepLink: h.deepLink
2310
2310
  }) : /* @__PURE__ */ d(te, {
2311
- children: [/* @__PURE__ */ u(Ii, {
2311
+ children: [/* @__PURE__ */ u(Di, {
2312
2312
  ref: (y) => {
2313
- I.current = y;
2313
+ D.current = y;
2314
2314
  },
2315
2315
  style: {
2316
2316
  position: "absolute",
2317
2317
  visibility: "hidden"
2318
2318
  },
2319
- children: /* @__PURE__ */ u(Di, {
2319
+ children: /* @__PURE__ */ u(Ii, {
2320
2320
  close: () => {
2321
2321
  },
2322
2322
  action: () => {
@@ -2324,10 +2324,10 @@ const Xr = /* @__PURE__ */ l("div")({
2324
2324
  onboarding: A
2325
2325
  })
2326
2326
  }), /* @__PURE__ */ u(ns, {
2327
- style: D,
2327
+ style: I,
2328
2328
  hiding: n.hiding,
2329
- children: /* @__PURE__ */ u(Ii, {
2330
- children: /* @__PURE__ */ u(Di, {
2329
+ children: /* @__PURE__ */ u(Di, {
2330
+ children: /* @__PURE__ */ u(Ii, {
2331
2331
  close: n.close,
2332
2332
  action: () => o(!0),
2333
2333
  onboarding: A
@@ -2343,29 +2343,36 @@ const Xr = /* @__PURE__ */ l("div")({
2343
2343
  name: "InnerContainer",
2344
2344
  class: "i1ri7tzr",
2345
2345
  propsAsIs: !1
2346
- }), as = (s) => {
2347
- const [n, c] = W(0), D = je(null), T = Ae((N) => {
2348
- D.current = N;
2346
+ }), as = /* @__PURE__ */ l("div")({
2347
+ name: "NotificationRefreshing",
2348
+ class: "n1ng1qh5",
2349
+ propsAsIs: !1
2350
+ }), ls = (s) => {
2351
+ const [n, c] = W(0), I = je(null), T = Ae((N) => {
2352
+ I.current = N;
2349
2353
  }, []);
2350
2354
  J(() => {
2351
2355
  var N;
2352
- const o = (N = D.current) == null ? void 0 : N.getBoundingClientRect();
2356
+ const o = (N = I.current) == null ? void 0 : N.getBoundingClientRect();
2353
2357
  o && c(o.height);
2354
2358
  }, [s]);
2355
- const I = Ae((N) => {
2359
+ const D = Ae((N) => {
2356
2360
  c(N);
2357
2361
  }, []);
2358
- return [T, n, I];
2359
- }, ls = ({ sdk: s, notification: n }) => {
2360
- var c, D;
2361
- const [T, I, N] = as(n.id);
2362
+ return [T, n, D];
2363
+ }, Ns = ({ sdk: s, notification: n }) => {
2364
+ var c, I;
2365
+ const [T, D, N] = ls(n.id);
2362
2366
  return n.type === pe.QUESTION ? /* @__PURE__ */ d(te, { children: [
2363
2367
  /* @__PURE__ */ u(Ti, { ref: T, style: { position: "absolute", visibility: "hidden" }, children: /* @__PURE__ */ u(ei, { ...n }) }),
2364
- /* @__PURE__ */ u(us, { style: { height: n.hiding ? 0 : I }, hiding: n.hiding, children: /* @__PURE__ */ u(Ti, { style: { height: "100%" }, children: /* @__PURE__ */ u(ei, { ...n }) }) })
2365
- ] }) : n.type === pe.QUESTION_RESOLVED && (D = (c = n.data) == null ? void 0 : c.question) != null && D.predictionResult ? /* @__PURE__ */ u(
2368
+ /* @__PURE__ */ d(us, { style: { height: n.hiding ? 0 : D }, hiding: n.hiding, children: [
2369
+ /* @__PURE__ */ u(Ti, { style: { height: "100%" }, children: /* @__PURE__ */ u(ei, { ...n }) }),
2370
+ /* @__PURE__ */ u(as, {}, n.id)
2371
+ ] })
2372
+ ] }) : n.type === pe.QUESTION_RESOLVED && (I = (c = n.data) == null ? void 0 : c.question) != null && I.predictionResult ? /* @__PURE__ */ u(
2366
2373
  vr,
2367
2374
  {
2368
- style: { height: n.hiding ? 0 : I },
2375
+ style: { height: n.hiding ? 0 : D },
2369
2376
  saveHeight: N,
2370
2377
  close: n.close,
2371
2378
  hiding: n.hiding,
@@ -2374,14 +2381,14 @@ const Xr = /* @__PURE__ */ l("div")({
2374
2381
  ) : n.type === pe.ONBOARDING ? /* @__PURE__ */ u(
2375
2382
  Ms,
2376
2383
  {
2377
- style: { height: n.hiding ? 0 : I },
2384
+ style: { height: n.hiding ? 0 : D },
2378
2385
  saveHeight: N,
2379
2386
  sdk: s,
2380
2387
  notification: n
2381
2388
  }
2382
2389
  ) : null;
2383
- }, Ns = ({ sdk: s }) => {
2384
- const [n] = W(s.getNotificationsStore()), c = re(n), D = Qe(() => {
2390
+ }, gs = ({ sdk: s }) => {
2391
+ const [n] = W(s.getNotificationsStore()), c = re(n), I = Qe(() => {
2385
2392
  if (!(c != null && c.size))
2386
2393
  return null;
2387
2394
  for (const T of c.values())
@@ -2389,8 +2396,8 @@ const Xr = /* @__PURE__ */ l("div")({
2389
2396
  return T;
2390
2397
  return c.values().next().value;
2391
2398
  }, [c]);
2392
- return D ? /* @__PURE__ */ u(ls, { sdk: s, notification: D }) : null;
2393
- }, gs = /* @__PURE__ */ l("div")({
2399
+ return I ? /* @__PURE__ */ u(Ns, { sdk: s, notification: I }) : null;
2400
+ }, Is = /* @__PURE__ */ l("div")({
2394
2401
  name: "SDKContainer",
2395
2402
  class: "stu11h7",
2396
2403
  propsAsIs: !1
@@ -2402,24 +2409,24 @@ const Xr = /* @__PURE__ */ l("div")({
2402
2409
  name: "SDKContentContainer",
2403
2410
  class: "s1el4wvm",
2404
2411
  propsAsIs: !1
2405
- }), Is = () => Ds, ws = /* @__PURE__ */ l(Is())({
2412
+ }), Ts = () => Ds, ms = /* @__PURE__ */ l(Ts())({
2406
2413
  name: "SDKWhiteContainer",
2407
2414
  class: "s1oe3036",
2408
2415
  propsAsIs: !0
2409
- }), Ts = (s) => {
2410
- const n = je(""), [c, D] = W(!1), T = re(s.status), I = re(s.userId()), N = T === "ready", [o, h] = W(ee), A = Ae(
2416
+ }), js = (s) => {
2417
+ const n = je(""), [c, I] = W(!1), T = re(s.status), D = re(s.userId()), N = T === "ready", [o, h] = W(ee), A = Ae(
2411
2418
  (j, p) => {
2412
2419
  h(p), p === ee ? (j && s.createEventSession(j), window.requestAnimationFrame(() => {
2413
2420
  s.openFeature(be.GAMES);
2414
- })) : s.closeFeature();
2421
+ })) : s.closeFeature(!1);
2415
2422
  },
2416
2423
  [s]
2417
2424
  );
2418
2425
  J(() => {
2419
- !N && o === ee && (h(Ne), s.closeFeature());
2426
+ !N && o === ee && (h(Ne), s.closeFeature(!0));
2420
2427
  }, [N, o, s]);
2421
2428
  const y = (j) => {
2422
- n.current = j, D(!0), s.initializeApp().then(({ enabled: p, err: z }) => {
2429
+ n.current = j, I(!0), s.initializeApp({ skipOrganizationSettings: !0 }).then(({ enabled: p, err: z }) => {
2423
2430
  if (z) {
2424
2431
  A(j, Ne);
2425
2432
  return;
@@ -2436,97 +2443,97 @@ const Xr = /* @__PURE__ */ l("div")({
2436
2443
  }
2437
2444
  });
2438
2445
  }, E = () => {
2439
- D(!1), s.disableApp();
2446
+ I(!1), s.disableApp();
2440
2447
  };
2441
2448
  return J(() => {
2442
- if (!I) {
2449
+ if (!D) {
2443
2450
  N && (h(Ne), s.disableApp());
2444
2451
  return;
2445
2452
  }
2446
- I && n.current && c && s.initializeApp().then(() => {
2453
+ D && n.current && c && s.initializeApp({ skipOrganizationSettings: !0 }).then(() => {
2447
2454
  s.createEventSession(n.current);
2448
2455
  });
2449
- }, [I]), {
2456
+ }, [D]), {
2450
2457
  sdkEnabled: c,
2451
2458
  sdkReady: N,
2452
2459
  activeOverlay: o,
2453
2460
  activateAndLoadOverlay: A,
2454
2461
  activateEventWithId: y,
2455
2462
  deactivate: E,
2456
- isLogged: !!I
2463
+ isLogged: !!D
2457
2464
  };
2458
- }, js = (s) => {
2459
- const n = re(s.getActiveFeature()), c = re(s.streamStore()), [D, T] = W(null);
2465
+ }, hs = (s) => {
2466
+ const n = re(s.getActiveFeature()), c = re(s.streamStore()), [I, T] = W(null);
2460
2467
  return J(() => {
2461
- const I = s.getFeatures();
2468
+ const D = s.getFeatures();
2462
2469
  if (n)
2463
- for (const [N, o] of I)
2464
- N === n ? o.status.get() === Ie.Suspended && (o.enable(), T(o)) : o.status.get() === Ie.Ready && o.disable();
2470
+ for (const [N, o] of D)
2471
+ N === n ? o.status.get() === De.Suspended && (o.enable(), T(o)) : o.status.get() === De.Ready && o.disable();
2465
2472
  else {
2466
- for (const [, N] of I)
2467
- N.status.get() === Ie.Ready && N.disable();
2473
+ for (const [, N] of D)
2474
+ N.status.get() === De.Ready && N.disable();
2468
2475
  T(null);
2469
2476
  }
2470
2477
  return () => {
2471
- for (const [, N] of I)
2472
- N.status.get() === Ie.Ready && N.disable();
2478
+ for (const [, N] of D)
2479
+ N.status.get() === De.Ready && N.disable();
2473
2480
  };
2474
- }, [n, s, c]), [n, D];
2475
- }, hs = ({ sdk: s, className: n }) => {
2476
- const [, c] = js(s);
2481
+ }, [n, s, c]), [n, I];
2482
+ }, ds = ({ sdk: s, className: n }) => {
2483
+ const [, c] = hs(s);
2477
2484
  return /* @__PURE__ */ u(tt, { className: n, feature: c, sdk: s });
2478
- }, ds = ({ sdk: s, overlays: n, children: c }) => {
2479
- const { sdkEnabled: D, sdkReady: T, activeOverlay: I, activateAndLoadOverlay: N, activateEventWithId: o, deactivate: h, isLogged: A } = Ts(s);
2485
+ }, ps = ({ sdk: s, overlays: n, children: c }) => {
2486
+ const { sdkEnabled: I, sdkReady: T, activeOverlay: D, activateAndLoadOverlay: N, activateEventWithId: o, deactivate: h, isLogged: A } = js(s);
2480
2487
  return J(() => {
2481
2488
  import("./gamification-feature.js");
2482
- }, []), /* @__PURE__ */ d(gs, { children: [
2483
- D && /* @__PURE__ */ u(
2489
+ }, []), /* @__PURE__ */ d(Is, { children: [
2490
+ I && /* @__PURE__ */ u(
2484
2491
  dt,
2485
2492
  {
2486
2493
  sdkReady: T,
2487
- activeOverlay: I,
2494
+ activeOverlay: D,
2488
2495
  className: Ke,
2489
2496
  setActiveOverlay: (y) => N("", y)
2490
2497
  }
2491
2498
  ),
2492
- T && /* @__PURE__ */ u(Ns, { sdk: s }),
2499
+ T && /* @__PURE__ */ u(gs, { sdk: s }),
2493
2500
  /* @__PURE__ */ u(
2494
2501
  ji,
2495
2502
  {
2496
- "data-nav": D.toString(),
2497
- style: { display: !D || I === Ne ? "block" : "none" },
2503
+ "data-nav": I.toString(),
2504
+ style: { display: !I || D === Ne ? "block" : "none" },
2498
2505
  children: c && c({ activateEventWithId: o, deactivate: h })
2499
2506
  }
2500
2507
  ),
2501
2508
  /* @__PURE__ */ u(
2502
2509
  ji,
2503
2510
  {
2504
- "data-nav": D.toString(),
2505
- style: { display: I === ze ? "block" : "none" },
2506
- children: n && I === ze && n[I]
2511
+ "data-nav": I.toString(),
2512
+ style: { display: D === ze ? "block" : "none" },
2513
+ children: n && D === ze && n[D]
2507
2514
  }
2508
2515
  ),
2509
- T && I === ee && /* @__PURE__ */ u(hs, { className: Ke, sdk: s }),
2516
+ T && D === ee && /* @__PURE__ */ u(ds, { className: Ke, sdk: s }),
2510
2517
  !A && /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
2511
2518
  ] });
2512
2519
  };
2513
- const ms = ({
2520
+ const ks = ({
2514
2521
  sdkKey: s,
2515
2522
  plugins: n,
2516
2523
  children: c,
2517
- production: D = !0
2518
- }) => /* @__PURE__ */ u(Wi, { sdkKey: s, plugins: n, production: D, autoEnable: !1, children: c }), ks = ({ children: s, overlays: n }) => {
2519
- const { sdk: c, status: D } = Ki(Gi);
2520
- if (D === Pi.UNSET)
2524
+ production: I = !0
2525
+ }) => /* @__PURE__ */ u(Wi, { sdkKey: s, plugins: n, production: I, autoEnable: !1, children: c }), Cs = ({ children: s, overlays: n }) => {
2526
+ const { sdk: c, status: I } = Ki(Gi);
2527
+ if (I === Pi.UNSET)
2521
2528
  throw new Error("Wrap app in `StreamLayerProvider`");
2522
- return c ? /* @__PURE__ */ u("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ u(Zi, { style: { height: "100%" }, children: /* @__PURE__ */ u(ds, { sdk: c, overlays: n, children: s }) }) }) : s({});
2529
+ return c ? /* @__PURE__ */ u("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ u(Zi, { style: { height: "100%" }, children: /* @__PURE__ */ u(ps, { sdk: c, overlays: n, children: s }) }) }) : s({});
2523
2530
  };
2524
2531
  export {
2525
2532
  Jr as A,
2526
- ms as M,
2533
+ ks as M,
2527
2534
  An as O,
2528
- ws as a,
2529
- ks as b,
2535
+ ms as a,
2536
+ Cs as b,
2530
2537
  Un as c,
2531
2538
  Be as f,
2532
2539
  Ds as n,