@streamlayer/react 1.24.5 → 1.24.6

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 (103) hide show
  1. package/lib/cjs/Question.js +1 -1
  2. package/lib/cjs/advertisement.js +26 -26
  3. package/lib/cjs/bet-pack.js +1 -1
  4. package/lib/cjs/feature.js +1 -1
  5. package/lib/cjs/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
  6. package/lib/cjs/index10.js +1 -1
  7. package/lib/cjs/index11.js +1 -1
  8. package/lib/cjs/index12.js +1 -1
  9. package/lib/cjs/index13.js +4 -1
  10. package/lib/cjs/index14.js +1 -4
  11. package/lib/cjs/index15.js +1 -1
  12. package/lib/cjs/index16.js +2 -2
  13. package/lib/cjs/index2.js +1 -1
  14. package/lib/cjs/index4.js +3 -3
  15. package/lib/cjs/index6.js +1 -1
  16. package/lib/cjs/index7.js +1 -1
  17. package/lib/cjs/index9.js +2 -2
  18. package/lib/cjs/insight.js +1 -1
  19. package/lib/cjs/masters2.js +3 -3
  20. package/lib/cjs/notification.js +1 -1
  21. package/lib/cjs/pause-ad.js +1 -1
  22. package/lib/cjs/points.js +1 -1
  23. package/lib/cjs/polymarket.js +1 -1
  24. package/lib/cjs/storage.js +1 -1
  25. package/lib/cjs/useStreamLayerApp2.js +13 -13
  26. package/lib/classic/cjs/Question.js +1 -1
  27. package/lib/classic/cjs/advertisement.js +26 -26
  28. package/lib/classic/cjs/bet-pack.js +3 -3
  29. package/lib/classic/cjs/feature.js +1 -1
  30. package/lib/classic/cjs/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
  31. package/lib/classic/cjs/index10.js +1 -1
  32. package/lib/classic/cjs/index11.js +1 -1
  33. package/lib/classic/cjs/index12.js +1 -1
  34. package/lib/classic/cjs/index13.js +1 -1
  35. package/lib/classic/cjs/index2.js +2 -2
  36. package/lib/classic/cjs/index5.js +1 -1
  37. package/lib/classic/cjs/index7.js +2 -2
  38. package/lib/classic/cjs/index8.js +1 -1
  39. package/lib/classic/cjs/index9.js +1 -1
  40. package/lib/classic/cjs/insight.js +1 -1
  41. package/lib/classic/cjs/notification2.js +1 -1
  42. package/lib/classic/cjs/pause-ad.js +1 -1
  43. package/lib/classic/cjs/points.js +1 -1
  44. package/lib/classic/cjs/polymarket.js +1 -1
  45. package/lib/classic/cjs/useStreamLayerApp2.js +13 -13
  46. package/lib/classic/es/Question.js +313 -198
  47. package/lib/classic/es/advertisement.js +1988 -1955
  48. package/lib/classic/es/bet-pack.js +12 -13
  49. package/lib/classic/es/feature.js +188 -37
  50. package/lib/{es/index-DvqmgCor.js → classic/es/index-CfSdnrfA.js} +1 -1
  51. package/lib/classic/es/index10.js +309 -2580
  52. package/lib/classic/es/index11.js +2580 -305
  53. package/lib/classic/es/index12.js +12 -12
  54. package/lib/classic/es/index13.js +2 -2
  55. package/lib/classic/es/index2.js +129 -121
  56. package/lib/classic/es/index5.js +0 -1
  57. package/lib/classic/es/index7.js +2 -2
  58. package/lib/classic/es/index8.js +1 -1
  59. package/lib/classic/es/index9.js +1 -1
  60. package/lib/classic/es/insight.js +1 -1
  61. package/lib/classic/es/notification2.js +137 -138
  62. package/lib/classic/es/pause-ad.js +124 -149
  63. package/lib/classic/es/points.js +3 -4
  64. package/lib/classic/es/polymarket.js +1 -1
  65. package/lib/classic/es/useStreamLayerApp2.js +2931 -2877
  66. package/lib/classic/source.css +1 -1
  67. package/lib/dist/cjs/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
  68. package/lib/dist/cjs/masters.js +31 -31
  69. package/lib/dist/es/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
  70. package/lib/dist/es/masters.js +7957 -7774
  71. package/lib/dist/index.d.ts +2 -0
  72. package/lib/es/Question.js +66 -65
  73. package/lib/es/advertisement.js +1988 -1955
  74. package/lib/es/bet-pack.js +1 -1
  75. package/lib/es/feature.js +188 -37
  76. package/lib/{classic/es/index-DvqmgCor.js → es/index-CfSdnrfA.js} +1 -1
  77. package/lib/es/index10.js +1 -1
  78. package/lib/es/index11.js +12 -12
  79. package/lib/es/index12.js +366 -2579
  80. package/lib/es/index13.js +789 -234
  81. package/lib/es/index14.js +293 -792
  82. package/lib/es/index15.js +2580 -305
  83. package/lib/es/index16.js +41 -42
  84. package/lib/es/index2.js +279 -271
  85. package/lib/es/index4.js +15 -16
  86. package/lib/es/index6.js +0 -1
  87. package/lib/es/index7.js +1 -1
  88. package/lib/es/index9.js +2 -2
  89. package/lib/es/insight.js +1 -1
  90. package/lib/es/masters2.js +194 -183
  91. package/lib/es/notification.js +22 -23
  92. package/lib/es/pause-ad.js +124 -149
  93. package/lib/es/points.js +20 -21
  94. package/lib/es/polymarket.js +1 -1
  95. package/lib/es/storage.js +1 -1
  96. package/lib/es/useStreamLayerApp2.js +2931 -2877
  97. package/lib/source.css +1 -1
  98. package/lib/style.css +1 -1
  99. package/package.json +72 -53
  100. package/lib/cjs/sl-types.js +0 -1
  101. package/lib/classic/cjs/sl-types.js +0 -1
  102. package/lib/classic/es/sl-types.js +0 -156
  103. package/lib/es/sl-types.js +0 -156
package/lib/es/index2.js CHANGED
@@ -1,19 +1,18 @@
1
1
  import { h as ye } from "./index7.js";
2
- import { jsx as n, jsxs as v, Fragment as R } from "react/jsx-runtime";
3
- import { u as f, s as p, a as Ne, c as $, N as M } from "./sl-types.js";
4
- import { l as Se, S as $e, m as we, d as Ae, n as Ce, C as Ee, y as Re, a as xe, f as V, p as Le, c as De } from "./index14.js";
5
- import { M as Te, b as Oe, Q as _e, z as me, c as he, T as fe, I as Me, n as Be, f as Ue, w as Q, a as Fe, p as Pe } from "./index16.js";
6
- import P from "lodash.throttle";
7
- import { useState as N, useEffect as b, useRef as E, PureComponent as ze, useCallback as z, useMemo as w, Suspense as Ve, lazy as qe, forwardRef as ve, useLayoutEffect as je, useContext as K } from "react";
2
+ import { jsx as o, jsxs as v, Fragment as R } from "react/jsx-runtime";
3
+ import { u as f, F as Ne, s as p, b as Se, c as w, a as T, N as M } from "./feature.js";
4
+ import { l as we, S as $e, m as Ae, d as Ce, n as Ee, C as Re, y as xe, a as Le, f as V, p as De, c as Te } from "./index13.js";
5
+ import { M as Oe, b as _e, Q as Me, z as me, c as he, T as fe, I as Be, n as Ue, f as Pe, w as Q, a as Fe, p as ze } from "./index16.js";
6
+ import F from "lodash.throttle";
7
+ import { useState as N, useEffect as I, useRef as E, PureComponent as Ve, useCallback as z, useMemo as $, Suspense as qe, lazy as je, forwardRef as ve, useLayoutEffect as Qe, useContext as K } from "react";
8
8
  import { A as L } from "./index9.js";
9
- import { f as ge, u as Qe, A as Ke, a as We } from "./analytics.js";
9
+ import { f as ge, u as Ke, A as He, a as We } from "./analytics.js";
10
10
  import { m as O } from "./theme.js";
11
- import { F as Ge, c as T } from "./feature.js";
12
11
  import "nanostores";
13
- import { p as q, _ as He, e as Je } from "./Question.js";
14
- import { O as Ze } from "./index13.js";
12
+ import { p as q, _ as Ge, e as Je } from "./Question.js";
13
+ import { O as Ze } from "./index12.js";
15
14
  import { B as x } from "./index8.js";
16
- import { I as Xe, S as y, f as C, h as W, Q as U } from "./useStreamLayerApp2.js";
15
+ import { I as Xe, S as y, f as C, h as H, Q as U } from "./useStreamLayerApp2.js";
17
16
  import Ye from "react-infinite-scroller";
18
17
  import { I as et, s as tt, e as st } from "./index11.js";
19
18
  import "uuid";
@@ -22,7 +21,7 @@ import "./storage.js";
22
21
  import "./index6.js";
23
22
  import { createPortal as nt } from "react-dom";
24
23
  import { e as ot } from "./index3.js";
25
- import { i as G, q as at, _ as rt, j as H } from "./hooks-n9ax4LRT.js";
24
+ import { i as W, q as at, _ as rt, j as G } from "./hooks-n9ax4LRT.js";
26
25
  import "./notification.js";
