@streamlayer/react-ui 1.20.0 → 1.22.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 (58) hide show
  1. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.d.ts +1 -0
  2. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +11 -11
  3. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +0 -1
  4. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +18 -22
  5. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.d.ts +0 -1
  6. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +7 -7
  7. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +1 -2
  8. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +16 -19
  9. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.d.ts +0 -1
  10. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +25 -24
  11. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
  12. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +14 -9
  13. package/lib/app/masters/BetPack/BetPackContent/index.js +68 -66
  14. package/lib/app/masters/BetPack/BetPackOverlay/index.js +3 -2
  15. package/lib/app/masters/BetPack/index.js +64 -62
  16. package/lib/app/masters/BetPack/utils.d.ts +1 -1
  17. package/lib/app/masters/BetPack/utils.js +8 -7
  18. package/lib/app/masters/Features/Gamification/index.js +5 -5
  19. package/lib/app/masters/Features/index.d.ts +2 -2
  20. package/lib/app/masters/Features/index.js +1 -1
  21. package/lib/app/masters/Header/index.js +19 -23
  22. package/lib/app/masters/Notifications/Onboarding/index.d.ts +0 -1
  23. package/lib/app/masters/Notifications/Onboarding/index.js +42 -43
  24. package/lib/app/masters/Notifications/index.js +50 -55
  25. package/lib/app/masters/masters.js +60 -56
  26. package/lib/app/masters/useOrientation.d.ts +3 -0
  27. package/lib/app/masters/useOrientation.js +12 -0
  28. package/lib/app/masters/useSdkResponsive.js +2 -2
  29. package/lib/app/masters/useSdkScroll.js +12 -12
  30. package/lib/app/useSdkResponsive.js +1 -1
  31. package/lib/app/useSdkScroll.js +1 -1
  32. package/lib/assets/style.css +1 -1
  33. package/lib/index-DSi8Qgfs.js +14 -0
  34. package/lib/index-DXvAPWiE.js +3743 -0
  35. package/lib/index-tnt2CtQe.js +55 -0
  36. package/lib/ui/advertisement/overlay/externalAd/index.d.ts +1 -1
  37. package/lib/ui/advertisement/overlay/externalAd/index.js +79 -40323
  38. package/lib/ui/advertisement/overlay/externalAd/styles.d.ts +10 -0
  39. package/lib/ui/advertisement/overlay/externalAd/styles.js +49 -0
  40. package/lib/ui/advertisement/overlay/externalAd/vast-player/module.d.js +1 -0
  41. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +19 -0
  42. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +33199 -0
  43. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.d.ts +24 -0
  44. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +8 -0
  45. package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
  46. package/lib/ui/gamification/vote/feedback/index.js +83 -73
  47. package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
  48. package/lib/ui/gamification/vote/feedback/styles.js +40 -39
  49. package/lib/ui/gamification/vote/index.js +98 -95
  50. package/lib/ui/icons/index.d.ts +1 -0
  51. package/lib/ui/icons/index.js +88 -79
  52. package/lib/ui/modal/index.js +31 -34
  53. package/lib/ui/theme/breakpoints.d.ts +1 -0
  54. package/lib/ui/theme/breakpoints.js +17 -9
  55. package/lib/ui/theme/masters-theme.js +1 -0
  56. package/lib/useVastAds-Dt_tRbpd.js +1284 -0
  57. package/package.json +18 -15
  58. package/lib/index-CLJzLXks.js +0 -64
@@ -1,93 +1,95 @@
1
1
  import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
