@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.
Files changed (39) hide show
  1. package/lib/app/app/Layout/styles.d.ts +1 -0
  2. package/lib/app/app/Layout/styles.js +33 -24
  3. package/lib/app/webos/Advertisement/AdvertisementUI.d.ts +0 -1
  4. package/lib/app/webos/Advertisement/AdvertisementUI.js +13 -15
  5. package/lib/app/webos/Advertisement/index.js +10 -11
  6. package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +2 -0
  7. package/lib/app/webos/ExposedPauseAd/PauseAd.js +92 -70
  8. package/lib/app/webos/ExposedPauseAd/styles.d.ts +1 -1
  9. package/lib/app/webos/ExposedPauseAd/styles.js +5 -5
  10. package/lib/app/webos/index.d.ts +4 -0
  11. package/lib/app/webos/index.js +38 -36
  12. package/lib/app/webos/story.js +47 -36
  13. package/lib/app/webos/ui/Sidebar/PromoAction.js +38 -34
  14. package/lib/app/webos/ui/Sidebar/index.d.ts +0 -1
  15. package/lib/app/webos/ui/Sidebar/index.js +70 -71
  16. package/lib/app/webos/ui/Sidebar/styles.d.ts +1 -0
  17. package/lib/app/webos/ui/Sidebar/styles.js +120 -115
  18. package/lib/app/webos/ui/insight/index.js +43 -77
  19. package/lib/assets/style.css +1 -1
  20. package/lib/{index-DXvAPWiE.js → index-l-eyvmpL.js} +296 -281
  21. package/lib/ui/advertisement/notification/index.js +24 -24
  22. package/lib/ui/advertisement/notification/lower-third/index.js +48 -40
  23. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +8 -7
  24. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.d.ts +9 -0
  25. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js +44 -0
  26. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +240 -6
  27. package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +62 -52
  28. package/lib/ui/video-player/index.d.ts +1 -0
  29. package/lib/ui/video-player/index.js +138 -125
  30. package/lib/ui/video-player/styles.d.ts +1 -0
  31. package/lib/ui/video-player/styles.js +32 -27
  32. package/lib/{useVastAds-CakWRNKN.js → vast-client.min-B0NUra1B.js} +358 -594
  33. package/package.json +17 -17
  34. package/lib/app/webos/ui/Layout/index.d.ts +0 -21
  35. package/lib/app/webos/ui/Layout/index.js +0 -78
  36. package/lib/app/webos/ui/Layout/styles.d.ts +0 -11
  37. package/lib/app/webos/ui/Layout/styles.js +0 -59
  38. package/lib/hooks/useKeyboardNavigation.d.ts +0 -15
  39. package/lib/hooks/useKeyboardNavigation.js +0 -74
