@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.
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +11 -11
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +0 -1
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +18 -22
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.d.ts +0 -1
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +7 -7
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +1 -2
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +16 -19
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.d.ts +0 -1
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +25 -24
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +14 -9
- package/lib/app/masters/BetPack/BetPackContent/index.js +68 -66
- package/lib/app/masters/BetPack/BetPackOverlay/index.js +3 -2
- package/lib/app/masters/BetPack/index.js +64 -62
- package/lib/app/masters/BetPack/utils.d.ts +1 -1
- package/lib/app/masters/BetPack/utils.js +8 -7
- package/lib/app/masters/Features/Gamification/index.js +5 -5
- package/lib/app/masters/Features/index.d.ts +2 -2
- package/lib/app/masters/Features/index.js +1 -1
- package/lib/app/masters/Header/index.js +19 -23
- package/lib/app/masters/Notifications/Onboarding/index.d.ts +0 -1
- package/lib/app/masters/Notifications/Onboarding/index.js +42 -43
- package/lib/app/masters/Notifications/index.js +50 -55
- package/lib/app/masters/masters.js +60 -56
- package/lib/app/masters/useOrientation.d.ts +3 -0
- package/lib/app/masters/useOrientation.js +12 -0
- package/lib/app/masters/useSdkResponsive.js +2 -2
- package/lib/app/masters/useSdkScroll.js +12 -12
- package/lib/app/useSdkResponsive.js +1 -1
- package/lib/app/useSdkScroll.js +1 -1
- package/lib/assets/style.css +1 -1
- package/lib/index-DSi8Qgfs.js +14 -0
- package/lib/index-DXvAPWiE.js +3743 -0
- package/lib/index-tnt2CtQe.js +55 -0
- package/lib/ui/advertisement/overlay/externalAd/index.d.ts +1 -1
- package/lib/ui/advertisement/overlay/externalAd/index.js +79 -40323
- package/lib/ui/advertisement/overlay/externalAd/styles.d.ts +10 -0
- package/lib/ui/advertisement/overlay/externalAd/styles.js +49 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/module.d.js +1 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +19 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +33199 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.d.ts +24 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +8 -0
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/index.js +83 -73
- package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/styles.js +40 -39
- package/lib/ui/gamification/vote/index.js +98 -95
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +88 -79
- package/lib/ui/modal/index.js +31 -34
- package/lib/ui/theme/breakpoints.d.ts +1 -0
- package/lib/ui/theme/breakpoints.js +17 -9
- package/lib/ui/theme/masters-theme.js +1 -0
- package/lib/useVastAds-Dt_tRbpd.js +1284 -0
- package/package.json +18 -15
- 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
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef as b, useState as
|
|
5
|
-
import { useStore as
|
|
6
|
-
import { FeatureType as
|
|
7
|
-
import { BetPackContent as
|
|
8
|
-
import { EmergencyScreen as
|
|
9
|
-
import { LoaderScreen as
|
|
10
|
-
import { BetPackContainer as
|
|
11
|
-
import { defaultEventHandler as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 (
|
|
27
|
-
const { current:
|
|
28
|
-
|
|
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(
|
|
31
|
+
o == null || o(a);
|
|
31
32
|
},
|
|
32
33
|
[o]
|
|
33
|
-
);
|
|
34
|
-
return /* @__PURE__ */ f(
|
|
35
|
-
/* @__PURE__ */ f(
|
|
36
|
-
/* @__PURE__ */ f(
|
|
37
|
-
/* @__PURE__ */ e(
|
|
38
|
-
"
|
|
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(
|
|
42
|
+
/* @__PURE__ */ e(K, { onClick: u, children: /* @__PURE__ */ e(k, { name: "icon-close-btn-gray" }) })
|
|
42
43
|
] }),
|
|
43
|
-
/* @__PURE__ */ e(
|
|
44
|
-
|
|
44
|
+
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(
|
|
45
|
+
Z,
|
|
45
46
|
{
|
|
46
47
|
sdk: m,
|
|
47
|
-
onEvent:
|
|
48
|
-
swipeable: !!
|
|
49
|
-
centerPadding:
|
|
50
|
-
heightOffset:
|
|
48
|
+
onEvent: l,
|
|
49
|
+
swipeable: !!c,
|
|
50
|
+
centerPadding: g,
|
|
51
|
+
heightOffset: c ? 0 : 48
|
|
51
52
|
}
|
|
52
53
|
) }),
|
|
53
|
-
!
|
|
54
|
-
/* @__PURE__ */ e(
|
|
55
|
-
/* @__PURE__ */ e(
|
|
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
|
-
),
|
|
60
|
-
const
|
|
61
|
-
|
|
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
|
|
64
|
-
const
|
|
65
|
-
|
|
64
|
+
return O(() => {
|
|
65
|
+
const a = R(() => {
|
|
66
|
+
t.current && l(t.current.clientHeight);
|
|
66
67
|
}, 200);
|
|
67
|
-
return window.addEventListener("resize",
|
|
68
|
-
window.removeEventListener("resize",
|
|
68
|
+
return window.addEventListener("resize", a), () => {
|
|
69
|
+
window.removeEventListener("resize", a);
|
|
69
70
|
};
|
|
70
|
-
}, []), r.data ? d ? /* @__PURE__ */ e(
|
|
71
|
-
|
|
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:
|
|
75
|
+
onEvent: c,
|
|
75
76
|
swipeable: o,
|
|
76
|
-
centerPadding:
|
|
77
|
-
changeHeightOnInit:
|
|
78
|
-
height:
|
|
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
|
-
|
|
82
|
+
T,
|
|
82
83
|
{
|
|
83
|
-
actionFn: () =>
|
|
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(
|
|
90
|
+
) : /* @__PURE__ */ e(E, {});
|
|
89
91
|
});
|
|
90
92
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
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
|
|
2
|
-
const o = "slBetPackCb",
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
}, a = (e)
|
|
6
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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(
|
|
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:
|
|
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
|
|
2
|
-
import { cx as
|
|
3
|
-
import { styled as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { SvgIcon as
|
|
6
|
-
const
|
|
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__ */
|
|
10
|
+
}), m = /* @__PURE__ */ o("div")({
|
|
11
11
|
name: "Container",
|
|
12
12
|
class: "co2rstw",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
14
|
+
}), l = /* @__PURE__ */ o("div")({
|
|
15
15
|
name: "Title",
|
|
16
16
|
class: "t1bqnx9c",
|
|
17
17
|
propsAsIs: !1
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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__ */
|
|
28
|
+
}), /* @__PURE__ */ s("div", {
|
|
33
29
|
ref: n
|
|
34
30
|
})]
|
|
35
31
|
}));
|
|
36
32
|
export {
|
|
37
|
-
|
|
33
|
+
I as SDKHeader
|
|
38
34
|
};
|
|
@@ -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:
|
|
44
|
+
onboardingOpts: C,
|
|
45
45
|
notification: i,
|
|
46
|
-
gamification:
|
|
46
|
+
gamification: p,
|
|
47
47
|
loading: s,
|
|
48
48
|
sdk: a
|
|
49
49
|
}) => {
|
|
50
|
-
var
|
|
51
|
-
const
|
|
52
|
-
var
|
|
53
|
-
const
|
|
54
|
-
return
|
|
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 ===
|
|
57
|
-
}, [
|
|
56
|
+
}) => k === r)) == null ? void 0 : b.name : "";
|
|
57
|
+
}, [d.data, a]);
|
|
58
58
|
return B(() => {
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
const r = l.$store.subscribe((c) => {
|
|
60
|
+
c && f(c.data);
|
|
61
61
|
});
|
|
62
62
|
return () => {
|
|
63
|
-
|
|
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: (
|
|
79
|
-
rulesTitle: (
|
|
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: (
|
|
81
|
+
termsText: (h = C.rules) == null ? void 0 : h.terms,
|
|
82
82
|
steps: H,
|
|
83
|
-
primaryColor: (
|
|
84
|
-
inviteLink:
|
|
85
|
-
inviteCardTitle: (
|
|
86
|
-
inviteCardSubtext: (
|
|
87
|
-
inviteCardBtnLabel: (
|
|
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
|
|
90
|
-
(
|
|
89
|
+
var r;
|
|
90
|
+
(r = i.close) == null || r.call(i);
|
|
91
91
|
},
|
|
92
|
-
gamification:
|
|
92
|
+
gamification: p,
|
|
93
93
|
sdk: a,
|
|
94
|
-
inviterName:
|
|
94
|
+
inviterName: u
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
97
|
}, r2 = ({
|
|
98
98
|
sdk: l,
|
|
99
|
-
notification:
|
|
99
|
+
notification: C,
|
|
100
100
|
saveHeight: i,
|
|
101
|
-
style:
|
|
101
|
+
style: p,
|
|
102
102
|
appNode: s,
|
|
103
|
-
|
|
104
|
-
responsiveStore: p
|
|
103
|
+
responsiveStore: a
|
|
105
104
|
}) => {
|
|
106
105
|
var L;
|
|
107
|
-
const
|
|
108
|
-
graphicSrc:
|
|
109
|
-
}) =>
|
|
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(
|
|
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
|
|
116
|
-
i(((
|
|
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: !
|
|
123
|
+
useContainer: !1,
|
|
125
124
|
children: /* @__PURE__ */ t(q, {
|
|
126
|
-
notification:
|
|
127
|
-
setOpened:
|
|
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:
|
|
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:
|
|
150
|
-
hiding:
|
|
148
|
+
style: p,
|
|
149
|
+
hiding: C.hiding,
|
|
151
150
|
children: /* @__PURE__ */ t(y, {
|
|
152
151
|
children: /* @__PURE__ */ t(M, {
|
|
153
|
-
close:
|
|
152
|
+
close: C.close,
|
|
154
153
|
action: () => {
|
|
155
|
-
var
|
|
156
|
-
|
|
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
|
},
|