@streamlayer/react-ui 1.31.4 → 1.31.6
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,66 +1,65 @@
|
|
|
1
1
|
import { jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { cx as
|
|
3
|
-
import { useFocusable as
|
|
2
|
+
import { cx as D } from "@linaria/core";
|
|
3
|
+
import { useFocusable as L } from "@noriginmedia/norigin-spatial-navigation";
|
|
4
4
|
import { useState as x, useRef as k, useEffect as h } from "react";
|
|
5
5
|
import { useStore as G } from "@streamlayer/react-polyfills";
|
|
6
6
|
import { eventBus as S } from "@streamlayer/sdk-web-interfaces";
|
|
7
7
|
import { useLoadGAMStatic as B } from "../../../ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js";
|
|
8
|
-
import { PauseAdOverlay as M, PauseAdContent as F,
|
|
8
|
+
import { PauseAdOverlay as M, PauseAdContent as F, PauseAdGradientRight as I, PauseAdGradientBottom as j, PauseAdTopLeft as K, PauseAdTitle as N, PauseAdCaption as $, PauseAdBottomLeft as O, PauseAdPlayButton as V, PauseAdSidebar as _, PauseAdTitleDescription as q, ExternalAdContainer as b } from "./styles.js";
|
|
9
9
|
const z = ({ vastUrl: t }) => {
|
|
10
|
-
var
|
|
10
|
+
var s;
|
|
11
11
|
const [, d] = B(), u = G(d, { keys: [t] });
|
|
12
|
-
return (
|
|
13
|
-
}, H = ({ isClosing: t, title: d, caption: u, onPlay:
|
|
14
|
-
const
|
|
12
|
+
return (s = u == null ? void 0 : u[t]) != null && s.imageSrc ? u[t].adUrl ? /* @__PURE__ */ e("a", { href: u[t].adUrl, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e(b, { src: u[t].imageSrc }) }) : /* @__PURE__ */ e(b, { src: u[t].imageSrc }) : null;
|
|
13
|
+
}, H = ({ isClosing: t, title: d, caption: u, onPlay: s, onClose: f, vastUrl: a, options: r }) => {
|
|
14
|
+
const m = (r == null ? void 0 : r.showPauseButton) ?? !0, { ref: n, focusSelf: l } = L({
|
|
15
15
|
focusKey: "sl-pause-ad-play",
|
|
16
|
-
onEnterRelease:
|
|
16
|
+
onEnterRelease: s,
|
|
17
17
|
isFocusBoundary: !0,
|
|
18
18
|
forceFocus: !0
|
|
19
19
|
});
|
|
20
20
|
return h(() => {
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
const P = (
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
26
|
-
|
|
21
|
+
n.current && l();
|
|
22
|
+
}, [n, l]), h(() => {
|
|
23
|
+
const P = (p) => {
|
|
24
|
+
const o = p.keyCode;
|
|
25
|
+
if (o === 461 || o === 10009 || o === 27 || o === 8) {
|
|
26
|
+
p.preventDefault(), p.stopPropagation(), p.stopImmediatePropagation(), f == null || f();
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
return window.addEventListener("keydown", P, { capture: !0 }), () => window.removeEventListener("keydown", P, { capture: !0 });
|
|
31
|
-
}, [
|
|
31
|
+
}, [f]), /* @__PURE__ */ e(M, { className: D(t && "pause-ad-closing"), children: /* @__PURE__ */ g(F, { children: [
|
|
32
32
|
/* @__PURE__ */ e(I, {}),
|
|
33
33
|
/* @__PURE__ */ e(j, {}),
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
36
|
-
/* @__PURE__ */ e($, { children:
|
|
37
|
-
/* @__PURE__ */ e(O, { children: u })
|
|
34
|
+
/* @__PURE__ */ g(K, { children: [
|
|
35
|
+
/* @__PURE__ */ e(N, { children: d }),
|
|
36
|
+
/* @__PURE__ */ e($, { children: u })
|
|
38
37
|
] }),
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
m && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
|
|
39
|
+
V,
|
|
41
40
|
{
|
|
42
|
-
ref:
|
|
43
|
-
onClick:
|
|
44
|
-
onMouseEnter: () =>
|
|
41
|
+
ref: n,
|
|
42
|
+
onClick: s,
|
|
43
|
+
onMouseEnter: () => n.current.focus(),
|
|
45
44
|
"aria-label": "Resume playback"
|
|
46
45
|
}
|
|
47
46
|
) }),
|
|
48
|
-
/* @__PURE__ */ g(
|
|
47
|
+
/* @__PURE__ */ g(_, { children: [
|
|
49
48
|
a && /* @__PURE__ */ e(z, { vastUrl: a }),
|
|
50
|
-
/* @__PURE__ */ e(
|
|
49
|
+
/* @__PURE__ */ e(q, { children: "ADVERTISEMENT" })
|
|
51
50
|
] })
|
|
52
51
|
] }) });
|
|
53
52
|
}, U = ({
|
|
54
53
|
showPauseAd: t,
|
|
55
54
|
vastUrls: d,
|
|
56
55
|
title: u,
|
|
57
|
-
caption:
|
|
58
|
-
onPlay:
|
|
56
|
+
caption: s,
|
|
57
|
+
onPlay: f,
|
|
59
58
|
onClose: a,
|
|
60
59
|
onRender: r,
|
|
61
|
-
options:
|
|
60
|
+
options: m
|
|
62
61
|
}) => {
|
|
63
|
-
const
|
|
62
|
+
const n = (m == null ? void 0 : m.pauseAdDelay) ?? 5e3, [l, P] = x(!1), [p, o] = x(!1), c = k(), i = d == null ? void 0 : d[0].url, y = k(i);
|
|
64
63
|
y.current = i;
|
|
65
64
|
const [T, E] = B();
|
|
66
65
|
return h(() => {
|
|
@@ -75,7 +74,7 @@ const z = ({ vastUrl: t }) => {
|
|
|
75
74
|
});
|
|
76
75
|
const w = () => {
|
|
77
76
|
var A;
|
|
78
|
-
(A = E.get()[y.current]) != null && A.imageSrc ? (clearTimeout(c.current),
|
|
77
|
+
(A = E.get()[y.current]) != null && A.imageSrc ? (clearTimeout(c.current), o(!1), P(!0), S.emit("exposedPauseAd", {
|
|
79
78
|
action: "rendered",
|
|
80
79
|
payload: {}
|
|
81
80
|
})) : c.current = setTimeout(() => {
|
|
@@ -84,31 +83,31 @@ const z = ({ vastUrl: t }) => {
|
|
|
84
83
|
};
|
|
85
84
|
c.current = setTimeout(() => {
|
|
86
85
|
w();
|
|
87
|
-
},
|
|
86
|
+
}, n);
|
|
88
87
|
} else
|
|
89
88
|
S.emit("exposedPauseAd", {
|
|
90
89
|
action: "disabled",
|
|
91
90
|
payload: {}
|
|
92
|
-
}),
|
|
91
|
+
}), o(!0), c.current = setTimeout(() => {
|
|
93
92
|
P(!1);
|
|
94
93
|
}, 400);
|
|
95
94
|
return () => {
|
|
96
95
|
c.current && clearTimeout(c.current);
|
|
97
96
|
};
|
|
98
|
-
}, [E, T, a,
|
|
99
|
-
r == null || r({ rendered:
|
|
100
|
-
}, [
|
|
97
|
+
}, [E, T, a, n, t, i]), h(() => {
|
|
98
|
+
r == null || r({ rendered: l });
|
|
99
|
+
}, [l, r]), h(() => () => {
|
|
101
100
|
r == null || r({ rendered: !1 });
|
|
102
|
-
}, [r]),
|
|
101
|
+
}, [r]), l ? /* @__PURE__ */ e(
|
|
103
102
|
H,
|
|
104
103
|
{
|
|
105
104
|
onClose: a,
|
|
106
|
-
isClosing:
|
|
105
|
+
isClosing: p,
|
|
107
106
|
title: u,
|
|
108
|
-
caption:
|
|
109
|
-
onPlay:
|
|
107
|
+
caption: s,
|
|
108
|
+
onPlay: f,
|
|
110
109
|
vastUrl: i,
|
|
111
|
-
options:
|
|
110
|
+
options: m
|
|
112
111
|
}
|
|
113
112
|
) : null;
|
|
114
113
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const PauseAdOverlay: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const PauseAdContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const PauseAdGradientLeft: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
3
|
export declare const PauseAdGradientRight: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
4
|
export declare const PauseAdGradientBottom: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
5
|
export declare const PauseAdTopLeft: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -9,4 +8,5 @@ export declare const PauseAdCaption: import('@linaria/react').StyledComponent<im
|
|
|
9
8
|
export declare const PauseAdBottomLeft: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
9
|
export declare const PauseAdPlayButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
11
10
|
export declare const PauseAdSidebar: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
11
|
+
export declare const PauseAdTitleDescription: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
12
12
|
export declare const ExternalAdContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
@@ -8,39 +8,39 @@ const e = /* @__PURE__ */ s("div")({
|
|
|
8
8
|
class: "p8lpomy",
|
|
9
9
|
propsAsIs: !1
|
|
10
10
|
}), o = /* @__PURE__ */ s("div")({
|
|
11
|
-
name: "PauseAdGradientLeft",
|
|
12
|
-
class: "pv7u167",
|
|
13
|
-
propsAsIs: !1
|
|
14
|
-
}), n = /* @__PURE__ */ s("div")({
|
|
15
11
|
name: "PauseAdGradientRight",
|
|
16
|
-
class: "
|
|
12
|
+
class: "pv7u167",
|
|
17
13
|
propsAsIs: !1
|
|
18
14
|
}), p = /* @__PURE__ */ s("div")({
|
|
19
15
|
name: "PauseAdGradientBottom",
|
|
20
|
-
class: "
|
|
16
|
+
class: "p1kh2yb0",
|
|
21
17
|
propsAsIs: !1
|
|
22
|
-
}),
|
|
18
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
23
19
|
name: "PauseAdTopLeft",
|
|
24
|
-
class: "
|
|
20
|
+
class: "pl8f94x",
|
|
25
21
|
propsAsIs: !1
|
|
26
|
-
}),
|
|
22
|
+
}), d = /* @__PURE__ */ s("h2")({
|
|
27
23
|
name: "PauseAdTitle",
|
|
28
|
-
class: "
|
|
24
|
+
class: "p1m6zmrt",
|
|
29
25
|
propsAsIs: !1
|
|
30
|
-
}),
|
|
26
|
+
}), l = /* @__PURE__ */ s("p")({
|
|
31
27
|
name: "PauseAdCaption",
|
|
32
|
-
class: "
|
|
28
|
+
class: "pm3vwfa",
|
|
33
29
|
propsAsIs: !1
|
|
34
|
-
}),
|
|
30
|
+
}), A = /* @__PURE__ */ s("div")({
|
|
35
31
|
name: "PauseAdBottomLeft",
|
|
36
|
-
class: "
|
|
32
|
+
class: "p1tibuhw",
|
|
37
33
|
propsAsIs: !1
|
|
38
|
-
}),
|
|
34
|
+
}), r = /* @__PURE__ */ s("button")({
|
|
39
35
|
name: "PauseAdPlayButton",
|
|
40
|
-
class: "
|
|
36
|
+
class: "ptqqrqd",
|
|
41
37
|
propsAsIs: !1
|
|
42
|
-
}),
|
|
38
|
+
}), i = /* @__PURE__ */ s("div")({
|
|
43
39
|
name: "PauseAdSidebar",
|
|
40
|
+
class: "p14estxv",
|
|
41
|
+
propsAsIs: !1
|
|
42
|
+
}), u = /* @__PURE__ */ s("span")({
|
|
43
|
+
name: "PauseAdTitleDescription",
|
|
44
44
|
class: "p1dpvfl1",
|
|
45
45
|
propsAsIs: !1
|
|
46
46
|
}), c = /* @__PURE__ */ s("img")({
|
|
@@ -50,15 +50,15 @@ const e = /* @__PURE__ */ s("div")({
|
|
|
50
50
|
});
|
|
51
51
|
export {
|
|
52
52
|
c as ExternalAdContainer,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
A as PauseAdBottomLeft,
|
|
54
|
+
l as PauseAdCaption,
|
|
55
55
|
t as PauseAdContent,
|
|
56
56
|
p as PauseAdGradientBottom,
|
|
57
|
-
o as
|
|
58
|
-
n as PauseAdGradientRight,
|
|
57
|
+
o as PauseAdGradientRight,
|
|
59
58
|
e as PauseAdOverlay,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
r as PauseAdPlayButton,
|
|
60
|
+
i as PauseAdSidebar,
|
|
61
|
+
d as PauseAdTitle,
|
|
62
|
+
u as PauseAdTitleDescription,
|
|
63
|
+
n as PauseAdTopLeft
|
|
64
64
|
};
|
|
@@ -3,10 +3,10 @@ import { updateAllLayouts as ee } from "@noriginmedia/norigin-spatial-navigation
|
|
|
3
3
|
import { withFocusable as oe } from "../../useTvButton.js";
|
|
4
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
|
|
6
|
+
import { PromotionType as i, AutoPlayVideo as te, PlayVideoMuted as de } from "@streamlayer/sdk-web-types";
|
|
7
7
|
import { SvgIcon as T } from "../../../../ui/icons/index.js";
|
|
8
8
|
import { PromoAction as ae } from "./PromoAction.js";
|
|
9
|
-
import { Wrap as ne, Container as
|
|
9
|
+
import { Wrap as ne, Container as re, Header as ie, BrandBlock as le, LogoIcon as pe, BrandText as se, BrandNameContainer as ce, BrandName as ye, Sponsored as ue, CloseIcon as me, 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
10
|
const Re = oe(Me, {
|
|
11
11
|
isFocusBoundary: !0
|
|
12
12
|
}), Ce = (j) => {
|
|
@@ -16,19 +16,19 @@ const Re = oe(Me, {
|
|
|
16
16
|
open: c,
|
|
17
17
|
togglePause: a,
|
|
18
18
|
controlVideo: s,
|
|
19
|
-
promotionId:
|
|
19
|
+
promotionId: r,
|
|
20
20
|
onClose: b,
|
|
21
21
|
markAsViewed: A,
|
|
22
22
|
advertisementPaused: H,
|
|
23
23
|
isEventFired: o,
|
|
24
24
|
fireEvent: t,
|
|
25
25
|
muted: $
|
|
26
|
-
} = j, q = k(null), B = k(null), [M, z] = I(0), K = e.type ===
|
|
27
|
-
let
|
|
28
|
-
return
|
|
26
|
+
} = j, q = k(null), B = k(null), [M, z] = I(0), K = e.type === i.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 === i.INGAME_IAB11_LBAR || e.type === i.INGAME_IAB11 || e.type === i.INGAME_IAB11_SIDEBAR, [f, X] = I(!0), [Y, Z] = I(void 0);
|
|
27
|
+
let u = (w = e.banner) == null ? void 0 : w.url;
|
|
28
|
+
return u && !u.startsWith("http") && (u = `https://${u}`), h(() => {
|
|
29
29
|
if (!B.current) return;
|
|
30
|
-
const n = new ResizeObserver(([
|
|
31
|
-
const E =
|
|
30
|
+
const n = new ResizeObserver(([m]) => {
|
|
31
|
+
const E = m.contentRect.width;
|
|
32
32
|
z(E);
|
|
33
33
|
});
|
|
34
34
|
return n.observe(B.current), ee(), () => {
|
|
@@ -37,22 +37,32 @@ const Re = oe(Me, {
|
|
|
37
37
|
}, []), h(() => {
|
|
38
38
|
a == null || a(R || y), c == null || c();
|
|
39
39
|
}, [R, y, c, a]), h(() => {
|
|
40
|
-
|
|
41
|
-
}, [
|
|
40
|
+
r && e.type && A && A();
|
|
41
|
+
}, [r, e.type, A]), h(() => () => {
|
|
42
42
|
s == null || s({ muted: !1 });
|
|
43
|
-
}, [s]), /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ l(
|
|
44
|
-
/* @__PURE__ */ l(
|
|
43
|
+
}, [s]), /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ l(re, { ref: B, children: [
|
|
44
|
+
/* @__PURE__ */ l(ie, { children: [
|
|
45
45
|
e.logoMode === 1 && /* @__PURE__ */ l(le, { children: [
|
|
46
46
|
/* @__PURE__ */ d(pe, { src: (P = e.sponsor) == null ? void 0 : P.logo, alt: "Logo" }),
|
|
47
47
|
/* @__PURE__ */ l(se, { children: [
|
|
48
48
|
/* @__PURE__ */ d(ce, { children: /* @__PURE__ */ d(ye, { children: (S = e.sponsor) == null ? void 0 : S.name }) }),
|
|
49
|
-
/* @__PURE__ */ d(
|
|
49
|
+
/* @__PURE__ */ d(ue, { children: "SPONSORED" })
|
|
50
50
|
] })
|
|
51
51
|
] }),
|
|
52
|
-
e.logoMode === 2 && e.type ===
|
|
53
|
-
/* @__PURE__ */ d(
|
|
52
|
+
e.logoMode === 2 && e.type === i.INGAME_IAB11_LBAR && /* @__PURE__ */ d("img", { src: (g = e.sponsor) == null ? void 0 : g.logo, alt: "Video paused preview", style: { height: "56px" } }),
|
|
53
|
+
/* @__PURE__ */ d(
|
|
54
|
+
Re,
|
|
55
|
+
{
|
|
56
|
+
autoFocus: !0,
|
|
57
|
+
options: { focusKey: "close-ad-button" },
|
|
58
|
+
webos: !0,
|
|
59
|
+
onClick: b,
|
|
60
|
+
"data-close-btn": "true",
|
|
61
|
+
children: /* @__PURE__ */ d(me, {})
|
|
62
|
+
}
|
|
63
|
+
)
|
|
54
64
|
] }),
|
|
55
|
-
e.logoMode === 2 && e.type !==
|
|
65
|
+
e.logoMode === 2 && e.type !== i.INGAME_IAB11_LBAR && /* @__PURE__ */ d(
|
|
56
66
|
"img",
|
|
57
67
|
{
|
|
58
68
|
src: (L = e.sponsor) == null ? void 0 : L.logo,
|
|
@@ -86,7 +96,7 @@ const Re = oe(Me, {
|
|
|
86
96
|
o != null && o("video-rendered") || (p.emit("advertisement", {
|
|
87
97
|
action: "videoRendered",
|
|
88
98
|
payload: {
|
|
89
|
-
id:
|
|
99
|
+
id: r,
|
|
90
100
|
type: e.type
|
|
91
101
|
}
|
|
92
102
|
}), t == null || t("video-rendered"));
|
|
@@ -95,21 +105,21 @@ const Re = oe(Me, {
|
|
|
95
105
|
o != null && o(`video-quartile-${n}`) || (p.emit("advertisement", {
|
|
96
106
|
action: "quartileCompleted",
|
|
97
107
|
payload: {
|
|
98
|
-
id:
|
|
108
|
+
id: r,
|
|
99
109
|
type: e.type,
|
|
100
110
|
quartile: n
|
|
101
111
|
}
|
|
102
112
|
}), t == null || t(`video-quartile-${n}`));
|
|
103
113
|
},
|
|
104
114
|
onMute: (n) => {
|
|
105
|
-
const
|
|
106
|
-
o != null && o(
|
|
115
|
+
const m = n ? "muted" : "unmuted";
|
|
116
|
+
o != null && o(m) || (p.emit("advertisement", {
|
|
107
117
|
action: n ? "videoMuted" : "videoUnmuted",
|
|
108
118
|
payload: {
|
|
109
|
-
id:
|
|
119
|
+
id: r,
|
|
110
120
|
type: e.type
|
|
111
121
|
}
|
|
112
|
-
}), t == null || t(
|
|
122
|
+
}), t == null || t(m)), Z(n);
|
|
113
123
|
},
|
|
114
124
|
onPause: () => {
|
|
115
125
|
a == null || a(!0), X(!1);
|
|
@@ -118,7 +128,7 @@ const Re = oe(Me, {
|
|
|
118
128
|
o != null && o("replayed") || (p.emit("advertisement", {
|
|
119
129
|
action: "videoReplayed",
|
|
120
130
|
payload: {
|
|
121
|
-
id:
|
|
131
|
+
id: r,
|
|
122
132
|
type: e.type
|
|
123
133
|
}
|
|
124
134
|
}), t == null || t("replayed"));
|
|
@@ -127,13 +137,13 @@ const Re = oe(Me, {
|
|
|
127
137
|
o != null && o("played") || (p.emit("advertisement", {
|
|
128
138
|
action: "videoPlay",
|
|
129
139
|
payload: {
|
|
130
|
-
id:
|
|
140
|
+
id: r,
|
|
131
141
|
type: e.type
|
|
132
142
|
}
|
|
133
143
|
}), t == null || t("played")), a == null || a(!1), o != null && o("played") && (o != null && o("ended")) && !(o != null && o("replayed")) && (p.emit("advertisement", {
|
|
134
144
|
action: "videoReplayed",
|
|
135
145
|
payload: {
|
|
136
|
-
id:
|
|
146
|
+
id: r,
|
|
137
147
|
type: e.type
|
|
138
148
|
}
|
|
139
149
|
}), t == null || t("replayed"));
|
|
@@ -142,7 +152,7 @@ const Re = oe(Me, {
|
|
|
142
152
|
o != null && o("ended") || (p.emit("advertisement", {
|
|
143
153
|
action: "videoEnd",
|
|
144
154
|
payload: {
|
|
145
|
-
id:
|
|
155
|
+
id: r,
|
|
146
156
|
type: e.type
|
|
147
157
|
}
|
|
148
158
|
}), t == null || t("ended"));
|
|
@@ -163,7 +173,7 @@ const Re = oe(Me, {
|
|
|
163
173
|
"MUTED"
|
|
164
174
|
] })
|
|
165
175
|
] }),
|
|
166
|
-
e.type !==
|
|
176
|
+
e.type !== i.INGAME_IAB11 && e.type !== i.INGAME_IAB11_LBAR && e.type !== i.INGAME_IAB11_SIDEBAR && /* @__PURE__ */ l(F, { children: [
|
|
167
177
|
/* @__PURE__ */ d(Ie, { children: (v = e.banner) == null ? void 0 : v.title }),
|
|
168
178
|
/* @__PURE__ */ d(be, { children: (W = e.banner) == null ? void 0 : W.body })
|
|
169
179
|
] }),
|