@@ -1,29 +1,30 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import i from "hls.js";
3
- import { useRef as m, useState as d, useEffect as u } from "react";
4
- import { StreamLayerProvider as p, useStreamLayer as l, useStreamLayerUI as f } from "@streamlayer/react";
5
- import { useStreamLayerDebug as y } from "../../utils/debug/index.js";
6
- import { StreamLayerSDKTv as S } from "./index.js";
7
- const h = ({ src: r }) => {
8
- const e = m(), s = m(), [t, o] = d(r);
9
- return u(() => {
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]), u(() => () => {
12
- s.current && clearTimeout(s.current);
13
- }, []), u(() => {
12
+ }, [r]), i(() => () => {
13
+ n.current && clearTimeout(n.current);
14
+ }, []), i(() => {
14
15
  if (t && t.includes("m3u8"))
15
- if (i.isSupported() && e.current) {
16
- const a = new i({
16
+ if (c.isSupported() && e.current) {
17
+ const s = new c({
17
18
  debug: !1
18
19
  });
19
- a.loadSource(t), a.attachMedia(e.current);
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((a) => {
23
- var c;
24
- console.error(a), (c = e.current) == null || c.play();
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__ */ n(
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
- }, b = () => {
41
- const r = l(), [e, s] = d("");
42
- return u(() => r ? r.streamSummary().subscribe((t) => {
43
- var o, a;
44
- (a = (o = t.data) == null ? void 0 : o.summary) != null && a.stream && s(t.data.summary.stream);
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__ */ n(
47
- h,
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
- }, g = ({ persistent: r }) => {
53
- const e = l(), s = f();
54
- return e ? /* @__PURE__ */ n(S, { sdk: e, persistent: r, uiState: s, children: /* @__PURE__ */ n(b, {}) }) : null;
55
- }, T = ({ sdkKey: r, eventId: e, persistent: s, production: t }) => {
56
- const o = y({ sdkKey: r, eventId: e, production: t });
57
- return /* @__PURE__ */ n(
58
- p,
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__ */ n(g, { persistent: s })
78
+ children: /* @__PURE__ */ a(L, { persistent: n })
68
79
  }
69
80
  );
70
81
  };
71
82
  export {
72
- h as Player,
73
- T as WebOSStory
83
+ w as Player,
84
+ P as WebOSStory
74
85
  };
@@ -1,53 +1,57 @@
1
- import { jsxs as n, jsx as c, Fragment as P } from "react/jsx-runtime";
2
- import { withFocusable as H } from "../../useTvButton.js";
3
- import { PromotionButtonType as r, PromotionType as _ } from "@streamlayer/sdk-web-types";
4
- import { QRBlock as u, QR as E, QRDescBlock as A, LearnMore as O, QRHint as C, SendToUserButton as a, EnvelopeIcon as x, SendToUserText as Q } from "./styles.js";
5
- const W = H(a), i = ({ promotion: e, onClose: M }) => {
6
- var d, R, h, N, s, B, S, b, I, D, f, L, U;
7
- const l = e.buttonType, y = e.coupon, t = (d = e.banner) == null ? void 0 : d.url, T = e.type;
8
- return l === r.BASIC ? /* @__PURE__ */ n(u, { children: [
9
- t && /* @__PURE__ */ c(E, { value: t }),
10
- /* @__PURE__ */ n(A, { children: [
11
- /* @__PURE__ */ c(O, { children: "LEARN MORE" }),
12
- /* @__PURE__ */ c(C, { children: "SCAN QR CODE WITH YOUR PHONE CAMERA" })
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
- ] }) : l === r.ADD_TO_WALLET ? /* @__PURE__ */ n(u, { children: [
14
+ ] }) : r === n.ADD_TO_WALLET ? /* @__PURE__ */ t(u, { children: [
15
15
  /* @__PURE__ */ c(E, { value: y }),
16
- /* @__PURE__ */ n(A, { children: [
17
- /* @__PURE__ */ c(O, { style: { fontSize: 18, fontWeight: 400 }, children: "ADD TO APPLE WALLET" }),
18
- /* @__PURE__ */ c(C, { style: { fontSize: 17 }, children: "SCAN QR CODE WITH YOUR PHONE CAMERA" })
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
- ] }) : l === r.SEND_TO_USER && T !== _.INGAME_IAB11_LBAR ? /* @__PURE__ */ n(P, { children: [
21
- /* @__PURE__ */ n(
22
- a,
20
+ ] }) : r === n.SEND_TO_USER && T !== _.INGAME_IAB11_LBAR ? /* @__PURE__ */ t(P, { children: [
21
+ /* @__PURE__ */ t(
22
+ C,
23
23
  {
24
- backgroundColor: (h = (R = e == null ? void 0 : e.banner) == null ? void 0 : R.ctaButton) == null ? void 0 : h.color,
25
- textColor: (s = (N = e == null ? void 0 : e.banner) == null ? void 0 : N.ctaButton) == null ? void 0 : s.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__ */ n(u, { children: [
33
- t && /* @__PURE__ */ c(E, { value: t }),
34
- /* @__PURE__ */ n(A, { children: [
35
- /* @__PURE__ */ c(O, { children: "LEARN MORE" }),
36
- /* @__PURE__ */ c(C, { children: "SCAN QR CODE WITH YOUR PHONE CAMERA" })
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
- ] }) : l === r.SEND_TO_USER && T === _.INGAME_IAB11_LBAR ? /* @__PURE__ */ n(
40
- a,
41
+ ] }) : r === n.SEND_TO_USER && T === _.INGAME_IAB11_LBAR ? /* @__PURE__ */ t(
42
+ C,
41
43
  {
42
- backgroundColor: (S = (B = e == null ? void 0 : e.banner) == null ? void 0 : B.ctaButton) == null ? void 0 : S.color,
43
- textColor: (I = (b = e == null ? void 0 : e.banner) == null ? void 0 : b.ctaButton) == null ? void 0 : I.textColor,
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(Q, { children: "SEND INFO TO ACCOUNT EMAIL" })
50
+ /* @__PURE__ */ c(H, { children: "SEND INFO TO ACCOUNT EMAIL" })
47
51
  ]
48
52
  }
49
- ) : l === r.RETURN_TO_VIDEO ? /* @__PURE__ */ c(
50
- W,
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
- i as PromoAction
66
+ w as PromoAction
63
67
  };
@@ -16,6 +16,5 @@ export type OverlayProps = {
16
16
  fireEvent: Advertisement['fireEvent'];
17
17
  muted?: boolean;
18
18
  toggleMute: (flag: boolean) => void;
19
- isMuted?: boolean;
20
19
  };
21
20
  export declare const TVSidebar: React.FC<OverlayProps>;
@@ -1,57 +1,56 @@
1
- import { jsx as d, jsxs as l, Fragment as X } from "react/jsx-runtime";
2
- import { updateAllLayouts as Y } from "@noriginmedia/norigin-spatial-navigation";
3
- import { withFocusable as Z } from "../../useTvButton.js";
4
- import { useRef as k, useState as E, useEffect as h } from "react";
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 F, PlayVideoMuted as ee } from "@streamlayer/sdk-web-types";
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 oe } from "./PromoAction.js";
9
- import { Container as te, Header as de, BrandBlock as ae, LogoIcon as ne, BrandText as ie, BrandNameContainer as re, BrandName as le, Sponsored as pe, CloseIcon as ce, VideoBlock as se, VideoWrapper as ye, FocusableVideo as me, VideoStatus as W, Title as ue, Description as he, CloseButton as Ae } from "./styles.js";
10
- const Be = Z(Ae, {
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
- }), Se = (O) => {
13
- var _, V, N, w, S, g, L, P, C, G, D, v, x, U;
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: y,
16
+ open: c,
17
17
  togglePause: a,
18
- controlVideo: c,
19
- promotionId: n,
18
+ controlVideo: s,
19
+ promotionId: i,
20
20
  onClose: b,
21
21
  markAsViewed: A,
22
- advertisementPaused: j,
22
+ advertisementPaused: H,
23
23
  isEventFired: o,
24
24
  fireEvent: t,
25
- muted: $,
26
- isMuted: I
27
- } = O, H = k(null), B = k(null), [M, q] = E(0), z = e.type === r.INGAME_IAB11_LBAR ? M : M / 2, R = !!((V = (_ = e.banner) == null ? void 0 : _.video) != null && V.url), s = e.autoPlayVideo === F.ENABLED, f = e.playVideoMuted === ee.ENABLED, K = f && s, Q = e.type === r.INGAME_IAB11_LBAR || e.type === r.INGAME_IAB11 || e.type === r.INGAME_IAB11_SIDEBAR;
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 i = new ResizeObserver(([u]) => {
32
- const J = u.contentRect.width;
33
- q(J);
30
+ const n = new ResizeObserver(([u]) => {
31
+ const E = u.contentRect.width;
32
+ z(E);
34
33
  });
35
- return i.observe(B.current), Y(), () => {
36
- i.disconnect();
34
+ return n.observe(B.current), ee(), () => {
35
+ n.disconnect();
37
36
  };
38
37
  }, []), h(() => {
39
- a == null || a(R || s), y == null || y();
40
- }, [R, s, y, a]), h(() => {
41
- n && e.type && A && A();
42
- }, [n, e.type, A]), h(() => () => {
43
- c == null || c({ muted: !1 });
44
- }, [c]), /* @__PURE__ */ d("div", { children: /* @__PURE__ */ l(te, { ref: B, children: [
45
- /* @__PURE__ */ l(de, { children: [
46
- e.logoMode === 1 && /* @__PURE__ */ l(ae, { children: [
47
- /* @__PURE__ */ d(ne, { src: (w = e.sponsor) == null ? void 0 : w.logo, alt: "Logo" }),
48
- /* @__PURE__ */ l(ie, { children: [
49
- /* @__PURE__ */ d(re, { children: /* @__PURE__ */ d(le, { children: (S = e.sponsor) == null ? void 0 : S.name }) }),
50
- /* @__PURE__ */ d(pe, { children: "SPONSORED" })
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(Be, { options: { focusKey: "close-ad-button" }, webos: !0, onClick: b, "data-close-btn": "true", children: /* @__PURE__ */ d(ce, {}) })
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
- ((P = e.banner) == null ? void 0 : P.imageUrl) && /* @__PURE__ */ d(se, { style: { height: z }, children: /* @__PURE__ */ d(
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: (C = e.banner) == null ? void 0 : C.imageUrl,
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
- ((G = e.banner) == null ? void 0 : G.video) && /* @__PURE__ */ l(ye, { children: [
76
+ ((D = e.banner) == null ? void 0 : D.video) && /* @__PURE__ */ l(Ae, { children: [
78
77
  /* @__PURE__ */ d(
79
- me,
78
+ Be,
80
79
  {
81
80
  source: e.banner.video.url,
82
- poster: (v = (D = e.banner) == null ? void 0 : D.video) == null ? void 0 : v.thumbnailUrl,
81
+ poster: (U = (x = e.banner) == null ? void 0 : x.video) == null ? void 0 : U.thumbnailUrl,
83
82
  webos: !0,
84
- aspectRatio: Q ? "1/1" : "2/1",
85
- ref: H,
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: n,
89
+ id: i,
91
90
  type: e.type
92
91
  }
93
92
  }), t == null || t("video-rendered"));
94
93
  },
95
- onQuartile: (i) => {
96
- o != null && o(`video-quartile-${i}`) || (p.emit("advertisement", {
94
+ onQuartile: (n) => {
95
+ o != null && o(`video-quartile-${n}`) || (p.emit("advertisement", {
97
96
  action: "quartileCompleted",
98
97
  payload: {
99
- id: n,
98
+ id: i,
100
99
  type: e.type,
101
- quartile: i
100
+ quartile: n
102
101
  }
103
- }), t == null || t(`video-quartile-${i}`));
102
+ }), t == null || t(`video-quartile-${n}`));
104
103
  },
105
- onMute: (i) => {
106
- const u = i ? "muted" : "unmuted";
104
+ onMute: (n) => {
105
+ const u = n ? "muted" : "unmuted";
107
106
  o != null && o(u) || (p.emit("advertisement", {
108
- action: i ? "videoMuted" : "videoUnmuted",
107
+ action: n ? "videoMuted" : "videoUnmuted",
109
108
  payload: {
110
- id: n,
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
- s && (a == null || a(!0));
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: n,
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: n,
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: n,
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: n,
145
+ id: i,
147
146
  type: e.type
148
147
  }
149
148
  }), t == null || t("ended"));
150
149
  },
151
150
  muted: $,
152
- autoPlay: s,
153
- playMuted: f,
154
- controlVideo: c
151
+ autoPlay: y,
152
+ playMuted: V,
153
+ controlVideo: s,
154
+ hasNotPausedVideo: f
155
155
  }
156
156
  ),
157
- j && /* @__PURE__ */ l(W, { children: [
157
+ H && !f && /* @__PURE__ */ l(O, { children: [
158
158
  /* @__PURE__ */ d(T, { name: "icon-pause" }),
159
159
  "PAUSED"
160
160
  ] }),
161
- (I || K && I === void 0) && /* @__PURE__ */ l(W, { children: [
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(X, { children: [
168
- /* @__PURE__ */ d(ue, { children: (x = e.banner) == null ? void 0 : x.title }),
169
- /* @__PURE__ */ d(he, { children: (U = e.banner) == null ? void 0 : U.body })
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(oe, { promotion: e, onClose: b })
170
+ /* @__PURE__ */ d(ae, { promotion: e, onClose: b })
172
171
  ] }) });
173
172
  };
174
173
  export {
175
- Se as TVSidebar
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>>;