@streamlayer/react 1.23.0 → 1.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) 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 +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -0
  8. package/lib/cjs/hooks-WfHlJH12.js +1 -0
  9. package/lib/cjs/index.js +1 -1
  10. package/lib/cjs/index10.js +1 -4
  11. package/lib/cjs/index11.js +4 -1
  12. package/lib/cjs/index12.js +1 -1
  13. package/lib/cjs/index13.js +1 -1
  14. package/lib/cjs/index14.js +1 -1
  15. package/lib/cjs/index15.js +1 -5
  16. package/lib/cjs/index16.js +5 -0
  17. package/lib/cjs/index2.js +1 -1
  18. package/lib/cjs/index3.js +1 -1
  19. package/lib/cjs/index4.js +1 -1
  20. package/lib/cjs/index7.js +1 -1
  21. package/lib/cjs/index8.js +1 -1
  22. package/lib/cjs/index9.js +1 -1
  23. package/lib/cjs/insight.js +1 -1
  24. package/lib/cjs/masters.js +1 -1
  25. package/lib/cjs/masters2.js +4 -4
  26. package/lib/cjs/notification.js +1 -1
  27. package/lib/cjs/pause-ad.js +1 -1
  28. package/lib/cjs/points.js +1 -1
  29. package/lib/cjs/polymarket.js +19 -0
  30. package/lib/cjs/storage.js +1 -1
  31. package/lib/cjs/useStreamLayerApp2.js +5 -5
  32. package/lib/classic/app/pause-ad.d.ts +2 -4
  33. package/lib/classic/app/polymarket.d.ts +7 -0
  34. package/lib/classic/cjs/Question.js +1 -1
  35. package/lib/classic/cjs/advertisement.js +1 -1
  36. package/lib/classic/cjs/analytics.js +1 -1
  37. package/lib/classic/cjs/auth.js +1 -1
  38. package/lib/classic/cjs/bet-pack.js +3 -3
  39. package/lib/classic/cjs/feature.js +1 -0
  40. package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
  41. package/lib/classic/cjs/index.js +1 -1
  42. package/lib/classic/cjs/index10.js +1 -1
  43. package/lib/classic/cjs/index11.js +1 -1
  44. package/lib/classic/cjs/index12.js +1 -4
  45. package/lib/classic/cjs/index13.js +4 -0
  46. package/lib/classic/cjs/index2.js +2 -2
  47. package/lib/classic/cjs/index5.js +1 -1
  48. package/lib/classic/cjs/index6.js +1 -1
  49. package/lib/classic/cjs/index7.js +1 -1
  50. package/lib/classic/cjs/index8.js +1 -1
  51. package/lib/classic/cjs/index9.js +1 -1
  52. package/lib/classic/cjs/insight.js +1 -1
  53. package/lib/classic/cjs/notification.js +1 -1
  54. package/lib/classic/cjs/notification2.js +1 -1
  55. package/lib/classic/cjs/pause-ad.js +1 -1
  56. package/lib/classic/cjs/points.js +1 -1
  57. package/lib/classic/cjs/polymarket.js +19 -0
  58. package/lib/classic/cjs/useStreamLayerApp2.js +5 -5
  59. package/lib/classic/es/Question.js +4 -4
  60. package/lib/classic/es/advertisement.js +6 -6
  61. package/lib/classic/es/analytics.js +1 -1
  62. package/lib/classic/es/auth.js +1 -1
  63. package/lib/classic/es/bet-pack.js +18 -17
  64. package/lib/classic/es/feature.js +63 -0
  65. package/lib/classic/es/hooks-WfHlJH12.js +98 -0
  66. package/lib/classic/es/index.js +2 -2
  67. package/lib/classic/es/index10.js +82 -2295
  68. package/lib/classic/es/index11.js +2351 -179
  69. package/lib/classic/es/index12.js +170 -822
  70. package/lib/classic/es/index13.js +835 -0
  71. package/lib/classic/es/index2.js +127 -126
  72. package/lib/classic/es/index5.js +4 -5
  73. package/lib/classic/es/index6.js +5 -11
  74. package/lib/classic/es/index7.js +5 -62
  75. package/lib/classic/es/index8.js +7 -315
  76. package/lib/classic/es/index9.js +313 -81
  77. package/lib/classic/es/insight.js +2 -2
  78. package/lib/classic/es/notification.js +2 -2
  79. package/lib/classic/es/notification2.js +14 -13
  80. package/lib/classic/es/pause-ad.js +20 -20
  81. package/lib/classic/es/points.js +15 -14
  82. package/lib/classic/es/polymarket.js +6670 -0
  83. package/lib/classic/es/useStreamLayerApp2.js +143 -119
  84. package/lib/dist/cjs/masters.js +23 -23
  85. package/lib/dist/es/masters.js +189 -165
  86. package/lib/dist/index.d.ts +17 -6
  87. package/lib/dist/style.css +1 -1
  88. package/lib/es/Question.js +2 -2
  89. package/lib/es/advertisement.js +5 -5
  90. package/lib/es/auth.js +1 -1
  91. package/lib/es/bet-pack.js +1 -1
  92. package/lib/es/feature.js +63 -0
  93. package/lib/es/hooks-WfHlJH12.js +98 -0
  94. package/lib/es/index.js +2 -2
  95. package/lib/es/index10.js +236 -804
  96. package/lib/es/index11.js +822 -170
  97. package/lib/es/index12.js +166 -302
  98. package/lib/es/index13.js +313 -81
  99. package/lib/es/index14.js +82 -2350
  100. package/lib/es/index15.js +2330 -1229
  101. package/lib/es/index16.js +1254 -0
  102. package/lib/es/index2.js +118 -117
  103. package/lib/es/index3.js +3 -61
  104. package/lib/es/index4.js +3 -3
  105. package/lib/es/index7.js +5 -7
  106. package/lib/es/index8.js +5 -9
  107. package/lib/es/index9.js +7 -263
  108. package/lib/es/insight.js +2 -2
  109. package/lib/es/masters.js +1 -1
  110. package/lib/es/masters2.js +25 -24
  111. package/lib/es/notification.js +8 -7
  112. package/lib/es/pause-ad.js +20 -20
  113. package/lib/es/points.js +6 -5
  114. package/lib/es/polymarket.js +6670 -0
  115. package/lib/es/storage.js +2 -2
  116. package/lib/es/useStreamLayerApp2.js +143 -119
  117. package/lib/style.css +1 -1
  118. package/package.json +24 -14
  119. package/lib/cjs/hooks-B0Qttldg.js +0 -1
  120. package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
  121. package/lib/classic/es/hooks-B0Qttldg.js +0 -98
  122. package/lib/es/hooks-B0Qttldg.js +0 -98
