@streamlayer/react 1.24.7 → 1.24.8

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.
package/lib/es/index8.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { d as v } from "./index15.js";
3
- import B, { useEffect as L, useRef as S, useState as A, useCallback as p, useLayoutEffect as w } from "react";
3
+ import O, { useEffect as L, useRef as S, useState as A, useCallback as p, useLayoutEffect as w } from "react";
4
4
  import { s as y } from "./feature.js";
5
- import { B as b } from "./index7.js";
5
+ import { H as b } from "./index5.js";
6
6
  const K = {
7
7
  BLUE_QUESTION_ACTION_BTN: "#1589ee",
8
8
  WHITE: "#FFFFFF",
@@ -113,7 +113,7 @@ const X = (t) => {
113
113
  function Te(t, e) {
114
114
  return ({ webos: i, options: n, ...r }) => i ? /* @__PURE__ */ d(X, { Component: t, options: e, customOptions: n, ...r }) : /* @__PURE__ */ d(t, { ...r });
115
115
  }
116
- var U = typeof window > "u" ? L : w, j = ({ isPlaying: t, duration: e, startAt: i = 0, updateInterval: n = 0, onComplete: r, onUpdate: a }) => {
116
+ var U = typeof window > "u" ? L : w, H = ({ isPlaying: t, duration: e, startAt: i = 0, updateInterval: n = 0, onComplete: r, onUpdate: a }) => {
117
117
  let [E, l] = A(i), T = S(0), R = S(i), s = S(i * -1e3), _ = S(null), o = S(null), c = S(null), m = (f) => {
118
118
  let u = f / 1e3;
119
119
  if (o.current === null) {
@@ -122,8 +122,8 @@ var U = typeof window > "u" ? L : w, j = ({ isPlaying: t, duration: e, startAt:
122
122
  }
123
123
  let F = u - o.current, C = T.current + F;
124
124
  o.current = u, T.current = C;
125
- let O = R.current + (n === 0 ? C : (C / n | 0) * n), D = R.current + C, g = typeof e == "number" && D >= e;
126
- l(g ? e : O), g || (_.current = requestAnimationFrame(m));
125
+ let B = R.current + (n === 0 ? C : (C / n | 0) * n), D = R.current + C, g = typeof e == "number" && D >= e;
126
+ l(g ? e : B), g || (_.current = requestAnimationFrame(m));
127
127
  }, I = () => {
128
128
  _.current && cancelAnimationFrame(_.current), c.current && clearTimeout(c.current), o.current = null;
129
129
  }, N = p((f) => {
@@ -138,10 +138,10 @@ var U = typeof window > "u" ? L : w, j = ({ isPlaying: t, duration: e, startAt:
138
138
  f && (c.current = setTimeout(() => N(F), u * 1e3));
139
139
  }
140
140
  }, [E, e]), U(() => (t && (_.current = requestAnimationFrame(m)), I), [t, e, n]), { elapsedTime: E, reset: N };
141
- }, z = (t, e, i) => {
141
+ }, j = (t, e, i) => {
142
142
  let n = t / 2, r = e / 2, a = n - r, E = 2 * a, l = i === "clockwise" ? "1,0" : "0,1", T = 2 * Math.PI * a;
143
143
  return { path: `m ${n},${r} a ${a},${a} 0 ${l} 0,${E} a ${a},${a} 0 ${l} 0,-${E}`, pathLength: T };
144
- }, G = (t, e) => t === 0 || t === e ? 0 : typeof e == "number" ? t - e : 0, H = (t) => ({ position: "relative", width: t, height: t }), q = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, k = (t, e, i, n, r) => {
144
+ }, G = (t, e) => t === 0 || t === e ? 0 : typeof e == "number" ? t - e : 0, z = (t) => ({ position: "relative", width: t, height: t }), q = { display: "flex", justifyContent: "center", alignItems: "center", position: "absolute", left: 0, top: 0, width: "100%", height: "100%" }, k = (t, e, i, n, r) => {
145
145
  if (n === 0) return e;
146
146
  let a = (r ? n - t : t) / n;
147
147
  return e + i * a;
@@ -158,18 +158,18 @@ var U = typeof window > "u" ? L : w, j = ({ isPlaying: t, duration: e, startAt:
158
158
  let l = r[E] - e, T = r[E] - r[E + 1], R = $(n[E]), s = $(n[E + 1]), _ = !!t.isGrowing;
159
159
  return `rgb(${R.map((o, c) => k(l, o, s[c] - o, T, _) | 0).join(",")})`;
160
160
  }, Z = (t) => {
161
- let { duration: e, initialRemainingTime: i, updateInterval: n, size: r = 180, strokeWidth: a = 12, trailStrokeWidth: E, isPlaying: l = !1, isGrowing: T = !1, rotation: R = "clockwise", onComplete: s, onUpdate: _ } = t, o = S(), c = Math.max(a, E ?? 0), { path: m, pathLength: I } = z(r, c, R), { elapsedTime: N } = j({ isPlaying: l, duration: e, startAt: G(e, i), updateInterval: n, onUpdate: typeof _ == "function" ? (u) => {
161
+ let { duration: e, initialRemainingTime: i, updateInterval: n, size: r = 180, strokeWidth: a = 12, trailStrokeWidth: E, isPlaying: l = !1, isGrowing: T = !1, rotation: R = "clockwise", onComplete: s, onUpdate: _ } = t, o = S(), c = Math.max(a, E ?? 0), { path: m, pathLength: I } = j(r, c, R), { elapsedTime: N } = H({ isPlaying: l, duration: e, startAt: G(e, i), updateInterval: n, onUpdate: typeof _ == "function" ? (u) => {
162
162
  let F = Math.ceil(e - u);
163
163
  F !== o.current && (o.current = F, _(F));
164
164
  } : void 0, onComplete: typeof s == "function" ? (u) => {
165
165
  var F;
166
- let { shouldRepeat: C, delay: O, newInitialRemainingTime: D } = (F = s(u)) != null ? F : {};
167
- if (C) return { shouldRepeat: C, delay: O, newStartAt: G(e, D) };
166
+ let { shouldRepeat: C, delay: B, newInitialRemainingTime: D } = (F = s(u)) != null ? F : {};
167
+ if (C) return { shouldRepeat: C, delay: B, newStartAt: G(e, D) };
168
168
  } : void 0 }), f = e - N;
169
169
  return { elapsedTime: N, path: m, pathLength: I, remainingTime: Math.ceil(f), rotation: R, size: r, stroke: J(t, f), strokeDashoffset: k(N, 0, I, e, T), strokeWidth: a };
170
170
  }, P = (t) => {
171
171
  let { children: e, strokeLinecap: i, trailColor: n, trailStrokeWidth: r } = t, { path: a, pathLength: E, stroke: l, strokeDashoffset: T, remainingTime: R, elapsedTime: s, size: _, strokeWidth: o } = Z(t);
172
- return B.createElement("div", { style: H(_) }, B.createElement("svg", { viewBox: `0 0 ${_} ${_}`, width: _, height: _, xmlns: "http://www.w3.org/2000/svg" }, B.createElement("path", { d: a, fill: "none", stroke: n ?? "#d9d9d9", strokeWidth: r ?? o }), B.createElement("path", { d: a, fill: "none", stroke: l, strokeLinecap: i ?? "round", strokeWidth: o, strokeDasharray: E, strokeDashoffset: T })), typeof e == "function" && B.createElement("div", { style: q }, e({ remainingTime: R, elapsedTime: s, color: l })));
172
+ return O.createElement("div", { style: z(_) }, O.createElement("svg", { viewBox: `0 0 ${_} ${_}`, width: _, height: _, xmlns: "http://www.w3.org/2000/svg" }, O.createElement("path", { d: a, fill: "none", stroke: n ?? "#d9d9d9", strokeWidth: r ?? o }), O.createElement("path", { d: a, fill: "none", stroke: l, strokeLinecap: i ?? "round", strokeWidth: o, strokeDasharray: E, strokeDashoffset: T })), typeof e == "function" && O.createElement("div", { style: q }, e({ remainingTime: R, elapsedTime: s, color: l })));
173
173
  };
174
174
  P.displayName = "CountdownCircleTimer";
175
175
  const ee = [10, 10, 1, 0], te = /* @__PURE__ */ y("div")({
package/lib/es/insight.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as u, jsxs as c } from "react/jsx-runtime";
2
- import { h as p } from "./index6.js";
2
+ import { h as p } from "./index7.js";
3
3
  import { u as a, s as h } from "./feature.js";
4
4
  import { useRef as f, useEffect as l } from "react";
5
5
  import { _ as I } from "./Question.js";
@@ -4,13 +4,13 @@ import D from "lodash.throttle";
4
4
  import { useRef as g, useState as L, useEffect as E, createContext as e2, useContext as U, useMemo as _, Suspense as s2, lazy as t2, forwardRef as n2, useLayoutEffect as r2, useCallback as b, Component as i2 } from "react";
5
5
  import { A as h, R as o2 } from "./index8.js";
6
6
  import { f as G, A as M, a as Q } from "./analytics.js";
7
- import { Q as a2, z as l2, T as K, I as d2, c as c2, n as C2, f as p2, w as B, a as u2, p as m2 } from "./index16.js";
7
+ import { Q as a2, z as l2, T as K, I as d2, c as c2, n as C2, f as p2, w as V, a as u2, p as m2 } from "./index16.js";
8
8
  import { m as A } from "./theme.js";
9
9
  import { a as f2 } from "./index4.js";
10
10
  import { Q as E2, Z as L2, y as h2, f as F } from "./index13.js";
11
11
  import { O as g2, d as S2, f as _2, a as N2 } from "./index12.js";
12
12
  import { Q as T2, S as N } from "./useStreamLayerApp2.js";
13
- import { B as x } from "./index7.js";
13
+ import { H as x } from "./index5.js";
14
14
  import { createPortal as I2 } from "react-dom";
15
15
  import { e as v2 } from "./index3.js";
16
16
  import "./storage.js";
@@ -28,7 +28,7 @@ const b2 = /* @__PURE__ */ c("div")({
28
28
  name: "SDKContentContainer",
29
29
  class: "s14gkn7u",
30
30
  propsAsIs: !1
31
- }), B2 = () => Z, V2 = /* @__PURE__ */ c(B2())({
31
+ }), V2 = () => Z, B2 = /* @__PURE__ */ c(V2())({
32
32
  name: "SDKWhiteContainer",
33
33
  class: "s1yxstm9",
34
34
  propsAsIs: !0
@@ -36,7 +36,7 @@ const b2 = /* @__PURE__ */ c("div")({
36
36
  name: "TabsContainer",
37
37
  class: "tdpty1s",
38
38
  propsAsIs: !1
39
- }), P2 = /* @__PURE__ */ c("div")({
39
+ }), H2 = /* @__PURE__ */ c("div")({
40
40
  name: "UserSummaryContainer",
41
41
  class: "u136a59y",
42
42
  propsAsIs: !1
@@ -45,7 +45,7 @@ const b2 = /* @__PURE__ */ c("div")({
45
45
  top: 0,
46
46
  ...t
47
47
  });
48
- }, H2 = 15, $2 = (s, e, t) => {
48
+ }, P2 = 15, $2 = (s, e, t) => {
49
49
  const r = g(null), i = g(0), [a] = L(
50
50
  G({
51
51
  scrollPosition: 0,
@@ -65,7 +65,7 @@ const b2 = /* @__PURE__ */ c("div")({
65
65
  let d = 0;
66
66
  o.screen.size < h.lg && !t ? d = s.current?.getBoundingClientRect().y || 0 : d = C.scrollTop;
67
67
  const v = i.current - d;
68
- if (H2 > Math.abs(v))
68
+ if (P2 > Math.abs(v))
69
69
  return;
70
70
  const R = i.current < d ? "forward" : "backward";
71
71
  i.current = d, a.set({
@@ -185,7 +185,7 @@ const b2 = /* @__PURE__ */ c("div")({
185
185
  }
186
186
  );
187
187
  }, q2 = ({ gamification: s, className: e, style: t }) => /* @__PURE__ */ f(w2, { className: e, style: t, children: [
188
- /* @__PURE__ */ n(V2, { style: { paddingTop: "16px" }, children: /* @__PURE__ */ n(P2, { children: /* @__PURE__ */ n(Z2, { userSummary: s.userSummary }) }) }),
188
+ /* @__PURE__ */ n(B2, { style: { paddingTop: "16px" }, children: /* @__PURE__ */ n(H2, { children: /* @__PURE__ */ n(Z2, { userSummary: s.userSummary }) }) }),
189
189
  /* @__PURE__ */ n(Z, { style: { flex: 1 }, children: /* @__PURE__ */ n(
190
190
  x2,
191
191
  {
@@ -315,7 +315,7 @@ const b2 = /* @__PURE__ */ c("div")({
315
315
  name: "ActionButton",
316
316
  class: "avpowqk",
317
317
  propsAsIs: !1
318
- }), V = ({ close: s, action: e, onboarding: t }) => /* @__PURE__ */ f(o0, { children: [
318
+ }), B = ({ close: s, action: e, onboarding: t }) => /* @__PURE__ */ f(o0, { children: [
319
319
  /* @__PURE__ */ n(a0, { onClick: s, children: /* @__PURE__ */ n(d0, { name: "icon-cross" }) }),
320
320
  t?.titleCard?.media?.sponsorLogo && /* @__PURE__ */ f(c0, { children: [
321
321
  /* @__PURE__ */ n(C0, { alt: "sponsor-logo", src: t?.titleCard?.media?.sponsorLogo }),
@@ -449,7 +449,7 @@ const b2 = /* @__PURE__ */ c("div")({
449
449
  position: "absolute",
450
450
  visibility: "hidden"
451
451
  },
452
- children: /* @__PURE__ */ n(V, {
452
+ children: /* @__PURE__ */ n(B, {
453
453
  close: () => {
454
454
  },
455
455
  action: () => {
@@ -460,7 +460,7 @@ const b2 = /* @__PURE__ */ c("div")({
460
460
  style: r,
461
461
  hiding: e.hiding,
462
462
  children: /* @__PURE__ */ n(w, {
463
- children: /* @__PURE__ */ n(V, {
463
+ children: /* @__PURE__ */ n(B, {
464
464
  close: e.close,
465
465
  action: () => {
466
466
  m(!0), (i.current?.getBoundingClientRect().y || 0) < 0 && q(i, v.size, {
@@ -516,7 +516,7 @@ const b2 = /* @__PURE__ */ c("div")({
516
516
  return e.type === T.QUESTION ? /* @__PURE__ */ f(I, {
517
517
  children: [/* @__PURE__ */ n(v0, {
518
518
  ref: a,
519
- children: /* @__PURE__ */ n(B, {
519
+ children: /* @__PURE__ */ n(V, {
520
520
  ...e
521
521
  })
522
522
  }), /* @__PURE__ */ f(T0, {
@@ -528,7 +528,7 @@ const b2 = /* @__PURE__ */ c("div")({
528
528
  style: {
529
529
  height: "100%"
530
530
  },
531
- children: /* @__PURE__ */ n(B, {
531
+ children: /* @__PURE__ */ n(V, {
532
532
  ...e,
533
533
  controlVideo: i?.controlVideoPlayer
534
534
  })
@@ -632,11 +632,11 @@ const b2 = /* @__PURE__ */ c("div")({
632
632
  responsiveStore: i
633
633
  })]
634
634
  });
635
- }, P = Object.keys(h), k = () => {
635
+ }, H = Object.keys(h), k = () => {
636
636
  const s = window.innerWidth;
637
637
  let e = "sm";
638
- for (let t = P.length - 1; t > 0; t--) {
639
- const r = P[t];
638
+ for (let t = H.length - 1; t > 0; t--) {
639
+ const r = H[t];
640
640
  if (!(s < h[r]) && s >= h[r]) {
641
641
  e = r;
642
642
  break;
@@ -646,21 +646,21 @@ const b2 = /* @__PURE__ */ c("div")({
646
646
  name: e,
647
647
  size: h[e]
648
648
  };
649
- }, H = (s) => {
649
+ }, P = (s) => {
650
650
  const e = s.current?.getBoundingClientRect();
651
651
  return e ? e.y > -e.height && e.y < window.innerHeight : !1;
652
- }, $ = (s) => s >= h.lg, B0 = (s) => {
652
+ }, $ = (s) => s >= h.lg, V0 = (s) => {
653
653
  const [e] = L(() => {
654
654
  const t = k();
655
655
  return G({
656
656
  screen: k(),
657
- sdkInView: H(s),
657
+ sdkInView: P(s),
658
658
  sdkInDesktopView: $(t.size)
659
659
  });
660
660
  });
661
661
  return E(() => {
662
662
  const t = D(() => {
663
- e.setKey("sdkInView", H(s));
663
+ e.setKey("sdkInView", P(s));
664
664
  }, 200), r = D(() => {
665
665
  const i = k();
666
666
  e.setKey("screen", i), e.setKey("sdkInDesktopView", $(i.size));
@@ -669,7 +669,7 @@ const b2 = /* @__PURE__ */ c("div")({
669
669
  window.removeEventListener("scroll", t), window.removeEventListener("resize", r);
670
670
  };
671
671
  }, [e, s]), [e];
672
- }, V0 = {
672
+ }, B0 = {
673
673
  ...o2,
674
674
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
675
675
  // @ts-expect-error
@@ -737,11 +737,11 @@ const b2 = /* @__PURE__ */ c("div")({
737
737
  IN_APP_QUESTION_RESULT_LINE: "#babfc5",
738
738
  QUOTE_TEXT: "#006944"
739
739
  };
740
- Object.entries(V0).reduce((s, [e, t]) => `
740
+ Object.entries(B0).reduce((s, [e, t]) => `
741
741
  ${s}
742
742
  --color-${e.toLowerCase().replaceAll("_", "-")}: ${t};
743
743
  `, "");
744
- const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ n("div", { className: S("masters-theme", w0), style: e, children: s }) }), d1 = ({ sdkKey: s, plugins: e, children: t, event: r, onDeepLinkHandled: i, videoPlayerController: a, production: o = !0 }) => /* @__PURE__ */ f(
744
+ const w0 = "m1ojpy2l", H0 = ({ children: s, style: e }) => /* @__PURE__ */ n("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ n("div", { className: S("masters-theme", w0), style: e, children: s }) }), d1 = ({ sdkKey: s, plugins: e, children: t, event: r, onDeepLinkHandled: i, videoPlayerController: a, production: o = !0 }) => /* @__PURE__ */ f(
745
745
  A2,
746
746
  {
747
747
  sdkKey: s,
@@ -758,7 +758,7 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
758
758
  t
759
759
  ]
760
760
  }
761
- ), H0 = ({ sdk: s, className: e }) => {
761
+ ), P0 = ({ sdk: s, className: e }) => {
762
762
  const [, t] = m2(s);
763
763
  return /* @__PURE__ */ n(J2, { className: e, feature: t, sdk: s });
764
764
  }, $0 = ({ sdk: s, className: e, appNode: t, responsiveStore: r, useContainer: i }) => {
@@ -782,7 +782,7 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
782
782
  const e = g(null);
783
783
  return M(e, { enabled: !0, event: "click", listener: Q }), /* @__PURE__ */ n(f2, { ref: e, ...s });
784
784
  }, G0 = ({ sdk: s, useContainer: e }) => {
785
- const t = g(null), r = p(s.status), i = p(s.sdkStore.slStreamId), a = g(null), [o] = B0(t), [l, u] = $2(t, o, e), m = r === "ready" && !!i.data;
785
+ const t = g(null), r = p(s.status), i = p(s.sdkStore.slStreamId), a = g(null), [o] = V0(t), [l, u] = $2(t, o, e), m = r === "ready" && !!i.data;
786
786
  return E(() => {
787
787
  window.requestAnimationFrame(() => {
788
788
  s.initializeApp().then(() => {
@@ -806,7 +806,7 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
806
806
  useContainer: e
807
807
  }
808
808
  ),
809
- m && /* @__PURE__ */ n(H0, { className: A, sdk: s }),
809
+ m && /* @__PURE__ */ n(P0, { className: A, sdk: s }),
810
810
  m && /* @__PURE__ */ n(
811
811
  $0,
812
812
  {
@@ -840,7 +840,7 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
840
840
  useContainer: e
841
841
  }) => {
842
842
  const { sdk: t, status: r } = U(k2);
843
- return r === D2.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : t ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ n(P0, { style: { height: "100%" }, children: /* @__PURE__ */ n(M0, { sdk: t, betPack: s, useContainer: e }) }) }) : null;
843
+ return r === D2.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : t ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ n(H0, { style: { height: "100%" }, children: /* @__PURE__ */ n(M0, { sdk: t, betPack: s, useContainer: e }) }) }) : null;
844
844
  };
845
845
  class c1 extends i2 {
846
846
  constructor(e) {
@@ -1,11 +1,11 @@
1
1
  import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
- import { h as us } from "./index6.js";
2
+ import { h as us } from "./index7.js";
3
3
  import { useState as I, useRef as Q, useEffect as $, useCallback as As, useMemo as fs } from "react";
4
4
  import { s as e, c as hs, u as Is, N as M } from "./feature.js";
5
5
  import { e as $s } from "./index3.js";
6
6
  import { x as W } from "./storage.js";
7
7
  import { D as vs, j as gs, e as K, o as ws } from "./index10.js";
8
- import { B as A } from "./index7.js";
8
+ import { H as A } from "./index5.js";
9
9
  import { d, Q as f, a as G, N as x, S as bs, A as R } from "./useStreamLayerApp2.js";
10
10
  import { b as S } from "./index8.js";
11
11
  import { V as Ts, y as ys } from "./index14.js";
@@ -73,7 +73,7 @@ const w = /* @__PURE__ */ e("div")({
73
73
  name: "NotificationContainer",
74
74
  class: "ns1nzpg",
75
75
  propsAsIs: !1
76
- }), X = /* @__PURE__ */ e("div")({
76
+ }), H = /* @__PURE__ */ e("div")({
77
77
  name: "Body",
78
78
  class: "b1j59nzs",
79
79
  propsAsIs: !1
@@ -105,7 +105,7 @@ const w = /* @__PURE__ */ e("div")({
105
105
  name: "Container",
106
106
  class: "ccvukea",
107
107
  propsAsIs: !1
108
- }), Xs = ({ image: n, tweet: o, account: i, accountVerified: a, body: r, title: t }) => /* @__PURE__ */ l(Gs, { children: [
108
+ }), Hs = ({ image: n, tweet: o, account: i, accountVerified: a, body: r, title: t }) => /* @__PURE__ */ l(Gs, { children: [
109
109
  t && /* @__PURE__ */ s(Qs, { children: /* @__PURE__ */ s(Ws, { children: t }) }),
110
110
  /* @__PURE__ */ s(
111
111
  vs,
@@ -118,7 +118,7 @@ const w = /* @__PURE__ */ e("div")({
118
118
  }
119
119
  ),
120
120
  /* @__PURE__ */ s(Ks, { children: gs(r) })
121
- ] }), Zs = ({ title: n, questionType: o, questionTypeData: i }) => /* @__PURE__ */ l(X, { children: [
121
+ ] }), Xs = ({ title: n, questionType: o, questionTypeData: i }) => /* @__PURE__ */ l(H, { children: [
122
122
  /* @__PURE__ */ s(
123
123
  W,
124
124
  {
@@ -128,7 +128,7 @@ const w = /* @__PURE__ */ e("div")({
128
128
  }
129
129
  ),
130
130
  n && /* @__PURE__ */ s(Vs, { children: n })
131
- ] }), Hs = ({ tweet: n }) => n ? /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(Xs, { ...n, controlVideo: () => {
131
+ ] }), Zs = ({ tweet: n }) => n ? /* @__PURE__ */ s(H, { children: /* @__PURE__ */ s(Hs, { ...n, controlVideo: () => {
132
132
  } }) }) : null, Js = ({ action: n, questionType: o, inApp: i, insight: a, tweet: r }) => {
133
133
  const t = K[o], p = ws[o];
134
134
  if (!t || !i || !i.notification)
@@ -140,7 +140,7 @@ const w = /* @__PURE__ */ e("div")({
140
140
  return /* @__PURE__ */ s(Us, { "data-a": "intr", className: "SL_InApp", onClick: n, children: /* @__PURE__ */ l(zs, { style: h ? {} : { paddingLeft: "1.5rem" }, children: [
141
141
  h && !g && /* @__PURE__ */ s(j, { src: h, imageMode: u, withVideo: !!b }),
142
142
  g && /* @__PURE__ */ s(j, { src: g, fromInsight: !0, withVideo: !!b }),
143
- o === f.TWEET ? /* @__PURE__ */ s(Hs, { tweet: r }) : /* @__PURE__ */ s(Zs, { questionTypeData: t, questionType: o, title: c }),
143
+ o === f.TWEET ? /* @__PURE__ */ s(Zs, { tweet: r }) : /* @__PURE__ */ s(Xs, { questionTypeData: t, questionType: o, title: c }),
144
144
  /* @__PURE__ */ s(Fs, { name: "inapp-button", children: p || "Open" }),
145
145
  /* @__PURE__ */ s(_s, { name: "chevronRight" })
146
146
  ] }) });
@@ -223,7 +223,7 @@ const w = /* @__PURE__ */ e("div")({
223
223
  });
224
224
  }, he = () => ({
225
225
  withoutPadding: n
226
- }) => n ? "0px" : "1rem", Z = /* @__PURE__ */ e("div")({
226
+ }) => n ? "0px" : "1rem", X = /* @__PURE__ */ e("div")({
227
227
  name: "NotificationContent",
228
228
  class: "n1p3bk1c",
229
229
  propsAsIs: !1,
@@ -238,7 +238,7 @@ const w = /* @__PURE__ */ e("div")({
238
238
  name: "StyledChevronRight",
239
239
  class: "sx1hq4c",
240
240
  propsAsIs: !0
241
- }), H = /* @__PURE__ */ e("div")({
241
+ }), Z = /* @__PURE__ */ e("div")({
242
242
  name: "NotificationContainer",
243
243
  class: "n1fcriet",
244
244
  propsAsIs: !1
@@ -288,7 +288,7 @@ const w = /* @__PURE__ */ e("div")({
288
288
  name: "LogoImg",
289
289
  class: "ln4a3eh",
290
290
  propsAsIs: !1
291
- }), Se = () => H, De = /* @__PURE__ */ e(Se())({
291
+ }), Se = () => Z, De = /* @__PURE__ */ e(Se())({
292
292
  name: "NotificationInterstitialContainer",
293
293
  class: "no2k63v",
294
294
  propsAsIs: !0
@@ -332,7 +332,7 @@ const w = /* @__PURE__ */ e("div")({
332
332
  webos: a,
333
333
  onClick: i,
334
334
  "data-webos": a,
335
- children: /* @__PURE__ */ s(Z, { withoutPadding: !0, children: /* @__PURE__ */ s(J, { src: o }) })
335
+ children: /* @__PURE__ */ s(X, { withoutPadding: !0, children: /* @__PURE__ */ s(J, { src: o }) })
336
336
  }
337
337
  ), Fe = ({
338
338
  action: n,
@@ -361,7 +361,7 @@ const w = /* @__PURE__ */ e("div")({
361
361
  onClick: () => u(!1)
362
362
  }
363
363
  ) : /* @__PURE__ */ l(
364
- H,
364
+ Z,
365
365
  {
366
366
  "data-a": "intr",
367
367
  className: hs("SL_InApp", c),
@@ -372,7 +372,7 @@ const w = /* @__PURE__ */ e("div")({
372
372
  "data-webos": p,
373
373
  children: [
374
374
  a?.sponsorLogo && /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s(J, { src: a?.sponsorLogo }) }),
375
- /* @__PURE__ */ l(Z, { children: [
375
+ /* @__PURE__ */ l(X, { children: [
376
376
  /* @__PURE__ */ l(Ie, { children: [
377
377
  !k && /* @__PURE__ */ s(B, { src: ms, imageMode: y, withVideo: !!N, color: t }),
378
378
  k && /* @__PURE__ */ s(
@@ -437,15 +437,15 @@ const w = /* @__PURE__ */ e("div")({
437
437
  name: "Close",
438
438
  class: "c1sur0q2",
439
439
  propsAsIs: !0
440
- }), Xe = /* @__PURE__ */ e("div")({
440
+ }), He = /* @__PURE__ */ e("div")({
441
441
  name: "Body",
442
442
  class: "bai9j52",
443
443
  propsAsIs: !1
444
- }), Ze = /* @__PURE__ */ e("div")({
444
+ }), Xe = /* @__PURE__ */ e("div")({
445
445
  name: "Title",
446
446
  class: "t1bnt25p",
447
447
  propsAsIs: !1
448
- }), He = /* @__PURE__ */ e("div")({
448
+ }), Ze = /* @__PURE__ */ e("div")({
449
449
  name: "Description",
450
450
  class: "dmixjec",
451
451
  propsAsIs: !1
@@ -475,12 +475,12 @@ const w = /* @__PURE__ */ e("div")({
475
475
  }
476
476
  )
477
477
  ] }),
478
- /* @__PURE__ */ l(Xe, { children: [
479
- /* @__PURE__ */ l(Ze, { children: [
478
+ /* @__PURE__ */ l(He, { children: [
479
+ /* @__PURE__ */ l(Xe, { children: [
480
480
  /* @__PURE__ */ s(We, { name: "icon-trophy-solid" }),
481
481
  i?.titleCard?.title
482
482
  ] }),
483
- /* @__PURE__ */ l(He, { children: [
483
+ /* @__PURE__ */ l(Ze, { children: [
484
484
  /* @__PURE__ */ s("span", { children: i?.titleCard?.subtitle }),
485
485
  /* @__PURE__ */ s(Je, { name: "inapp-button", children: "Play Now" })
486
486
  ] })
@@ -785,21 +785,21 @@ const w = /* @__PURE__ */ e("div")({
785
785
  name: "Line1",
786
786
  class: "l1anth16",
787
787
  propsAsIs: !0
788
- }), Gn = () => L, Xn = /* @__PURE__ */ e(Gn())({
788
+ }), Gn = () => L, Hn = /* @__PURE__ */ e(Gn())({
789
789
  name: "Line2",
790
790
  class: "l193yd7v",
791
791
  propsAsIs: !0
792
- }), Zn = () => L, Hn = /* @__PURE__ */ e(Zn())({
792
+ }), Xn = () => L, Zn = /* @__PURE__ */ e(Xn())({
793
793
  name: "Line3",
794
794
  class: "lhbflsp",
795
795
  propsAsIs: !0
796
796
  }), Jn = () => /* @__PURE__ */ l(Qn, {
797
797
  children: [/* @__PURE__ */ s(Kn, {
798
798
  children: /* @__PURE__ */ s("div", {})
799
- }), /* @__PURE__ */ s(Xn, {
800
- children: /* @__PURE__ */ s("div", {})
801
799
  }), /* @__PURE__ */ s(Hn, {
802
800
  children: /* @__PURE__ */ s("div", {})
801
+ }), /* @__PURE__ */ s(Zn, {
802
+ children: /* @__PURE__ */ s("div", {})
803
803
  })]
804
804
  }), so = /* @__PURE__ */ e("div")({
805
805
  name: "Container",
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as B } from "react/jsx-runtime";
2
- import { h as F } from "./index6.js";
2
+ import { h as F } from "./index7.js";
3
3
  import { useEffect as i, useState as _, useRef as g, useCallback as R, Component as M } from "react";
4
4
  import { s as h, c as w, u as j } from "./feature.js";
5
5
  import { e as k } from "./index3.js";
package/lib/es/points.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
- import { h as c } from "./index6.js";
2
+ import { h as c } from "./index7.js";
3
3
  import { useState as u, useEffect as d } from "react";
4
4
  import { s as o, u as f, F as m } from "./feature.js";
5
5
  import { e as n } from "./index3.js";
6
6
  import { p as h } from "./index11.js";
7
7
  import { m as y } from "./theme.js";
8
- import { B as S } from "./index7.js";
8
+ import { H as S } from "./index5.js";
9
9
  import { S as v } from "./useStreamLayerApp2.js";
10
10
  import { Y as g, _ as A } from "./hooks-n9ax4LRT.js";
11
11
  const I = /* @__PURE__ */ o("div")({
@@ -32,13 +32,13 @@ const I = /* @__PURE__ */ o("div")({
32
32
  name: "PointsValue",
33
33
  class: "prj9b3v",
34
34
  propsAsIs: !1
35
- }), B = ({ points: s, onClick: e }) => /* @__PURE__ */ p(I, { className: y, onClick: e, children: [
35
+ }), C = ({ points: s, onClick: e }) => /* @__PURE__ */ p(I, { className: y, onClick: e, children: [
36
36
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(k, { name: "icon-trophy-solid" }) }),
37
37
  /* @__PURE__ */ p(F, { children: [
38
38
  /* @__PURE__ */ t(T, { children: "Total points" }),
39
39
  /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(h, { value: s }) })
40
40
  ] })
41
- ] }), C = ({ gamification: s }) => {
41
+ ] }), $ = ({ gamification: s }) => {
42
42
  const e = s.userSummary.$store, [a, l] = u(0);
43
43
  return d(() => {
44
44
  const r = e.subscribe((i) => {
@@ -47,7 +47,7 @@ const I = /* @__PURE__ */ o("div")({
47
47
  return () => {
48
48
  r();
49
49
  };
50
- }, [e]), /* @__PURE__ */ t(B, { points: a, onClick: () => {
50
+ }, [e]), /* @__PURE__ */ t(C, { points: a, onClick: () => {
51
51
  const r = s.status.get();
52
52
  r === m.Suspended ? (s.openFeature(), n.emit("app", {
53
53
  action: "open",
@@ -63,15 +63,15 @@ const I = /* @__PURE__ */ o("div")({
63
63
  payload: {}
64
64
  }));
65
65
  } });
66
- }, $ = ({ sdk: s }) => {
66
+ }, j = ({ sdk: s }) => {
67
67
  if (!f(s.featuresList.getStore()))
68
68
  return null;
69
69
  const e = s.getFeature(v.GAMES);
70
- return e ? /* @__PURE__ */ t(C, { gamification: e }) : null;
71
- }, O = ({ theme: s }) => {
70
+ return e ? /* @__PURE__ */ t($, { gamification: e }) : null;
71
+ }, G = ({ theme: s }) => {
72
72
  const e = g(), a = A();
73
- return e ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(c, { customTheme: s ?? a.theme, themeMode: a.themeMode, children: /* @__PURE__ */ t($, { sdk: e }) }) }) : null;
73
+ return e ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(c, { customTheme: s ?? a.theme, themeMode: a.themeMode, children: /* @__PURE__ */ t(j, { sdk: e }) }) }) : null;
74
74
  };
75
75
  export {
76
- O as StreamLayerSDKPoints
76
+ G as StreamLayerSDKPoints
77
77
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as K, jsx as E } from "react/jsx-runtime";
2
- import { h as fs } from "./index6.js";
2
+ import { h as fs } from "./index7.js";
3
3
  import { s as k, u as js, c as Vs } from "./feature.js";
4
4
  import { q as ds, Y as ms, _ as ps } from "./hooks-n9ax4LRT.js";
5
5
  import { useRef as Ds, useEffect as Ks } from "react";
6
- import "./index5.js";
6
+ import "./index6.js";
7
7
  function _(h) {
8
8
  var t = h.width, i = h.height;
9
9
  if (t < 0)
package/lib/es/storage.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
2
  import { s as e } from "./feature.js";
3
3
  import { e as f } from "./index10.js";
4
4
  import { e as A, i as c } from "./index9.js";
5
- import { B as m } from "./index7.js";
5
+ import { H as m } from "./index5.js";
6
6
  import { Q as l, a as Q, P as n } from "./useStreamLayerApp2.js";
7
7
  const h = /* @__PURE__ */ e("div")({
8
8
  name: "QuestionItem",
@@ -48,20 +48,20 @@ const h = /* @__PURE__ */ e("div")({
48
48
  name: "SkeletonContainer",
49
49
  class: "s1f43z3r",
50
50
  propsAsIs: !1
51
- }), D = () => A, B = /* @__PURE__ */ e(D())({
51
+ }), D = () => A, C = /* @__PURE__ */ e(D())({
52
52
  name: "SkeletonButton",
53
53
  class: "s16k8geu",
54
54
  propsAsIs: !0
55
- }), C = {
55
+ }), O = {
56
56
  [n.LOST]: /* @__PURE__ */ s(i, { name: "incorrectVoted" }),
57
57
  [n.WON]: /* @__PURE__ */ s(E, { name: "icon-check" }),
58
58
  [n.UNSET]: /* @__PURE__ */ s(i, { name: "icon-arrow" }),
59
59
  [n.DNP]: /* @__PURE__ */ s(i, { name: "icon-arrow" })
60
- }, F = () => /* @__PURE__ */ o(x, { children: [
60
+ }, z = () => /* @__PURE__ */ o(x, { children: [
61
61
  /* @__PURE__ */ s(c, { loading: !0, style: { width: "35%" } }),
62
62
  /* @__PURE__ */ s(c, { loading: !0, style: { width: "70%" } }),
63
- /* @__PURE__ */ s(B, {})
64
- ] }), O = ({ questionTypeData: t, questionType: a, questionStatus: r }) => /* @__PURE__ */ o(S, { className: "SL_QuestionCaption", children: [
63
+ /* @__PURE__ */ s(C, {})
64
+ ] }), R = ({ questionTypeData: t, questionType: a, questionStatus: r }) => /* @__PURE__ */ o(S, { className: "SL_QuestionCaption", children: [
65
65
  /* @__PURE__ */ s(
66
66
  P,
67
67
  {
@@ -76,7 +76,7 @@ const h = /* @__PURE__ */ e("div")({
76
76
  t.label,
77
77
  a === l.TRIVIA && r === Q.RESOLVED && " • Expired"
78
78
  ] })
79
- ] }), H = ({
79
+ ] }), F = ({
80
80
  questionId: t,
81
81
  questionType: a,
82
82
  questionStatus: r,
@@ -84,11 +84,11 @@ const h = /* @__PURE__ */ e("div")({
84
84
  openForVoting: I,
85
85
  status: y
86
86
  }) => {
87
- const p = f[a], q = C[y];
87
+ const p = f[a], q = O[y];
88
88
  return p ? /* @__PURE__ */ o(h, { "data-a": "intr", "data-name": t, children: [
89
89
  /* @__PURE__ */ o(g, { children: [
90
90
  /* @__PURE__ */ s(
91
- O,
91
+ R,
92
92
  {
93
93
  questionTypeData: p,
94
94
  questionType: a,
@@ -105,9 +105,9 @@ var u;
105
105
  t.OPENED = "opened";
106
106
  })(u || (u = {}));
107
107
  export {
108
- F as D,
109
- H as R,
108
+ z as D,
109
+ F as R,
110
110
  w as S,
111
111
  h as r,
112
- O as x
112
+ R as x
113
113
  };