- import { cx as x } from "@linaria/core";
3
- import A from "lodash.throttle";
4
- import { forwardRef as b, useState as y, useCallback as p, memo as L, useMemo as R, useRef as z, useEffect as F } from "react";
5
- import { useStore as k } from "@streamlayer/react-polyfills";
6
- import { FeatureType as I } from "@streamlayer/sdk-web-types";
7
- import { BetPackContent as O } from "./BetPackContent/index.js";
8
- import { EmergencyScreen as M } from "./BetPackContent/EmergencyScreen/index.js";
9
- import { LoaderScreen as j } from "./BetPackContent/LoaderScreen/index.js";
10
- import { BetPackContainer as E } from "./styles.js";
11
- import { defaultEventHandler as T } from "./utils.js";
12
- import { SvgIcon as w } from "../../../ui/icons/index.js";
13
- import { Container as G, Header as U, HeaderTitle as Y, CloseButton as q, Main as D, Footer as J, SlideSwitchButton as C, IconArrowPrev as K, buttonAvailable as H, IconArrowNext as Q } from "./BetPackOverlay/styles.js";
14
- const tr = b(
15
- ({ sdk: m, onEvent: o, close: h, isMobile: a }, g) => {
16
- const [c, d] = y(), [r, i] = y(), u = p(
17
- (t) => {
18
- if (t.type === "slBetPackReady") {
19
- const { next: l, prev: s, current: P, canNext: B, canPrev: N } = t.payload || {};
20
- d({ next: l, prev: s }), i((n) => ({
21
- current: n != null && n.current ? n == null ? void 0 : n.current : P,
22
- canPrev: n != null && n.current ? n == null ? void 0 : n.canPrev : N,
23
- canNext: B
2
+ import { cx as y } from "@linaria/core";
3
+ import R from "lodash.throttle";
4
+ import { forwardRef as b, useState as C, useCallback as N, useMemo as A, memo as z, useRef as L, useEffect as O } from "react";
5
+ import { useStore as H } from "@streamlayer/react-polyfills";
6
+ import { FeatureType as j } from "@streamlayer/sdk-web-types";
7
+ import { BetPackContent as G } from "./BetPackContent/index.js";
8
+ import { EmergencyScreen as T } from "./BetPackContent/EmergencyScreen/index.js";
9
+ import { LoaderScreen as E } from "./BetPackContent/LoaderScreen/index.js";
10
+ import { BetPackContainer as M } from "./styles.js";
11
+ import { defaultEventHandler as U } from "./utils.js";
12
+ import { useOrientation as Y } from "../useOrientation.js";
13
+ import { SvgIcon as k } from "../../../ui/icons/index.js";
14
+ import { Container as q, Header as D, HeaderTitle as J, CloseButton as K, Main as Q, Footer as V, SlideSwitchButton as p, IconArrowPrev as W, buttonAvailable as B, IconArrowNext as X } from "./BetPackOverlay/styles.js";
15
+ const ur = b(
16
+ ({ sdk: m, onEvent: o, close: u, isMobile: c }, h) => {
17
+ const [i, d] = C(), [r, t] = C(), { orientation: s } = Y(), l = N(
18
+ (a) => {
19
+ if (a.type === "slBetPackReady") {
20
+ const { next: P, prev: x, current: w, canNext: F, canPrev: I } = a.payload || {};
21
+ d({ next: P, prev: x }), t((n) => ({
22
+ current: n != null && n.current ? n == null ? void 0 : n.current : w,
23
+ canPrev: n != null && n.current ? n == null ? void 0 : n.canPrev : I,
24
+ canNext: F
24
25
  }));
25
26
  }
26
- if (t.type === "slBetPackChangeCard") {
27
- const { current: l, canNext: s, canPrev: P } = t.payload || {};
28
- i({ current: l, canNext: s, canPrev: P });
27
+ if (a.type === "slBetPackChangeCard") {
28
+ const { current: P, canNext: x, canPrev: w } = a.payload || {};
29
+ t({ current: P, canNext: x, canPrev: w });
29
30
  }
30
- o == null || o(t);
31
+ o == null || o(a);
31
32
  },
32
33
  [o]
33
- );
34
- return /* @__PURE__ */ f(G, { ref: g, children: [
35
- /* @__PURE__ */ f(U, { children: [
36
- /* @__PURE__ */ f(Y, { children: [
37
- /* @__PURE__ */ e(w, { name: "icon-trophy-bet-pack" }),
38
- "LiveMatch Experience",
34
+ ), g = A(() => c ? s === "landscape" ? "60px" : "18px" : "30px", [c, s]);
35
+ return /* @__PURE__ */ f(q, { ref: h, children: [
36
+ /* @__PURE__ */ f(D, { children: [
37
+ /* @__PURE__ */ f(J, { children: [
38
+ /* @__PURE__ */ e(k, { name: "fgIcon" }),
39
+ "Featured Groups+",
39
40
  " "
40
41
  ] }),
41
- /* @__PURE__ */ e(q, { onClick: h, children: /* @__PURE__ */ e(w, { name: "icon-close-btn-gray" }) })
42
+ /* @__PURE__ */ e(K, { onClick: u, children: /* @__PURE__ */ e(k, { name: "icon-close-btn-gray" }) })
42
43
  ] }),
43
- /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
44
- V,
44
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(
45
+ Z,
45
46
  {
46
47
  sdk: m,
47
- onEvent: u,
48
- swipeable: !!a,
49
- centerPadding: a ? "18px" : "30px",
50
- heightOffset: a ? 0 : 48
48
+ onEvent: l,
49
+ swipeable: !!c,
50
+ centerPadding: g,
51
+ heightOffset: c ? 0 : 48
51
52
  }
52
53
  ) }),
53
- !a && /* @__PURE__ */ f(J, { children: [
54
- /* @__PURE__ */ e(C, { onClick: c == null ? void 0 : c.prev, disabled: !(r != null && r.canPrev), children: /* @__PURE__ */ e(K, { name: "iconArrowPrev", className: x((r == null ? void 0 : r.canPrev) && H) }) }),
55
- /* @__PURE__ */ e(C, { onClick: c == null ? void 0 : c.next, disabled: !(r != null && r.canNext), children: /* @__PURE__ */ e(Q, { name: "iconArrowPrev", className: x((r == null ? void 0 : r.canNext) && H) }) })
54
+ !c && /* @__PURE__ */ f(V, { children: [
55
+ /* @__PURE__ */ e(p, { onClick: i == null ? void 0 : i.prev, disabled: !(r != null && r.canPrev), children: /* @__PURE__ */ e(W, { name: "iconArrowPrev", className: y((r == null ? void 0 : r.canPrev) && B) }) }),
56
+ /* @__PURE__ */ e(p, { onClick: i == null ? void 0 : i.next, disabled: !(r != null && r.canNext), children: /* @__PURE__ */ e(X, { name: "iconArrowPrev", className: y((r == null ? void 0 : r.canNext) && B) }) })
56
57
  ] })
57
58
  ] });
58
59
  }
59
- ), V = L(({ sdk: m, swipeable: o = !0, heightOffset: h = 65, onEvent: a = T, centerPadding: g }) => {
60
- const c = k(m.featuresList.getStore()), d = R(() => m.getFeature(I.GAMES), [c]), r = k(m.getUserStore()), i = z(null), [u, t] = y(), l = p(() => {
61
- i.current && t(i.current.clientHeight);
60
+ ), Z = z(({ sdk: m, swipeable: o = !0, heightOffset: u = 65, onEvent: c = U, centerPadding: h }) => {
61
+ const i = H(m.featuresList.getStore()), d = A(() => m.getFeature(j.GAMES), [i]), r = H(m.getUserStore()), t = L(null), [s, l] = C(), g = N(() => {
62
+ t.current && l(t.current.clientHeight);
62
63
  }, []);
63
- return F(() => {
64
- const s = A(() => {
65
- i.current && t(i.current.clientHeight);
64
+ return O(() => {
65
+ const a = R(() => {
66
+ t.current && l(t.current.clientHeight);
66
67
  }, 200);
67
- return window.addEventListener("resize", s), () => {
68
- window.removeEventListener("resize", s);
68
+ return window.addEventListener("resize", a), () => {
69
+ window.removeEventListener("resize", a);
69
70
  };
70
- }, []), r.data ? d ? /* @__PURE__ */ e(E, { ref: i, className: x("betPack", o && "isMobile"), children: /* @__PURE__ */ e(
71
- O,
71
+ }, []), r.data ? d ? /* @__PURE__ */ e(M, { ref: t, className: y("betPack", o && "isMobile"), children: /* @__PURE__ */ e(
72
+ G,
72
73
  {
73
74
  gamification: d,
74
- onEvent: a,
75
+ onEvent: c,
75
76
  swipeable: o,
76
- centerPadding: g,
77
- changeHeightOnInit: l,
78
- height: u ? u - h : void 0
77
+ centerPadding: h,
78
+ changeHeightOnInit: g,
79
+ height: s ? s - u : void 0
79
80
  }
80
81
  ) }) : /* @__PURE__ */ e("div", { children: "no gamification" }) : r.error && !r.loading ? /* @__PURE__ */ e(
81
- M,
82
+ T,
82
83
  {
83
- actionFn: () => a({ type: "slHardRefresh" }),
84
+ actionFn: () => c({ type: "slHardRefresh" }),
84
85
  description: `You are not authorized to
85
86
  view this resource.`,
86
- isMobile: o
87
+ isMobile: o,
88
+ height: s ? s - u : void 0
87
89
  }
88
- ) : /* @__PURE__ */ e(j, {});
90
+ ) : /* @__PURE__ */ e(E, {});
89
91
  });
90
92
  export {
91
- V as BetPack,
92
- tr as BetPackOverlay
93
+ Z as BetPack,
94
+ ur as BetPackOverlay
93
95
  };
@@ -1,4 +1,4 @@
1
- export type AllowedMessageType = 'slBetPackReady' | 'slOpenGameCenter' | 'slHardRefresh' | 'slBetPackChangeCard';
1
+ export type AllowedMessageType = 'slBetPackReady' | 'slOpenGameCenter' | 'slHardRefresh' | 'slBetPackChangeCard' | 'slVoted';
2
2
  declare global {
3
3
  interface Window {
4
4
  webkit?: {
@@ -1,10 +1,11 @@
1
- import { createLogger as n } from "@streamlayer/sdk-web-logger";
2
- const o = "slBetPackCb", w = n("betPack-ui"), d = (e, s = {}) => {
3
- var t, i;
4
- w.debug({ id: o, type: e, ...s }), (t = window.top) == null || t.postMessage({ id: o, type: e, ...s }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[o] && window.webkit.messageHandlers[o].postMessage({ type: e, ...s }), (i = window.slBetPackCb) != null && i.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: e, ...s, from: "base" }));
5
- }, a = (e) => {
6
- d(e.type);
1
+ import { createLogger as w } from "@streamlayer/sdk-web-logger";
2
+ const o = "slBetPackCb", g = w("betPack-ui"), r = (s, d = {}) => {
3
+ var a, t;
4
+ const { questionId: i, answerId: n } = d, e = { questionId: i, answerId: n };
5
+ g.debug({ id: o, type: s, ...e }), (a = window.top) == null || a.postMessage({ id: o, type: s, ...e }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[o] && window.webkit.messageHandlers[o].postMessage({ type: s, ...e }), (t = window.slBetPackCb) != null && t.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: s, ...e, from: "base" }));
6
+ }, c = (s) => {
7
+ r(s.type, s.payload);
7
8
  };
8
9
  export {
9
- a as defaultEventHandler
10
+ c as defaultEventHandler
10
11
  };
@@ -18,13 +18,13 @@ const h = () => l, y = /* @__PURE__ */ u(h())({
18
18
  gamification: o
19
19
  }), D = ({
20
20
  gamification: o,
21
- className: e,
22
- appNode: r,
23
- responsiveStore: i
21
+ responsiveStore: e,
22
+ className: i,
23
+ appNode: r
24
24
  }) => {
25
25
  const s = t(o.openedQuestion.$store), {
26
26
  sdkInDesktopView: m
27
- } = t(i, {
27
+ } = t(e, {
28
28
  keys: ["sdkInDesktopView"]
29
29
  }), {
30
30
  hiding: a,
@@ -34,7 +34,7 @@ const h = () => l, y = /* @__PURE__ */ u(h())({
34
34
  container: r,
35
35
  useContainer: !m,
36
36
  children: /* @__PURE__ */ n(y, {
37
- className: e,
37
+ className: i,
38
38
  hiding: a,
39
39
  onAnimationEnd: p,
40
40
  children: /* @__PURE__ */ n(f, {
@@ -1,7 +1,7 @@
1
1
  import { AppNodeRef } from '../..';
2
- import { ResponsiveStore } from '../useSdkResponsive';
3
2
  import { Features } from '@streamlayer/sdk-web-features';
4
3
  import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
4
+ import { ResponsiveStore } from '../useSdkResponsive';
5
5
  /** render feature by type */
6
6
  export declare const ActiveFeature: React.FC<{
7
7
  sdk: StreamLayerSDK;
@@ -12,7 +12,7 @@ export declare const ActiveFeature: React.FC<{
12
12
  export declare const StandaloneFeature: React.FC<{
13
13
  sdk: StreamLayerSDK;
14
14
  feature: Features | null;
15
- responsiveStore: ResponsiveStore;
16
15
  appNode: AppNodeRef;
16
+ responsiveStore: ResponsiveStore;
17
17
  className?: string;
18
18
  }>;
@@ -15,9 +15,9 @@ const c = l(() => import("./Gamification/gamification-feature.js")), h = ({ sdk:
15
15
  }, v = ({ feature: e, className: t, appNode: i, responsiveStore: n }) => e && e.featureConfig.get().type === o.GAMES ? /* @__PURE__ */ r(
16
16
  f,
17
17
  {
18
+ responsiveStore: n,
18
19
  className: t,
19
20
  appNode: i,
20
- responsiveStore: n,
21
21
  gamification: e
22
22
  }
23
23
  ) : null;
@@ -1,38 +1,34 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { cx as a } from "@linaria/core";
3
- import { styled as s } from "@linaria/react";
4
- import { forwardRef as t } from "react";
5
- import { SvgIcon as c } from "../../../ui/icons/index.js";
6
- const i = /* @__PURE__ */ s("div")({
1
+ import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
+ import { cx as t } from "@linaria/core";
3
+ import { styled as o } from "@linaria/react";
4
+ import { forwardRef as a } from "react";
5
+ import { SvgIcon as i } from "../../../ui/icons/index.js";
6
+ const c = /* @__PURE__ */ o("div")({
7
7
  name: "Navigation",
8
8
  class: "n1o1tw60",
9
9
  propsAsIs: !1
10
- }), m = /* @__PURE__ */ s("div")({
10
+ }), m = /* @__PURE__ */ o("div")({
11
11
  name: "Container",
12
12
  class: "co2rstw",
13
13
  propsAsIs: !1
14
- }), p = /* @__PURE__ */ s("div")({
14
+ }), l = /* @__PURE__ */ o("div")({
15
15
  name: "Title",
16
16
  class: "t1bqnx9c",
17
17
  propsAsIs: !1
18
- }), l = () => c, d = /* @__PURE__ */ s(l())({
19
- name: "HeaderIcon",
20
- class: "hlc2pcy",
21
- propsAsIs: !0
22
- }), f = "h1aqxe8k", g = t(({
23
- className: o
24
- }, n) => /* @__PURE__ */ r(i, {
25
- className: a(o, f),
26
- children: [/* @__PURE__ */ e(m, {
27
- children: /* @__PURE__ */ r(p, {
28
- children: [/* @__PURE__ */ e(d, {
29
- name: "icon-trivia-transparent"
30
- }), "Game Center"]
18
+ }), p = "hlc2pcy", I = a(({
19
+ className: e
20
+ }, n) => /* @__PURE__ */ r(c, {
21
+ className: t(e, p),
22
+ children: [/* @__PURE__ */ s(m, {
23
+ children: /* @__PURE__ */ r(l, {
24
+ children: [/* @__PURE__ */ s(i, {
25
+ name: "fgIcon"
26
+ }), "FG+ Game Center", " "]
31
27
  })
32
- }), /* @__PURE__ */ e("div", {
28
+ }), /* @__PURE__ */ s("div", {
33
29
  ref: n
34
30
  })]
35
31
  }));
36
32
  export {
37
- g as SDKHeader
33
+ I as SDKHeader
38
34
  };
@@ -7,7 +7,6 @@ export declare const Onboarding: React.FC<{
7
7
  notification: Notification;
8
8
  saveHeight: (height: number) => void;
9
9
  appNode: AppNodeRef;
10
- sdkInDesktopView?: boolean;
11
10
  style?: React.CSSProperties;
12
11
  responsiveStore: ResponsiveStore;
13
12
  }>;
@@ -41,26 +41,26 @@ const R = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
41
41
  propsAsIs: !1
42
42
  }), q = ({
43
43
  deepLink: l,
44
- onboardingOpts: r,
44
+ onboardingOpts: C,
45
45
  notification: i,
46
- gamification: c,
46
+ gamification: p,
47
47
  loading: s,
48
48
  sdk: a
49
49
  }) => {
50
- var d, o, m, h, g, V, L;
51
- const p = x(c.friends.getStore()), [u, e] = I(void 0), f = S(() => {
52
- var n, b;
53
- const C = a.getInviter();
54
- return C ? (b = (n = p.data) == null ? void 0 : n.find(({
50
+ var o, m, h, g, V, L, n;
51
+ const d = x(p.friends.getStore()), [e, f] = I(void 0), u = S(() => {
52
+ var c, b;
53
+ const r = a.getInviter();
54
+ return r ? (b = (c = d.data) == null ? void 0 : c.find(({
55
55
  slId: k
56
- }) => k === C)) == null ? void 0 : b.name : "";
57
- }, [p.data, a]);
56
+ }) => k === r)) == null ? void 0 : b.name : "";
57
+ }, [d.data, a]);
58
58
  return B(() => {
59
- const C = l.$store.subscribe((n) => {
60
- n && e(n.data);
59
+ const r = l.$store.subscribe((c) => {
60
+ c && f(c.data);
61
61
  });
62
62
  return () => {
63
- C();
63
+ r();
64
64
  };
65
65
  }, [l.$store]), /* @__PURE__ */ t(W, {
66
66
  children: /* @__PURE__ */ t(E, {
@@ -75,45 +75,44 @@ const R = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
75
75
  label: "Top the leader board and best your friends.",
76
76
  icon: "icon-trophy"
77
77
  }],
78
- rulesBtnLabel: (d = r.rules) == null ? void 0 : d.buttonLabel,
79
- rulesTitle: (o = r.rules) == null ? void 0 : o.heading,
78
+ rulesBtnLabel: (o = C.rules) == null ? void 0 : o.buttonLabel,
79
+ rulesTitle: (m = C.rules) == null ? void 0 : m.heading,
80
80
  termsTitle: "Terms and Conditions",
81
- termsText: (m = r.rules) == null ? void 0 : m.terms,
81
+ termsText: (h = C.rules) == null ? void 0 : h.terms,
82
82
  steps: H,
83
- primaryColor: (h = r.inviteCard) == null ? void 0 : h.iconColor,
84
- inviteLink: u,
85
- inviteCardTitle: (g = r.inviteCard) == null ? void 0 : g.heading,
86
- inviteCardSubtext: (V = r.inviteCard) == null ? void 0 : V.subtext,
87
- inviteCardBtnLabel: (L = r.inviteCard) == null ? void 0 : L.buttonLabel,
83
+ primaryColor: (g = C.inviteCard) == null ? void 0 : g.iconColor,
84
+ inviteLink: e,
85
+ inviteCardTitle: (V = C.inviteCard) == null ? void 0 : V.heading,
86
+ inviteCardSubtext: (L = C.inviteCard) == null ? void 0 : L.subtext,
87
+ inviteCardBtnLabel: (n = C.inviteCard) == null ? void 0 : n.buttonLabel,
88
88
  onClose: () => {
89
- var C;
90
- (C = i.close) == null || C.call(i);
89
+ var r;
90
+ (r = i.close) == null || r.call(i);
91
91
  },
92
- gamification: c,
92
+ gamification: p,
93
93
  sdk: a,
94
- inviterName: f
94
+ inviterName: u
95
95
  })
96
96
  });
97
97
  }, r2 = ({
98
98
  sdk: l,
99
- notification: r,
99
+ notification: C,
100
100
  saveHeight: i,
101
- style: c,
101
+ style: p,
102
102
  appNode: s,
103
- sdkInDesktopView: a,
104
- responsiveStore: p
103
+ responsiveStore: a
105
104
  }) => {
106
105
  var L;
107
- const u = A(null), e = r.data.onboarding, [f, d] = I(e == null ? void 0 : e.instantOpen), o = l.getFeature(j.GAMES), m = S(() => H == null ? void 0 : H.map(({
108
- graphicSrc: C
109
- }) => C), []), {
106
+ const d = A(null), e = C.data.onboarding, [f, u] = I(e == null ? void 0 : e.instantOpen), o = l.getFeature(j.GAMES), m = S(() => H == null ? void 0 : H.map(({
107
+ graphicSrc: n
108
+ }) => n), []), {
110
109
  screen: h
111
- } = x(p, {
110
+ } = x(a, {
112
111
  keys: ["screen"]
113
112
  });
114
113
  (L = e == null ? void 0 : e.titleCard) != null && L.media && (e.titleCard.media.sponsorLogo = R), _(() => {
115
- var C;
116
- i(((C = u.current) == null ? void 0 : C.getBoundingClientRect().height) || 0);
114
+ var n;
115
+ i(((n = d.current) == null ? void 0 : n.getBoundingClientRect().height) || 0);
117
116
  }, [i]);
118
117
  const {
119
118
  loading: g,
@@ -121,10 +120,10 @@ const R = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
121
120
  } = T(m);
122
121
  return f && o && e && s.current && !V ? /* @__PURE__ */ t(G, {
123
122
  container: s,
124
- useContainer: !a,
123
+ useContainer: !1,
125
124
  children: /* @__PURE__ */ t(q, {
126
- notification: r,
127
- setOpened: d,
125
+ notification: C,
126
+ setOpened: u,
128
127
  gamification: o,
129
128
  onboardingOpts: e,
130
129
  deepLink: o.deepLink,
@@ -133,7 +132,7 @@ const R = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
133
132
  })
134
133
  }) : /* @__PURE__ */ Z(w, {
135
134
  children: [/* @__PURE__ */ t(y, {
136
- ref: u,
135
+ ref: d,
137
136
  style: {
138
137
  position: "absolute",
139
138
  visibility: "hidden"
@@ -146,14 +145,14 @@ const R = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
146
145
  onboarding: e
147
146
  })
148
147
  }), /* @__PURE__ */ t(O, {
149
- style: c,
150
- hiding: r.hiding,
148
+ style: p,
149
+ hiding: C.hiding,
151
150
  children: /* @__PURE__ */ t(y, {
152
151
  children: /* @__PURE__ */ t(M, {
153
- close: r.close,
152
+ close: C.close,
154
153
  action: () => {
155
- var n;
156
- d(!0), (((n = s.current) == null ? void 0 : n.getBoundingClientRect().y) || 0) < 0 && F(s, h.size, {
154
+ var r;
155
+ u(!0), (((r = s.current) == null ? void 0 : r.getBoundingClientRect().y) || 0) < 0 && F(s, h.size, {
157
156
  behavior: "smooth"
158
157
  });
159
158
  },