@@ -1,30 +1,32 @@
1
1
  var we = Object.defineProperty;
2
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";
3
+ var S = (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 Se, lazy as Te, useMemo as M, Suspense as Ne, forwardRef as ie, useLayoutEffect as xe, useContext as f2 } from "react";
5
+ import { i as g2, F as Re, z as Ee, Y as I2 } from "./hooks-WfHlJH12.js";
6
+ import { jsx as s, jsxs as h, Fragment as x } from "react/jsx-runtime";
7
+ import { I as re, l as Ve, S as H, e as B, p as b2, Q as E, a as He } from "./useStreamLayerApp2.js";
8
+ import { m as Q, h as ze } from "./index7.js";
9
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";
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 "./index13.js";
11
+ import { F as t2, c as G } from "./feature.js";
12
+ import { atom as Ge } from "nanostores";
13
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";
14
+ import { f as ae, c as oe, b as Qe, A as Ke } from "./analytics.js";
15
+ import { O as Ye, p as u2, h as Je, y as Xe, e as e0 } from "./Question.js";
16
+ import { i as O } from "./index8.js";
17
+ import { I as m2, s as le, b as ce, e as de } from "./index12.js";
18
18
  import { createPortal as s2 } from "react-dom";
19
- import { u as s0 } from "./utils.js";
19
+ import { u as t0 } from "./utils.js";
20
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";
21
+ import s0 from "react-infinite-scroller";
22
+ import { r as pe, S as n0, R as i0, D as r0 } from "./notification2.js";
23
+ import { w as a0, E as o0 } from "./index9.js";
24
24
  import "uuid";
25
25
  import "@nanostores/query";
26
+ import "./index6.js";
27
+ import { e as l0 } from "./index5.js";
26
28
  import { d as c0 } from "./index3.js";
