@viewlift/player-backup 2.0.74-smartTv → 2.0.75-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.
Files changed (47) hide show
  1. package/cjs/{autoNextVideo-b7e91ff3.js → autoNextVideo-b2664dca.js} +1 -1
  2. package/cjs/bundle.css +3 -3
  3. package/cjs/{features-6abeaa09.js → features-4324250b.js} +1 -1
  4. package/cjs/{generic-6bf3ba02.js → generic-d56b38ac.js} +1 -1
  5. package/cjs/{index-391dd643.js → index-510967ea.js} +1 -1
  6. package/cjs/{index-2ee2a39b.js → index-865afc31.js} +1 -1
  7. package/cjs/index.js +1 -1
  8. package/cjs/{multicamv2-4fdb520e.js → multicamv2-408075e5.js} +1 -1
  9. package/cjs/{multicamv2-421ec910.js → multicamv2-96ae1bef.js} +1 -1
  10. package/cjs/{nextEpisodeButton-076f0135.js → nextEpisodeButton-571ddebc.js} +1 -1
  11. package/cjs/{playlist-3861f880.js → playlist-2a9d8c3a.js} +1 -1
  12. package/cjs/{series-3e119ba2.js → series-23a6b96c.js} +1 -1
  13. package/cjs/{series-v2-88c9fe30.js → series-v2-656980f1.js} +1 -1
  14. package/cjs/{series-v2-26d49c70.js → series-v2-a128042a.js} +1 -1
  15. package/cjs/{skin-beebad4a.js → skin-2fa52c29.js} +1 -1
  16. package/cjs/{skin-ff25c748.js → skin-61950a20.js} +1 -1
  17. package/cjs/{skin-0131ea28.js → skin-6db027fa.js} +1 -1
  18. package/cjs/{skin-75c04f58.js → skin-95e27a9f.js} +1 -1
  19. package/cjs/{skin-5192bd86.js → skin-b5651b5b.js} +1 -1
  20. package/cjs/{skin-ebf1c61b.js → skin-d1d871d1.js} +1 -1
  21. package/cjs/{skin-eaccb61e.js → skin-edc7bca4.js} +1 -1
  22. package/cjs/{videoSelector-5e111200.js → videoSelector-e0dbb3af.js} +1 -1
  23. package/cjs/{videoSelector-6171c2a7.js → videoSelector-f32fc4b5.js} +1 -1
  24. package/esm/{autoNextVideo-69a951c0.js → autoNextVideo-b7900abb.js} +1 -1
  25. package/esm/bundle.css +3 -3
  26. package/esm/{features-9a994afb.js → features-58699d4f.js} +1 -1
  27. package/esm/{generic-ecdd66bc.js → generic-fe8a5419.js} +1 -1
  28. package/esm/{index-82c877d2.js → index-24d08aa6.js} +1 -1
  29. package/esm/{index-962dee5d.js → index-d7c8b33b.js} +1 -1
  30. package/esm/index.js +1 -1
  31. package/esm/{multicamv2-623eca21.js → multicamv2-8354e88e.js} +1 -1
  32. package/esm/{multicamv2-6b4b899a.js → multicamv2-99d2d9f1.js} +1 -1
  33. package/esm/{nextEpisodeButton-36ca385c.js → nextEpisodeButton-6a78af06.js} +1 -1
  34. package/esm/{playlist-854a1c2a.js → playlist-e4aff030.js} +1 -1
  35. package/esm/{series-ef0753e5.js → series-f895bf2d.js} +1 -1
  36. package/esm/{series-v2-9cec905e.js → series-v2-2505dab5.js} +1 -1
  37. package/esm/{series-v2-6d69b4c4.js → series-v2-55b5e1d5.js} +1 -1
  38. package/esm/{skin-1ce04d9e.js → skin-1c962a23.js} +1 -1
  39. package/esm/{skin-ea45bc48.js → skin-5ccd687d.js} +1 -1
  40. package/esm/{skin-5f4514f0.js → skin-a0bc6679.js} +1 -1
  41. package/esm/{skin-c82837a4.js → skin-b3625cf2.js} +1 -1
  42. package/esm/{skin-290e8407.js → skin-c5fd99ed.js} +1 -1
  43. package/esm/{skin-6c7025a3.js → skin-c7bbb999.js} +1 -1
  44. package/esm/{skin-f339b646.js → skin-e1abdefd.js} +1 -1
  45. package/esm/{videoSelector-e8d8f5e5.js → videoSelector-986c7677.js} +1 -1
  46. package/esm/{videoSelector-fec759ed.js → videoSelector-fd351fa1.js} +1 -1
  47. package/package.json +1 -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-ecdd66bc.js";import{e as h,p as f,g as C}from"./skin-8e2c5488.js";import{a as g}from"./autoNextVideo-69a951c0.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
