@streamlayer/react-ui 1.28.2 → 1.29.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/app/Layout/styles.d.ts +1 -0
- package/lib/app/app/Layout/styles.js +33 -24
- package/lib/app/webos/Advertisement/AdvertisementUI.d.ts +0 -1
- package/lib/app/webos/Advertisement/AdvertisementUI.js +13 -15
- package/lib/app/webos/Advertisement/index.js +10 -11
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +2 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +92 -70
- package/lib/app/webos/ExposedPauseAd/styles.d.ts +1 -1
- package/lib/app/webos/ExposedPauseAd/styles.js +5 -5
- package/lib/app/webos/index.d.ts +4 -0
- package/lib/app/webos/index.js +38 -36
- package/lib/app/webos/story.js +47 -36
- package/lib/app/webos/ui/Sidebar/PromoAction.js +38 -34
- package/lib/app/webos/ui/Sidebar/index.d.ts +0 -1
- package/lib/app/webos/ui/Sidebar/index.js +70 -71
- package/lib/app/webos/ui/Sidebar/styles.d.ts +1 -0
- package/lib/app/webos/ui/Sidebar/styles.js +120 -115
- package/lib/app/webos/ui/insight/index.js +43 -77
- package/lib/assets/style.css +1 -1
- package/lib/{index-DXvAPWiE.js → index-l-eyvmpL.js} +296 -281
- package/lib/ui/advertisement/notification/index.js +24 -24
- package/lib/ui/advertisement/notification/lower-third/index.js +48 -40
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +8 -7
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.d.ts +9 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js +44 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +240 -6
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +62 -52
- package/lib/ui/video-player/index.d.ts +1 -0
- package/lib/ui/video-player/index.js +138 -125
- package/lib/ui/video-player/styles.d.ts +1 -0
- package/lib/ui/video-player/styles.js +32 -27
- package/lib/{useVastAds-CakWRNKN.js → vast-client.min-B0NUra1B.js} +358 -594
- package/package.json +17 -17
- package/lib/app/webos/ui/Layout/index.d.ts +0 -21
- package/lib/app/webos/ui/Layout/index.js +0 -78
- package/lib/app/webos/ui/Layout/styles.d.ts +0 -11
- package/lib/app/webos/ui/Layout/styles.js +0 -59
- package/lib/hooks/useKeyboardNavigation.d.ts +0 -15
- package/lib/hooks/useKeyboardNavigation.js +0 -74
package/lib/app/webos/story.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useRef as m, useState as d, useEffect as
|
|
4
|
-
import { StreamLayerProvider as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as a, jsxs as p, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import c from "hls.js";
|
|
3
|
+
import { useRef as m, useState as d, useEffect as i } from "react";
|
|
4
|
+
import { StreamLayerProvider as y, useStreamLayer as l, useStreamLayerUI as S } from "@streamlayer/react";
|
|
5
|
+
import { anonymous as h } from "@streamlayer/sdk-web-anonymous-auth";
|
|
6
|
+
import { useStreamLayerDebug as b } from "../../utils/debug/index.js";
|
|
7
|
+
import { StreamLayerSDKTv as g } from "./index.js";
|
|
8
|
+
const w = ({ src: r }) => {
|
|
9
|
+
const e = m(), n = m(), [t, o] = d(r);
|
|
10
|
+
return i(() => {
|
|
10
11
|
o(r);
|
|
11
|
-
}, [r]),
|
|
12
|
-
|
|
13
|
-
}, []),
|
|
12
|
+
}, [r]), i(() => () => {
|
|
13
|
+
n.current && clearTimeout(n.current);
|
|
14
|
+
}, []), i(() => {
|
|
14
15
|
if (t && t.includes("m3u8"))
|
|
15
|
-
if (
|
|
16
|
-
const
|
|
16
|
+
if (c.isSupported() && e.current) {
|
|
17
|
+
const s = new c({
|
|
17
18
|
debug: !1
|
|
18
19
|
});
|
|
19
|
-
|
|
20
|
+
s.loadSource(t), s.attachMedia(e.current);
|
|
20
21
|
} else
|
|
21
22
|
o("");
|
|
22
|
-
e.current && (e.current.volume = 0.1, e.current.play().catch((
|
|
23
|
-
var
|
|
24
|
-
console.error(
|
|
23
|
+
e.current && (e.current.volume = 0.1, e.current.play().catch((s) => {
|
|
24
|
+
var u;
|
|
25
|
+
console.error(s), (u = e.current) == null || u.play();
|
|
25
26
|
}));
|
|
26
|
-
}, [t]), /* @__PURE__ */
|
|
27
|
+
}, [t]), /* @__PURE__ */ a(
|
|
27
28
|
"video",
|
|
28
29
|
{
|
|
29
30
|
src: t || "https://storage.googleapis.com/cdn.streamlayer.io/assets/sdk-web/Own%20The%20Game%201080p%20RF18.mp4",
|
|
@@ -37,38 +38,48 @@ const h = ({ src: r }) => {
|
|
|
37
38
|
controls: !0
|
|
38
39
|
}
|
|
39
40
|
);
|
|
40
|
-
},
|
|
41
|
-
const r = l(), [e,
|
|
42
|
-
return
|
|
43
|
-
var o,
|
|
44
|
-
(
|
|
41
|
+
}, v = () => {
|
|
42
|
+
const r = l(), [e, n] = d("");
|
|
43
|
+
return i(() => r ? r.streamSummary().subscribe((t) => {
|
|
44
|
+
var o, s;
|
|
45
|
+
(s = (o = t.data) == null ? void 0 : o.summary) != null && s.stream && n(t.data.summary.stream);
|
|
45
46
|
}) : () => {
|
|
46
|
-
}, [r]), /* @__PURE__ */
|
|
47
|
-
|
|
47
|
+
}, [r]), /* @__PURE__ */ a(
|
|
48
|
+
w,
|
|
48
49
|
{
|
|
49
50
|
src: e || "https://storage.googleapis.com/cdn.streamlayer.io/assets/sdk-web/Own%20The%20Game%201080p%20RF18.mp4"
|
|
50
51
|
}
|
|
51
52
|
);
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
}, k = ({ sdk: r }) => (i(() => {
|
|
54
|
+
r.anonymousAuthorization();
|
|
55
|
+
}, [r]), null), L = ({ persistent: r }) => {
|
|
56
|
+
const e = l(), n = S();
|
|
57
|
+
return e ? /* @__PURE__ */ p(f, { children: [
|
|
58
|
+
/* @__PURE__ */ a(k, { sdk: e }),
|
|
59
|
+
/* @__PURE__ */ a(g, { sdk: e, persistent: r, uiState: n, children: /* @__PURE__ */ a(v, {}) })
|
|
60
|
+
] }) : null;
|
|
61
|
+
}, R = /* @__PURE__ */ new Set([h]), P = ({ sdkKey: r, eventId: e, persistent: n, production: t }) => {
|
|
62
|
+
const o = b({ sdkKey: r, eventId: e, production: t });
|
|
63
|
+
return /* @__PURE__ */ a(
|
|
64
|
+
y,
|
|
59
65
|
{
|
|
60
66
|
event: o.event,
|
|
61
67
|
sdkKey: o.sdkKey,
|
|
62
68
|
production: o.env === "production",
|
|
69
|
+
themeMode: "dark",
|
|
70
|
+
plugins: R,
|
|
63
71
|
autoEnable: !0,
|
|
64
72
|
withAd: !0,
|
|
73
|
+
skipOnboarding: !0,
|
|
65
74
|
withAdNotification: !0,
|
|
75
|
+
friendsTab: "disabled",
|
|
76
|
+
hideFriends: !0,
|
|
66
77
|
webOS: !0,
|
|
67
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ a(L, { persistent: n })
|
|
68
79
|
}
|
|
69
80
|
);
|
|
70
81
|
};
|
|
71
82
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
83
|
+
w as Player,
|
|
84
|
+
P as WebOSStory
|
|
74
85
|
};
|
|
@@ -1,53 +1,57 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { withFocusable as
|
|
3
|
-
import { PromotionButtonType as
|
|
4
|
-
import { QRBlock as u, QR as E, QRDescBlock as A, LearnMore as
|
|
5
|
-
const
|
|
6
|
-
var d, R, h, N,
|
|
7
|
-
const
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */ c(
|
|
12
|
-
/* @__PURE__ */ c(
|
|
1
|
+
import { jsxs as t, jsx as c, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { withFocusable as F } from "../../useTvButton.js";
|
|
3
|
+
import { PromotionButtonType as n, PromotionType as _ } from "@streamlayer/sdk-web-types";
|
|
4
|
+
import { QRBlock as u, QR as E, QRDescBlock as A, LearnMore as a, QRHint as O, EnvelopeIcon as x, SendToUserText as H, SendToUserButton as Q } from "./styles.js";
|
|
5
|
+
const C = F(Q), w = ({ promotion: e, onClose: M }) => {
|
|
6
|
+
var d, R, s, h, N, b, B, S, I, D, f, L, U;
|
|
7
|
+
const r = e.buttonType, y = e.coupon, l = (d = e.banner) == null ? void 0 : d.url, T = e.type;
|
|
8
|
+
return r === n.BASIC ? /* @__PURE__ */ t(u, { children: [
|
|
9
|
+
l && /* @__PURE__ */ c(E, { value: l }),
|
|
10
|
+
/* @__PURE__ */ t(A, { children: [
|
|
11
|
+
/* @__PURE__ */ c(a, { children: "LEARN MORE" }),
|
|
12
|
+
/* @__PURE__ */ c(O, { children: "SCAN QR CODE WITH YOUR PHONE CAMERA" })
|
|
13
13
|
] })
|
|
14
|
-
] }) :
|
|
14
|
+
] }) : r === n.ADD_TO_WALLET ? /* @__PURE__ */ t(u, { children: [
|
|
15
15
|
/* @__PURE__ */ c(E, { value: y }),
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ c(
|
|
18
|
-
/* @__PURE__ */ c(
|
|
16
|
+
/* @__PURE__ */ t(A, { children: [
|
|
17
|
+
/* @__PURE__ */ c(a, { style: { fontSize: 18, fontWeight: 400 }, children: "ADD TO APPLE WALLET" }),
|
|
18
|
+
/* @__PURE__ */ c(O, { style: { fontSize: 17 }, children: "SCAN QR CODE WITH YOUR PHONE CAMERA" })
|
|
19
19
|
] })
|
|
20
|
-
] }) :
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
20
|
+
] }) : r === n.SEND_TO_USER && T !== _.INGAME_IAB11_LBAR ? /* @__PURE__ */ t(P, { children: [
|
|
21
|
+
/* @__PURE__ */ t(
|
|
22
|
+
C,
|
|
23
23
|
{
|
|
24
|
-
backgroundColor: (
|
|
25
|
-
textColor: (
|
|
24
|
+
backgroundColor: (s = (R = e == null ? void 0 : e.banner) == null ? void 0 : R.ctaButton) == null ? void 0 : s.color,
|
|
25
|
+
textColor: (N = (h = e == null ? void 0 : e.banner) == null ? void 0 : h.ctaButton) == null ? void 0 : N.textColor,
|
|
26
|
+
autoFocus: !0,
|
|
27
|
+
webos: !0,
|
|
26
28
|
children: [
|
|
27
29
|
/* @__PURE__ */ c(x, {}),
|
|
28
30
|
"SEND INFO TO ACCOUNT EMAIL"
|
|
29
31
|
]
|
|
30
32
|
}
|
|
31
33
|
),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */ c(
|
|
36
|
-
/* @__PURE__ */ c(
|
|
34
|
+
/* @__PURE__ */ t(u, { children: [
|
|
35
|
+
l && /* @__PURE__ */ c(E, { value: l }),
|
|
36
|
+
/* @__PURE__ */ t(A, { children: [
|
|
37
|
+
/* @__PURE__ */ c(a, { children: "LEARN MORE" }),
|
|
38
|
+
/* @__PURE__ */ c(O, { children: "SCAN QR CODE WITH YOUR PHONE CAMERA" })
|
|
37
39
|
] })
|
|
38
40
|
] })
|
|
39
|
-
] }) :
|
|
40
|
-
|
|
41
|
+
] }) : r === n.SEND_TO_USER && T === _.INGAME_IAB11_LBAR ? /* @__PURE__ */ t(
|
|
42
|
+
C,
|
|
41
43
|
{
|
|
42
|
-
backgroundColor: (
|
|
43
|
-
textColor: (I = (
|
|
44
|
+
backgroundColor: (B = (b = e == null ? void 0 : e.banner) == null ? void 0 : b.ctaButton) == null ? void 0 : B.color,
|
|
45
|
+
textColor: (I = (S = e == null ? void 0 : e.banner) == null ? void 0 : S.ctaButton) == null ? void 0 : I.textColor,
|
|
46
|
+
webos: !0,
|
|
47
|
+
autoFocus: !0,
|
|
44
48
|
children: [
|
|
45
49
|
/* @__PURE__ */ c(x, {}),
|
|
46
|
-
/* @__PURE__ */ c(
|
|
50
|
+
/* @__PURE__ */ c(H, { children: "SEND INFO TO ACCOUNT EMAIL" })
|
|
47
51
|
]
|
|
48
52
|
}
|
|
49
|
-
) :
|
|
50
|
-
|
|
53
|
+
) : r === n.RETURN_TO_VIDEO ? /* @__PURE__ */ c(
|
|
54
|
+
C,
|
|
51
55
|
{
|
|
52
56
|
webos: !0,
|
|
53
57
|
autoFocus: !0,
|
|
@@ -59,5 +63,5 @@ const W = H(a), i = ({ promotion: e, onClose: M }) => {
|
|
|
59
63
|
) : null;
|
|
60
64
|
};
|
|
61
65
|
export {
|
|
62
|
-
|
|
66
|
+
w as PromoAction
|
|
63
67
|
};
|
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import { jsx as d, jsxs as l, Fragment as
|
|
2
|
-
import { updateAllLayouts as
|
|
3
|
-
import { withFocusable as
|
|
4
|
-
import { useRef as k, useState as
|
|
1
|
+
import { jsx as d, jsxs as l, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { updateAllLayouts as ee } from "@noriginmedia/norigin-spatial-navigation";
|
|
3
|
+
import { withFocusable as oe } from "../../useTvButton.js";
|
|
4
|
+
import { useRef as k, useState as I, useEffect as h } from "react";
|
|
5
5
|
import { eventBus as p } from "@streamlayer/sdk-web-interfaces";
|
|
6
|
-
import { PromotionType as r, AutoPlayVideo as
|
|
6
|
+
import { PromotionType as r, AutoPlayVideo as te, PlayVideoMuted as de } from "@streamlayer/sdk-web-types";
|
|
7
7
|
import { SvgIcon as T } from "../../../../ui/icons/index.js";
|
|
8
|
-
import { PromoAction as
|
|
9
|
-
import { Container as
|
|
10
|
-
const
|
|
8
|
+
import { PromoAction as ae } from "./PromoAction.js";
|
|
9
|
+
import { Wrap as ne, Container as ie, Header as re, BrandBlock as le, LogoIcon as pe, BrandText as se, BrandNameContainer as ce, BrandName as ye, Sponsored as me, CloseIcon as ue, VideoBlock as he, VideoWrapper as Ae, FocusableVideo as Be, VideoStatus as O, Title as Ie, Description as be, CloseButton as Me } from "./styles.js";
|
|
10
|
+
const Re = oe(Me, {
|
|
11
11
|
isFocusBoundary: !0
|
|
12
|
-
}),
|
|
13
|
-
var
|
|
12
|
+
}), Ce = (j) => {
|
|
13
|
+
var N, _, w, P, S, g, L, C, G, D, x, U, v, W;
|
|
14
14
|
const {
|
|
15
15
|
promotion: e,
|
|
16
|
-
open:
|
|
16
|
+
open: c,
|
|
17
17
|
togglePause: a,
|
|
18
|
-
controlVideo:
|
|
19
|
-
promotionId:
|
|
18
|
+
controlVideo: s,
|
|
19
|
+
promotionId: i,
|
|
20
20
|
onClose: b,
|
|
21
21
|
markAsViewed: A,
|
|
22
|
-
advertisementPaused:
|
|
22
|
+
advertisementPaused: H,
|
|
23
23
|
isEventFired: o,
|
|
24
24
|
fireEvent: t,
|
|
25
|
-
muted:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
let m = (N = e.banner) == null ? void 0 : N.url;
|
|
25
|
+
muted: $
|
|
26
|
+
} = j, q = k(null), B = k(null), [M, z] = I(0), K = e.type === r.INGAME_IAB11_LBAR ? M : M / 2, R = !!((_ = (N = e.banner) == null ? void 0 : N.video) != null && _.url), y = e.autoPlayVideo === te.ENABLED, V = e.playVideoMuted === de.ENABLED, Q = V && y, J = e.type === r.INGAME_IAB11_LBAR || e.type === r.INGAME_IAB11 || e.type === r.INGAME_IAB11_SIDEBAR, [f, X] = I(!0), [Y, Z] = I(void 0);
|
|
27
|
+
let m = (w = e.banner) == null ? void 0 : w.url;
|
|
29
28
|
return m && !m.startsWith("http") && (m = `https://${m}`), h(() => {
|
|
30
29
|
if (!B.current) return;
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
|
|
30
|
+
const n = new ResizeObserver(([u]) => {
|
|
31
|
+
const E = u.contentRect.width;
|
|
32
|
+
z(E);
|
|
34
33
|
});
|
|
35
|
-
return
|
|
36
|
-
|
|
34
|
+
return n.observe(B.current), ee(), () => {
|
|
35
|
+
n.disconnect();
|
|
37
36
|
};
|
|
38
37
|
}, []), h(() => {
|
|
39
|
-
a == null || a(R ||
|
|
40
|
-
}, [R,
|
|
41
|
-
|
|
42
|
-
}, [
|
|
43
|
-
|
|
44
|
-
}, [
|
|
45
|
-
/* @__PURE__ */ l(
|
|
46
|
-
e.logoMode === 1 && /* @__PURE__ */ l(
|
|
47
|
-
/* @__PURE__ */ d(
|
|
48
|
-
/* @__PURE__ */ l(
|
|
49
|
-
/* @__PURE__ */ d(
|
|
50
|
-
/* @__PURE__ */ d(
|
|
38
|
+
a == null || a(R || y), c == null || c();
|
|
39
|
+
}, [R, y, c, a]), h(() => {
|
|
40
|
+
i && e.type && A && A();
|
|
41
|
+
}, [i, e.type, A]), h(() => () => {
|
|
42
|
+
s == null || s({ muted: !1 });
|
|
43
|
+
}, [s]), /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ l(ie, { ref: B, children: [
|
|
44
|
+
/* @__PURE__ */ l(re, { children: [
|
|
45
|
+
e.logoMode === 1 && /* @__PURE__ */ l(le, { children: [
|
|
46
|
+
/* @__PURE__ */ d(pe, { src: (P = e.sponsor) == null ? void 0 : P.logo, alt: "Logo" }),
|
|
47
|
+
/* @__PURE__ */ l(se, { children: [
|
|
48
|
+
/* @__PURE__ */ d(ce, { children: /* @__PURE__ */ d(ye, { children: (S = e.sponsor) == null ? void 0 : S.name }) }),
|
|
49
|
+
/* @__PURE__ */ d(me, { children: "SPONSORED" })
|
|
51
50
|
] })
|
|
52
51
|
] }),
|
|
53
52
|
e.logoMode === 2 && e.type === r.INGAME_IAB11_LBAR && /* @__PURE__ */ d("img", { src: (g = e.sponsor) == null ? void 0 : g.logo, alt: "Video paused preview", style: { height: "56px" } }),
|
|
54
|
-
/* @__PURE__ */ d(
|
|
53
|
+
/* @__PURE__ */ d(Re, { options: { focusKey: "close-ad-button" }, webos: !0, onClick: b, "data-close-btn": "true", children: /* @__PURE__ */ d(ue, {}) })
|
|
55
54
|
] }),
|
|
56
55
|
e.logoMode === 2 && e.type !== r.INGAME_IAB11_LBAR && /* @__PURE__ */ d(
|
|
57
56
|
"img",
|
|
@@ -66,60 +65,60 @@ const Be = Z(Ae, {
|
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
),
|
|
69
|
-
((
|
|
68
|
+
((C = e.banner) == null ? void 0 : C.imageUrl) && /* @__PURE__ */ d(he, { style: { height: K }, children: /* @__PURE__ */ d(
|
|
70
69
|
"img",
|
|
71
70
|
{
|
|
72
|
-
src: (
|
|
71
|
+
src: (G = e.banner) == null ? void 0 : G.imageUrl,
|
|
73
72
|
alt: "Video paused preview",
|
|
74
73
|
style: { width: "100%", height: "100%", objectFit: "cover" }
|
|
75
74
|
}
|
|
76
75
|
) }),
|
|
77
|
-
((
|
|
76
|
+
((D = e.banner) == null ? void 0 : D.video) && /* @__PURE__ */ l(Ae, { children: [
|
|
78
77
|
/* @__PURE__ */ d(
|
|
79
|
-
|
|
78
|
+
Be,
|
|
80
79
|
{
|
|
81
80
|
source: e.banner.video.url,
|
|
82
|
-
poster: (
|
|
81
|
+
poster: (U = (x = e.banner) == null ? void 0 : x.video) == null ? void 0 : U.thumbnailUrl,
|
|
83
82
|
webos: !0,
|
|
84
|
-
aspectRatio:
|
|
85
|
-
ref:
|
|
83
|
+
aspectRatio: J ? "1/1" : "2/1",
|
|
84
|
+
ref: q,
|
|
86
85
|
onRender: () => {
|
|
87
86
|
o != null && o("video-rendered") || (p.emit("advertisement", {
|
|
88
87
|
action: "videoRendered",
|
|
89
88
|
payload: {
|
|
90
|
-
id:
|
|
89
|
+
id: i,
|
|
91
90
|
type: e.type
|
|
92
91
|
}
|
|
93
92
|
}), t == null || t("video-rendered"));
|
|
94
93
|
},
|
|
95
|
-
onQuartile: (
|
|
96
|
-
o != null && o(`video-quartile-${
|
|
94
|
+
onQuartile: (n) => {
|
|
95
|
+
o != null && o(`video-quartile-${n}`) || (p.emit("advertisement", {
|
|
97
96
|
action: "quartileCompleted",
|
|
98
97
|
payload: {
|
|
99
|
-
id:
|
|
98
|
+
id: i,
|
|
100
99
|
type: e.type,
|
|
101
|
-
quartile:
|
|
100
|
+
quartile: n
|
|
102
101
|
}
|
|
103
|
-
}), t == null || t(`video-quartile-${
|
|
102
|
+
}), t == null || t(`video-quartile-${n}`));
|
|
104
103
|
},
|
|
105
|
-
onMute: (
|
|
106
|
-
const u =
|
|
104
|
+
onMute: (n) => {
|
|
105
|
+
const u = n ? "muted" : "unmuted";
|
|
107
106
|
o != null && o(u) || (p.emit("advertisement", {
|
|
108
|
-
action:
|
|
107
|
+
action: n ? "videoMuted" : "videoUnmuted",
|
|
109
108
|
payload: {
|
|
110
|
-
id:
|
|
109
|
+
id: i,
|
|
111
110
|
type: e.type
|
|
112
111
|
}
|
|
113
|
-
}), t == null || t(u));
|
|
112
|
+
}), t == null || t(u)), Z(n);
|
|
114
113
|
},
|
|
115
114
|
onPause: () => {
|
|
116
|
-
|
|
115
|
+
a == null || a(!0), X(!1);
|
|
117
116
|
},
|
|
118
117
|
onReplay: () => {
|
|
119
118
|
o != null && o("replayed") || (p.emit("advertisement", {
|
|
120
119
|
action: "videoReplayed",
|
|
121
120
|
payload: {
|
|
122
|
-
id:
|
|
121
|
+
id: i,
|
|
123
122
|
type: e.type
|
|
124
123
|
}
|
|
125
124
|
}), t == null || t("replayed"));
|
|
@@ -128,13 +127,13 @@ const Be = Z(Ae, {
|
|
|
128
127
|
o != null && o("played") || (p.emit("advertisement", {
|
|
129
128
|
action: "videoPlay",
|
|
130
129
|
payload: {
|
|
131
|
-
id:
|
|
130
|
+
id: i,
|
|
132
131
|
type: e.type
|
|
133
132
|
}
|
|
134
133
|
}), t == null || t("played")), a == null || a(!1), o != null && o("played") && (o != null && o("ended")) && !(o != null && o("replayed")) && (p.emit("advertisement", {
|
|
135
134
|
action: "videoReplayed",
|
|
136
135
|
payload: {
|
|
137
|
-
id:
|
|
136
|
+
id: i,
|
|
138
137
|
type: e.type
|
|
139
138
|
}
|
|
140
139
|
}), t == null || t("replayed"));
|
|
@@ -143,34 +142,34 @@ const Be = Z(Ae, {
|
|
|
143
142
|
o != null && o("ended") || (p.emit("advertisement", {
|
|
144
143
|
action: "videoEnd",
|
|
145
144
|
payload: {
|
|
146
|
-
id:
|
|
145
|
+
id: i,
|
|
147
146
|
type: e.type
|
|
148
147
|
}
|
|
149
148
|
}), t == null || t("ended"));
|
|
150
149
|
},
|
|
151
150
|
muted: $,
|
|
152
|
-
autoPlay:
|
|
153
|
-
playMuted:
|
|
154
|
-
controlVideo:
|
|
151
|
+
autoPlay: y,
|
|
152
|
+
playMuted: V,
|
|
153
|
+
controlVideo: s,
|
|
154
|
+
hasNotPausedVideo: f
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
|
-
|
|
157
|
+
H && !f && /* @__PURE__ */ l(O, { children: [
|
|
158
158
|
/* @__PURE__ */ d(T, { name: "icon-pause" }),
|
|
159
159
|
"PAUSED"
|
|
160
160
|
] }),
|
|
161
|
-
|
|
161
|
+
Y && Q && /* @__PURE__ */ l(O, { children: [
|
|
162
162
|
/* @__PURE__ */ d(T, { name: "iconMute" }),
|
|
163
163
|
"MUTED"
|
|
164
|
-
] })
|
|
165
|
-
" "
|
|
164
|
+
] })
|
|
166
165
|
] }),
|
|
167
|
-
e.type !== r.INGAME_IAB11 && e.type !== r.INGAME_IAB11_LBAR && e.type !== r.INGAME_IAB11_SIDEBAR && /* @__PURE__ */ l(
|
|
168
|
-
/* @__PURE__ */ d(
|
|
169
|
-
/* @__PURE__ */ d(
|
|
166
|
+
e.type !== r.INGAME_IAB11 && e.type !== r.INGAME_IAB11_LBAR && e.type !== r.INGAME_IAB11_SIDEBAR && /* @__PURE__ */ l(F, { children: [
|
|
167
|
+
/* @__PURE__ */ d(Ie, { children: (v = e.banner) == null ? void 0 : v.title }),
|
|
168
|
+
/* @__PURE__ */ d(be, { children: (W = e.banner) == null ? void 0 : W.body })
|
|
170
169
|
] }),
|
|
171
|
-
/* @__PURE__ */ d(
|
|
170
|
+
/* @__PURE__ */ d(ae, { promotion: e, onClose: b })
|
|
172
171
|
] }) });
|
|
173
172
|
};
|
|
174
173
|
export {
|
|
175
|
-
|
|
174
|
+
Ce as TVSidebar
|
|
176
175
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
export declare const Wrap: import('@linaria/react').StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
3
|
export declare const Container: import('@linaria/react').StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
4
|
export declare const Header: import('@linaria/react').StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
5
|
export declare const BrandBlock: import('@linaria/react').StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|