@viewlift/player-backup 2.0.70-smartTv → 2.0.71-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-42ae9f83.js → autoNextVideo-ff4a5872.js} +1 -1
- package/cjs/bundle.css +3 -3
- package/cjs/{features-3071a8b4.js → features-d5a19c52.js} +1 -1
- package/cjs/generic-270e0c0e.js +1 -0
- package/cjs/index-7deb8e51.js +1 -0
- package/cjs/index-952059d8.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/{multicamv2-fe442c50.js → multicamv2-97f57710.js} +1 -1
- package/cjs/{multicamv2-dfe24339.js → multicamv2-e60917aa.js} +1 -1
- package/cjs/{nextEpisodeButton-89b2f43c.js → nextEpisodeButton-b62010fa.js} +1 -1
- package/cjs/{playlist-f54e53e1.js → playlist-452d88c2.js} +1 -1
- package/cjs/{series-8301d2ed.js → series-62cf13d7.js} +1 -1
- package/cjs/{series-v2-8880bf8e.js → series-v2-1540a570.js} +1 -1
- package/cjs/{series-v2-8a3e111b.js → series-v2-a0ce7016.js} +1 -1
- package/cjs/skin-28e40e43.js +1 -0
- package/cjs/skin-3e832338.js +1 -0
- package/cjs/{skin-36af123e.js → skin-5e026b9e.js} +1 -1
- package/cjs/{skin-6c7101cc.js → skin-5e6de97a.js} +1 -1
- package/cjs/skin-66bb1abb.js +1 -0
- package/cjs/{skin-ec6f8863.js → skin-71bb1a0a.js} +1 -1
- package/cjs/skin-a4de7dc7.js +1 -0
- package/cjs/{videoSelector-c9e30433.js → videoSelector-bccb16ce.js} +1 -1
- package/cjs/{videoSelector-5e0393ec.js → videoSelector-d6d0e1ae.js} +1 -1
- package/esm/{autoNextVideo-767734a4.js → autoNextVideo-63dbac74.js} +1 -1
- package/esm/bundle.css +3 -3
- package/esm/{features-40341935.js → features-b4c00ff4.js} +1 -1
- package/esm/generic-817644b6.js +1 -0
- package/esm/index-b559de16.js +1 -0
- package/esm/index-c0023a66.js +1 -0
- package/esm/index.js +1 -1
- package/esm/{multicamv2-b101ecd9.js → multicamv2-170df815.js} +1 -1
- package/esm/{multicamv2-5cab9f8e.js → multicamv2-469790c5.js} +1 -1
- package/esm/{nextEpisodeButton-7e942772.js → nextEpisodeButton-3bdc1a02.js} +1 -1
- package/esm/{playlist-bc200231.js → playlist-15c1cf5a.js} +1 -1
- package/esm/{series-82341be5.js → series-04163ae5.js} +1 -1
- package/esm/{series-v2-6d3351ff.js → series-v2-6ab87b3b.js} +1 -1
- package/esm/{series-v2-52ff0962.js → series-v2-e0e817a0.js} +1 -1
- package/esm/{skin-e286536e.js → skin-287d98f0.js} +1 -1
- package/esm/{skin-2480763f.js → skin-3688bf2d.js} +1 -1
- package/esm/skin-61d92027.js +1 -0
- package/esm/{skin-e0c2f0ff.js → skin-6290413d.js} +1 -1
- package/esm/skin-6fb58468.js +1 -0
- package/esm/skin-9b61d1eb.js +1 -0
- package/esm/skin-ec925239.js +1 -0
- package/esm/{videoSelector-7836dcb6.js → videoSelector-0e2a85dc.js} +1 -1
- package/esm/{videoSelector-668073dc.js → videoSelector-4230d7f6.js} +1 -1
- package/package.json +1 -1
- package/cjs/autoNextVideo-54a8a49e.js +0 -1
- package/cjs/browser-b4213cb7.js +0 -1
- package/cjs/caption-settings-4edadfe5.js +0 -1
- package/cjs/captions-393835e9.js +0 -1
- package/cjs/features-8ccce5cb.js +0 -1
- package/cjs/generic-25679e19.js +0 -1
- package/cjs/generic-cf4b06d0.js +0 -1
- package/cjs/icons-bacdb330.js +0 -1
- package/cjs/index-1cd04c8b.js +0 -1
- package/cjs/index-3f0492aa.js +0 -1
- package/cjs/index-87f65418.js +0 -1
- package/cjs/index-a1dba6e8.js +0 -1
- package/cjs/index-bf6dde3f.js +0 -1
- package/cjs/index-e5afb8a7.js +0 -1
- package/cjs/index-ee4e22d6.js +0 -1
- package/cjs/multicamv2-84aa0456.js +0 -1
- package/cjs/multicamv2-fb56bab1.js +0 -1
- package/cjs/nextEpisodeButton-a2bd48c7.js +0 -1
- package/cjs/playlist-ffa59fac.js +0 -1
- package/cjs/renditions-17c543e3.js +0 -1
- package/cjs/resolution-4ccb28ba.js +0 -1
- package/cjs/resolution-7e0a2fe4.js +0 -1
- package/cjs/series-547835df.js +0 -1
- package/cjs/series-v2-214a3bb6.js +0 -1
- package/cjs/series-v2-ba70e761.js +0 -1
- package/cjs/settings-icon-0cbc8b5f.js +0 -1
- package/cjs/settings-icon-bd2311fe.js +0 -1
- package/cjs/skin-079b0930.js +0 -1
- package/cjs/skin-08116b1b.js +0 -1
- package/cjs/skin-0f88b8d8.js +0 -1
- package/cjs/skin-23eda0a7.js +0 -1
- package/cjs/skin-3338cc6f.js +0 -1
- package/cjs/skin-3a34b971.js +0 -1
- package/cjs/skin-3cc15dc2.js +0 -1
- package/cjs/skin-43ce1430.js +0 -1
- package/cjs/skin-448d38a6.js +0 -1
- package/cjs/skin-4a202e70.js +0 -1
- package/cjs/skin-725fbda6.js +0 -1
- package/cjs/skin-79349e81.js +0 -1
- package/cjs/skin-7b9006f8.js +0 -1
- package/cjs/skin-9be8e345.js +0 -1
- package/cjs/skin-b3999029.js +0 -1
- package/cjs/skin-d74e2aae.js +0 -1
- package/cjs/skin-deb410a6.js +0 -1
- package/cjs/skin-eabf5eb1.js +0 -1
- package/cjs/util-2487e498.js +0 -1
- package/cjs/videoSelector-d37a3677.js +0 -1
- package/cjs/videoSelector-ff9f89e0.js +0 -1
- package/cjs/videojs-dash5.es-0d7dcdf9.js +0 -1
- package/esm/autoNextVideo-2dae5124.js +0 -1
- package/esm/browser-8414342e.js +0 -1
- package/esm/caption-settings-b7ccde0e.js +0 -1
- package/esm/captions-5dc8f704.js +0 -1
- package/esm/features-9d5fdf7e.js +0 -1
- package/esm/generic-3f37be1e.js +0 -1
- package/esm/generic-66d1506b.js +0 -1
- package/esm/icons-b212fe63.js +0 -1
- package/esm/index-144e82ca.js +0 -1
- package/esm/index-236cca97.js +0 -1
- package/esm/index-527907c0.js +0 -1
- package/esm/index-5d9f05d1.js +0 -1
- package/esm/index-5e046049.js +0 -1
- package/esm/index-6d0a87a6.js +0 -1
- package/esm/index-90e9dd42.js +0 -1
- package/esm/multicamv2-14c2a659.js +0 -1
- package/esm/multicamv2-163da219.js +0 -1
- package/esm/nextEpisodeButton-fcfc868e.js +0 -1
- package/esm/playlist-ec59d28b.js +0 -1
- package/esm/renditions-92e03207.js +0 -1
- package/esm/resolution-84571e3a.js +0 -1
- package/esm/resolution-ff76ef38.js +0 -1
- package/esm/series-39ee26d4.js +0 -1
- package/esm/series-v2-c7ca8aea.js +0 -1
- package/esm/series-v2-cfb1e0d9.js +0 -1
- package/esm/settings-icon-732bddc8.js +0 -1
- package/esm/settings-icon-d88c6a52.js +0 -1
- package/esm/skin-02f0805d.js +0 -1
- package/esm/skin-078dbbbb.js +0 -1
- package/esm/skin-0c6cc433.js +0 -1
- package/esm/skin-138992dc.js +0 -1
- package/esm/skin-1f7cd934.js +0 -1
- package/esm/skin-3ee29e32.js +0 -1
- package/esm/skin-3f27ce1e.js +0 -1
- package/esm/skin-45eb5003.js +0 -1
- package/esm/skin-4b55cb89.js +0 -1
- package/esm/skin-57c031df.js +0 -1
- package/esm/skin-5c99fa22.js +0 -1
- package/esm/skin-7dc9c5f5.js +0 -1
- package/esm/skin-8615e53a.js +0 -1
- package/esm/skin-8668c482.js +0 -1
- package/esm/skin-8a617b92.js +0 -1
- package/esm/skin-a32bda6d.js +0 -1
- package/esm/skin-bd68eaf1.js +0 -1
- package/esm/skin-d8724e3c.js +0 -1
- package/esm/util-c4f931f0.js +0 -1
- package/esm/videoSelector-9fbd4736.js +0 -1
- package/esm/videoSelector-db7d4cb6.js +0 -1
- package/esm/videojs-dash5.es-792e6bc2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import s from"@babel/runtime/helpers/getPrototypeOf";import n from"@babel/runtime/helpers/inherits";import i from"video.js";import{E as l,f as a,B as r}from"./icons-79ad4d7d.js";import{j as d,W as c,V as u,b as m,C as p,J as v}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import s from"@babel/runtime/helpers/getPrototypeOf";import n from"@babel/runtime/helpers/inherits";import i from"video.js";import{E as l,f as a,B as r}from"./icons-79ad4d7d.js";import{j as d,W as c,V as u,b as m,C as p,J as v}from"./generic-817644b6.js";import{e as h,p as f,g as C}from"./skin-8e2c5488.js";import{a as g}from"./autoNextVideo-63dbac74.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var b=i.getComponent("Component"),N=function(){function N(t){var n,i,l,a,r,m,p,v,h,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,N),p=this,h=[t,f],v=s(v=N),(m=o(p,y()?Reflect.construct(v,h||[],s(p).constructor):v.apply(p,h))).playerId=f.playerId,m.seriesData=f.sres,m.videos=null==f||null===(n=f.sres)||void 0===n?void 0:n.seasons,m.currentVideoData=f.res,m.initialiseStructure(),m.loadCSS(),m.selectedSeason=0,m.cb=null==f||null===(i=f.series)||void 0===i?void 0:i.cb,m.autoPlayNext=(null==f||null===(l=f.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),m.watchMap=d(),null!==(a=m)&&void 0!==a&&a.autoPlayNext&&null!=f&&null!==(r=f.series)&&void 0!==r&&r.enable){var C,b,E,k,S=null==f||null===(C=f.sres)||void 0===C?void 0:C.seasons,x=[];S.map(function(e){x.push.apply(x,e.episodes)}),c(x),u(null===(b=m.options_)||void 0===b||null===(E=b.res)||void 0===E||null===(k=E.video)||void 0===k?void 0:k.id),g({playerId:m.playerId,content:x,cb:m.cb,series:null==f?void 0:f.sres})}return m}return n(N,b),t(N,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(l())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then(function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"toggleOpenClose",value:function(e){var t,o=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(h(),e.classList.remove("hidden"),o.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=i.dom.createEl("div",{className:"series-selection-container hidden"});i.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var s=document.getElementById(this.playerId);if(s){var n=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(n,"px"),i.dom.appendContent(t,o),s.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),s=i.dom.createEl("div",{className:"series-selector-head"}),n=i.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(a())});n.onclick=function(){if("series-selector-cross-icon"===n.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===n.className){var s=i.dom.$(".series-selector-content",t.el());for(i.dom.$(".series-selector-cross-icon",t.el()),n.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var l=t.createSeasonLister();for(i.dom.appendContent(s,l),i.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var r=f(a());n.appendChild(r)}};var l=i.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),r=i.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();i.dom.appendContent(r,d),i.dom.appendContent(s,n),i.dom.appendContent(s,l),i.dom.appendContent(e,s),i.dom.appendContent(e,r),C(this.playerId).on("fullscreenchange",function(){var o=document.getElementById(t.playerId);if(o){var s=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(s,"px")}})}},{key:"createSeasonLister",value:function(){var e=this;C(this.playerId);for(var t=m(),o=i.dom.createEl("div",{className:"season-container"}),s=function(s){var n,l=document.createElement("label");l.className="season-holder",l.setAttribute("for","season-".concat(s));var a=document.createElement("div");a.className="season - ".concat(s),a.textContent=null===(n=t[s])||void 0===n?void 0:n.title;var r=i.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==s&&(r.checked=!0),r.onclick=function(t){p.set(s),e.showSeasonDetails(s)},i.dom.appendContent(l,r),i.dom.appendContent(l,a),i.dom.appendContent(o,l)},n=0;n<t.length;n++)s(n);return o}},{key:"getSeasonDetailsContainer",value:function(e,t){var o=this;e=e.map(function(e){var t,s,n,i,l;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(s=e.gist)||void 0===s||null===(n=s.imageGist)||void 0===n?void 0:n.r16x9,watchedPercentage:(null==o||null===(i=o.watchMap)||void 0===i||null===(l=i.get(null==e?void 0:e.id))||void 0===l?void 0:l.p)||0}});for(var s=function(s){var n,l,a,r,d,c,m,p=i.dom.createEl("div",{className:"series-container"}),h=i.dom.createEl("div",{className:"series-section",index:s}),f=i.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(n=e[s])||void 0===n?void 0:n.title)||"")}),C=i.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[s].watchedPercentage,"%' class='series-progress-bar-value'></div>")});i.dom.appendContent(h,f),i.dom.appendContent(h,C),i.dom.appendContent(p,h),i.dom.appendContent(t,p);var g=i.dom.createEl("div",{className:"series-section-expanded hidden"}),y=(null===(l=e[s])||void 0===l?void 0:l.description)||"";(null===(a=y)||void 0===a?void 0:a.length)>170&&(y=y.substr(0,170)+"...");var b=i.dom.createEl("div",{className:"series-description",innerHTML:"".concat(y||"")}),N=i.dom.createEl("img",{className:"series-image"});N.src="".concat((null===(r=e[s])||void 0===r?void 0:r.img)||(null===(d=window)||void 0===d||null===(c=d.customData)||void 0===c?void 0:c.fallbackImage)),N.alt="".concat(null===(m=e[s])||void 0===m?void 0:m.title),i.dom.appendContent(g,N),i.dom.appendContent(g,b),i.dom.appendContent(p,g),i.dom.appendContent(t,p),g.onclick=function(t){var n;t.stopPropagation(),u(null===(n=e[s])||void 0===n?void 0:n.id),v(o.playerId,e[s].id).then(function(e){null!=o&&o.cb&&o.cb(e)}).catch(function(e){null!=o&&o.cb&&o.cb(e)})},h.onclick=function(e){var t,o,s,n=document.getElementsByClassName("series-selector-content")[0].childNodes,i=(n=[].concat(n))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=i&&null!==(t=i.classList)&&void 0!==t&&t.contains("hidden")?(p.style.backgroundColor="#0000007d",null==i||null===(o=i.classList)||void 0===o||o.remove("hidden")):(null==i||null===(s=i.classList)||void 0===s||s.add("hidden"),p.style.backgroundColor="unset")}},n=0;n<e.length;n++)s(n);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=i.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var o=m()[e].episodes;this.getSeasonDetailsContainer(o,t);var s=i.dom.$(".series-selector-cross-icon",this.el());for(s.className="series-selector-back-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var n=f(r());s.appendChild(n),i.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}])}();export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as e,G as t}from"./generic-
|
|
1
|
+
import{F as e,G as t}from"./generic-817644b6.js";import{g as o}from"./skin-8e2c5488.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";function r(r){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(r){var n=document.getElementById("".concat(r)),i=o(r);n&&n.addEventListener("touchstart",function(){i.paused()?e(r):t(r)})}(r)}var n=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{r as initaliseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as r,G as e}from"./generic-
|
|
1
|
+
import{F as r,G as e}from"./generic-817644b6.js";import{g as o}from"./skin-8e2c5488.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";function t(r){n(r),i(r)}var i=function(t){var i=o(t),n=document.getElementById("".concat(t));n&&n.addEventListener("touchstart",function(){i.paused()?r(t):e(t)})},n=function(r){var e=o(r);e.requestFullscreen=function(){},e.controlBar.hide()};export{t as initaliseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./features-b4c00ff4.js";import{g as o}from"./skin-8e2c5488.js";import{a as t,i as s,b as r}from"./index-b559de16.js";import{i}from"./browser-512cd55a.js";import n from"@babel/runtime/helpers/classCallCheck";import l from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/possibleConstructorReturn";import d from"@babel/runtime/helpers/getPrototypeOf";import c from"@babel/runtime/helpers/inherits";import u from"video.js";import m from"@babel/runtime/helpers/typeof";import{e as p}from"./generic-817644b6.js";import{s as v}from"./index-c0023a66.js";import"./renditions-65794079.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-63dbac74.js";import"./util-389babb5.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"video.js/dist/video-js.min.css";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.symbol.async-iterator.js";import"core-js/modules/es.symbol.has-instance.js";import"core-js/modules/es.symbol.is-concat-spreadable.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.symbol.match.js";import"core-js/modules/es.symbol.replace.js";import"core-js/modules/es.symbol.search.js";import"core-js/modules/es.symbol.species.js";import"core-js/modules/es.symbol.split.js";import"core-js/modules/es.symbol.to-primitive.js";import"core-js/modules/es.symbol.to-string-tag.js";import"core-js/modules/es.symbol.unscopables.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.copy-within.js";import"core-js/modules/es.array.fill.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.array.flat.js";import"core-js/modules/es.array.flat-map.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.last-index-of.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.of.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.array.reduce-right.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.sort.js";import"core-js/modules/es.array.species.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.array.unscopables.flat.js";import"core-js/modules/es.array.unscopables.flat-map.js";import"core-js/modules/es.array-buffer.constructor.js";import"core-js/modules/es.date.to-primitive.js";import"core-js/modules/es.function.has-instance.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.json.to-string-tag.js";import"core-js/modules/es.map.js";import"core-js/modules/es.math.acosh.js";import"core-js/modules/es.math.asinh.js";import"core-js/modules/es.math.atanh.js";import"core-js/modules/es.math.cbrt.js";import"core-js/modules/es.math.clz32.js";import"core-js/modules/es.math.cosh.js";import"core-js/modules/es.math.expm1.js";import"core-js/modules/es.math.fround.js";import"core-js/modules/es.math.hypot.js";import"core-js/modules/es.math.imul.js";import"core-js/modules/es.math.log10.js";import"core-js/modules/es.math.log1p.js";import"core-js/modules/es.math.log2.js";import"core-js/modules/es.math.sign.js";import"core-js/modules/es.math.sinh.js";import"core-js/modules/es.math.tanh.js";import"core-js/modules/es.math.to-string-tag.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.number.epsilon.js";import"core-js/modules/es.number.is-finite.js";import"core-js/modules/es.number.is-integer.js";import"core-js/modules/es.number.is-nan.js";import"core-js/modules/es.number.is-safe-integer.js";import"core-js/modules/es.number.max-safe-integer.js";import"core-js/modules/es.number.min-safe-integer.js";import"core-js/modules/es.number.parse-float.js";import"core-js/modules/es.number.parse-int.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.object.define-getter.js";import"core-js/modules/es.object.define-setter.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.object.freeze.js";import"core-js/modules/es.object.from-entries.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"core-js/modules/es.object.get-own-property-names.js";import"core-js/modules/es.object.get-prototype-of.js";import"core-js/modules/es.object.is.js";import"core-js/modules/es.object.is-extensible.js";import"core-js/modules/es.object.is-frozen.js";import"core-js/modules/es.object.is-sealed.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.lookup-getter.js";import"core-js/modules/es.object.lookup-setter.js";import"core-js/modules/es.object.prevent-extensions.js";import"core-js/modules/es.object.seal.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.values.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.reflect.apply.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.reflect.define-property.js";import"core-js/modules/es.reflect.delete-property.js";import"core-js/modules/es.reflect.get.js";import"core-js/modules/es.reflect.get-own-property-descriptor.js";import"core-js/modules/es.reflect.get-prototype-of.js";import"core-js/modules/es.reflect.has.js";import"core-js/modules/es.reflect.is-extensible.js";import"core-js/modules/es.reflect.own-keys.js";import"core-js/modules/es.reflect.prevent-extensions.js";import"core-js/modules/es.reflect.set.js";import"core-js/modules/es.reflect.set-prototype-of.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.regexp.flags.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.set.js";import"core-js/modules/es.string.code-point-at.js";import"core-js/modules/es.string.ends-with.js";import"core-js/modules/es.string.from-code-point.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.string.pad-end.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.string.raw.js";import"core-js/modules/es.string.repeat.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.search.js";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.trim-end.js";import"core-js/modules/es.string.trim-start.js";import"core-js/modules/es.string.anchor.js";import"core-js/modules/es.string.big.js";import"core-js/modules/es.string.blink.js";import"core-js/modules/es.string.bold.js";import"core-js/modules/es.string.fixed.js";import"core-js/modules/es.string.fontcolor.js";import"core-js/modules/es.string.fontsize.js";import"core-js/modules/es.string.italics.js";import"core-js/modules/es.string.link.js";import"core-js/modules/es.string.small.js";import"core-js/modules/es.string.strike.js";import"core-js/modules/es.string.sub.js";import"core-js/modules/es.string.sup.js";import"core-js/modules/es.typed-array.float32-array.js";import"core-js/modules/es.typed-array.float64-array.js";import"core-js/modules/es.typed-array.int8-array.js";import"core-js/modules/es.typed-array.int16-array.js";import"core-js/modules/es.typed-array.int32-array.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.uint8-clamped-array.js";import"core-js/modules/es.typed-array.uint16-array.js";import"core-js/modules/es.typed-array.uint32-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.from.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.of.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.weak-map.js";import"core-js/modules/es.weak-set.js";import"core-js/modules/esnext.aggregate-error.js";import"core-js/modules/esnext.global-this.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/esnext.promise.any.js";import"core-js/modules/esnext.string.match-all.js";import"core-js/modules/esnext.string.replace-all.js";import"core-js/modules/esnext.symbol.dispose.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.immediate.js";import"core-js/modules/web.queue-microtask.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url.to-json.js";import"core-js/modules/web.url-search-params.js";import"./resolution-ed00f17a.js";var j=function(e){var o=(new DOMParser).parseFromString(e,"image/svg+xml");return null==o?void 0:o.querySelector("svg")},f=function(){return l(function e(o){if(n(this,e),!o||"object"!==m(o))throw new Error("SettingsOptionOneWrapper: props must be a valid object");if(this.title=o.title||"Option",this.klassname=o.klassname||"default-option-wrapper",this.handleClick=o.callback||function(){},this.focused=o.focused||!1,"function"!=typeof this.handleClick)throw new Error("SettingsOptionOneWrapper: callback must be a function");this.handleClick=this.handleClick.bind(this)},[{key:"mount",value:function(e){var o=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionOneWrapper: mountPoint must be a valid DOM element");var t=document.createElement("div");t.className=this.klassname,t.tabIndex=0;var s=document.createElement("p");s.textContent=this.title,t.appendChild(s);var r=document.createElement("p");r.textContent="›",r.style.fontSize="24px",t.appendChild(r),this.focused&&t.classList.add("focused"),t.addEventListener("focus",function(){o.focused=!0,t.classList.add("focused")}),t.addEventListener("blur",function(){o.focused=!1,t.classList.remove("focused")}),t.addEventListener("keydown",function(e){"Enter"!==e.key&&"OK"!==e.key||o.handleClick()}),this.optionWrapper=t,t.instance=this,e.appendChild(t)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}])}(),h=function(){return l(function e(o){if(n(this,e),!o||"object"!==m(o))throw new Error("SettingsOptionTwoWrapper: props must be a valid object");if(this.title=o.title||"Option",this.klassname=o.klassname||"default-option-wrapper",this.selected=o.selected||!1,this.focused=o.focused||!1,this.id=o.id,"string"!=typeof this.title)throw new Error("SettingsOptionTwoWrapper: title must be a string")},[{key:"mount",value:function(e){var o=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionTwoWrapper: mountPoint must be a valid DOM element");var t=document.createElement("div");t.className=this.klassname,t.tabIndex=0;var s=document.createElement("p");if(s.textContent=this.title,t.appendChild(s),this.selected){t.classList.add("selected");var r=document.createElement("span");r.appendChild(j('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),t.appendChild(r)}this.focused&&t.classList.add("focused"),t.addEventListener("focus",function(){o.focused=!0,t.classList.add("focused")}),t.addEventListener("blur",function(){o.focused=!1,t.classList.remove("focused")}),this.optionWrapper=t,t.instance=this,e.appendChild(t)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}])}(),y=function(){return l(function e(o){if(n(this,e),!o||"object"!==m(o))throw new Error("Sidebar: props must be a valid object");if(this.title=o.title||"Settings",this.items=o.items||[{text:"Video Quality",isSelected:!0,callback:function(){}},{text:"Audio Language",isSelected:!1,callback:function(){}},{text:"Subtitles",isSelected:!1,callback:function(){}}],this.klassname=o.klassname||"default-sidebar",this.currentFocusedOption=null,this.lastFocusedElement=o.lastFocusedElement||null,this.type=o.type||"navigation",this.focused=o.focused||!1,this.callback=o.callback||function(){},this.onselect=o.onselect||function(){},"function"!=typeof this.callback)throw new Error("Sidebar: callback must be a function");if(!["navigation","selection"].includes(this.type))throw new Error('Sidebar: type must be either "navigation" or "selection"')},[{key:"mount",value:function(e){var o=this;if(!(e&&e instanceof HTMLElement))throw new Error("Sidebar: mountPoint must be a valid DOM element");var t=document.createElement("div");t.className=this.klassname;var s=document.createElement("div");s.textContent=this.title,s.className="settingsHeading",t.appendChild(s);var r=document.createElement("div");"navigation"===this.type?this.items.forEach(function(e,t){var s=new f({title:e.text,klassname:"default-option-wrapper",focused:0===t,callback:e.callback});e.instance=s,0===t&&(o.currentFocusedOption=s),s.mount(r)}):"selection"===this.type&&this.items.forEach(function(e,t){var s=new h({title:e.text,klassname:"default-option-wrapper",focused:0===t,selected:e.isSelected,id:e.id});e.instance=s,0===t&&(o.currentFocusedOption=s),s.mount(r)}),t.appendChild(r),this.sidebarElement=t,e.appendChild(t),this.addEventListeners(),this.focus()}},{key:"addEventListeners",value:function(){var e=this;if(!this.sidebarElement)throw new Error("Sidebar: sidebarElement is not initialized");this.sidebarElement.addEventListener("keydown",function(o){"ArrowDown"===o.key?(o.preventDefault(),o.stopPropagation(),e.focusNext()):"ArrowUp"===o.key?(o.preventDefault(),o.stopPropagation(),e.focusPrevious()):"Backspace"===o.key||"Escape"===o.key||10009===o.keyCode||461===o.keyCode||196===o.keyCode||8===o.keyCode?(o.preventDefault(),o.stopPropagation(),e.unfocus(),e.unmount()):"Enter"!==o.key&&"OK"!==o.key||(o.preventDefault(),o.stopPropagation(),"selection"===e.type&&e.selectionTypeAction())})}},{key:"selectionTypeAction",value:function(){if(this.currentFocusedOption){this.items.forEach(function(e){if(e.instance){e.instance.optionWrapper.classList.remove("selected"),e.instance.selected=!1;var o=e.instance.optionWrapper.querySelector("span");o&&o.remove();var t=e.instance.optionWrapper.querySelector("svg");t&&t.remove()}}),this.currentFocusedOption.optionWrapper.classList.add("selected"),this.currentFocusedOption.selected=!0;this.currentFocusedOption.optionWrapper.appendChild(j('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),this.onselect(this.currentFocusedOption)}}},{key:"focusNext",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.nextElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focusPrevious",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.previousElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.focus()}},{key:"unfocus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.blur()}},{key:"unmount",value:function(){this.sidebarElement&&(this.sidebarElement.remove(),this.sidebarElement=void 0,this.lastFocusedElement&&(this.callback(),this.lastFocusedElement.focus()),this.currentFocusedOption=null)}}])}();function g(e,o){var t,s,r,i,n,l,a,d=[{text:"Video Quality",isSelected:!0,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,o){var t,s,r,i,n;if(!e)return;var l=null===(t=o.qualityLevels())||void 0===t?void 0:t.levels_,a=-1==(null===(s=o.qualityLevels())||void 0===s?void 0:s.selectedIndex_)?"auto":null===(r=o.qualityLevels())||void 0===r?void 0:r.levels_[null===(i=o.qualityLevels())||void 0===i?void 0:i.selectedIndex_].height,d=[{text:"Auto",id:"auto",isSelected:"auto"===a,callback:function(){e.currentFocusedOption.focus(),n.unmount()}}].concat(l.map(function(o){return{text:"".concat(o.height,"p"),id:o.height,isSelected:a===o.height,callback:function(){e.currentFocusedOption.focus(),n.unmount()}}}));n=new y({title:"Video Quality",items:d,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){if("auto"===e.id)o.el_.player.qualityLevels().selectedIndex_=-1;else{var t=l.findIndex(function(o){return o.height===e.id});-1!==t&&(o.el_.player.qualityLevels().selectedIndex_=t)}},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),n.mount(null==o?void 0:o.el())}(a,e)}}];null!=e&&null!==(t=e.audioTracks())&&void 0!==t&&t.tracks_&&(null==e||null===(s=e.audioTracks())||void 0===s||null===(r=s.tracks_)||void 0===r?void 0:r.length)>1&&d.push({text:"Audio Language",isSelected:!1,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,o){var t,s,r,i;if(!e)return;var n=null==o||null===(t=o.audioTracks())||void 0===t?void 0:t.tracks_,l=(null==n||null===(s=n.find(function(e){return e.enabled}))||void 0===s?void 0:s.label)||(null==n||null===(r=n[0])||void 0===r?void 0:r.label)||"Default",a=n.map(function(o){return{text:o.label,id:o.id,isSelected:l===o.label,callback:function(){e.currentFocusedOption.focus(),i.unmount()}}});i=new y({title:"Audio Language",items:a,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){null==n||n.forEach(function(o){o.enabled=!1,o.enabled=o.id===e.id})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),i.mount(null==o?void 0:o.el())}(a,e)}});var c=null==e||null===(i=e.textTracks())||void 0===i?void 0:i.tracks_;return(c=c.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(n=c)||void 0===n?void 0:n.length)>0&&d.push({text:"Subtitles",isSelected:!1,callback:function(){a.sidebarElement&&(a.sidebarElement.style.visibility="hidden"),function(e,o){var t,s,r;if(!e)return;var i=o.textTracks().tracks_;i=i.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var n=(null===(t=i)||void 0===t||null===(s=t.find(function(e){return"showing"===e.mode}))||void 0===s?void 0:s.label)||"Captions Off",l=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===n,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}].concat(i.map(function(o){return{text:o.label,id:o.id,kind:o.kind,lang:o.language,mode:o.mode,isSelected:n===o.label,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}}));r=new y({title:"Closed Captions",items:l,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){var o;null===(o=i)||void 0===o||o.forEach(function(o){o.mode=o.id===e.id?"showing":"hidden"})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),r.mount(null==o?void 0:o.el())}(a,e)}}),(a=new y({title:"Settings",items:d,klassname:"default-sidebar",lastFocusedElement:o,type:"navigation",focused:!0,callback:function(){var t;null===(t=e.controlBar)||void 0===t||t.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){o.focus()},100)}})).mount(null==e?void 0:e.el()),null===(l=e.controlBar)||void 0===l||l.addClass("hidePlayerControls"),e.options({inactivityTimeout:0}),a}function b(e,o,t){return o=d(o),a(e,w()?Reflect.construct(o,t||[],d(e).constructor):o.apply(e,t))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var k=function(e){var o=function(o){function t(e){var o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=(o=b(this,t,[e,s])).el_,i=r.querySelector(".vjs-icon-placeholder");r.querySelector(".vjs-control-text").textContent="CC",r.classList.add("vjs-ClosedCaption-button");return i.append(j('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M92.7268 78.3757H81.5999V88.0906L57.4173 78.3757H9.27274V16.2273H92.7268V78.3757ZM17.6184 69.5027H57.3108L73.7991 74.6169L73.8001 69.5027H84.3821V25.2107H17.6184V69.5027Z" fill="currentColor"/>\n<rect x="20.8628" y="34.7727" width="39.4091" height="6.95455" fill="currentColor"/>\n<rect x="69.5446" y="34.7727" width="11.5909" height="6.95455" fill="currentColor"/>\n<rect x="44.0446" y="51" width="37.0909" height="9.27273" fill="currentColor"/>\n<rect x="20.8628" y="51" width="13.9091" height="9.27273" fill="currentColor"/>\n</svg>')),o}return c(t,o),l(t,[{key:"handleClick",value:function(){!function(e){var o,t,s,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.textTracks().tracks_,l=(null===(o=n=n.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))||void 0===o||null===(t=o.find(function(e){return"showing"===e.mode}))||void 0===t?void 0:t.label)||"Captions Off",a=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===l,callback:function(){r.currentFocusedOption.focus(),sidebar.unmount()}}].concat(n.map(function(e){return{text:e.label,id:e.id,kind:e.kind,lang:e.language,mode:e.mode,isSelected:l===e.label,callback:function(){r.currentFocusedOption.focus(),sidebar.unmount()}}}));(r=new y({title:"Closed Captions",items:a,klassname:"default-sidebar",lastFocusedElement:i,type:"selection",focused:!0,onselect:function(o){var t,s;null===(t=n)||void 0===t||t.forEach(function(e){e.mode=e.id===o.id?"showing":"hidden"}),r.unmount(null==e?void 0:e.el()),null===(s=e.controlBar)||void 0===s||s.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){i.focus()},100)},callback:function(){var o;r.unmount(null==e?void 0:e.el()),null===(o=e.controlBar)||void 0===o||o.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){i.focus()},100)}})).mount(null==e?void 0:e.el()),null===(s=e.controlBar)||void 0===s||s.addClass("hidePlayerControls"),e.options({inactivityTimeout:0})}(e,this)}}])}(u.getComponent("Button"));return u.registerComponent("CloseCaptionButton",o),new o(e,{})};var C=function(e){if(e)try{var o,t,s,r=(null===(o=window)||void 0===o||null===(t=o.customData)||void 0===t||null===(s=t.entitlement)||void 0===s?void 0:s.deviceType)||"smart_tv_samsung";e&&(!function(e){try{var o;"smart_tv_samsung"==e&&null!==(o=window)&&void 0!==o&&o.tizen&&(window.tizen.tvinputdevice.registerKey("MediaPlayPause"),window.tizen.tvinputdevice.registerKey("MediaRewind"),window.tizen.tvinputdevice.registerKey("MediaFastForward"),window.tizen.tvinputdevice.registerKey("Exit"),window.tizen.tvinputdevice.registerKey("MediaPlay"),window.tizen.tvinputdevice.registerKey("MediaPause"),window.tizen.tvinputdevice.registerKey("MediaStop"))}catch(e){}}(r),e.on("keydown",function(o){10252==o.keyCode||"xfinityX1"==r&&179==o.keyCode?e.paused()?e.play():e.pause():415==o.keyCode?e.play():19==o.keyCode?e.pause():412===o.keyCode||"xfinityX1"==r&&227==o.keyCode?e.currentTime(e.currentTime()-10):(417===o.keyCode||"xfinityX1"==r&&228==o.keyCode)&&e.currentTime(e.currentTime()+10)}))}catch(e){}};function x(a,d){var m=o(a);m.addClass("skin_smartTV"),function(e,o){var t,s,r,i,a,d,m,p,v,f,h,y,w,k,x,L,S,E,T,B,O,F,_,q,W,D,M,P,V,z,H,A=null==e?void 0:e.el();A&&(A.style.color=(null==o||null===(t=o.theme)||void 0===t?void 0:t.color)||(null===(s=window)||void 0===s||null===(r=s.app_data)||void 0===r||null===(i=r.appcmsMain)||void 0===i||null===(a=i.brand)||void 0===a||null===(d=a.cta)||void 0===d||null===(m=d.primary)||void 0===m?void 0:m.backgroundColor)||"#FFFFFF");null===(p=e.controlBar)||void 0===p||p.removeChild("VolumePanel"),null===(v=e.controlBar)||void 0===v||v.removeChild("AudioTrackButton"),null===(f=e.controlBar)||void 0===f||f.removeChild("FullscreenToggle"),null===(h=e.controlBar)||void 0===h||h.removeChild("PictureInPictureToggle"),null===(y=e.controlBar)||void 0===y||y.removeChild("skipBackward"),null===(w=e.controlBar)||void 0===w||w.removeChild("skipForward"),null===(k=e.controlBar)||void 0===k||k.removeChild("PictureInPictureToggle");var I=document.createElement("div");I.className="custom-smartTV-progress-bar",null===(x=e.controlBar)||void 0===x||null===(L=x.el())||void 0===L||L.append(I);var R=null===(S=e.controlBar)||void 0===S?void 0:S.getChild("CustomControlSpacer");try{I.style.opacity=0,R.el_.style.opacity=0}catch(e){}var G=null===(E=e.controlBar)||void 0===E?void 0:E.getChild("ProgressControl"),K=null===(T=e.controlBar)||void 0===T?void 0:T.getChild("CurrentTimeDisplay"),N=null===(B=e.controlBar)||void 0===B?void 0:B.getChild("SeekToLive");N&&(N.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live");var Z=null===(O=e.controlBar)||void 0===O?void 0:O.getChild("LiveDisplay"),Q=null===(F=e.controlBar)||void 0===F?void 0:F.getChild("RemainingTimeDisplay");G&&K&&N&&I.append(K.el(),G.el(),Q.el(),null==Z?void 0:Z.el());null==R||R.addChild(N);var U=e.getChild("TitleBar");null==R||R.addChild(U);var X=function(e){var o=function(o){function t(e){var o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=(o=b(this,t,[e,s])).el_;return r.querySelector(".vjs-control-text").textContent="Start From Beginning",r.classList.add("vjs-startFromBeginning-button"),o}return c(t,o),l(t,[{key:"handleClick",value:function(){(null==e?void 0:e.currentTime())>0&&e.currentTime(0)}}])}(u.getComponent("Button"));return u.registerComponent("StartFromBeginning",o),new o(e,{})}(e);null==R||R.addChild(X);var J,Y,$,ee=function(e){var o=function(o){function t(e){var o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=(o=b(this,t,[e,s])).el_,i=r.querySelector(".vjs-icon-placeholder");return r.querySelector(".vjs-control-text").textContent="Settings",r.classList.add("vjs-Settings-button"),i.append(j('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M90.913 45.8867V56.1132L80.0959 58.1496C79.4266 61.1027 78.2623 63.9214 76.6523 66.4864L82.8603 75.597L75.586 82.8192L66.5158 76.664C63.9394 78.2538 61.1222 79.4156 58.1737 80.1041L56.1361 90.913H45.8542L43.8193 80.1041C40.8708 79.4158 38.0535 78.2541 35.4773 76.664L26.4071 82.8192L19.1313 75.597L25.2918 66.4864C23.7008 63.9116 22.5379 61.0962 21.8482 58.1496L11.087 56.1132V45.8867L21.8482 43.8028C22.5428 40.8493 23.7235 38.0315 25.3421 35.4646L19.1327 26.4016L26.4085 19.1807L35.4787 25.3359C38.045 23.7263 40.8656 22.5627 43.8207 21.8945L45.8556 11.0869H56.1375L58.1751 21.8945C61.1301 22.5631 63.9506 23.7267 66.5172 25.3359L75.5874 19.1807L82.8617 26.4016L76.6537 35.5135C78.2633 38.0617 79.4277 40.8647 80.0973 43.8028L90.913 45.8867ZM28.9308 51.0214C28.9434 63.1872 38.8221 73.0394 50.9956 73.0271C56.8418 73.0212 62.4462 70.6944 66.5758 66.5588C70.7054 62.4232 73.0219 56.8174 73.0156 50.9748C73.0025 38.809 63.1234 28.9572 50.9499 28.9701C38.7764 28.983 28.9182 38.8556 28.9308 51.0214Z" fill="currentColor"/>\n</svg>')),o}return c(t,o),l(t,[{key:"handleClick",value:function(){g(e,this)}}])}(u.getComponent("Button"));return u.registerComponent("SettingsButton",o),new o(e,{})}(e);if(null==R||R.addChild(ee),!(null!=o&&null!==(_=o.res)&&void 0!==_&&null!==(q=_.video)&&void 0!==q&&null!==(W=q.streamingInfo)&&void 0!==W&&W.isLiveStream)||null!=o&&null!==(D=o.res)&&void 0!==D&&null!==(M=D.video)&&void 0!==M&&null!==(P=M.liveDetails)&&void 0!==P&&P.isDvrEnabled){var oe,te,se=function(e){var o=function(o){function t(e){var o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=(o=b(this,t,[e,s])).el_,i=r.querySelector(".vjs-icon-placeholder");return r.querySelector(".vjs-control-text").textContent="Forward",r.classList.add("vjs-forward-button"),i.append(j('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M461.37 551.05a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67t-12.02 3.59zm109.47-75.65a33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85 33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83zm-1.5 66.6q-4.43 8.19-13.15 8.19c-5.91 0-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.83-4.43 22.32z"></path><path d="M687.85 490l-25.1 5a153.7 153.7 0 1 1-301.6.77c15.68-80.78 92.29-134.47 173-122.56L528.5 389l66.74-8-46.45-48.58-5.79 16.24C447 331.88 354.66 395 336 490.9a179.29 179.29 0 0 0 141.77 210.2 182.22 182.22 0 0 0 34.61 3.35A179.4 179.4 0 0 0 687.85 490z"></path></g></svg>')),o}return c(t,o),l(t,[{key:"handleClick",value:function(){var o=null==e?void 0:e.currentTime();if(o>=0){var t=o+30;e.currentTime(t)}}}])}(u.getComponent("Button"));return u.registerComponent("ForwardButton",o),new o(e,{})}(e);null===(oe=e.controlBar)||void 0===oe||oe.addChild(se);var re=function(e){var o=function(o){function t(e){var o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var r=(o=b(this,t,[e,s])).el_,i=r.querySelector(".vjs-icon-placeholder");return r.querySelector(".vjs-control-text").textContent="Rewind",r.classList.add("vjs-rewind-button"),i.append(j('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M473.39 547.46q-4.22 3.6-12 3.59a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67zm68.15 16.45a33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83 33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85zm1.57-66.65q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.86-4.43 22.32-7.34 8.19-13.15 8.19-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39z"></path><path d="M688 490.9c-18.66-95.93-111-159-207-142.24l-5.84-16.29L428.74 381l66.74 8-5.64-15.72c80.7-11.91 157.31 41.78 173 122.56a153.67 153.67 0 1 1-301.6-.78l-25.1-5a179.47 179.47 0 0 0 175.47 214.39 182.93 182.93 0 0 0 34.6-3.35A179.29 179.29 0 0 0 688 490.9z"></path></g></svg>')),o}return c(t,o),l(t,[{key:"handleClick",value:function(){var o=null==e?void 0:e.currentTime();if(o-30>=0){var t=o-30;e.currentTime(t)}else e.currentTime(0)}}])}(u.getComponent("Button"));return u.registerComponent("RewindButton",o),new o(e,{})}(e);null===(te=e.controlBar)||void 0===te||te.addChild(re)}null!=o&&null!==(V=o.res)&&void 0!==V&&null!==(z=V.video)&&void 0!==z&&null!==(H=z.gist)&&void 0!==H&&H.title&&e.titleBar.update({title:null==o||null===(J=o.res)||void 0===J||null===(Y=J.video)||void 0===Y||null===($=Y.gist)||void 0===$?void 0:$.title});C(e)}(m,d),function(r,n){var l=o(r);l&&(l.on("loadeddata",function(){var e,o,a,d,c;try{var u,m,p,v,j,f;if(null!=n&&null!==(u=n.res)&&void 0!==u&&null!==(m=u.video)&&void 0!==m&&null!==(p=m.streamingInfo)&&void 0!==p&&p.isLiveStream&&null!=n&&null!==(v=n.res)&&void 0!==v&&null!==(j=v.video)&&void 0!==j&&null!==(f=j.liveDetails)&&void 0!==f&&f.isDvrEnabled){var h,y,g=(null===(h=l.seekable())||void 0===h?void 0:h.end(0))-(null===(y=l.seekable())||void 0===y?void 0:y.start(0));window.customData.dvrWindow=g}else window.customData.dvrWindow=null}catch(e){}try{var b,w,C;if(null!=n&&null!==(b=n.res)&&void 0!==b&&null!==(w=b.video)&&void 0!==w&&null!==(C=w.streamingInfo)&&void 0!==C&&C.isLiveStream){var x,L=null===(x=l.controlBar)||void 0===x?void 0:x.getChild("ProgressControl");if(L){var S=L.el().querySelector(".vjs-play-progress");S&&(S.style.width="100%")}}}catch(e){}try{l.qualityLevels().selectedIndex_=-1}catch(e){}try{var E,T,B=l.textTracks().tracks_;B=B.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var O=null===(E=l.controlBar)||void 0===E?void 0:E.getChild("CustomControlSpacer");if(B&&(null===(T=B)||void 0===T?void 0:T.length)>0){var F=k(l);null==O||O.addChild(F)}else try{O.children_[2].el_.style.right="115px"}catch(e){}try{var _,q;O.el_.style.opacity=1,(null===(_=l.controlBar)||void 0===_||null===(q=_.el_)||void 0===q?void 0:q.querySelector(".custom-smartTV-progress-bar")).style.opacity=1}catch(e){}}catch(e){}!(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable||null!==(o=window)&&void 0!==o&&null!==(a=o.app_data)&&void 0!==a&&null!==(d=a.appcmsMain)&&void 0!==d&&null!==(c=d.features)&&void 0!==c&&c.auto_play)||null!=n&&n.liveVideo||t(r,n),null!=n&&n.liveVideo||i()||s(r)}),l.one("play",function(){var o,t,s,i;null!==(o=window)&&void 0!==o&&null!==(t=o.customData)&&void 0!==t&&t.iframeOverlayUrl&&e(r,null===(s=window)||void 0===s||null===(i=s.customData)||void 0===i?void 0:i.iframeOverlayUrl)}))}(a,d),function(e,t){var s,i,n,l,a,d,c,u,m=p(null==t?void 0:t.res,e)||{},j=m.src;r(e,t),"MEDIA_TAILOR"==(null===(s=window)||void 0===s||null===(i=s.app_data)||void 0===i||null===(n=i.appcmsMain)||void 0===n||null===(l=n.adsConfig)||void 0===l?void 0:l.vodAdSticherProvider)&&null!==(a=window)&&void 0!==a&&null!==(d=a.app_data)&&void 0!==d&&null!==(c=d.appcmsMain)&&void 0!==c&&null!==(u=c.adsConfig)&&void 0!==u&&u.vodAdClientSideTracking&&v(e,j);!function(e,t){var s=o(e);if(s){var r,i,n=!1,l=!1;null===(r=s.controlBar)||void 0===r||r.on("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(l=!0)}),null===(i=s.controlBar)||void 0===i||i.on("keyup",function(e){39!==e.keyCode&&37!==e.keyCode||(l=!1)}),s.on("seeking",function(){var e,o,t;s.paused()||n||(n=!0,s.pause());var r=s.currentTime();if(null!==(e=window)&&void 0!==e&&null!==(o=e.customData)&&void 0!==o&&o.dvrWindow)if(r=s.liveTracker.liveCurrentTime()-r,0==Math.round(r)){var i,l;r=window.customData.dvrWindow;var a=null===(i=s.controlBar)||void 0===i||null===(l=i.customControlSpacer)||void 0===l?void 0:l.getChild("SeekToLive");a&&(a.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",s.controlBar.liveDisplay.el().style.opacity=0)}else if(r>window.customData.dvrWindow){var d,c;r=0;var u=null===(d=s.controlBar)||void 0===d||null===(c=d.customControlSpacer)||void 0===c?void 0:c.getChild("SeekToLive");u&&(u.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",s.controlBar.liveDisplay.el().style.opacity=0)}else{var m,p;r=window.customData.dvrWindow-r;var v=null===(m=s.controlBar)||void 0===m||null===(p=m.customControlSpacer)||void 0===p?void 0:p.getChild("SeekToLive");v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",s.controlBar.liveDisplay.el().style.opacity=0)}var j=r/(window.customData.dvrWindow?window.customData.dvrWindow:s.duration())*100,f=null===(t=s.controlBar)||void 0===t?void 0:t.getChild("ProgressControl");if(f){var h=f.el().querySelector(".vjs-play-progress");h&&(h.style.width=j+"%")}}),s.on("seeked",function(){var e,o,r,i,a,d;if(s.paused()&&n&&!l&&(n=!1,s.play()),null!=t&&null!==(e=t.res)&&void 0!==e&&null!==(o=e.video)&&void 0!==o&&null!==(r=o.streamingInfo)&&void 0!==r&&r.isLiveStream&&null!=t&&null!==(i=t.res)&&void 0!==i&&null!==(a=i.video)&&void 0!==a&&null!==(d=a.liveDetails)&&void 0!==d&&d.isDvrEnabled){var c,u,m=null===(c=s.controlBar)||void 0===c||null===(u=c.customControlSpacer)||void 0===u?void 0:u.getChild("SeekToLive");s.liveTracker.seekedBehindLive_?m&&(m.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",s.controlBar.liveDisplay.el().style.opacity=0):m&&(m.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",s.controlBar.liveDisplay.el().style.opacity=1)}})}}(e,t)}(a,d)}export{x as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e}from"./skin-8e2c5488.js";import{f as r,n as t}from"./features-
|
|
1
|
+
import{g as e}from"./skin-8e2c5488.js";import{f as r,n as t}from"./features-b4c00ff4.js";import{g as o}from"./renditions-65794079.js";import{r as i}from"./captions-7996e045.js";import"video.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"./generic-817644b6.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.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 s,b as e,c as o,d as r,e as t}from"./features-b4c00ff4.js";import{i as m}from"./index-c0023a66.js";import{S as i,M as j,a as l,N as p,b as a,R as c}from"./icons-79ad4d7d.js";import{g as d,b as u}from"./skin-8e2c5488.js";import{d as n}from"./generic-817644b6.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"video.js";import"./renditions-65794079.js";import"./localisation-0bf399a1.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.symbol.async-iterator.js";import"core-js/modules/es.symbol.has-instance.js";import"core-js/modules/es.symbol.is-concat-spreadable.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.symbol.match.js";import"core-js/modules/es.symbol.replace.js";import"core-js/modules/es.symbol.search.js";import"core-js/modules/es.symbol.species.js";import"core-js/modules/es.symbol.split.js";import"core-js/modules/es.symbol.to-primitive.js";import"core-js/modules/es.symbol.to-string-tag.js";import"core-js/modules/es.symbol.unscopables.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.copy-within.js";import"core-js/modules/es.array.fill.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.array.flat.js";import"core-js/modules/es.array.flat-map.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.last-index-of.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.of.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.array.reduce-right.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.sort.js";import"core-js/modules/es.array.species.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.array.unscopables.flat.js";import"core-js/modules/es.array.unscopables.flat-map.js";import"core-js/modules/es.array-buffer.constructor.js";import"core-js/modules/es.date.to-primitive.js";import"core-js/modules/es.function.has-instance.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.json.to-string-tag.js";import"core-js/modules/es.map.js";import"core-js/modules/es.math.acosh.js";import"core-js/modules/es.math.asinh.js";import"core-js/modules/es.math.atanh.js";import"core-js/modules/es.math.cbrt.js";import"core-js/modules/es.math.clz32.js";import"core-js/modules/es.math.cosh.js";import"core-js/modules/es.math.expm1.js";import"core-js/modules/es.math.fround.js";import"core-js/modules/es.math.hypot.js";import"core-js/modules/es.math.imul.js";import"core-js/modules/es.math.log10.js";import"core-js/modules/es.math.log1p.js";import"core-js/modules/es.math.log2.js";import"core-js/modules/es.math.sign.js";import"core-js/modules/es.math.sinh.js";import"core-js/modules/es.math.tanh.js";import"core-js/modules/es.math.to-string-tag.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.number.epsilon.js";import"core-js/modules/es.number.is-finite.js";import"core-js/modules/es.number.is-integer.js";import"core-js/modules/es.number.is-nan.js";import"core-js/modules/es.number.is-safe-integer.js";import"core-js/modules/es.number.max-safe-integer.js";import"core-js/modules/es.number.min-safe-integer.js";import"core-js/modules/es.number.parse-float.js";import"core-js/modules/es.number.parse-int.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.object.define-getter.js";import"core-js/modules/es.object.define-setter.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.object.freeze.js";import"core-js/modules/es.object.from-entries.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"core-js/modules/es.object.get-own-property-names.js";import"core-js/modules/es.object.get-prototype-of.js";import"core-js/modules/es.object.is.js";import"core-js/modules/es.object.is-extensible.js";import"core-js/modules/es.object.is-frozen.js";import"core-js/modules/es.object.is-sealed.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.lookup-getter.js";import"core-js/modules/es.object.lookup-setter.js";import"core-js/modules/es.object.prevent-extensions.js";import"core-js/modules/es.object.seal.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.values.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.reflect.apply.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.reflect.define-property.js";import"core-js/modules/es.reflect.delete-property.js";import"core-js/modules/es.reflect.get.js";import"core-js/modules/es.reflect.get-own-property-descriptor.js";import"core-js/modules/es.reflect.get-prototype-of.js";import"core-js/modules/es.reflect.has.js";import"core-js/modules/es.reflect.is-extensible.js";import"core-js/modules/es.reflect.own-keys.js";import"core-js/modules/es.reflect.prevent-extensions.js";import"core-js/modules/es.reflect.set.js";import"core-js/modules/es.reflect.set-prototype-of.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.regexp.flags.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.set.js";import"core-js/modules/es.string.code-point-at.js";import"core-js/modules/es.string.ends-with.js";import"core-js/modules/es.string.from-code-point.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.string.pad-end.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.string.raw.js";import"core-js/modules/es.string.repeat.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.search.js";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.trim-end.js";import"core-js/modules/es.string.trim-start.js";import"core-js/modules/es.string.anchor.js";import"core-js/modules/es.string.big.js";import"core-js/modules/es.string.blink.js";import"core-js/modules/es.string.bold.js";import"core-js/modules/es.string.fixed.js";import"core-js/modules/es.string.fontcolor.js";import"core-js/modules/es.string.fontsize.js";import"core-js/modules/es.string.italics.js";import"core-js/modules/es.string.link.js";import"core-js/modules/es.string.small.js";import"core-js/modules/es.string.strike.js";import"core-js/modules/es.string.sub.js";import"core-js/modules/es.string.sup.js";import"core-js/modules/es.typed-array.float32-array.js";import"core-js/modules/es.typed-array.float64-array.js";import"core-js/modules/es.typed-array.int8-array.js";import"core-js/modules/es.typed-array.int16-array.js";import"core-js/modules/es.typed-array.int32-array.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.uint8-clamped-array.js";import"core-js/modules/es.typed-array.uint16-array.js";import"core-js/modules/es.typed-array.uint32-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.from.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.of.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.weak-map.js";import"core-js/modules/es.weak-set.js";import"core-js/modules/esnext.aggregate-error.js";import"core-js/modules/esnext.global-this.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/esnext.promise.any.js";import"core-js/modules/esnext.string.match-all.js";import"core-js/modules/esnext.string.replace-all.js";import"core-js/modules/esnext.symbol.dispose.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.immediate.js";import"core-js/modules/web.queue-microtask.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url.to-json.js";import"core-js/modules/web.url-search-params.js";import"./util-389babb5.js";import"./captions-7996e045.js";import"./resolution-ed00f17a.js";import"@babel/runtime/helpers/defineProperty";import"./browser-512cd55a.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"ua-parser-js";function y(y,b){d(y).addClass("skin_default"),m(y,b),import("./skin-71be210e.js").then(function(s){var e=document.createElement("style");e.id="def_skin",e.append("".concat(s.default)),document.head.appendChild(e)}),function(s,e){0==e.liveVideo&&0==e.liveui&&r(s,"default",a());(0==e.liveVideo&&0==e.liveui||1==e.liveui)&&t(s,"default",c())}(y,b),function(r,t){var m=d(r),j=(null==t?void 0:t.sres)||null;m.on("loadeddata",function(){s(r,"default",i()),j&&import("./nextEpisodeButton-3bdc1a02.js").then(function(s){s.initaliseFunctionality(t.sres.seasons,n())})}),m.one("loadedmetadata",function(){var s;j&&(e(r,null==t||null===(s=t.sres)||void 0===s?void 0:s.seasons,t),o(t.sres,t.res,r))})}(y,b),function(s,e){var o,r,t,m,i=d(s),a=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],n=document.getElementsByClassName("vjs-time-divider")[0];e.liveVideo&&(a&&(a.style.display="none"),c&&(c.style.display="none"),n&&(n.style.display="none"));null===(o=i.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(r=o.el())||void 0===r||r.appendChild(u(j(window.controlsColor))),null===(t=i.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(m=t.el())||void 0===m||m.appendChild(u(l(window.controlsColor)));var y=i.controlBar.getChild("SubsCapsButton").el();document.getElementById(s).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(u(p()));var b=document.createElement("div");b.classList.add("caption-header"),y.querySelector(".vjs-menu-content").insertBefore(b,y.querySelector(".vjs-menu-item"))}(y,b)}export{y as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s,o as e,p as o,q as r}from"./features-b4c00ff4.js";import{g as t}from"./skin-8e2c5488.js";import{a as m,i,b as l}from"./index-b559de16.js";import{i as j}from"./browser-512cd55a.js";import"videojs-contrib-quality-menu";import a from"video.js";import{i as p,s as d}from"./index-c0023a66.js";import{e as u}from"./generic-817644b6.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"./renditions-65794079.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-63dbac74.js";import"./util-389babb5.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"video.js/dist/video-js.min.css";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.symbol.async-iterator.js";import"core-js/modules/es.symbol.has-instance.js";import"core-js/modules/es.symbol.is-concat-spreadable.js";import"core-js/modules/es.symbol.iterator.js";import"core-js/modules/es.symbol.match.js";import"core-js/modules/es.symbol.replace.js";import"core-js/modules/es.symbol.search.js";import"core-js/modules/es.symbol.species.js";import"core-js/modules/es.symbol.split.js";import"core-js/modules/es.symbol.to-primitive.js";import"core-js/modules/es.symbol.to-string-tag.js";import"core-js/modules/es.symbol.unscopables.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.copy-within.js";import"core-js/modules/es.array.fill.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.array.flat.js";import"core-js/modules/es.array.flat-map.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.index-of.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.last-index-of.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.of.js";import"core-js/modules/es.array.reduce.js";import"core-js/modules/es.array.reduce-right.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.sort.js";import"core-js/modules/es.array.species.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.array.unscopables.flat.js";import"core-js/modules/es.array.unscopables.flat-map.js";import"core-js/modules/es.array-buffer.constructor.js";import"core-js/modules/es.date.to-primitive.js";import"core-js/modules/es.function.has-instance.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.json.to-string-tag.js";import"core-js/modules/es.map.js";import"core-js/modules/es.math.acosh.js";import"core-js/modules/es.math.asinh.js";import"core-js/modules/es.math.atanh.js";import"core-js/modules/es.math.cbrt.js";import"core-js/modules/es.math.clz32.js";import"core-js/modules/es.math.cosh.js";import"core-js/modules/es.math.expm1.js";import"core-js/modules/es.math.fround.js";import"core-js/modules/es.math.hypot.js";import"core-js/modules/es.math.imul.js";import"core-js/modules/es.math.log10.js";import"core-js/modules/es.math.log1p.js";import"core-js/modules/es.math.log2.js";import"core-js/modules/es.math.sign.js";import"core-js/modules/es.math.sinh.js";import"core-js/modules/es.math.tanh.js";import"core-js/modules/es.math.to-string-tag.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.number.epsilon.js";import"core-js/modules/es.number.is-finite.js";import"core-js/modules/es.number.is-integer.js";import"core-js/modules/es.number.is-nan.js";import"core-js/modules/es.number.is-safe-integer.js";import"core-js/modules/es.number.max-safe-integer.js";import"core-js/modules/es.number.min-safe-integer.js";import"core-js/modules/es.number.parse-float.js";import"core-js/modules/es.number.parse-int.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/es.object.assign.js";import"core-js/modules/es.object.define-getter.js";import"core-js/modules/es.object.define-setter.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.object.freeze.js";import"core-js/modules/es.object.from-entries.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"core-js/modules/es.object.get-own-property-names.js";import"core-js/modules/es.object.get-prototype-of.js";import"core-js/modules/es.object.is.js";import"core-js/modules/es.object.is-extensible.js";import"core-js/modules/es.object.is-frozen.js";import"core-js/modules/es.object.is-sealed.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.lookup-getter.js";import"core-js/modules/es.object.lookup-setter.js";import"core-js/modules/es.object.prevent-extensions.js";import"core-js/modules/es.object.seal.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.values.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.reflect.apply.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.reflect.define-property.js";import"core-js/modules/es.reflect.delete-property.js";import"core-js/modules/es.reflect.get.js";import"core-js/modules/es.reflect.get-own-property-descriptor.js";import"core-js/modules/es.reflect.get-prototype-of.js";import"core-js/modules/es.reflect.has.js";import"core-js/modules/es.reflect.is-extensible.js";import"core-js/modules/es.reflect.own-keys.js";import"core-js/modules/es.reflect.prevent-extensions.js";import"core-js/modules/es.reflect.set.js";import"core-js/modules/es.reflect.set-prototype-of.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.regexp.flags.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.set.js";import"core-js/modules/es.string.code-point-at.js";import"core-js/modules/es.string.ends-with.js";import"core-js/modules/es.string.from-code-point.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.string.pad-end.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.string.raw.js";import"core-js/modules/es.string.repeat.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.search.js";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.trim-end.js";import"core-js/modules/es.string.trim-start.js";import"core-js/modules/es.string.anchor.js";import"core-js/modules/es.string.big.js";import"core-js/modules/es.string.blink.js";import"core-js/modules/es.string.bold.js";import"core-js/modules/es.string.fixed.js";import"core-js/modules/es.string.fontcolor.js";import"core-js/modules/es.string.fontsize.js";import"core-js/modules/es.string.italics.js";import"core-js/modules/es.string.link.js";import"core-js/modules/es.string.small.js";import"core-js/modules/es.string.strike.js";import"core-js/modules/es.string.sub.js";import"core-js/modules/es.string.sup.js";import"core-js/modules/es.typed-array.float32-array.js";import"core-js/modules/es.typed-array.float64-array.js";import"core-js/modules/es.typed-array.int8-array.js";import"core-js/modules/es.typed-array.int16-array.js";import"core-js/modules/es.typed-array.int32-array.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.uint8-clamped-array.js";import"core-js/modules/es.typed-array.uint16-array.js";import"core-js/modules/es.typed-array.uint32-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.from.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.of.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.weak-map.js";import"core-js/modules/es.weak-set.js";import"core-js/modules/esnext.aggregate-error.js";import"core-js/modules/esnext.global-this.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/esnext.promise.any.js";import"core-js/modules/esnext.string.match-all.js";import"core-js/modules/esnext.string.replace-all.js";import"core-js/modules/esnext.symbol.dispose.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.immediate.js";import"core-js/modules/web.queue-microtask.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url.to-json.js";import"core-js/modules/web.url-search-params.js";import"./captions-7996e045.js";import"./resolution-ed00f17a.js";import"axios";import"js-cookie";import"ua-parser-js";function c(e,o){var r=t(e);r&&(r.on("loadeddata",function(){var s,r,l,a,p;!function(s){var e=t(s);e&&(null==e||e.qualityMenu,e.qualityMenu({useResolutionLabels:!0}))}(e),!(null!=o&&null!==(s=o.series)&&void 0!==s&&s.enable||null!==(r=window)&&void 0!==r&&null!==(l=r.app_data)&&void 0!==l&&null!==(a=l.appcmsMain)&&void 0!==a&&null!==(p=a.features)&&void 0!==p&&p.auto_play)||null!=o&&o.liveVideo||m(e,o),null!=o&&o.liveVideo||j()||i(e)}),r.one("play",function(){var o,r,t,m;null!==(o=window)&&void 0!==o&&null!==(r=o.customData)&&void 0!==r&&r.iframeOverlayUrl&&s(e,null===(t=window)||void 0===t||null===(m=t.customData)||void 0===m?void 0:m.iframeOverlayUrl)}))}function n(s,m){t(s).addClass("skin_vlone"),c(s,m),function(s,t){var m,i,j,a,c,n,y,b,g,f,v,h,w=u(null==t?void 0:t.res,s)||{},x=w.src;(null==t||null===(m=t.relatedVideos)||void 0===m||null===(i=m.content)||void 0===i?void 0:i.length)>0&&e(s,null==t?void 0:t.relatedVideos);null!=t&&null!==(j=t.series)&&void 0!==j&&j.enable&&o(s,t);(null==t||null===(a=t.streams)||void 0===a?void 0:a.length)>1&&r(s,null==t?void 0:t.streams);l(s,t),p(s,t),"MEDIA_TAILOR"==(null===(c=window)||void 0===c||null===(n=c.app_data)||void 0===n||null===(y=n.appcmsMain)||void 0===y||null===(b=y.adsConfig)||void 0===b?void 0:b.vodAdSticherProvider)&&null!==(g=window)&&void 0!==g&&null!==(f=g.app_data)&&void 0!==f&&null!==(v=f.appcmsMain)&&void 0!==v&&null!==(h=v.adsConfig)&&void 0!==h&&h.vodAdClientSideTracking&&d(s,x)}(s,m),y(s,m)}var y=function(s,e){var o,r,m,i,l,j,p,d,u,c,n,y,b=t(s),g=(null==e?void 0:e.theme)||{},f=a.dom.$(".vjs-play-progress"),v=a.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");v&&(v.style.color="".concat(null===(o=window)||void 0===o||null===(r=o.app_data)||void 0===r||null===(m=r.appcmsMain)||void 0===m||null===(i=m.brand)||void 0===i||null===(l=i.cta)||void 0===l||null===(j=l.primary)||void 0===j?void 0:j.backgroundColor)),f&&(f.style.background="".concat(null===(p=window)||void 0===p||null===(d=p.app_data)||void 0===d||null===(u=d.appcmsMain)||void 0===u||null===(c=u.brand)||void 0===c||null===(n=c.cta)||void 0===n||null===(y=n.primary)||void 0===y?void 0:y.backgroundColor));var h=b.getChild("BigPlayButton")||null;(null==g?void 0:g.progressBarColor)&&f&&(f.style.background=g.progressBarColor),(null==g?void 0:g.playButtonBackgroundColor)&&h&&(h.el().style.background=g.playButtonBackgroundColor),(null==g?void 0:g.playButtonColor)&&v&&(v.style.color=g.playButtonColor),(null==g?void 0:g.playButtonType)&&("square"==(null==g?void 0:g.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};export{n as initialiseSkin};
|
|
@@ -0,0 +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-b4c00ff4.js";import{M as u,a as m,c as v,d as p}from"./icons-79ad4d7d.js";import{g as c,b as h}from"./skin-8e2c5488.js";import{g as f}from"./renditions-65794079.js";import{g as b}from"./captions-7996e045.js";import{a as g,i as j,b as y}from"./index-b559de16.js";import{i as C,d as V}from"./browser-512cd55a.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"video.js";import"./generic-817644b6.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";import"./autoNextVideo-63dbac74.js";import"./util-389babb5.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/defineProperty";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()||j(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),y(l,e)}export{k as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/inherits";import i from"video.js";import{e as l,f as d}from"./icons-79ad4d7d.js";import{J as s,T as c}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/inherits";import i from"video.js";import{e as l,f as d}from"./icons-79ad4d7d.js";import{J as s,T as c}from"./generic-817644b6.js";import{e as r,s as m,f as u,h as v,j as p,i as h}from"./skin-8e2c5488.js";import{a as y}from"./autoNextVideo-63dbac74.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=i.getComponent("Component"),g=function(){function g(t){var a,i,l,d,s,r,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),d=this,r=[t,m],s=n(s=g),(l=o(d,f()?Reflect.construct(s,r||[],n(d).constructor):s.apply(d,r))).playerId=m.playerId,l.seriesData=m.sres,l.videos=m.related.content,l.cb=(null==m||null===(a=m.related)||void 0===a?void 0:a.cb)||null,l.autoNext=(null==m||null===(i=m.related)||void 0===i?void 0:i.autoNext)||!1,l.currentVideoData=m.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&(c(0),y({playerId:l.playerId,content:l.videos,cb:l.cb})),l}return a(g,C),t(g,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return i.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=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(r(),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 a=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(a),i.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;c(e+1);for(var o=i.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))[0]&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=i.dom.createEl("div",{className:"video-selector-head"}),a=i.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(d())});a.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},a.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=i.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),s=i.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=i.dom.createEl("div",{className:"video-container video-accessibility"}),r=function(e){var o,n,a,l,d,r,m,u,v=i.dom.createEl("div",{className:"video -".concat(e)}),p=i.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.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===(a=window)||void 0===a||null===(l=a.app_data)||void 0===l||null===(d=l.appcmsMain)||void 0===d||null===(r=d.images)||void 0===r?void 0:r.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(y);var b=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});i.dom.appendContent(v,p),i.dom.appendContent(v,b),i.dom.appendContent(c,v),i.dom.appendContent(s,c)},m=0;m<this.videos.length;m++)r(m);i.dom.appendContent(n,l),i.dom.appendContent(n,a),i.dom.appendContent(e,n),i.dom.appendContent(e,s),p(this.playerId,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/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import a from"video.js";import{E as l,f as r}from"./icons-79ad4d7d.js";import{J as s,T as d}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import a from"video.js";import{E as l,f as r}from"./icons-79ad4d7d.js";import{J as s,T as d}from"./generic-817644b6.js";import{e as c,s as m,f as p,j as u,k as v}from"./skin-8e2c5488.js";import{a as h}from"./autoNextVideo-63dbac74.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.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(){function g(t){var i,a,l,r,s,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),r=this,c=[t,m],s=n(s=g),(l=o(r,b()?Reflect.construct(s,c||[],n(r).constructor):s.apply(r,c))).playerId=m.playerId,l.seriesData=m.sres,l.videos=m.related.content,l.cb=(null==m||null===(i=m.related)||void 0===i?void 0:i.cb)||null,l.autoNext=(null==m||null===(a=m.related)||void 0===a?void 0:a.autoNext)||!1,l.currentVideoData=m.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&(d(0),h({playerId:l.playerId,content:l.videos,cb:l.cb})),l}return i(g,y),t(g,[{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(l())});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(r())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var l=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,l,r,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===(l=i.customData)||void 0===l?void 0:l.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(r=t.videos[e])||void 0===r?void 0:r.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,l),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}])}();export{g as default};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e,i=require("./generic-cf4b06d0.js"),t=require("./util-2487e498.js"),n=require("./skin-b3999029.js"),o=0,u=0,d=function e(t,o,d,r){u=t,t>d.length-1||(i.setVideoIdx(u+1),i.load(o,d[t].id).then(function(e){n.highlightVideo(u,o),u++,c(e)}).catch(function(i){c(i),setTimeout(function(){n.highlightVideo(u,o),u++,e(u,o,d)},5e3)}))},c=function(i){e&&e(i)};exports.autoPlayNext=function(r){clearTimeout(o);var h=null==r?void 0:r.content;e=null==r?void 0:r.cb;var l=r.playerId;t.onVideoEnded(l,function(){var e=n.getPlayer(l);0!==(null==e?void 0:e.currentTime())&&((u=i.getVideoIdx())>h.length-1||(i.setVideoIdx(u+1),i.load(l,h[u].id).then(function(e){n.highlightVideo(u,l),i.setCurrentVideo(e.response),u++,c(e)}).catch(function(e){c(e),n.highlightVideo(u,l),u++,o=setTimeout(function(){i.isPaused(l)&&d(u,l,h)},5e3)})))})},exports.switchToNext=d;
|
package/cjs/browser-b4213cb7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.regexp.exec.js");exports.detectBrowser=function(){var e,r,i,n;return null!==(e=window)&&void 0!==e&&null!==(r=e.customData)&&void 0!==r&&r.isSmartTV?"Chrome":navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(i=window.navigator)||void 0===i||null===(n=i.userAgentData)||void 0===n?void 0:n.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},exports.isMobile=function(){var e,r;return(null===(e=window)||void 0===e||null===(r=e.customData)||void 0===r||!r.isSmartTV)&&!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.reflect.construct.js");var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/inherits");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.map.js");var r=require("video.js"),i=require("./icons-bacdb330.js"),s=require("./captions-393835e9.js"),c=require("./skin-b3999029.js");function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.string.includes.js");var d=r.getComponent("Component"),u=function(){function u(t){var o,r,i,s,c,d,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,u),c=this,p=[t,m],d=a(d=u),(s=n(c,l()?Reflect.construct(d,p||[],a(c).constructor):d.apply(c,p))).playerId=m.playerId,s.seriesData=m.sres,s.currentVideoData=m.res,s.initialiseStructure(),s.loadCSS(),null===(o=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===o||null===(r=o[0])||void 0===r||null===(i=r.style)||void 0===i||i.setProperty("display","none","important"),s}return o(u,d),t(u,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(i.CaptionsSvgV2())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./caption-settings-34ca0188.js")}).then(function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=s.getCaptions(this.playerId);null==t||t.map(function(t){return s.disableCaptions(e.playerId,t.id)});var n=this.el(),a=r.dom.createEl("div",{className:"caption-selection-container hidden"});r.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(c.closeOpenDrawers(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",c.setUpdatedElHeight(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(i),r.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),c.detectOrientationChange(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=r.dom.createEl("div",{className:"caption-selector-head"}),a=r.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(i.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=r.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),s=r.dom.createEl("div",{className:"caption-selector-content"}),l=r.dom.createEl("div",{className:"caption-container"}),d=this.createLanguageContanier();r.dom.appendContent(l,d),r.dom.appendContent(n,a),r.dom.appendContent(n,o),r.dom.appendContent(e,n),r.dom.appendContent(e,s),r.dom.appendContent(s,l),c.handleDrawerResizing(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=r.dom.createEl("div",{className:"caption-language-container"}),n=r.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});r.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var i=r.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});i.setAttribute("type","radio"),i.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important")),s.getCaptions(e.playerId).map(function(t){return s.disableCaptions(e.playerId,t.id)})},r.dom.appendContent(a,i),r.dom.appendContent(a,o),r.dom.appendContent(t,a);for(var c=s.getCaptions(this.playerId),l=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var i=document.createElement("div");i.className="caption - ".concat(n),i.textContent=null==c||null===(a=c[n])||void 0===a?void 0:a.label;var l=r.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});l.onchange=function(t){s.enableCaptions(e.playerId,c[n].id)},l.setAttribute("type","radio"),r.dom.appendContent(o,l),r.dom.appendContent(o,i),r.dom.appendContent(t,o)},d=0;d<c.length;d++)l(d);return t}},{key:"createFontSizeContainer",value:function(){var e=r.dom.createEl("div",{className:"caption-font-container"}),t=r.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});r.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,i=document.createElement("label");i.className="caption-font-holder",i.setAttribute("for","font".concat(a));var s=document.createElement("div");s.className="fontsize - ".concat(a),s.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var c=r.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});c.setAttribute("type","radio"),c.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},r.dom.appendContent(i,c),r.dom.appendContent(i,s),r.dom.appendContent(e,i)}return e}}])}();exports.default=u;
|
package/cjs/captions-393835e9.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.array.filter.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.array.map.js");var e=require("./skin-b3999029.js");exports.addCaptions=function(t,r){var s=e.getPlayer(t);s.remoteTextTracks().tracks_.map(function(e){s.removeRemoteTextTrack(e)}),r.map(function(e){s.addRemoteTextTrack({src:e.url,srcLang:e.language,label:e.language})})},exports.disableCaptions=function(t,r){for(var s=e.getPlayer(t).textTracks(),a=0;a<s.length;a++){var n=s[a];"subtitles"!==n.kind&&"captions"!==n.kind||n.id!==r||(n.mode="hidden")}},exports.enableCaptions=function(t,r){var s,a,n;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(s=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===s||null===(a=s[0])||void 0===a||null===(n=a.style)||void 0===n||n.setProperty("display","flex"));for(var i=e.getPlayer(t).textTracks(),o=0;o<i.length;o++){var l=i[o];"subtitles"!==l.kind&&"captions"!==l.kind||l.id!=r||(l.mode="showing")}},exports.getCaptions=function(t){var r,s=e.getPlayer(t);return(null==s||null===(r=s.textTracks())||void 0===r?void 0:r.tracks_.filter(function(e){return"subtitles"==e.kind||"captions"===e.kind}))||[]},exports.removeCaptions=function(t){var r=e.getPlayer(t);r.remoteTextTracks().tracks_.map(function(e){"subtitles"==(null==e?void 0:e.kind)||null==e||e.kind,r.removeRemoteTextTrack(e)})};
|
package/cjs/features-8ccce5cb.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("core-js/modules/es.reflect.construct.js");var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),n=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/inherits");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.object.assign.js");var l=require("video.js"),i=require("./generic-cf4b06d0.js"),s=require("./renditions-17c543e3.js"),a=require("./skin-b3999029.js"),d=require("./localisation-56e0a999.js");function u(e,t,o){return t=n(t),r(e,c()?Reflect.construct(t,o||[],n(e).constructor):t.apply(e,o))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}exports.addCaptionButton=function(e,t){Promise.resolve().then(function(){return require("./caption-settings-4edadfe5.js")}).then(function(r){var n,o,i,s,d=r.default,u=a.getPlayer(e);l.registerComponent("captionSelector",d),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(i=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===i||null===(s=i[0])||void 0===s||s.remove(),u&&u.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},u.controlBar.children().length-3)})},exports.addDBClickFullScreen=function(e){var t=a.getPlayer(e).el(),r=0,n=a.getPlayer(e);n.addChild("fullscreenToggle");var o=function(){var e,r=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];r&&r.click()};n.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;n.el().addEventListener("touchend",function(){var e=(new Date).getTime(),n=e-r;if(n<300&&n>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}r=e}),window._multiplayer_dbTapHandler=o},exports.addMulticamSelector=function(e,t){Promise.resolve().then(function(){return require("./multicamv2-84aa0456.js")}).then(function(r){var n=r.default,o=a.getPlayer(e);l.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},exports.addMulticamSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./multicamv2-fb56bab1.js")}).then(function(r){var n=r.default,o=a.getPlayer(e);l.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},exports.addNextEpisodeButton=function(e,t,r){Promise.resolve().then(function(){return require("./nextEpisodeButton-a2bd48c7.js")}).then(function(n){var o=n.default,i=a.getPlayer(r);l.registerComponent("nextEpisodeButtonModule",o),i.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},i.controlBar.children().length-5)})},exports.addOutputtingOverlay=function(e,t){var r=a.getPlayer(e).el(),n=l.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(n)},exports.addPlaylistSelector=function(e,t){Promise.resolve().then(function(){return require("./playlist-ffa59fac.js")}).then(function(r){var n=r.default,o=a.getPlayer(e);l.registerComponent("playlistSelector",n),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},exports.addResolutionModule=function(e,t,r){Promise.resolve().then(function(){return require("./resolution-7e0a2fe4.js")}).then(function(n){var o=n.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var i=a.getPlayer(e),d=s.getRenditions(e);(null==d?void 0:d.length)>0&&(l.registerComponent("resolutionModule",o),i.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:d},i.controlBar.children().length-4))})},exports.addRewindButton=function(r,n,s){var d=function(n){function l(t,r){var n;e(this,l);var o=(n=u(this,l,[t,r])).el_;o.classList.add("vjs-rewind-button");var i=a.parseSvgString(s);return o.append(i),n}return o(l,n),t(l,[{key:"handleClick",value:function(){i.rewind(r,10)}}])}(l.getComponent("Button"));l.registerComponent("MyButton",d),l(r).getChild("controlBar").addChild("myButton",{},1)},exports.addSeriesModule=function(e,t,r){Promise.resolve().then(function(){return require("./series-547835df.js")}).then(function(n){var o=n.seriesModule,i=a.getPlayer(e);l.registerComponent("seriesModule",o),i.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},i.controlBar.children().length-4);for(var s=document.querySelectorAll(".season-title-sdk"),d=function(e){s[e].addEventListener("click",function(){t[e]&&n.handleSeasonChange(t[e],e,i,r)})},u=0;u<s.length;u++)d(u)})},exports.addSeriesSelectorV2=function(e,t){Promise.resolve().then(function(){return require("./series-v2-ba70e761.js")}).then(function(r){var n=r.default,o=a.getPlayer(e);l.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",Object.assign({playerId:e},t),o.controlBar.children().length-3)})},exports.addSeriesSelectorV2_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./series-v2-214a3bb6.js")}).then(function(r){var n=r.default,o=a.getPlayer(e);l.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",Object.assign({playerId:e},t),o.controlBar.children().length-3)})},exports.addSettingsButtonV2=function(e,t){Promise.resolve().then(function(){return require("./settings-icon-0cbc8b5f.js")}).then(function(r){var n,o,i,s,d=r.default,u=a.getPlayer(e);l.registerComponent("settingsSelector",d),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(i=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===i||null===(s=i[0])||void 0===s||s.remove(),u&&u.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},u.controlBar.children().length-3)})},exports.addSkipButton=function(r,n,s){var d=function(n){function l(t,r){var n;e(this,l);var o=(n=u(this,l,[t,r])).el_;o.classList.add("vjs-skip-button");var i=a.parseSvgString(s);return o.append(i),n}return o(l,n),t(l,[{key:"handleClick",value:function(){i.skip(r,10)}}])}(l.getComponent("Button"));l.registerComponent("MyButton",d),l(r).getChild("controlBar").addChild("myButton",{},1)},exports.addSlowMotion=function(r){var n=function(r){function n(t,r){var o;e(this,n);var l=(o=u(this,n,[t,r])).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=d.getLocalisation("slowMoText")||"Slow Mo",o}return o(n,r),t(n,[{key:"handleClick",value:function(){1==i.playbackRate()?(i.playbackRate(.5),this.el().style.background="darkgray"):(i.playbackRate(1),this.el().style.background="none")}}])}(l.getComponent("Button"));l.registerComponent("MyButton",n);var i=l(r);i.getChild("controlBar").addChild("myButton",{},2)},exports.addVideoSelector=function(e,t){Promise.resolve().then(function(){return require("./videoSelector-ff9f89e0.js")}).then(function(r){var n=r.default,o=a.getPlayer(e);l.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},exports.addVideoSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then(function(){return require("./videoSelector-d37a3677.js")}).then(function(r){var n=r.default,o=a.getPlayer(e);l.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})};
|
package/cjs/generic-25679e19.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/regenerator"),n=require("video.js"),i=require("axios"),o=require("./skin-3397dca5.js"),r=require("./browser-38ff3331.js"),l=require("js-cookie"),a=require("ua-parser-js"),d=require("./captions-3c7ca3a7.js"),u={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel",getBeaconUrl:"/analytics/player-beacon"},s=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},c=null;function v(){return{set:function(e){e&&(c=e)},get:function(){return c}}}var m=function(){var n=e(t.mark(function e(){var n,o,r;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=v().get(),o=S.get(),e.prev=2,e.next=5,i({method:"GET",url:"".concat(o,"/identity/refresh/").concat(n)});case 5:return r=e.sent,e.abrupt("return",r);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}},e,null,[[2,9]])}));return function(){return n.apply(this,arguments)}}(),f=null,p=function(){var n=e(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=sessionStorage.getItem("vlp_token"))||!s(n)){e.next=6;break}return f||(f=m().then(function(e){var t,i,o=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,r=null==e||null===(i=e.data)||void 0===i?void 0:i.refreshToken;return o&&sessionStorage.setItem("vlp_token",o),r&&v().set(r),o||n}).catch(function(e){return console.error("Error fetching refresh token",e),n}).finally(function(){f=null})),e.abrupt("return",f);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}));return function(){return n.apply(this,arguments)}}(),g=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},I=require("../../package.json");window.vl_player_version=I.version;var w,E,T,h,_,y,F,b=function(e,t){var n,o,r,l,a,d,s,c;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})}):i({url:null!==(a=window)&&void 0!==a&&null!==(d=a.customData)&&void 0!==d&&d.overrideEntitlementBaseUrl?(null===(s=window)||void 0===s||null===(c=s.customData)||void 0===c?void 0:c.overrideEntitlementBaseUrl)+"/video/status":S.get()+"".concat(null==u?void 0:u.getVideoDetails),params:Object.assign({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:t,"Sdk-Version":I.version},withCredentials:!0})},D=function(e,t){var n,o,r,l;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})}):i({url:S.get()+u.getLinearChannelDetails,params:Object.assign({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId},(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId},(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle},(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType},null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:t,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},L=function(){var n=e(t.mark(function e(n){var o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:return o=e.sent,e.abrupt("return",i({url:S.get()+"".concat(null==u?void 0:u.saveWatchHistoryV2),method:"POST",headers:{Authorization:o},data:Object.assign({},n),params:Object.assign({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(e){return n.apply(this,arguments)}}(),V=function(e,t){var n,o,r=window.contentType;return i({method:"GET",url:S.get()+"".concat(null==u?void 0:u.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:t,"x-api-key":null===(n=window)||void 0===n||null===(o=n.watchHistory)||void 0===o?void 0:o.xApiKey},timeout:15e3})},R=function(e){var t=e.videoId;return i({method:"GET",url:S.get()+"".concat(null==u?void 0:u.getSeriesWatchHistoryV2,"/").concat(t),headers:{Authorization:e.token},timeout:15e3})},S=(w=null==u?void 0:u.apiBaseUrl,{set:function(e){e&&(w=e)},get:function(){return w}}),W=function(e){T=e},O=function(){return T},x=function(){return E},P=function(e){h=e},C=function(e){if(_){var t=_.get(e);P(t+1)}},A=(F=0,{set:function(e){e>=0&&(F=e)},get:function(){return F}}),N=function(){var e=A.get();return e>=0?e+1:1},B=function(){var e,t,n,i=x(),o=O(),r=null==o||null===(e=o.video)||void 0===e?void 0:e.id,l=A.get(),a=null==i||null===(t=i[l])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:n.findIndex(function(e){return(null==e?void 0:e.id)===r});return a>=0?a+1:1};window._deviceInfo=a.UAParser(navigator.userAgent);var M=function(e,t){return e&&t?"".concat(e,"x").concat(t):e>1024?"L":e>768?"M":"S"},U=function(e){var t=k(e,"video.tags",[]),n=k(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?t.map(function(e){return e.title}).join(","):n},k=function(e,t,n){for(var i=0,o=(t=t.split(".")).length;i<o;i++){var r;e=null===(r=e)||void 0===r?void 0:r[t[i]]}return e||n},j=function(){var e,t,n,i,r,a,d,u,s,c,v,m,f,p,g,I,w,E,T,h,_,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",F=arguments.length>1?arguments[1]:void 0,b=arguments.length>2?arguments[2]:void 0,D=(null==b?void 0:b.siteName)||"",L=(null==b?void 0:b.contentType)||"video",V=(null==b||null===(e=b[L])||void 0===e?void 0:e.metadata)||(null==b||null===(t=b[L])||void 0===t||null===(n=t.gist)||void 0===n?void 0:n.metadata),R=o.getPlayer(F);if(!y.includes("VIEWLIFT_"))return y;var S,W=window.getComputedStyle(document.getElementById(F),null),O=Math.trunc(W.getPropertyValue("height").slice(0,-2)),x=Math.trunc(W.getPropertyValue("width").slice(0,-2)),P="linearchannel"===L?null==b||null===(i=b.linearchannel)||void 0===i||null===(r=i.channels)||void 0===r||null===(a=r.find(function(e){return(null==e?void 0:e.id)===(null==b?void 0:b.channelId)}))||void 0===a||null===(d=a.content)||void 0===d?void 0:d.id:k(b,"video.gist.id",""),C="linearchannel"===L?null==b||null===(u=b.linearchannel)||void 0===u||null===(s=u.channels)||void 0===s||null===(c=s.find(function(e){return(null==e?void 0:e.id)===(null==b?void 0:b.channelId)}))||void 0===c?void 0:c.title:k(b,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),A=null,j=null;"function"==typeof window.__gpp&&(null===(S=window)||void 0===S||S.__gpp("ping",function(e){A=null==e?void 0:e.gppString,j=null==e?void 0:e.sectionList[0]}));var G=Object.assign({},H(V),{VIEWLIFT_WIDTH:x,VIEWLIFT_HEIGHT:O,VIEWLIFT_SIZE:M(x,O),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(v=window)||void 0===v?void 0:v.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:k(b,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:k(b,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:k(b,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==R||null===(m=R.options_)||void 0===m?void 0:m.autoplay)||1,VIEWLIFT_MUTE:(null==R||null===(f=R.options_)||void 0===f?void 0:f.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==D?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:U(b),VIEWLIFT_MEDIA_ID:P,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(k(b,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:P,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+k(b,"video.gist.permalink","")),VIEWLIFT_CONSENT:l.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:k(null===(p=window)||void 0===p||null===(g=p.app_data)||void 0===g||null===(I=g.site)||void 0===I?void 0:I.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_GDPR:"spinco"==D?"":k(null===(w=window)||void 0===w||null===(E=w.app_data)||void 0===E||null===(T=E.site)||void 0===T?void 0:T.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*k(b,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:k(b,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:P,VIEWLIFT_CONTENT_TITLE:C,VIEWLIFT_CONTENT_SERIES_TITLE:k(b,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:k(b,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:B(),VIEWLIFT_SEASON_NUMBER:N(),VIEWLIFT_CONTENT_TAGS:U(b),VIEWLIFT_GPP_SID:j||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:A||"VIEWLIFT_GPP",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:""},null===(h=window)||void 0===h||null===(_=h.customData)||void 0===_?void 0:_.macros);for(var z in G){var Y=new RegExp(z,"g");y=y.replace(Y,G[z])}return y},H=function(e){var t,n,i,o,l,a,d;if(null!==(t=window)&&void 0!==t&&t.customData.isSmartTV)return G(u);var u={},s=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){s.set(e.name,e.value)}));var c=(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.subscription)||void 0===o?void 0:o.SVOD)||!1,v=(null===(l=window)||void 0===l||null===(a=l.customData)||void 0===a||null===(d=a.subscription)||void 0===d?void 0:d.TVE)||!1;return c||v?(r.isMobile()?c?u=Object.assign({},u,{VIEWLIFT_CSID:s.get("csid.mweb.dtc")||""}):v&&(u=Object.assign({},u,{VIEWLIFT_CSID:s.get("csid.mweb.tve")||""})):c?u=Object.assign({},u,{VIEWLIFT_CSID:s.get("csid.web.dtc")||""}):v&&(u=Object.assign({},u,{VIEWLIFT_CSID:s.get("csid.web.tve")||""})),c?u=Object.assign({},u,{VIEWLIFT_SFID:s.get("sfid.dtc")||s.get("sfid.web.dtc")||""}):v&&(u=Object.assign({},u,{VIEWLIFT_SFID:s.get("sfid.tve")||s.get("sfid.web.tve")||""})),u=r.isMobile()?Object.assign({},u,{VIEWLIFT_PROF:s.get("prof.mweb")||""}):Object.assign({},u,{VIEWLIFT_PROF:s.get("prof.web")||""})):(u=Object.assign({},u,{VIEWLIFT_SFID:s.get("sfid.dtc")||s.get("sfid.web.dtc")||""}),u=r.isMobile()?Object.assign({},u,{VIEWLIFT_CSID:s.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:s.get("prof.mweb")||""}):Object.assign({},u,{VIEWLIFT_CSID:s.get("csid.web.dtc")||"",VIEWLIFT_PROF:s.get("prof.web")||""})),u=Object.assign({},u,{VIEWLIFT_AFID:s.get("afid")})},G=function(e){var t,n,i,o,r,l,a={},d=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){d.set(e.name,e.value)}));var u=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.subscription)||void 0===i?void 0:i.SVOD)||!1,s=(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.subscription)||void 0===l?void 0:l.TVE)||!1;return(u||s)&&(s?(a=Object.assign({},a,{VIEWLIFT_SFID:d.get("sfid.tve")}),a="lgTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.lgtv.tve")||"",VIEWLIFT_PROF:d.get("prof.lgtv")||""}):"vizioTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.viziotv.tve")||"",VIEWLIFT_PROF:d.get("prof.viziotv")||""}):"xfinityX1"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xfinity.tve")||"",VIEWLIFT_PROF:d.get("prof.xfinity")||""}):"xbox"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xbox.tve")||"",VIEWLIFT_PROF:d.get("prof.xbox")||""}):Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.samsungtv.tve")||"",VIEWLIFT_PROF:d.get("prof.samsungtv")||""})):(a=Object.assign({},a,{VIEWLIFT_SFID:d.get("sfid.dtc")}),a="lgTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.lgtv.dtc")||"",VIEWLIFT_PROF:d.get("prof.lgtv")||""}):"vizioTv"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.viziotv.dtc")||"",VIEWLIFT_PROF:d.get("prof.viziotv")||""}):"xfinityX1"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xfinity.dtc")||"",VIEWLIFT_PROF:d.get("prof.xfinity")||""}):"xbox"==window.customData.device?Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.xbox.dtc")||"",VIEWLIFT_PROF:d.get("prof.xbox")||""}):Object.assign({},a,{VIEWLIFT_CSID:d.get("csid.samsungtv.dtc")||"",VIEWLIFT_PROF:d.get("prof.samsungtv")||""}))),a},z=function(e){var t=null;try{var n,i,o,r,l,a,d,u,s,c,v,m,f,p,g,I,w,E,T,h,_,y,F,b,D,L,V,R,S;if(null!==(n=window)&&void 0!==n&&n.customData.isSmartTV){if("samsungTv"==window.customData.device&&null!=e&&null!==(i=e.ads)&&void 0!==i&&null!==(o=i.preRoll)&&void 0!==o&&null!==(r=o.adTags)&&void 0!==r&&null!==(l=r.samsung_tv)&&void 0!==l&&l.active)t=null==e||null===(E=e.ads)||void 0===E||null===(T=E.preRoll)||void 0===T||null===(h=T.adTags)||void 0===h||null===(_=h.samsung_tv)||void 0===_?void 0:_.url;else if("lgTv"==window.customData.device&&null!=e&&null!==(a=e.ads)&&void 0!==a&&null!==(d=a.preRoll)&&void 0!==d&&null!==(u=d.adTags)&&void 0!==u&&null!==(s=u.lg_tv)&&void 0!==s&&s.active){var W,O,x,P;t=null==e||null===(W=e.ads)||void 0===W||null===(O=W.preRoll)||void 0===O||null===(x=O.adTags)||void 0===x||null===(P=x.lg_tv)||void 0===P?void 0:P.url}else if("vizioTv"==window.customData.device&&null!=e&&null!==(c=e.ads)&&void 0!==c&&null!==(v=c.preRoll)&&void 0!==v&&null!==(m=v.adTags)&&void 0!==m&&null!==(f=m.vizioTv)&&void 0!==f&&f.active){var C,A,N,B;t=null==e||null===(C=e.ads)||void 0===C||null===(A=C.preRoll)||void 0===A||null===(N=A.adTags)||void 0===N||null===(B=N.vizioTv)||void 0===B?void 0:B.url}else if("xbox"==window.customData.device&&null!=e&&null!==(p=e.ads)&&void 0!==p&&null!==(g=p.preRoll)&&void 0!==g&&null!==(I=g.adTags)&&void 0!==I&&null!==(w=I.xbox)&&void 0!==w&&w.active){var M,U,k,j;t=null==e||null===(M=e.ads)||void 0===M||null===(U=M.preRoll)||void 0===U||null===(k=U.adTags)||void 0===k||null===(j=k.xbox)||void 0===j?void 0:j.url}}else t=(null==e||null===(y=e.ads)||void 0===y||null===(F=y.preRoll)||void 0===F||null===(b=F.adTags)||void 0===b||null===(D=b.web)||void 0===D?void 0:D.active)&&(null==e||null===(L=e.ads)||void 0===L||null===(V=L.preRoll)||void 0===V||null===(R=V.adTags)||void 0===R||null===(S=R.web)||void 0===S?void 0:S.url)}catch(e){}return t},Y=function(e,t){var n,i,o,l,a,d,u,s,c,v,m,f,p,g=(null==e?void 0:e.contentType)||"video",I=null==e||null===(n=e[g])||void 0===n?void 0:n.drmEnabled,w=null==e||null===(i=e[g])||void 0===i||null===(o=i.streamingInfo)||void 0===o?void 0:o.videoAssets,E=null==e||null===(l=e[g])||void 0===l||null===(a=l.streamingInfo)||void 0===a?void 0:a.audioAssets,T=(null==e||null===(d=e[g])||void 0===d||null===(u=d.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.hls)||!1;null==e||null===(c=e[g])||void 0===c||null===(v=c.liveDetails)||void 0===v||v.isDvrEnabled;var h=(null==e||null===(m=e[g])||void 0===m||null===(f=m.streamingInfo)||void 0===f||null===(p=f.videoAssets)||void 0===p?void 0:p.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return X(E);if(I){var _=J(w,t);return _.src=j(_.src,t,e),_}if("Safari"!==r.detectBrowser()&&h)return q(w);if(T){var y=X(w);return y.src=j(y.src,t,e),y}if(null!=w&&w.mpeg){var F=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(w);return F.src=j(F.src,t,e),F}return null},q=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},X=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},J=function(e,t){var i=e.fairPlayCmaf||e.fairPlay,l=e.widevine,a=e.playReady,d=r.detectBrowser();if(o.getPlayer(t),"Safari"===d){var u=function(e){var t=e.url;return{src:t,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(t,i){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};n.xhr(o,function(e,t,n){console.log(e),e&&i(e),i(null,new Uint8Array(n))})},getContentId:function(e,t){if(t){var n=t.indexOf("\0")+1;return t.slice(n)}},getLicense:function(t,i,o,r){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};n.xhr(l,function(e,t,n){console.log(e),e&&r(e),r(null,n)})}}}}}(i);return K(t),u}var s,c={src:l.url,type:"application/dash+xml"};return"caliente"==(null===(s=window)||void 0===s?void 0:s.siteName)?(K(t),c.keySystems={"com.widevine.alpha":{url:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:l.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),c};var K=function(e){var t=o.getPlayer(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==r.detectBrowser()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}};function Q(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function Z(e,t){Q("event",e,t)}var $=function(e,t){if(Promise.resolve().then(function(){return require("./error-26d5a3c3.js")}).then(function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)}),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var i=document.getElementById(e);if(i){var o=document.createElement("div");o.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),o.appendChild(r),i.append(o)}}},ee=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};require("./advertisement.css");var te=!1,ne=function(e,t,n){var i=j(t,e,n),r=o.getPlayer(e);if(t&&window.google){if("function"!=typeof r.ima)return;r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),function(e,t){var n,i,r,l=o.getPlayer(e);if(null!==l.el_){te=!0;var a={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};l.ima.initializeAdDisplayContainer&&l.ima.initializeAdDisplayContainer(),te&&null!==l.el_&&("function"==typeof l.ima?l.ima(a):setTimeout(function(){l.ima.setContentWithAdTag(null,t,!0),l.ima.requestAds()},1e3));var d=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&d.hasAttribute("controls")&&d.removeAttribute("controls");var u="click",s=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(s=!0,u="touchend"),l.one(u,function(){s&&l.ima.initializeAdDisplayContainer()});var c=(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(r=i.ads)||void 0===r?void 0:r.adEventHandler)||null;l.one("ads-ad-started",function(){c&&c({status:"STARTED",msg:"Advertisement Started"})}),l.one("ads-manager",function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})})}),l.on("adserror",function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})})}}(e,i)}},ie=0,oe=function(){var e,t,n,i,o,r,l,a=O();return"linearchannel"==((null==a?void 0:a.contentType)||"video")?null==a||null===(e=a.linearchannel)||void 0===e||null===(t=e.channels)||void 0===t||null===(n=t.find(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)}))||void 0===n||null===(i=n.content)||void 0===i?void 0:i.id:(null==a||null===(o=a.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.id)||(null==a||null===(l=a.video)||void 0===l?void 0:l.id)||(null==a?void 0:a.id)};function re(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function le(){var e=window.sessionStorage.getItem("uid");return e||(e=re(),window.sessionStorage.setItem("uid",e),e)}function ae(){return de.apply(this,arguments)}function de(){return(de=e(t.mark(function e(){var n,i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(null==(i=JSON.parse(atob(n.split(".")[1])))||!i.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==i?void 0:i.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ue(e){return e?String(e):""}window.initialise=function(e){window.sid=re(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var t=Math.floor(e.currentTime());e.on("error",function(){var n,i,o,r=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,Z(r?"FAILED_TO_START":"DROPPED_STREAM",Object.assign({pfm:window.platform,uid:le(),vid:oe(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:t===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})},window.firstFrame=function(e,t){e.one("play",tryCatch(function(){var n,i,o;window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval(function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null},100),Z("PLAY",Object.assign({pfm:window.platform,uid:le(),vid:oe(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),t&&t("started_video_playback",{"Video ID":oe(),watchTime:Math.floor(e.currentTime())})}))},window.buffering=function(e){e.on("waiting",tryCatch(function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval(function(){var t,n;null!=e&&null!==(t=e.el_)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&n.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=window.handleBufferTimer?window.handleBufferTimer(window.totalBufferTime,e):null:clearInterval(window.bufferingTimer)},100))}))},window.handleBufferTimer=function(e,t){var n,i;if(t.el_){var o,r,l,a=e+.1;if(+a.toFixed(2)%5==0&&null!=t&&null!==(n=t.el_)&&void 0!==n&&null!==(i=n.className)&&void 0!==i&&i.includes("vjs-waiting")&&ie<4)ie++,Z("BUFFERING",Object.assign({pfm:window.platform,uid:le(),vid:oe(),videoPosition:t.el_&&Math.floor(t.currentTime())},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"BUFFERING",videoPosition:t.el_&&Math.floor(t.currentTime()),isAdEvent:!1});return a}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",function(){var t,n,i;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,Z("FIRST_FRAME",Object.assign({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:le(),vid:oe()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})})},window.ads=function(e){e.on("adsready",function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,function(){var t,n,i,o,r,l;Z("AD_REQUEST",Object.assign({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:le(),vid:oe(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),Z("AD_IMPRESSION",Object.assign({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:le(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:oe()},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),resHeight:e.videoHeight(),resWidth:e.videoWidth(),isAdEvent:!0,adPosition:1})}),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,function(){window.ttFirstFrame=0}),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,function(){window.ttFirstFrame=0})})},window.ping=function(e){var t=[];e.on("timeupdate",function(){var n=Math.floor(e.currentTime());n>=30&&n%30==0&&!t.includes(n)&&(ie=0,t.push(n),fireEvent({eventName:"PING",videoPosition:n,isAdEvent:!1,duration:30,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))})},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch(function(){for(var t=e.currentTime(),n=e.duration(),i=e.buffered(),o=0;o<i.length;o++){var r=i.start(o),l=i.end(o);if(se(t,r,l)){var a=Math.round(n-l);if(isFinite(a))return a}}})()};var se=function(e,t,n){return e>=t&&e<=n};window.fireEvent=function(){var n=e(t.mark(function e(n){var o,r,l,a,d,s,c,v,m,f,I,w,E,T,h,_,y,F,b,D;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:return _=e.sent,y=g(_),F=null==y?void 0:y.site,b=null==y?void 0:y.siteId,e.t0=Object,e.t1={aid:F,cid:b,pfm:window.platform},e.t2=null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params,e.t3=le(),e.t4=oe(),e.t5=n.url||document.location.href,e.t6=n.ref||document.referrer,e.t7=n.eventName,e.t8=null!==(a=n.videoPosition)&&void 0!==a?a:null,e.t9=window.environment,e.t10=n.dp1||"",e.t11=n.dp2||"",e.t12=n.dp3||"",e.t13=n.dp4||"",e.t14=n.dp5||"",e.t15=!0===n.isAdEvent?n.videoPosition:null,e.t16=!0===n.isAdEvent?ue(n.adPosition):"",e.next=25,ae();case 25:e.t17=e.sent,e.t18=n.playerType||"native",e.t19=n.mediaType||"VIDEO",e.t20=window.sid,e.t21=null!==(d=n.ttFirstFrame)&&void 0!==d?d:null,e.t22=null!==(s=n.bitrate)&&void 0!==s?s:null,e.t23=null!==(c=n.resHeight)&&void 0!==c?c:null,e.t24=null!==(v=n.resWidth)&&void 0!==v?v:null,e.t25=null!==(m=n.bufferHealth)&&void 0!==m?m:null,e.t26={uid:e.t3,vid:e.t4,url:e.t5,ref:e.t6,pa:e.t7,vpos:e.t8,environment:e.t9,dp1:e.t10,dp2:e.t11,dp3:e.t12,dp4:e.t13,dp5:e.t14,apos:e.t15,apod:e.t16,profid:e.t17,player:e.t18,media_type:e.t19,stream_id:e.t20,embedurl:"",ttfirstframe:e.t21,bitrate:e.t22,connectionspeed:null,resolutionheight:e.t23,resolutionwidth:e.t24,bufferhealth:e.t25},e.t27=(null==n?void 0:n.duration)&&{duration:n.duration},e.t28=null===(f=window)||void 0===f||null===(I=f.customData)||void 0===I||null===(w=I.beacon)||void 0===w?void 0:w.params,e.t29=e.t0.assign.call(e.t0,e.t1,e.t2,e.t26,e.t27,e.t28),D=[e.t29],i({url:(null===(E=window)||void 0===E||null===(T=E.customData)||void 0===T||null===(h=T.beacon)||void 0===h?void 0:h.url)||S.get()+u.getBeaconUrl,method:"post",headers:{Authorization:_},contentType:"application/x-www-form-urlencoded",dataType:"text",data:D}).catch(function(e){console.error(e)});case 40:case"end":return e.stop()}},e)}));return function(e){return n.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var ce=function(e){return!!n.getPlayer("".concat(e))},ve=function(){var n=e(t.mark(function e(n,i){var r,l,a,d=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=d.length>2&&void 0!==d[2]&&d[2],e.next=3,p();case 3:return l=e.sent,a=o.getPlayer(n),e.abrupt("return",new Promise(function(e,t){D(i,l).then(function(t){var o=null==t?void 0:t.data;window.sid=re(),o.contentType="linearchannel",o.channelId=null==i?void 0:i.channelId;var l=Y(o,n);W(o),l&&r?(pe(n,l),a.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:o})})):e({status:!0,msg:"Feed authenticated",response:o})}).catch(function(e){t({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}(),me=function(){var n=e(t.mark(function e(n,i){var r,l,a,u,s,c,v=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=v.length>2&&void 0!==v[2]?v[2]:null){e.next=5;break}return e.next=4,p();case 4:u=e.sent;case 5:return(x()||null)&&C(i),s=0,c=0,null!==(r=window)&&void 0!==r&&r.watchHistory&&null!==(l=window)&&void 0!==l&&null!==(a=l.watchHistory)&&void 0!==a&&a.enable&&V(i,u).then(function(e){var t,n,i,o,r,l;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),s=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,c=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null}).catch(function(e){var t,n,i,o;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(e))}),e.abrupt("return",new Promise(function(e,t){b(i,u).then(function(i){var r,l,a=null==i?void 0:i.data,u=(null==a||null===(r=a.video)||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1;W(i.data);var v=z(a);v&&ne(n,v,a);var m=Y(a,n);if(m){var f,p,g,I,w,E,T,h,_,y,F,b,D,L,V=(null==a||null===(f=a.video)||void 0===f||null===(p=f.gist)||void 0===p?void 0:p.videoImageUrl)||(null==a||null===(g=a.video)||void 0===g||null===(I=g.gist)||void 0===I||null===(w=I.imageGist)||void 0===w?void 0:w.r16x9),R=o.getPlayer(n);if(R.poster(V),pe(n,m),R.on("loadstart",function(){u&&e({status:!0,msg:"Video Loaded",response:a})}),R.on("loadeddata",function(){ee(),e({status:!0,msg:"Video Loaded",response:a})}),R.one("play",function(){s&&c<95&&setTimeout(function(){R.currentTime(s)},0)}),R.one("error",function(){var e;t({status:!1,msg:(null==R||null===(e=R.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==a||null===(E=a.video)||void 0===E||null===(T=E.contentDetails)||void 0===T||null===(h=T.closedCaptions)||void 0===h?void 0:h.length)>0||(null==a||null===(_=a.video)||void 0===_||null===(y=_.closedCaptions)||void 0===y?void 0:y.length)>0)F=((null==a||null===(b=a.video)||void 0===b||null===(D=b.contentDetails)||void 0===D?void 0:D.closedCaptions)||(null==a||null===(L=a.video)||void 0===L?void 0:L.closedCaptions)).filter(function(e){return"VTT"===e.format}),d.addCaptions(n,F);else d.removeCaptions(n)}else $(n,"Incompatible Source, only hls,mp4,drm content is allowed"),t("Incompatible Source, only hls,mp4,drm content is allowed")}).catch(function(e){ge(e,n,t,i)})}));case 11:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}(),fe=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove(),document.getElementById("chromett")&&document.getElementById("chromett").remove()},pe=function(e,t){var n=o.getPlayer(e);n&&n.src(t)},ge=function(e,t,n,i){var o,r,l,a,d,u,s=null==e||null===(o=e.response)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.errorCode,c=(null==e||null===(l=e.response)||void 0===l||null===(a=l.data)||void 0===a?void 0:a.errorMessage)||(null==e?void 0:e.message);ce(t)&&$(t,(null===(d=window)||void 0===d?void 0:d.customErrors)&&(null===(u=window)||void 0===u?void 0:u.customErrors[s])||"".concat(c)),n&&n(Object.assign({status:!1,response:e,msg:"".concat(c)},i&&{videoId:i}))};exports.authenticateLC=ve,exports.baseUrlManager=S,exports.clearError=ee,exports.createIdxMapping=function(e){_=new Map,e.map(function(e,t){_.set(e.id,t)})},exports.createSeriesWatchMap=function(e,t){var n=new Map;R({videoId:e,token:t}).then(function(e){e.data.map(function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),y=n}).catch(function(e){return console.log(e)})},exports.disableControls=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var i=t.getElementsByClassName("vjs-big-play-button")[0];i&&(i.style.display="none");var o=t.getElementsByClassName("vjs-fullscreen-control")[0];o&&(o.style.display="none")},exports.dispose=function(e){var t=o.getPlayer(e);if(fe(),o.clearEventListeners(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},exports.getAdsURL=z,exports.getCurrentSeries=x,exports.getCurrentVideo=O,exports.getDecodedToken=g,exports.getEntitlementData=function(e,t,n,o){return i({url:n,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==o?void 0:o.latitude,longitude:null==o?void 0:o.longitude},method:"GET",headers:{Authorization:t},withCredentials:!0})},exports.getEpisodeNumber=B,exports.getLinearChannelDetails=D,exports.getSeasonNumber=N,exports.getSeriesDetails=function(e,t){var n,o,r=g(t),l=(null==r?void 0:r.site)||null;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.seriesData?new Promise(function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.seriesData})}):i({url:S.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:t}})},exports.getSeriesWatchHistory=R,exports.getSeriesWatchMap=function(){return y},exports.getSource=Y,exports.getToken=p,exports.getUpdatedClusterSource=function(e,t){var n=e.src,i=e.type;if(!n||"string"!=typeof n||!n.includes(".com"))return{src:n,type:i};t=t.replace(/\/$/,"");var o=n.split(".com")[1]||"";return{src:o?"".concat(t).concat(o):n,type:i}},exports.getUserId=le,exports.getVideoDetails=b,exports.getVideoIdx=function(){return h},exports.getVideoInfo=V,exports.handleError=$,exports.initialiseAdvertisement=ne,exports.initiateErrorHandling=ge,exports.inititateBeacon=function(e,t){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var n=o.getPlayer(e);window.initialise(n,t),window.firstFrame(n,t),n.on("loadedmetadata",function(){window.endFirstFrame(n)})}},exports.isPaused=function(e){return n(e).paused()},exports.isPlayerInitialised=ce,exports.isTokenExpired=s,exports.load=me,exports.loadVideo=pe,exports.loadVideoInstantly=function(e,t,n){var i=o.getPlayer(e);return i.src(t),new Promise(function(e,t){var o=0;i.one("loadedmetadata",function(){clearTimeout(o),e({status:!0,msg:"video loaded"})}),i.one("loadstart",function(e){o=setTimeout(function(){t("FAILED: Took too long to load")},n)})})},exports.pause=function(e){n(e).pause()},exports.play=function(e){n(e).play()},exports.refreshTokenManager=v,exports.replaceMacros=j,exports.rewind=function(e,t){var i=n(e),o=i.currentTime(),r=o<=t?0:o-t;i.currentTime(r)},exports.runGtag=function(e){window.dataLayer=window.dataLayer||[],Q("js",new Date),Q("config",e)},exports.saveWatchHistory=L,exports.seasonIdxManager=A,exports.setCurrentSeries=function(e){E=e},exports.setCurrentVideo=W,exports.setVideoIdx=P,exports.setVideoIdxById=C,exports.skip=function(e,t){var i=n(e),o=i.currentTime()+t;i.currentTime(o)},exports.token_authentication_enabled=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,i=null==e?void 0:e.asat;return n&&!i&&(t=!1),t};
|