+ 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-fe8a5419.js";import{e as h,p as f,g as C}from"./skin-8e2c5488.js";import{a as g}from"./autoNextVideo-b7900abb.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{h as o,o as l,p as i,q as e}from"./features-9a994afb.js";import{g as r}from"./skin-8e2c5488.js";import{a as n,i as a,b as t}from"./index-962dee5d.js";import{i as s}from"./browser-512cd55a.js";import"videojs-contrib-quality-menu";import d from"video.js";import{i as u,s as p}from"./index-82c877d2.js";import{e as v}from"./generic-ecdd66bc.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-69a951c0.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"./captions-7996e045.js";import"./resolution-ed00f17a.js";import"axios";import"js-cookie";import"ua-parser-js";function m(l,i){var e=r(l);e&&(e.on("loadeddata",function(){var o,e,t,d,u;!function(o){var l=r(o);l&&(null==l||l.qualityMenu,l.qualityMenu({useResolutionLabels:!0}))}(l),!(null!=i&&null!==(o=i.series)&&void 0!==o&&o.enable||null!==(e=window)&&void 0!==e&&null!==(t=e.app_data)&&void 0!==t&&null!==(d=t.appcmsMain)&&void 0!==d&&null!==(u=d.features)&&void 0!==u&&u.auto_play)||null!=i&&i.liveVideo||n(l,i),null!=i&&i.liveVideo||s()||a(l)}),e.one("play",function(){var i,e,r,n;null!==(i=window)&&void 0!==i&&null!==(e=i.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(l,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}function c(o,n){r(o).addClass("skin_vlone"),m(o,n),function(o,r){var n,a,s,d,m,c,b,y,f,g,j,h,C=v(null==r?void 0:r.res,o)||{},w=C.src;(null==r||null===(n=r.relatedVideos)||void 0===n||null===(a=n.content)||void 0===a?void 0:a.length)>0&&l(o,null==r?void 0:r.relatedVideos);null!=r&&null!==(s=r.series)&&void 0!==s&&s.enable&&i(o,r);(null==r||null===(d=r.streams)||void 0===d?void 0:d.length)>1&&e(o,null==r?void 0:r.streams);t(o,r),u(o,r),"MEDIA_TAILOR"==(null===(m=window)||void 0===m||null===(c=m.app_data)||void 0===c||null===(b=c.appcmsMain)||void 0===b||null===(y=b.adsConfig)||void 0===y?void 0:y.vodAdSticherProvider)&&null!==(f=window)&&void 0!==f&&null!==(g=f.app_data)&&void 0!==g&&null!==(j=g.appcmsMain)&&void 0!==j&&null!==(h=j.adsConfig)&&void 0!==h&&h.vodAdClientSideTracking&&p(o,w)}(o,n),b(o,n)}var b=function(o,l){var i,e,n,a,t,s,u,p,v,m,c,b,y=r(o),f=(null==l?void 0:l.theme)||{},g=d.dom.$(".vjs-play-progress"),j=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");j&&(j.style.color="".concat(null===(i=window)||void 0===i||null===(e=i.app_data)||void 0===e||null===(n=e.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(t=a.cta)||void 0===t||null===(s=t.primary)||void 0===s?void 0:s.backgroundColor)),g&&(g.style.background="".concat(null===(u=window)||void 0===u||null===(p=u.app_data)||void 0===p||null===(v=p.appcmsMain)||void 0===v||null===(m=v.brand)||void 0===m||null===(c=m.cta)||void 0===c||null===(b=c.primary)||void 0===b?void 0:b.backgroundColor));var h=y.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&g&&(g.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&h&&(h.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&j&&(j.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};export{c as initialiseSkin};
1
+ import{h as o,o as l,p as i,q as e}from"./features-58699d4f.js";import{g as r}from"./skin-8e2c5488.js";import{a as n,i as a,b as t}from"./index-d7c8b33b.js";import{i as s}from"./browser-512cd55a.js";import"videojs-contrib-quality-menu";import d from"video.js";import{i as u,s as p}from"./index-24d08aa6.js";import{e as v}from"./generic-fe8a5419.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-b7900abb.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"./captions-7996e045.js";import"./resolution-ed00f17a.js";import"axios";import"js-cookie";import"ua-parser-js";function m(l,i){var e=r(l);e&&(e.on("loadeddata",function(){var o,e,t,d,u;!function(o){var l=r(o);l&&(null==l||l.qualityMenu,l.qualityMenu({useResolutionLabels:!0}))}(l),!(null!=i&&null!==(o=i.series)&&void 0!==o&&o.enable||null!==(e=window)&&void 0!==e&&null!==(t=e.app_data)&&void 0!==t&&null!==(d=t.appcmsMain)&&void 0!==d&&null!==(u=d.features)&&void 0!==u&&u.auto_play)||null!=i&&i.liveVideo||n(l,i),null!=i&&i.liveVideo||s()||a(l)}),e.one("play",function(){var i,e,r,n;null!==(i=window)&&void 0!==i&&null!==(e=i.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(l,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}function c(o,n){r(o).addClass("skin_vlone"),m(o,n),function(o,r){var n,a,s,d,m,c,b,y,f,g,j,h,C=v(null==r?void 0:r.res,o)||{},w=C.src;(null==r||null===(n=r.relatedVideos)||void 0===n||null===(a=n.content)||void 0===a?void 0:a.length)>0&&l(o,null==r?void 0:r.relatedVideos);null!=r&&null!==(s=r.series)&&void 0!==s&&s.enable&&i(o,r);(null==r||null===(d=r.streams)||void 0===d?void 0:d.length)>1&&e(o,null==r?void 0:r.streams);t(o,r),u(o,r),"MEDIA_TAILOR"==(null===(m=window)||void 0===m||null===(c=m.app_data)||void 0===c||null===(b=c.appcmsMain)||void 0===b||null===(y=b.adsConfig)||void 0===y?void 0:y.vodAdSticherProvider)&&null!==(f=window)&&void 0!==f&&null!==(g=f.app_data)&&void 0!==g&&null!==(j=g.appcmsMain)&&void 0!==j&&null!==(h=j.adsConfig)&&void 0!==h&&h.vodAdClientSideTracking&&p(o,w)}(o,n),b(o,n)}var b=function(o,l){var i,e,n,a,t,s,u,p,v,m,c,b,y=r(o),f=(null==l?void 0:l.theme)||{},g=d.dom.$(".vjs-play-progress"),j=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");j&&(j.style.color="".concat(null===(i=window)||void 0===i||null===(e=i.app_data)||void 0===e||null===(n=e.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(t=a.cta)||void 0===t||null===(s=t.primary)||void 0===s?void 0:s.backgroundColor)),g&&(g.style.background="".concat(null===(u=window)||void 0===u||null===(p=u.app_data)||void 0===p||null===(v=p.appcmsMain)||void 0===v||null===(m=v.brand)||void 0===m||null===(c=m.cta)||void 0===c||null===(b=c.primary)||void 0===b?void 0:b.backgroundColor));var h=y.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&g&&(g.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&h&&(h.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&j&&(j.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};export{c as initialiseSkin};
@@ -1 +1 @@
1
- import{F as e,G as t}from"./generic-ecdd66bc.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
+ import{F as e,G as t}from"./generic-fe8a5419.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{a as e,b as t,c as s,d as o,e as i}from"./features-9a994afb.js";import{i as r}from"./index-82c877d2.js";import{S as n,M as l,a,N as d,b as m,R as p}from"./icons-79ad4d7d.js";import{g as u,b as c}from"./skin-8e2c5488.js";import{d as v}from"./generic-ecdd66bc.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"./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 b(b,f){u(b).addClass("skin_default"),r(b,f),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&o(e,"default",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",p())}(b,f),function(o,i){var r=u(o),l=(null==i?void 0:i.sres)||null;r.on("loadeddata",function(){e(o,"default",n()),l&&import("./nextEpisodeButton-36ca385c.js").then(function(e){e.initaliseFunctionality(i.sres.seasons,v())})}),r.one("loadedmetadata",function(){var e;l&&(t(o,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),s(i.sres,i.res,o))})}(b,f),function(e,t){var s,o,i,r,n=u(e),m=document.getElementsByClassName("vjs-current-time")[0],p=document.getElementsByClassName("vjs-duration")[0],v=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(m&&(m.style.display="none"),p&&(p.style.display="none"),v&&(v.style.display="none"));null===(s=n.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(o=s.el())||void 0===o||o.appendChild(c(l(window.controlsColor))),null===(i=n.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(r=i.el())||void 0===r||r.appendChild(c(a(window.controlsColor)));var b=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(d()));var f=document.createElement("div");f.classList.add("caption-header"),b.querySelector(".vjs-menu-content").insertBefore(f,b.querySelector(".vjs-menu-item"))}(b,f)}export{b as initialiseSkin};
1
+ import{a as e,b as t,c as s,d as o,e as i}from"./features-58699d4f.js";import{i as r}from"./index-24d08aa6.js";import{S as n,M as l,a,N as d,b as m,R as p}from"./icons-79ad4d7d.js";import{g as u,b as c}from"./skin-8e2c5488.js";import{d as v}from"./generic-fe8a5419.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"./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 b(b,f){u(b).addClass("skin_default"),r(b,f),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&o(e,"default",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",p())}(b,f),function(o,i){var r=u(o),l=(null==i?void 0:i.sres)||null;r.on("loadeddata",function(){e(o,"default",n()),l&&import("./nextEpisodeButton-6a78af06.js").then(function(e){e.initaliseFunctionality(i.sres.seasons,v())})}),r.one("loadedmetadata",function(){var e;l&&(t(o,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),s(i.sres,i.res,o))})}(b,f),function(e,t){var s,o,i,r,n=u(e),m=document.getElementsByClassName("vjs-current-time")[0],p=document.getElementsByClassName("vjs-duration")[0],v=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(m&&(m.style.display="none"),p&&(p.style.display="none"),v&&(v.style.display="none"));null===(s=n.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(o=s.el())||void 0===o||o.appendChild(c(l(window.controlsColor))),null===(i=n.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(r=i.el())||void 0===r||r.appendChild(c(a(window.controlsColor)));var b=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(d()));var f=document.createElement("div");f.classList.add("caption-header"),b.querySelector(".vjs-menu-content").insertBefore(f,b.querySelector(".vjs-menu-item"))}(b,f)}export{b as initialiseSkin};
@@ -1 +1 @@
1
- import{f as l,g as e,h as o,d as i,e as n,i as t,j as a,k as r,l as s,m as d}from"./features-9a994afb.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-962dee5d.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-ecdd66bc.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-69a951c0.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
+ 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-58699d4f.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-d7c8b33b.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-fe8a5419.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-b7900abb.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{g as e}from"./skin-8e2c5488.js";import{f as r,n as t}from"./features-9a994afb.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-ecdd66bc.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};
1
+ import{g as e}from"./skin-8e2c5488.js";import{f as r,n as t}from"./features-58699d4f.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-fe8a5419.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};
@@ -1 +1 @@
1
- import{h as e}from"./features-9a994afb.js";import{g as t}from"./skin-8e2c5488.js";import{a as i,i as n,b as o}from"./index-962dee5d.js";import{i as l}from"./browser-512cd55a.js";import r from"@babel/runtime/helpers/classCallCheck";import a from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import u from"@babel/runtime/helpers/getPrototypeOf";import d from"@babel/runtime/helpers/inherits";import c from"video.js";import v from"@babel/runtime/helpers/typeof";import{e as p}from"./generic-ecdd66bc.js";import{s as h}from"./index-82c877d2.js";import"./renditions-65794079.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-69a951c0.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"./resolution-ed00f17a.js";var f=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},m=function(){return a(function e(t){if(r(this,e),!t||"object"!==v(t))throw new Error("SettingsOptionOneWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.handleClick=t.callback||function(){},this.focused=t.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 t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionOneWrapper: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname,i.tabIndex=0;var n=document.createElement("p");n.textContent=this.title,i.appendChild(n);var o=document.createElement("p");o.textContent="›",o.style.fontSize="24px",i.appendChild(o),this.focused&&i.classList.add("focused"),i.addEventListener("focus",function(){t.focused=!0,i.classList.add("focused")}),i.addEventListener("blur",function(){t.focused=!1,i.classList.remove("focused")}),i.addEventListener("keydown",function(e){"Enter"!==e.key&&"OK"!==e.key||t.handleClick()}),this.optionWrapper=i,i.instance=this,e.appendChild(i)}},{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 a(function e(t){if(r(this,e),!t||"object"!==v(t))throw new Error("SettingsOptionTwoWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.selected=t.selected||!1,this.focused=t.focused||!1,this.id=t.id,"string"!=typeof this.title)throw new Error("SettingsOptionTwoWrapper: title must be a string")},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionTwoWrapper: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname,i.tabIndex=0;var n=document.createElement("p");if(n.textContent=this.title,i.appendChild(n),this.selected){i.classList.add("selected");var o=document.createElement("span");o.appendChild(f('<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>')),i.appendChild(o)}this.focused&&i.classList.add("focused"),i.addEventListener("focus",function(){t.focused=!0,i.classList.add("focused")}),i.addEventListener("blur",function(){t.focused=!1,i.classList.remove("focused")}),this.optionWrapper=i,i.instance=this,e.appendChild(i)}},{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)}}])}(),g=function(){return a(function e(t){if(r(this,e),!t||"object"!==v(t))throw new Error("Sidebar: props must be a valid object");if(this.title=t.title||"Settings",this.items=t.items||[{text:"Video Quality",isSelected:!0,callback:function(){}},{text:"Audio Language",isSelected:!1,callback:function(){}},{text:"Subtitles",isSelected:!1,callback:function(){}}],this.klassname=t.klassname||"default-sidebar",this.currentFocusedOption=null,this.lastFocusedElement=t.lastFocusedElement||null,this.type=t.type||"navigation",this.focused=t.focused||!1,this.callback=t.callback||function(){},this.onselect=t.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 t=this;if(!(e&&e instanceof HTMLElement))throw new Error("Sidebar: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname;var n=document.createElement("div");n.textContent=this.title,n.className="settingsHeading",i.appendChild(n);var o=document.createElement("div");"navigation"===this.type?this.items.forEach(function(e,i){var n=new m({title:e.text,klassname:"default-option-wrapper",focused:0===i,callback:e.callback});e.instance=n,0===i&&(t.currentFocusedOption=n),n.mount(o)}):"selection"===this.type&&this.items.forEach(function(e,i){var n=new y({title:e.text,klassname:"default-option-wrapper",focused:0===i,selected:e.isSelected,id:e.id});e.instance=n,0===i&&(t.currentFocusedOption=n),n.mount(o)}),i.appendChild(o),this.sidebarElement=i,e.appendChild(i),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(t){"ArrowDown"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusNext()):"ArrowUp"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusPrevious()):"Backspace"===t.key||"Escape"===t.key||10009===t.keyCode||461===t.keyCode||196===t.keyCode||8===t.keyCode?(t.preventDefault(),t.stopPropagation(),e.unfocus(),e.unmount()):"Enter"!==t.key&&"OK"!==t.key||(t.preventDefault(),t.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 t=e.instance.optionWrapper.querySelector("span");t&&t.remove();var i=e.instance.optionWrapper.querySelector("svg");i&&i.remove()}}),this.currentFocusedOption.optionWrapper.classList.add("selected"),this.currentFocusedOption.selected=!0;this.currentFocusedOption.optionWrapper.appendChild(f('<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 k(e,t){var i,n,o,l,r,a,s,u=[{text:"Video Quality",isSelected:!0,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o,l,r;if(!e)return;var a=null===(i=t.qualityLevels())||void 0===i?void 0:i.levels_,s=-1==(null===(n=t.qualityLevels())||void 0===n?void 0:n.selectedIndex_)?"auto":null===(o=t.qualityLevels())||void 0===o?void 0:o.levels_[null===(l=t.qualityLevels())||void 0===l?void 0:l.selectedIndex_].height,u=[{text:"Auto",id:"auto",isSelected:"auto"===s,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}].concat(a.map(function(t){return{text:"".concat(t.height,"p"),id:t.height,isSelected:s===t.height,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}}));r=new g({title:"Video Quality",items:u,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){if("auto"===e.id)t.el_.player.qualityLevels().selectedIndex_=-1;else{var i=a.findIndex(function(t){return t.height===e.id});-1!==i&&(t.el_.player.qualityLevels().selectedIndex_=i)}},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),r.mount(null==t?void 0:t.el())}(s,e)}}];null!=e&&null!==(i=e.audioTracks())&&void 0!==i&&i.tracks_&&(null==e||null===(n=e.audioTracks())||void 0===n||null===(o=n.tracks_)||void 0===o?void 0:o.length)>1&&u.push({text:"Audio Language",isSelected:!1,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o,l;if(!e)return;var r=null==t||null===(i=t.audioTracks())||void 0===i?void 0:i.tracks_,a=(null==r||null===(n=r.find(function(e){return e.enabled}))||void 0===n?void 0:n.label)||(null==r||null===(o=r[0])||void 0===o?void 0:o.label)||"Default",s=r.map(function(t){return{text:t.label,id:t.id,isSelected:a===t.label,callback:function(){e.currentFocusedOption.focus(),l.unmount()}}});l=new g({title:"Audio Language",items:s,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){null==r||r.forEach(function(t){t.enabled=!1,t.enabled=t.id===e.id})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),l.mount(null==t?void 0:t.el())}(s,e)}});var d=null==e||null===(l=e.textTracks())||void 0===l?void 0:l.tracks_;return(d=d.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(r=d)||void 0===r?void 0:r.length)>0&&u.push({text:"Subtitles",isSelected:!1,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o;if(!e)return;var l=t.textTracks().tracks_;l=l.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var r=(null===(i=l)||void 0===i||null===(n=i.find(function(e){return"showing"===e.mode}))||void 0===n?void 0:n.label)||"Captions Off",a=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===r,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}].concat(l.map(function(t){return{text:t.label,id:t.id,kind:t.kind,lang:t.language,mode:t.mode,isSelected:r===t.label,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}}));o=new g({title:"Closed Captions",items:a,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){var t;null===(t=l)||void 0===t||t.forEach(function(t){t.mode=t.id===e.id?"showing":"hidden"})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),o.mount(null==t?void 0:t.el())}(s,e)}}),(s=new g({title:"Settings",items:u,klassname:"default-sidebar",lastFocusedElement:t,type:"navigation",focused:!0,callback:function(){var i;null===(i=e.controlBar)||void 0===i||i.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){t.focus()},100)}})).mount(null==e?void 0:e.el()),null===(a=e.controlBar)||void 0===a||a.addClass("hidePlayerControls"),e.options({inactivityTimeout:0}),s}function C(e,t,i){return t=u(t),s(e,b()?Reflect.construct(t,i||[],u(e).constructor):t.apply(e,i))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var w=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");o.querySelector(".vjs-control-text").textContent="CC",o.classList.add("vjs-ClosedCaption-button");return l.append(f('<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>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){!function(e){var t,i,n,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.textTracks().tracks_,a=(null===(t=r=r.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))||void 0===t||null===(i=t.find(function(e){return"showing"===e.mode}))||void 0===i?void 0:i.label)||"Captions Off",s=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===a,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}].concat(r.map(function(e){return{text:e.label,id:e.id,kind:e.kind,lang:e.language,mode:e.mode,isSelected:a===e.label,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}}));(o=new g({title:"Closed Captions",items:s,klassname:"default-sidebar",lastFocusedElement:l,type:"selection",focused:!0,onselect:function(t){var i,n;null===(i=r)||void 0===i||i.forEach(function(e){e.mode=e.id===t.id?"showing":"hidden"}),o.unmount(null==e?void 0:e.el()),null===(n=e.controlBar)||void 0===n||n.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){l.focus()},100)},callback:function(){var t;o.unmount(null==e?void 0:e.el()),null===(t=e.controlBar)||void 0===t||t.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){l.focus()},100)}})).mount(null==e?void 0:e.el()),null===(n=e.controlBar)||void 0===n||n.addClass("hidePlayerControls"),e.options({inactivityTimeout:0})}(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("CloseCaptionButton",t),new t(e,{})};var L=function(e){if(e)try{var t,i,n,o=(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(n=i.entitlement)||void 0===n?void 0:n.deviceType)||"smart_tv_samsung";e&&(!function(e){try{var t;"smart_tv_samsung"==e&&null!==(t=window)&&void 0!==t&&t.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){}}(o),e.on("keydown",function(t){10252==t.keyCode||"xfinityX1"==o&&179==t.keyCode?e.paused()?e.play():e.pause():415==t.keyCode?e.play():19==t.keyCode?e.pause():412===t.keyCode||"xfinityX1"==o&&227==t.keyCode?e.currentTime(e.currentTime()-10):(417===t.keyCode||"xfinityX1"==o&&228==t.keyCode)&&e.currentTime(e.currentTime()+10)}))}catch(e){}};function S(s,u){var v=t(s);v.addClass("skin_smartTV"),function(e,t){var i,n,o,l,s,u,v,p,h,m,y,g,b,w,S,E,x,T,B,O,F,_,j,W,q,D,M,P,V,z,H,A=null==e?void 0:e.el();A&&(A.style.color=(null==t||null===(i=t.theme)||void 0===i?void 0:i.color)||(null===(n=window)||void 0===n||null===(o=n.app_data)||void 0===o||null===(l=o.appcmsMain)||void 0===l||null===(s=l.brand)||void 0===s||null===(u=s.cta)||void 0===u||null===(v=u.primary)||void 0===v?void 0:v.backgroundColor)||"#FFFFFF");null===(p=e.controlBar)||void 0===p||p.removeChild("VolumePanel"),null===(h=e.controlBar)||void 0===h||h.removeChild("AudioTrackButton"),null===(m=e.controlBar)||void 0===m||m.removeChild("FullscreenToggle"),null===(y=e.controlBar)||void 0===y||y.removeChild("PictureInPictureToggle"),null===(g=e.controlBar)||void 0===g||g.removeChild("skipBackward"),null===(b=e.controlBar)||void 0===b||b.removeChild("skipForward"),null===(w=e.controlBar)||void 0===w||w.removeChild("PictureInPictureToggle");var I=document.createElement("div");I.className="custom-smartTV-progress-bar",null===(S=e.controlBar)||void 0===S||null===(E=S.el())||void 0===E||E.append(I);var R=null===(x=e.controlBar)||void 0===x?void 0:x.getChild("CustomControlSpacer");try{I.style.opacity=0,R.el_.style.opacity=0}catch(e){}var G=null===(T=e.controlBar)||void 0===T?void 0:T.getChild("ProgressControl"),K=null===(B=e.controlBar)||void 0===B?void 0:B.getChild("CurrentTimeDisplay"),N=null===(O=e.controlBar)||void 0===O?void 0:O.getChild("SeekToLive");N&&(N.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live");var Z=null===(F=e.controlBar)||void 0===F?void 0:F.getChild("LiveDisplay"),Q=null===(_=e.controlBar)||void 0===_?void 0:_.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 t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_;return o.querySelector(".vjs-control-text").textContent="Start From Beginning",o.classList.add("vjs-startFromBeginning-button"),t}return d(i,t),a(i,[{key:"handleClick",value:function(){(null==e?void 0:e.currentTime())>0&&e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("StartFromBeginning",t),new t(e,{})}(e);null==R||R.addChild(X);var J,Y,$,ee=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Settings",o.classList.add("vjs-Settings-button"),l.append(f('<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>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){k(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("SettingsButton",t),new t(e,{})}(e);if(null==R||R.addChild(ee),!(null!=t&&null!==(j=t.res)&&void 0!==j&&null!==(W=j.video)&&void 0!==W&&null!==(q=W.streamingInfo)&&void 0!==q&&q.isLiveStream)||null!=t&&null!==(D=t.res)&&void 0!==D&&null!==(M=D.video)&&void 0!==M&&null!==(P=M.liveDetails)&&void 0!==P&&P.isDvrEnabled){var te,ie,ne=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Forward",o.classList.add("vjs-forward-button"),l.append(f('<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>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t>=0){var i=t+30;e.currentTime(i)}}}])}(c.getComponent("Button"));return c.registerComponent("ForwardButton",t),new t(e,{})}(e);null===(te=e.controlBar)||void 0===te||te.addChild(ne);var oe=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Rewind",o.classList.add("vjs-rewind-button"),l.append(f('<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>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t-30>=0){var i=t-30;e.currentTime(i)}else e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("RewindButton",t),new t(e,{})}(e);null===(ie=e.controlBar)||void 0===ie||ie.addChild(oe)}null!=t&&null!==(V=t.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==t||null===(J=t.res)||void 0===J||null===(Y=J.video)||void 0===Y||null===($=Y.gist)||void 0===$?void 0:$.title});L(e)}(v,u),function(o,r){var a=t(o);a&&(a.on("loadeddata",function(){var e,t,s,u,d;try{var c,v,p,h,f,m;if(null!=r&&null!==(c=r.res)&&void 0!==c&&null!==(v=c.video)&&void 0!==v&&null!==(p=v.streamingInfo)&&void 0!==p&&p.isLiveStream&&null!=r&&null!==(h=r.res)&&void 0!==h&&null!==(f=h.video)&&void 0!==f&&null!==(m=f.liveDetails)&&void 0!==m&&m.isDvrEnabled){var y,g,k=(null===(y=a.seekable())||void 0===y?void 0:y.end(0))-(null===(g=a.seekable())||void 0===g?void 0:g.start(0));window.customData.dvrWindow=k}else window.customData.dvrWindow=null}catch(e){}try{var C,b,L;if(null!=r&&null!==(C=r.res)&&void 0!==C&&null!==(b=C.video)&&void 0!==b&&null!==(L=b.streamingInfo)&&void 0!==L&&L.isLiveStream){var S,E=null===(S=a.controlBar)||void 0===S?void 0:S.getChild("ProgressControl");if(E){var x=E.el().querySelector(".vjs-play-progress");x&&(x.style.width="100%")}}}catch(e){}try{a.qualityLevels().selectedIndex_=-1}catch(e){}try{var T,B,O=a.textTracks().tracks_;O=O.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var F=null===(T=a.controlBar)||void 0===T?void 0:T.getChild("CustomControlSpacer");if(O&&(null===(B=O)||void 0===B?void 0:B.length)>0){var _=w(a);null==F||F.addChild(_)}else try{F.children_[2].el_.style.right="115px"}catch(e){}try{var j,W;F.el_.style.opacity=1,(null===(j=a.controlBar)||void 0===j||null===(W=j.el_)||void 0===W?void 0:W.querySelector(".custom-smartTV-progress-bar")).style.opacity=1}catch(e){}}catch(e){}!(null!=r&&null!==(e=r.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(s=t.app_data)&&void 0!==s&&null!==(u=s.appcmsMain)&&void 0!==u&&null!==(d=u.features)&&void 0!==d&&d.auto_play)||null!=r&&r.liveVideo||i(o,r),null!=r&&r.liveVideo||l()||n(o)}),a.one("play",function(){var t,i,n,l;null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.iframeOverlayUrl&&e(o,null===(n=window)||void 0===n||null===(l=n.customData)||void 0===l?void 0:l.iframeOverlayUrl)}))}(s,u),function(e,i){var n,l,r,a,s,u,d,c,v=p(null==i?void 0:i.res,e)||{},f=v.src;o(e,i),"MEDIA_TAILOR"==(null===(n=window)||void 0===n||null===(l=n.app_data)||void 0===l||null===(r=l.appcmsMain)||void 0===r||null===(a=r.adsConfig)||void 0===a?void 0:a.vodAdSticherProvider)&&null!==(s=window)&&void 0!==s&&null!==(u=s.app_data)&&void 0!==u&&null!==(d=u.appcmsMain)&&void 0!==d&&null!==(c=d.adsConfig)&&void 0!==c&&c.vodAdClientSideTracking&&h(e,f);!function(e,i){var n=t(e);if(n){var o,l,r=!1,a=!1;null===(o=n.controlBar)||void 0===o||o.on("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(a=!0)}),null===(l=n.controlBar)||void 0===l||l.on("keyup",function(e){39!==e.keyCode&&37!==e.keyCode||(a=!1)}),n.on("seeking",function(){var e,t,i;n.paused()||r||(r=!0,n.pause());var o=n.currentTime();if(null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.dvrWindow)if(o=n.liveTracker.liveCurrentTime()-o,0==Math.round(o)){var l,a;o=window.customData.dvrWindow;var s=null===(l=n.controlBar)||void 0===l||null===(a=l.customControlSpacer)||void 0===a?void 0:a.getChild("SeekToLive");s&&(s.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",n.controlBar.liveDisplay.el().style.opacity=0)}else if(o>window.customData.dvrWindow){var u,d;o=0;var c=null===(u=n.controlBar)||void 0===u||null===(d=u.customControlSpacer)||void 0===d?void 0:d.getChild("SeekToLive");c&&(c.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0)}else{var v,p;o=window.customData.dvrWindow-o;var h=null===(v=n.controlBar)||void 0===v||null===(p=v.customControlSpacer)||void 0===p?void 0:p.getChild("SeekToLive");h&&(h.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0)}var f=o/(window.customData.dvrWindow?window.customData.dvrWindow:n.duration())*100,m=null===(i=n.controlBar)||void 0===i?void 0:i.getChild("ProgressControl");if(m){var y=m.el().querySelector(".vjs-play-progress");y&&(y.style.width=f+"%")}}),n.on("seeked",function(){var e,t,o,l,s,u;if(n.paused()&&r&&!a&&(r=!1,n.play()),null!=i&&null!==(e=i.res)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&null!==(o=t.streamingInfo)&&void 0!==o&&o.isLiveStream&&null!=i&&null!==(l=i.res)&&void 0!==l&&null!==(s=l.video)&&void 0!==s&&null!==(u=s.liveDetails)&&void 0!==u&&u.isDvrEnabled){var d,c,v=null===(d=n.controlBar)||void 0===d||null===(c=d.customControlSpacer)||void 0===c?void 0:c.getChild("SeekToLive");n.liveTracker.seekedBehindLive_?v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0):v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",n.controlBar.liveDisplay.el().style.opacity=1)}})}}(e,i)}(s,u)}export{S as initialiseSkin};
1
+ import{h as e}from"./features-58699d4f.js";import{g as t}from"./skin-8e2c5488.js";import{a as i,i as n,b as o}from"./index-d7c8b33b.js";import{i as l}from"./browser-512cd55a.js";import r from"@babel/runtime/helpers/classCallCheck";import a from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import u from"@babel/runtime/helpers/getPrototypeOf";import d from"@babel/runtime/helpers/inherits";import c from"video.js";import v from"@babel/runtime/helpers/typeof";import{e as p}from"./generic-fe8a5419.js";import{s as h}from"./index-24d08aa6.js";import"./renditions-65794079.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-b7900abb.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"./resolution-ed00f17a.js";var f=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},m=function(){return a(function e(t){if(r(this,e),!t||"object"!==v(t))throw new Error("SettingsOptionOneWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.handleClick=t.callback||function(){},this.focused=t.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 t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionOneWrapper: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname,i.tabIndex=0;var n=document.createElement("p");n.textContent=this.title,i.appendChild(n);var o=document.createElement("p");o.textContent="›",o.style.fontSize="24px",i.appendChild(o),this.focused&&i.classList.add("focused"),i.addEventListener("focus",function(){t.focused=!0,i.classList.add("focused")}),i.addEventListener("blur",function(){t.focused=!1,i.classList.remove("focused")}),i.addEventListener("keydown",function(e){"Enter"!==e.key&&"OK"!==e.key||t.handleClick()}),this.optionWrapper=i,i.instance=this,e.appendChild(i)}},{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 a(function e(t){if(r(this,e),!t||"object"!==v(t))throw new Error("SettingsOptionTwoWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.selected=t.selected||!1,this.focused=t.focused||!1,this.id=t.id,"string"!=typeof this.title)throw new Error("SettingsOptionTwoWrapper: title must be a string")},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionTwoWrapper: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname,i.tabIndex=0;var n=document.createElement("p");if(n.textContent=this.title,i.appendChild(n),this.selected){i.classList.add("selected");var o=document.createElement("span");o.appendChild(f('<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>')),i.appendChild(o)}this.focused&&i.classList.add("focused"),i.addEventListener("focus",function(){t.focused=!0,i.classList.add("focused")}),i.addEventListener("blur",function(){t.focused=!1,i.classList.remove("focused")}),this.optionWrapper=i,i.instance=this,e.appendChild(i)}},{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)}}])}(),g=function(){return a(function e(t){if(r(this,e),!t||"object"!==v(t))throw new Error("Sidebar: props must be a valid object");if(this.title=t.title||"Settings",this.items=t.items||[{text:"Video Quality",isSelected:!0,callback:function(){}},{text:"Audio Language",isSelected:!1,callback:function(){}},{text:"Subtitles",isSelected:!1,callback:function(){}}],this.klassname=t.klassname||"default-sidebar",this.currentFocusedOption=null,this.lastFocusedElement=t.lastFocusedElement||null,this.type=t.type||"navigation",this.focused=t.focused||!1,this.callback=t.callback||function(){},this.onselect=t.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 t=this;if(!(e&&e instanceof HTMLElement))throw new Error("Sidebar: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname;var n=document.createElement("div");n.textContent=this.title,n.className="settingsHeading",i.appendChild(n);var o=document.createElement("div");"navigation"===this.type?this.items.forEach(function(e,i){var n=new m({title:e.text,klassname:"default-option-wrapper",focused:0===i,callback:e.callback});e.instance=n,0===i&&(t.currentFocusedOption=n),n.mount(o)}):"selection"===this.type&&this.items.forEach(function(e,i){var n=new y({title:e.text,klassname:"default-option-wrapper",focused:0===i,selected:e.isSelected,id:e.id});e.instance=n,0===i&&(t.currentFocusedOption=n),n.mount(o)}),i.appendChild(o),this.sidebarElement=i,e.appendChild(i),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(t){"ArrowDown"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusNext()):"ArrowUp"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusPrevious()):"Backspace"===t.key||"Escape"===t.key||10009===t.keyCode||461===t.keyCode||196===t.keyCode||8===t.keyCode?(t.preventDefault(),t.stopPropagation(),e.unfocus(),e.unmount()):"Enter"!==t.key&&"OK"!==t.key||(t.preventDefault(),t.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 t=e.instance.optionWrapper.querySelector("span");t&&t.remove();var i=e.instance.optionWrapper.querySelector("svg");i&&i.remove()}}),this.currentFocusedOption.optionWrapper.classList.add("selected"),this.currentFocusedOption.selected=!0;this.currentFocusedOption.optionWrapper.appendChild(f('<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 k(e,t){var i,n,o,l,r,a,s,u=[{text:"Video Quality",isSelected:!0,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o,l,r;if(!e)return;var a=null===(i=t.qualityLevels())||void 0===i?void 0:i.levels_,s=-1==(null===(n=t.qualityLevels())||void 0===n?void 0:n.selectedIndex_)?"auto":null===(o=t.qualityLevels())||void 0===o?void 0:o.levels_[null===(l=t.qualityLevels())||void 0===l?void 0:l.selectedIndex_].height,u=[{text:"Auto",id:"auto",isSelected:"auto"===s,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}].concat(a.map(function(t){return{text:"".concat(t.height,"p"),id:t.height,isSelected:s===t.height,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}}));r=new g({title:"Video Quality",items:u,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){if("auto"===e.id)t.el_.player.qualityLevels().selectedIndex_=-1;else{var i=a.findIndex(function(t){return t.height===e.id});-1!==i&&(t.el_.player.qualityLevels().selectedIndex_=i)}},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),r.mount(null==t?void 0:t.el())}(s,e)}}];null!=e&&null!==(i=e.audioTracks())&&void 0!==i&&i.tracks_&&(null==e||null===(n=e.audioTracks())||void 0===n||null===(o=n.tracks_)||void 0===o?void 0:o.length)>1&&u.push({text:"Audio Language",isSelected:!1,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o,l;if(!e)return;var r=null==t||null===(i=t.audioTracks())||void 0===i?void 0:i.tracks_,a=(null==r||null===(n=r.find(function(e){return e.enabled}))||void 0===n?void 0:n.label)||(null==r||null===(o=r[0])||void 0===o?void 0:o.label)||"Default",s=r.map(function(t){return{text:t.label,id:t.id,isSelected:a===t.label,callback:function(){e.currentFocusedOption.focus(),l.unmount()}}});l=new g({title:"Audio Language",items:s,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){null==r||r.forEach(function(t){t.enabled=!1,t.enabled=t.id===e.id})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),l.mount(null==t?void 0:t.el())}(s,e)}});var d=null==e||null===(l=e.textTracks())||void 0===l?void 0:l.tracks_;return(d=d.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(r=d)||void 0===r?void 0:r.length)>0&&u.push({text:"Subtitles",isSelected:!1,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o;if(!e)return;var l=t.textTracks().tracks_;l=l.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var r=(null===(i=l)||void 0===i||null===(n=i.find(function(e){return"showing"===e.mode}))||void 0===n?void 0:n.label)||"Captions Off",a=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===r,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}].concat(l.map(function(t){return{text:t.label,id:t.id,kind:t.kind,lang:t.language,mode:t.mode,isSelected:r===t.label,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}}));o=new g({title:"Closed Captions",items:a,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){var t;null===(t=l)||void 0===t||t.forEach(function(t){t.mode=t.id===e.id?"showing":"hidden"})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),o.mount(null==t?void 0:t.el())}(s,e)}}),(s=new g({title:"Settings",items:u,klassname:"default-sidebar",lastFocusedElement:t,type:"navigation",focused:!0,callback:function(){var i;null===(i=e.controlBar)||void 0===i||i.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){t.focus()},100)}})).mount(null==e?void 0:e.el()),null===(a=e.controlBar)||void 0===a||a.addClass("hidePlayerControls"),e.options({inactivityTimeout:0}),s}function C(e,t,i){return t=u(t),s(e,b()?Reflect.construct(t,i||[],u(e).constructor):t.apply(e,i))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var w=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");o.querySelector(".vjs-control-text").textContent="CC",o.classList.add("vjs-ClosedCaption-button");return l.append(f('<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>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){!function(e){var t,i,n,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.textTracks().tracks_,a=(null===(t=r=r.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))||void 0===t||null===(i=t.find(function(e){return"showing"===e.mode}))||void 0===i?void 0:i.label)||"Captions Off",s=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===a,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}].concat(r.map(function(e){return{text:e.label,id:e.id,kind:e.kind,lang:e.language,mode:e.mode,isSelected:a===e.label,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}}));(o=new g({title:"Closed Captions",items:s,klassname:"default-sidebar",lastFocusedElement:l,type:"selection",focused:!0,onselect:function(t){var i,n;null===(i=r)||void 0===i||i.forEach(function(e){e.mode=e.id===t.id?"showing":"hidden"}),o.unmount(null==e?void 0:e.el()),null===(n=e.controlBar)||void 0===n||n.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){l.focus()},100)},callback:function(){var t;o.unmount(null==e?void 0:e.el()),null===(t=e.controlBar)||void 0===t||t.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){l.focus()},100)}})).mount(null==e?void 0:e.el()),null===(n=e.controlBar)||void 0===n||n.addClass("hidePlayerControls"),e.options({inactivityTimeout:0})}(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("CloseCaptionButton",t),new t(e,{})};var L=function(e){if(e)try{var t,i,n,o=(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(n=i.entitlement)||void 0===n?void 0:n.deviceType)||"smart_tv_samsung";e&&(!function(e){try{var t;"smart_tv_samsung"==e&&null!==(t=window)&&void 0!==t&&t.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){}}(o),e.on("keydown",function(t){10252==t.keyCode||"xfinityX1"==o&&179==t.keyCode?e.paused()?e.play():e.pause():415==t.keyCode?e.play():19==t.keyCode?e.pause():412===t.keyCode||"xfinityX1"==o&&227==t.keyCode?e.currentTime(e.currentTime()-10):(417===t.keyCode||"xfinityX1"==o&&228==t.keyCode)&&e.currentTime(e.currentTime()+10)}))}catch(e){}};function S(s,u){var v=t(s);v.addClass("skin_smartTV"),function(e,t){var i,n,o,l,s,u,v,p,h,m,y,g,b,w,S,E,x,T,B,O,F,_,j,W,q,D,M,P,V,z,H,A=null==e?void 0:e.el();A&&(A.style.color=(null==t||null===(i=t.theme)||void 0===i?void 0:i.color)||(null===(n=window)||void 0===n||null===(o=n.app_data)||void 0===o||null===(l=o.appcmsMain)||void 0===l||null===(s=l.brand)||void 0===s||null===(u=s.cta)||void 0===u||null===(v=u.primary)||void 0===v?void 0:v.backgroundColor)||"#FFFFFF");null===(p=e.controlBar)||void 0===p||p.removeChild("VolumePanel"),null===(h=e.controlBar)||void 0===h||h.removeChild("AudioTrackButton"),null===(m=e.controlBar)||void 0===m||m.removeChild("FullscreenToggle"),null===(y=e.controlBar)||void 0===y||y.removeChild("PictureInPictureToggle"),null===(g=e.controlBar)||void 0===g||g.removeChild("skipBackward"),null===(b=e.controlBar)||void 0===b||b.removeChild("skipForward"),null===(w=e.controlBar)||void 0===w||w.removeChild("PictureInPictureToggle");var I=document.createElement("div");I.className="custom-smartTV-progress-bar",null===(S=e.controlBar)||void 0===S||null===(E=S.el())||void 0===E||E.append(I);var R=null===(x=e.controlBar)||void 0===x?void 0:x.getChild("CustomControlSpacer");try{I.style.opacity=0,R.el_.style.opacity=0}catch(e){}var G=null===(T=e.controlBar)||void 0===T?void 0:T.getChild("ProgressControl"),K=null===(B=e.controlBar)||void 0===B?void 0:B.getChild("CurrentTimeDisplay"),N=null===(O=e.controlBar)||void 0===O?void 0:O.getChild("SeekToLive");N&&(N.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live");var Z=null===(F=e.controlBar)||void 0===F?void 0:F.getChild("LiveDisplay"),Q=null===(_=e.controlBar)||void 0===_?void 0:_.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 t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_;return o.querySelector(".vjs-control-text").textContent="Start From Beginning",o.classList.add("vjs-startFromBeginning-button"),t}return d(i,t),a(i,[{key:"handleClick",value:function(){(null==e?void 0:e.currentTime())>0&&e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("StartFromBeginning",t),new t(e,{})}(e);null==R||R.addChild(X);var J,Y,$,ee=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Settings",o.classList.add("vjs-Settings-button"),l.append(f('<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>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){k(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("SettingsButton",t),new t(e,{})}(e);if(null==R||R.addChild(ee),!(null!=t&&null!==(j=t.res)&&void 0!==j&&null!==(W=j.video)&&void 0!==W&&null!==(q=W.streamingInfo)&&void 0!==q&&q.isLiveStream)||null!=t&&null!==(D=t.res)&&void 0!==D&&null!==(M=D.video)&&void 0!==M&&null!==(P=M.liveDetails)&&void 0!==P&&P.isDvrEnabled){var te,ie,ne=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Forward",o.classList.add("vjs-forward-button"),l.append(f('<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>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t>=0){var i=t+30;e.currentTime(i)}}}])}(c.getComponent("Button"));return c.registerComponent("ForwardButton",t),new t(e,{})}(e);null===(te=e.controlBar)||void 0===te||te.addChild(ne);var oe=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Rewind",o.classList.add("vjs-rewind-button"),l.append(f('<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>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t-30>=0){var i=t-30;e.currentTime(i)}else e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("RewindButton",t),new t(e,{})}(e);null===(ie=e.controlBar)||void 0===ie||ie.addChild(oe)}null!=t&&null!==(V=t.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==t||null===(J=t.res)||void 0===J||null===(Y=J.video)||void 0===Y||null===($=Y.gist)||void 0===$?void 0:$.title});L(e)}(v,u),function(o,r){var a=t(o);a&&(a.on("loadeddata",function(){var e,t,s,u,d;try{var c,v,p,h,f,m;if(null!=r&&null!==(c=r.res)&&void 0!==c&&null!==(v=c.video)&&void 0!==v&&null!==(p=v.streamingInfo)&&void 0!==p&&p.isLiveStream&&null!=r&&null!==(h=r.res)&&void 0!==h&&null!==(f=h.video)&&void 0!==f&&null!==(m=f.liveDetails)&&void 0!==m&&m.isDvrEnabled){var y,g,k=(null===(y=a.seekable())||void 0===y?void 0:y.end(0))-(null===(g=a.seekable())||void 0===g?void 0:g.start(0));window.customData.dvrWindow=k}else window.customData.dvrWindow=null}catch(e){}try{var C,b,L;if(null!=r&&null!==(C=r.res)&&void 0!==C&&null!==(b=C.video)&&void 0!==b&&null!==(L=b.streamingInfo)&&void 0!==L&&L.isLiveStream){var S,E=null===(S=a.controlBar)||void 0===S?void 0:S.getChild("ProgressControl");if(E){var x=E.el().querySelector(".vjs-play-progress");x&&(x.style.width="100%")}}}catch(e){}try{a.qualityLevels().selectedIndex_=-1}catch(e){}try{var T,B,O=a.textTracks().tracks_;O=O.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var F=null===(T=a.controlBar)||void 0===T?void 0:T.getChild("CustomControlSpacer");if(O&&(null===(B=O)||void 0===B?void 0:B.length)>0){var _=w(a);null==F||F.addChild(_)}else try{F.children_[2].el_.style.right="115px"}catch(e){}try{var j,W;F.el_.style.opacity=1,(null===(j=a.controlBar)||void 0===j||null===(W=j.el_)||void 0===W?void 0:W.querySelector(".custom-smartTV-progress-bar")).style.opacity=1}catch(e){}}catch(e){}!(null!=r&&null!==(e=r.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(s=t.app_data)&&void 0!==s&&null!==(u=s.appcmsMain)&&void 0!==u&&null!==(d=u.features)&&void 0!==d&&d.auto_play)||null!=r&&r.liveVideo||i(o,r),null!=r&&r.liveVideo||l()||n(o)}),a.one("play",function(){var t,i,n,l;null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.iframeOverlayUrl&&e(o,null===(n=window)||void 0===n||null===(l=n.customData)||void 0===l?void 0:l.iframeOverlayUrl)}))}(s,u),function(e,i){var n,l,r,a,s,u,d,c,v=p(null==i?void 0:i.res,e)||{},f=v.src;o(e,i),"MEDIA_TAILOR"==(null===(n=window)||void 0===n||null===(l=n.app_data)||void 0===l||null===(r=l.appcmsMain)||void 0===r||null===(a=r.adsConfig)||void 0===a?void 0:a.vodAdSticherProvider)&&null!==(s=window)&&void 0!==s&&null!==(u=s.app_data)&&void 0!==u&&null!==(d=u.appcmsMain)&&void 0!==d&&null!==(c=d.adsConfig)&&void 0!==c&&c.vodAdClientSideTracking&&h(e,f);!function(e,i){var n=t(e);if(n){var o,l,r=!1,a=!1;null===(o=n.controlBar)||void 0===o||o.on("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(a=!0)}),null===(l=n.controlBar)||void 0===l||l.on("keyup",function(e){39!==e.keyCode&&37!==e.keyCode||(a=!1)}),n.on("seeking",function(){var e,t,i;n.paused()||r||(r=!0,n.pause());var o=n.currentTime();if(null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.dvrWindow)if(o=n.liveTracker.liveCurrentTime()-o,0==Math.round(o)){var l,a;o=window.customData.dvrWindow;var s=null===(l=n.controlBar)||void 0===l||null===(a=l.customControlSpacer)||void 0===a?void 0:a.getChild("SeekToLive");s&&(s.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",n.controlBar.liveDisplay.el().style.opacity=0)}else if(o>window.customData.dvrWindow){var u,d;o=0;var c=null===(u=n.controlBar)||void 0===u||null===(d=u.customControlSpacer)||void 0===d?void 0:d.getChild("SeekToLive");c&&(c.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0)}else{var v,p;o=window.customData.dvrWindow-o;var h=null===(v=n.controlBar)||void 0===v||null===(p=v.customControlSpacer)||void 0===p?void 0:p.getChild("SeekToLive");h&&(h.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0)}var f=o/(window.customData.dvrWindow?window.customData.dvrWindow:n.duration())*100,m=null===(i=n.controlBar)||void 0===i?void 0:i.getChild("ProgressControl");if(m){var y=m.el().querySelector(".vjs-play-progress");y&&(y.style.width=f+"%")}}),n.on("seeked",function(){var e,t,o,l,s,u;if(n.paused()&&r&&!a&&(r=!1,n.play()),null!=i&&null!==(e=i.res)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&null!==(o=t.streamingInfo)&&void 0!==o&&o.isLiveStream&&null!=i&&null!==(l=i.res)&&void 0!==l&&null!==(s=l.video)&&void 0!==s&&null!==(u=s.liveDetails)&&void 0!==u&&u.isDvrEnabled){var d,c,v=null===(d=n.controlBar)||void 0===d||null===(c=d.customControlSpacer)||void 0===c?void 0:c.getChild("SeekToLive");n.liveTracker.seekedBehindLive_?v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0):v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",n.controlBar.liveDisplay.el().style.opacity=1)}})}}(e,i)}(s,u)}export{S as initialiseSkin};
@@ -1 +1 @@
1
- import{F as r,G as e}from"./generic-ecdd66bc.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};
1
+ import{F as r,G as e}from"./generic-fe8a5419.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};
@@ -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-ecdd66bc.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-69a951c0.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};
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-fe8a5419.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-b7900abb.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};
@@ -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-ecdd66bc.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-69a951c0.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
+ 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-fe8a5419.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-b7900abb.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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewlift/player-backup",
3
- "version": "2.0.74-smartTv",
3
+ "version": "2.0.75-smartTv",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "amdName": "_playerCore",
6
6
  "dependencies": {