27
26
  const J = Object.keys(L), Z = () => {
28
27
  const e = window.innerWidth;
@@ -44,12 +43,12 @@ const J = Object.keys(L), Z = () => {
44
43
  sdkInView: X(e),
45
44
  sdkInDesktopView: B()
46
45
  }));
47
- return b(() => {
48
- const s = P(() => {
46
+ return I(() => {
47
+ const s = F(() => {
49
48
  t.setKey("sdkInView", X(e));
50
- }, 200), a = P(() => {
51
- const o = Z();
52
- t.setKey("screen", o), t.setKey("sdkInDesktopView", B());
49
+ }, 200), a = F(() => {
50
+ const n = Z();
51
+ t.setKey("screen", n), t.setKey("sdkInDesktopView", B());
53
52
  }, 200);
54
53
  return window.addEventListener("scroll", s), window.addEventListener("resize", a), () => {
55
54
  window.removeEventListener("scroll", s), window.removeEventListener("resize", a);
@@ -62,19 +61,19 @@ const J = Object.keys(L), Z = () => {
62
61
  ...s
63
62
  });
64
63
  }, lt = 15, dt = (e, t) => {
65
- const s = E(null), a = E(0), [o] = N(
64
+ const s = E(null), a = E(0), [n] = N(
66
65
  ge({
67
66
  scrollPosition: 0,
68
67
  tabsShown: !0,
69
68
  scrollDirection: "forward"
70
69
  })
71
70
  ), r = f(t);
72
- return b(() => {
71
+ return I(() => {
73
72
  const d = B() ? s.current : window;
74
73
  if (!d)
75
74
  return () => {
76
75
  };
77
- const l = P((i) => {
76
+ const l = F((i) => {
78
77
  const c = i.target;
79
78
  if (!c)
80
79
  return;
@@ -84,17 +83,17 @@ const J = Object.keys(L), Z = () => {
84
83
  if (lt > Math.abs(m))
85
84
  return;
86
85
  const h = a.current < u ? "forward" : "backward";
87
- a.current = u, o.set({
86
+ a.current = u, n.set({
88
87
  scrollPosition: Math.round(u),
89
88
  scrollDirection: h,
90
- tabsShown: o.get().tabsShown
89
+ tabsShown: n.get().tabsShown
91
90
  });
92
91
  }, 200);
93
92
  return d.addEventListener("scroll", l), () => {
94
93
  d.removeEventListener("scroll", l);
95
94
  };
96
- }, [o, e, r.screen]), [s, o];
97
- }, F = /* @__PURE__ */ p("div")({
95
+ }, [n, e, r.screen]), [s, n];
96
+ }, P = /* @__PURE__ */ p("div")({
98
97
  name: "LoadingContainer",
99
98
  class: "lclc0ej",
100
99
  propsAsIs: !1
@@ -103,22 +102,22 @@ const J = Object.keys(L), Z = () => {
103
102
  sdk: t,
104
103
  children: s,
105
104
  className: a,
106
- noWait: o
105
+ noWait: n
107
106
  }) => {
108
107
  const r = f(e.status), d = f(t.sdkStore.slStreamId);
109
- if (!o) {
108
+ if (!n) {
110
109
  if (d?.loading && !d.data)
111
- return /* @__PURE__ */ n(F, {
110
+ return /* @__PURE__ */ o(P, {
112
111
  className: a,
113
112
  children: "Event is loading..."
114
113
  });
115
114
  if (!d?.data)
116
- return /* @__PURE__ */ n(F, {
115
+ return /* @__PURE__ */ o(P, {
117
116
  className: a,
118
117
  children: "Event is forbidden..."
119
118
  });
120
- if (r !== Ge.Ready)
121
- return /* @__PURE__ */ n(F, {
119
+ if (r !== Ne.Ready)
120
+ return /* @__PURE__ */ o(P, {
122
121
  className: a,
123
122
  children: "Wait feature..."
124
123
  });
@@ -142,12 +141,12 @@ const J = Object.keys(L), Z = () => {
142
141
  propsAsIs: !1
143
142
  });
144
143
  var D = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(D || {});
145
- const Y = ({ title: e, active: t, onClick: s }) => /* @__PURE__ */ n(mt, { "data-a": "intr", onClick: s, "data-selected": t, children: /* @__PURE__ */ n(ht, { "data-a": "intr", children: e }) }), ft = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ n(pt, { children: /* @__PURE__ */ v(ut, { "data-position": e === "home" ? "left" : "right", children: [
146
- /* @__PURE__ */ n(Y, { title: "Home", active: e === "home", onClick: () => t(
144
+ const Y = ({ title: e, active: t, onClick: s }) => /* @__PURE__ */ o(mt, { "data-a": "intr", onClick: s, "data-selected": t, children: /* @__PURE__ */ o(ht, { "data-a": "intr", children: e }) }), ft = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ o(pt, { children: /* @__PURE__ */ v(ut, { "data-position": e === "home" ? "left" : "right", children: [
145
+ /* @__PURE__ */ o(Y, { title: "Home", active: e === "home", onClick: () => t(
147
146
  "home"
148
147
  /* HOME */
149
148
  ) }),
150
- /* @__PURE__ */ n(
149
+ /* @__PURE__ */ o(
151
150
  Y,
152
151
  {
153
152
  title: "Friends",
@@ -166,11 +165,11 @@ const Y = ({ title: e, active: t, onClick: s }) => /* @__PURE__ */ n(mt, { "data
166
165
  name: "FriendsIcon",
167
166
  class: "f10ncfg2",
168
167
  propsAsIs: !0
169
- }), bt = /* @__PURE__ */ p("div")({
168
+ }), kt = /* @__PURE__ */ p("div")({
170
169
  name: "Content",
171
170
  class: "c1yc07bd",
172
171
  propsAsIs: !1
173
- }), kt = /* @__PURE__ */ p("div")({
172
+ }), bt = /* @__PURE__ */ p("div")({
174
173
  name: "Title",
175
174
  class: "tj6cq7w",
176
175
  propsAsIs: !1
@@ -182,29 +181,29 @@ const Y = ({ title: e, active: t, onClick: s }) => /* @__PURE__ */ n(mt, { "data
182
181
  name: "ArrowInviteIcon",
183
182
  class: "awohrz6",
184
183
  propsAsIs: !0
185
- }), $t = ({ title: e, description: t, onClick: s, className: a }) => {
186
- const [o] = Qe({
184
+ }), wt = ({ title: e, description: t, onClick: s, className: a }) => {
185
+ const [n] = Ke({
187
186
  type: "invitation",
188
187
  action: "sent",
189
188
  payload: {
190
189
  from: Xe.TITLE_CARD
191
190
  }
192
191
  });
193
- return /* @__PURE__ */ v(vt, { "data-a": "intr", onClick: o(s), className: a, children: [
194
- /* @__PURE__ */ n(It, { name: "icon-friends" }),
195
- /* @__PURE__ */ v(bt, { children: [
196
- /* @__PURE__ */ n(kt, { children: e }),
197
- /* @__PURE__ */ n(yt, { children: t })
192
+ return /* @__PURE__ */ v(vt, { "data-a": "intr", onClick: n(s), className: a, children: [
193
+ /* @__PURE__ */ o(It, { name: "icon-friends" }),
194
+ /* @__PURE__ */ v(kt, { children: [
195
+ /* @__PURE__ */ o(bt, { children: e }),
196
+ /* @__PURE__ */ o(yt, { children: t })
198
197
  ] }),
199
- /* @__PURE__ */ n(St, { name: "icon-copy" })
198
+ /* @__PURE__ */ o(St, { name: "icon-copy" })
200
199
  ] });
201
200
  };
202
- function wt(e) {
203
- var t = e.lastRenderedStartIndex, s = e.lastRenderedStopIndex, a = e.startIndex, o = e.stopIndex;
204
- return !(a > s || o < t);
201
+ function $t(e) {
202
+ var t = e.lastRenderedStartIndex, s = e.lastRenderedStopIndex, a = e.startIndex, n = e.stopIndex;
203
+ return !(a > s || n < t);
205
204
  }
206
205
  function At(e) {
207
- for (var t = e.isItemLoaded, s = e.itemCount, a = e.minimumBatchSize, o = e.startIndex, r = e.stopIndex, d = [], l = null, i = null, c = o; c <= r; c++) {
206
+ for (var t = e.isItemLoaded, s = e.itemCount, a = e.minimumBatchSize, n = e.startIndex, r = e.stopIndex, d = [], l = null, i = null, c = n; c <= r; c++) {
208
207
  var u = t(c);
209
208
  u ? i !== null && (d.push(l, i), l = i = null) : (i = c, l === null && (l = c));
210
209
  }
@@ -229,8 +228,8 @@ var Ct = function(e, t) {
229
228
  }, Et = /* @__PURE__ */ (function() {
230
229
  function e(t, s) {
231
230
  for (var a = 0; a < s.length; a++) {
232
- var o = s[a];
233
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
231
+ var n = s[a];
232
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
234
233
  }
235
234
  }
236
235
  return function(t, s, a) {
@@ -255,16 +254,16 @@ var Ct = function(e, t) {
255
254
  (function(e) {
256
255
  Rt(t, e);
257
256
  function t() {
258
- var s, a, o, r;
257
+ var s, a, n, r;
259
258
  Ct(this, t);
260
259
  for (var d = arguments.length, l = Array(d), i = 0; i < d; i++)
261
260
  l[i] = arguments[i];
262
- return r = (a = (o = ee(this, (s = t.__proto__ || Object.getPrototypeOf(t)).call.apply(s, [this].concat(l))), o), o._lastRenderedStartIndex = -1, o._lastRenderedStopIndex = -1, o._memoizedUnloadedRanges = [], o._onItemsRendered = function(c) {
261
+ return r = (a = (n = ee(this, (s = t.__proto__ || Object.getPrototypeOf(t)).call.apply(s, [this].concat(l))), n), n._lastRenderedStartIndex = -1, n._lastRenderedStopIndex = -1, n._memoizedUnloadedRanges = [], n._onItemsRendered = function(c) {
263
262
  var u = c.visibleStartIndex, m = c.visibleStopIndex;
264
- o._lastRenderedStartIndex = u, o._lastRenderedStopIndex = m, o._ensureRowsLoaded(u, m);
265
- }, o._setRef = function(c) {
266
- o._listRef = c;
267
- }, a), ee(o, r);
263
+ n._lastRenderedStartIndex = u, n._lastRenderedStopIndex = m, n._ensureRowsLoaded(u, m);
264
+ }, n._setRef = function(c) {
265
+ n._listRef = c;
266
+ }, a), ee(n, r);
268
267
  }
269
268
  return Et(t, [{
270
269
  key: "resetloadMoreItemsCache",
@@ -287,40 +286,40 @@ var Ct = function(e, t) {
287
286
  }
288
287
  }, {
289
288
  key: "_ensureRowsLoaded",
290
- value: function(a, o) {
289
+ value: function(a, n) {
291
290
  var r = this.props, d = r.isItemLoaded, l = r.itemCount, i = r.minimumBatchSize, c = i === void 0 ? 10 : i, u = r.threshold, m = u === void 0 ? 15 : u, h = At({
292
291
  isItemLoaded: d,
293
292
  itemCount: l,
294
293
  minimumBatchSize: c,
295
294
  startIndex: Math.max(0, a - m),
296
- stopIndex: Math.min(l - 1, o + m)
295
+ stopIndex: Math.min(l - 1, n + m)
297
296
  });
298
- (this._memoizedUnloadedRanges.length !== h.length || this._memoizedUnloadedRanges.some(function(g, I) {
299
- return h[I] !== g;
297
+ (this._memoizedUnloadedRanges.length !== h.length || this._memoizedUnloadedRanges.some(function(g, k) {
298
+ return h[k] !== g;
300
299
  })) && (this._memoizedUnloadedRanges = h, this._loadUnloadedRanges(h));
301
300
  }
302
301
  }, {
303
302
  key: "_loadUnloadedRanges",
304
303
  value: function(a) {
305
- for (var o = this, r = this.props.loadMoreItems || this.props.loadMoreRows, d = function(c) {
304
+ for (var n = this, r = this.props.loadMoreItems || this.props.loadMoreRows, d = function(c) {
306
305
  var u = a[c], m = a[c + 1], h = r(u, m);
307
306
  h?.then(function() {
308
- if (wt({
309
- lastRenderedStartIndex: o._lastRenderedStartIndex,
310
- lastRenderedStopIndex: o._lastRenderedStopIndex,
307
+ if ($t({
308
+ lastRenderedStartIndex: n._lastRenderedStartIndex,
309
+ lastRenderedStopIndex: n._lastRenderedStopIndex,
311
310
  startIndex: u,
312
311
  stopIndex: m
313
312
  })) {
314
- if (o._listRef == null)
313
+ if (n._listRef == null)
315
314
  return;
316
- typeof o._listRef.resetAfterIndex == "function" ? o._listRef.resetAfterIndex(u, !0) : (typeof o._listRef._getItemStyleCache == "function" && o._listRef._getItemStyleCache(-1), o._listRef.forceUpdate());
315
+ typeof n._listRef.resetAfterIndex == "function" ? n._listRef.resetAfterIndex(u, !0) : (typeof n._listRef._getItemStyleCache == "function" && n._listRef._getItemStyleCache(-1), n._listRef.forceUpdate());
317
316
  }
318
317
  });
319
318
  }, l = 0; l < a.length; l += 2)
320
319
  d(l);
321
320
  }
322
321
  }]), t;
323
- })(ze);
322
+ })(Ve);
324
323
  const xt = /* @__PURE__ */ p("div")({
325
324
  name: "Container",
326
325
  class: "culdu4a",
@@ -353,25 +352,25 @@ const xt = /* @__PURE__ */ p("div")({
353
352
  name: "CurrentUserBadge",
354
353
  class: "c17uc4zr",
355
354
  propsAsIs: !0
356
- }), Ft = ({
355
+ }), Pt = ({
357
356
  friendsRank: e,
358
357
  avatar: t,
359
358
  name: s,
360
359
  userId: a,
361
- points: o,
360
+ points: n,
362
361
  isCurrentUser: r,
363
362
  style: d
364
363
  }) => /* @__PURE__ */ v(xt, { "data-name": a, style: d, children: [
365
- /* @__PURE__ */ n(Lt, { children: e || 0 }),
364
+ /* @__PURE__ */ o(Lt, { children: e || 0 }),
366
365
  /* @__PURE__ */ v(Ot, { children: [
367
- t ? /* @__PURE__ */ n(Dt, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ n(Tt, { children: et(s || "") }),
366
+ t ? /* @__PURE__ */ o(Dt, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ o(Tt, { children: et(s || "") }),
368
367
  /* @__PURE__ */ v(_t, { children: [
369
- /* @__PURE__ */ n(Mt, { children: s || "" }),
370
- r && /* @__PURE__ */ n(Ut, { name: "icon-star" })
368
+ /* @__PURE__ */ o(Mt, { children: s || "" }),
369
+ r && /* @__PURE__ */ o(Ut, { name: "icon-star" })
371
370
  ] })
372
371
  ] }),
373
- /* @__PURE__ */ n("div", { children: tt(o) })
374
- ] }), Pt = /* @__PURE__ */ p("div")({
372
+ /* @__PURE__ */ o("div", { children: tt(n) })
373
+ ] }), Ft = /* @__PURE__ */ p("div")({
375
374
  name: "Container",
376
375
  class: "c16btbfp",
377
376
  propsAsIs: !1
@@ -380,23 +379,23 @@ const xt = /* @__PURE__ */ p("div")({
380
379
  currentUserId: t,
381
380
  openItemDetail: s,
382
381
  fetchMore: a,
383
- scrollNode: o,
382
+ scrollNode: n,
384
383
  hasMore: r
385
384
  }) => {
386
385
  const d = z((l) => {
387
386
  const i = l.target.getAttribute("data-name");
388
387
  i && s(i);
389
388
  }, [s]);
390
- return /* @__PURE__ */ n(Ye, {
389
+ return /* @__PURE__ */ o(Ye, {
391
390
  loadMore: a,
392
391
  initialLoad: !1,
393
392
  hasMore: r,
394
393
  useWindow: !1,
395
- getScrollParent: () => o.current,
396
- children: /* @__PURE__ */ n(Pt, {
394
+ getScrollParent: () => n.current,
395
+ children: /* @__PURE__ */ o(Ft, {
397
396
  "data-a": "intr",
398
397
  onClick: d,
399
- children: e.map((l) => /* @__PURE__ */ n(Ft, {
398
+ children: e.map((l) => /* @__PURE__ */ o(Pt, {
400
399
  ...l,
401
400
  isCurrentUser: !!t && t === l.userId
402
401
  }, l.userId))
@@ -408,8 +407,8 @@ const xt = /* @__PURE__ */ p("div")({
408
407
  propsAsIs: !1
409
408
  }), qt = ({
410
409
  deepLink: e
411
- }) => /* @__PURE__ */ n(Vt, {
412
- children: /* @__PURE__ */ n(Te, {
410
+ }) => /* @__PURE__ */ o(Vt, {
411
+ children: /* @__PURE__ */ o(Oe, {
413
412
  inviteLink: e,
414
413
  inviteCardTitle: "It’s More Fun With Friends",
415
414
  inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
@@ -424,18 +423,18 @@ const xt = /* @__PURE__ */ p("div")({
424
423
  scrollStore: s,
425
424
  leaderboardList: a
426
425
  }) => {
427
- const o = E(null), {
426
+ const n = E(null), {
428
427
  data: r,
429
428
  hasMore: d,
430
429
  loading: l,
431
430
  key: i
432
431
  } = f(a.$store), {
433
432
  data: c
434
- } = f(e.deepLink.$store), [u, m] = Oe(o);
435
- return !r.length && !l ? /* @__PURE__ */ n(qt, {
433
+ } = f(e.deepLink.$store), [u, m] = _e(n);
434
+ return !r.length && !l ? /* @__PURE__ */ o(qt, {
436
435
  deepLink: c
437
436
  }) : /* @__PURE__ */ v(R, {
438
- children: [/* @__PURE__ */ n(zt, {
437
+ children: [/* @__PURE__ */ o(zt, {
439
438
  items: r,
440
439
  scrollNode: t,
441
440
  scrollStore: s,
@@ -443,9 +442,9 @@ const xt = /* @__PURE__ */ p("div")({
443
442
  hasMore: d,
444
443
  openItemDetail: e.openUser,
445
444
  currentUserId: e.currentUserId.get()
446
- }, i), c && /* @__PURE__ */ n(jt, {
447
- ref: o,
448
- children: /* @__PURE__ */ n($t, {
445
+ }, i), c && /* @__PURE__ */ o(jt, {
446
+ ref: n,
447
+ children: /* @__PURE__ */ o(wt, {
449
448
  "data-a": "intr",
450
449
  onClick: () => u(c),
451
450
  title: "Invite Friends",
@@ -457,55 +456,64 @@ const xt = /* @__PURE__ */ p("div")({
457
456
  gamification: e,
458
457
  scrollNode: t,
459
458
  scrollStore: s
460
- }) => e.leaderboardList ? /* @__PURE__ */ n(Qt, {
459
+ }) => e.leaderboardList ? /* @__PURE__ */ o(Qt, {
461
460
  leaderboardList: e.leaderboardList,
462
461
  gamification: e,
463
462
  scrollNode: t,
464
463
  scrollStore: s
465
- }) : null, Wt = ({ store: e, openQuestion: t }) => {
466
- const { sdk: s } = q(), a = f(e);
467
- return /* @__PURE__ */ n(_e, { openQuestion: t, questions: a.data, controlVideo: s?.controlVideoPlayer });
468
- }, Gt = ({ userSummary: e }) => {
464
+ }) : null, Ht = ({ store: e, openQuestion: t, withPickHistory: s }) => {
465
+ const { sdk: a } = q(), n = f(e);
466
+ return I(() => {
467
+ s.set(!0);
468
+ }, [s]), /* @__PURE__ */ o(Me, { openQuestion: t, questions: n.data, controlVideo: a?.controlVideoPlayer });
469
+ }, Wt = ({ userSummary: e }) => {
469
470
  const [t, s] = N(void 0);
470
- return b(() => {
471
- const a = e.$store.subscribe((o) => {
472
- o && s(o);
471
+ return I(() => {
472
+ const a = e.$store.subscribe((n) => {
473
+ n && s(n);
473
474
  });
474
475
  return () => {
475
476
  a();
476
477
  };
477
- }, [e]), /* @__PURE__ */ n(me, { loading: !t?.summary, ...t?.summary, successRate: t?.percentage?.correct });
478
- }, Ht = ({ gamification: e, className: t, scrollStore: s, scrollNode: a, appNode: o, style: r, responsiveStore: d }) => {
479
- const { tabsShown: l } = f(s, { keys: ["tabsShown"] }), i = f(e.friendsTabEnabled), [c, u] = N(D.HOME), [, m] = Ne(), { sdkInDesktopView: h, screen: g } = f(d, { keys: ["sdkInDesktopView"] }), I = (k) => {
478
+ }, [e]), /* @__PURE__ */ o(me, { loading: !t?.summary, ...t?.summary, successRate: t?.percentage?.correct });
479
+ }, Gt = ({ gamification: e, className: t, scrollStore: s, scrollNode: a, appNode: n, style: r, responsiveStore: d }) => {
480
+ const { tabsShown: l } = f(s, { keys: ["tabsShown"] }), i = f(e.friendsTabEnabled), [c, u] = N(D.HOME), [, m] = Se(), { sdkInDesktopView: h, screen: g } = f(d, { keys: ["sdkInDesktopView"] }), k = (b) => {
480
481
  m(() => {
481
- u(k), h === !1 && (o.current?.getBoundingClientRect().y || 0) < 0 && j(o, g.size, { behavior: "instant" });
482
+ u(b), h === !1 && (n.current?.getBoundingClientRect().y || 0) < 0 && j(n, g.size, { behavior: "instant" });
482
483
  });
483
484
  };
484
- b(() => s.subscribe((k) => {
485
- if (k.scrollPosition === 0) {
485
+ I(() => s.subscribe((b) => {
486
+ if (b.scrollPosition === 0) {
486
487
  s.setKey("tabsShown", !0);
487
488
  return;
488
489
  }
489
- d.get().sdkInDesktopView ? s.setKey("tabsShown", k.scrollDirection === "backward") : s.setKey("tabsShown", k.scrollDirection === "forward");
490
- }), [s, d]), b(() => {
490
+ d.get().sdkInDesktopView ? s.setKey("tabsShown", b.scrollDirection === "backward") : s.setKey("tabsShown", b.scrollDirection === "forward");
491
+ }), [s, d]), I(() => {
491
492
  i || u(D.HOME);
492
493
  }, [i]);
493
494
  let A = "0px";
494
- return h ? A = l ? "0px" : "calc(0px - var(--header-height))" : A = l ? "var(--header-height)" : "0px", /* @__PURE__ */ v(Se, { className: $(t, "SL-Tabs", "sl-hide-on-modal"), style: r, children: [
495
- i && /* @__PURE__ */ n(
495
+ return h ? A = l ? "0px" : "calc(0px - var(--header-height))" : A = l ? "var(--header-height)" : "0px", /* @__PURE__ */ v(we, { className: w(t, "SL-Tabs", "sl-hide-on-modal"), style: r, children: [
496
+ i && /* @__PURE__ */ o(
496
497
  $e,
497
498
  {
498
499
  style: {
499
500
  top: A
500
501
  },
501
- children: /* @__PURE__ */ n(ft, { activePage: c, toggleActivePage: I })
502
+ children: /* @__PURE__ */ o(ft, { activePage: c, toggleActivePage: k })
502
503
  }
503
504
  ),
504
505
  c === D.HOME && /* @__PURE__ */ v(R, { children: [
505
- /* @__PURE__ */ n(we, { children: /* @__PURE__ */ n(Ae, { children: /* @__PURE__ */ n(Gt, { userSummary: e.userSummary }) }) }),
506
- /* @__PURE__ */ n(Ce, { style: { flex: 1 }, children: /* @__PURE__ */ n(Wt, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
506
+ /* @__PURE__ */ o(Ae, { children: /* @__PURE__ */ o(Ce, { children: /* @__PURE__ */ o(Wt, { userSummary: e.userSummary }) }) }),
507
+ /* @__PURE__ */ o(Ee, { style: { flex: 1 }, children: /* @__PURE__ */ o(
508
+ Ht,
509
+ {
510
+ openQuestion: e.openQuestion,
511
+ store: e.feedList.getStore(),
512
+ withPickHistory: e.withPickHistory
513
+ }
514
+ ) })
507
515
  ] }),
508
- c === D.LEADERBOARD && /* @__PURE__ */ n(Ee, { children: /* @__PURE__ */ n(Kt, { scrollStore: s, scrollNode: a, gamification: e }) })
516
+ c === D.LEADERBOARD && /* @__PURE__ */ o(Re, { children: /* @__PURE__ */ o(Kt, { scrollStore: s, scrollNode: a, gamification: e }) })
509
517
  ] });
510
518
  }, Jt = () => V, te = /* @__PURE__ */ p(Jt())({
511
519
  name: "OpenedContainer",
@@ -521,17 +529,17 @@ const xt = /* @__PURE__ */ p("div")({
521
529
  }) => {
522
530
  const s = e + t;
523
531
  return s === 0 ? 0 : Math.round(e / s * 100);
524
- }, Tn = ({
532
+ }, Dn = ({
525
533
  gamification: e,
526
534
  scrollStore: t,
527
535
  className: s,
528
536
  appNode: a,
529
- scrollNode: o,
537
+ scrollNode: n,
530
538
  responsiveStore: r
531
- }) => /* @__PURE__ */ n(Ht, {
539
+ }) => /* @__PURE__ */ o(Gt, {
532
540
  appNode: a,
533
541
  scrollStore: t,
534
- scrollNode: o,
542
+ scrollNode: n,
535
543
  className: s,
536
544
  gamification: e,
537
545
  responsiveStore: r
@@ -540,7 +548,7 @@ const xt = /* @__PURE__ */ p("div")({
540
548
  muted: t,
541
549
  sdk: s,
542
550
  className: a,
543
- appNode: o,
551
+ appNode: n,
544
552
  responsiveStore: r
545
553
  }) => {
546
554
  const {
@@ -552,63 +560,63 @@ const xt = /* @__PURE__ */ p("div")({
552
560
  }), {
553
561
  hiding: m,
554
562
  onAnimationEnd: h
555
- } = Re();
563
+ } = xe();
556
564
  if (!l && !c)
557
565
  return null;
558
- const g = i ? /* @__PURE__ */ n(te, {
559
- className: $(a, !d && se),
566
+ const g = i ? /* @__PURE__ */ o(te, {
567
+ className: w(a, !d && se),
560
568
  hiding: m,
561
569
  onAnimationEnd: h,
562
- children: /* @__PURE__ */ n(He, {
570
+ children: /* @__PURE__ */ o(Ge, {
563
571
  muted: t,
564
572
  sdk: s,
565
573
  gamification: e
566
574
  })
567
- }) : c ? /* @__PURE__ */ n(te, {
568
- className: $(a, !d && se),
575
+ }) : c ? /* @__PURE__ */ o(te, {
576
+ className: w(a, !d && se),
569
577
  hiding: m,
570
578
  onAnimationEnd: h,
571
579
  children: /* @__PURE__ */ v(Zt, {
572
- children: [/* @__PURE__ */ n(Ze, {
580
+ children: [/* @__PURE__ */ o(Ze, {
573
581
  label: "Friend's Rank",
574
582
  close: e.closeUser
575
- }), /* @__PURE__ */ n(xe, {
576
- children: /* @__PURE__ */ n(me, {
583
+ }), /* @__PURE__ */ o(Le, {
584
+ children: /* @__PURE__ */ o(me, {
577
585
  ...c,
578
586
  successRate: Xt(c)
579
587
  })
580
588
  })]
581
589
  })
582
590
  }) : null;
583
- return /* @__PURE__ */ n(fe, {
584
- container: o,
591
+ return /* @__PURE__ */ o(fe, {
592
+ container: n,
585
593
  useContainer: !u,
586
594
  children: g
587
595
  });
588
- }, es = qe(() => import("./gamification-feature.js")), ts = ({ sdk: e, feature: t, className: s, scrollStore: a, appNode: o, scrollNode: r, responsiveStore: d }) => {
589
- const l = w(() => t && t.featureConfig.get().type === y.GAMES ? /* @__PURE__ */ n(ct, { className: s, sdk: e, feature: t, children: /* @__PURE__ */ n(
596
+ }, es = je(() => import("./gamification-feature.js")), ts = ({ sdk: e, feature: t, className: s, scrollStore: a, appNode: n, scrollNode: r, responsiveStore: d }) => {
597
+ const l = $(() => t && t.featureConfig.get().type === y.GAMES ? /* @__PURE__ */ o(ct, { className: s, sdk: e, feature: t, children: /* @__PURE__ */ o(
590
598
  es,
591
599
  {
592
- appNode: o,
600
+ appNode: n,
593
601
  scrollStore: a,
594
602
  scrollNode: r,
595
603
  className: s,
596
604
  responsiveStore: d,
597
605
  gamification: t
598
606
  }
599
- ) }) : null, [e, t, s, d, a, r, o]);
600
- return /* @__PURE__ */ n(
601
- Ve,
607
+ ) }) : null, [e, t, s, d, a, r, n]);
608
+ return /* @__PURE__ */ o(
609
+ qe,
602
610
  {
603
- fallback: /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
611
+ fallback: /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
604
612
  children: l
605
613
  }
606
614
  );
607
- }, ss = ({ feature: e, sdk: t, muted: s, className: a, appNode: o, responsiveStore: r }) => e && e.featureConfig.get().type === y.GAMES ? /* @__PURE__ */ n(
615
+ }, ss = ({ feature: e, sdk: t, muted: s, className: a, appNode: n, responsiveStore: r }) => e && e.featureConfig.get().type === y.GAMES ? /* @__PURE__ */ o(
608
616
  Yt,
609
617
  {
610
618
  className: a,
611
- appNode: o,
619
+ appNode: n,
612
620
  muted: s,
613
621
  sdk: t,
614
622
  responsiveStore: r,
@@ -640,8 +648,8 @@ class os {
640
648
  const s = t.pop() || "", a = this.generateKey(t);
641
649
  try {
642
650
  this.storage.setItem(a, s);
643
- } catch (o) {
644
- ns(o) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(a, s));
651
+ } catch (n) {
652
+ ns(n) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(a, s));
645
653
  }
646
654
  };
647
655
  read = (...t) => {
@@ -659,7 +667,7 @@ var ne;
659
667
  T("grpc:stream");
660
668
  C.Unknown, C.Internal, C.DeadlineExceeded, C.ResourceExhausted, C.FailedPrecondition, C.Unavailable, C.DataLoss;
661
669
  T("grpc:retry");
662
- W(10, { description: "Number of attempts to retry" }), W(3e4, { description: "Max delay between retries in milliseconds" });
670
+ H(10, { description: "Number of attempts to retry" }), H(3e4, { description: "Max delay between retries in milliseconds" });
663
671
  var S;
664
672
  (function(e) {
665
673
  e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
@@ -725,7 +733,7 @@ const rs = {
725
733
  }), ls = ({
726
734
  children: e,
727
735
  className: t
728
- }) => /* @__PURE__ */ n(is, {
736
+ }) => /* @__PURE__ */ o(is, {
729
737
  className: t,
730
738
  children: e
731
739
  }), Ie = /* @__PURE__ */ p("div")({
@@ -748,20 +756,20 @@ const rs = {
748
756
  name: "ButtonLabel",
749
757
  class: "b40tuix",
750
758
  propsAsIs: !1
751
- }), ms = "s14xk0af", hs = "ha3mg7c", fs = "h103yr45", _ = ({ disabled: e, active: t, onClick: s, label: a, icon: o, id: r }) => /* @__PURE__ */ n(
759
+ }), ms = "s14xk0af", hs = "ha3mg7c", fs = "h103yr45", _ = ({ disabled: e, active: t, onClick: s, label: a, icon: n, id: r }) => /* @__PURE__ */ o(
752
760
  cs,
753
761
  {
754
762
  onClick: s,
755
763
  "data-a": "intr",
756
764
  disabled: e,
757
- className: $(
765
+ className: w(
758
766
  t && ms,
759
767
  !t && (r === "channels" || r === "featuredGroups") && hs,
760
768
  !t && r === "leaderboard" && fs
761
769
  ),
762
770
  children: /* @__PURE__ */ v(R, { children: [
763
- o && /* @__PURE__ */ n(ps, { children: o }),
764
- /* @__PURE__ */ n(us, { children: a })
771
+ n && /* @__PURE__ */ o(ps, { children: n }),
772
+ /* @__PURE__ */ o(us, { children: a })
765
773
  ] })
766
774
  }
767
775
  ), vs = () => x, gs = /* @__PURE__ */ p(vs())({
@@ -772,11 +780,11 @@ const rs = {
772
780
  name: "Container",
773
781
  class: "calnblm",
774
782
  propsAsIs: !1
775
- }), bs = /* @__PURE__ */ p("div")({
783
+ }), ks = /* @__PURE__ */ p("div")({
776
784
  name: "Title",
777
785
  class: "t1438p52",
778
786
  propsAsIs: !1
779
- }), ks = /* @__PURE__ */ p("div")({
787
+ }), bs = /* @__PURE__ */ p("div")({
780
788
  name: "CloseIconWrap",
781
789
  class: "c17srj38",
782
790
  propsAsIs: !1
@@ -784,11 +792,11 @@ const rs = {
784
792
  name: "CloseIcon",
785
793
  class: "clqia8k",
786
794
  propsAsIs: !0
787
- }), Ss = () => x, $s = /* @__PURE__ */ p(Ss())({
795
+ }), Ss = () => x, ws = /* @__PURE__ */ p(Ss())({
788
796
  name: "DashboardIcon",
789
797
  class: "df5w958",
790
798
  propsAsIs: !0
791
- }), ws = "h12x6aiv", As = ve(({
799
+ }), $s = "h12x6aiv", As = ve(({
792
800
  sdk: e,
793
801
  className: t
794
802
  }, s) => {
@@ -796,20 +804,20 @@ const rs = {
796
804
  e.closeFeature();
797
805
  };
798
806
  return /* @__PURE__ */ v(Ie, {
799
- className: $(t, ws),
807
+ className: w(t, $s),
800
808
  children: [/* @__PURE__ */ v(Is, {
801
- children: [/* @__PURE__ */ v(bs, {
802
- children: [/* @__PURE__ */ n($s, {
809
+ children: [/* @__PURE__ */ v(ks, {
810
+ children: [/* @__PURE__ */ o(ws, {
803
811
  name: "dashboard"
804
812
  }), "Dashboard"]
805
- }), /* @__PURE__ */ n(ks, {
813
+ }), /* @__PURE__ */ o(bs, {
806
814
  "data-a": "intr",
807
815
  onClick: a,
808
- children: /* @__PURE__ */ n(Ns, {
816
+ children: /* @__PURE__ */ o(Ns, {
809
817
  name: "icon-cross"
810
818
  })
811
819
  })]
812
- }), /* @__PURE__ */ n("div", {
820
+ }), /* @__PURE__ */ o("div", {
813
821
  ref: s
814
822
  })]
815
823
  });
@@ -817,10 +825,10 @@ const rs = {
817
825
  sdk: e,
818
826
  className: t
819
827
  }, s) => {
820
- const a = f(e.sdkStore.organizationSettings), o = f(e.sdkStore.streamSettings), r = f(e.getActiveFeature()), d = w(() => {
821
- const i = o?.data || a?.data;
828
+ const a = f(e.sdkStore.organizationSettings), n = f(e.sdkStore.streamSettings), r = f(e.getActiveFeature()), d = $(() => {
829
+ const i = n?.data || a?.data;
822
830
  return i?.overlays ? i.overlays : [];
823
- }, [a, o]), l = w(() => [...d.filter(({
831
+ }, [a, n]), l = $(() => [...d.filter(({
824
832
  enableSdkButton: i,
825
833
  type: c
826
834
  }) => c === y.GAMES || i).map((i) => ({
@@ -828,7 +836,7 @@ const rs = {
828
836
  onClick: () => e.openFeature(i.type),
829
837
  disabled: !(i.type in rs),
830
838
  label: i.name,
831
- icon: /* @__PURE__ */ n("img", {
839
+ icon: /* @__PURE__ */ o("img", {
832
840
  src: i.icon,
833
841
  alt: ""
834
842
  }),
@@ -837,34 +845,34 @@ const rs = {
837
845
  }))].sort((i, c) => i.position - c.position), [d, e]);
838
846
  return /* @__PURE__ */ v(Ie, {
839
847
  className: t,
840
- children: [l.length !== 0 && /* @__PURE__ */ n(ce, {
841
- children: [/* @__PURE__ */ n(_, {
848
+ children: [l.length !== 0 && /* @__PURE__ */ o(ce, {
849
+ children: [/* @__PURE__ */ o(_, {
842
850
  id: "Channels",
843
851
  onClick: () => e.closeFeature(),
844
852
  label: "Channels",
845
853
  active: r === 0
846
- }, "Channels"), ...l.map((i) => i.id === y.GAMES ? /* @__PURE__ */ n(_, {
854
+ }, "Channels"), ...l.map((i) => i.id === y.GAMES ? /* @__PURE__ */ o(_, {
847
855
  ...i,
848
856
  active: i.id === r,
849
857
  label: "StreamLayer +",
850
858
  id: "featuredGroups",
851
- icon: /* @__PURE__ */ n(gs, {
859
+ icon: /* @__PURE__ */ o(gs, {
852
860
  name: "icon-btn-feature-groups",
853
861
  "data-selected": i.id === r
854
862
  })
855
- }, i.id) : /* @__PURE__ */ n(_, {
863
+ }, i.id) : /* @__PURE__ */ o(_, {
856
864
  ...i,
857
865
  icon: void 0,
858
866
  active: i.id === r
859
867
  }, i.id))]
860
- }), !l.length && /* @__PURE__ */ n(ce, {
861
- children: [/* @__PURE__ */ n(_, {
868
+ }), !l.length && /* @__PURE__ */ o(ce, {
869
+ children: [/* @__PURE__ */ o(_, {
862
870
  id: "empty",
863
871
  label: "No Features...",
864
872
  active: !1,
865
873
  disabled: !0
866
874
  }, "empty")]
867
- }), /* @__PURE__ */ n("div", {
875
+ }), /* @__PURE__ */ o("div", {
868
876
  ref: s
869
877
  })]
870
878
  });
@@ -905,19 +913,19 @@ const rs = {
905
913
  class: "a1h1bk90",
906
914
  propsAsIs: !1
907
915
  }), pe = ({ close: e, action: t, onboarding: s }) => /* @__PURE__ */ v(Es, { children: [
908
- /* @__PURE__ */ n(Rs, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ n(Ls, { name: "icon-cross" }) }),
916
+ /* @__PURE__ */ o(Rs, { "data-a": "intr", onClick: e, children: /* @__PURE__ */ o(Ls, { name: "icon-cross" }) }),
909
917
  s?.titleCard?.media?.sponsorLogo && /* @__PURE__ */ v(Ds, { children: [
910
- /* @__PURE__ */ n(Ts, { alt: "sponsor-logo", src: s?.titleCard?.media?.sponsorLogo }),
911
- /* @__PURE__ */ n(Os, { children: "PRESENTS" })
918
+ /* @__PURE__ */ o(Ts, { alt: "sponsor-logo", src: s?.titleCard?.media?.sponsorLogo }),
919
+ /* @__PURE__ */ o(Os, { children: "PRESENTS" })
912
920
  ] }),
913
- s?.titleCard?.title && /* @__PURE__ */ n(_s, { children: s?.titleCard?.title }),
914
- s?.titleCard?.subtitle && /* @__PURE__ */ n(Ms, { children: s?.titleCard?.subtitle }),
915
- /* @__PURE__ */ n(Bs, { "data-a": "intr", onClick: t, children: "Play Now" })
916
- ] }), be = [{
921
+ s?.titleCard?.title && /* @__PURE__ */ o(_s, { children: s?.titleCard?.title }),
922
+ s?.titleCard?.subtitle && /* @__PURE__ */ o(Ms, { children: s?.titleCard?.subtitle }),
923
+ /* @__PURE__ */ o(Bs, { "data-a": "intr", onClick: t, children: "Play Now" })
924
+ ] }), ke = [{
917
925
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",
918
926
  tagline: "",
919
927
  headline: /* @__PURE__ */ v(R, {
920
- children: ["Welcome to ", /* @__PURE__ */ n("br", {}), " Live Challenge"]
928
+ children: ["Welcome to ", /* @__PURE__ */ o("br", {}), " Live Challenge"]
921
929
  })
922
930
  }, {
923
931
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_2.png",
@@ -929,7 +937,7 @@ const rs = {
929
937
  name: "OnboardingContainer",
930
938
  class: "o1xni1kr",
931
939
  propsAsIs: !1
932
- }), Fs = () => V, Ps = /* @__PURE__ */ p(Fs())({
940
+ }), Ps = () => V, Fs = /* @__PURE__ */ p(Ps())({
933
941
  name: "OnboardingNotificationContainer",
934
942
  class: "o1vnouv7",
935
943
  propsAsIs: !0
@@ -946,19 +954,19 @@ const rs = {
946
954
  onboardingOpts: t,
947
955
  notification: s,
948
956
  gamification: a,
949
- loading: o,
957
+ loading: n,
950
958
  sdk: r,
951
959
  throttled: d
952
960
  }) => {
953
961
  const l = f(a.friends ? a.friends.getStore() : he({
954
962
  data: []
955
- })), [i, c] = N(void 0), u = w(() => {
963
+ })), [i, c] = N(void 0), u = $(() => {
956
964
  const m = r.getInviter();
957
965
  return m ? l.data?.find(({
958
966
  slId: h
959
967
  }) => h === m)?.name : "";
960
968
  }, [l.data, r]);
961
- return b(() => {
969
+ return I(() => {
962
970
  const m = e.$store.subscribe((h) => {
963
971
  h && c(h.data);
964
972
  });
@@ -966,8 +974,8 @@ const rs = {
966
974
  m();
967
975
  };
968
976
  }, [e.$store]), /* @__PURE__ */ v(Us, {
969
- children: [/* @__PURE__ */ n(Be, {
970
- loading: o,
977
+ children: [/* @__PURE__ */ o(Ue, {
978
+ loading: n,
971
979
  rules: [{
972
980
  label: "Answer as many questions as you like.",
973
981
  icon: "icon-btn-feature-groups"
@@ -982,7 +990,7 @@ const rs = {
982
990
  rulesTitle: t.rules?.heading,
983
991
  termsTitle: "Terms and Conditions",
984
992
  termsText: t.rules?.terms,
985
- steps: be,
993
+ steps: ke,
986
994
  primaryColor: t.inviteCard?.iconColor,
987
995
  inviteLink: i,
988
996
  inviteCardTitle: t.inviteCard?.heading,
@@ -994,67 +1002,67 @@ const rs = {
994
1002
  gamification: a,
995
1003
  sdk: r,
996
1004
  inviterName: u
997
- }), d && /* @__PURE__ */ n(zs, {})]
1005
+ }), d && /* @__PURE__ */ o(zs, {})]
998
1006
  });
999
1007
  }, qs = ({
1000
1008
  sdk: e,
1001
1009
  notification: t,
1002
1010
  saveHeight: s,
1003
1011
  style: a,
1004
- appNode: o,
1012
+ appNode: n,
1005
1013
  sdkInDesktopView: r,
1006
1014
  responsiveStore: d
1007
1015
  }) => {
1008
- const l = E(null), i = t.data.onboarding, [c, u] = N(i?.instantOpen), m = e.getFeature(y.GAMES), h = w(() => be?.map(({
1009
- graphicSrc: k
1010
- }) => k), []), {
1016
+ const l = E(null), i = t.data.onboarding, [c, u] = N(i?.instantOpen), m = e.getFeature(y.GAMES), h = $(() => ke?.map(({
1017
+ graphicSrc: b
1018
+ }) => b), []), {
1011
1019
  screen: g
1012
1020
  } = f(d, {
1013
1021
  keys: ["screen"]
1014
1022
  });
1015
- je(() => {
1023
+ Qe(() => {
1016
1024
  s(l.current?.getBoundingClientRect().height || 0);
1017
1025
  }, [s]);
1018
1026
  const {
1019
- loading: I,
1027
+ loading: k,
1020
1028
  throttled: A
1021
- } = Me(h);
1022
- return c && m && i && o.current ? /* @__PURE__ */ n(fe, {
1023
- container: o,
1029
+ } = Be(h);
1030
+ return c && m && i && n.current ? /* @__PURE__ */ o(fe, {
1031
+ container: n,
1024
1032
  useContainer: !r,
1025
- children: /* @__PURE__ */ n(Vs, {
1033
+ children: /* @__PURE__ */ o(Vs, {
1026
1034
  throttled: A,
1027
1035
  notification: t,
1028
1036
  setOpened: u,
1029
1037
  gamification: m,
1030
1038
  onboardingOpts: i,
1031
1039
  deepLink: m.deepLink,
1032
- loading: I,
1033
- renderToNode: o,
1040
+ loading: k,
1041
+ renderToNode: n,
1034
1042
  sdk: e
1035
1043
  })
1036
1044
  }) : /* @__PURE__ */ v(R, {
1037
- children: [/* @__PURE__ */ n(ue, {
1045
+ children: [/* @__PURE__ */ o(ue, {
1038
1046
  ref: l,
1039
1047
  style: {
1040
1048
  position: "absolute",
1041
1049
  visibility: "hidden"
1042
1050
  },
1043
- children: /* @__PURE__ */ n(pe, {
1051
+ children: /* @__PURE__ */ o(pe, {
1044
1052
  close: () => {
1045
1053
  },
1046
1054
  action: () => {
1047
1055
  },
1048
1056
  onboarding: i
1049
1057
  })
1050
- }), /* @__PURE__ */ n(Ps, {
1058
+ }), /* @__PURE__ */ o(Fs, {
1051
1059
  style: a,
1052
1060
  hiding: t.hiding,
1053
- children: /* @__PURE__ */ n(ue, {
1054
- children: /* @__PURE__ */ n(pe, {
1061
+ children: /* @__PURE__ */ o(ue, {
1062
+ children: /* @__PURE__ */ o(pe, {
1055
1063
  close: t.close,
1056
1064
  action: () => {
1057
- u(!0), (o.current?.getBoundingClientRect().y || 0) < 0 && j(o, g.size, {
1065
+ u(!0), (n.current?.getBoundingClientRect().y || 0) < 0 && j(n, g.size, {
1058
1066
  behavior: "smooth"
1059
1067
  });
1060
1068
  },
@@ -1067,24 +1075,24 @@ const rs = {
1067
1075
  name: "Container",
1068
1076
  class: "c8ol1ve",
1069
1077
  propsAsIs: !0
1070
- }), ke = /* @__PURE__ */ p("div")({
1078
+ }), be = /* @__PURE__ */ p("div")({
1071
1079
  name: "InnerContainer",
1072
1080
  class: "iqfywam",
1073
1081
  propsAsIs: !1
1074
- }), Ks = () => ke, Ws = /* @__PURE__ */ p(Ks())({
1082
+ }), Ks = () => be, Hs = /* @__PURE__ */ p(Ks())({
1075
1083
  name: "HiddenContainer",
1076
1084
  class: "hokmtod",
1077
1085
  propsAsIs: !0
1078
- }), Gs = /* @__PURE__ */ p("div")({
1086
+ }), Ws = /* @__PURE__ */ p("div")({
1079
1087
  name: "NotificationRefreshing",
1080
1088
  class: "n192d1q8",
1081
1089
  propsAsIs: !1
1082
- }), Hs = () => Ue, Js = /* @__PURE__ */ p(Hs())({
1090
+ }), Gs = () => Pe, Js = /* @__PURE__ */ p(Gs())({
1083
1091
  name: "Pill",
1084
1092
  class: "p1lha68t",
1085
1093
  propsAsIs: !0
1086
1094
  }), Zs = (e) => {
1087
- const [t, s] = N(0), a = E(null), o = w(() => new ResizeObserver((l) => {
1095
+ const [t, s] = N(0), a = E(null), n = $(() => new ResizeObserver((l) => {
1088
1096
  window.requestAnimationFrame(() => {
1089
1097
  if (Array.isArray(l)) {
1090
1098
  for (const i of l)
@@ -1099,21 +1107,21 @@ const rs = {
1099
1107
  }, []), d = z((l) => {
1100
1108
  s(l);
1101
1109
  }, []);
1102
- return b(() => {
1110
+ return I(() => {
1103
1111
  const l = a.current;
1104
- return l ? (o.observe(l), () => {
1105
- o.unobserve(l);
1112
+ return l ? (n.observe(l), () => {
1113
+ n.unobserve(l);
1106
1114
  }) : () => {
1107
1115
  };
1108
- }, [e]), b(() => () => {
1109
- o.disconnect();
1116
+ }, [e]), I(() => () => {
1117
+ n.disconnect();
1110
1118
  }), [r, t, d];
1111
1119
  }, Xs = ({
1112
1120
  sdk: e,
1113
1121
  notification: t,
1114
1122
  appNode: s,
1115
1123
  responsiveStore: a,
1116
- hasActiveFeature: o
1124
+ hasActiveFeature: n
1117
1125
  }) => {
1118
1126
  const {
1119
1127
  sdkInDesktopView: r
@@ -1123,10 +1131,10 @@ const rs = {
1123
1131
  sdk: d
1124
1132
  } = q(), [l, i, c] = Zs(t.id);
1125
1133
  let u = i;
1126
- return o || (u = "auto"), t.type === M.QUESTION ? /* @__PURE__ */ v(R, {
1127
- children: [/* @__PURE__ */ n(Ws, {
1134
+ return n || (u = "auto"), t.type === M.QUESTION ? /* @__PURE__ */ v(R, {
1135
+ children: [/* @__PURE__ */ o(Hs, {
1128
1136
  ref: l,
1129
- children: /* @__PURE__ */ n(Q, {
1137
+ children: /* @__PURE__ */ o(Q, {
1130
1138
  ...t
1131
1139
  })
1132
1140
  }), /* @__PURE__ */ v(Qs, {
@@ -1134,17 +1142,17 @@ const rs = {
1134
1142
  height: t.hiding ? 0 : u
1135
1143
  },
1136
1144
  hiding: t.hiding,
1137
- children: [/* @__PURE__ */ n(ke, {
1145
+ children: [/* @__PURE__ */ o(be, {
1138
1146
  style: {
1139
1147
  height: "100%"
1140
1148
  },
1141
- children: /* @__PURE__ */ n(Q, {
1149
+ children: /* @__PURE__ */ o(Q, {
1142
1150
  ...t,
1143
1151
  controlVideo: d?.controlVideoPlayer
1144
1152
  })
1145
- }), /* @__PURE__ */ n(Gs, {}, t.id)]
1153
+ }), /* @__PURE__ */ o(Ws, {}, t.id)]
1146
1154
  })]
1147
- }) : t.type === M.QUESTION_RESOLVED && t.data?.question?.predictionResult ? /* @__PURE__ */ n(Fe, {
1155
+ }) : t.type === M.QUESTION_RESOLVED && t.data?.question?.predictionResult ? /* @__PURE__ */ o(Fe, {
1148
1156
  style: {
1149
1157
  height: t.hiding ? 0 : i
1150
1158
  },
@@ -1152,7 +1160,7 @@ const rs = {
1152
1160
  close: t.close,
1153
1161
  hiding: t.hiding,
1154
1162
  ...t.data.question
1155
- }) : t.type === M.ONBOARDING ? /* @__PURE__ */ n(qs, {
1163
+ }) : t.type === M.ONBOARDING ? /* @__PURE__ */ o(qs, {
1156
1164
  style: {
1157
1165
  height: t.hiding ? 0 : u
1158
1166
  },
@@ -1168,7 +1176,7 @@ const rs = {
1168
1176
  setPill: t,
1169
1177
  appNode: s,
1170
1178
  headerNode: a,
1171
- scrollNode: o,
1179
+ scrollNode: n,
1172
1180
  responsiveStore: r,
1173
1181
  scrollStore: d
1174
1182
  }) => {
@@ -1182,34 +1190,34 @@ const rs = {
1182
1190
  } = f(d, {
1183
1191
  keys: ["tabsShown", "scrollPosition"]
1184
1192
  });
1185
- b(() => {
1193
+ I(() => {
1186
1194
  r.get().sdkInDesktopView ? c < 50 && t(null) : c > -50 && t(null);
1187
1195
  }, [c, r, t]);
1188
1196
  const u = r.get().sdkInDesktopView ? s : a;
1189
- return !e || !u.current ? null : nt(/* @__PURE__ */ n(Js, {
1197
+ return !e || !u.current ? null : nt(/* @__PURE__ */ o(Js, {
1190
1198
  title: e.type === M.QUESTION_RESOLVED ? "Prediction result" : `New ${st[e.data?.questionType]?.label || "notification"}`,
1191
1199
  "data-a": "intr",
1192
1200
  onClick: () => {
1193
- r.get().sdkInDesktopView ? o.current?.scrollTo({
1201
+ r.get().sdkInDesktopView ? n.current?.scrollTo({
1194
1202
  top: 0,
1195
1203
  behavior: "smooth"
1196
1204
  }) : j(s, l.size, {
1197
1205
  behavior: "smooth"
1198
1206
  }), t(null);
1199
1207
  },
1200
- className: $(i && Ys, "sl-pill-button")
1208
+ className: w(i && Ys, "sl-pill-button")
1201
1209
  }), u.current);
1202
1210
  }, tn = ({
1203
1211
  sdk: e,
1204
1212
  headerNode: t,
1205
1213
  scrollNode: s,
1206
1214
  responsiveStore: a,
1207
- appNode: o,
1215
+ appNode: n,
1208
1216
  scrollStore: r,
1209
1217
  hasActiveFeature: d
1210
1218
  }) => {
1211
- const [l] = N(e.getNotificationsStore()), i = f(l), [c, u] = N(null), m = w(() => e.getActiveNotification(), [e, i]);
1212
- return b(() => {
1219
+ const [l] = N(e.getNotificationsStore()), i = f(l), [c, u] = N(null), m = $(() => e.getActiveNotification(), [e, i]);
1220
+ return I(() => {
1213
1221
  m && ot.emit("notification", {
1214
1222
  action: "rendered",
1215
1223
  payload: {
@@ -1217,7 +1225,7 @@ const rs = {
1217
1225
  questionType: m.data.questionType
1218
1226
  }
1219
1227
  });
1220
- }, [m]), b(() => {
1228
+ }, [m]), I(() => {
1221
1229
  const {
1222
1230
  sdkInDesktopView: h,
1223
1231
  sdkInView: g
@@ -1225,19 +1233,19 @@ const rs = {
1225
1233
  m && (h || g) && (!h && g && u(m), h && window.requestAnimationFrame(() => {
1226
1234
  r.get().scrollPosition !== 0 && u(m);
1227
1235
  }));
1228
- }, [m]), b(() => {
1236
+ }, [m]), I(() => {
1229
1237
  m || u(null);
1230
1238
  }, [m]), /* @__PURE__ */ v(R, {
1231
- children: [!c && m && /* @__PURE__ */ n(Xs, {
1232
- appNode: o,
1239
+ children: [!c && m && /* @__PURE__ */ o(Xs, {
1240
+ appNode: n,
1233
1241
  sdk: e,
1234
1242
  hasActiveFeature: d,
1235
1243
  notification: m,
1236
1244
  responsiveStore: a
1237
- }), c && /* @__PURE__ */ n(en, {
1245
+ }), c && /* @__PURE__ */ o(en, {
1238
1246
  pill: c,
1239
1247
  setPill: u,
1240
- appNode: o,
1248
+ appNode: n,
1241
1249
  notification: m,
1242
1250
  headerNode: t,
1243
1251
  scrollNode: s,
@@ -1246,15 +1254,15 @@ const rs = {
1246
1254
  })]
1247
1255
  });
1248
1256
  }, sn = (e) => {
1249
- const t = f(e.status), s = f(e.sdkStore.slStreamId), a = f(e.userId()), o = f(e.getActiveFeature()), r = t === "ready" && !!s.data;
1250
- return b(() => {
1257
+ const t = f(e.status), s = f(e.sdkStore.slStreamId), a = f(e.userId()), n = f(e.getActiveFeature()), r = t === "ready" && !!s.data;
1258
+ return I(() => {
1251
1259
  const d = e.getFeature(y.GAMES);
1252
- d && o !== y.GAMES && (d.closeQuestion(), d.closeUser()), d?.openedQuestionId.subscribe((l) => {
1253
- l && o !== y.GAMES && e.openFeature(y.GAMES);
1260
+ d && n !== y.GAMES && (d.closeQuestion(), d.closeUser()), d?.openedQuestionId.subscribe((l) => {
1261
+ l && n !== y.GAMES && e.openFeature(y.GAMES);
1254
1262
  });
1255
- }, [o, e]), {
1263
+ }, [n, e]), {
1256
1264
  sdkReady: r,
1257
- activeFeature: o,
1265
+ activeFeature: n,
1258
1266
  isLogged: !!a
1259
1267
  };
1260
1268
  }, nn = ({
@@ -1262,13 +1270,13 @@ const rs = {
1262
1270
  className: t,
1263
1271
  scrollStore: s,
1264
1272
  appNode: a,
1265
- scrollNode: o,
1273
+ scrollNode: n,
1266
1274
  responsiveStore: r
1267
1275
  }) => {
1268
- const [, d] = Pe(e);
1269
- return /* @__PURE__ */ n(ts, {
1276
+ const [, d] = ze(e);
1277
+ return /* @__PURE__ */ o(ts, {
1270
1278
  className: t,
1271
- scrollNode: o,
1279
+ scrollNode: n,
1272
1280
  appNode: a,
1273
1281
  scrollStore: s,
1274
1282
  feature: d,
@@ -1280,17 +1288,17 @@ const rs = {
1280
1288
  muted: t,
1281
1289
  className: s,
1282
1290
  appNode: a,
1283
- responsiveStore: o
1291
+ responsiveStore: n
1284
1292
  }) => {
1285
1293
  const r = f(e.featuresList.getStore());
1286
1294
  return r ? Array.from(r, (d) => {
1287
1295
  const l = e.getFeature(d);
1288
- return l ? /* @__PURE__ */ n(ss, {
1296
+ return l ? /* @__PURE__ */ o(ss, {
1289
1297
  className: s,
1290
1298
  muted: t,
1291
1299
  appNode: a,
1292
1300
  feature: l,
1293
- responsiveStore: o,
1301
+ responsiveStore: n,
1294
1302
  sdk: e
1295
1303
  }, d) : null;
1296
1304
  }) : null;
@@ -1299,42 +1307,42 @@ const rs = {
1299
1307
  muted: t,
1300
1308
  topNavigation: s
1301
1309
  }) => {
1302
- const [a, o] = N(!0), r = E(null), d = f(e.uiState), l = E(null), [i] = it(r), [c, u] = dt(r, i), {
1310
+ const [a, n] = N(!0), r = E(null), d = f(e.uiState), l = E(null), [i] = it(r), [c, u] = dt(r, i), {
1303
1311
  sdkReady: m,
1304
1312
  activeFeature: h,
1305
1313
  isLogged: g
1306
- } = sn(e), I = !!m;
1307
- Ke(r, {
1308
- enabled: I,
1314
+ } = sn(e), k = !!m;
1315
+ He(r, {
1316
+ enabled: k,
1309
1317
  event: "click",
1310
1318
  listener: We
1311
1319
  });
1312
- const A = w(() => ({
1320
+ const A = $(() => ({
1313
1321
  sdk: e,
1314
1322
  topNavigation: s
1315
1323
  }), [e, s]);
1316
- return b(() => {
1324
+ return I(() => {
1317
1325
  import("./gamification-feature.js");
1318
- }, []), /* @__PURE__ */ n(Je.Provider, {
1326
+ }, []), /* @__PURE__ */ o(Je.Provider, {
1319
1327
  value: A,
1320
- children: /* @__PURE__ */ v(Le, {
1321
- ref: (k) => {
1322
- r.current = k, o(!!k);
1328
+ children: /* @__PURE__ */ v(De, {
1329
+ ref: (b) => {
1330
+ r.current = b, n(!!b);
1323
1331
  },
1324
1332
  className: s ? "" : "c10llmat",
1325
- children: [I && s && d.app && /* @__PURE__ */ n(Cs, {
1326
- className: $(O, "sl-hide-on-modal"),
1333
+ children: [k && s && d.app && /* @__PURE__ */ o(Cs, {
1334
+ className: w(O, "sl-hide-on-modal"),
1327
1335
  sdk: e,
1328
1336
  ref: l
1329
- }), I && !s && !!h && d.app && /* @__PURE__ */ n(As, {
1330
- className: $(O, "sl-hide-on-modal"),
1337
+ }), k && !s && !!h && d.app && /* @__PURE__ */ o(As, {
1338
+ className: w(O, "sl-hide-on-modal"),
1331
1339
  sdk: e,
1332
1340
  ref: l
1333
- }), /* @__PURE__ */ v(De, {
1341
+ }), /* @__PURE__ */ v(Te, {
1334
1342
  className: "sl-hide-on-modal",
1335
1343
  ref: c,
1336
- "data-nav": (!!h && I).toString(),
1337
- children: [I && d.app && /* @__PURE__ */ n(tn, {
1344
+ "data-nav": (!!h && k).toString(),
1345
+ children: [k && d.app && /* @__PURE__ */ o(tn, {
1338
1346
  sdk: e,
1339
1347
  scrollNode: c,
1340
1348
  headerNode: l,
@@ -1342,21 +1350,21 @@ const rs = {
1342
1350
  scrollStore: u,
1343
1351
  responsiveStore: i,
1344
1352
  hasActiveFeature: !!h
1345
- }), I && d.app && /* @__PURE__ */ n(nn, {
1353
+ }), k && d.app && /* @__PURE__ */ o(nn, {
1346
1354
  scrollStore: u,
1347
1355
  responsiveStore: i,
1348
1356
  scrollNode: c,
1349
1357
  appNode: r,
1350
1358
  className: O,
1351
1359
  sdk: e
1352
- }), I && a && /* @__PURE__ */ n(on, {
1360
+ }), k && a && /* @__PURE__ */ o(on, {
1353
1361
  muted: t,
1354
1362
  responsiveStore: i,
1355
1363
  appNode: r,
1356
1364
  className: O,
1357
1365
  sdk: e
1358
1366
  })]
1359
- }), I && !g && a && d.app && /* @__PURE__ */ n("div", {
1367
+ }), k && !g && a && d.app && /* @__PURE__ */ o("div", {
1360
1368
  style: {
1361
1369
  display: "flex",
1362
1370
  alignItems: "center",
@@ -1368,13 +1376,13 @@ const rs = {
1368
1376
  })]
1369
1377
  })
1370
1378
  });
1371
- }, On = ({ event: e, topNavigation: t, theme: s, muted: a, withSidebarNotification: o = !0 }) => {
1372
- const { sdk: r, status: d } = K(G), l = at(), i = rt(), { event: c } = K(G);
1373
- if (d === H.UNSET)
1379
+ }, Tn = ({ event: e, topNavigation: t, theme: s, muted: a, withSidebarNotification: n = !0 }) => {
1380
+ const { sdk: r, status: d } = K(W), l = at(), i = rt(), { event: c } = K(W);
1381
+ if (d === G.UNSET)
1374
1382
  throw new Error("Wrap app in `StreamLayerProvider`");
1375
- return d === H.CONNECTED ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: "wait" }) : r === null ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !l.app && !l.appNotification && !l.appSidebar || !l.app && !l.appSidebar && l.appNotification && !o ? null : /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ n(ye, { customTheme: s ?? i.theme, themeMode: i.themeMode, children: /* @__PURE__ */ n(an, { sdk: r, muted: a, event: c?.current || e, topNavigation: t }) }) });
1383
+ return d === G.CONNECTED ? /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: "wait" }) : r === null ? /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !l.app && !l.appNotification && !l.appSidebar || !l.app && !l.appSidebar && l.appNotification && !n ? null : /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ o(ye, { customTheme: s ?? i.theme, themeMode: i.themeMode, children: /* @__PURE__ */ o(an, { sdk: r, muted: a, event: c?.current || e, topNavigation: t }) }) });
1376
1384
  };
1377
1385
  export {
1378
- Tn as B,
1379
- On as D
1386
+ Dn as B,
1387
+ Tn as D
1380
1388
  };