@viewlift/player-backup 2.0.35-smarttv → 2.0.36-smarttv
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/cjs/autoNextVideo-5c61b9cb.js +1 -0
- package/cjs/bundle.css +2 -2
- package/cjs/{features-d8e95dc9.js → features-5dabcea5.js} +1 -1
- package/cjs/{index-22c51eee.js → index-991b30f4.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{playlist-01fd8996.js → playlist-350baa1e.js} +1 -1
- package/cjs/{renditions-6ca861f3.js → renditions-24aeeea9.js} +1 -1
- package/cjs/{series-v2-d21309ce.js → series-v2-6e8cbcda.js} +1 -1
- package/cjs/{series-v2-264f1274.js → series-v2-8756ac9e.js} +1 -1
- package/cjs/{settings-icon-574dc30a.js → settings-icon-9b3d3788.js} +1 -1
- package/cjs/{skin-a7171b70.js → skin-a4eabf7a.js} +1 -1
- package/cjs/{skin-4e236315.js → skin-c45387ad.js} +1 -1
- package/cjs/{skin-d1f05fdb.js → skin-c81d6add.js} +1 -1
- package/cjs/{skin-6ed10ade.js → skin-eac0a0fb.js} +1 -1
- package/cjs/{videoSelector-6fc58bce.js → videoSelector-2c94e849.js} +1 -1
- package/cjs/{videoSelector-68b2ef10.js → videoSelector-d97ab3f8.js} +1 -1
- package/esm/autoNextVideo-56f70964.js +1 -0
- package/esm/bundle.css +2 -2
- package/esm/{caption-settings-b11a19b3.js → caption-settings-088e70f5.js} +1 -1
- package/esm/{features-9a77b3ec.js → features-84286390.js} +1 -1
- package/esm/{index-caeb7f58.js → index-0c0f2cb0.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{multicamv2-1b6bbad6.js → multicamv2-1dbc6fd3.js} +1 -1
- package/esm/nextEpisodeButton-518b5e22.js +1 -0
- package/esm/{playlist-606bdc1a.js → playlist-603ebd69.js} +1 -1
- package/esm/{renditions-7724f87c.js → renditions-7f946d48.js} +1 -1
- package/esm/{series-v2-a9bd9cce.js → series-v2-a5c6cd10.js} +1 -1
- package/esm/{series-v2-e6464c17.js → series-v2-b59f854c.js} +1 -1
- package/esm/{settings-icon-51763bdf.js → settings-icon-cccc4c93.js} +1 -1
- package/esm/{skin-9c71c31d.js → skin-9c36b83f.js} +1 -1
- package/esm/{skin-3c8134ab.js → skin-b9b4babd.js} +1 -1
- package/esm/{skin-bb1155ba.js → skin-cc14c02c.js} +1 -1
- package/esm/{skin-31efcd21.js → skin-d432bcd8.js} +1 -1
- package/esm/{util-7ef0c31b.js → util-1b598a26.js} +1 -1
- package/esm/{videoSelector-c91fa81d.js → videoSelector-08019968.js} +1 -1
- package/esm/{videoSelector-4c015dd4.js → videoSelector-d11c7ff1.js} +1 -1
- package/package.json +1 -1
- package/cjs/autoNextVideo-2ff24f68.js +0 -1
- package/cjs/videojs_contrib_dash-9a5f4c2b.js +0 -1
- package/esm/autoNextVideo-fc102a98.js +0 -1
- package/esm/nextEpisodeButton-66506110.js +0 -1
- package/esm/videojs_contrib_dash-d8104535.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{f as e,g as r,h as o,d as s,e as t,i,j as l,k as a,l as n,m}from"./features-
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{f as e,g as r,h as o,d as s,e as t,i,j as l,k as a,l as n,m}from"./features-84286390.js";import{M as c,a as d,c as p,d as j}from"./icons-68d3a609.js";import{g as u,b}from"./skin-43755201.js";import y from"@babel/runtime-corejs3/core-js-stable/instance/includes";import{g as v}from"./renditions-7f946d48.js";import{g as f}from"./captions-2bcc449f.js";import{a as h,i as g,b as x}from"./index-0c0f2cb0.js";import{i as C,d as w}from"./browser-000da9e7.js";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"video.js";import"./generic-979547e7.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./autoNextVideo-56f70964.js";import"./util-1b598a26.js";import"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.string.split.js";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"@babel/runtime-corejs3/helpers/slicedToArray";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import"@babel/runtime-corejs3/core-js-stable/instance/flat";function V(s,t){var i=u(s);i&&(i.on("loadeddata",(function(){var o,l,a,n,m,c,d;(null===(o=v(s))||void 0===o?void 0:o.length)>0&&e(s,t),(null===(l=f(s))||void 0===l?void 0:l.length)>0&&r(s,t),!(null!=t&&null!==(a=t.series)&&void 0!==a&&a.enable||null!==(n=window)&&void 0!==n&&null!==(m=n.app_data)&&void 0!==m&&null!==(c=m.appcmsMain)&&void 0!==c&&null!==(d=c.features)&&void 0!==d&&d.auto_play)||null!=t&&t.liveVideo||h(s,t),function(e,r){var o,s,t=Math.floor(e/60),i=null===(o=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===o?void 0:o[0];i&&(i.style.marginRight=t>60?"56px":"41px");var l=document.getElementsByClassName("vjs-live-control")[0],a=document.getElementsByClassName("vjs-time-control");r&&y(s=l.classList.value).call(s,"vjs-hidden")&&(a[0].style.display="block",i&&(i.style.marginRight="56px"))}(i.duration(),(null==t?void 0:t.liveVideo)||!1),null!=t&&t.liveVideo||C()||g(s)})),i.one("play",(function(){var e,r,t,i;null!==(e=window)&&void 0!==e&&null!==(r=e.customData)&&void 0!==r&&r.iframeOverlayUrl&&o(s,null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i?void 0:i.iframeOverlayUrl)})))}function k(e,r){u(e).addClass("skin_defaultv2"),function(){"Chrome"==w()&&import("./chromett-a3cbb2e1.js").then((function(e){var r=document.createElement("style");r.id="chromett",r.append("".concat(e.default)),document.head.appendChild(r)}));import("./skin-e4b35c14.js").then((function(e){var r=document.createElement("style");r.id="default_v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}(),V(e,r),function(e,r){var o,s,t,i,l,a,n=u(e);null==n||null===(o=n.controlBar)||void 0===o||null===(s=o.getChild("FullscreenToggle"))||void 0===s||null===(t=s.el())||void 0===t||t.appendChild(b(c(window.controlsColor))),null==n||null===(i=n.controlBar)||void 0===i||null===(l=i.getChild("FullscreenToggle"))||void 0===l||null===(a=l.el())||void 0===a||a.appendChild(b(d(window.controlsColor)));var m=document.getElementsByClassName("vjs-time-control");r.liveVideo&&m[0]&&(m[0].style.display="none")}(e,r),function(e,r){var o,c,d,u,b,y;0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&s(e,"defaultV2",p());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&t(e,"defaultV2",j());r.liveVideo||i(e);(null==r||null===(o=r.relatedVideos)||void 0===o||null===(c=o.content)||void 0===c?void 0:c.length)>0&&l(e,null==r?void 0:r.relatedVideos);(null==r||null===(d=r.streams)||void 0===d?void 0:d.length)>1&&a(e,null==r?void 0:r.streams);(null==r||null===(u=r.playlist)||void 0===u||null===(b=u.content)||void 0===b?void 0:b.length)>0&&n(e,null==r?void 0:r.playlist);null!=r&&null!==(y=r.series)&&void 0!==y&&y.enable&&m(e,r)}(e,r),x(e,r)}export{k as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{a as e,b as r,c as s,d as o,e as t}from"./features-
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{a as e,b as r,c as s,d as o,e as t}from"./features-84286390.js";import{i}from"./keyboardShortcuts-6443082f.js";import{S as a,M as l,a as m,b as n,R as c,N as p}from"./icons-68d3a609.js";import{g as j,b as d}from"./skin-43755201.js";import{d as u}from"./generic-979547e7.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"video.js";import"./renditions-7f946d48.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function b(b,y){j(b).addClass("skin_default"),i(b,y),import("./skin-71be210e.js").then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(e,r){0==r.liveVideo&&0==r.liveui&&o(e,"default",n());(0==r.liveVideo&&0==r.liveui||1==r.liveui)&&t(e,"default",c())}(b,y),function(o,t){var i=j(o),l=(null==t?void 0:t.sres)||null;i.on("loadeddata",(function(){e(o,"default",a()),l&&import("./nextEpisodeButton-518b5e22.js").then((function(e){e.initaliseFunctionality(t.sres.seasons,u())}))})),i.one("loadedmetadata",(function(){var e;l&&(r(o,null==t||null===(e=t.sres)||void 0===e?void 0:e.seasons,t),s(t.sres,t.res,o))}))}(b,y),function(e,r){var s,o,t,i,a=j(e),n=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],u=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(n&&(n.style.display="none"),c&&(c.style.display="none"),u&&(u.style.display="none"));null===(s=a.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(o=s.el())||void 0===o||o.appendChild(d(l(window.controlsColor))),null===(t=a.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(i=t.el())||void 0===i||i.appendChild(d(m(window.controlsColor)));var b=a.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(d(p()));var y=document.createElement("div");y.classList.add("caption-header"),b.querySelector(".vjs-menu-content").insertBefore(y,b.querySelector(".vjs-menu-item"))}(b,y)}export{b as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,o as r,p as o,q as t}from"./features-9a77b3ec.js";import{g as s,t as n,p as a}from"./skin-43755201.js";import{a as i,i as l,b as c}from"./index-caeb7f58.js";import{i as m}from"./browser-000da9e7.js";import"videojs-contrib-quality-menu";import d from"video.js";import{k as u,i as p}from"./keyboardShortcuts-6443082f.js";import{l as j,S as b,e as v}from"./generic-979547e7.js";import"core-js/modules/es.function.name.js";import f from"@babel/runtime-corejs3/core-js-stable/object/keys";import y from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import h from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import g from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import k from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import S from"@babel/runtime-corejs3/core-js-stable/object/define-property";import w from"@babel/runtime-corejs3/core-js-stable/instance/slice";import x from"@babel/runtime-corejs3/core-js-stable/array/from";import C from"@babel/runtime-corejs3/core-js-stable/symbol";import I from"@babel/runtime-corejs3/core-js/get-iterator-method";import T from"@babel/runtime-corejs3/helpers/toConsumableArray";import M from"@babel/runtime-corejs3/helpers/slicedToArray";import B from"@babel/runtime-corejs3/helpers/defineProperty";import E from"@babel/runtime-corejs3/helpers/asyncToGenerator";import A from"@babel/runtime-corejs3/regenerator";import N from"@babel/runtime-corejs3/core-js-stable/json/stringify";import O from"@babel/runtime-corejs3/core-js-stable/url";import U from"@babel/runtime-corejs3/core-js-stable/instance/includes";import R from"@babel/runtime-corejs3/core-js-stable/object/entries";import P from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import D from"@babel/runtime-corejs3/core-js-stable/instance/map";import V from"@babel/runtime-corejs3/core-js-stable/array/is-array";import _ from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import q from"@babel/runtime-corejs3/core-js-stable/map";import L from"@babel/runtime-corejs3/core-js-stable/instance/concat";import Q from"@babel/runtime-corejs3/core-js-stable/instance/filter";import $ from"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.regexp.to-string.js";import{I as G}from"./icons-68d3a609.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"./renditions-7724f87c.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"./autoNextVideo-fc102a98.js";import"./util-7ef0c31b.js";import"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.string.split.js";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"core-js/modules/es.string.match.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/flat";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function F(r,o){var t=s(r);t&&(t.on("loadeddata",(function(){var e,t,n,a,c;!function(e){var r=s(e);r&&(null==r||r.qualityMenu,r.qualityMenu({useResolutionLabels:!0}))}(r),!(null!=o&&null!==(e=o.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(n=t.app_data)&&void 0!==n&&null!==(a=n.appcmsMain)&&void 0!==a&&null!==(c=a.features)&&void 0!==c&&c.auto_play)||null!=o&&o.liveVideo||i(r,o),null!=o&&o.liveVideo||m()||l(r)})),t.one("play",(function(){var o,t,s,n;null!==(o=window)&&void 0!==o&&null!==(t=o.customData)&&void 0!==t&&t.iframeOverlayUrl&&e(r,null===(s=window)||void 0===s||null===(n=s.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}function H(e,r){var o=void 0!==C&&I(e)||e["@@iterator"];if(!o){if(V(e)||(o=function(e,r){if(e){var o;if("string"==typeof e)return K(e,r);var t=w(o={}.toString.call(e)).call(o,8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?x(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?K(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){o&&(e=o);var t=0,s=function(){};return{s:s,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return a=e.done,e},e:function(e){i=!0,n=e},f:function(){try{a||null==o.return||o.return()}finally{if(i)throw n}}}}function K(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=Array(r);o<r;o++)t[o]=e[o];return t}function z(e,r){var o=f(e);if(y){var t=y(e);r&&(t=Q(t).call(t,(function(r){return h(e,r).enumerable}))),o.push.apply(o,t)}return o}function J(e){for(var r=1;r<arguments.length;r++){var o,t,s=null!=arguments[r]?arguments[r]:{};r%2?_(o=z(Object(s),!0)).call(o,(function(r){B(e,r,s[r])})):g?k(e,g(s)):_(t=z(Object(s))).call(t,(function(r){S(e,r,h(s,r))}))}return e}function W(){return W=E(A.mark((function e(r,o){var t,i,l,c,m,d,p,v,f,y,h,g,k,S,w,x,C,I,B;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B=function(e,o,t){var n=s(r);Math.floor(n.currentTime());var a,i,l,c,m,d,u,p,j,b,v,f,y,h,g=H(o);try{for(g.s();!(a=g.n()).done;)i=void 0,l=void 0,c=void 0,m=void 0,d=void 0,u=void 0,p=void 0,j=void 0,b=void 0,v=void 0,f=void 0,y=void 0,h=void 0,d=a.value,u=d.eventType,p=d.beaconUrls,j=d.startTimeInSeconds,b=d.startTime,v=d.durationInSeconds,f=Math.round(j),y=p[0],h=(null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l||null===(c=l.ads)||void 0===c?void 0:c.adEventHandler)||null,f!=Math.round(n.currentTime())||I.has(b)||(I.set(b,!0),"function"==typeof h&&h({adsData:{eventType:u,startTimeInSeconds:j,startTime:b,durationInSeconds:v,ad:null==e||null===(m=e.ads)||void 0===m?void 0:m[t],adIndex:t}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",u,"Fired:".concat(Math.round(n.currentTime())),"AD_POD:",e),fetch(y))}catch(e){g.e(e)}finally{g.f()}},C=function(e){var r,o,t=Math.floor(e/60),s=Math.floor(e%60);return L(r="".concat(t,":")).call(r,$(o=s.toString()).call(o,2,"0"))},w=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,s=H(o.split("&"));try{for(s.s();!(t=s.n()).done;){var n=t.value.split("="),a=M(n,2),i=a[0],l=a[1];r[decodeURIComponent(i)]=decodeURIComponent(l||"")}}catch(e){s.e(e)}finally{s.f()}for(var c={},m=0,d=R(r);m<d.length;m++){var u=M(d[m],2),p=u[0],j=u[1];if(P(p).call(p,"ads."))c[p.replace(/^ads\./,"")]=j;else c[p]=j}return c},t=s(r),i=o.replace("dash","session").replace("master","session"),i=b(i,r,{}),l=w(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:N({adsParams:J({},l)})});case 10:return c=e.sent,e.next=13,c.json();case 13:m=e.sent,d="https://"+new O(i).hostname,p=m.trackingUrl,v=m.manifestUrl,f=d+p,y=d+v,console.log("%c TRACKING URL","background: #bdf369; color: #000",f),null!=o&&U(o).call(o,".mpd")?(g=(null==t||null===(h=t.currentSource())||void 0===h?void 0:h.keySystemOptions)||null,j(r,{src:y,type:"application/x-mpegURL",keySystemOptions:g})):(S=(null==t||null===(k=t.currentSource())||void 0===k?void 0:k.keySystems)||null,j(r,{src:y,type:"application/x-mpegURL",keySystems:S})),t.one("loadeddata",(function(){x(f)})),x=function(){var e=E(A.mark((function e(o){var t,i,l,c,m,d,p,j,b,v,f,y,h,g,k,S,w;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(o);case 2:return i=e.sent,e.next=5,i.json();case 5:l=e.sent,c=l.avails,m=[],d=s(r),p=d.controlBar.progressControl,j=p.seekBar.el(),D(c).call(c,(function(e){var r;V(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&m.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),_(m).call(m,(function(e){var r=e.markerPositionInSeconds,o=d.duration();if(!(r>o)){var t=r/o*100,s=document.createElement("div");s.className="vjs-seekbar-marker",s.style.left="".concat(t,"%"),s.style.position="absolute",s.style.top="0",s.style.bottom="0",s.style.width="2px",s.style.backgroundColor="#fecc09",s.style.left="".concat(t,"%"),s.style.pointerEvents="none",j.appendChild(s)}})),b=new q,v=-1,d.on("timeupdate",n((function(){var e=Math.floor(d.currentTime());if(e!==v){v=e;for(var r=!1,o=function(){var o=s[t],n=o.startTimeInSeconds,a=o.durationInSeconds,i=o.ads,l=Math.floor(n+a);if(e>=n&&e<=l){var c,m;r=!0,b.set(n,!0),u.disable(),p.el().style.visibility="hidden";for(var d=e-n,j=0,v=0,y=0;y<i.length;y++){var h,g=null==i||null===(h=i[y])||void 0===h?void 0:h.durationInSeconds;if(d<j+g){v=y;break}j+=g}var k=i[v],w=d-j,x=Math.max(0,k.durationInSeconds-w),I=Math.round(x);f.style.display="block",S.textContent=L(c=L(m="".concat(v+1," of ")).call(m,i.length," • ")).call(c,C(I));var M=[];return _(i).call(i,(function(e){var r,o=Q(r=e.trackingEvents).call(r,(function(e){var r;return U(r=["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"]).call(r,e.eventType)}));M.push.apply(M,T(o))})),B(o,M,v),"break"}},t=0,s=m;t<s.length;t++){if("break"===o())break}r||(f.style.display="none",p.el().style.visibility="visible",u.enable())}}),1e3)),d.on("seeked",(function(){for(var e=null,r=0,o=m;r<o.length;r++){var t=o[r],s=null==d?void 0:d.currentTime(),n=t.startTimeInSeconds,a=t.durationInSeconds;s>Math.floor(n+a)&&!b.has(n)&&(e=n,b.set(n,!0))}e&&(d.currentTime(e),console.log("seeking back to",e),e=null)})),(f=document.createElement("div")).className="ssai-ad-container",(y=document.createElement("div")).className="sponsored-adbox",(h=document.createElement("div")).className="sponsored-text",h.textContent="Sponsored Ad",(g=document.createElement("div")).className="ad-info-icon",k=a(G()),g.appendChild(k),y.append(h),y.append(g),(S=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(w=document.createElement("div")).className="ad-visit-advertiser",w.textContent="Visit Advertiser",(null===(t=document.getElementsByClassName("tvProviderImage"))||void 0===t?void 0:t[0])&&(w.style.right="8.6rem"),f.append(y),f.append(S),f.append(w),d.el().appendChild(f);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),I=new q;case 24:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function X(e,n){s(e).addClass("skin_vlone"),F(e,n),function(e,s){var n,a,i,l,m,d,u=null==s||null===(n=s.res)||void 0===n||null===(a=n.video)||void 0===a?void 0:a.isSSAIEnabled,j=v(null==s?void 0:s.res,e)||{},b=j.src;(null==s||null===(i=s.relatedVideos)||void 0===i||null===(l=i.content)||void 0===l?void 0:l.length)>0&&r(e,null==s?void 0:s.relatedVideos);null!=s&&null!==(m=s.series)&&void 0!==m&&m.enable&&o(e,s);(null==s||null===(d=s.streams)||void 0===d?void 0:d.length)>1&&t(e,null==s?void 0:s.streams);c(e,s),p(e,s),u&&function(e,r){W.apply(this,arguments)}(e,b)}(e,n),Y(e,n)}var Y=function(e,r){var o,t,n,a,i,l,c,m,u,p,j,b,v=s(e),f=(null==r?void 0:r.theme)||{},y=d.dom.$(".vjs-play-progress"),h=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(o=window)||void 0===o||null===(t=o.app_data)||void 0===t||null===(n=t.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(i=a.cta)||void 0===i||null===(l=i.primary)||void 0===l?void 0:l.backgroundColor)),y&&(y.style.background="".concat(null===(c=window)||void 0===c||null===(m=c.app_data)||void 0===m||null===(u=m.appcmsMain)||void 0===u||null===(p=u.brand)||void 0===p||null===(j=p.cta)||void 0===j||null===(b=j.primary)||void 0===b?void 0:b.backgroundColor));var g=v.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&y&&(y.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&g&&(g.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&h&&(h.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{X as initialiseSkin};
|
|
1
|
+
import{h as e,o as r,p as o,q as t}from"./features-84286390.js";import{g as s,t as n,p as a}from"./skin-43755201.js";import{a as i,i as l,b as c}from"./index-0c0f2cb0.js";import{i as m}from"./browser-000da9e7.js";import"videojs-contrib-quality-menu";import d from"video.js";import{k as u,i as p}from"./keyboardShortcuts-6443082f.js";import{l as j,S as b,e as v}from"./generic-979547e7.js";import"core-js/modules/es.function.name.js";import f from"@babel/runtime-corejs3/core-js-stable/object/keys";import y from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import h from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import g from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import k from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import S from"@babel/runtime-corejs3/core-js-stable/object/define-property";import w from"@babel/runtime-corejs3/core-js-stable/instance/slice";import x from"@babel/runtime-corejs3/core-js-stable/array/from";import C from"@babel/runtime-corejs3/core-js-stable/symbol";import I from"@babel/runtime-corejs3/core-js/get-iterator-method";import T from"@babel/runtime-corejs3/helpers/toConsumableArray";import M from"@babel/runtime-corejs3/helpers/slicedToArray";import B from"@babel/runtime-corejs3/helpers/defineProperty";import E from"@babel/runtime-corejs3/helpers/asyncToGenerator";import A from"@babel/runtime-corejs3/regenerator";import N from"@babel/runtime-corejs3/core-js-stable/json/stringify";import O from"@babel/runtime-corejs3/core-js-stable/url";import U from"@babel/runtime-corejs3/core-js-stable/instance/includes";import R from"@babel/runtime-corejs3/core-js-stable/object/entries";import P from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import D from"@babel/runtime-corejs3/core-js-stable/instance/map";import V from"@babel/runtime-corejs3/core-js-stable/array/is-array";import _ from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import q from"@babel/runtime-corejs3/core-js-stable/map";import L from"@babel/runtime-corejs3/core-js-stable/instance/concat";import Q from"@babel/runtime-corejs3/core-js-stable/instance/filter";import $ from"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.regexp.to-string.js";import{I as G}from"./icons-68d3a609.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"./renditions-7f946d48.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"./autoNextVideo-56f70964.js";import"./util-1b598a26.js";import"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.string.split.js";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"core-js/modules/es.string.match.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/flat";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function z(r,o){var t=s(r);t&&(t.on("loadeddata",(function(){var e,t,n,a,c;!function(e){var r=s(e);r&&(null==r||r.qualityMenu,r.qualityMenu({useResolutionLabels:!0}))}(r),!(null!=o&&null!==(e=o.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(n=t.app_data)&&void 0!==n&&null!==(a=n.appcmsMain)&&void 0!==a&&null!==(c=a.features)&&void 0!==c&&c.auto_play)||null!=o&&o.liveVideo||i(r,o),null!=o&&o.liveVideo||m()||l(r)})),t.one("play",(function(){var o,t,s,n;null!==(o=window)&&void 0!==o&&null!==(t=o.customData)&&void 0!==t&&t.iframeOverlayUrl&&e(r,null===(s=window)||void 0===s||null===(n=s.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}function F(e,r){var o=void 0!==C&&I(e)||e["@@iterator"];if(!o){if(V(e)||(o=function(e,r){if(e){var o;if("string"==typeof e)return H(e,r);var t=w(o={}.toString.call(e)).call(o,8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?x(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?H(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){o&&(e=o);var t=0,s=function(){};return{s:s,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return a=e.done,e},e:function(e){i=!0,n=e},f:function(){try{a||null==o.return||o.return()}finally{if(i)throw n}}}}function H(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=Array(r);o<r;o++)t[o]=e[o];return t}function K(e,r){var o=f(e);if(y){var t=y(e);r&&(t=Q(t).call(t,(function(r){return h(e,r).enumerable}))),o.push.apply(o,t)}return o}function J(e){for(var r=1;r<arguments.length;r++){var o,t,s=null!=arguments[r]?arguments[r]:{};r%2?_(o=K(Object(s),!0)).call(o,(function(r){B(e,r,s[r])})):g?k(e,g(s)):_(t=K(Object(s))).call(t,(function(r){S(e,r,h(s,r))}))}return e}function W(){return W=E(A.mark((function e(r,o){var t,i,l,c,m,d,p,v,f,y,h,g,k,S,w,x,C,I,B;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B=function(e,o,t){var n=s(r);Math.floor(n.currentTime());var a,i,l,c,m,d,u,p,j,b,v,f,y,h,g=F(o);try{for(g.s();!(a=g.n()).done;)i=void 0,l=void 0,c=void 0,m=void 0,d=void 0,u=void 0,p=void 0,j=void 0,b=void 0,v=void 0,f=void 0,y=void 0,h=void 0,d=a.value,u=d.eventType,p=d.beaconUrls,j=d.startTimeInSeconds,b=d.startTime,v=d.durationInSeconds,f=Math.round(j),y=p[0],h=(null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l||null===(c=l.ads)||void 0===c?void 0:c.adEventHandler)||null,f!=Math.round(n.currentTime())||I.has(b)||(I.set(b,!0),"function"==typeof h&&h({adsData:{eventType:u,startTimeInSeconds:j,startTime:b,durationInSeconds:v,ad:null==e||null===(m=e.ads)||void 0===m?void 0:m[t],adIndex:t}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",u,"Fired:".concat(Math.round(n.currentTime())),"AD_POD:",e),fetch(y))}catch(e){g.e(e)}finally{g.f()}},C=function(e){var r,o,t=Math.floor(e/60),s=Math.floor(e%60);return L(r="".concat(t,":")).call(r,$(o=s.toString()).call(o,2,"0"))},w=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,s=F(o.split("&"));try{for(s.s();!(t=s.n()).done;){var n=t.value.split("="),a=M(n,2),i=a[0],l=a[1];r[decodeURIComponent(i)]=decodeURIComponent(l||"")}}catch(e){s.e(e)}finally{s.f()}for(var c={},m=0,d=R(r);m<d.length;m++){var u=M(d[m],2),p=u[0],j=u[1];if(P(p).call(p,"ads."))c[p.replace(/^ads\./,"")]=j;else c[p]=j}return c},t=s(r),i=o.replace("dash","session").replace("master","session"),i=b(i,r,{}),l=w(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:N({adsParams:J({},l)})});case 10:return c=e.sent,e.next=13,c.json();case 13:m=e.sent,d="https://"+new O(i).hostname,p=m.trackingUrl,v=m.manifestUrl,f=d+p,y=d+v,console.log("%c TRACKING URL","background: #bdf369; color: #000",f),null!=o&&U(o).call(o,".mpd")?(g=(null==t||null===(h=t.currentSource())||void 0===h?void 0:h.keySystemOptions)||null,j(r,{src:y,type:"application/x-mpegURL",keySystemOptions:g})):(S=(null==t||null===(k=t.currentSource())||void 0===k?void 0:k.keySystems)||null,j(r,{src:y,type:"application/x-mpegURL",keySystems:S})),t.one("loadeddata",(function(){x(f)})),x=function(){var e=E(A.mark((function e(o){var t,i,l,c,m,d,p,j,b,v,f,y,h,g,k,S,w;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(o);case 2:return i=e.sent,e.next=5,i.json();case 5:l=e.sent,c=l.avails,m=[],d=s(r),p=d.controlBar.progressControl,j=p.seekBar.el(),D(c).call(c,(function(e){var r;V(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&m.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),_(m).call(m,(function(e){var r=e.markerPositionInSeconds,o=d.duration();if(!(r>o)){var t=r/o*100,s=document.createElement("div");s.className="vjs-seekbar-marker",s.style.left="".concat(t,"%"),s.style.position="absolute",s.style.top="0",s.style.bottom="0",s.style.width="2px",s.style.backgroundColor="#fecc09",s.style.left="".concat(t,"%"),s.style.pointerEvents="none",j.appendChild(s)}})),b=new q,v=-1,d.on("timeupdate",n((function(){var e=Math.floor(d.currentTime());if(e!==v){v=e;for(var r=!1,o=function(){var o=s[t],n=o.startTimeInSeconds,a=o.durationInSeconds,i=o.ads,l=Math.floor(n+a);if(e>=n&&e<=l){var c,m;r=!0,b.set(n,!0),u.disable(),p.el().style.visibility="hidden";for(var d=e-n,j=0,v=0,y=0;y<i.length;y++){var h,g=null==i||null===(h=i[y])||void 0===h?void 0:h.durationInSeconds;if(d<j+g){v=y;break}j+=g}var k=i[v],w=d-j,x=Math.max(0,k.durationInSeconds-w),I=Math.round(x);f.style.display="block",S.textContent=L(c=L(m="".concat(v+1," of ")).call(m,i.length," • ")).call(c,C(I));var M=[];return _(i).call(i,(function(e){var r,o=Q(r=e.trackingEvents).call(r,(function(e){var r;return U(r=["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"]).call(r,e.eventType)}));M.push.apply(M,T(o))})),B(o,M,v),"break"}},t=0,s=m;t<s.length;t++){if("break"===o())break}r||(f.style.display="none",p.el().style.visibility="visible",u.enable())}}),1e3)),d.on("seeked",(function(){for(var e=null,r=0,o=m;r<o.length;r++){var t=o[r],s=null==d?void 0:d.currentTime(),n=t.startTimeInSeconds,a=t.durationInSeconds;s>Math.floor(n+a)&&!b.has(n)&&(e=n,b.set(n,!0))}e&&(d.currentTime(e),console.log("seeking back to",e),e=null)})),(f=document.createElement("div")).className="ssai-ad-container",(y=document.createElement("div")).className="sponsored-adbox",(h=document.createElement("div")).className="sponsored-text",h.textContent="Sponsored Ad",(g=document.createElement("div")).className="ad-info-icon",k=a(G()),g.appendChild(k),y.append(h),y.append(g),(S=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(w=document.createElement("div")).className="ad-visit-advertiser",w.textContent="Visit Advertiser",(null===(t=document.getElementsByClassName("tvProviderImage"))||void 0===t?void 0:t[0])&&(w.style.right="8.6rem"),f.append(y),f.append(S),f.append(w),d.el().appendChild(f);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),I=new q;case 24:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function X(e,n){s(e).addClass("skin_vlone"),z(e,n),function(e,s){var n,a,i,l,m,d,u=null==s||null===(n=s.res)||void 0===n||null===(a=n.video)||void 0===a?void 0:a.isSSAIEnabled,j=v(null==s?void 0:s.res,e)||{},b=j.src;(null==s||null===(i=s.relatedVideos)||void 0===i||null===(l=i.content)||void 0===l?void 0:l.length)>0&&r(e,null==s?void 0:s.relatedVideos);null!=s&&null!==(m=s.series)&&void 0!==m&&m.enable&&o(e,s);(null==s||null===(d=s.streams)||void 0===d?void 0:d.length)>1&&t(e,null==s?void 0:s.streams);c(e,s),p(e,s),u&&function(e,r){W.apply(this,arguments)}(e,b)}(e,n),Y(e,n)}var Y=function(e,r){var o,t,n,a,i,l,c,m,u,p,j,b,v=s(e),f=(null==r?void 0:r.theme)||{},y=d.dom.$(".vjs-play-progress"),h=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(o=window)||void 0===o||null===(t=o.app_data)||void 0===t||null===(n=t.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(i=a.cta)||void 0===i||null===(l=i.primary)||void 0===l?void 0:l.backgroundColor)),y&&(y.style.background="".concat(null===(c=window)||void 0===c||null===(m=c.app_data)||void 0===m||null===(u=m.appcmsMain)||void 0===u||null===(p=u.brand)||void 0===p||null===(j=p.cta)||void 0===j||null===(b=j.primary)||void 0===b?void 0:b.backgroundColor));var g=v.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&y&&(y.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&g&&(g.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&h&&(h.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{X as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t}from"./skin-43755201.js";var n=function(n,a,r){var
|
|
1
|
+
import{g as t}from"./skin-43755201.js";var n=function(n,a,r){var i=t(n);i?a>=0&&a<=i.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),i.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(n,"'"))},a=function(n,a){var r=t(n);if(!r)return"Cannot find player with id: '".concat(n,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(t){return"Error: ".concat(t)}},r=function(n,a){var r=t(n);r?r.on("timeupdate",(function(){return a(r.currentTime())})):a("Cannot find player with id: '".concat(n,"'"))},i=function(n,a){var r=t(n);r?r.on("ended",(function(){return a(!0)})):a("Cannot find player with id: '".concat(n,"'"))},o=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{i as a,a as b,o as g,r as o,n as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import s from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import a from"video.js";import{E as n,f as c}from"./icons-68d3a609.js";import{G as l,R as m}from"./generic-979547e7.js";import{e as d,s as p,f as u,j,k as b}from"./skin-43755201.js";import{a as y}from"./autoNextVideo-
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import s from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import a from"video.js";import{E as n,f as c}from"./icons-68d3a609.js";import{G as l,R as m}from"./generic-979547e7.js";import{e as d,s as p,f as u,j,k as b}from"./skin-43755201.js";import{a as y}from"./autoNextVideo-56f70964.js";import{g as v}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"./util-1b598a26.js";function f(o){var r=h();return function(){var t,a=i(o);if(r){var n=i(this).constructor;t=e(a,arguments,n)}else t=a.apply(this,arguments);return s(this,t)}}function h(){try{var o=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(o){}return(h=function(){return!!o})()}var g=a.getComponent("Component"),C=function(e){t(i,g);var s=f(i);function i(e){var r,t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,i),(a=s.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.videos=n.related.content,a.cb=(null==n||null===(r=n.related)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==n||null===(t=n.related)||void 0===t?void 0:t.autoNext)||!1,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(m(0),y({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return r(i,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(n())});return a.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),r=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var t;null!==(t=r.classList)&&void 0!==t&&t.contains("hidden")?(d(),r.classList.remove("hidden"),o.classList.add("open"),r.style.right="0px",p(e.playerId,r)):(r.classList.add("hidden"),o.classList.remove("open"),r.style.right="-350px")};var t=document.getElementById(this.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height");r.style.height="".concat(s),a.dom.appendContent(o,r),t.style.overflow="hidden",this.addFunctionality(r),u(this.playerId,r)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),t=a.dom.createEl("div",{className:"video-selector-head"}),s=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(c())});s.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var i=a.dom.createEl("div",{className:"video-selector-title",innerHTML:v("relatedVideoTitle")||"Recommended"}),n=a.dom.createEl("div",{className:"video-selector-content"}),d=a.dom.createEl("div",{className:"video-container"}),p=function(e){var r,t,s,i,c,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){m(e+1);for(var r=a.dom.$$(".recommended"),t=0;t<r.length;t++)r[t].style.border="none";b(e),l(o.playerId,o.videos[e].id).then((function(e){o.cb&&o.cb(e)})).catch((function(e){o.cb&&o.cb(e)}))};var j=document.createElement("img");j.className="related-thumbnail-image",j.src="".concat((null==o||null===(r=o.videos)||void 0===r||null===(t=r[e])||void 0===t?void 0:t.img)||(null===(s=window)||void 0===s||null===(i=s.customData)||void 0===i?void 0:i.fallbackImage)),j.alt="No Thumbnail Available",u.append(j);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(c=o.videos[e])||void 0===c?void 0:c.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,y),a.dom.appendContent(d,p),a.dom.appendContent(n,d)},u=0;u<this.videos.length;u++)p(u);a.dom.appendContent(t,s),a.dom.appendContent(t,i),a.dom.appendContent(e,t),a.dom.appendContent(e,n),j(this.playerId,e)}}]),i}();export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import s from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import a from"@babel/runtime-corejs3/core-js-stable/instance/slice";import n from"@babel/runtime-corejs3/core-js-stable/instance/trim";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import l from"video.js";import{e as c,f as m}from"./icons-68d3a609.js";import{G as d,R as p}from"./generic-979547e7.js";import{e as u,s as j,f as b,j as y,h as v,i as f}from"./skin-43755201.js";import{a as h}from"./autoNextVideo-
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import s from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import a from"@babel/runtime-corejs3/core-js-stable/instance/slice";import n from"@babel/runtime-corejs3/core-js-stable/instance/trim";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import l from"video.js";import{e as c,f as m}from"./icons-68d3a609.js";import{G as d,R as p}from"./generic-979547e7.js";import{e as u,s as j,f as b,j as y,h as v,i as f}from"./skin-43755201.js";import{a as h}from"./autoNextVideo-56f70964.js";import{g}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"./util-1b598a26.js";function C(o){var r=x();return function(){var t,a=i(o);if(r){var n=i(this).constructor;t=e(a,arguments,n)}else t=a.apply(this,arguments);return s(this,t)}}function x(){try{var o=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(o){}return(x=function(){return!!o})()}var E=l.getComponent("Component"),N=function(e){t(i,E);var s=C(i);function i(e){var r,t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,i),(a=s.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.videos=n.related.content,a.cb=(null==n||null===(r=n.related)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==n||null===(t=n.related)||void 0===t?void 0:t.autoNext)||!1,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(p(0),h({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return r(i,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=l.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(c())});return l.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then((function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),r=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var t;null!==(t=r.classList)&&void 0!==t&&t.contains("hidden")?(u(),r.classList.remove("hidden"),o.classList.add("open"),j(e.playerId,r)):(r.classList.add("hidden"),o.classList.remove("open"))};var t=document.getElementById(this.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height");r.style.height="".concat(s),l.dom.appendContent(o,r),t.style.overflow="hidden",this.addFunctionality(r),b(this.playerId,r)}}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),t=l.dom.createEl("div",{className:"video-selector-head"}),s=l.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(m())});s.onclick=function(){e.classList.add("hidden"),r.classList.remove("open")};for(var i=l.dom.createEl("div",{className:"video-selector-title",innerHTML:g("relatedVideoTitle")||"Recommended"}),c=l.dom.createEl("div",{className:"video-selector-content"}),u=l.dom.createEl("div",{className:"video-container"}),j=function(e){var r,t,s,i,m,j,b,y,h,g,C=l.dom.createEl("div",{className:"video -".concat(e)}),x=l.dom.createEl("div",{className:"recommended -".concat(e)});x.setAttribute("video-idx",e),x.onclick=function(){p(e+1);for(var r=l.dom.$$(".recommended"),t=0;t<r.length;t++)r[t].style.border="none";v(e),d(o.playerId,o.videos[e].id).then((function(e){o.cb&&o.cb(e)})).catch((function(e){o.cb&&o.cb(e)}))};var E=document.createElement("img");E.className="related-thumbnail-image",E.src="".concat(f(null==o||null===(r=o.videos)||void 0===r||null===(t=r[e])||void 0===t?void 0:t.img)||f(null===(s=window)||void 0===s||null===(i=s.app_data)||void 0===i||null===(m=i.appcmsMain)||void 0===m||null===(j=m.images)||void 0===j?void 0:j.placeholderCover)),E.alt="".concat((null==o||null===(b=o.videos[e])||void 0===b?void 0:a(y=n(h=b.title).call(h).split(/\s+/)).call(y,0,2).join(" "))||""),x.append(E);var N=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(g=o.videos[e])||void 0===g?void 0:g.title)||"")});l.dom.appendContent(C,x),l.dom.appendContent(C,N),l.dom.appendContent(u,C),l.dom.appendContent(c,u)},b=0;b<this.videos.length;b++)j(b);l.dom.appendContent(t,i),l.dom.appendContent(t,s),l.dom.appendContent(e,t),l.dom.appendContent(e,c),y(this.playerId,e)}}]),i}();export{N as default};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e,i=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),t=require("./generic-294ac08e.js"),n=require("./util-1f5115f2.js"),o=require("./skin-b28fa2ec.js"),r=0,u=0,c=function e(n,r,c,l){u=n,n>c.length-1||(t.setVideoIdx(u+1),t.load(r,c[n].id).then((function(e){o.highlightVideo(u,r),u++,d(e)})).catch((function(t){d(t),i((function(){o.highlightVideo(u,r),u++,e(u,r,c)}),5e3)})))},d=function(i){e&&e(i)};exports.autoPlayNext=function(l){clearTimeout(r);var s=null==l?void 0:l.content;e=null==l?void 0:l.cb;var h=l.playerId;n.onVideoEnded(h,(function(){var e=o.getPlayer(h);0!==(null==e?void 0:e.currentTime())&&((u=t.getVideoIdx())>s.length-1||(t.setVideoIdx(u+1),t.load(h,s[u].id).then((function(e){o.highlightVideo(u,h),t.setCurrentVideo(e.response),u++,d(e)})).catch((function(e){d(e),o.highlightVideo(u,h),u++,r=i((function(){t.isPaused(h)&&c(u,h,s)}),5e3)}))))}))},exports.switchToNext=c;
|