@viewlift/player-backup 2.0.66-backup → 2.0.67-backup
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-ee7b5d82.js → autoNextVideo-b549adaf.js} +1 -1
- package/cjs/bundle.css +113 -93
- package/cjs/{features-6a3886b6.js → features-d6f2f7fb.js} +1 -1
- package/cjs/{generic-4fa1012d.js → generic-60d192ef.js} +1 -1
- package/cjs/index-c4c4091d.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/keyboardShortcuts-4b9920d0.js +1 -0
- package/cjs/{multicamv2-b5c38a82.js → multicamv2-326ffb6b.js} +1 -1
- package/cjs/{multicamv2-9d5be6f9.js → multicamv2-58a30b00.js} +1 -1
- package/cjs/{nextEpisodeButton-86cad14e.js → nextEpisodeButton-30d36df7.js} +1 -1
- package/cjs/{playlist-d3182d0e.js → playlist-6c1f18ca.js} +1 -1
- package/cjs/renditions-fda8355e.js +1 -0
- package/cjs/{resolution-e46c9615.js → resolution-e7e78ac6.js} +1 -1
- package/cjs/{series-0c22a4af.js → series-36ee8157.js} +1 -1
- package/cjs/{series-v2-4133537a.js → series-v2-a7fc3577.js} +1 -1
- package/cjs/{series-v2-0fd227f9.js → series-v2-d87de968.js} +1 -1
- package/cjs/{settings-icon-70f8857a.js → settings-icon-58f1713b.js} +1 -1
- package/cjs/skin-28d614f2.js +1 -0
- package/cjs/{skin-28be876d.js → skin-4e42b39f.js} +1 -1
- package/cjs/{skin-0d5cd511.js → skin-540290e2.js} +1 -1
- package/cjs/skin-5e2d1388.js +1 -0
- package/cjs/{skin-05799675.js → skin-96e8c85b.js} +1 -1
- package/cjs/{skin-67b6a22a.js → skin-d38092af.js} +1 -1
- package/cjs/{videoSelector-3086c861.js → videoSelector-a95638b3.js} +1 -1
- package/cjs/{videoSelector-4567c882.js → videoSelector-cde6b207.js} +1 -1
- package/cjs/{videojs_contrib_dash-018c8bde.js → videojs_contrib_dash-5ac53a44.js} +1 -1
- package/esm/autoNextVideo-6e3a919d.js +1 -0
- package/esm/bundle.css +113 -93
- package/esm/{caption-settings-4ab479b0.js → caption-settings-370d8b1e.js} +1 -1
- package/esm/{features-ee5eee6f.js → features-4d07b4c5.js} +1 -1
- package/esm/{generic-4a716e25.js → generic-4552e5c2.js} +1 -1
- package/esm/{icons-8e47e640.js → icons-3bd3bd8f.js} +1 -1
- package/esm/index-2467c137.js +1 -0
- package/esm/index.js +1 -1
- package/esm/keyboardShortcuts-4826ba93.js +1 -0
- package/esm/{multicamv2-57c7d5f0.js → multicamv2-cee199d9.js} +1 -1
- package/esm/{multicamv2-63bbb076.js → multicamv2-d8306cec.js} +1 -1
- package/esm/{nextEpisodeButton-4cfb6dfb.js → nextEpisodeButton-52d8feb3.js} +1 -1
- package/esm/{playlist-b49f7c46.js → playlist-f99342cb.js} +1 -1
- package/esm/{renditions-4c09c626.js → renditions-6de3f061.js} +1 -1
- package/esm/resolution-eef884a6.js +1 -0
- package/esm/{series-3e89902d.js → series-e8a70f35.js} +1 -1
- package/esm/series-v2-d469788b.js +1 -0
- package/esm/{series-v2-c98af5be.js → series-v2-fdfb7bb1.js} +1 -1
- package/esm/{settings-icon-366126fa.js → settings-icon-b5f55a79.js} +1 -1
- package/esm/{skin-dac68d47.js → skin-07095717.js} +1 -1
- package/esm/{skin-7268a305.js → skin-20748a4d.js} +1 -1
- package/esm/{skin-2bc337d0.js → skin-38e7f264.js} +1 -1
- package/esm/skin-44478d17.js +1 -0
- package/esm/skin-6942f629.js +1 -0
- package/esm/{skin-ecc47e90.js → skin-b737a4bb.js} +1 -1
- package/esm/{util-80257541.js → util-ed307c71.js} +1 -1
- package/esm/{videoSelector-55dab065.js → videoSelector-617799fb.js} +1 -1
- package/esm/{videoSelector-aecc1371.js → videoSelector-81be7fe7.js} +1 -1
- package/esm/{videojs_contrib_dash-f7d94714.js → videojs_contrib_dash-a82e8b26.js} +1 -1
- package/package.json +1 -1
- package/cjs/index-75032ca2.js +0 -1
- package/cjs/index-a11ae234.js +0 -1
- package/cjs/renditions-fed22c12.js +0 -1
- package/cjs/skin-318c80d3.js +0 -1
- package/cjs/skin-3b2f33e6.js +0 -1
- package/esm/autoNextVideo-f702fba8.js +0 -1
- package/esm/index-ab74dd11.js +0 -1
- package/esm/index-adae0c08.js +0 -1
- package/esm/resolution-920515d1.js +0 -1
- package/esm/series-v2-69900127.js +0 -1
- package/esm/skin-21a13147.js +0 -1
- package/esm/skin-b27ee767.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as l,g as e,h as o,d as i,e as n,i as t,j as a,k as r,l as s,m as d}from"./features-
|
|
1
|
+
import{f as l,g as e,h as o,d as i,e as n,i as t,j as a,k as r,l as s,m as d}from"./features-4d07b4c5.js";import{M as u,a as m,c as v,d as p}from"./icons-3bd3bd8f.js";import{g as c,b as h}from"./skin-58b9263c.js";import{g as f}from"./renditions-6de3f061.js";import{g as b}from"./captions-b7fd8308.js";import{a as g,i as y,b as j}from"./index-2467c137.js";import{i as C,d as V}from"./browser-d4613b36.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./generic-4552e5c2.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"./autoNextVideo-6e3a919d.js";import"./util-ed307c71.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";function w(i,n){var t=c(i);t&&(t.on("loadeddata",function(){var o,a,r,s,d,u,m;(null===(o=f(i))||void 0===o?void 0:o.length)>0&&l(i,n),(null===(a=b(i))||void 0===a?void 0:a.length)>0&&e(i,n),!(null!=n&&null!==(r=n.series)&&void 0!==r&&r.enable||null!==(s=window)&&void 0!==s&&null!==(d=s.app_data)&&void 0!==d&&null!==(u=d.appcmsMain)&&void 0!==u&&null!==(m=u.features)&&void 0!==m&&m.auto_play)||null!=n&&n.liveVideo||g(i,n),function(l,e){var o,i=Math.floor(l/60),n=null===(o=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===o?void 0:o[0];n&&(n.style.marginRight=i>60?"56px":"41px");var t=document.getElementsByClassName("vjs-live-control")[0],a=document.getElementsByClassName("vjs-time-control");e&&t.classList.value.includes("vjs-hidden")&&(a[0].style.display="block",n&&(n.style.marginRight="56px"))}(t.duration(),(null==n?void 0:n.liveVideo)||!1),null!=n&&n.liveVideo||C()||y(i)}),t.one("play",function(){var l,e,n,t;null!==(l=window)&&void 0!==l&&null!==(e=l.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(i,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}function k(l,e){c(l).addClass("skin_defaultv2"),function(){"Chrome"==V()&&import("./chromett-a3cbb2e1.js").then(function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)});import("./skin-e4b35c14.js").then(function(l){var e=document.createElement("style");e.id="default_v2",e.append("".concat(l.default)),document.head.appendChild(e)})}(),w(l,e),function(l,e){var o,i,n,t,a,r,s=c(l);null==s||null===(o=s.controlBar)||void 0===o||null===(i=o.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(h(u(window.controlsColor))),null==s||null===(t=s.controlBar)||void 0===t||null===(a=t.getChild("FullscreenToggle"))||void 0===a||null===(r=a.el())||void 0===r||r.appendChild(h(m(window.controlsColor)));var d=document.getElementsByClassName("vjs-time-control");e.liveVideo&&d[0]&&(d[0].style.display="none")}(l,e),function(l,e){var o,u,m,c,h,f;0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)&&i(l,"defaultV2",v());(0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)||1==(null==e?void 0:e.liveui))&&n(l,"defaultV2",p());e.liveVideo||t(l);(null==e||null===(o=e.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&a(l,null==e?void 0:e.relatedVideos);(null==e||null===(m=e.streams)||void 0===m?void 0:m.length)>1&&r(l,null==e?void 0:e.streams);(null==e||null===(c=e.playlist)||void 0===c||null===(h=c.content)||void 0===h?void 0:h.length)>0&&s(l,null==e?void 0:e.playlist);null!=e&&null!==(f=e.series)&&void 0!==f&&f.enable&&d(l,e)}(l,e),j(l,e)}export{k as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{C as r,D as e}from"./generic-4552e5c2.js";import{g as t}from"./skin-58b9263c.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-b7fd8308.js";import"@babel/runtime/helpers/toConsumableArray";function o(r){n(r),i(r)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",function(){i.paused()?r(o):e(o)})},n=function(r){var e=t(r);e.requestFullscreen=function(){},e.controlBar.hide()};export{o as initaliseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e}from"./skin-58b9263c.js";import{f as r,n as t}from"./features-
|
|
1
|
+
import{g as e}from"./skin-58b9263c.js";import{f as r,n as t}from"./features-4d07b4c5.js";import{g as o}from"./renditions-6de3f061.js";import{r as i}from"./captions-b7fd8308.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-4552e5c2.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";function s(s,n){import("./skin-271fa63f.js").then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e(t).on("loadeddata",function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,s),null!=s&&s.disableCaptions&&i(t)})}(s,n),function(r){var o=e(r);o.controls(!1),t(r)}(s)}export{s as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as t,c as o,d as s,e as i}from"./features-4d07b4c5.js";import{i as n}from"./keyboardShortcuts-4826ba93.js";import{S as r,M as l,a,N as d,b as m,R as u}from"./icons-3bd3bd8f.js";import{g as p,b as c}from"./skin-58b9263c.js";import{d as b}from"./generic-4552e5c2.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./renditions-6de3f061.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-b7fd8308.js";function v(v,f){p(v).addClass("skin_default"),n(v,f),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&s(e,"default",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",u())}(v,f),function(s,i){var n=p(s),l=(null==i?void 0:i.sres)||null;n.on("loadeddata",function(){e(s,"default",r()),l&&import("./nextEpisodeButton-52d8feb3.js").then(function(e){e.initaliseFunctionality(i.sres.seasons,b())})}),n.one("loadedmetadata",function(){var e;l&&(t(s,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),o(i.sres,i.res,s))})}(v,f),function(e,t){var o,s,i,n,r=p(e),m=document.getElementsByClassName("vjs-current-time")[0],u=document.getElementsByClassName("vjs-duration")[0],b=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(m&&(m.style.display="none"),u&&(u.style.display="none"),b&&(b.style.display="none"));null===(o=r.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(c(l(window.controlsColor))),null===(i=r.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(c(a(window.controlsColor)));var v=r.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(d()));var f=document.createElement("div");f.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(f,v.querySelector(".vjs-menu-item"))}(v,f)}export{v as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,h as n,o as t,p as r,q as o}from"./features-4d07b4c5.js";import{g as a,t as l,p as i}from"./skin-58b9263c.js";import{a as s,i as d,b as u}from"./index-2467c137.js";import{i as c}from"./browser-d4613b36.js";import"videojs-contrib-quality-menu";import{S as p,I as m}from"./icons-3bd3bd8f.js";import v from"video.js";import{k as f,i as y}from"./keyboardShortcuts-4826ba93.js";import{l as b,S as h,e as g}from"./generic-4552e5c2.js";import S from"@babel/runtime/helpers/toConsumableArray";import k from"@babel/runtime/helpers/slicedToArray";import j from"@babel/runtime/helpers/defineProperty";import w from"@babel/runtime/helpers/asyncToGenerator";import C from"@babel/runtime/regenerator";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./renditions-6de3f061.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-6e3a919d.js";import"./util-ed307c71.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-b7fd8308.js";function I(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return O(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,l=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){i=!0,a=e},f:function(){try{l||null==t.return||t.return()}finally{if(i)throw a}}}}function O(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach(function(n){j(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function E(){return E=w(C.mark(function e(n,t){var r,o,s,d,u,c,p,v,y,g,j,O,T,E,A,M,B,P,N;return C.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return N=function(e,t,r){var o=a(n);Math.floor(o.currentTime());var l,i=I(t);try{var s=function(){var n,t,a,i,s=l.value,d=s.eventType,u=s.beaconUrls,c=s.startTimeInSeconds,p=s.startTime,m=s.durationInSeconds,v=Math.round(c),f=u[0],y=(null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(a=t.ads)||void 0===a?void 0:a.adEventHandler)||null;v!=Math.round(o.currentTime())||P.has(p)||(P.set(p,!0),"function"==typeof y&&y({adsData:{eventType:d,startTimeInSeconds:c,startTime:p,durationInSeconds:m,ad:null==e||null===(i=e.ads)||void 0===i?void 0:i[r],adIndex:r}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",d,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",e),fetch(f))};for(i.s();!(l=i.n()).done;)s()}catch(e){i.e(e)}finally{i.f()}},B=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},A=function(e){var n={},t=e.split("?")[1];if(!t)return n;var r,o=I(t.split("&"));try{for(o.s();!(r=o.n()).done;){var a=r.value.split("="),l=k(a,2),i=l[0],s=l[1];n[decodeURIComponent(i)]=decodeURIComponent(s||"")}}catch(e){o.e(e)}finally{o.f()}for(var d={},u=0,c=Object.entries(n);u<c.length;u++){var p=k(c[u],2),m=p[0],v=p[1];if(m.startsWith("ads."))d[m.replace(/^ads\./,"")]=v;else d[m]=v}return d},r=a(n),o=t.replace("dash","session").replace("master","session"),o=h(o,n,{}),s=A(o),o=o.split("?")[0],e.next=10,fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:x({},s)})});case 10:return d=e.sent,e.next=13,d.json();case 13:u=e.sent,c="https://"+new URL(o).hostname,p=u.trackingUrl,v=u.manifestUrl,y=c+p,g=c+v,console.log("%c TRACKING URL","background: #bdf369; color: #000",y),null!=t&&t.includes(".mpd")?(O=(null==r||null===(j=r.currentSource())||void 0===j?void 0:j.keySystemOptions)||null,b(n,{src:g,type:"application/x-mpegURL",keySystemOptions:O})):(E=(null==r||null===(T=r.currentSource())||void 0===T?void 0:T.keySystems)||null,b(n,{src:g,type:"application/x-mpegURL",keySystems:E})),r.one("loadeddata",function(){M(y)}),M=function(){var e=w(C.mark(function e(t){var r,o,s,d,u,c,p,v,y,b,h,g,k,j,w,I,O;return C.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return o=e.sent,e.next=5,o.json();case 5:s=e.sent,d=s.avails,u=[],c=a(n),p=c.controlBar.progressControl,v=p.seekBar.el(),d.map(function(e){var n;Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(n=e.ads)||void 0===n?void 0:n.length)>0&&u.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)})}),u.forEach(function(e){var n=e.markerPositionInSeconds,t=c.duration();if(!(n>t)){var r=n/t*100,o=document.createElement("div");o.className="vjs-seekbar-marker",o.style.left="".concat(r,"%"),o.style.position="absolute",o.style.top="0",o.style.bottom="0",o.style.width="2px",o.style.backgroundColor="#fecc09",o.style.left="".concat(r,"%"),o.style.pointerEvents="none",v.appendChild(o)}}),y=new Map,b=-1,c.on("timeupdate",l(function(){var e=Math.floor(c.currentTime());if(e!==b){b=e;for(var n=!1,t=function(){var t=o[r],a=t.startTimeInSeconds,l=t.durationInSeconds,i=t.ads,s=Math.floor(a+l);if(e>=a&&e<=s){n=!0,y.set(a,!0),f.disable(),p.el().style.visibility="hidden";for(var d=e-a,u=0,c=0,m=0;m<i.length;m++){var v,b=null==i||null===(v=i[m])||void 0===v?void 0:v.durationInSeconds;if(d<u+b){c=m;break}u+=b}var g=i[c],k=d-u,j=Math.max(0,g.durationInSeconds-k),w=Math.round(j);h.style.display="block",I.textContent="".concat(c+1," of ").concat(i.length," • ").concat(B(w));var C=[];return i.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"].includes(e.eventType)});C.push.apply(C,S(n))}),N(t,C,c),"break"}},r=0,o=u;r<o.length;r++){if("break"===t())break}n||(h.style.display="none",p.el().style.visibility="visible",f.enable())}},1e3)),c.on("seeked",function(){for(var e=null,n=0,t=u;n<t.length;n++){var r=t[n],o=null==c?void 0:c.currentTime(),a=r.startTimeInSeconds,l=r.durationInSeconds;o>Math.floor(a+l)&&!y.has(a)&&(e=a,y.set(a,!0))}e&&(c.currentTime(e),console.log("seeking back to",e),e=null)}),(h=document.createElement("div")).className="ssai-ad-container",(g=document.createElement("div")).className="sponsored-adbox",(k=document.createElement("div")).className="sponsored-text",k.textContent="Sponsored Ad",(j=document.createElement("div")).className="ad-info-icon",w=i(m()),j.appendChild(w),g.append(k),g.append(j),(I=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(O=document.createElement("div")).className="ad-visit-advertiser",O.textContent="Visit Advertiser",(null===(r=document.getElementsByClassName("tvProviderImage"))||void 0===r?void 0:r[0])&&(O.style.right="8.6rem"),h.append(g),h.append(I),h.append(O),c.el().appendChild(h);case 43:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),P=new Map;case 24:case"end":return e.stop()}},e)})),E.apply(this,arguments)}function A(l,i){a(l).addClass("skin_vlone"),function(t,r){var o=a(t);o&&(o.on("loadeddata",function(){var n,o,a,l,i;e(t,"vl_one",p()),!(null!=r&&null!==(n=r.series)&&void 0!==n&&n.enable||null!==(o=window)&&void 0!==o&&null!==(a=o.app_data)&&void 0!==a&&null!==(l=a.appcmsMain)&&void 0!==l&&null!==(i=l.features)&&void 0!==i&&i.auto_play)||null!=r&&r.liveVideo||s(t,r),null!=r&&r.liveVideo||c()||d(t)}),o.one("play",function(){var e,r,o,a;null!==(e=window)&&void 0!==e&&null!==(r=e.customData)&&void 0!==r&&r.iframeOverlayUrl&&n(t,null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.iframeOverlayUrl)}))}(l,i),function(e,n){var a,l,i,s,d,c,p=null==n||null===(a=n.res)||void 0===a||null===(l=a.video)||void 0===l?void 0:l.isSSAIEnabled,m=g(null==n?void 0:n.res,e)||{},v=m.src;(null==n||null===(i=n.relatedVideos)||void 0===i||null===(s=i.content)||void 0===s?void 0:s.length)>0&&t(e,null==n?void 0:n.relatedVideos);null!=n&&null!==(d=n.series)&&void 0!==d&&d.enable&&r(e,n);(null==n||null===(c=n.streams)||void 0===c?void 0:c.length)>1&&o(e,null==n?void 0:n.streams);u(e,n),y(e,n),p&&function(e,n){E.apply(this,arguments)}(e,v)}(l,i),M(l,i)}var M=function(e,n){var t,r,o,l,i,s,d,u,c,p,m,f,y=a(e),b=(null==n?void 0:n.theme)||{},h=v.dom.$(".vjs-play-progress"),g=v.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(t=window)||void 0===t||null===(r=t.app_data)||void 0===r||null===(o=r.appcmsMain)||void 0===o||null===(l=o.brand)||void 0===l||null===(i=l.cta)||void 0===i||null===(s=i.primary)||void 0===s?void 0:s.backgroundColor)),h&&(h.style.background="".concat(null===(d=window)||void 0===d||null===(u=d.app_data)||void 0===u||null===(c=u.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(m=p.cta)||void 0===m||null===(f=m.primary)||void 0===f?void 0:f.backgroundColor));var S=y.getChild("BigPlayButton")||null;(null==b?void 0:b.progressBarColor)&&h&&(h.style.background=b.progressBarColor),(null==b?void 0:b.playButtonBackgroundColor)&&S&&(S.el().style.background=b.playButtonBackgroundColor),(null==b?void 0:b.playButtonColor)&&g&&(g.style.color=b.playButtonColor),(null==b?void 0:b.playButtonType)&&("square"==(null==b?void 0:b.playButtonType)?S.el().style.borderRadius=".3em":S.el().style.borderRadius="1.3em")};export{A as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{C as e,D as t}from"./generic-4552e5c2.js";import{g as r}from"./skin-58b9263c.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-b7fd8308.js";import"@babel/runtime/helpers/toConsumableArray";function o(o){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),n(),function(o){var n=document.getElementById("".concat(o)),i=r(o);n&&n.addEventListener("touchstart",function(){i.paused()?e(o):t(o)})}(o)}var n=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t}from"./skin-58b9263c.js";var n=function(n,a,r){var
|
|
1
|
+
import{g as t}from"./skin-58b9263c.js";var n=function(n,a,r){var e=t(n);e?a>=0&&a<=e.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),e.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,"'"))},e=function(n,a){var r=t(n);r?r.on("ended",function(){return a(!0)}):a("Cannot find player with id: '".concat(n,"'"))},i=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{e as a,a as b,i as g,r as o,n as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,f as l}from"./icons-3bd3bd8f.js";import{G as s,R as d}from"./generic-4552e5c2.js";import{e as c,s as m,f as p,j as u,k as v}from"./skin-58b9263c.js";import{a as h}from"./autoNextVideo-6e3a919d.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-b7fd8308.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-ed307c71.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){o(E,y);var g,C,N=(g=E,C=b(),function(){var e,t=i(g);if(C){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function E(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),h({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(E,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,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(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),E}();export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{e as r,f as l}from"./icons-3bd3bd8f.js";import{G as s,R as d}from"./generic-4552e5c2.js";import{e as c,s as m,f as p,j as u,h as v,i as h}from"./skin-58b9263c.js";import{a as f}from"./autoNextVideo-6e3a919d.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-b7fd8308.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-ed307c71.js";function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var C=a.getComponent("Component"),g=function(){o(E,C);var g,j,N=(g=E,j=y(),function(){var e,t=i(g);if(j){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function E(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),f({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(E,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open")};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p,u,f,b=a.dom.createEl("div",{className:"video -".concat(e)}),y=a.dom.createEl("div",{className:"recommended -".concat(e)});y.setAttribute("video-idx",e),y.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var C=document.createElement("img");C.className="related-thumbnail-image",C.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(l=r.appcmsMain)||void 0===l||null===(p=l.images)||void 0===p?void 0:p.placeholderCover)),C.alt="".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),y.append(C);var g=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(f=t.videos[e])||void 0===f?void 0:f.title)||"")});a.dom.appendContent(b,y),a.dom.appendContent(b,g),a.dom.appendContent(m,b),a.dom.appendContent(c,m)},f=0;f<this.videos.length;f++)p(f);a.dom.appendContent(n,r),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),E}();export{g as default};
|