27
- const he = (e) => Qe(e), d0 = (e) => {
29
+ const he = (e) => Ge(e), d0 = (e) => {
28
30
  const t = A(e.getActiveFeature()), n = A(e.streamStore()), [r, a] = L(null);
29
31
  return y(() => {
30
32
  const o = e.getFeatures();
@@ -200,11 +202,11 @@ const he = (e) => Qe(e), d0 = (e) => {
200
202
  name: "UserName",
201
203
  class: "u1q6roj0",
202
204
  propsAsIs: !1
203
- }), T0 = /* @__PURE__ */ i("div")({
205
+ }), S0 = /* @__PURE__ */ i("div")({
204
206
  name: "UserRating",
205
207
  class: "ui0m425",
206
208
  propsAsIs: !1
207
- }), S0 = /* @__PURE__ */ i("img")({
209
+ }), T0 = /* @__PURE__ */ i("img")({
208
210
  name: "TrophyIcon",
209
211
  class: "t1el3mrn",
210
212
  propsAsIs: !1
@@ -269,10 +271,10 @@ const he = (e) => Qe(e), d0 = (e) => {
269
271
  ] }),
270
272
  /* @__PURE__ */ h(k0, { children: [
271
273
  /* @__PURE__ */ s(_0, { children: r }),
272
- /* @__PURE__ */ h(T0, { children: [
274
+ /* @__PURE__ */ h(S0, { children: [
273
275
  /* @__PURE__ */ h(N0, { children: [
274
276
  /* @__PURE__ */ h(R0, { children: [
275
- /* @__PURE__ */ s(S0, { alt: "rank-icon", src: O0 }),
277
+ /* @__PURE__ */ s(T0, { alt: "rank-icon", src: O0 }),
276
278
  /* @__PURE__ */ h(L2, { children: [
277
279
  le(a),
278
280
  /* @__PURE__ */ s(k2, { children: "PTS" })
@@ -284,7 +286,7 @@ const he = (e) => Qe(e), d0 = (e) => {
284
286
  /* @__PURE__ */ s(k2, { children: "global rank" })
285
287
  ] })
286
288
  ] }),
287
- !t && /* @__PURE__ */ h(R, { children: [
289
+ !t && /* @__PURE__ */ h(x, { children: [
288
290
  /* @__PURE__ */ s(E0, {}),
289
291
  /* @__PURE__ */ h("div", { children: [
290
292
  "TOP ",
@@ -348,11 +350,11 @@ const he = (e) => Qe(e), d0 = (e) => {
348
350
  }, [o]), !t.current || !o ? null : n ? s2(/* @__PURE__ */ h(D0, {
349
351
  className: "StaticContainer",
350
352
  children: [e, /* @__PURE__ */ s("style", {
351
- children: s0
353
+ children: t0
352
354
  }), /* @__PURE__ */ s("style", {
353
355
  children: F0
354
356
  })]
355
- }), t.current, "modal-node") : s2(/* @__PURE__ */ h(R, {
357
+ }), t.current, "modal-node") : s2(/* @__PURE__ */ h(x, {
356
358
  children: [e, /* @__PURE__ */ s("style", {
357
359
  children: r
358
360
  })]
@@ -375,13 +377,13 @@ const he = (e) => Qe(e), d0 = (e) => {
375
377
  propsAsIs: !1
376
378
  });
377
379
  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(
380
+ const S2 = ({ 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: [
381
+ /* @__PURE__ */ s(S2, { title: "Home", active: e === "home", onClick: () => t(
380
382
  "home"
381
383
  /* HOME */
382
384
  ) }),
383
385
  /* @__PURE__ */ s(
384
- T2,
386
+ S2,
385
387
  {
386
388
  title: "Friends",
387
389
  active: e === "leaderboard",
@@ -467,12 +469,12 @@ const T2 = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ s(U0, { "dat
467
469
  /* @__PURE__ */ s(nt, { name: "icon-copy" })
468
470
  ] });
469
471
  };
470
- let E;
471
- typeof window < "u" ? E = window : typeof self < "u" ? E = self : E = Ve;
472
+ let R;
473
+ typeof window < "u" ? R = window : typeof self < "u" ? R = self : R = Ve;
472
474
  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;
475
+ const T2 = 20, o2 = R.clearTimeout, N2 = R.setTimeout, l2 = R.cancelAnimationFrame || R.mozCancelAnimationFrame || R.webkitCancelAnimationFrame, x2 = R.requestAnimationFrame || R.mozRequestAnimationFrame || R.webkitRequestAnimationFrame;
474
476
  l2 == null || x2 == null ? (d2 = o2, p2 = function(t) {
475
- return N2(t, S2);
477
+ return N2(t, T2);
476
478
  }) : (d2 = function([t, n]) {
477
479
  l2(t), o2(n);
478
480
  }, p2 = function(t) {
@@ -480,7 +482,7 @@ l2 == null || x2 == null ? (d2 = o2, p2 = function(t) {
480
482
  o2(r), t();
481
483
  }), r = N2(function() {
482
484
  l2(n), t();
483
- }, S2);
485
+ }, T2);
484
486
  return [n, r];
485
487
  });
486
488
  function rt(e) {
@@ -488,8 +490,8 @@ function rt(e) {
488
490
  const d = typeof document < "u" && document.attachEvent;
489
491
  if (!d) {
490
492
  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
+ const b = $.__resizeTriggers__, k = b.firstElementChild, w = b.lastElementChild, N = k.firstElementChild;
494
+ w.scrollLeft = w.scrollWidth, w.scrollTop = w.scrollHeight, N.style.width = k.offsetWidth + 1 + "px", N.style.height = k.offsetHeight + 1 + "px", k.scrollLeft = k.scrollWidth, k.scrollTop = k.scrollHeight;
493
495
  }, o = function($) {
494
496
  return $.offsetWidth !== $.__resizeLast__.width || $.offsetHeight !== $.__resizeLast__.height;
495
497
  }, l = function($) {
@@ -497,8 +499,8 @@ function rt(e) {
497
499
  return;
498
500
  const b = this;
499
501
  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
+ o(b) && (b.__resizeLast__.width = b.offsetWidth, b.__resizeLast__.height = b.offsetHeight, b.__resizeListeners__.forEach(function(N) {
503
+ N.call(b, $);
502
504
  }));
503
505
  });
504
506
  };
@@ -530,7 +532,7 @@ function rt(e) {
530
532
  p.attachEvent("onresize", C);
531
533
  else {
532
534
  if (!p.__resizeTriggers__) {
533
- const g = p.ownerDocument, I = E.getComputedStyle(p);
535
+ const g = p.ownerDocument, I = R.getComputedStyle(p);
534
536
  I && I.position === "static" && (p.style.position = "relative"), u(g), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = g.createElement("div")).className = "resize-triggers";
535
537
  const f = g.createElement("div");
536
538
  f.className = "expand-trigger", f.appendChild(g.createElement("div"));
@@ -755,7 +757,7 @@ var ct = function(e, t) {
755
757
  c(l);
756
758
  }
757
759
  }]), t;
758
- })(Te);
760
+ })(Se);
759
761
  const ht = /* @__PURE__ */ i("div")({
760
762
  name: "Container",
761
763
  class: "culdu4a",
@@ -822,7 +824,7 @@ const ht = /* @__PURE__ */ i("div")({
822
824
  const d = l.target.getAttribute("data-name");
823
825
  d && n(d);
824
826
  }, [n]);
825
- return /* @__PURE__ */ s(n0, {
827
+ return /* @__PURE__ */ s(s0, {
826
828
  loadMore: r,
827
829
  initialLoad: !1,
828
830
  hasMore: o,
@@ -849,11 +851,11 @@ const ht = /* @__PURE__ */ i("div")({
849
851
  name: "InviteGameIcon",
850
852
  class: "i19m85r1",
851
853
  propsAsIs: !0
852
- }), Tt = /* @__PURE__ */ i("div")({
854
+ }), St = /* @__PURE__ */ i("div")({
853
855
  name: "Content",
854
856
  class: "c1mbu204",
855
857
  propsAsIs: !1
856
- }), St = /* @__PURE__ */ i("div")({
858
+ }), Tt = /* @__PURE__ */ i("div")({
857
859
  name: "Heading",
858
860
  class: "h1amdqtv",
859
861
  propsAsIs: !1
@@ -897,8 +899,8 @@ const ht = /* @__PURE__ */ i("div")({
897
899
  });
898
900
  return /* @__PURE__ */ h(wt, { className: a, children: [
899
901
  /* @__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__ */ h(St, { children: [
903
+ /* @__PURE__ */ s(Tt, { children: t || "" }),
902
904
  /* @__PURE__ */ s(Nt, { children: n || "" })
903
905
  ] }),
904
906
  e && /* @__PURE__ */ h(xt, { ref: o, "data-a": "intr", onClick: d(() => c(e)), children: [
@@ -942,7 +944,7 @@ const ht = /* @__PURE__ */ i("div")({
942
944
  } = A(e.deepLink.$store), [v, m] = Ce(a);
943
945
  return !o.length && !l ? /* @__PURE__ */ s(Ot, {
944
946
  deepLink: u
945
- }) : /* @__PURE__ */ h(R, {
947
+ }) : /* @__PURE__ */ h(x, {
946
948
  children: [/* @__PURE__ */ s(yt, {
947
949
  items: o,
948
950
  scrollNode: t,
@@ -974,12 +976,12 @@ const ht = /* @__PURE__ */ i("div")({
974
976
  name: "Container",
975
977
  class: "cll3md7",
976
978
  propsAsIs: !0
977
- }), Pt = () => i0, Wt = /* @__PURE__ */ i(Pt())({
979
+ }), Pt = () => n0, Wt = /* @__PURE__ */ i(Pt())({
978
980
  name: "ActionBtn",
979
981
  class: "a10g1iik",
980
982
  propsAsIs: !0
981
983
  }), jt = ({ questionId: e, ...t }) => /* @__PURE__ */ h(Ut, { "data-a": "intr", "data-name": e, children: [
982
- /* @__PURE__ */ s(Je, { questionId: e, ...t }),
984
+ /* @__PURE__ */ s(Ye, { questionId: e, ...t }),
983
985
  /* @__PURE__ */ s(Wt, { "data-a": "intr", "data-name": e, children: "View Insight" })
984
986
  ] }), Zt = () => pe, Gt = /* @__PURE__ */ i(Zt())({
985
987
  name: "Container",
@@ -1003,12 +1005,12 @@ const ht = /* @__PURE__ */ i("div")({
1003
1005
  propsAsIs: !1
1004
1006
  }), Jt = ({ questions: e, openQuestion: t, controlVideo: n }) => e ? /* @__PURE__ */ s(E2, { "data-a": "intr", onClick: (a) => {
1005
1007
  const o = a.target.getAttribute("data-name");
1006
- o && (o0(), t(o, { openedFrom: "list" }));
1008
+ o && (a0(), t(o, { openedFrom: "list" }));
1007
1009
  }, children: e == null ? void 0 : e.map((a) => {
1008
1010
  var o, c, l;
1009
1011
  if (a.type === "question" && ((o = a.attributes) == null ? void 0 : o.attributes.case) === "question") {
1010
1012
  const d = a.attributes.attributes.value;
1011
- return /* @__PURE__ */ s(r0, { ...d }, d.questionId);
1013
+ return /* @__PURE__ */ s(i0, { ...d }, d.questionId);
1012
1014
  }
1013
1015
  if (a.type === "insight" && ((c = a.attributes) == null ? void 0 : c.attributes.case) === "insight") {
1014
1016
  const d = a.attributes.attributes.value;
@@ -1019,7 +1021,7 @@ const ht = /* @__PURE__ */ i("div")({
1019
1021
  return /* @__PURE__ */ s(Yt, { controlVideo: n, ...d, tweetId: u }, u);
1020
1022
  }
1021
1023
  return null;
1022
- }) }) : /* @__PURE__ */ s(E2, { children: Array.from({ length: 5 }).map((a, o) => /* @__PURE__ */ s(a0, {}, o)) }), Xt = ({ store: e, openQuestion: t }) => {
1024
+ }) }) : /* @__PURE__ */ s(E2, { children: Array.from({ length: 5 }).map((a, o) => /* @__PURE__ */ s(r0, {}, o)) }), Xt = ({ store: e, openQuestion: t }) => {
1023
1025
  const { sdk: n } = u2(), r = A(e);
1024
1026
  return /* @__PURE__ */ s(Jt, { openQuestion: t, questions: r.data, controlVideo: n == null ? void 0 : n.controlVideoPlayer });
1025
1027
  }, es = ({ userSummary: e }) => {
@@ -1060,7 +1062,7 @@ const ht = /* @__PURE__ */ i("div")({
1060
1062
  children: /* @__PURE__ */ s(W0, { activePage: u, toggleActivePage: g })
1061
1063
  }
1062
1064
  ),
1063
- u === j.HOME && /* @__PURE__ */ h(R, { children: [
1065
+ u === j.HOME && /* @__PURE__ */ h(x, { children: [
1064
1066
  /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(Be, { children: /* @__PURE__ */ s(es, { userSummary: e.userSummary }) }) }),
1065
1067
  /* @__PURE__ */ s(qe, { style: { flex: 1 }, children: /* @__PURE__ */ s(Xt, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
1066
1068
  ] }),
@@ -1080,7 +1082,7 @@ const ht = /* @__PURE__ */ i("div")({
1080
1082
  }) => {
1081
1083
  const n = e + t;
1082
1084
  return n === 0 ? 0 : Math.round(e / n * 100);
1083
- }, O1 = ({
1085
+ }, F1 = ({
1084
1086
  gamification: e,
1085
1087
  scrollStore: t,
1086
1088
  className: n,
@@ -1118,7 +1120,7 @@ const ht = /* @__PURE__ */ i("div")({
1118
1120
  className: F(r, !c && H2),
1119
1121
  hiding: m,
1120
1122
  onAnimationEnd: p,
1121
- children: /* @__PURE__ */ s(Xe, {
1123
+ children: /* @__PURE__ */ s(Je, {
1122
1124
  muted: t,
1123
1125
  sdk: n,
1124
1126
  gamification: e
@@ -1128,7 +1130,7 @@ const ht = /* @__PURE__ */ i("div")({
1128
1130
  hiding: m,
1129
1131
  onAnimationEnd: p,
1130
1132
  children: /* @__PURE__ */ h(ns, {
1131
- children: [/* @__PURE__ */ s(e0, {
1133
+ children: [/* @__PURE__ */ s(Xe, {
1132
1134
  label: "Friend's Rank",
1133
1135
  close: e.closeUser
1134
1136
  }), /* @__PURE__ */ s(We, {
@@ -1144,7 +1146,7 @@ const ht = /* @__PURE__ */ i("div")({
1144
1146
  useContainer: !v,
1145
1147
  children: C
1146
1148
  });
1147
- }, as = Se(() => import("./gamification-feature.js")), os = ({ sdk: e, feature: t, className: n, scrollStore: r, appNode: a, scrollNode: o, responsiveStore: c }) => {
1149
+ }, as = Te(() => import("./gamification-feature.js")), os = ({ sdk: e, feature: t, className: n, scrollStore: r, appNode: a, scrollNode: o, responsiveStore: c }) => {
1148
1150
  const l = M(() => t && t.featureConfig.get().type === H.GAMES ? /* @__PURE__ */ s(m0, { className: n, sdk: e, feature: t, children: /* @__PURE__ */ s(
1149
1151
  as,
1150
1152
  {
@@ -1185,15 +1187,15 @@ function cs(e) {
1185
1187
  }
1186
1188
  class ds {
1187
1189
  constructor(t = "main", n = window.localStorage) {
1188
- T(this, "delimiter", ":");
1189
- T(this, "prefix");
1190
- T(this, "storage");
1191
- T(this, "clear", () => {
1190
+ S(this, "delimiter", ":");
1191
+ S(this, "prefix");
1192
+ S(this, "storage");
1193
+ S(this, "clear", () => {
1192
1194
  for (const t in window.localStorage)
1193
1195
  t.startsWith(this.prefix) && this.storage.removeItem(t);
1194
1196
  });
1195
- T(this, "generateKey", (t) => `${this.prefix}${this.delimiter}${t.join(this.delimiter)}`);
1196
- T(this, "write", (...t) => {
1197
+ S(this, "generateKey", (t) => `${this.prefix}${this.delimiter}${t.join(this.delimiter)}`);
1198
+ S(this, "write", (...t) => {
1197
1199
  const n = t.pop() || "", r = this.generateKey(t);
1198
1200
  try {
1199
1201
  this.storage.setItem(r, n);
@@ -1201,11 +1203,11 @@ class ds {
1201
1203
  cs(a) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(r, n));
1202
1204
  }
1203
1205
  });
1204
- T(this, "read", (...t) => {
1206
+ S(this, "read", (...t) => {
1205
1207
  const n = this.storage.getItem(this.generateKey(t));
1206
1208
  return n === null ? void 0 : n;
1207
1209
  });
1208
- T(this, "remove", (...t) => {
1210
+ S(this, "remove", (...t) => {
1209
1211
  this.storage.removeItem(this.generateKey(t));
1210
1212
  });
1211
1213
  this.prefix = `sl-sdk${this.delimiter}${t}`, this.storage = n;
@@ -1227,21 +1229,21 @@ class ps extends ds {
1227
1229
  constructor() {
1228
1230
  super("user");
1229
1231
  // Schema
1230
- T(this, "setSchema", (n) => {
1232
+ S(this, "setSchema", (n) => {
1231
1233
  this.write(z.SCHEMA, n);
1232
1234
  });
1233
- T(this, "getSchema", () => this.read(z.SCHEMA));
1235
+ S(this, "getSchema", () => this.read(z.SCHEMA));
1234
1236
  // Token
1235
- T(this, "setToken", (n) => {
1237
+ S(this, "setToken", (n) => {
1236
1238
  this.write(z.TOKEN, n);
1237
1239
  });
1238
- T(this, "getToken", () => this.read(z.TOKEN));
1240
+ S(this, "getToken", () => this.read(z.TOKEN));
1239
1241
  // External Token
1240
- T(this, "setExternalToken", (n) => {
1242
+ S(this, "setExternalToken", (n) => {
1241
1243
  this.write(z.EXTERNAL_TOKEN, n);
1242
1244
  });
1243
- T(this, "getExternalToken", () => this.read(z.EXTERNAL_TOKEN));
1244
- T(this, "removeToken", () => {
1245
+ S(this, "getExternalToken", () => this.read(z.EXTERNAL_TOKEN));
1246
+ S(this, "removeToken", () => {
1245
1247
  this.remove(z.TOKEN);
1246
1248
  });
1247
1249
  }
@@ -1270,12 +1272,11 @@ G("deep_link");
1270
1272
  G("bypass");
1271
1273
  new ps();
1272
1274
  G("video_player");
1273
- S.FACTOID + "", S.POLL + "", S.TRIVIA + "", S.PREDICTION + "", S.TWEET + "";
1274
1275
  var q2;
1275
1276
  (function(e) {
1276
1277
  e.Unset = "unset", e.Required = "required", e.Optional = "optional", e.Completed = "completed", e.Disabled = "disabled", e.Unavailable = "unavailable";
1277
1278
  })(q2 || (q2 = {}));
1278
- S.POLL, S.PREDICTION, S.TRIVIA;
1279
+ E.POLL, E.PREDICTION, E.TRIVIA;
1279
1280
  const hs = {
1280
1281
  [H.GAMES]: !0
1281
1282
  }, us = /* @__PURE__ */ i("div")({
@@ -1319,7 +1320,7 @@ const hs = {
1319
1320
  !t && (o === "channels" || o === "featuredGroups") && bs,
1320
1321
  !t && o === "leaderboard" && $s
1321
1322
  ),
1322
- children: /* @__PURE__ */ h(R, { children: [
1323
+ children: /* @__PURE__ */ h(x, { children: [
1323
1324
  a && /* @__PURE__ */ s(fs, { children: a }),
1324
1325
  /* @__PURE__ */ s(gs, { children: r })
1325
1326
  ] })
@@ -1340,11 +1341,11 @@ const hs = {
1340
1341
  name: "CloseIconWrap",
1341
1342
  class: "c17srj38",
1342
1343
  propsAsIs: !1
1343
- }), _s = () => _, Ts = /* @__PURE__ */ i(_s())({
1344
+ }), _s = () => _, Ss = /* @__PURE__ */ i(_s())({
1344
1345
  name: "CloseIcon",
1345
1346
  class: "clqia8k",
1346
1347
  propsAsIs: !0
1347
- }), Ss = () => _, Ns = /* @__PURE__ */ i(Ss())({
1348
+ }), Ts = () => _, Ns = /* @__PURE__ */ i(Ts())({
1348
1349
  name: "DashboardIcon",
1349
1350
  class: "df5w958",
1350
1351
  propsAsIs: !0
@@ -1365,7 +1366,7 @@ const hs = {
1365
1366
  }), /* @__PURE__ */ s(ks, {
1366
1367
  "data-a": "intr",
1367
1368
  onClick: r,
1368
- children: /* @__PURE__ */ s(Ts, {
1369
+ children: /* @__PURE__ */ s(Ss, {
1369
1370
  name: "icon-cross"
1370
1371
  })
1371
1372
  })]
@@ -1457,7 +1458,7 @@ const hs = {
1457
1458
  class: "a12495er",
1458
1459
  propsAsIs: !1
1459
1460
  }), 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
+ (e == null ? void 0 : e.url) && /* @__PURE__ */ s(o0, { source: e.url, poster: e.thumbnailUrl, controlVideo: c }),
1461
1462
  t && !(e != null && e.url) && /* @__PURE__ */ s(zs, { "data-rounded": n === He.ROUNDED, children: /* @__PURE__ */ s(Hs, { src: t, alt: r }) }),
1462
1463
  /* @__PURE__ */ h(Ms, { children: [
1463
1464
  /* @__PURE__ */ s(Os, { children: r }),
@@ -1523,7 +1524,7 @@ const hs = {
1523
1524
  data: { questionType: r, question: a, insight: o, tweet: c }
1524
1525
  }) => {
1525
1526
  const l = de[r];
1526
- return l ? /* @__PURE__ */ h(qs, { onClick: t, style: r === S.TWEET ? { paddingTop: "12px" } : {}, children: [
1527
+ return l ? /* @__PURE__ */ h(qs, { onClick: t, style: r === E.TWEET ? { paddingTop: "12px" } : {}, children: [
1527
1528
  /* @__PURE__ */ s(
1528
1529
  Us,
1529
1530
  {
@@ -1534,20 +1535,20 @@ const hs = {
1534
1535
  children: /* @__PURE__ */ s(Ws, { name: "icon-cross" })
1535
1536
  }
1536
1537
  ),
1537
- r !== S.TWEET && /* @__PURE__ */ h(js, { children: [
1538
+ r !== E.TWEET && /* @__PURE__ */ h(js, { children: [
1538
1539
  /* @__PURE__ */ s(
1539
1540
  Gs,
1540
1541
  {
1541
- "data-type-trivia": r === S.TRIVIA,
1542
- "data-type-poll": r === S.POLL,
1542
+ "data-type-trivia": r === E.TRIVIA,
1543
+ "data-type-poll": r === E.POLL,
1543
1544
  name: l.iconName
1544
1545
  }
1545
1546
  ),
1546
1547
  /* @__PURE__ */ s(Qs, { children: l.label })
1547
1548
  ] }),
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: [
1549
+ r === E.FACTOID && o && /* @__PURE__ */ s(Bs, { ...o, action: t, controlVideo: n }),
1550
+ r === E.TWEET && c && /* @__PURE__ */ s(sn, { ...c, action: t, controlVideo: n }),
1551
+ r !== E.FACTOID && r !== E.TWEET && /* @__PURE__ */ h(x, { children: [
1551
1552
  /* @__PURE__ */ s(Ks, { children: a == null ? void 0 : a.title }),
1552
1553
  /* @__PURE__ */ s(Ys, { children: "Answer" })
1553
1554
  ] })
@@ -1556,67 +1557,67 @@ const hs = {
1556
1557
  name: "BGWrap",
1557
1558
  class: "b1dqe0sz",
1558
1559
  propsAsIs: !1
1559
- }), N = /* @__PURE__ */ i("div")({
1560
+ }), T = /* @__PURE__ */ i("div")({
1560
1561
  name: "BGLineBase",
1561
1562
  class: "b1v6w7ni",
1562
1563
  propsAsIs: !1
1563
- }), nn = () => N, rn = /* @__PURE__ */ i(nn())({
1564
+ }), nn = () => T, rn = /* @__PURE__ */ i(nn())({
1564
1565
  name: "BGOneLineOne",
1565
1566
  class: "b2nqb1p",
1566
1567
  propsAsIs: !0
1567
- }), an = () => N, on = /* @__PURE__ */ i(an())({
1568
+ }), an = () => T, on = /* @__PURE__ */ i(an())({
1568
1569
  name: "BGOneLineTwo",
1569
1570
  class: "b1xxgmbk",
1570
1571
  propsAsIs: !0
1571
- }), ln = () => N, cn = /* @__PURE__ */ i(ln())({
1572
+ }), ln = () => T, cn = /* @__PURE__ */ i(ln())({
1572
1573
  name: "BGOneLineThree",
1573
1574
  class: "b63lwcb",
1574
1575
  propsAsIs: !0
1575
- }), dn = () => N, W2 = /* @__PURE__ */ i(dn())({
1576
+ }), dn = () => T, W2 = /* @__PURE__ */ i(dn())({
1576
1577
  name: "BGTwoLineOne",
1577
1578
  class: "b2iah4",
1578
1579
  propsAsIs: !0
1579
- }), pn = () => N, j2 = /* @__PURE__ */ i(pn())({
1580
+ }), pn = () => T, j2 = /* @__PURE__ */ i(pn())({
1580
1581
  name: "BGTwoLineTwo",
1581
1582
  class: "b1xezvf6",
1582
1583
  propsAsIs: !0
1583
- }), hn = () => N, Z2 = /* @__PURE__ */ i(hn())({
1584
+ }), hn = () => T, Z2 = /* @__PURE__ */ i(hn())({
1584
1585
  name: "BGTwoLineThree",
1585
1586
  class: "b1jz1hg0",
1586
1587
  propsAsIs: !0
1587
- }), un = () => N, G2 = /* @__PURE__ */ i(un())({
1588
+ }), un = () => T, G2 = /* @__PURE__ */ i(un())({
1588
1589
  name: "BGThreeLineOne",
1589
1590
  class: "b18ho1tk",
1590
1591
  propsAsIs: !0
1591
- }), mn = () => N, Q2 = /* @__PURE__ */ i(mn())({
1592
+ }), mn = () => T, Q2 = /* @__PURE__ */ i(mn())({
1592
1593
  name: "BGThreeLineTwo",
1593
1594
  class: "b14uvjfm",
1594
1595
  propsAsIs: !0
1595
- }), vn = () => N, K2 = /* @__PURE__ */ i(vn())({
1596
+ }), vn = () => T, K2 = /* @__PURE__ */ i(vn())({
1596
1597
  name: "BGThreeLineThree",
1597
1598
  class: "b11c3ns7",
1598
1599
  propsAsIs: !0
1599
- }), Cn = () => N, Y2 = /* @__PURE__ */ i(Cn())({
1600
+ }), Cn = () => T, Y2 = /* @__PURE__ */ i(Cn())({
1600
1601
  name: "BGThreeLineFour",
1601
1602
  class: "b1bqhhet",
1602
1603
  propsAsIs: !0
1603
- }), fn = () => N, gn = /* @__PURE__ */ i(fn())({
1604
+ }), fn = () => T, gn = /* @__PURE__ */ i(fn())({
1604
1605
  name: "BGFourLineOne",
1605
1606
  class: "b1xyzi7o",
1606
1607
  propsAsIs: !0
1607
- }), In = () => N, bn = /* @__PURE__ */ i(In())({
1608
+ }), In = () => T, bn = /* @__PURE__ */ i(In())({
1608
1609
  name: "BGFourLineTwo",
1609
1610
  class: "byo0rup",
1610
1611
  propsAsIs: !0
1611
- }), $n = () => N, An = /* @__PURE__ */ i($n())({
1612
+ }), $n = () => T, An = /* @__PURE__ */ i($n())({
1612
1613
  name: "BGFourLineThree",
1613
1614
  class: "b1oyiqgv",
1614
1615
  propsAsIs: !0
1615
- }), yn = () => N, wn = /* @__PURE__ */ i(yn())({
1616
+ }), yn = () => T, wn = /* @__PURE__ */ i(yn())({
1616
1617
  name: "BGFourLineFour",
1617
1618
  class: "bx3ddqw",
1618
1619
  propsAsIs: !0
1619
- }), Ln = ({ step: e, correct: t }) => /* @__PURE__ */ h(R, { children: [
1620
+ }), Ln = ({ step: e, correct: t }) => /* @__PURE__ */ h(x, { children: [
1620
1621
  /* @__PURE__ */ h(P, { "data-active": e === 1, "data-first-screen": "true", children: [
1621
1622
  /* @__PURE__ */ s(rn, {}),
1622
1623
  /* @__PURE__ */ s(on, {}),
@@ -1632,7 +1633,7 @@ const hs = {
1632
1633
  /* @__PURE__ */ s(j2, {}),
1633
1634
  /* @__PURE__ */ s(Z2, {})
1634
1635
  ] }),
1635
- t ? /* @__PURE__ */ h(R, { children: [
1636
+ t ? /* @__PURE__ */ h(x, { children: [
1636
1637
  /* @__PURE__ */ h(P, { "data-active": e === 4, "data-correct": "true", children: [
1637
1638
  /* @__PURE__ */ s(G2, {}),
1638
1639
  /* @__PURE__ */ s(Q2, {}),
@@ -1651,11 +1652,11 @@ const hs = {
1651
1652
  /* @__PURE__ */ s(An, {}),
1652
1653
  /* @__PURE__ */ s(wn, {})
1653
1654
  ] })
1654
- ] }), kn = 118, _n = () => i2, Tn = /* @__PURE__ */ i(_n())({
1655
+ ] }), kn = 118, _n = () => i2, Sn = /* @__PURE__ */ i(_n())({
1655
1656
  name: "Container",
1656
1657
  class: "c10131zw",
1657
1658
  propsAsIs: !0
1658
- }), Sn = /* @__PURE__ */ i("div")({
1659
+ }), Tn = /* @__PURE__ */ i("div")({
1659
1660
  name: "InnerContainer",
1660
1661
  class: "ir6k2eo",
1661
1662
  propsAsIs: !1
@@ -1717,8 +1718,8 @@ const hs = {
1717
1718
  const p = (I) => (f) => {
1718
1719
  m.current && (m.current[I] = f);
1719
1720
  }, 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,
1721
+ return n && g.height && typeof g.height == "number" && (g.height += 32), /* @__PURE__ */ s(Sn, { style: l.height ? g : { ...l, paddingTop: 0, paddingBottom: 0 }, hiding: d, children: /* @__PURE__ */ h(
1722
+ Tn,
1722
1723
  {
1723
1724
  style: {
1724
1725
  height: l.height,
@@ -1744,7 +1745,7 @@ const hs = {
1744
1745
  t == null ? void 0 : t.title
1745
1746
  ] }) })
1746
1747
  ] }),
1747
- r ? /* @__PURE__ */ h(R, { children: [
1748
+ r ? /* @__PURE__ */ h(x, { children: [
1748
1749
  /* @__PURE__ */ h(
1749
1750
  q,
1750
1751
  {
@@ -2005,11 +2006,11 @@ const hs = {
2005
2006
  name: "IconClose",
2006
2007
  class: "i1mavjt2",
2007
2008
  propsAsIs: !0
2008
- }), Ti = /* @__PURE__ */ i("div")({
2009
+ }), Si = /* @__PURE__ */ i("div")({
2009
2010
  name: "OnboardingFooter",
2010
2011
  class: "o1x0dyzv",
2011
2012
  propsAsIs: !1
2012
- }), Si = () => $i, Ni = /* @__PURE__ */ i(Si())({
2013
+ }), Ti = () => $i, Ni = /* @__PURE__ */ i(Ti())({
2013
2014
  name: "OnboardingActionBtn",
2014
2015
  class: "o1jfi9c3",
2015
2016
  propsAsIs: !0
@@ -2035,13 +2036,13 @@ const hs = {
2035
2036
  sdk: g,
2036
2037
  onClose: I
2037
2038
  }) => {
2038
- const [f, $] = L(0), [b, k] = L(!1), [w, x] = L(W);
2039
+ const [f, $] = L(0), [b, k] = L(!1), [w, N] = L(W);
2039
2040
  y(() => {
2040
- t != null && t.length ? x({ ...W, steps: !0 }) : n != null && n.length ? x({ ...W, rules: !0 }) : x({ ...W, inviteCard: !0 });
2041
+ t != null && t.length ? N({ ...W, steps: !0 }) : n != null && n.length ? N({ ...W, rules: !0 }) : N({ ...W, inviteCard: !0 });
2041
2042
  }, []);
2042
2043
  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 () => {
2044
+ t != null && t.length && f < t.length - 1 ? $((r2) => ++r2) : n != null && n.length && w.steps ? N({ ...W, rules: !0 }) : w.rules && N({ ...W, inviteCard: !0 });
2045
+ }, [f, t == null ? void 0 : t.length, n == null ? void 0 : n.length, w, $, N]), ye = async () => {
2045
2046
  w.inviteCard ? await e.onboardingStatus.submitInplay() : w.rules && b ? k(!1) : Ae();
2046
2047
  };
2047
2048
  return y(() => {
@@ -2079,7 +2080,7 @@ const hs = {
2079
2080
  }
2080
2081
  )
2081
2082
  ] }),
2082
- /* @__PURE__ */ s(Ti, { children: /* @__PURE__ */ s(O, { loading: p, style: { width: "100%" }, children: /* @__PURE__ */ s(Ni, { "data-a": "intr", onClick: ye, children: $e }) }) })
2083
+ /* @__PURE__ */ s(Si, { children: /* @__PURE__ */ s(O, { loading: p, style: { width: "100%" }, children: /* @__PURE__ */ s(Ni, { "data-a": "intr", onClick: ye, children: $e }) }) })
2083
2084
  ] }) });
2084
2085
  }, Ri = /* @__PURE__ */ i("div")({
2085
2086
  name: "Container",
@@ -2132,7 +2133,7 @@ const hs = {
2132
2133
  }, h2 = [{
2133
2134
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",
2134
2135
  tagline: "",
2135
- headline: /* @__PURE__ */ h(R, {
2136
+ headline: /* @__PURE__ */ h(x, {
2136
2137
  children: ["Welcome to ", /* @__PURE__ */ s("br", {}), " Live Challenge"]
2137
2138
  })
2138
2139
  }, {
@@ -2173,8 +2174,8 @@ const hs = {
2173
2174
  var b, k;
2174
2175
  const w = o.getInviter();
2175
2176
  return w ? (k = (b = g.data) == null ? void 0 : b.find(({
2176
- slId: x
2177
- }) => x === w)) == null ? void 0 : k.name : "";
2177
+ slId: N
2178
+ }) => N === w)) == null ? void 0 : k.name : "";
2178
2179
  }, [g.data, o]);
2179
2180
  return y(() => {
2180
2181
  const b = e.$store.subscribe((k) => {
@@ -2253,7 +2254,7 @@ const hs = {
2253
2254
  renderToNode: a,
2254
2255
  sdk: e
2255
2256
  })
2256
- }) : /* @__PURE__ */ h(R, {
2257
+ }) : /* @__PURE__ */ h(x, {
2257
2258
  children: [/* @__PURE__ */ s(ne, {
2258
2259
  ref: l,
2259
2260
  style: {
@@ -2361,7 +2362,7 @@ const hs = {
2361
2362
  sdk: d
2362
2363
  } = u2(), [u, v, m] = r1(t.id);
2363
2364
  let p = v;
2364
- return a || (p = "auto"), t.type === e2.QUESTION ? /* @__PURE__ */ h(R, {
2365
+ return a || (p = "auto"), t.type === e2.QUESTION ? /* @__PURE__ */ h(x, {
2365
2366
  children: [/* @__PURE__ */ s(t1, {
2366
2367
  ref: u,
2367
2368
  children: /* @__PURE__ */ s(P2, {
@@ -2450,7 +2451,7 @@ const hs = {
2450
2451
  }) => {
2451
2452
  const [l] = L(e.getNotificationsStore()), d = A(l), [u, v] = L(null), m = M(() => e.getActiveNotification(), [e, d]);
2452
2453
  return y(() => {
2453
- m && Ge.emit("notification", {
2454
+ m && l0.emit("notification", {
2454
2455
  action: "rendered",
2455
2456
  payload: {
2456
2457
  questionId: m.data.questionId,
@@ -2467,7 +2468,7 @@ const hs = {
2467
2468
  }));
2468
2469
  }, [m]), y(() => {
2469
2470
  m || v(null);
2470
- }, [m]), /* @__PURE__ */ h(R, {
2471
+ }, [m]), /* @__PURE__ */ h(x, {
2471
2472
  children: [!u && m && /* @__PURE__ */ s(a1, {
2472
2473
  appNode: a,
2473
2474
  sdk: e,
@@ -2544,10 +2545,10 @@ const hs = {
2544
2545
  activeFeature: p,
2545
2546
  isLogged: C
2546
2547
  } = d1(e), g = !!m;
2547
- Ke(o, {
2548
+ Qe(o, {
2548
2549
  enabled: g,
2549
2550
  event: "click",
2550
- listener: Ye
2551
+ listener: Ke
2551
2552
  });
2552
2553
  const I = M(() => ({
2553
2554
  sdk: e,
@@ -2555,7 +2556,7 @@ const hs = {
2555
2556
  }), [e, n]);
2556
2557
  return y(() => {
2557
2558
  import("./gamification-feature.js");
2558
- }, []), /* @__PURE__ */ s(t0.Provider, {
2559
+ }, []), /* @__PURE__ */ s(e0.Provider, {
2559
2560
  value: I,
2560
2561
  children: /* @__PURE__ */ h(je, {
2561
2562
  ref: (f) => {
@@ -2608,13 +2609,13 @@ const hs = {
2608
2609
  })]
2609
2610
  })
2610
2611
  });
2611
- }, D1 = ({ event: e, topNavigation: t, theme: n, muted: r, withSidebarNotification: a = !0 }) => {
2612
+ }, B1 = ({ event: e, topNavigation: t, theme: n, muted: r, withSidebarNotification: a = !0 }) => {
2612
2613
  const { sdk: o, status: c } = f2(g2), l = Re(), d = Ee(), { event: u } = f2(g2);
2613
2614
  if (c === I2.UNSET)
2614
2615
  throw new Error("Wrap app in `StreamLayerProvider`");
2615
2616
  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 }) }) });
2616
2617
  };
2617
2618
  export {
2618
- O1 as B,
2619
- D1 as b
2619
+ F1 as B,
2620
+ B1 as b
2620
2621
  };