@streamlayer/react 1.16.0 → 1.17.0

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 (50) hide show
  1. package/lib/app/tvos.d.ts +5 -0
  2. package/lib/cjs/advertisement.js +37 -37
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/index3.js +1 -0
  5. package/lib/cjs/masters2.js +4 -4
  6. package/lib/cjs/notification.js +1 -1
  7. package/lib/cjs/points.js +1 -1
  8. package/lib/cjs/provider.js +1 -1
  9. package/lib/cjs/tvos.js +1 -0
  10. package/lib/cjs/useStreamLayerApp2.js +12 -12
  11. package/lib/classic/app/tvos.d.ts +5 -0
  12. package/lib/classic/cjs/advertisement.js +37 -37
  13. package/lib/classic/cjs/index.js +1 -1
  14. package/lib/classic/cjs/index3.js +1 -0
  15. package/lib/classic/cjs/masters2.js +4 -4
  16. package/lib/classic/cjs/notification.js +1 -1
  17. package/lib/classic/cjs/points.js +1 -1
  18. package/lib/classic/cjs/provider.js +1 -1
  19. package/lib/classic/cjs/tvos.js +1 -0
  20. package/lib/classic/cjs/useStreamLayerApp2.js +12 -12
  21. package/lib/classic/es/advertisement.js +2243 -2308
  22. package/lib/classic/es/index.js +5 -3
  23. package/lib/classic/es/index2.js +30 -30
  24. package/lib/classic/es/index3.js +76 -0
  25. package/lib/classic/es/insight.js +8 -8
  26. package/lib/classic/es/masters2.js +18 -18
  27. package/lib/classic/es/notification.js +25 -25
  28. package/lib/classic/es/points.js +10 -10
  29. package/lib/classic/es/provider.js +47 -47
  30. package/lib/classic/es/tvos.js +1352 -0
  31. package/lib/classic/es/useStreamLayerApp2.js +1157 -1157
  32. package/lib/classic/index.d.ts +1 -0
  33. package/lib/classic/style.css +1 -1
  34. package/lib/dist/cjs/masters.js +26 -26
  35. package/lib/dist/es/masters.js +2293 -2293
  36. package/lib/dist/style.css +1 -1
  37. package/lib/es/advertisement.js +2243 -2308
  38. package/lib/es/index.js +5 -3
  39. package/lib/es/index2.js +30 -30
  40. package/lib/es/index3.js +76 -0
  41. package/lib/es/insight.js +8 -8
  42. package/lib/es/masters2.js +18 -18
  43. package/lib/es/notification.js +25 -25
  44. package/lib/es/points.js +10 -10
  45. package/lib/es/provider.js +47 -47
  46. package/lib/es/tvos.js +1352 -0
  47. package/lib/es/useStreamLayerApp2.js +1157 -1157
  48. package/lib/index.d.ts +1 -0
  49. package/lib/style.css +1 -1
  50. package/package.json +24 -14
package/lib/es/index.js CHANGED
@@ -1,13 +1,15 @@
1
- import { Q as m, S, a1 as o, h as i, u as s, b as y, Y as L } from "./provider.js";
1
+ import { S as m, a as S, b as o, h as i, u as s, d as y, c as L } from "./provider.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
- import { StreamLayerSDKNotification as p, StreamLayerSDKNotificationUI as u } from "./notification.js";
4
+ import { StreamLayerSDKNotification as p, StreamLayerSDKNotificationUI as D } from "./notification.js";
5
+ import { StreamLayerSDKTv as c } from "./tvos.js";
5
6
  export {
6
7
  m as StreamLayerProvider,
7
8
  S as StreamLayerSDKEvent,
8
9
  p as StreamLayerSDKNotification,
9
- u as StreamLayerSDKNotificationUI,
10
+ D as StreamLayerSDKNotificationUI,
10
11
  o as StreamLayerSDKReact,
12
+ c as StreamLayerSDKTv,
11
13
  i as StreamLayerThemeProvider,
12
14
  s as useStreamLayer,
13
15
  y as useStreamLayerTheme,
package/lib/es/index2.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as P, jsxs as F } from "react/jsx-runtime";
2
- import { s as _, k as te, f as ft, g as ht, i as vt, j as gt, l as Se, a as _e } from "./provider.js";
2
+ import { s as _, k as te, l as ft, n as ht, o as vt, p as gt, i as Se, f as _e } from "./provider.js";
3
3
  import $, { forwardRef as Le, useState as W, useRef as D, useEffect as X, useLayoutEffect as wt, createContext as He, useCallback as Ae, useSyncExternalStore as bt, useMemo as Re, memo as yt } from "react";
4
4
  import { C as St, a as Et, S as qe } from "./useStreamLayerApp2.js";
5
5
  function $e(t) {
@@ -541,15 +541,15 @@ function Ft() {
541
541
  if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
542
542
  I = t.isHorizontal() ? xe(x, "width") : xe(x, "height");
543
543
  else {
544
- const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), j = e(k, "margin-left"), G = e(k, "margin-right"), V = k.getPropertyValue("box-sizing");
545
- if (V && V === "border-box")
546
- I = C + j + G;
544
+ const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
545
+ if (j && j === "border-box")
546
+ I = C + V + G;
547
547
  else {
548
548
  const {
549
549
  clientWidth: ut,
550
550
  offsetWidth: mt
551
551
  } = x;
552
- I = C + z + U + j + G + (mt - ut);
552
+ I = C + z + U + V + G + (mt - ut);
553
553
  }
554
554
  }
555
555
  L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
@@ -620,7 +620,7 @@ function Ft() {
620
620
  u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
621
621
  }
622
622
  }
