@streamlayer/react 1.9.7 → 1.10.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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as v, Fragment as po } from "react/jsx-runtime";
2
- import { useRef as F, useState as R, useCallback as Po, useEffect as M } from "react";
3
- import { e as P, s as n, h as ko, g as mo, i as D, Y as Lo, a as uo, L as Mo, u as Oo, j as _o, b as Bo, S as T, d as xo } from "./index2.js";
4
- import { N, a as vo, b as Ao, C as go, c as ho, P as L, d as S, A as Ro, e as Do, S as qo } from "./useStreamLayerApp2.js";
2
+ import { useRef as F, useState as R, useCallback as Mo, useEffect as L } from "react";
3
+ import { e as M, s as n, f as Po, g as mo, i as D, Y as ko, a as uo, L as Lo, u as Oo, j as _o, b as Bo, S as T, h as xo } from "./provider.js";
4
+ import { N, a as vo, b as Ao, C as go, c as ho, P as k, d as S, A as Ro, e as Do, S as qo } from "./useStreamLayerApp2.js";
5
5
  const wo = /* @__PURE__ */ n("div")({
6
6
  name: "Container",
7
7
  class: "c5b6wdg",
@@ -16,7 +16,7 @@ const wo = /* @__PURE__ */ n("div")({
16
16
  onAnimationEnd: c
17
17
  }) => /* @__PURE__ */ e(wo, {
18
18
  style: s,
19
- className: P(i, Vo, Ho(r), t && !l && Go(r), t && l && Wo(r)),
19
+ className: M(i, Vo, Ho(r), t && !l && Go(r), t && l && Wo(r)),
20
20
  onAnimationEnd: c,
21
21
  children: o
22
22
  }), Ko = /* @__PURE__ */ n("a")({
@@ -177,15 +177,15 @@ const wo = /* @__PURE__ */ n("div")({
177
177
  name: "CtaIcon",
178
178
  class: "ckq1frv",
179
179
  propsAsIs: !1
180
- }), Pe = /* @__PURE__ */ n("button")({
180
+ }), Me = /* @__PURE__ */ n("button")({
181
181
  name: "Button",
182
182
  class: "bis90pl",
183
183
  propsAsIs: !1
184
- }), ke = () => ko, Le = /* @__PURE__ */ n(ke())({
184
+ }), Pe = () => Po, ke = /* @__PURE__ */ n(Pe())({
185
185
  name: "StyledChevronRight",
186
186
  class: "s9mjmz3",
187
187
  propsAsIs: !0
188
- }), Me = /* @__PURE__ */ n("div")({
188
+ }), Le = /* @__PURE__ */ n("div")({
189
189
  name: "Logo",
190
190
  class: "l1cf50a7",
191
191
  propsAsIs: !1
@@ -206,18 +206,18 @@ const wo = /* @__PURE__ */ n("div")({
206
206
  return /* @__PURE__ */ e(ue, { notification: o, open: s });
207
207
  const { title: r, body: c, image: m, promotion: A } = o, { sponsorLogo: a, sponsorLogoMode: g, imagePosition: u, ctaButton: p } = A;
208
208
  return /* @__PURE__ */ e(z, { className: "SL_Rich_Notification", direction: l, hiding: t, children: /* @__PURE__ */ v(Ae, { onClick: s, children: [
209
- g !== Ao.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e("img", { src: a, alt: r }) }),
209
+ g !== Ao.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e("img", { src: a, alt: r }) }),
210
210
  /* @__PURE__ */ v(ve, { children: [
211
211
  /* @__PURE__ */ e(_e, { src: m, imagePosition: u }),
212
212
  /* @__PURE__ */ v(ge, { children: [
213
213
  r && /* @__PURE__ */ e(he, { children: r }),
214
214
  c && /* @__PURE__ */ e(Ie, { children: c })
215
215
  ] }),
216
- /* @__PURE__ */ v(Pe, { name: "promo-button", style: { color: p == null ? void 0 : p.textColor, backgroundColor: p == null ? void 0 : p.color }, children: [
216
+ /* @__PURE__ */ v(Me, { name: "promo-button", style: { color: p == null ? void 0 : p.textColor, backgroundColor: p == null ? void 0 : p.color }, children: [
217
217
  (p == null ? void 0 : p.ctaIcon) && (p == null ? void 0 : p.ctaIconMode) === go.CTA_ICON_TRANSPARENT && /* @__PURE__ */ e(Ee, { src: p == null ? void 0 : p.ctaIcon, alt: "cta-icon" }),
218
218
  (p == null ? void 0 : p.label) || "Open"
219
219
  ] }),
220
- /* @__PURE__ */ e(Le, { name: "chevronRight" })
220
+ /* @__PURE__ */ e(ke, { name: "chevronRight" })
221
221
  ] })
222
222
  ] }) });
223
223
  }, xe = /* @__PURE__ */ n("div")({
@@ -359,12 +359,12 @@ const wo = /* @__PURE__ */ n("div")({
359
359
  skipAutoClose: r
360
360
  }) => {
361
361
  var c;
362
- const m = F(null), [A, a] = R(!1), [g, u] = R(0), [p, I] = R(0), [$, h] = R(0), y = F(), b = Po(() => {
362
+ const m = F(null), [A, a] = R(!1), [g, u] = R(0), [p, I] = R(0), [$, h] = R(0), y = F(), b = Mo(() => {
363
363
  u(0), I(0), h(0), a(!1), s == null || s({
364
364
  muted: !1
365
365
  });
366
366
  }, [s]);
367
- M(() => {
367
+ L(() => {
368
368
  if (l != null && l.url && m.current) {
369
369
  b();
370
370
  const f = Je(m.current, l.url, {
@@ -391,12 +391,12 @@ const wo = /* @__PURE__ */ n("div")({
391
391
  };
392
392
  }
393
393
  }, [l == null ? void 0 : l.url, s, b, i, o.type, t]);
394
- const O = ((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode === L.CENTER;
394
+ const O = ((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode === k.CENTER;
395
395
  return /* @__PURE__ */ v(yo, {
396
396
  className: "PromoOverlay",
397
397
  children: [/* @__PURE__ */ v(bo, {
398
398
  children: [/* @__PURE__ */ e(fo, {
399
- className: P(!O && No),
399
+ className: M(!O && No),
400
400
  children: /* @__PURE__ */ e(Co, {
401
401
  style: {
402
402
  transform: "scale(1.5)"
@@ -417,7 +417,7 @@ const wo = /* @__PURE__ */ n("div")({
417
417
  })]
418
418
  })]
419
419
  }), /* @__PURE__ */ e($o, {
420
- className: P(Xe, A && on, !A && en),
420
+ className: M(Xe, A && on, !A && en),
421
421
  children: /* @__PURE__ */ e(Ze, {
422
422
  ref: m
423
423
  })
@@ -436,30 +436,30 @@ const wo = /* @__PURE__ */ n("div")({
436
436
  onClose: Eo,
437
437
  markAsViewed: w,
438
438
  externalAd: so
439
- } = o, V = d.type === S.INGAME_IAB11_LBAR || d.type === S.INGAME_IAB11, j = ((s = d.sponsor) == null ? void 0 : s.logo) && d.logoMode === L.CENTER, to = !!((t = (i = d.banner) == null ? void 0 : i.video) != null && t.url), x = d.autoPlayVideo === Ro.ENABLED;
440
- if (M(() => {
439
+ } = o, V = d.type === S.INGAME_IAB11_LBAR || d.type === S.INGAME_IAB11, j = ((s = d.sponsor) == null ? void 0 : s.logo) && d.logoMode === k.CENTER, to = !!((t = (i = d.banner) == null ? void 0 : i.video) != null && t.url), x = d.autoPlayVideo === Ro.ENABLED;
440
+ if (L(() => {
441
441
  E == null || E(to || x), no == null || no();
442
- }, []), M(() => {
442
+ }, []), L(() => {
443
443
  B && d.type && w && w();
444
- }, [B, d.type, w]), M(() => () => {
444
+ }, [B, d.type, w]), L(() => () => {
445
445
  _ == null || _({ muted: !1 });
446
446
  }, [_]), so)
447
447
  return /* @__PURE__ */ e(nn, { ...o, externalAd: so });
448
- let k = (l = d.banner) == null ? void 0 : l.url;
449
- k && k.indexOf("http") !== 0 && (k = `https://${k}`);
448
+ let P = (l = d.banner) == null ? void 0 : l.url;
449
+ P && P.indexOf("http") !== 0 && (P = `https://${P}`);
450
450
  let U = !0;
451
451
  return to && (!To || !x ? U = !0 : U = !1), /* @__PURE__ */ v(yo, { className: "PromoOverlay", children: [
452
452
  /* @__PURE__ */ v(bo, { children: [
453
- /* @__PURE__ */ v(fo, { className: P(!j && No), children: [
454
- ((r = d.sponsor) == null ? void 0 : r.logo) && d.logoMode === L.LEFT && /* @__PURE__ */ e(ao, { className: "PromoSponsorLogo", src: (c = d.sponsor) == null ? void 0 : c.logo, alt: "promo" }),
453
+ /* @__PURE__ */ v(fo, { className: M(!j && No), children: [
454
+ ((r = d.sponsor) == null ? void 0 : r.logo) && d.logoMode === k.LEFT && /* @__PURE__ */ e(ao, { className: "PromoSponsorLogo", src: (c = d.sponsor) == null ? void 0 : c.logo, alt: "promo" }),
455
455
  /* @__PURE__ */ v(
456
456
  Ve,
457
457
  {
458
458
  style: {
459
- paddingLeft: (m = d.sponsor) != null && m.logo && d.logoMode === L.LEFT ? "0px" : "8px"
459
+ paddingLeft: (m = d.sponsor) != null && m.logo && d.logoMode === k.LEFT ? "0px" : "8px"
460
460
  },
461
461
  children: [
462
- ((A = d.sponsor) == null ? void 0 : A.logo) && d.logoMode === L.LEFT && /* @__PURE__ */ e(Re, { children: (a = d.sponsor) == null ? void 0 : a.name }),
462
+ ((A = d.sponsor) == null ? void 0 : A.logo) && d.logoMode === k.LEFT && /* @__PURE__ */ e(Re, { children: (a = d.sponsor) == null ? void 0 : a.name }),
463
463
  /* @__PURE__ */ v(je, { className: "SponsorText", children: [
464
464
  /* @__PURE__ */ e(Co, { children: "AD" }),
465
465
  /* @__PURE__ */ e(Ue, { children: "SPONSORED" })
@@ -482,7 +482,7 @@ const wo = /* @__PURE__ */ n("div")({
482
482
  /* @__PURE__ */ v($o, { children: [
483
483
  j && /* @__PURE__ */ e(ao, { className: qe, src: (p = d.sponsor) == null ? void 0 : p.logo, alt: "promo" }),
484
484
  /* @__PURE__ */ e(ro, { children: ($ = (I = d.banner) == null ? void 0 : I.video) != null && $.url ? /* @__PURE__ */ e(
485
- Lo,
485
+ ko,
486
486
  {
487
487
  source: (y = (h = d.banner) == null ? void 0 : h.video) == null ? void 0 : y.url,
488
488
  poster: (O = (b = d.banner) == null ? void 0 : b.video) == null ? void 0 : O.thumbnailUrl,
@@ -504,14 +504,14 @@ const wo = /* @__PURE__ */ n("div")({
504
504
  }
505
505
  ) : (f = d.banner) != null && f.imageUrl ? /* @__PURE__ */ e(De, { style: V ? { aspectRatio: "1/1" } : {}, src: (C = d.banner) == null ? void 0 : C.imageUrl, alt: "promo" }) : null }),
506
506
  !V && /* @__PURE__ */ v(ro, { children: [
507
- ((W = d.banner) == null ? void 0 : W.title) && /* @__PURE__ */ e(Ge, { className: P("AdvTitle", j && We), children: (H = d.banner) == null ? void 0 : H.title }),
507
+ ((W = d.banner) == null ? void 0 : W.title) && /* @__PURE__ */ e(Ge, { className: M("AdvTitle", j && We), children: (H = d.banner) == null ? void 0 : H.title }),
508
508
  ((K = d.banner) == null ? void 0 : K.body) && /* @__PURE__ */ e(we, { className: "AdvDescription", children: (Y = d.banner) == null ? void 0 : Y.body })
509
509
  ] })
510
510
  ] }),
511
511
  d.buttonType !== Do.NO_BUTTON && /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
512
512
  ze,
513
513
  {
514
- href: k,
514
+ href: P,
515
515
  style: {
516
516
  backgroundColor: ((Z = (J = d.banner) == null ? void 0 : J.ctaButton) == null ? void 0 : Z.color) || "#009dc4",
517
517
  color: ((X = (Q = d.banner) == null ? void 0 : Q.ctaButton) == null ? void 0 : X.textColor) || "#fff"
@@ -637,7 +637,7 @@ const wo = /* @__PURE__ */ n("div")({
637
637
  }) => {
638
638
  var u, p, I;
639
639
  const $ = F(null), h = uo(o.advertisement.$store);
640
- Mo($, {
640
+ Lo($, {
641
641
  enabled: !!h.data,
642
642
  event: "click",
643
643
  listener: cn
@@ -651,7 +651,7 @@ const wo = /* @__PURE__ */ n("div")({
651
651
  style: {
652
652
  height: y ? "auto" : "100%"
653
653
  },
654
- className: P("SL-AdvertisementUIWrap", m && "mobile-view", b && "SL-AdvertisementUIWrap--lower-third"),
654
+ className: M("SL-AdvertisementUIWrap", m && "mobile-view", b && "SL-AdvertisementUIWrap--lower-third"),
655
655
  children: /* @__PURE__ */ e(ln, {
656
656
  skipTypeCheck: t,
657
657
  sidebar: l,
@@ -682,7 +682,7 @@ const wo = /* @__PURE__ */ n("div")({
682
682
  notification: a
683
683
  }) => {
684
684
  const g = uo(o.featuresList.getStore());
685
- if (M(() => {
685
+ if (L(() => {
686
686
  if (i) {
687
687
  const p = document.createElement("script");
688
688
  p.async = !0, p.src = "https://imasdk.googleapis.com/js/sdkloader/ima3.js", document.body.appendChild(p);
@@ -731,7 +731,7 @@ const wo = /* @__PURE__ */ n("div")({
731
731
  }) => {
732
732
  const g = Oo(), u = _o(), p = Bo();
733
733
  return g ? a && !u.promotionExternalAd ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : !a && u.promotionExternalAd ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : s && !u.promotionSidebar ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : i && !u.promotionBanner ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : m && !u.promotionNotification ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : !i && !s && !m && !u.promotionOverlay ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : /* @__PURE__ */ v("div", { className: "StreamLayerSDK", children: [
734
- /* @__PURE__ */ e(xo, { customTheme: c ?? p, children: /* @__PURE__ */ e(
734
+ /* @__PURE__ */ e(xo, { customTheme: c ?? p.theme, themeMode: p.themeMode, children: /* @__PURE__ */ e(
735
735
  mn,
736
736
  {
737
737
  sdk: g,
package/lib/es/auth.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useEffect as o } from "react";
2
- import { u } from "./index2.js";
2
+ import { u } from "./provider.js";
3
3
  const f = ({ token: t, schema: i }) => {
4
4
  const r = u();
5
5
  return o(() => {
@@ -1,4 +1,4 @@
1
- import { P as f } from "./index2.js";
1
+ import { P as f } from "./provider.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/lib/es/index.js CHANGED
@@ -1,12 +1,16 @@
1
- import { a0 as S, S as s, a3 as o, d as y, u as L, j as i } from "./index2.js";
1
+ import { a0 as S, S as o, a7 as i, h as s, u as y, b as L, j as p } from "./provider.js";
2
2
  import "./useStreamLayerApp2.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
+ import { StreamLayerSDKNotification as u, StreamLayerSDKNotificationUI as D } from "./notification.js";
5
6
  export {
6
7
  S as StreamLayerProvider,
7
- s as StreamLayerSDKEvent,
8
- o as StreamLayerSDKReact,
9
- y as StreamLayerThemeProvider,
10
- L as useStreamLayer,
11
- i as useStreamLayerUI
8
+ o as StreamLayerSDKEvent,
9
+ u as StreamLayerSDKNotification,
10
+ D as StreamLayerSDKNotificationUI,
11
+ i as StreamLayerSDKReact,
12
+ s as StreamLayerThemeProvider,
13
+ y as useStreamLayer,
14
+ L as useStreamLayerTheme,
15
+ p as useStreamLayerUI
12
16
  };
package/lib/es/insight.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as u, jsxs as c } from "react/jsx-runtime";
2
- import { useRef as l, useEffect as p } from "react";
3
- import { a as m, s as h, z as f, u as S, b as I, d as g, S as v } from "./index2.js";
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";
4
4
  import { S as y } from "./useStreamLayerApp2.js";
5
- const Q = () => f, b = /* @__PURE__ */ h(Q())({
5
+ const Q = () => f, b = /* @__PURE__ */ p(Q())({
6
6
  name: "QuestionWrap",
7
7
  class: "q10hhsxv",
8
8
  propsAsIs: !0
@@ -10,24 +10,24 @@ const Q = () => f, b = /* @__PURE__ */ h(Q())({
10
10
  gamification: e,
11
11
  persistent: r,
12
12
  skipAutoClose: n,
13
- hideHeader: a,
13
+ hideHeader: o,
14
14
  insightId: s
15
15
  }) => {
16
16
  const t = l(""), d = m(e.openedQuestion.$store);
17
- return p(() => s ? (!r || e.isOpenedQuestion(s) || (t.current = s, e.getFeedItem(s).then((i) => {
18
- var o;
19
- t.current === s && ((o = i == null ? void 0 : i.attributes) == null ? void 0 : o.attributes.case) === "insight" && e.openQuestion(s, i);
17
+ return h(() => s ? (!r || e.isOpenedQuestion(s) || (t.current = s, e.getFeedItem(s).then((i) => {
18
+ var a;
19
+ t.current === s && ((a = i == null ? void 0 : i.attributes) == null ? void 0 : a.attributes.case) === "insight" && e.openQuestion(s, i);
20
20
  })), () => {
21
21
  t.current = "";
22
22
  }) : (e.activeQuestionId.subscribe(({
23
23
  data: i
24
24
  }) => {
25
- var o;
26
- i && ((o = i.feedItem) == null ? void 0 : o.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 = "");
25
+ var a;
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
28
  }), [e, r, s]), d ? /* @__PURE__ */ u(b, {
29
29
  skipAutoClose: n,
30
- hideHeader: a,
30
+ hideHeader: o,
31
31
  gamification: e,
32
32
  hideSponsor: !0
33
33
  }) : null;
@@ -35,14 +35,14 @@ const Q = () => f, b = /* @__PURE__ */ h(Q())({
35
35
  sdk: e,
36
36
  persistent: r,
37
37
  skipAutoClose: n,
38
- insightId: a,
38
+ insightId: o,
39
39
  hideHeader: s
40
40
  }) => {
41
41
  if (!m(e.featuresList.getStore()))
42
42
  return null;
43
43
  const t = e.getFeature(y.GAMES);
44
44
  return t ? /* @__PURE__ */ u(k, {
45
- insightId: a,
45
+ insightId: o,
46
46
  persistent: r,
47
47
  hideHeader: s,
48
48
  gamification: t,
@@ -52,15 +52,15 @@ const Q = () => f, b = /* @__PURE__ */ h(Q())({
52
52
  event: e,
53
53
  theme: r,
54
54
  hideHeader: n,
55
- skipAutoClose: a,
55
+ skipAutoClose: o,
56
56
  persistent: s
57
57
  }) => {
58
58
  const t = S(), d = I();
59
59
  return t ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: [
60
- /* @__PURE__ */ u(g, { customTheme: r ?? d, children: /* @__PURE__ */ u(
60
+ /* @__PURE__ */ u(g, { customTheme: r ?? d.theme, themeMode: d.themeMode, children: /* @__PURE__ */ u(
61
61
  A,
62
62
  {
63
- skipAutoClose: a,
63
+ skipAutoClose: o,
64
64
  sdk: t,
65
65
  hideHeader: n,
66
66
  persistent: s
package/lib/es/masters.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import { M as o, a as s } from "./masters2.js";
3
3
  import "react";
4
- import "./index2.js";
4
+ import "./provider.js";
5
5
  export {
6
6
  o as MastersStreamLayerProvider,
7
7
  s as MastersStreamLayerSDKReact
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as L, Fragment as V } from "react/jsx-runtime";
2
- import { s as u, k as n2, a as v, N as k, l as G, F as C2, m as o2, n as v2, p as h2, o as m2, q as g2, r as f2, M as L2, T as S2, t as b2, C as y2, v as k2, O as r2, w as M, x as I2, y as N2, A as i2, B as P, I as a2, h as W, D as A2, E as w2, G as E2, H as $2, i as T2, J as H, K as Y, Q as V2, R as x2, U as R2, e as F2, V as T, W as j, L as _, X as H2, Z as D2, _ as M2, f as O, $ as _2, a0 as O2, a1 as U2, a2 as z2 } from "./index2.js";
2
+ import { s as u, k as n2, a as v, A as k, l as G, F as C2, m as o2, n as v2, p as h2, o as m2, N as g2, q as f2, M as L2, T as S2, r as b2, C as y2, t as k2, O as r2, v as M, w as I2, x as N2, y as i2, B as P, I as a2, f as W, D as A2, E as w2, G as E2, H as $2, i as T2, J as D, K as Y, Q as V2, R as x2, U as R2, e as F2, V as T, W as j, L as _, X as D2, Z as H2, _ as M2, c as O, $ as _2, a0 as O2, a1 as U2, a2 as z2 } from "./provider.js";
3
3
  import { useRef as E, useState as I, useEffect as b, createContext as G2, useContext as l2, useTransition as B2, lazy as P2, useMemo as F, Suspense as W2, forwardRef as Z2, useLayoutEffect as Q2, useCallback as R, Component as q2 } from "react";
4
4
  import { Q as Y2, S as $ } from "./useStreamLayerApp2.js";
5
5
  const j2 = /* @__PURE__ */ u("div")({
@@ -14,7 +14,7 @@ const j2 = /* @__PURE__ */ u("div")({
14
14
  name: "SDKContentContainer",
15
15
  class: "sw7pkvp",
16
16
  propsAsIs: !1
17
- }), X2 = () => d2, D = /* @__PURE__ */ u(X2())({
17
+ }), X2 = () => d2, H = /* @__PURE__ */ u(X2())({
18
18
  name: "SDKWhiteContainer",
19
19
  class: "s14gkn7u",
20
20
  propsAsIs: !0
@@ -22,11 +22,11 @@ const j2 = /* @__PURE__ */ u("div")({
22
22
  name: "TabsContainer",
23
23
  class: "t1yxstm9",
24
24
  propsAsIs: !1
25
- }), e0 = () => D, s0 = /* @__PURE__ */ u(e0())({
25
+ }), e0 = () => H, s0 = /* @__PURE__ */ u(e0())({
26
26
  name: "LeaderboardContainer",
27
27
  class: "ldpty1s",
28
28
  propsAsIs: !0
29
- }), t0 = () => D, n0 = /* @__PURE__ */ u(t0())({
29
+ }), t0 = () => H, n0 = /* @__PURE__ */ u(t0())({
30
30
  name: "TabsNavContainer",
31
31
  class: "t136a59y",
32
32
  propsAsIs: !0
@@ -250,7 +250,7 @@ const j2 = /* @__PURE__ */ u("div")({
250
250
  }
251
251
  ),
252
252
  c === M.HOME && /* @__PURE__ */ L(V, { children: [
253
- /* @__PURE__ */ n(D, { style: { paddingTop: "8px" }, children: /* @__PURE__ */ n(o0, { children: /* @__PURE__ */ n(g0, { userSummary: e.userSummary }) }) }),
253
+ /* @__PURE__ */ n(H, { style: { paddingTop: "8px" }, children: /* @__PURE__ */ n(o0, { children: /* @__PURE__ */ n(g0, { userSummary: e.userSummary }) }) }),
254
254
  /* @__PURE__ */ n(d2, { style: { flex: 1 }, children: /* @__PURE__ */ n(m0, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
255
255
  ] }),
256
256
  c === M.LEADERBOARD && /* @__PURE__ */ n(s0, { children: /* @__PURE__ */ n(h0, { scrollStore: t, scrollNode: o, gamification: e }) })
@@ -314,7 +314,7 @@ const j2 = /* @__PURE__ */ u("div")({
314
314
  children: [/* @__PURE__ */ n(o2, {
315
315
  label: "Friend's Rank",
316
316
  close: e.closeUser
317
- }), /* @__PURE__ */ n(D, {
317
+ }), /* @__PURE__ */ n(H, {
318
318
  children: /* @__PURE__ */ n(r2, {
319
319
  ...i,
320
320
  successRate: b0(i)
@@ -388,15 +388,15 @@ const j2 = /* @__PURE__ */ u("div")({
388
388
  name: "Navigation",
389
389
  class: "n19lpak2",
390
390
  propsAsIs: !1
391
- }), F0 = () => A2, H0 = /* @__PURE__ */ u(F0())({
391
+ }), F0 = () => A2, D0 = /* @__PURE__ */ u(F0())({
392
392
  name: "NavigationItems",
393
393
  class: "n1w473c2",
394
394
  propsAsIs: !0
395
- }), D0 = Z2(
395
+ }), H0 = Z2(
396
396
  ({ activeOverlay: e, setActiveOverlay: s, scrollToTop: t, sdkReady: o, className: r, responsiveStore: i }, a) => {
397
397
  const { screen: p } = v(i, { keys: ["screen"] });
398
398
  return /* @__PURE__ */ L(R0, { className: r, children: [
399
- /* @__PURE__ */ L(H0, { children: [
399
+ /* @__PURE__ */ L(D0, { children: [
400
400
  /* @__PURE__ */ n(
401
401
  E0,
402
402
  {
@@ -674,7 +674,7 @@ const j2 = /* @__PURE__ */ u("div")({
674
674
  }), {
675
675
  sdk: p
676
676
  } = Q(), [c, d, l] = i1(s.id);
677
- return s.type === H.QUESTION ? /* @__PURE__ */ L(V, {
677
+ return s.type === D.QUESTION ? /* @__PURE__ */ L(V, {
678
678
  children: [/* @__PURE__ */ n(t1, {
679
679
  ref: c,
680
680
  children: /* @__PURE__ */ n(Y, {
@@ -695,7 +695,7 @@ const j2 = /* @__PURE__ */ u("div")({
695
695
  })
696
696
  }), /* @__PURE__ */ n(n1, {}, s.id)]
697
697
  })]
698
- }) : s.type === H.QUESTION_RESOLVED && (i = (r = s.data) == null ? void 0 : r.question) != null && i.predictionResult ? /* @__PURE__ */ n(V2, {
698
+ }) : s.type === D.QUESTION_RESOLVED && (i = (r = s.data) == null ? void 0 : r.question) != null && i.predictionResult ? /* @__PURE__ */ n(V2, {
699
699
  style: {
700
700
  height: s.hiding ? 0 : d
701
701
  },
@@ -704,7 +704,7 @@ const j2 = /* @__PURE__ */ u("div")({
704
704
  hiding: s.hiding,
705
705
  ...s.data.question,
706
706
  mastersApp: !0
707
- }) : s.type === H.ONBOARDING ? /* @__PURE__ */ n(X0, {
707
+ }) : s.type === D.ONBOARDING ? /* @__PURE__ */ n(X0, {
708
708
  style: {
709
709
  height: s.hiding ? 0 : d
710
710
  },
@@ -740,7 +740,7 @@ const j2 = /* @__PURE__ */ u("div")({
740
740
  }, [C, i, s]);
741
741
  const m = i.get().sdkInDesktopView ? t : o;
742
742
  return !e || !m.current ? null : x2.createPortal(/* @__PURE__ */ n(r1, {
743
- title: e.type === H.QUESTION_RESOLVED ? "Prediction result" : `New ${((c = R2[(p = e.data) == null ? void 0 : p.questionType]) == null ? void 0 : c.label) || "notification"}`,
743
+ title: e.type === D.QUESTION_RESOLVED ? "Prediction result" : `New ${((c = R2[(p = e.data) == null ? void 0 : p.questionType]) == null ? void 0 : c.label) || "notification"}`,
744
744
  onClick: () => {
745
745
  var S;
746
746
  i.get().sdkInDesktopView ? (S = r.current) == null || S.scrollTo({
@@ -965,10 +965,10 @@ const h1 = "m1ojpy2l", m1 = ({ children: e, style: s }) => /* @__PURE__ */ n("di
965
965
  }) : null;
966
966
  }, L1 = ({ sdk: e, overlays: s, children: t }) => {
967
967
  const o = E(null), r = E(null), [i] = u1(o), [a, p] = i0(o, i), { sdkEnabled: c, sdkReady: d, activeOverlay: l, activateAndLoadOverlay: C, activateEventWithId: m, deactivate: S, isLogged: h } = p1(e);
968
- _(o, { enabled: c, event: "click", listener: H2 }), _(a, {
968
+ _(o, { enabled: c, event: "click", listener: D2 }), _(a, {
969
969
  enabled: c,
970
970
  event: "scrollend",
971
- listener: D2,
971
+ listener: H2,
972
972
  useDomNode: !0
973
973
  }), _(a, {
974
974
  enabled: c,
@@ -981,7 +981,7 @@ const h1 = "m1ojpy2l", m1 = ({ children: e, style: s }) => /* @__PURE__ */ n("di
981
981
  import("./gamification-feature2.js");
982
982
  }, []), /* @__PURE__ */ n(c2.Provider, { value: f, children: /* @__PURE__ */ L(j2, { ref: o, children: [
983
983
  c && /* @__PURE__ */ n(
984
- D0,
984
+ H0,
985
985
  {
986
986
  ref: r,
987
987
  sdkReady: d,