@viewlift/player-backup 2.0.23-backup → 2.0.24-backup
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/autoNextVideo-36d4f591.js +1 -0
- package/cjs/bundle.css +1 -1
- package/cjs/{features-711ff709.js → features-523e8c65.js} +1 -1
- package/cjs/{generic-67e05416.js → generic-e8bd1537.js} +1 -1
- package/cjs/{index-bc7d25ca.js → index-3428137b.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{keyboardShortcuts-d1ed7f50.js → keyboardShortcuts-8b540706.js} +1 -1
- package/cjs/{multicamv2-e804ff06.js → multicamv2-bc547313.js} +1 -1
- package/cjs/{multicamv2-0c66d789.js → multicamv2-fc0c9f8b.js} +1 -1
- package/cjs/{nextEpisodeButton-2a751883.js → nextEpisodeButton-4808ac62.js} +1 -1
- package/cjs/{playlist-c0735b9f.js → playlist-50e269bf.js} +1 -1
- package/cjs/{series-abed4ead.js → series-cf092d02.js} +1 -1
- package/cjs/{series-v2-5ac6b807.js → series-v2-68f205cc.js} +1 -1
- package/cjs/{series-v2-737f1531.js → series-v2-711d6b3d.js} +1 -1
- package/cjs/{skin-d6c8fcd2.js → skin-2d53c7ba.js} +1 -1
- package/cjs/{skin-77535e19.js → skin-7d3451a7.js} +1 -1
- package/cjs/{skin-e71cdf62.js → skin-88c68611.js} +1 -1
- package/cjs/{skin-11de86af.js → skin-8a9476f5.js} +1 -1
- package/cjs/{skin-258d12e3.js → skin-996eb816.js} +1 -1
- package/cjs/{skin-b678dd19.js → skin-99fce8cb.js} +1 -1
- package/cjs/{videoSelector-f9768d9b.js → videoSelector-1f5e1029.js} +1 -1
- package/cjs/{videoSelector-e74f2960.js → videoSelector-36e5d142.js} +1 -1
- package/esm/autoNextVideo-218110f2.js +1 -0
- package/esm/bundle.css +1 -1
- package/esm/{features-409c6181.js → features-d3fd43f9.js} +1 -1
- package/esm/{generic-84b8ee4f.js → generic-fa33fce3.js} +1 -1
- package/esm/{index-33b32e78.js → index-fdffb13d.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{keyboardShortcuts-d5806536.js → keyboardShortcuts-3b0664a2.js} +1 -1
- package/esm/{multicamv2-7260c4bb.js → multicamv2-39f7b6fd.js} +1 -1
- package/esm/{multicamv2-79bd8659.js → multicamv2-3b26d832.js} +1 -1
- package/esm/{nextEpisodeButton-7358e205.js → nextEpisodeButton-bdc6d19a.js} +1 -1
- package/esm/{playlist-2cca9d41.js → playlist-00c047e6.js} +1 -1
- package/esm/{series-5ba96b26.js → series-57b6d098.js} +1 -1
- package/esm/{series-v2-65714a76.js → series-v2-6401672c.js} +1 -1
- package/esm/{series-v2-6cddea2f.js → series-v2-c71456da.js} +1 -1
- package/esm/{skin-1240fa35.js → skin-085732f0.js} +1 -1
- package/esm/{skin-f24609ab.js → skin-315ec4c3.js} +1 -1
- package/esm/{skin-29dec978.js → skin-c7d3d63c.js} +1 -1
- package/esm/{skin-1f6003f1.js → skin-de98c267.js} +1 -1
- package/esm/{skin-b55c2e32.js → skin-e9236e41.js} +1 -1
- package/esm/{skin-613a13b4.js → skin-ffa11317.js} +1 -1
- package/esm/{videoSelector-acb6b4f0.js → videoSelector-314267c2.js} +1 -1
- package/esm/{videoSelector-bb2eaf94.js → videoSelector-b8674ad9.js} +1 -1
- package/package.json +1 -1
- package/cjs/autoNextVideo-d8271efa.js +0 -1
- package/esm/autoNextVideo-fe0e500b.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/defineProperty";import l from"@babel/runtime/regenerator";import c from"video.js";import{T as d,D as p,G as u,f as v,C as m}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/defineProperty";import l from"@babel/runtime/regenerator";import c from"video.js";import{T as d,D as p,G as u,f as v,C as m}from"./generic-fa33fce3.js";import{E as f}from"./icons-8e47e640.js";import{d as h}from"./skin-88757661.js";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";var g=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function b(e){var t=y();return function(){var i,n=a(e);if(t){var s=a(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return r(this,i)}}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var C,w=c.getComponent("Component"),L=function(e){s(a,w);var r=b(a);function a(e){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,a),i=r.call(this,e,s),o(n(i),"seriesData",[]),i.seriesData=s.seriesData,C=s.playerId;var l=i.el();return j(l,i.seriesData),i.loadCSS(),i}return i(a,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){import("./series-041152aa.js").then((function(e){var t=document.createElement("style");t.id="series",t.append("".concat(e.default)),document.head.appendChild(t)}))}}]),a}();function k(){return(k=e(l.mark((function e(t,i,n,s){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p(C),g(C),u(C,i).then((function(e){v(e.response),m(C)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e,t,i,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var o=e.episodes.map((function(e,t){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(t+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=h(o);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){d(e).then((function(e){var t=e.data,i=document.querySelectorAll("#progress-div");i&&t.map((function(e,t){e&&e.watchedPercentage&&i[t]&&(i[t].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),p=document.querySelectorAll("#episode-title"),u=document.querySelectorAll(".meta-details"),v=document.querySelector("#episodes-back-btn"),m=e.id,f=e.episodes;v.addEventListener("click",(function(){return function(e,t){e.classList.remove("hide-container"),t.classList.add("hide-container")}(s,r)}));for(var g=function(t){c[t].addEventListener("click",(function(){return function(e,t,i){var n=t.querySelector(".meta-details");t.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),i.forEach((function(t,n){n!==e&&(i[n].classList.remove("episode-active"),i[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(t,p[t],p)})),u[t].addEventListener("click",(function(){return function(e,t,i,n){return k.apply(this,arguments)}(t,f[t].id,i,p)})),e.episodes[t].id==m&&p[t].classList.add("highlight-active-eps")},b=0;b<c.length;b++)g(b)}function j(e,t){for(var i='<div class="hover-div"></div>\n '.concat(f(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map((function(e,t){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(t),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=h(i);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}export{j as customSeasonList,E as handleSeasonChange,L as seriesModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import i from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{f as r,e as d,B as c}from"./icons-8e47e640.js";import{j as u,U as m,V as v,b as p,y as h,G as f}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import i from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{f as r,e as d,B as c}from"./icons-8e47e640.js";import{j as u,U as m,V as v,b as p,y as h,G as f}from"./generic-fa33fce3.js";import{e as C,s as b,p as y,j as g,g as N,i as E}from"./skin-88757661.js";import{a as k}from"./autoNextVideo-218110f2.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";import"./util-efa87ada.js";function S(e){var t=L();return function(){var s,o=l(e);if(t){var i=l(this).constructor;s=Reflect.construct(o,arguments,i)}else s=o.apply(this,arguments);return n(this,s)}}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L=function(){return!!e})()}var j=a.getComponent("Component"),x=function(n){i(L,j);var l=S(L);function L(s){var i,n,a,r,d,c,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,L),(c=l.call(this,s,p)).playerId=p.playerId,c.seriesData=p.sres,c.videos=null==p||null===(i=p.sres)||void 0===i?void 0:i.seasons,c.currentVideoData=p.res,c.initialiseStructure(),c.loadCSS(),c.selectedSeason=0,c.cb=null==p||null===(n=p.series)||void 0===n?void 0:n.cb,c.autoPlayNext=(null==p||null===(a=p.series)||void 0===a?void 0:a.autoPlayNext)||!1,sessionStorage.getItem("token"),c.watchMap=u(),null!==(r=o(c))&&void 0!==r&&r.autoPlayNext&&null!=p&&null!==(d=p.series)&&void 0!==d&&d.enable){var h,f,C,b,y=null==p||null===(h=p.sres)||void 0===h?void 0:h.seasons,g=[];y.map((function(t){g.push.apply(g,e(t.episodes))})),m(g),v(null===(f=c.options_)||void 0===f||null===(C=f.res)||void 0===C||null===(b=C.video)||void 0===b?void 0:b.id),k({playerId:c.playerId,content:g,cb:c.cb,series:null==p?void 0:p.sres})}return c}return s(L,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.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,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(C(),e.classList.remove("hidden"),s.classList.add("open"),b(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=a.dom.createEl("div",{className:"series-selection-container hidden"});a.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(s)};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(i,"px"),a.dom.appendContent(t,s),o.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=a.dom.createEl("div",{className:"series-selector-head"}),i=a.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(d())});i.onclick=function(){if("series-selector-cross-icon"===i.className)e.classList.add("hidden"),s.classList.remove("open");else if("series-selector-back-icon"===i.className){var o=a.dom.$(".series-selector-content",t.el());for(a.dom.$(".series-selector-cross-icon",t.el()),i.className="series-selector-cross-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=t.createSeasonLister();for(a.dom.appendContent(o,n),a.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=i&&i.firstChild;)i.removeChild(i.firstChild);var l=y(d());i.appendChild(l)}};var n=a.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=a.dom.createEl("div",{className:"series-selector-content"}),r=this.createSeasonLister();a.dom.appendContent(l,r),a.dom.appendContent(o,i),a.dom.appendContent(o,n),a.dom.appendContent(e,o),a.dom.appendContent(e,l),g(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;N(this.playerId);for(var t=p(),s=a.dom.createEl("div",{className:"season-container"}),o=function(o){var i,n=document.createElement("label");n.className="season-holder",n.setAttribute("for","season-".concat(o));var l=document.createElement("div");l.className="season - ".concat(o),l.textContent=null===(i=t[o])||void 0===i?void 0:i.title;var r=a.dom.createEl("input",{className:"radio - ".concat(o),id:"season-".concat(o),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==o&&(r.checked=!0),r.onclick=function(t){h.set(o),e.showSeasonDetails(o)},a.dom.appendContent(n,r),a.dom.appendContent(n,l),a.dom.appendContent(s,n)},i=0;i<t.length;i++)o(i);return s}},{key:"getSeasonDetailsContainer",value:function(t,s){var o=this;t=t.map((function(e){var t,s,i,n,l,a,r,d,c;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===(i=s.imageGist)||void 0===i?void 0:i.r16x9)||(null===(n=window)||void 0===n||null===(l=n.app_data)||void 0===l||null===(a=l.appcmsMain)||void 0===a||null===(r=a.images)||void 0===r?void 0:r.placeholderCover),watchedPercentage:(null==o||null===(d=o.watchMap)||void 0===d||null===(c=d.get(null==e?void 0:e.id))||void 0===c?void 0:c.p)||0}}));for(var i=function(i){var n,l,r,d,c,u=a.dom.createEl("div",{className:"series-container"}),m=a.dom.createEl("div",{className:"series-section-data",index:i,innerHTML:"".concat((null===(n=t[i])||void 0===n?void 0:n.title)||"")});a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(l=t[i])||void 0===l?void 0:l.title)||"")}),a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[i].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var p=a.dom.createEl("div",{className:"series-section-image"}),h=(null===(r=t[i])||void 0===r?void 0:r.description)||"";(null===(d=h)||void 0===d?void 0:d.length)>170&&(h=h.substr(0,170)+"..."),a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(h||"")});var C=a.dom.createEl("img",{className:"series-image"});C.src="".concat(E(null===(c=t[i])||void 0===c?void 0:c.img)),C.alt="Episode ".concat(i+1),a.dom.appendContent(p,C),a.dom.appendContent(u,p),a.dom.appendContent(u,m),a.dom.appendContent(s,u),u.onclick=function(e){var s;e.stopPropagation(),v(null===(s=t[i])||void 0===s?void 0:s.id),f(o.playerId,t[i].id).then((function(e){null!=o&&o.cb&&o.cb(e)})).catch((function(e){null!=o&&o.cb&&o.cb(e)}))},m.onclick=function(t){var s,o,i,n=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(n=e(n))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(s=l.classList)&&void 0!==s&&s.contains("hidden")?(u.style.backgroundColor="#0000007d",null==l||null===(o=l.classList)||void 0===o||o.remove("hidden")):(null==l||null===(i=l.classList)||void 0===i||i.add("hidden"),u.style.backgroundColor="unset")}},n=0;n<t.length;n++)i(n);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=a.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=p()[e].episodes;this.getSeasonDetailsContainer(s,t);var o=a.dom.$(".series-selector-cross-icon",this.el());for(o.className="series-selector-back-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var i=y(c());o.appendChild(i),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),L}();export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as d,B as c}from"./icons-8e47e640.js";import{j as u,U as m,V as p,b as v,y as h,G as f}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as d,B as c}from"./icons-8e47e640.js";import{j as u,U as m,V as p,b as v,y as h,G as f}from"./generic-fa33fce3.js";import{e as C,p as y,g}from"./skin-88757661.js";import{a as b}from"./autoNextVideo-218110f2.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";import"./util-efa87ada.js";function N(e){var t=E();return function(){var s,o=l(e);if(t){var n=l(this).constructor;s=Reflect.construct(o,arguments,n)}else s=o.apply(this,arguments);return i(this,s)}}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}var k=a.getComponent("Component"),S=function(i){n(E,k);var l=N(E);function E(s){var n,i,a,r,d,c,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,E),(c=l.call(this,s,v)).playerId=v.playerId,c.seriesData=v.sres,c.videos=null==v||null===(n=v.sres)||void 0===n?void 0:n.seasons,c.currentVideoData=v.res,c.initialiseStructure(),c.loadCSS(),c.selectedSeason=0,c.cb=null==v||null===(i=v.series)||void 0===i?void 0:i.cb,c.autoPlayNext=(null==v||null===(a=v.series)||void 0===a?void 0:a.autoPlayNext)||!1,sessionStorage.getItem("token"),c.watchMap=u(),null!==(r=o(c))&&void 0!==r&&r.autoPlayNext&&null!=v&&null!==(d=v.series)&&void 0!==d&&d.enable){var h,f,C,y,g=null==v||null===(h=v.sres)||void 0===h?void 0:h.seasons,N=[];g.map((function(t){N.push.apply(N,e(t.episodes))})),m(N),p(null===(f=c.options_)||void 0===f||null===(C=f.res)||void 0===C||null===(y=C.video)||void 0===y?void 0:y.id),b({playerId:c.playerId,content:N,cb:c.cb,series:null==v?void 0:v.sres})}return c}return s(E,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(r())});return a.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,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(C(),e.classList.remove("hidden"),s.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=a.dom.createEl("div",{className:"series-selection-container hidden"});a.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(s)};var o=document.getElementById(this.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(n,"px"),a.dom.appendContent(t,s),o.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=a.dom.createEl("div",{className:"series-selector-head"}),n=a.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(d())});n.onclick=function(){if("series-selector-cross-icon"===n.className)e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===n.className){var o=a.dom.$(".series-selector-content",t.el());for(a.dom.$(".series-selector-cross-icon",t.el()),n.className="series-selector-cross-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var i=t.createSeasonLister();for(a.dom.appendContent(o,i),a.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var l=y(d());n.appendChild(l)}};var i=a.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=a.dom.createEl("div",{className:"series-selector-content"}),r=this.createSeasonLister();a.dom.appendContent(l,r),a.dom.appendContent(o,n),a.dom.appendContent(o,i),a.dom.appendContent(e,o),a.dom.appendContent(e,l),g(this.playerId).on("fullscreenchange",(function(){var s=document.getElementById(t.playerId);if(s){var o=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(o,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;g(this.playerId);for(var t=v(),s=a.dom.createEl("div",{className:"season-container"}),o=function(o){var n,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(o));var l=document.createElement("div");l.className="season - ".concat(o),l.textContent=null===(n=t[o])||void 0===n?void 0:n.title;var r=a.dom.createEl("input",{className:"radio - ".concat(o),id:"season-".concat(o),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==o&&(r.checked=!0),r.onclick=function(t){h.set(o),e.showSeasonDetails(o)},a.dom.appendContent(i,r),a.dom.appendContent(i,l),a.dom.appendContent(s,i)},n=0;n<t.length;n++)o(n);return s}},{key:"getSeasonDetailsContainer",value:function(t,s){var o=this;t=t.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 n=function(n){var i,l,r,d,c,u,m,v=a.dom.createEl("div",{className:"series-container"}),h=a.dom.createEl("div",{className:"series-section",index:n}),C=a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=t[n])||void 0===i?void 0:i.title)||"")}),y=a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[n].watchedPercentage,"%' class='series-progress-bar-value'></div>")});a.dom.appendContent(h,C),a.dom.appendContent(h,y),a.dom.appendContent(v,h),a.dom.appendContent(s,v);var g=a.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(l=t[n])||void 0===l?void 0:l.description)||"";(null===(r=b)||void 0===r?void 0:r.length)>170&&(b=b.substr(0,170)+"...");var N=a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),E=a.dom.createEl("img",{className:"series-image"});E.src="".concat((null===(d=t[n])||void 0===d?void 0:d.img)||(null===(c=window)||void 0===c||null===(u=c.customData)||void 0===u?void 0:u.fallbackImage)),E.alt="".concat(null===(m=t[n])||void 0===m?void 0:m.title),a.dom.appendContent(g,E),a.dom.appendContent(g,N),a.dom.appendContent(v,g),a.dom.appendContent(s,v),g.onclick=function(e){var s;e.stopPropagation(),p(null===(s=t[n])||void 0===s?void 0:s.id),f(o.playerId,t[n].id).then((function(e){null!=o&&o.cb&&o.cb(e)})).catch((function(e){null!=o&&o.cb&&o.cb(e)}))},h.onclick=function(t){var s,o,n,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(s=l.classList)&&void 0!==s&&s.contains("hidden")?(v.style.backgroundColor="#0000007d",null==l||null===(o=l.classList)||void 0===o||o.remove("hidden")):(null==l||null===(n=l.classList)||void 0===n||n.add("hidden"),v.style.backgroundColor="unset")}},i=0;i<t.length;i++)n(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=a.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=v()[e].episodes;this.getSeasonDetailsContainer(s,t);var o=a.dom.$(".series-selector-cross-icon",this.el());for(o.className="series-selector-back-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=y(c());o.appendChild(n),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),E}();export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as r,D as e}from"./generic-
|
|
1
|
+
import{C as r,D as e}from"./generic-fa33fce3.js";import{g as t}from"./skin-88757661.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";function o(r){n(r),i(r)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",(function(){i.paused()?r(o):e(o)}))},n=function(r){var e=t(r);e.requestFullscreen=function(){},e.controlBar.hide()};export{o as initaliseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,o as n,p as t,q as o}from"./features-409c6181.js";import{g as r,t as a,p as i}from"./skin-88757661.js";import{a as l,i as s,b as d}from"./index-33b32e78.js";import{i as u}from"./browser-d4613b36.js";import"videojs-contrib-quality-menu";import c from"video.js";import{k as p,i as v}from"./keyboardShortcuts-d5806536.js";import{l as m,S as f,e as y}from"./generic-84b8ee4f.js";import b from"@babel/runtime/helpers/toConsumableArray";import h from"@babel/runtime/helpers/slicedToArray";import g from"@babel/runtime/helpers/defineProperty";import S from"@babel/runtime/helpers/asyncToGenerator";import k from"@babel/runtime/regenerator";import{I as j}from"./icons-8e47e640.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./renditions-7d6c3151.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-fe0e500b.js";import"./util-efa87ada.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";function w(n,t){var o=r(n);o&&(o.on("loadeddata",(function(){var e,o,a,i,d;!function(e){var n=r(e);n&&(null==n||n.qualityMenu,n.qualityMenu({useResolutionLabels:!0}))}(n),!(null!=t&&null!==(e=t.series)&&void 0!==e&&e.enable||null!==(o=window)&&void 0!==o&&null!==(a=o.app_data)&&void 0!==a&&null!==(i=a.appcmsMain)&&void 0!==i&&null!==(d=i.features)&&void 0!==d&&d.auto_play)||null!=t&&t.liveVideo||l(n,t),null!=t&&t.liveVideo||u()||s(n)})),o.one("play",(function(){var t,o,r,a;null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.iframeOverlayUrl&&e(n,null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.iframeOverlayUrl)})))}function C(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return I(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){g(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(){return x=S(k.mark((function e(n,t){var o,l,s,d,u,c,v,y,g,w,I,O,x,E,M,A,B,P,N;return k.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N=function(e,t,o){var a=r(n);Math.floor(a.currentTime());var i,l,s,d,u,c,p,v,m,f,y,b,h,g,S=C(t);try{for(S.s();!(i=S.n()).done;)l=void 0,s=void 0,d=void 0,u=void 0,c=void 0,p=void 0,v=void 0,m=void 0,f=void 0,y=void 0,b=void 0,h=void 0,g=void 0,c=i.value,p=c.eventType,v=c.beaconUrls,m=c.startTimeInSeconds,f=c.startTime,y=c.durationInSeconds,b=Math.round(m),h=v[0],g=(null===(l=window)||void 0===l||null===(s=l.customData)||void 0===s||null===(d=s.ads)||void 0===d?void 0:d.adEventHandler)||null,b!=Math.round(a.currentTime())||P.has(f)||(P.set(f,!0),"function"==typeof g&&g({adsData:{eventType:p,startTimeInSeconds:m,startTime:f,durationInSeconds:y,ad:null==e||null===(u=e.ads)||void 0===u?void 0:u[o],adIndex:o}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",p,"Fired:".concat(Math.round(a.currentTime())),"AD_POD:",e),fetch(h))}catch(e){S.e(e)}finally{S.f()}},B=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},M=function(e){var n={},t=e.split("?")[1];if(!t)return n;var o,r=C(t.split("&"));try{for(r.s();!(o=r.n()).done;){var a=o.value.split("="),i=h(a,2),l=i[0],s=i[1];n[decodeURIComponent(l)]=decodeURIComponent(s||"")}}catch(e){r.e(e)}finally{r.f()}for(var d={},u=0,c=Object.entries(n);u<c.length;u++){var p=h(c[u],2),v=p[0],m=p[1];if(v.startsWith("ads."))d[v.replace(/^ads\./,"")]=m;else d[v]=m}return d},o=r(n),l=t.replace("dash","session").replace("master","session"),l=f(l,n,{}),s=M(l),l=l.split("?")[0],e.next=10,fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:T({},s)})});case 10:return d=e.sent,e.next=13,d.json();case 13:u=e.sent,c="https://"+new URL(l).hostname,v=u.trackingUrl,y=u.manifestUrl,g=c+v,w=c+y,console.log("%c TRACKING URL","background: #bdf369; color: #000",g),null!=t&&t.includes(".mpd")?(O=(null==o||null===(I=o.currentSource())||void 0===I?void 0:I.keySystemOptions)||null,m(n,{src:w,type:"application/x-mpegURL",keySystemOptions:O})):(E=(null==o||null===(x=o.currentSource())||void 0===x?void 0:x.keySystems)||null,m(n,{src:w,type:"application/x-mpegURL",keySystems:E})),o.one("loadeddata",(function(){A(g)})),A=function(){var e=S(k.mark((function e(t){var o,l,s,d,u,c,v,m,f,y,h,g,S,w,C,I,O;return k.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return l=e.sent,e.next=5,l.json();case 5:s=e.sent,d=s.avails,u=[],c=r(n),v=c.controlBar.progressControl,m=v.seekBar.el(),d.map((function(e){var n;Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(n=e.ads)||void 0===n?void 0:n.length)>0&&u.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),u.forEach((function(e){var n=e.markerPositionInSeconds,t=c.duration();if(!(n>t)){var o=n/t*100,r=document.createElement("div");r.className="vjs-seekbar-marker",r.style.left="".concat(o,"%"),r.style.position="absolute",r.style.top="0",r.style.bottom="0",r.style.width="2px",r.style.backgroundColor="#fecc09",r.style.left="".concat(o,"%"),r.style.pointerEvents="none",m.appendChild(r)}})),f=new Map,y=-1,c.on("timeupdate",a((function(){var e=Math.floor(c.currentTime());if(e!==y){y=e;for(var n=!1,t=function(){var t=r[o],a=t.startTimeInSeconds,i=t.durationInSeconds,l=t.ads,s=Math.floor(a+i);if(e>=a&&e<=s){n=!0,f.set(a,!0),p.disable(),v.el().style.visibility="hidden";for(var d=e-a,u=0,c=0,m=0;m<l.length;m++){var y,g=null==l||null===(y=l[m])||void 0===y?void 0:y.durationInSeconds;if(d<u+g){c=m;break}u+=g}var S=l[c],k=d-u,j=Math.max(0,S.durationInSeconds-k),w=Math.round(j);h.style.display="block",I.textContent="".concat(c+1," of ").concat(l.length," • ").concat(B(w));var C=[];return l.forEach((function(e){var n=e.trackingEvents.filter((function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"].includes(e.eventType)}));C.push.apply(C,b(n))})),N(t,C,c),"break"}},o=0,r=u;o<r.length;o++){if("break"===t())break}n||(h.style.display="none",v.el().style.visibility="visible",p.enable())}}),1e3)),c.on("seeked",(function(){for(var e=null,n=0,t=u;n<t.length;n++){var o=t[n],r=null==c?void 0:c.currentTime(),a=o.startTimeInSeconds,i=o.durationInSeconds;r>Math.floor(a+i)&&!f.has(a)&&(e=a,f.set(a,!0))}e&&(c.currentTime(e),console.log("seeking back to",e),e=null)})),(h=document.createElement("div")).className="ssai-ad-container",(g=document.createElement("div")).className="sponsored-adbox",(S=document.createElement("div")).className="sponsored-text",S.textContent="Sponsored Ad",(w=document.createElement("div")).className="ad-info-icon",C=i(j()),w.appendChild(C),g.append(S),g.append(w),(I=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(O=document.createElement("div")).className="ad-visit-advertiser",O.textContent="Visit Advertiser",(null===(o=document.getElementsByClassName("tvProviderImage"))||void 0===o?void 0:o[0])&&(O.style.right="8.6rem"),h.append(g),h.append(I),h.append(O),c.el().appendChild(h);case 43:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),P=new Map;case 24:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function E(e,a){r(e).addClass("skin_vlone"),w(e,a),function(e,r){var a,i,l,s,u,c,p=null==r||null===(a=r.res)||void 0===a||null===(i=a.video)||void 0===i?void 0:i.isSSAIEnabled,m=y(null==r?void 0:r.res,e)||{},f=m.src;(null==r||null===(l=r.relatedVideos)||void 0===l||null===(s=l.content)||void 0===s?void 0:s.length)>0&&n(e,null==r?void 0:r.relatedVideos);null!=r&&null!==(u=r.series)&&void 0!==u&&u.enable&&t(e,r);(null==r||null===(c=r.streams)||void 0===c?void 0:c.length)>1&&o(e,null==r?void 0:r.streams);d(e,r),v(e,r),p&&function(e,n){x.apply(this,arguments)}(e,f)}(e,a),M(e,a)}var M=function(e,n){var t,o,a,i,l,s,d,u,p,v,m,f,y=r(e),b=(null==n?void 0:n.theme)||{},h=c.dom.$(".vjs-play-progress"),g=c.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(t=window)||void 0===t||null===(o=t.app_data)||void 0===o||null===(a=o.appcmsMain)||void 0===a||null===(i=a.brand)||void 0===i||null===(l=i.cta)||void 0===l||null===(s=l.primary)||void 0===s?void 0:s.backgroundColor)),h&&(h.style.background="".concat(null===(d=window)||void 0===d||null===(u=d.app_data)||void 0===u||null===(p=u.appcmsMain)||void 0===p||null===(v=p.brand)||void 0===v||null===(m=v.cta)||void 0===m||null===(f=m.primary)||void 0===f?void 0:f.backgroundColor));var S=y.getChild("BigPlayButton")||null;(null==b?void 0:b.progressBarColor)&&h&&(h.style.background=b.progressBarColor),(null==b?void 0:b.playButtonBackgroundColor)&&S&&(S.el().style.background=b.playButtonBackgroundColor),(null==b?void 0:b.playButtonColor)&&g&&(g.style.color=b.playButtonColor),(null==b?void 0:b.playButtonType)&&("square"==(null==b?void 0:b.playButtonType)?S.el().style.borderRadius=".3em":S.el().style.borderRadius="1.3em")};export{E as initialiseSkin};
|
|
1
|
+
import{h as e,o as n,p as t,q as o}from"./features-d3fd43f9.js";import{g as r,t as a,p as i}from"./skin-88757661.js";import{a as l,i as s,b as d}from"./index-fdffb13d.js";import{i as u}from"./browser-d4613b36.js";import"videojs-contrib-quality-menu";import c from"video.js";import{k as p,i as v}from"./keyboardShortcuts-3b0664a2.js";import{l as m,S as f,e as y}from"./generic-fa33fce3.js";import b from"@babel/runtime/helpers/toConsumableArray";import h from"@babel/runtime/helpers/slicedToArray";import g from"@babel/runtime/helpers/defineProperty";import S from"@babel/runtime/helpers/asyncToGenerator";import k from"@babel/runtime/regenerator";import{I as j}from"./icons-8e47e640.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./renditions-7d6c3151.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-218110f2.js";import"./util-efa87ada.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";function w(n,t){var o=r(n);o&&(o.on("loadeddata",(function(){var e,o,a,i,d;!function(e){var n=r(e);n&&(null==n||n.qualityMenu,n.qualityMenu({useResolutionLabels:!0}))}(n),!(null!=t&&null!==(e=t.series)&&void 0!==e&&e.enable||null!==(o=window)&&void 0!==o&&null!==(a=o.app_data)&&void 0!==a&&null!==(i=a.appcmsMain)&&void 0!==i&&null!==(d=i.features)&&void 0!==d&&d.auto_play)||null!=t&&t.liveVideo||l(n,t),null!=t&&t.liveVideo||u()||s(n)})),o.one("play",(function(){var t,o,r,a;null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.iframeOverlayUrl&&e(n,null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.iframeOverlayUrl)})))}function C(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return I(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){g(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(){return x=S(k.mark((function e(n,t){var o,l,s,d,u,c,v,y,g,w,I,O,x,E,M,A,B,P,N;return k.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N=function(e,t,o){var a=r(n);Math.floor(a.currentTime());var i,l,s,d,u,c,p,v,m,f,y,b,h,g,S=C(t);try{for(S.s();!(i=S.n()).done;)l=void 0,s=void 0,d=void 0,u=void 0,c=void 0,p=void 0,v=void 0,m=void 0,f=void 0,y=void 0,b=void 0,h=void 0,g=void 0,c=i.value,p=c.eventType,v=c.beaconUrls,m=c.startTimeInSeconds,f=c.startTime,y=c.durationInSeconds,b=Math.round(m),h=v[0],g=(null===(l=window)||void 0===l||null===(s=l.customData)||void 0===s||null===(d=s.ads)||void 0===d?void 0:d.adEventHandler)||null,b!=Math.round(a.currentTime())||P.has(f)||(P.set(f,!0),"function"==typeof g&&g({adsData:{eventType:p,startTimeInSeconds:m,startTime:f,durationInSeconds:y,ad:null==e||null===(u=e.ads)||void 0===u?void 0:u[o],adIndex:o}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",p,"Fired:".concat(Math.round(a.currentTime())),"AD_POD:",e),fetch(h))}catch(e){S.e(e)}finally{S.f()}},B=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},M=function(e){var n={},t=e.split("?")[1];if(!t)return n;var o,r=C(t.split("&"));try{for(r.s();!(o=r.n()).done;){var a=o.value.split("="),i=h(a,2),l=i[0],s=i[1];n[decodeURIComponent(l)]=decodeURIComponent(s||"")}}catch(e){r.e(e)}finally{r.f()}for(var d={},u=0,c=Object.entries(n);u<c.length;u++){var p=h(c[u],2),v=p[0],m=p[1];if(v.startsWith("ads."))d[v.replace(/^ads\./,"")]=m;else d[v]=m}return d},o=r(n),l=t.replace("dash","session").replace("master","session"),l=f(l,n,{}),s=M(l),l=l.split("?")[0],e.next=10,fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:T({},s)})});case 10:return d=e.sent,e.next=13,d.json();case 13:u=e.sent,c="https://"+new URL(l).hostname,v=u.trackingUrl,y=u.manifestUrl,g=c+v,w=c+y,console.log("%c TRACKING URL","background: #bdf369; color: #000",g),null!=t&&t.includes(".mpd")?(O=(null==o||null===(I=o.currentSource())||void 0===I?void 0:I.keySystemOptions)||null,m(n,{src:w,type:"application/x-mpegURL",keySystemOptions:O})):(E=(null==o||null===(x=o.currentSource())||void 0===x?void 0:x.keySystems)||null,m(n,{src:w,type:"application/x-mpegURL",keySystems:E})),o.one("loadeddata",(function(){A(g)})),A=function(){var e=S(k.mark((function e(t){var o,l,s,d,u,c,v,m,f,y,h,g,S,w,C,I,O;return k.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return l=e.sent,e.next=5,l.json();case 5:s=e.sent,d=s.avails,u=[],c=r(n),v=c.controlBar.progressControl,m=v.seekBar.el(),d.map((function(e){var n;Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(n=e.ads)||void 0===n?void 0:n.length)>0&&u.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),u.forEach((function(e){var n=e.markerPositionInSeconds,t=c.duration();if(!(n>t)){var o=n/t*100,r=document.createElement("div");r.className="vjs-seekbar-marker",r.style.left="".concat(o,"%"),r.style.position="absolute",r.style.top="0",r.style.bottom="0",r.style.width="2px",r.style.backgroundColor="#fecc09",r.style.left="".concat(o,"%"),r.style.pointerEvents="none",m.appendChild(r)}})),f=new Map,y=-1,c.on("timeupdate",a((function(){var e=Math.floor(c.currentTime());if(e!==y){y=e;for(var n=!1,t=function(){var t=r[o],a=t.startTimeInSeconds,i=t.durationInSeconds,l=t.ads,s=Math.floor(a+i);if(e>=a&&e<=s){n=!0,f.set(a,!0),p.disable(),v.el().style.visibility="hidden";for(var d=e-a,u=0,c=0,m=0;m<l.length;m++){var y,g=null==l||null===(y=l[m])||void 0===y?void 0:y.durationInSeconds;if(d<u+g){c=m;break}u+=g}var S=l[c],k=d-u,j=Math.max(0,S.durationInSeconds-k),w=Math.round(j);h.style.display="block",I.textContent="".concat(c+1," of ").concat(l.length," • ").concat(B(w));var C=[];return l.forEach((function(e){var n=e.trackingEvents.filter((function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"].includes(e.eventType)}));C.push.apply(C,b(n))})),N(t,C,c),"break"}},o=0,r=u;o<r.length;o++){if("break"===t())break}n||(h.style.display="none",v.el().style.visibility="visible",p.enable())}}),1e3)),c.on("seeked",(function(){for(var e=null,n=0,t=u;n<t.length;n++){var o=t[n],r=null==c?void 0:c.currentTime(),a=o.startTimeInSeconds,i=o.durationInSeconds;r>Math.floor(a+i)&&!f.has(a)&&(e=a,f.set(a,!0))}e&&(c.currentTime(e),console.log("seeking back to",e),e=null)})),(h=document.createElement("div")).className="ssai-ad-container",(g=document.createElement("div")).className="sponsored-adbox",(S=document.createElement("div")).className="sponsored-text",S.textContent="Sponsored Ad",(w=document.createElement("div")).className="ad-info-icon",C=i(j()),w.appendChild(C),g.append(S),g.append(w),(I=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(O=document.createElement("div")).className="ad-visit-advertiser",O.textContent="Visit Advertiser",(null===(o=document.getElementsByClassName("tvProviderImage"))||void 0===o?void 0:o[0])&&(O.style.right="8.6rem"),h.append(g),h.append(I),h.append(O),c.el().appendChild(h);case 43:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),P=new Map;case 24:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function E(e,a){r(e).addClass("skin_vlone"),w(e,a),function(e,r){var a,i,l,s,u,c,p=null==r||null===(a=r.res)||void 0===a||null===(i=a.video)||void 0===i?void 0:i.isSSAIEnabled,m=y(null==r?void 0:r.res,e)||{},f=m.src;(null==r||null===(l=r.relatedVideos)||void 0===l||null===(s=l.content)||void 0===s?void 0:s.length)>0&&n(e,null==r?void 0:r.relatedVideos);null!=r&&null!==(u=r.series)&&void 0!==u&&u.enable&&t(e,r);(null==r||null===(c=r.streams)||void 0===c?void 0:c.length)>1&&o(e,null==r?void 0:r.streams);d(e,r),v(e,r),p&&function(e,n){x.apply(this,arguments)}(e,f)}(e,a),M(e,a)}var M=function(e,n){var t,o,a,i,l,s,d,u,p,v,m,f,y=r(e),b=(null==n?void 0:n.theme)||{},h=c.dom.$(".vjs-play-progress"),g=c.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(t=window)||void 0===t||null===(o=t.app_data)||void 0===o||null===(a=o.appcmsMain)||void 0===a||null===(i=a.brand)||void 0===i||null===(l=i.cta)||void 0===l||null===(s=l.primary)||void 0===s?void 0:s.backgroundColor)),h&&(h.style.background="".concat(null===(d=window)||void 0===d||null===(u=d.app_data)||void 0===u||null===(p=u.appcmsMain)||void 0===p||null===(v=p.brand)||void 0===v||null===(m=v.cta)||void 0===m||null===(f=m.primary)||void 0===f?void 0:f.backgroundColor));var S=y.getChild("BigPlayButton")||null;(null==b?void 0:b.progressBarColor)&&h&&(h.style.background=b.progressBarColor),(null==b?void 0:b.playButtonBackgroundColor)&&S&&(S.el().style.background=b.playButtonBackgroundColor),(null==b?void 0:b.playButtonColor)&&g&&(g.style.color=b.playButtonColor),(null==b?void 0:b.playButtonType)&&("square"==(null==b?void 0:b.playButtonType)?S.el().style.borderRadius=".3em":S.el().style.borderRadius="1.3em")};export{E as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,D as t}from"./generic-
|
|
1
|
+
import{C as e,D as t}from"./generic-fa33fce3.js";import{g as r}from"./skin-88757661.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";function o(o){import("./skin-2c638dc1.js").then((function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)})),n(),function(o){var n=document.getElementById("".concat(o)),i=r(o);n&&n.addEventListener("touchstart",(function(){i.paused()?e(o):t(o)}))}(o)}var n=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as l,g as e,h as o,d as i,e as n,i as t,j as a,k as r,l as s,m as d}from"./features-
|
|
1
|
+
import{f as l,g as e,h as o,d as i,e as n,i as t,j as a,k as r,l as s,m as d}from"./features-d3fd43f9.js";import{M as u,a as m,c as v,d as p}from"./icons-8e47e640.js";import{g as c,b as h}from"./skin-88757661.js";import{g as f}from"./renditions-7d6c3151.js";import{g as b}from"./captions-2401a9bd.js";import{a as g,i as y,b as j}from"./index-fdffb13d.js";import{i as C,d as V}from"./browser-d4613b36.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./generic-fa33fce3.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"./autoNextVideo-218110f2.js";import"./util-efa87ada.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";function w(i,n){var t=c(i);t&&(t.on("loadeddata",(function(){var o,a,r,s,d,u,m;(null===(o=f(i))||void 0===o?void 0:o.length)>0&&l(i,n),(null===(a=b(i))||void 0===a?void 0:a.length)>0&&e(i,n),!(null!=n&&null!==(r=n.series)&&void 0!==r&&r.enable||null!==(s=window)&&void 0!==s&&null!==(d=s.app_data)&&void 0!==d&&null!==(u=d.appcmsMain)&&void 0!==u&&null!==(m=u.features)&&void 0!==m&&m.auto_play)||null!=n&&n.liveVideo||g(i,n),function(l,e){var o,i=Math.floor(l/60),n=null===(o=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===o?void 0:o[0];n&&(n.style.marginRight=i>60?"56px":"41px");var t=document.getElementsByClassName("vjs-live-control")[0],a=document.getElementsByClassName("vjs-time-control");e&&t.classList.value.includes("vjs-hidden")&&(a[0].style.display="block",n&&(n.style.marginRight="56px"))}(t.duration(),(null==n?void 0:n.liveVideo)||!1),null!=n&&n.liveVideo||C()||y(i)})),t.one("play",(function(){var l,e,n,t;null!==(l=window)&&void 0!==l&&null!==(e=l.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(i,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)})))}function k(l,e){c(l).addClass("skin_defaultv2"),function(){"Chrome"==V()&&import("./chromett-a3cbb2e1.js").then((function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)}));import("./skin-e4b35c14.js").then((function(l){var e=document.createElement("style");e.id="default_v2",e.append("".concat(l.default)),document.head.appendChild(e)}))}(),w(l,e),function(l,e){var o,i,n,t,a,r,s=c(l);null==s||null===(o=s.controlBar)||void 0===o||null===(i=o.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(h(u(window.controlsColor))),null==s||null===(t=s.controlBar)||void 0===t||null===(a=t.getChild("FullscreenToggle"))||void 0===a||null===(r=a.el())||void 0===r||r.appendChild(h(m(window.controlsColor)));var d=document.getElementsByClassName("vjs-time-control");e.liveVideo&&d[0]&&(d[0].style.display="none")}(l,e),function(l,e){var o,u,m,c,h,f;0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)&&i(l,"defaultV2",v());(0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)||1==(null==e?void 0:e.liveui))&&n(l,"defaultV2",p());e.liveVideo||t(l);(null==e||null===(o=e.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&a(l,null==e?void 0:e.relatedVideos);(null==e||null===(m=e.streams)||void 0===m?void 0:m.length)>1&&r(l,null==e?void 0:e.streams);(null==e||null===(c=e.playlist)||void 0===c||null===(h=c.content)||void 0===h?void 0:h.length)>0&&s(l,null==e?void 0:e.playlist);null!=e&&null!==(f=e.series)&&void 0!==f&&f.enable&&d(l,e)}(l,e),j(l,e)}export{k as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t,c as o,d as s,e as i}from"./features-
|
|
1
|
+
import{a as e,b as t,c as o,d as s,e as i}from"./features-d3fd43f9.js";import{i as n}from"./keyboardShortcuts-3b0664a2.js";import{S as r,M as l,a,N as d,b as m,R as u}from"./icons-8e47e640.js";import{g as p,b as c}from"./skin-88757661.js";import{d as b}from"./generic-fa33fce3.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./renditions-7d6c3151.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";function v(v,f){p(v).addClass("skin_default"),n(v,f),import("./skin-71be210e.js").then((function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e,t){0==t.liveVideo&&0==t.liveui&&s(e,"default",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",u())}(v,f),function(s,i){var n=p(s),l=(null==i?void 0:i.sres)||null;n.on("loadeddata",(function(){e(s,"default",r()),l&&import("./nextEpisodeButton-bdc6d19a.js").then((function(e){e.initaliseFunctionality(i.sres.seasons,b())}))})),n.one("loadedmetadata",(function(){var e;l&&(t(s,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),o(i.sres,i.res,s))}))}(v,f),function(e,t){var o,s,i,n,r=p(e),m=document.getElementsByClassName("vjs-current-time")[0],u=document.getElementsByClassName("vjs-duration")[0],b=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(m&&(m.style.display="none"),u&&(u.style.display="none"),b&&(b.style.display="none"));null===(o=r.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(c(l(window.controlsColor))),null===(i=r.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(c(a(window.controlsColor)));var v=r.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(d()));var f=document.createElement("div");f.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(f,v.querySelector(".vjs-menu-item"))}(v,f)}export{v as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e}from"./skin-88757661.js";import{f as r,n as t}from"./features-
|
|
1
|
+
import{g as e}from"./skin-88757661.js";import{f as r,n as t}from"./features-d3fd43f9.js";import{g as o}from"./renditions-7d6c3151.js";import{r as i}from"./captions-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-fa33fce3.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";function s(s,n){import("./skin-271fa63f.js").then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(t,s){e(t).on("loadeddata",(function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,s),null!=s&&s.disableCaptions&&i(t)}))}(s,n),function(r,o){var i=e(r);i.controls(!1),t(r)}(s)}export{s as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-8e47e640.js";import{G as s,R as d}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-8e47e640.js";import{G as s,R as d}from"./generic-fa33fce3.js";import{e as c,s as m,f as u,j as p,k as v}from"./skin-88757661.js";import{a as h}from"./autoNextVideo-218110f2.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-efa87ada.js";function b(e){var t=y();return function(){var o,a=i(e);if(t){var r=i(this).constructor;o=Reflect.construct(a,arguments,r)}else o=a.apply(this,arguments);return n(this,o)}}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var g=a.getComponent("Component"),C=function(n){o(y,g);var i=b(y);function y(t){var o,n,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(a=i.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.videos=r.related.content,a.cb=(null==r||null===(o=r.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),h({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(y,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),u=function(e){var o,n,i,r,l,u=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e)});p.setAttribute("video-idx",e),p.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",p.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(u,p),a.dom.appendContent(u,f),a.dom.appendContent(m,u),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)u(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),p(this.playerId,e)}}]),y}();export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{f as r,e as l}from"./icons-8e47e640.js";import{G as s,R as d}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{f as r,e as l}from"./icons-8e47e640.js";import{G as s,R as d}from"./generic-fa33fce3.js";import{e as c,s as m,f as p,j as u,h as v,i as h}from"./skin-88757661.js";import{a as f}from"./autoNextVideo-218110f2.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-efa87ada.js";function y(e){var t=C();return function(){var o,a=i(e);if(t){var r=i(this).constructor;o=Reflect.construct(a,arguments,r)}else o=a.apply(this,arguments);return n(this,o)}}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var g=a.getComponent("Component"),j=function(n){o(C,g);var i=y(C);function C(t){var o,n,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,C),(a=i.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.videos=r.related.content,a.cb=(null==r||null===(o=r.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),f({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(C,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open")};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p,u,f,b=a.dom.createEl("div",{className:"video -".concat(e)}),y=a.dom.createEl("div",{className:"recommended -".concat(e)});y.setAttribute("video-idx",e),y.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var C=document.createElement("img");C.className="related-thumbnail-image",C.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(l=r.appcmsMain)||void 0===l||null===(p=l.images)||void 0===p?void 0:p.placeholderCover)),C.alt="".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),y.append(C);var g=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(f=t.videos[e])||void 0===f?void 0:f.title)||"")});a.dom.appendContent(b,y),a.dom.appendContent(b,g),a.dom.appendContent(m,b),a.dom.appendContent(c,m)},f=0;f<this.videos.length;f++)p(f);a.dom.appendContent(n,r),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),C}();export{j as default};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e,i=require("./generic-67e05416.js"),t=require("./util-279f489b.js"),n=require("./skin-16742114.js"),o=0,u=0,d=function e(t,o,d,l){u=t,t>d.length-1||(i.setVideoIdx(u+1),i.load(o,d[t].id).then((function(e){n.highlightVideo(u,o),u++,r(e,t+1)})).catch((function(i){r(i),setTimeout((function(){n.highlightVideo(u,o),u++,e(u,o,d)}),5e3)})))},r=function(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e&&e(i,t)};exports.autoPlayNext=function(l){clearTimeout(o);var c=null==l?void 0:l.content;e=null==l?void 0:l.cb;var h=l.playerId;t.onVideoEnded(h,(function(){var e=n.getPlayer(h);0!==(null==e?void 0:e.currentTime())&&((u=i.getVideoIdx())>c.length-1||(i.setVideoIdx(u+1),i.load(h,c[u].id).then((function(e){n.highlightVideo(u,h),i.setCurrentVideo(e.response),u++,r(e,idx+1)})).catch((function(e){r(e),n.highlightVideo(u,h),u++,o=setTimeout((function(){i.isPaused(h)&&d(u,h,c)}),5e3)}))))}))},exports.switchToNext=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as n,f as t,Q as i,P as o,R as e}from"./generic-84b8ee4f.js";import{a}from"./util-efa87ada.js";import{g as c,h as s}from"./skin-88757661.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var d=null==l?void 0:l.content;u=null==l?void 0:l.cb;var h=l.playerId;a(h,(function(){var a=c(h);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(f+1),n(h,d[f].id).then((function(n){s(f,h),t(n.response),f++,v(n,idx+1)})).catch((function(n){v(n),s(f,h),f++,r=setTimeout((function(){i(h)&&m(f,h,d)}),5e3)}))))}))},m=function t(i,o,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[i].id).then((function(n){s(f,o),f++,v(n,i+1)})).catch((function(n){v(n),setTimeout((function(){s(f,o),f++,t(f,o,a)}),5e3)})))},v=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;u&&u(n,t)};export{l as a,m as s};
|