623
- function jt(t) {
623
+ function Vt(t) {
624
624
  const e = this, s = [], r = e.virtual && e.params.virtual.enabled;
625
625
  let n = 0, i;
626
626
  typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
@@ -645,7 +645,7 @@ function jt(t) {
645
645
  }
646
646
  (n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
647
647
  }
648
- function Vt() {
648
+ function jt() {
649
649
  const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
650
650
  for (let r = 0; r < e.length; r += 1)
651
651
  e[r].swiperSlideOffset = (t.isHorizontal() ? e[r].offsetLeft : e[r].offsetTop) - s - t.cssOverflowAdjustment();
@@ -852,8 +852,8 @@ function Xt(t, e) {
852
852
  var Ut = {
853
853
  updateSize: Dt,
854
854
  updateSlides: Ft,
855
- updateAutoHeight: jt,
856
- updateSlidesOffset: Vt,
855
+ updateAutoHeight: Vt,
856
+ updateSlidesOffset: jt,
857
857
  updateSlidesProgress: Ht,
858
858
  updateProgress: Rt,
859
859
  updateSlidesClasses: qt,
@@ -1290,8 +1290,8 @@ function hs(t) {
1290
1290
  const z = C - Math.floor(C / A) * A;
1291
1291
  if (g) {
1292
1292
  const U = A - z - 1;
1293
- for (let j = d.length - 1; j >= 0; j -= 1)
1294
- d[j].column === U && y.push(j);
1293
+ for (let V = d.length - 1; V >= 0; V -= 1)
1294
+ d[V].column === U && y.push(V);
1295
1295
  } else
1296
1296
  y.push(A - z - 1);
1297
1297
  }
@@ -1299,8 +1299,8 @@ function hs(t) {
1299
1299
  L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
1300
1300
  for (let C = 0; C < L; C += 1) {
1301
1301
  const z = C - Math.floor(C / A) * A;
1302
- g ? d.forEach((U, j) => {
1303
- U.column === z && T.push(j);
1302
+ g ? d.forEach((U, V) => {
1303
+ U.column === z && T.push(V);
1304
1304
  }) : T.push(z);
1305
1305
  }
1306
1306
  }
@@ -1975,7 +1975,7 @@ var Fs = {
1975
1975
  // Internals
1976
1976
  _emitClasses: !1
1977
1977
  };
1978
- function js(t, e) {
1978
+ function Vs(t, e) {
1979
1979
  return function(s) {
1980
1980
  s === void 0 && (s = {});
1981
1981
  const r = Object.keys(s)[0], n = s[r];
@@ -2032,7 +2032,7 @@ let ze = class q {
2032
2032
  d({
2033
2033
  params: s,
2034
2034
  swiper: a,
2035
- extendParams: js(s, o),
2035
+ extendParams: Vs(s, o),
2036
2036
  on: a.on.bind(a),
2037
2037
  once: a.once.bind(a),
2038
2038
  off: a.off.bind(a),
@@ -2460,7 +2460,7 @@ function it(t) {
2460
2460
  s.indexOf(r) < 0 && s.push(r);
2461
2461
  }), s.join(" ");
2462
2462
  }
2463
- function Vs(t) {
2463
+ function js(t) {
2464
2464
  return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2465
2465
  }
2466
2466
  function Hs(t) {
@@ -2636,8 +2636,8 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2636
2636
  h(!v);
2637
2637
  };
2638
2638
  Object.assign(I.on, {
2639
- _containerClasses(G, V) {
2640
- d(V);
2639
+ _containerClasses(G, j) {
2640
+ d(j);
2641
2641
  }
2642
2642
  });
2643
2643
  const C = () => {
@@ -2647,13 +2647,13 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2647
2647
  };
2648
2648
  if (delete G.wrapperClass, w.current = new ze(G), w.current.virtual && w.current.params.virtual.enabled) {
2649
2649
  w.current.virtual.slides = k;
2650
- const V = {
2650
+ const j = {
2651
2651
  cache: !1,
2652
2652
  slides: k,
2653
2653
  renderExternal: f,
2654
2654
  renderExternalUpdate: !1
2655
2655
  };
2656
- J(w.current.params.virtual, V), J(w.current.originalParams.virtual, V);
2656
+ J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
2657
2657
  }
2658
2658
  };
2659
2659
  M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
@@ -2684,7 +2684,7 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2684
2684
  };
2685
2685
  }, []), ee(() => {
2686
2686
  z();
2687
- const G = Ws(S, p.current, k, m.current, (V) => V.key);
2687
+ const G = Ws(S, p.current, k, m.current, (j) => j.key);
2688
2688
  return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Hs({
2689
2689
  swiper: w.current,
2690
2690
  slides: k,
@@ -2700,10 +2700,10 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2700
2700
  }), ee(() => {
2701
2701
  Ys(w.current);
2702
2702
  }, [u]);
2703
- function j() {
2704
- return I.virtual ? Us(w.current, k, u) : k.map((G, V) => /* @__PURE__ */ $.cloneElement(G, {
2703
+ function V() {
2704
+ return I.virtual ? Us(w.current, k, u) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
2705
2705
  swiper: w.current,
2706
- swiperSlideIndex: V
2706
+ swiperSlideIndex: j
2707
2707
  }));
2708
2708
  }
2709
2709
  return /* @__PURE__ */ $.createElement(r, pe({
@@ -2712,8 +2712,8 @@ const Fe = /* @__PURE__ */ He(null), Qs = /* @__PURE__ */ He(null), lt = /* @__P
2712
2712
  }, E), /* @__PURE__ */ $.createElement(Qs.Provider, {
2713
2713
  value: w.current
2714
2714
  }, L["container-start"], /* @__PURE__ */ $.createElement(n, {
2715
- className: Vs(I.wrapperClass)
2716
- }, L["wrapper-start"], j(), L["wrapper-end"]), tt(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
2715
+ className: js(I.wrapperClass)
2716
+ }, L["wrapper-start"], V(), L["wrapper-end"]), tt(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
2717
2717
  ref: y,
2718
2718
  className: "swiper-button-prev"
2719
2719
  }), /* @__PURE__ */ $.createElement("div", {
@@ -3335,7 +3335,7 @@ handle this request.`
3335
3335
  name: "CloseButton",
3336
3336
  class: "coc9f01",
3337
3337
  propsAsIs: !1
3338
- }), je = "b590k5k", Ar = () => te, pt = /* @__PURE__ */ _(Ar())({
3338
+ }), Ve = "b590k5k", Ar = () => te, pt = /* @__PURE__ */ _(Ar())({
3339
3339
  name: "IconArrowPrev",
3340
3340
  class: "i1tkem14",
3341
3341
  propsAsIs: !0
@@ -3359,7 +3359,7 @@ handle this request.`
3359
3359
  name: "Footer",
3360
3360
  class: "f1vakhu9",
3361
3361
  propsAsIs: !1
3362
- }), Ve = /* @__PURE__ */ _("button")({
3362
+ }), je = /* @__PURE__ */ _("button")({
3363
3363
  name: "SlideSwitchButton",
3364
3364
  class: "spp13y7",
3365
3365
  propsAsIs: !1
@@ -3396,8 +3396,8 @@ handle this request.`
3396
3396
  ] }),
3397
3397
  /* @__PURE__ */ P(Gr, { children: /* @__PURE__ */ P(Dr, { sdk: t, onEvent: o, overlay: !0 }) }),
3398
3398
  /* @__PURE__ */ F(Nr, { children: [
3399
- /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(pt, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canPrev) && je) }) }),
3400
- /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(zr, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canNext) && je) }) })
3399
+ /* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(pt, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canPrev) && Ve) }) }),
3400
+ /* @__PURE__ */ P(je, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(zr, { "data-a": "intr", name: "iconArrowPrev", className: Se((l == null ? void 0 : l.canNext) && Ve) }) })
3401
3401
  ] })
3402
3402
  ] });
3403
3403
  }), Br = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n }) => t.data ? e ? /* @__PURE__ */ P(Tr, { overlay: s, gamification: e, onEvent: n, swipeable: r }) : /* @__PURE__ */ P(Ie, {}) : t.error && !t.loading ? /* @__PURE__ */ P(
@@ -0,0 +1,76 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { i as c, s as d } from "./provider.js";
3
+ const p = /* @__PURE__ */ d("div")({
4
+ name: "Container",
5
+ class: "c5b6wdg",
6
+ propsAsIs: !1
7
+ }), m = "a1rlj479", h = "s35f1di", g = "sj4471g", b = "b12050d8", f = "b1d5ybek", u = (a) => a === "left" || a === "right" ? h : b, y = (a) => a === "left" || a === "right" ? g : f, k = (a) => a === "left" ? "avdxyl3" : a === "right" ? "a1bisd08" : a === "top" ? "a1u9y2aj" : "a1qqaks", o = ({
8
+ children: a,
9
+ style: r,
10
+ className: l,
11
+ enabled: i = !0,
12
+ hiding: e,
13
+ direction: s = "left",
14
+ onAnimationEnd: n
15
+ }) => /* @__PURE__ */ t(p, {
16
+ style: r,
17
+ className: c(l, m, k(s), i && !e && u(s), i && e && y(s)),
18
+ onAnimationEnd: n,
19
+ children: a
20
+ }), A = /* @__PURE__ */ d("a")({
21
+ name: "Link",
22
+ class: "l1sgte8c",
23
+ propsAsIs: !1
24
+ }), B = /* @__PURE__ */ d("div")({
25
+ name: "BannerContainer",
26
+ class: "b7yfc72",
27
+ propsAsIs: !1
28
+ }), I = () => A, j = /* @__PURE__ */ d(I())({
29
+ name: "BannerLink",
30
+ class: "bejjq94",
31
+ propsAsIs: !0
32
+ }), x = ({ promotion: a, promotionId: r, hiding: l, direction: i = "bottom" }) => {
33
+ var e, s;
34
+ if (!((e = a.additionalBanner) != null && e.imageUrl))
35
+ return null;
36
+ let n = (s = a.additionalBanner) == null ? void 0 : s.url;
37
+ return n && n.indexOf("http") !== 0 && (n = `https://${n}`), /* @__PURE__ */ t(o, { direction: i, hiding: l, children: /* @__PURE__ */ t(B, { className: "BannerContainer", children: /* @__PURE__ */ t(
38
+ j,
39
+ {
40
+ as: n ? "a" : "span",
41
+ className: "BannerLink",
42
+ href: n,
43
+ style: {
44
+ backgroundImage: `url(${a.additionalBanner.imageUrl})`,
45
+ cursor: n ? "pointer" : "default"
46
+ },
47
+ "data-promo-id": r,
48
+ "data-promo-type": a.type,
49
+ "data-a": "banner",
50
+ target: "_blank"
51
+ }
52
+ ) }) });
53
+ }, v = /* @__PURE__ */ d("div")({
54
+ name: "SidebarContainer",
55
+ class: "s1abskp8",
56
+ propsAsIs: !1
57
+ }), C = ({
58
+ children: a,
59
+ direction: r,
60
+ style: l,
61
+ className: i,
62
+ hiding: e
63
+ }) => /* @__PURE__ */ t(o, {
64
+ direction: r,
65
+ style: l,
66
+ hiding: e,
67
+ className: i,
68
+ children: /* @__PURE__ */ t(v, {
69
+ children: a
70
+ })
71
+ });
72
+ export {
73
+ x as B,
74
+ C as b,
75
+ o as k
76
+ };
package/lib/es/insight.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as u, jsxs as c } from "react/jsx-runtime";
2
2
  import { useRef as l, useEffect as h } from "react";
3
- import { a as m, s as p, z as f, u as S, b as I, h as g, S as v } from "./provider.js";
3
+ import { f as m, s as p, z as f, u as S, d as I, h as g, a as v } from "./provider.js";
4
4
  import { S as y } from "./useStreamLayerApp2.js";
5
- const Q = () => f, b = /* @__PURE__ */ p(Q())({
5
+ const Q = () => f, k = /* @__PURE__ */ p(Q())({
6
6
  name: "QuestionWrap",
7
7
  class: "q10hhsxv",
8
8
  propsAsIs: !0
9
- }), k = ({
9
+ }), A = ({
10
10
  gamification: e,
11
11
  persistent: r,
12
12
  skipAutoClose: n,
@@ -25,13 +25,13 @@ const Q = () => f, b = /* @__PURE__ */ p(Q())({
25
25
  var a;
26
26
  i && ((a = i.feedItem) == null ? void 0 : a.type) === "insight" && (!r || e.isOpenedQuestion(i.feedItem.id) || (t.current = i.feedItem.id, e.openQuestion(i.feedItem.id, i.feedItem))), !i && t.current && (e.closeQuestion(t.current), t.current = "");
27
27
  }), () => {
28
- }), [e, r, s]), d ? /* @__PURE__ */ u(b, {
28
+ }), [e, r, s]), d ? /* @__PURE__ */ u(k, {
29
29
  skipAutoClose: n,
30
30
  hideHeader: o,
31
31
  gamification: e,
32
32
  hideSponsor: !0
33
33
  }) : null;
34
- }, A = ({
34
+ }, L = ({
35
35
  sdk: e,
36
36
  persistent: r,
37
37
  skipAutoClose: n,
@@ -41,7 +41,7 @@ const Q = () => f, b = /* @__PURE__ */ p(Q())({
41
41
  if (!m(e.featuresList.getStore()))
42
42
  return null;
43
43
  const t = e.getFeature(y.GAMES);
44
- return t ? /* @__PURE__ */ u(k, {
44
+ return t ? /* @__PURE__ */ u(A, {
45
45
  insightId: o,
46
46
  persistent: r,
47
47
  hideHeader: s,
@@ -58,7 +58,7 @@ const Q = () => f, b = /* @__PURE__ */ p(Q())({
58
58
  const t = S(), d = I();
59
59
  return t ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: [
60
60
  /* @__PURE__ */ u(g, { customTheme: r ?? d.theme, themeMode: d.themeMode, children: /* @__PURE__ */ u(
61
- A,
61
+ L,
62
62
  {
63
63
  skipAutoClose: o,
64
64
  sdk: t,
@@ -71,5 +71,5 @@ const Q = () => f, b = /* @__PURE__ */ p(Q())({
71
71
  };
72
72
  export {
73
73
  H as StreamLayerSDKInsight,
74
- A as StreamLayerSDKInsightUI
74
+ L as StreamLayerSDKInsightUI
75
75
  };
@@ -1,8 +1,8 @@
1
- import { jsx as s, jsxs as h, Fragment as x } from "react/jsx-runtime";
2
- import { s as c, m as Y, a as m, A as N, i as V, F as a2, n as l2, o as d2, p as c2, q as p2, g as C2, H as u2, r as m2, t as f2, v as h2, x as j, w as P, l as A, k as X, I as g2, y as v2, B as E2, e as L2, N as w, C as M, D as S2, E as _2, G as T2, R as N2, J as b, K as z, L as J, M as e2, c as F, O as I2, Q as b2, S as R2, T as A2, U as y2 } from "./provider.js";
3
- import { useRef as I, useState as _, useEffect as v, createContext as k2, useContext as n2, lazy as w2, useMemo as y, Suspense as x2, forwardRef as D2, useLayoutEffect as F2, useCallback as $, Component as O2 } from "react";
1
+ import { jsx as s, jsxs as h, Fragment as D } from "react/jsx-runtime";
2
+ import { s as c, t as Y, f as m, v as N, o as V, F as a2, w as l2, B as d2, C as c2, E as p2, n as C2, H as u2, G as m2, I as f2, J as h2, K as j, L as P, i as A, k as X, M as g2, O as v2, Q as E2, e as L2, N as w, R as M, T as S2, U as _2, q as T2, V as N2, W as b, X as z, j as J, Y as e2, m as F, Z as I2, S as b2, a as R2, _ as A2, $ as y2 } from "./provider.js";
3
+ import { useRef as I, useState as _, useEffect as v, createContext as k2, useContext as n2, lazy as w2, useMemo as y, Suspense as D2, forwardRef as x2, useLayoutEffect as F2, useCallback as $, Component as O2 } from "react";
4
4
  import { n as B2 } from "./index2.js";
5
- import { Q as V2, S as k } from "./useStreamLayerApp2.js";
5
+ import { b as V2, S as k } from "./useStreamLayerApp2.js";
6
6
  const $2 = /* @__PURE__ */ c("div")({
7
7
  name: "SDKContainer",
8
8
  class: "s8zgqze",
@@ -217,7 +217,7 @@ const $2 = /* @__PURE__ */ c("div")({
217
217
  }, o0 = w2(() => import("./gamification-feature2.js")), r0 = ({ sdk: n, feature: e, className: t }) => {
218
218
  const i = y(() => e && e.featureConfig.get().type === k.GAMES ? /* @__PURE__ */ s(Q2, { className: t, sdk: n, feature: e, children: /* @__PURE__ */ s(o0, { className: t, gamification: e }) }) : null, [n, e, t]);
219
219
  return /* @__PURE__ */ s(
220
- x2,
220
+ D2,
221
221
  {
222
222
  fallback: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
223
223
  children: i
@@ -244,7 +244,7 @@ const $2 = /* @__PURE__ */ c("div")({
244
244
  name: "Title",
245
245
  class: "t1bqnx9c",
246
246
  propsAsIs: !1
247
- }), p0 = "hlc2pcy", C0 = D2(({
247
+ }), p0 = "hlc2pcy", C0 = x2(({
248
248
  className: n
249
249
  }, e) => /* @__PURE__ */ h(l0, {
250
250
  className: A(n, p0),
@@ -308,7 +308,7 @@ const $2 = /* @__PURE__ */ c("div")({
308
308
  }, T0 = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200%2092%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1701%200.953996C13.9047%200.873145%2013.6393%201.0177%2013.3739%201.1647C13.2797%201.21615%2013.2127%201.3068%2013.1904%201.4097L12.7736%203.33298C12.7588%203.40404%2012.8233%203.46774%2012.8952%203.45304C13.3342%203.35504%2013.7509%202.97528%2014.19%203.10758C14.6811%203.25703%2015.1722%202.64207%2015.6634%202.64942V0.429688C15.1698%200.432138%2014.6613%201.10345%2014.1701%200.953996Z'%20fill='%23006747'/%3e%3cpath%20d='M20.4404%206.84786C20.3362%206.77681%2020.2717%206.66166%2020.2717%206.53671V6.18635C20.2717%205.87275%2020.0138%205.61549%2019.6938%205.61549H19.4631C19.1878%205.61549%2018.9348%205.75269%2018.7859%205.98055L18.0418%207.11492C17.9674%207.22762%2017.8434%207.29377%2017.7094%207.29377H17.2084C16.9603%207.29377%2016.7321%207.42852%2016.6131%207.64412C16.4915%207.86708%2016.2757%208.02143%2016.0302%208.07288V0.181303C16.0302%200.0808513%2015.9483%200%2015.8466%200C15.7449%200%2015.663%200.0808513%2015.663%200.181303V0.426307V2.64604V8.07778C15.4175%208.02633%2015.2017%207.87198%2015.0801%207.64657C14.9636%207.43097%2014.7354%207.29622%2014.4848%207.29622H14.1475C13.8796%207.29622%2013.639%207.45057%2013.5298%207.69312L13.2496%208.31299C13.2049%208.41099%2013.1057%208.47469%2012.9965%208.47469C12.8874%208.47469%2012.7882%208.41099%2012.7435%208.31299L12.4633%207.69312C12.3541%207.45302%2012.1135%207.29622%2011.8456%207.29622H2.33802C2.26113%207.29622%202.19911%207.35747%202.19911%207.43342C2.19911%207.59512%202.06517%207.72498%201.90394%207.72498H1.49218C1.41529%207.72498%201.35328%207.78623%201.35328%207.86218V8.33504C1.35328%208.77849%201.26646%209.2097%201.09283%209.61886L0.842303%2010.2142C0.60914%2010.7655%200.5%2011.3363%200.5%2011.8974V13.2694C0.5%2013.6394%200.55457%2014.0142%200.66371%2014.3793C0.968807%2015.4034%201.66334%2016.2413%202.61831%2016.7362L4.13883%2017.5276C4.15868%2017.5374%204.181%2017.5423%204.20332%2017.5423L5.32697%2017.5521C5.5899%2017.5545%205.84787%2017.6207%206.07855%2017.7481L6.6813%2018.0813C6.70115%2018.0935%206.72595%2018.0984%206.75076%2018.0984H7.5569C7.83968%2018.0984%208.11997%2018.1744%208.36057%2018.3189C8.36057%2018.3189%208.75497%2018.5566%208.88891%2018.6326C9.10223%2018.7551%209.3602%2018.8727%209.80916%2018.8972C9.91086%2018.9021%2010.0126%2018.8653%2010.0895%2018.7943C10.1639%2018.7232%2010.2085%2018.6228%2010.2085%2018.5223V17.9882C10.2085%2017.6011%2010.4392%2017.2483%2010.7989%2017.0939L12.0317%2016.5598C12.2003%2016.4863%2012.3888%2016.4741%2012.5649%2016.528L13.0263%2016.6627C13.2223%2016.7191%2013.4306%2016.7215%2013.6266%2016.6627L14.718%2016.3418C14.8619%2016.3001%2015.0156%2016.3001%2015.162%2016.3442L15.606%2016.4667C15.8119%2016.5231%2015.9582%2016.7142%2015.9582%2016.9249V17.9931C15.9582%2018.4905%2016.3675%2018.8972%2016.871%2018.8972C17.2481%2018.8972%2017.578%2018.6595%2017.6921%2018.3042C17.8979%2017.6648%2018.0021%2016.9984%2018.0021%2016.3271V15.8714C18.0021%2015.548%2018.1385%2015.2368%2018.3767%2015.0138L18.8306%2014.59C19.1357%2014.3033%2019.3118%2013.8966%2019.3118%2013.4801V10.9468C19.3118%2010.5548%2019.4309%2010.175%2019.6591%209.85161C19.6764%209.82956%2019.6839%209.80016%2019.6839%209.77321V9.1754C19.6839%208.78584%2019.8029%208.40854%2020.0262%208.08758L20.4751%207.44322C20.4925%207.42117%2020.4999%207.39422%2020.4999%207.36482V6.96056C20.5024%206.88461%2020.4553%206.85766%2020.4404%206.84786ZM16.0302%2012.8554C16.3352%2012.9019%2016.5634%2013.0563%2016.5634%2013.2425C16.5634%2013.4287%2016.3377%2013.583%2016.0302%2013.6296V12.8554ZM2.98046%2016.6137L2.74978%2016.4937C2.12222%2016.1678%201.62117%2015.6827%201.27886%2015.0922V14.3523C1.67078%2014.9134%202.20407%2015.3912%202.85644%2015.7317L2.98046%2015.7954V16.6137ZM4.14131%2017.2189L3.52616%2016.9004V16.0821L4.13883%2016.4006H4.14131V17.2189ZM6.70115%2017.775L6.21498%2017.5055C5.94957%2017.3585%205.65191%2017.2801%205.34682%2017.2752V16.4226C5.6023%2016.4275%205.85531%2016.4937%206.07855%2016.6162L6.6813%2016.9494C6.68626%2016.9518%206.6937%2016.9518%206.70115%2016.9543V17.775ZM9.92822%2017.9882V18.4047V18.5223C9.92822%2018.5493%209.91582%2018.5762%209.89598%2018.5958C9.87613%2018.6154%209.85133%2018.6228%209.82404%2018.6228C9.43461%2018.6032%209.21137%2018.5027%209.0303%2018.3973C8.89883%2018.3214%208.50692%2018.0862%208.50444%2018.0862C8.25887%2017.9392%207.98106%2017.8583%207.69581%2017.8363V16.9788C7.92897%2017.0008%208.15718%2017.0694%208.36057%2017.1895L8.7004%2017.3904C9.07246%2017.6109%209.49662%2017.7358%209.92822%2017.7603V17.9882ZM13.2868%2016.4275C13.2272%2016.4251%2013.1652%2016.4153%2013.1057%2016.3981L12.6443%2016.2609C12.5451%2016.2315%2012.4434%2016.2217%2012.3417%2016.2217V15.3667C12.4161%2015.3667%2012.4905%2015.374%2012.5649%2015.3961L13.0263%2015.5308C13.1107%2015.5553%2013.1999%2015.5676%2013.2868%2015.5725V16.4275ZM16.1765%2016.6333C16.0872%2016.4275%2015.9111%2016.2634%2015.6854%2016.2021L15.2438%2016.0796C15.1397%2016.0478%2015.0305%2016.0355%2014.9214%2016.0355V15.1829C15.0057%2015.1804%2015.0901%2015.1902%2015.1719%2015.2172L15.5341%2015.3299C15.9185%2015.45%2016.1765%2015.7979%2016.1765%2016.1948V16.6333ZM17.449%2018.1474C17.4415%2018.1719%2017.4366%2018.1964%2017.4291%2018.2209C17.3522%2018.4611%2017.129%2018.6203%2016.876%2018.6203C16.8537%2018.6203%2016.8313%2018.6154%2016.809%2018.613V17.7628C16.8264%2017.7652%2016.8413%2017.7677%2016.8586%2017.7677C17.1067%2017.7677%2017.3324%2017.6305%2017.4515%2017.4222V18.1474H17.449ZM19.8302%207.48242C19.5524%207.87933%2019.4061%208.34484%2019.4061%208.82749V9.2489L19.1903%209.5576C18.91%209.95696%2018.7611%2010.4249%2018.7611%2010.91V13.0342C18.7611%2013.3772%2018.6173%2013.7129%2018.3643%2013.9481L17.9103%2014.3744C17.6052%2014.661%2017.4366%2015.0628%2017.449%2015.4794L17.4515%2015.5749C17.4688%2016.1262%2017.3969%2016.675%2017.2406%2017.2042C17.191%2017.3732%2017.0323%2017.4908%2016.8561%2017.4908C16.6354%2017.4908%2016.4543%2017.3144%2016.4543%2017.0939V16.1948C16.4543%2015.6754%2016.117%2015.2221%2015.6159%2015.0677L15.2538%2014.955C15.0528%2014.8938%2014.842%2014.8913%2014.6386%2014.9501L13.5472%2015.2686C13.4033%2015.3103%2013.2496%2015.3103%2013.1057%2015.2686L12.6443%2015.1339C12.4062%2015.0628%2012.1482%2015.08%2011.92%2015.178L10.9502%2015.5994C10.3301%2015.8689%209.9307%2016.4741%209.9307%2017.1429V17.4884C9.54871%2017.4663%209.17664%2017.3536%208.84674%2017.1576L8.50692%2016.9567C8.21919%2016.7877%207.89177%2016.697%207.5569%2016.697H6.78548L6.21498%2016.381C5.94461%2016.2315%205.63951%2016.1531%205.32945%2016.1507L4.23805%2016.1433L2.98542%2015.4916C1.08539%2014.5042%200.274278%2012.2821%201.10027%2010.322L1.3508%209.72666C1.53683%209.28565%201.63357%208.81769%201.63357%208.33749V8.00428H1.90394C2.17183%208.00428%202.40003%207.82053%202.46204%207.57307H11.8481C12.0044%207.57307%2012.1482%207.66372%2012.2102%207.80583L12.4905%208.42569C12.5798%208.62414%2012.7783%208.75154%2012.999%208.75154C13.2173%208.75154%2013.4182%208.62414%2013.5075%208.42569L13.7878%207.80338C13.8523%207.66127%2013.9937%207.57062%2014.15%207.57062H14.4873C14.6337%207.57062%2014.7676%207.64902%2014.837%207.77643C15.0082%208.09003%2015.3158%208.30074%2015.6655%208.35709V12.2575C15.1025%2012.3188%2014.6709%2012.6496%2014.6709%2013.0514C14.6709%2013.4973%2015.1967%2013.8574%2015.8466%2013.8574C16.4965%2013.8574%2017.0223%2013.4973%2017.0223%2013.0514C17.0223%2012.6496%2016.5907%2012.3163%2016.0277%2012.2575V8.35464C16.3774%208.29828%2016.685%208.08758%2016.8561%207.77398C16.9256%207.64657%2017.0595%207.56817%2017.2059%207.56817H17.7069C17.9376%207.56817%2018.1485%207.45302%2018.275%207.26192L19.0191%206.12755C19.1158%205.9781%2019.282%205.8899%2019.4631%205.8899H19.6938C19.8575%205.8899%2019.9914%206.0222%2019.9914%206.1839V6.53426C19.9914%206.70331%2020.0584%206.86501%2020.175%206.98506L19.8302%207.48242ZM15.663%2012.8554V13.6296C15.3579%2013.583%2015.1322%2013.4287%2015.1322%2013.2425C15.1322%2013.0563%2015.3579%2012.8995%2015.663%2012.8554Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M43.6355%2014.2212L45.783%206.63627C46.0175%205.80901%2046.629%205.14498%2047.4288%204.848L47.4874%204.60107H44.5028L39.434%2010.6989L37.4942%204.60107H34.7636L34.6978%204.848C35.1653%205.08213%2035.423%205.78176%2035.423%206.35097V6.38628C35.423%209.63469%2033.0443%2015.2183%2029.6984%2015.2183C28.3982%2015.2183%2027.7242%2014.2901%2027.7242%2013.5165C27.7242%2012.5794%2028.5003%2011.9129%2029.3191%2011.9129C30.112%2011.9129%2030.2342%2012.211%2030.6909%2012.211C30.9696%2012.211%2031.2366%2012.0667%2031.3701%2011.8195C31.5797%2011.4313%2031.4208%2010.9572%2031.0376%2010.7714L30.8283%2010.6705C28.8775%209.72228%2026.6152%2011.1582%2026.6152%2013.3453V13.3756C26.6152%2014.9675%2027.8525%2016.2989%2029.4275%2016.3545C33.4867%2016.4983%2036.2019%2010.9661%2036.6338%206.91684L36.9458%208.01243L38.5448%2012.8545H39.1504L44.1452%206.83425L42.0498%2014.229C41.8094%2015.0773%2041.1437%2015.7344%2040.2985%2015.958L40.2399%2016.2049H44.2561L44.3216%2015.958C43.7283%2015.6043%2043.4461%2014.8902%2043.6355%2014.2212Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M51.9847%2012.6335H50.0625C50.2808%2012.034%2050.4898%2011.4617%2050.5603%2011.2743C51.0465%209.97682%2051.971%209.45183%2052.8665%209.37842L52.8572%209.3862L51.9847%2012.6335ZM53.7159%208.72607H53.6817C51.8071%208.7283%2049.7916%208.91155%2048.719%2011.9903C47.8179%2014.5767%2047.5745%2015.6481%2046.8705%2015.6481C46.4204%2015.6481%2046.5297%2014.763%2045.8549%2014.763C45.5509%2014.763%2045.2332%2015.0093%2045.2104%2015.3661C45.1705%2015.9826%2045.9909%2016.3555%2046.6092%2016.3555C48.4929%2016.3555%2049.2148%2014.9671%2049.4505%2014.3203C49.481%2014.2358%2049.6473%2013.778%2049.8436%2013.2386H51.8231L51.4878%2014.4866C51.3107%2015.145%2050.9465%2015.6839%2050.3304%2015.9595L50.2772%2016.2062H53.5154L53.5755%2015.9595C53.1372%2015.5941%2052.9469%2015.0082%2053.089%2014.4627L54.3075%209.78302C54.4011%209.42403%2054.6472%209.12789%2054.9809%208.973L55.0338%208.72607H53.9785H53.7159Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M70.056%209.26026C70.1601%209.08619%2070.2595%208.82035%2070.2595%208.67186L70.2597%208.67103C70.2741%208.39018%2070.0208%208.17273%2069.7488%208.23196H69.7482C69.5304%208.27951%2069.373%208.47499%2069.3771%208.70023C69.3807%208.93436%2069.3341%209.18574%2069.2353%209.30836C69.0082%209.59116%2068.645%209.56697%2066.9717%209.08174V9.07896C66.8186%209.03363%2066.6504%208.98414%2066.4731%208.93492C66.4637%208.93241%2066.4549%208.92963%2066.4453%208.92657L66.4456%208.92741C65.6106%208.698%2064.5732%208.4875%2063.8929%208.82869C63.8874%208.83148%2063.8816%208.83453%2063.8764%208.83704C63.2118%209.17406%2062.7479%209.81223%2062.6086%2010.5502C62.5879%2010.6587%2062.5728%2010.7468%2062.5711%2010.7788V10.7799C62.5513%2011.1675%2062.9009%2011.4679%2063.2767%2011.3864L63.2773%2011.3858C63.5821%2011.3196%2063.7965%2011.0441%2063.7902%2010.7296C63.7836%2010.4117%2063.7205%209.98741%2063.8918%209.70267C64.1674%209.31059%2064.4537%209.28278%2065.7361%209.71462L64.3436%2014.4877C64.1514%2015.1456%2063.6812%2015.6848%2063.059%2015.9601L63.0001%2016.2073H66.3319L66.3977%2015.9601C65.9679%2015.595%2065.7906%2015.0088%2065.9453%2014.4635L67.1628%2010.1637C67.6969%2010.276%2068.2381%2010.305%2068.7651%2010.1531L68.9548%2010.0986C69.3787%209.97629%2069.8129%209.6668%2070.056%209.26026Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M71.3889%208.72607L71.3234%208.97328C71.736%209.26108%2071.9219%209.78079%2071.7886%2010.2671L70.5506%2014.4816C70.3584%2015.14%2069.8882%2015.6789%2069.2659%2015.9542L69.207%2016.2011H70.9696H71.1306H75.1868L75.7226%2014.2252H75.4709L75.3806%2014.4145C75.0447%2015.1206%2074.3372%2015.5699%2073.5614%2015.5699H71.8415L72.7572%2012.2623L73.4878%2012.2615C73.9807%2012.2612%2074.3512%2012.7153%2074.2568%2013.2036H74.5084L75.1094%2010.9679H74.8578C74.7122%2011.3814%2074.3253%2011.6578%2073.8904%2011.658L72.9243%2011.6592L73.5597%209.36341L75.3825%209.36202C75.9775%209.36146%2076.4229%209.9126%2076.304%2010.5015H76.5556L77.033%208.72607H71.3889Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M82.8655%2010.5324C82.6668%2011.2028%2082.0564%2011.6627%2081.3632%2011.6627L80.3076%2011.6636L80.9466%209.36726L82.0055%209.3667C82.6067%209.36642%2083.0379%209.9512%2082.8655%2010.5324ZM82.7978%208.72998H78.7711L78.7053%208.97691C79.0919%209.24636%2079.2791%209.71935%2079.1921%2010.1779L77.9311%2014.4846C77.739%2015.1431%2077.269%2015.682%2076.6465%2015.9573L76.5879%2016.2048H79.9164L79.9822%2015.9573C79.5524%2015.5922%2079.3754%2015.006%2079.5296%2014.4607L80.14%2012.2662H80.3944C80.7787%2012.2665%2081.1014%2012.5584%2081.1438%2012.9444C81.1578%2013.069%2081.3505%2014.5947%2081.5044%2015.1195C81.7059%2015.8052%2081.9705%2016.205%2082.5729%2016.205H84.0788L84.1375%2015.9578L83.9219%2015.8288C83.4966%2015.5738%2083.1885%2015.1773%2083.0508%2014.6531C82.9203%2014.1585%2082.677%2013.2372%2082.5578%2012.7495C82.4961%2012.4981%2082.1866%2012.2654%2081.8667%2012.2654L82.3741%2012.2651C83.284%2012.2645%2084.0827%2011.6525%2084.328%2010.7671C84.611%209.74382%2083.8495%208.72998%2082.7978%208.72998Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M60.6842%209.10931C60.576%209.10931%2060.3431%209.03478%2059.9858%208.88463C59.6281%208.73447%2059.2669%208.65967%2058.9027%208.65967C58.1467%208.65967%2057.5157%208.90687%2056.9997%209.4352C56.5703%209.87483%2056.3795%2010.3628%2056.3795%2010.7852C56.3795%2011.2349%2056.6399%2011.7635%2057.1616%2012.1909C57.6542%2012.5949%2058.1668%2012.982%2058.68%2013.3771C59.2196%2013.8134%2059.4897%2014.2158%2059.4897%2014.5431C59.4897%2015.2616%2059.0269%2015.6481%2058.0688%2015.6481C57.0953%2015.6481%2056.4221%2014.9276%2056.2063%2013.5782H55.9431L55.1777%2016.2045H55.4203C55.7366%2015.9807%2055.9615%2015.8366%2056.4202%2015.8366C56.858%2015.8366%2057.3257%2016.3558%2058.3229%2016.3558C59.1191%2016.3558%2059.7493%2016.189%2060.2892%2015.6434C60.7481%2015.1668%2060.9775%2014.4994%2060.9775%2013.9538C60.9775%2013.4494%2060.6644%2012.8613%2060.1174%2012.4375C59.648%2012.0741%2059.1453%2011.7496%2058.6596%2011.3948C58.1332%2010.9993%2057.87%2010.6637%2057.87%2010.2956C57.87%2010.0906%2057.9713%209.88651%2058.174%209.68213C58.43%209.42325%2058.773%209.36596%2059.232%209.36596C60.1529%209.36596%2060.7974%209.88429%2060.8516%2010.9746H61.0945L61.7368%208.65967H61.4939C61.2373%208.95971%2060.9675%209.10931%2060.6842%209.10931Z'%20fill='%23006747'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M89.1717%209.36569C90.0926%209.36569%2090.7374%209.88401%2090.7914%2010.9743H91.0345L91.6765%208.65967H91.4334C91.1771%208.95915%2090.9075%209.10903%2090.6237%209.10903C90.5158%209.10903%2090.2829%209.03423%2089.9252%208.88435C89.5676%208.73447%2089.2067%208.65967%2088.8422%208.65967C88.0864%208.65967%2087.4554%208.90687%2086.9395%209.43493C86.51%209.87455%2086.3192%2010.3628%2086.3192%2010.785C86.3192%2011.2351%2086.5796%2011.7629%2087.1014%2012.1909C87.5939%2012.5949%2088.1065%2012.9817%2088.6197%2013.3768C89.159%2013.8134%2089.4294%2014.2158%2089.4294%2014.5428C89.4294%2015.2613%2088.9666%2015.6478%2088.0085%2015.6478C87.035%2015.6478%2086.3619%2014.9274%2086.1458%2013.5782H85.8826L85.1172%2016.2045H85.3603C85.6763%2015.9807%2085.9013%2015.8366%2086.3597%2015.8366C86.7977%2015.8366%2087.2652%2016.3558%2088.2626%2016.3558C89.0588%2016.3558%2089.689%2016.1884%2090.2289%2015.6434C90.6878%2015.1662%2090.9172%2014.4991%2090.9172%2013.9538C90.9172%2013.4494%2090.6041%2012.8613%2090.0574%2012.4375C89.5877%2012.0738%2089.0853%2011.7493%2088.5996%2011.3945C88.0729%2010.9993%2087.8097%2010.6632%2087.8097%2010.295C87.8097%2010.0909%2087.911%209.88623%2088.1134%209.68185C88.3697%209.42297%2088.7128%209.36569%2089.1717%209.36569Z'%20fill='%23006747'/%3e%3c/svg%3e", H = [{
309
309
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
310
310
  tagline: "Featured groups+ experience",
311
- headline: /* @__PURE__ */ h(x, {
311
+ headline: /* @__PURE__ */ h(D, {
312
312
  children: ["Welcome to ", /* @__PURE__ */ s("br", {}), " Featured Groups +"]
313
313
  })
314
314
  }, {
@@ -344,7 +344,7 @@ const $2 = /* @__PURE__ */ c("div")({
344
344
  sdk: a
345
345
  }) => {
346
346
  var r, d, l, C, u, p, f;
347
- const E = m(i.friends.getStore()), [S, D] = _(void 0), L = y(() => {
347
+ const E = m(i.friends.getStore()), [S, x] = _(void 0), L = y(() => {
348
348
  var T, R;
349
349
  const G = a.getInviter();
350
350
  return G ? (R = (T = E.data) == null ? void 0 : T.find(({
@@ -353,7 +353,7 @@ const $2 = /* @__PURE__ */ c("div")({
353
353
  }, [E.data, a]);
354
354
  return v(() => {
355
355
  const T = n.$store.subscribe((R) => {
356
- R && D(R.data);
356
+ R && x(R.data);
357
357
  });
358
358
  return () => {
359
359
  T();
@@ -412,9 +412,9 @@ const $2 = /* @__PURE__ */ c("div")({
412
412
  }, [t]);
413
413
  const {
414
414
  loading: S,
415
- throttled: D
415
+ throttled: x
416
416
  } = g2(f);
417
- return C && p && l && o.current && !D ? /* @__PURE__ */ s(j, {
417
+ return C && p && l && o.current && !x ? /* @__PURE__ */ s(j, {
418
418
  container: o,
419
419
  useContainer: !1,
420
420
  children: /* @__PURE__ */ s(R0, {
@@ -426,7 +426,7 @@ const $2 = /* @__PURE__ */ c("div")({
426
426
  loading: S,
427
427
  sdk: n
428
428
  })
429
- }) : /* @__PURE__ */ h(x, {
429
+ }) : /* @__PURE__ */ h(D, {
430
430
  children: [/* @__PURE__ */ s(q, {
431
431
  ref: d,
432
432
  style: {
@@ -465,11 +465,11 @@ const $2 = /* @__PURE__ */ c("div")({
465
465
  name: "InnerContainer",
466
466
  class: "i1qa3p7a",
467
467
  propsAsIs: !1
468
- }), w0 = () => o2, x0 = /* @__PURE__ */ c(w0())({
468
+ }), w0 = () => o2, D0 = /* @__PURE__ */ c(w0())({
469
469
  name: "HiddenContainer",
470
470
  class: "hrthymv",
471
471
  propsAsIs: !0
472
- }), D0 = /* @__PURE__ */ c("div")({
472
+ }), x0 = /* @__PURE__ */ c("div")({
473
473
  name: "NotificationRefreshing",
474
474
  class: "n13rok4i",
475
475
  propsAsIs: !1
@@ -500,8 +500,8 @@ const $2 = /* @__PURE__ */ c("div")({
500
500
  const {
501
501
  sdk: r
502
502
  } = U(), [d, l, C] = B0(e.id);
503
- return e.type === w.QUESTION ? /* @__PURE__ */ h(x, {
504
- children: [/* @__PURE__ */ s(x0, {
503
+ return e.type === w.QUESTION ? /* @__PURE__ */ h(D, {
504
+ children: [/* @__PURE__ */ s(D0, {
505
505
  ref: d,
506
506
  children: /* @__PURE__ */ s(M, {
507
507
  ...e
@@ -519,7 +519,7 @@ const $2 = /* @__PURE__ */ c("div")({
519
519
  ...e,
520
520
  controlVideo: r == null ? void 0 : r.controlVideoPlayer
521
521
  })
522
- }), /* @__PURE__ */ s(D0, {}, e.id)]
522
+ }), /* @__PURE__ */ s(x0, {}, e.id)]
523
523
  })]
524
524
  }) : e.type === w.QUESTION_RESOLVED && (a = (o = e.data) == null ? void 0 : o.question) != null && a.predictionResult ? /* @__PURE__ */ s(S2, {
525
525
  style: {
@@ -602,7 +602,7 @@ const $2 = /* @__PURE__ */ c("div")({
602
602
  }));
603
603
  }, [p]), v(() => {
604
604
  p || u(null);
605
- }, [p]), /* @__PURE__ */ h(x, {
605
+ }, [p]), /* @__PURE__ */ h(D, {
606
606
  children: [!C && p && /* @__PURE__ */ s(V0, {
607
607
  headerNode: e,
608
608
  appNode: a,
@@ -1,12 +1,12 @@
1
- import { s, k as u, Z as L, _ as O, $ as R, G as B, a0 as P, W as Q, d as U, a as V, e as F, N as k, u as W, b as G, Y, h as _ } from "./provider.js";
2
1
  import { jsxs as c, jsx as e } from "react/jsx-runtime";
3
- import { useState as y, useCallback as K, useMemo as E, useEffect as x } from "react";
4
- import { j as m, Q as A, k as Z, S as H } from "./useStreamLayerApp2.js";
2
+ import { useState as y, useCallback as L, useMemo as E, useEffect as x } from "react";
3
+ import { s, k as u, D as O, A as R, x as B, q as P, r as Q, y as U, g as V, f as F, e as W, N as k, u as G, d as K, c as Y, h as _ } from "./provider.js";
4
+ import { Q as m, b as A, c as H, S as J } from "./useStreamLayerApp2.js";
5
5
  const $ = /* @__PURE__ */ s("div")({
6
6
  name: "Media",
7
7
  class: "m1bcvojl",
8
8
  propsAsIs: !1
9
- }), J = () => $, X = /* @__PURE__ */ s(J())({
9
+ }), X = () => $, Z = /* @__PURE__ */ s(X())({
10
10
  name: "MediaImgBottom",
11
11
  class: "m58gin0",
12
12
  propsAsIs: !0
@@ -35,7 +35,7 @@ const $ = /* @__PURE__ */ s("div")({
35
35
  [m.NONE]: N,
36
36
  [m.ROUNDED]: ne,
37
37
  [m.CENTERED]: ie,
38
- [m.TRANSPARENT]: X
38
+ [m.TRANSPARENT]: Z
39
39
  }, b = ({
40
40
  src: t,
41
41
  imageMode: i = m.UNSET,
@@ -100,7 +100,7 @@ const $ = /* @__PURE__ */ s("div")({
100
100
  return /* @__PURE__ */ c($e, { children: [
101
101
  d && /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(he, { children: d }) }),
102
102
  /* @__PURE__ */ e(
103
- L,
103
+ O,
104
104
  {
105
105
  image: t,
106
106
  name: (l = i == null ? void 0 : i.meta) == null ? void 0 : l.accountName,
@@ -109,22 +109,22 @@ const $ = /* @__PURE__ */ s("div")({
109
109
  createdTweet: i == null ? void 0 : i.date
110
110
  }
111
111
  ),
112
- /* @__PURE__ */ e(Ae, { children: O(n) })
112
+ /* @__PURE__ */ e(Ae, { children: R(n) })
113
113
  ] });
114
114
  }, fe = ({ title: t, questionType: i, questionTypeData: o }) => /* @__PURE__ */ c(M, { children: [
115
115
  /* @__PURE__ */ e(
116
- R,
116
+ B,
117
117
  {
118
118
  questionTypeData: o,
119
119
  questionType: i,
120
- questionStatus: Z.UNSET
120
+ questionStatus: H.UNSET
121
121
  }
122
122
  ),
123
123
  t && /* @__PURE__ */ e(pe, { children: t })
124
124
  ] }), ge = ({ tweet: t }) => t ? /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(ye, { ...t, controlVideo: () => {
125
125
  } }) }) : null, Te = ({ action: t, questionType: i, inApp: o, insight: a, tweet: n }) => {
126
126
  var d;
127
- const l = B[i], r = P[i];
127
+ const l = P[i], r = Q[i];
128
128
  if (!l || !o || !o.notification)
129
129
  return null;
130
130
  const { title: p, image: I, imageMode: v } = o.notification;
@@ -154,7 +154,7 @@ const $ = /* @__PURE__ */ s("div")({
154
154
  name: "TitleIcon",
155
155
  class: "t16zzzei",
156
156
  propsAsIs: !0
157
- }), we = () => Q, qe = /* @__PURE__ */ s(we())({
157
+ }), we = () => U, qe = /* @__PURE__ */ s(we())({
158
158
  name: "Close",
159
159
  class: "c1sur0q2",
160
160
  propsAsIs: !0
@@ -258,7 +258,7 @@ const $ = /* @__PURE__ */ s("div")({
258
258
  var I, v;
259
259
  d((v = (I = p == null ? void 0 : p[0]) == null ? void 0 : I.contentRect) == null ? void 0 : v.width);
260
260
  });
261
- })), r = K((p) => {
261
+ })), r = L((p) => {
262
262
  p || l.disconnect(), l.observe(p);
263
263
  }, [l]);
264
264
  return E(() => () => {
@@ -297,31 +297,31 @@ const $ = /* @__PURE__ */ s("div")({
297
297
  name: "Line1",
298
298
  class: "le78kvg",
299
299
  propsAsIs: !0
300
- }), Ye = () => g, _e = /* @__PURE__ */ s(Ye())({
300
+ }), Ke = () => g, Ye = /* @__PURE__ */ s(Ke())({
301
301
  name: "Line2",
302
302
  class: "l1o7966d",
303
303
  propsAsIs: !0
304
- }), Ke = () => g, Ze = /* @__PURE__ */ s(Ke())({
304
+ }), _e = () => g, He = /* @__PURE__ */ s(_e())({
305
305
  name: "Line3",
306
306
  class: "lu9lyxq",
307
307
  propsAsIs: !0
308
- }), He = () => /* @__PURE__ */ c(Fe, {
308
+ }), Je = () => /* @__PURE__ */ c(Fe, {
309
309
  children: [/* @__PURE__ */ e(Ge, {
310
310
  children: /* @__PURE__ */ e("div", {})
311
- }), /* @__PURE__ */ e(_e, {
311
+ }), /* @__PURE__ */ e(Ye, {
312
312
  children: /* @__PURE__ */ e("div", {})
313
- }), /* @__PURE__ */ e(Ze, {
313
+ }), /* @__PURE__ */ e(He, {
314
314
  children: /* @__PURE__ */ e("div", {})
315
315
  })]
316
- }), Je = /* @__PURE__ */ s("div")({
316
+ }), Xe = /* @__PURE__ */ s("div")({
317
317
  name: "Container",
318
318
  class: "c10jy6zf",
319
319
  propsAsIs: !1
320
- }), Xe = () => u, es = /* @__PURE__ */ s(Xe())({
320
+ }), Ze = () => u, es = /* @__PURE__ */ s(Ze())({
321
321
  name: "CheckIcon",
322
322
  class: "c1c7scay",
323
323
  propsAsIs: !0
324
- }), ss = () => /* @__PURE__ */ c(Je, {
324
+ }), ss = () => /* @__PURE__ */ c(Xe, {
325
325
  children: [/* @__PURE__ */ e(es, {
326
326
  name: "icon-check"
327
327
  }), " Prediction results are in!"]
@@ -391,7 +391,7 @@ const $ = /* @__PURE__ */ s("div")({
391
391
  points: t
392
392
  }) => /* @__PURE__ */ c(ps, {
393
393
  children: [/* @__PURE__ */ c(ms, {
394
- children: ["You won ", /* @__PURE__ */ e(U, {
394
+ children: ["You won ", /* @__PURE__ */ e(V, {
395
395
  delay: 0.5,
396
396
  prefix: "+",
397
397
  suffix: " points",
@@ -429,7 +429,7 @@ const $ = /* @__PURE__ */ s("div")({
429
429
  return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(ss, {}) }) });
430
430
  let p = "pending";
431
431
  return (r === 3 || r === 4) && (p = n ? "correct" : "incorrect"), /* @__PURE__ */ e(w, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ c(q, { children: [
432
- r !== 1 && /* @__PURE__ */ e(He, {}, r),
432
+ r !== 1 && /* @__PURE__ */ e(Je, {}, r),
433
433
  /* @__PURE__ */ c(Ve, { state: p, step: r, answer: (a == null ? void 0 : a.title) || "unknown", children: [
434
434
  r === 2 && /* @__PURE__ */ e(os, { title: l || "unknown" }),
435
435
  r === 3 && n && /* @__PURE__ */ e(ls, {}),
@@ -458,9 +458,9 @@ const $ = /* @__PURE__ */ s("div")({
458
458
  class: "n1i4h28u",
459
459
  propsAsIs: !1
460
460
  }), ys = (t) => /* @__PURE__ */ e($s, { children: /* @__PURE__ */ e(As, { ...t }) }), fs = ({ sdk: t }) => {
461
- const [i] = y(t.getNotificationsStore()), o = V(i), a = t.getFeature(H.GAMES), n = E(() => t.getActiveNotification(), [t, o]);
461
+ const [i] = y(t.getNotificationsStore()), o = F(i), a = t.getFeature(J.GAMES), n = E(() => t.getActiveNotification(), [t, o]);
462
462
  return x(() => {
463
- n && F.emit("notification", {
463
+ n && W.emit("notification", {
464
464
  action: "rendered",
465
465
  payload: {
466
466
  questionId: n.data.questionId,
@@ -476,7 +476,7 @@ const $ = /* @__PURE__ */ s("div")({
476
476
  }
477
477
  ) : null : n && n.type === k.ONBOARDING ? n.data.onboarding ? /* @__PURE__ */ e(je, { open: a == null ? void 0 : a.openFeature, close: n.close, ...n.data.onboarding }) : null : n && /* @__PURE__ */ e(Te, { ...n.data, action: n.action });
478
478
  }, bs = ({ theme: t }) => {
479
- const i = W(), o = G(), a = Y();
479
+ const i = G(), o = K(), a = Y();
480
480
  return i && (a.appNotification || a.onboardingNotification) ? a.app && !a.onboardingNotification ? null : /* @__PURE__ */ e("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ e(_, { customTheme: t ?? o.theme, themeMode: o.themeMode, children: /* @__PURE__ */ e(fs, { sdk: i }) }) }) : null;
481
481
  };
482
482
  export {