@viewlift/player-backup 2.0.36-smarttv → 2.0.37-smarttv
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/autoNextVideo-646811db.js +1 -0
- package/cjs/browser-4406e987.js +1 -0
- package/cjs/bundle.css +3 -3
- package/cjs/caption-settings-f4b56d18.js +1 -0
- package/cjs/captions-0bfb1f17.js +1 -0
- package/cjs/features-4c40fb30.js +1 -0
- package/cjs/generic-77e7dad6.js +1 -0
- package/cjs/icons-fb3b77be.js +1 -0
- package/cjs/index-517a7251.js +1 -0
- package/cjs/index-ff10ae67.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/keyboardShortcuts-253d9a90.js +1 -0
- package/cjs/multicamv2-21a30164.js +1 -0
- package/cjs/multicamv2-ff1ea347.js +1 -0
- package/cjs/nextEpisodeButton-10990ff3.js +1 -0
- package/cjs/playlist-424537b7.js +1 -0
- package/cjs/renditions-f17d8e10.js +1 -0
- package/cjs/resolution-fba4b582.js +1 -0
- package/cjs/series-47154e16.js +1 -0
- package/cjs/series-v2-01db596c.js +1 -0
- package/cjs/series-v2-95803907.js +1 -0
- package/cjs/settings-icon-79d93313.js +1 -0
- package/cjs/skin-49f41de2.js +1 -0
- package/cjs/skin-501e5a0c.js +1 -0
- package/cjs/skin-b1ac9d37.js +1 -0
- package/cjs/skin-b5c3fd0d.js +1 -0
- package/cjs/skin-c55863dc.js +1 -0
- package/cjs/skin-e4278c76.js +1 -0
- package/cjs/skin-ffa26520.js +1 -0
- package/cjs/{util-1f5115f2.js → util-d2dab2d7.js} +1 -1
- package/cjs/videoSelector-4f4de3ed.js +1 -0
- package/cjs/videoSelector-5ff29cf0.js +1 -0
- package/cjs/videojs_contrib_dash-a6249357.js +1 -0
- package/esm/autoNextVideo-91174189.js +1 -0
- package/esm/browser-4d7cb620.js +1 -0
- package/esm/bundle.css +3 -3
- package/esm/caption-settings-8b834ad5.js +1 -0
- package/esm/captions-79fcdb9f.js +1 -0
- package/esm/features-af98efe7.js +1 -0
- package/esm/generic-bd9c636a.js +1 -0
- package/esm/icons-96a83bb5.js +1 -0
- package/esm/index-0cc87ab8.js +1 -0
- package/esm/index-89fa7454.js +1 -0
- package/esm/index.js +1 -1
- package/esm/keyboardShortcuts-7352ca34.js +1 -0
- package/esm/multicamv2-c671e664.js +1 -0
- package/esm/multicamv2-e78823c2.js +1 -0
- package/esm/nextEpisodeButton-06829f67.js +1 -0
- package/esm/playlist-d3515ea7.js +1 -0
- package/esm/renditions-b770df31.js +1 -0
- package/esm/resolution-33a5dc11.js +1 -0
- package/esm/series-da964407.js +1 -0
- package/esm/series-v2-81d8a4aa.js +1 -0
- package/esm/series-v2-fc5d9e55.js +1 -0
- package/esm/settings-icon-a764910e.js +1 -0
- package/esm/skin-1f169372.js +1 -0
- package/esm/skin-4db1b116.js +1 -0
- package/esm/skin-67e10184.js +1 -0
- package/esm/skin-8079b737.js +1 -0
- package/esm/skin-87cf4c44.js +1 -0
- package/esm/skin-ba596a62.js +1 -0
- package/esm/skin-df850373.js +1 -0
- package/esm/{util-1b598a26.js → util-15b06c48.js} +1 -1
- package/esm/videoSelector-378774f6.js +1 -0
- package/esm/videoSelector-e272bb60.js +1 -0
- package/esm/videojs_contrib_dash-848c7068.js +1 -0
- package/package.json +1 -1
- package/cjs/autoNextVideo-5c61b9cb.js +0 -1
- package/cjs/browser-2df57579.js +0 -1
- package/cjs/caption-settings-e95cca56.js +0 -1
- package/cjs/captions-d160e397.js +0 -1
- package/cjs/features-5dabcea5.js +0 -1
- package/cjs/generic-294ac08e.js +0 -1
- package/cjs/icons-9e9e6364.js +0 -1
- package/cjs/index-9210aba0.js +0 -1
- package/cjs/index-991b30f4.js +0 -1
- package/cjs/keyboardShortcuts-b1e158f8.js +0 -1
- package/cjs/multicamv2-141480c4.js +0 -1
- package/cjs/multicamv2-41f9696b.js +0 -1
- package/cjs/nextEpisodeButton-d938133c.js +0 -1
- package/cjs/playlist-350baa1e.js +0 -1
- package/cjs/renditions-24aeeea9.js +0 -1
- package/cjs/resolution-27153a3f.js +0 -1
- package/cjs/series-bb8a15e4.js +0 -1
- package/cjs/series-v2-6e8cbcda.js +0 -1
- package/cjs/series-v2-8756ac9e.js +0 -1
- package/cjs/settings-icon-9b3d3788.js +0 -1
- package/cjs/skin-09425927.js +0 -1
- package/cjs/skin-99eb3c31.js +0 -1
- package/cjs/skin-a4eabf7a.js +0 -1
- package/cjs/skin-b28fa2ec.js +0 -1
- package/cjs/skin-c45387ad.js +0 -1
- package/cjs/skin-c81d6add.js +0 -1
- package/cjs/skin-eac0a0fb.js +0 -1
- package/cjs/videoSelector-2c94e849.js +0 -1
- package/cjs/videoSelector-d97ab3f8.js +0 -1
- package/esm/autoNextVideo-56f70964.js +0 -1
- package/esm/browser-000da9e7.js +0 -1
- package/esm/caption-settings-088e70f5.js +0 -1
- package/esm/captions-2bcc449f.js +0 -1
- package/esm/features-84286390.js +0 -1
- package/esm/generic-979547e7.js +0 -1
- package/esm/icons-68d3a609.js +0 -1
- package/esm/index-0c0f2cb0.js +0 -1
- package/esm/index-9abdfceb.js +0 -1
- package/esm/keyboardShortcuts-6443082f.js +0 -1
- package/esm/multicamv2-10e8f652.js +0 -1
- package/esm/multicamv2-1dbc6fd3.js +0 -1
- package/esm/nextEpisodeButton-518b5e22.js +0 -1
- package/esm/playlist-603ebd69.js +0 -1
- package/esm/renditions-7f946d48.js +0 -1
- package/esm/resolution-de9dd282.js +0 -1
- package/esm/series-81680634.js +0 -1
- package/esm/series-v2-a5c6cd10.js +0 -1
- package/esm/series-v2-b59f854c.js +0 -1
- package/esm/settings-icon-cccc4c93.js +0 -1
- package/esm/skin-43755201.js +0 -1
- package/esm/skin-9c36b83f.js +0 -1
- package/esm/skin-b9b4babd.js +0 -1
- package/esm/skin-cc14c02c.js +0 -1
- package/esm/skin-d432bcd8.js +0 -1
- package/esm/skin-e12e8689.js +0 -1
- package/esm/skin-e597a51b.js +0 -1
- package/esm/videoSelector-08019968.js +0 -1
- package/esm/videoSelector-d11c7ff1.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import s from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import i from"video.js";import{P as n}from"./icons-96a83bb5.js";import{G as d,f as a}from"./generic-bd9c636a.js";import{d as l}from"./skin-1f169372.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime/helpers/toConsumableArray";function m(e){var o=p();return function(){var r,i=t(e);if(o){var n=t(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return s(this,r)}}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var c=i.getComponent("Component"),u=function(s){r(d,c);var t=m(d);function d(o){var r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),(r=t.call(this,o,s)).playerId=s.playerId,r.seriesData=s.sres,r.currentVideoData=s.res,r.initialiseStructure(),r.loadCSS(),r}return o(d,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"play-next"}),o=i.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(n(window.controlsColor?window.controlsColor:"white"))});return i.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.js").then((function(e){var o=document.createElement("style");o.id="multicam",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),o=i.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),r=i.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),s=i.dom.createEl("div",{className:"nextep-meta-details next-margin"}),t=i.dom.createEl("div",{className:"next-eps-image"}),n=i.dom.createEl("div",{className:"next-eps-description"});i.dom.appendContent(s,t),i.dom.appendContent(s,n),i.dom.appendContent(o,r),i.dom.appendContent(o,s),this.toggleContentOnHover(e,o),i.dom.appendContent(e,o)}},{key:"toggleContentOnHover",value:function(e,o){e.addEventListener("mouseover",(function(){i.dom.removeClass(o,"nextepisode-hidden")})),o.addEventListener("mouseover",(function(){i.dom.removeClass(o,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){i.dom.addClass(o,"nextepisode-hidden")})),o.addEventListener("mouseout",(function(){i.dom.addClass(o,"nextepisode-hidden")}))}}]),d}(),j=function(e,o){var r=y(e,o.video.gist.id),s=f(e[r],o.video.gist.id),t=v(e[r],s);h(t.nextEp)},y=function(e,o){for(var r=-1,s=0;s<e.length;s++)for(var t=0;t<e[s].episodes.length;t++)if(e[s].episodes[t].id===o){r=s;break}return r},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0;if(!(e&&o>=0))return{prevEp:null,nextEp:null};var r=e.episodes.length,s=o-1>=0?o-1:r-1,t=(o+1)%r,i=r>1?e.episodes[s]:null,n=r>1?e.episodes[t]:null;return s===t&&(0===s?n=null:i=null),{prevEp:i,nextEp:n,prevEpIdx:s,nextEpIdx:t}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0,r=null;return e?(e.episodes.forEach((function(e,s){e.gist.id===o&&(r=s)})),r):null},h=function(e){var o,r;i.dom.$(".next-eps"),i.dom.$(".play-next").onclick=function(){var o;d("my-player",null==e||null===(o=e.gist)||void 0===o?void 0:o.id).then((function(e){a(e.response)}))};var s=i.dom.$(".next-eps-image"),t=l("<img src=".concat(null==e||null===(o=e.gist)||void 0===o?void 0:o.videoImageUrl," />")),n=null==t?void 0:t.firstChild;null==s||s.append(n);for(var m=i.dom.$(".next-eps-description"),p=l("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(r=e.gist)||void 0===r?void 0:r.description,"</div>"));null!=p&&p.firstChild;)null==m||m.appendChild(p.firstChild)};export{u as default,j as initaliseFunctionality};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/toConsumableArray";import s from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import t from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import l from"video.js";import{E as a,f as n}from"./icons-96a83bb5.js";import{G as d,R as c}from"./generic-bd9c636a.js";import{a as m}from"./autoNextVideo-91174189.js";import{e as p,g as u}from"./skin-1f169372.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-15b06c48.js";function y(e){var s=j();return function(){var o,t=i(e);if(s){var l=i(this).constructor;o=Reflect.construct(t,arguments,l)}else o=t.apply(this,arguments);return r(this,o)}}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j=function(){return!!e})()}var v=l.getComponent("Component"),h=function(r){t(j,v);var i=y(j);function j(e){var o,t,r,l,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,j),(l=i.call(this,e,a)).playerId=a.playerId,l.seriesData=a.sres,l.videos=null==a||null===(o=a.playlist)||void 0===o?void 0:o.content,l.cb=(null==a||null===(t=a.playlist)||void 0===t?void 0:t.cb)||null,l.autoNext=(null==a||null===(r=a.playlist)||void 0===r?void 0:r.autoNext)||!1,l.currentVideoData=a.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&m({playerId:l.playerId,content:l.videos,cb:l.cb}),l}return o(j,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var s=l.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(a())});return l.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.js").then((function(e){var s=document.createElement("style");s.id="playlist-selection",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),s=l.dom.createEl("div",{className:"selection-container hidden"});l.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var o;null!==(o=s.classList)&&void 0!==o&&o.contains("hidden")?(p(),s.classList.remove("hidden"),e.classList.add("open"),s.style.right="0px"):(s.classList.add("hidden"),e.classList.remove("open"),s.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(t,"px"),l.dom.appendContent(e,s),o.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(s){var o=this,t=this.el(),r=l.dom.createEl("div",{className:"playlist-selector-head"}),i=l.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(n())});i.onclick=function(){s.classList.add("hidden"),t.classList.remove("open"),s.style.right="-350px"};for(var a=l.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),m=l.dom.createEl("div",{className:"playlist-selector-content"}),p=function(s){var t,r,i=l.dom.createEl("div",{className:"playlist-container"}),a=l.dom.createEl("div",{className:"playlist-section",index:s}),n=l.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(t=o.videos[s])||void 0===t?void 0:t.title)||"")}),p=l.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(o.videos[s].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});l.dom.appendContent(a,n),l.dom.appendContent(a,p),l.dom.appendContent(i,a),l.dom.appendContent(m,i);var u=l.dom.createEl("div",{className:"playlist-section-expanded hidden"}),y=l.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(r=o.videos[s])||void 0===r?void 0:r.description)||"")}),j=l.dom.createEl("div",{className:"playlist-image"});j.style.backgroundImage="url(".concat(o.videos[s].img,")"),l.dom.appendContent(u,j),l.dom.appendContent(u,y),l.dom.appendContent(i,u),l.dom.appendContent(m,i),u.onclick=function(e){e.stopPropagation(),c(s+1),d(o.playerId,o.videos[s].id).then((function(e){null!=o&&o.cb&&o.cb(e)})).catch((function(e){null!=o&&o.cb&&o.cb(e)}))},a.onclick=function(s){var o,t,r,l=document.getElementsByClassName("playlist-selector-content")[0].childNodes,a=(l=e(l))[s.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=a&&null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(i.style.backgroundColor="#0000007d",null==a||null===(t=a.classList)||void 0===t||t.remove("hidden")):(null==a||null===(r=a.classList)||void 0===r||r.add("hidden"),i.style.backgroundColor="unset")}},y=0;y<this.videos.length;y++)p(y);l.dom.appendContent(r,i),l.dom.appendContent(r,a),l.dom.appendContent(s,r),l.dom.appendContent(s,m),u(this.playerId).on("fullscreenchange",(function(){var e=document.getElementById(o.playerId);if(e){var t=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(t,"px")}}))}}]),j}();export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.array.sort.js";import{g as l}from"./skin-1f169372.js";var i=function(i){var n,o=l(i),t=[];if((null==o||null===(n=o.tech_)||void 0===n?void 0:n.vhs)||!1){var e,d,r=null==o||null===(e=o.tech_)||void 0===e||null===(d=e.vhs)||void 0===d?void 0:d.representations();(null==r?void 0:r.length)>0&&(t=null==r?void 0:r.sort((function(l,i){return(null==l?void 0:l.height)==(null==i?void 0:i.height)?(null==i?void 0:i.bandwidth)-(null==l?void 0:l.bandwidth):(null==i?void 0:i.height)-(null==l?void 0:l.height)})))}else{var u,v,h=null==o||null===(u=o.dash)||void 0===u||null===(v=u.mediaPlayer)||void 0===v?void 0:v.getBitrateInfoListFor("video");(null==h?void 0:h.length)>0&&(t=null==h?void 0:h.sort((function(l,i){return i.height-l.height})))}return t};export{i as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import i from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import d from"@babel/runtime/helpers/getPrototypeOf";import s from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/web.dom-collections.for-each.js";import l from"video.js";import{g as r,p as c}from"./skin-1f169372.js";import{d as u}from"./browser-4d7cb620.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.regexp.exec.js";function m(e){var t=h();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return a(this,n)}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=l.getComponent("Component"),v=function(a){i(r,p);var d=m(r);function r(n){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,r),i=d.call(this,n,a),s(o(i),"masterRenditions",[]),s(o(i),"addCustomFont",(function(e){var t=l.dom.createEl("div",{className:"font hideCustomFonts"}),n=l.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});l.dom.appendContent(t,n);var o=l.dom.createEl("div",{className:"font-options"});o.style.fontSize="12px",i.fontSizeOptions.map((function(e,t){var n=l.dom.createEl("div",{className:"options",innerHTML:'<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=').concat(e,' name="item" />\n <label class="radio-btn-lable" for=').concat(e,">").concat(e,"pt</label>\n </div>")});n.addEventListener("click",(function(e){var t=e.target.id;i.changeFontSize(t)})),l.dom.appendContent(o,n)})),l.dom.appendContent(t,o),l.dom.appendContent(e,t)})),s(o(i),"resetRenditions",(function(){e(document.getElementsByClassName("rendition")).map((function(e){l.dom.removeClass(e,"selected")}))})),i.playerId=null==a?void 0:a.playerId,i.skin=null==a?void 0:a.skin,i.icon=null==a?void 0:a.icon,i.masterRenditions=[],i.fontSizeOptions=[10,12,14],i.createRenditions(a.renditions),window.height=null,i}return n(r,[{key:"toggleContentOnHover",value:function(e,t){var n=l.dom.$(".setting-icon",e);n.addEventListener("mouseover",(function(){l.dom.removeClass(t,"resolution_hidden")})),t.addEventListener("mouseover",(function(){l.dom.removeClass(t,"resolution_hidden")})),n.addEventListener("mouseout",(function(){l.dom.addClass(t,"resolution_hidden")})),t.addEventListener("mouseout",(function(){l.dom.addClass(t,"resolution_hidden")}))}},{key:"changeFontSize",value:function(e){var t=l.dom.$(".renditions",this.contentEl()),n=l.dom.$(".font-options",this.contentEl());t.style.fontSize="".concat(e,"px"),n.style.fontSize="".concat(e,"px")}},{key:"createRenditions",value:function(e){var t=this,n=this.el(),o=l.dom.$(".setting-icon",this.el()),i=c(this.icon);if(o.append(i),"live"===this.skin){var a=document.createTextNode(" Settings");o.appendChild(a)}var d=l.dom.createEl("div",{className:"content resolution_hidden"}),s=l.dom.createEl("div",{innerHTML:"Quality",className:"title"}),r=l.dom.createEl("div",{className:"resolution"});l.dom.appendContent(r,s),this.toggleContentOnHover(n,d);var m=l.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(e.map((function(e,n){var o,i,a=l.dom.createEl("div",{className:"relative"}),d=(((null==e||null===(o=e.playlist)||void 0===o?void 0:o.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes.BANDWIDTH))/1048576).toFixed(1),s="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");s="".concat(e.height,"p @ ").concat(d,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");var r=l.dom.createEl("p",{innerHTML:s,className:"rendition",res:e.height,bandwidth:e.bandwidth});l.dom.appendContent(a,r),l.dom.appendContent(m,a),r.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,g(t.playerId,e.target),l.dom.addClass(r,"selected"))}))})),this.addAutoRendition("nondrm",m),"Safari"!=u()&&this.addDynamicSwitchIfAuto()):(e.map((function(e,n){var o=l.dom.createEl("div",{className:"relative"}),i=(e.bitrate/1e6).toFixed(1),a="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");window.enableResolutionsBitrate&&(a="".concat(e.height,"p @ ").concat(i,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":""));var d=l.dom.createEl("p",{innerHTML:a,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});l.dom.appendContent(o,d),l.dom.appendContent(m,o),d.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.selectedVideo=e.target.video,window.qualityIndex=e.target.qualityIndex,g(t.playerId,e.target),l.dom.addClass(d,"selected"))}))})),this.addAutoRendition("drm",m)),l.dom.appendContent(r,m),l.dom.appendContent(d,r),l.dom.appendContent(n,d)}},{key:"addDynamicSwitchIfAuto",value:function(){for(var e,t=this.player_.textTracks(),n=0;n<t.length;n++)"segment-metadata"===t[n].label&&(e=t[n]);var o=null;e&&e.on("cuechange",(function(){var t,n,i=e.activeCues[0];if(console.log((null==i||null===(t=i.value)||void 0===t||null===(n=t.resolution)||void 0===n?void 0:n.height)+"p"),i&&document.querySelector(".auto.selected")){var a,d,s,l,r,c,u,m;if(null!=i&&null!==(a=i.value)&&void 0!==a&&null!==(d=a.resolution)&&void 0!==d&&d.height&&o!==(null==i||null===(s=i.value)||void 0===s||null===(l=s.resolution)||void 0===l?void 0:l.height))document.querySelector(".auto.selected").textContent="Auto ".concat(null==i||null===(u=i.value)||void 0===u||null===(m=u.resolution)||void 0===m?void 0:m.height,"p");o=null==i||null===(r=i.value)||void 0===r||null===(c=r.resolution)||void 0===c?void 0:c.height}}))}},{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"container"}),t=l.dom.createEl("div",{className:"setting-icon"});return l.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var o,i,a,d,s=null===(o=this.player_)||void 0===o||null===(i=o.tech_)||void 0===i?void 0:i.vhs.selectPlaylist().attributes.RESOLUTION.height,r=null===(a=this.player_)||void 0===a||null===(d=a.tech_)||void 0===d?void 0:d.vhs.selectPlaylist().attributes.BANDWIDTH,c=l.dom.createEl("div",{className:"relative"}),u=l.dom.createEl("p",{innerHTML:"Auto ".concat(s,"p"),className:"rendition auto selected",bandwidth:r,res:s});u.addEventListener("click",(function(e){window.height!==e.target.res&&(n.resetRenditions(),l.dom.addClass(u,"selected"),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,g(n.playerId,null,!0))})),l.dom.appendContent(c,u),l.dom.appendContent(t,c)}else{var m=l.dom.createEl("div",{className:"relative"}),h=l.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});h.addEventListener("click",(function(e){n.resetRenditions(),l.dom.addClass(h,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,g(n.playerId,null,!0)})),l.dom.appendContent(m,h),l.dom.appendContent(t,m)}}}]),r}(),g=function(e,t,n){var o,i=r(e),a=null==t?void 0:t.bandwidth;if((null==i||null===(o=i.tech_)||void 0===o?void 0:o.vhs)||!1){i.tech_.vhs.representations().forEach((function(e){n||e.bandwidth===a?e.enabled(!0):e.enabled(!1)})),i.handleTechPlaying_();var d=i.currentTime();i.currentTime(0),setTimeout((function(){i.currentTime(d)}),100);var s=l.dom.$(".content");s&&l.dom.addClass(s,"resolution_hidden")}else{var c=null==t?void 0:t.qualityIndex;if(n){var u,m;null==i||null===(u=i.dash)||void 0===u||null===(m=u.mediaPlayer)||void 0===m||m.resetSettings()}else{var h,p,v,g;null==i||null===(h=i.dash)||void 0===h||null===(p=h.mediaPlayer)||void 0===p||p.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==i||null===(v=i.dash)||void 0===v||null===(g=v.mediaPlayer)||void 0===g||g.setQualityFor("video",c,!0);var f=i.currentTime();i.currentTime(0),setTimeout((function(){i.currentTime(f)}),100);var w=l.dom.$(".content");w&&l.dom.addClass(w,"resolution_hidden")}}};export{v as default,g as playSelectedResolution};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/classCallCheck";import r from"@babel/runtime/helpers/createClass";import t from"@babel/runtime/helpers/assertThisInitialized";import o from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import n from"@babel/runtime/helpers/defineProperty";import d from"@babel/runtime/regenerator";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.map.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import c from"video.js";import{T as l,D as m,G as p,f as u,C as j}from"./generic-bd9c636a.js";import{E as v}from"./icons-96a83bb5.js";import{d as y}from"./skin-1f169372.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"core-js/modules/es.array.filter.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime/helpers/toConsumableArray";var f=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function h(e){var s=g();return function(){var r,t=a(e);if(s){var o=a(this).constructor;r=Reflect.construct(t,arguments,o)}else r=t.apply(this,arguments);return i(this,r)}}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}var b,w=c.getComponent("Component"),C=function(e){o(a,w);var i=h(a);function a(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,a),r=i.call(this,e,o),n(t(r),"seriesData",[]),r.seriesData=o.seriesData,b=o.playerId;var d=r.el();return k(d,r.seriesData),r.loadCSS(),r}return r(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 s=document.createElement("style");s.id="series",s.append("".concat(e.default)),document.head.appendChild(s)}))}}]),a}();function L(){return(L=e(d.mark((function e(s,r,t,o){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m(b),f(b),p(b,r).then((function(e){u(e.response),j(b)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e,s,r,t){var o=document.getElementById("season-list"),i=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var n=e.episodes.map((function(e,s){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(s+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 d=y(n);null!=d&&d.firstChild;)a.appendChild(d.firstChild);!function(e){l(e).then((function(e){var s=e.data,r=document.querySelectorAll("#progress-div");r&&s.map((function(e,s){e&&e.watchedPercentage&&r[s]&&(r[s].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(t),o.classList.toggle("hide-container"),i.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),m=document.querySelectorAll("#episode-title"),p=document.querySelectorAll(".meta-details"),u=document.querySelector("#episodes-back-btn"),j=e.id,v=e.episodes;u.addEventListener("click",(function(){return function(e,s){e.classList.remove("hide-container"),s.classList.add("hide-container")}(o,i)}));for(var f=function(s){c[s].addEventListener("click",(function(){return function(e,s,r){var t=s.querySelector(".meta-details");s.classList.toggle("episode-active"),t.classList.toggle("metadetails-active"),r.forEach((function(s,t){t!==e&&(r[t].classList.remove("episode-active"),r[t].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(s,m[s],m)})),p[s].addEventListener("click",(function(){return function(e,s,r,t){return L.apply(this,arguments)}(s,v[s].id,r,m)})),e.episodes[s].id==j&&m[s].classList.add("highlight-active-eps")},h=0;h<c.length;h++)f(h)}function k(e,s){for(var r='<div class="hover-div"></div>\n '.concat(v(),'\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,s){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("")}(s),'\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 t=y(r);null!=t&&t.firstChild;)e.appendChild(t.firstChild)}export{k as customSeasonList,x as handleSeasonChange,C as seriesModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/toConsumableArray";import s from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/assertThisInitialized";import t from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import"core-js/modules/es.array.map.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import l from"video.js";import{e as n,f as d,B as c}from"./icons-96a83bb5.js";import{j as m,U as p,V as u,b as v,y as j,G as y}from"./generic-bd9c636a.js";import{e as h,s as f,p as g,j as b,g as C,i as N}from"./skin-1f169372.js";import{a as E}from"./autoNextVideo-91174189.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-15b06c48.js";function k(e){var s=x();return function(){var o,r=a(e);if(s){var t=a(this).constructor;o=Reflect.construct(r,arguments,t)}else o=r.apply(this,arguments);return i(this,o)}}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}var S=l.getComponent("Component"),L=function(i){t(x,S);var a=k(x);function x(o){var t,i,l,n,d,c,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,x),(c=a.call(this,o,v)).playerId=v.playerId,c.seriesData=v.sres,c.videos=null==v||null===(t=v.sres)||void 0===t?void 0:t.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===(l=v.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),c.watchMap=m(),null!==(n=r(c))&&void 0!==n&&n.autoPlayNext&&null!=v&&null!==(d=v.series)&&void 0!==d&&d.enable){var j,y,h,f,g=null==v||null===(j=v.sres)||void 0===j?void 0:j.seasons,b=[];g.map((function(s){b.push.apply(b,e(s.episodes))})),p(b),u(null===(y=c.options_)||void 0===y||null===(h=y.res)||void 0===h||null===(f=h.video)||void 0===f?void 0:f.id),E({playerId:c.playerId,content:b,cb:c.cb,series:null==v?void 0:v.sres})}return c}return o(x,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=l.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(n())});return l.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.js").then((function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(h(),e.classList.remove("hidden"),o.classList.add("open"),f(this.playerId,e)):(e.classList.add("hidden"),o.classList.remove("open"))}},{key:"initialiseStructure",value:function(){var e=this,s=this.el(),o=l.dom.createEl("div",{className:"series-selection-container hidden"});l.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var r=document.getElementById(this.playerId);if(r){var t=window.getComputedStyle(r,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(t,"px"),l.dom.appendContent(s,o),r.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),r=l.dom.createEl("div",{className:"series-selector-head"}),t=l.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(d())});t.onclick=function(){if("series-selector-cross-icon"===t.className)e.classList.add("hidden"),o.classList.remove("open");else if("series-selector-back-icon"===t.className){var r=l.dom.$(".series-selector-content",s.el());for(l.dom.$(".series-selector-cross-icon",s.el()),t.className="series-selector-cross-icon";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var i=s.createSeasonLister();for(l.dom.appendContent(r,i),l.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var a=g(d());t.appendChild(a)}};var i=l.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),a=l.dom.createEl("div",{className:"series-selector-content"}),n=this.createSeasonLister();l.dom.appendContent(a,n),l.dom.appendContent(r,t),l.dom.appendContent(r,i),l.dom.appendContent(e,r),l.dom.appendContent(e,a),b(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;C(this.playerId);for(var s=v(),o=l.dom.createEl("div",{className:"season-container"}),r=function(r){var t,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(r));var a=document.createElement("div");a.className="season - ".concat(r),a.textContent=null===(t=s[r])||void 0===t?void 0:t.title;var n=l.dom.createEl("input",{className:"radio - ".concat(r),id:"season-".concat(r),name:"season-radio"});n.setAttribute("type","radio"),e.selectedSeason==r&&(n.checked=!0),n.onclick=function(s){j.set(r),e.showSeasonDetails(r)},l.dom.appendContent(i,n),l.dom.appendContent(i,a),l.dom.appendContent(o,i)},t=0;t<s.length;t++)r(t);return o}},{key:"getSeasonDetailsContainer",value:function(s,o){var r=this;s=s.map((function(e){var s,o,t,i,a,l,n,d,c;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:(null==e||null===(o=e.gist)||void 0===o||null===(t=o.imageGist)||void 0===t?void 0:t.r16x9)||(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(l=a.appcmsMain)||void 0===l||null===(n=l.images)||void 0===n?void 0:n.placeholderCover),watchedPercentage:(null==r||null===(d=r.watchMap)||void 0===d||null===(c=d.get(null==e?void 0:e.id))||void 0===c?void 0:c.p)||0}}));for(var t=function(t){var i,a,n,d,c,m=l.dom.createEl("div",{className:"series-container"}),p=l.dom.createEl("div",{className:"series-section-data",index:t,innerHTML:"".concat((null===(i=s[t])||void 0===i?void 0:i.title)||"")});l.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(a=s[t])||void 0===a?void 0:a.title)||"")}),l.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(s[t].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var v=l.dom.createEl("div",{className:"series-section-image"}),j=(null===(n=s[t])||void 0===n?void 0:n.description)||"";(null===(d=j)||void 0===d?void 0:d.length)>170&&(j=j.substr(0,170)+"..."),l.dom.createEl("div",{className:"series-description",innerHTML:"".concat(j||"")});var h=l.dom.createEl("img",{className:"series-image"});h.src="".concat(N(null===(c=s[t])||void 0===c?void 0:c.img)),h.alt="Episode ".concat(t+1),l.dom.appendContent(v,h),l.dom.appendContent(m,v),l.dom.appendContent(m,p),l.dom.appendContent(o,m),m.onclick=function(e){var o;e.stopPropagation(),u(null===(o=s[t])||void 0===o?void 0:o.id),y(r.playerId,s[t].id).then((function(e){null!=r&&r.cb&&r.cb(e)})).catch((function(e){null!=r&&r.cb&&r.cb(e)}))},p.onclick=function(s){var o,r,t,i=document.getElementsByClassName("series-selector-content")[0].childNodes,a=(i=e(i))[s.target.index].getElementsByClassName("series-section-expanded")[0];null!=a&&null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(m.style.backgroundColor="#0000007d",null==a||null===(r=a.classList)||void 0===r||r.remove("hidden")):(null==a||null===(t=a.classList)||void 0===t||t.add("hidden"),m.style.backgroundColor="unset")}},i=0;i<s.length;i++)t(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=l.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=v()[e].episodes;this.getSeasonDetailsContainer(o,s);var r=l.dom.$(".series-selector-cross-icon",this.el());for(r.className="series-selector-back-icon";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var t=g(c());r.appendChild(t),l.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),x}();export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/toConsumableArray";import s from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import t from"@babel/runtime/helpers/assertThisInitialized";import r from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import"core-js/modules/es.array.map.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import a from"video.js";import{E as l,f as d,B as c}from"./icons-96a83bb5.js";import{j as m,U as p,V as u,b as v,y as j,G as y}from"./generic-bd9c636a.js";import{e as h,p as f,g}from"./skin-1f169372.js";import{a as b}from"./autoNextVideo-91174189.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-15b06c48.js";function C(e){var s=N();return function(){var o,t=n(e);if(s){var r=n(this).constructor;o=Reflect.construct(t,arguments,r)}else o=t.apply(this,arguments);return i(this,o)}}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}var x=a.getComponent("Component"),E=function(i){r(N,x);var n=C(N);function N(o){var r,i,a,l,d,c,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,N),(c=n.call(this,o,v)).playerId=v.playerId,c.seriesData=v.sres,c.videos=null==v||null===(r=v.sres)||void 0===r?void 0:r.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=m(),null!==(l=t(c))&&void 0!==l&&l.autoPlayNext&&null!=v&&null!==(d=v.series)&&void 0!==d&&d.enable){var j,y,h,f,g=null==v||null===(j=v.sres)||void 0===j?void 0:j.seasons,C=[];g.map((function(s){C.push.apply(C,e(s.episodes))})),p(C),u(null===(y=c.options_)||void 0===y||null===(h=y.res)||void 0===h||null===(f=h.video)||void 0===f?void 0:f.id),b({playerId:c.playerId,content:C,cb:c.cb,series:null==v?void 0:v.sres})}return c}return o(N,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=a.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(l())});return a.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then((function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.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,s=this.el(),o=a.dom.createEl("div",{className:"series-selection-container hidden"});a.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(r,"px"),a.dom.appendContent(s,o),t.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),t=a.dom.createEl("div",{className:"series-selector-head"}),r=a.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(d())});r.onclick=function(){if("series-selector-cross-icon"===r.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===r.className){var t=a.dom.$(".series-selector-content",s.el());for(a.dom.$(".series-selector-cross-icon",s.el()),r.className="series-selector-cross-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var i=s.createSeasonLister();for(a.dom.appendContent(t,i),a.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var n=f(d());r.appendChild(n)}};var i=a.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),n=a.dom.createEl("div",{className:"series-selector-content"}),l=this.createSeasonLister();a.dom.appendContent(n,l),a.dom.appendContent(t,r),a.dom.appendContent(t,i),a.dom.appendContent(e,t),a.dom.appendContent(e,n),g(this.playerId).on("fullscreenchange",(function(){var o=document.getElementById(s.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(t,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;g(this.playerId);for(var s=v(),o=a.dom.createEl("div",{className:"season-container"}),t=function(t){var r,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(t));var n=document.createElement("div");n.className="season - ".concat(t),n.textContent=null===(r=s[t])||void 0===r?void 0:r.title;var l=a.dom.createEl("input",{className:"radio - ".concat(t),id:"season-".concat(t),name:"season-radio"});l.setAttribute("type","radio"),e.selectedSeason==t&&(l.checked=!0),l.onclick=function(s){j.set(t),e.showSeasonDetails(t)},a.dom.appendContent(i,l),a.dom.appendContent(i,n),a.dom.appendContent(o,i)},r=0;r<s.length;r++)t(r);return o}},{key:"getSeasonDetailsContainer",value:function(s,o){var t=this;s=s.map((function(e){var s,o,r,i,n;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:null==e||null===(o=e.gist)||void 0===o||null===(r=o.imageGist)||void 0===r?void 0:r.r16x9,watchedPercentage:(null==t||null===(i=t.watchMap)||void 0===i||null===(n=i.get(null==e?void 0:e.id))||void 0===n?void 0:n.p)||0}}));for(var r=function(r){var i,n,l,d,c,m,p,v=a.dom.createEl("div",{className:"series-container"}),j=a.dom.createEl("div",{className:"series-section",index:r}),h=a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=s[r])||void 0===i?void 0:i.title)||"")}),f=a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(s[r].watchedPercentage,"%' class='series-progress-bar-value'></div>")});a.dom.appendContent(j,h),a.dom.appendContent(j,f),a.dom.appendContent(v,j),a.dom.appendContent(o,v);var g=a.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(n=s[r])||void 0===n?void 0:n.description)||"";(null===(l=b)||void 0===l?void 0:l.length)>170&&(b=b.substr(0,170)+"...");var C=a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),N=a.dom.createEl("img",{className:"series-image"});N.src="".concat((null===(d=s[r])||void 0===d?void 0:d.img)||(null===(c=window)||void 0===c||null===(m=c.customData)||void 0===m?void 0:m.fallbackImage)),N.alt="".concat(null===(p=s[r])||void 0===p?void 0:p.title),a.dom.appendContent(g,N),a.dom.appendContent(g,C),a.dom.appendContent(v,g),a.dom.appendContent(o,v),g.onclick=function(e){var o;e.stopPropagation(),u(null===(o=s[r])||void 0===o?void 0:o.id),y(t.playerId,s[r].id).then((function(e){null!=t&&t.cb&&t.cb(e)})).catch((function(e){null!=t&&t.cb&&t.cb(e)}))},j.onclick=function(s){var o,t,r,i=document.getElementsByClassName("series-selector-content")[0].childNodes,n=(i=e(i))[s.target.index].getElementsByClassName("series-section-expanded")[0];null!=n&&null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(v.style.backgroundColor="#0000007d",null==n||null===(t=n.classList)||void 0===t||t.remove("hidden")):(null==n||null===(r=n.classList)||void 0===r||r.add("hidden"),v.style.backgroundColor="unset")}},i=0;i<s.length;i++)r(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=a.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=v()[e].episodes;this.getSeasonDetailsContainer(o,s);var t=a.dom.$(".series-selector-cross-icon",this.el());for(t.className="series-selector-back-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=f(c());t.appendChild(r),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),N}();export{E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import a 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"core-js/modules/es.array.iterator.js";import"core-js/modules/es.map.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.array.sort.js";import"core-js/modules/es.array.concat.js";import r from"video.js";import{g as l,f as s,T as d}from"./icons-96a83bb5.js";import{e as c,s as u,f as m,j as p,g as h,d as v,p as f}from"./skin-1f169372.js";import{g}from"./renditions-b770df31.js";import{playSelectedResolution as y}from"./resolution-33a5dc11.js";import{g as b}from"./localisation-0bf399a1.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.number.to-fixed.js";import"./browser-4d7cb620.js";import"core-js/modules/es.regexp.exec.js";function j(e){var t=C();return function(){var a,o=i(e);if(t){var r=i(this).constructor;a=Reflect.construct(o,arguments,r)}else a=o.apply(this,arguments);return n(this,a)}}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var E=r.getComponent("Component"),N=function(n){o(C,E);var i=j(C);function C(e){var a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,C),(a=i.call(this,e,o)).playerId=o.playerId,a.seriesData=o.sres,a.currentVideoData=o.res,a.initialiseStructure(),a.loadCSS(),a.resolutionBitrateMap,a}return a(C,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new Map,e.forEach((function(e){var a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(a){var o=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(a,o||1/0))}}))}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),o=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!o)&&a>o}},{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(l())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./settings-icon-1fbc99bc.js").then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=r.dom.createEl("div",{className:"selection-container hidden"});r.dom.$(".settings-selector-icon",this.el()).onclick=function(){var o;null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(c(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",u(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(n),r.dom.appendContent(t,a),o.style.overflow="hidden",this.addFunctionality(a),m(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=r.dom.createEl("div",{className:"settings-selector-head"}),o=r.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(s())});o.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var n=r.dom.createEl("div",{className:"settings-selector-title",innerHTML:b("settingsTitle")||"Settings"}),i=r.dom.createEl("div",{className:"settings-selector-content"}),l=r.dom.createEl("div",{className:"settings-container"}),d=this.createVideoQualityContainer();r.dom.appendContent(l,d);var c=this.createAudioQualityContainer();r.dom.appendContent(l,c),r.dom.appendContent(a,o),r.dom.appendContent(a,n),r.dom.appendContent(e,a),r.dom.appendContent(e,i),r.dom.appendContent(i,l),p(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=h(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=r.dom.createEl("div",{className:"audio-language-container"}),o=r.dom.createEl("div",{className:"audio-language-container-title",innerHTML:b("audioLanguageText")||"Audio Language"});r.dom.appendContent(a,o);for(var n=function(e){var o,n=document.createElement("label");n.className="audio-language-holder",n.setAttribute("for","language-radio-".concat(e));var i=document.createElement("div");i.className="audio - ".concat(e),i.textContent=null==t||null===(o=t[e])||void 0===o?void 0:o.label;var l=r.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});l.setAttribute("type","radio"),1==t[e].enabled&&(l.checked=!0),l.onchange=function(a){t.map((function(e){e.enabled=!1})),t[e].enabled=!0},r.dom.appendContent(n,l),r.dom.appendContent(n,i),r.dom.appendContent(a,n)},i=0;i<t.length;i++)n(i);return a}}},{key:"createVideoQualityContainer",value:function(){var t=this,a=r.dom.createEl("div",{className:"video-quality-container"}),o=r.dom.createEl("div",{className:"video-quality-container-title",innerHTML:b("videoQualityText")||"Video Quality"});r.dom.appendContent(a,o);var n=[].concat(e(g(this.playerId)),[{height:"Auto"}]).sort((function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)}));this.fillResolutionBitrateMap(n),y(this.playerId,"raw",!0);for(var i=function(e){var o,i,l,s=document.createElement("label"),c=document.createElement("div"),u=document.createElement("div");u.className="video-quality-bitrate-label",c.className="video-quality-holder",s.className="video-quality-label-container",s.setAttribute("for","quality".concat(e));var m=document.createElement("div");m.className="video-quality - ".concat(e);var p=(null==n||null===(o=n[e])||void 0===o?void 0:o.height)+"".concat("Auto"==(null==n||null===(i=n[e])||void 0===i?void 0:i.height)?"":"p"),h=document.createTextNode(p),g="".concat(t.isEnhancedBitrate(n[e])?b("enhancedBitrateLabel")||"Enhanced Bitrate":""),j=document.createTextNode(g);if(u.appendChild(j),m.appendChild(h),(null==n||null===(l=n[e])||void 0===l?void 0:l.height)>=720)for(var C=v("<span class='hd-rendition'> HD </span>");null!=C&&C.firstChild;)m.appendChild(C.firstChild);var E=r.dom.createEl("input",{className:"radio - ".concat(e," radio-btn"),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(n[e]),checked:"".concat(e==n.length-1)});E.setAttribute("type","radio"),E.onchange=function(a){var o=n[e];"true"=="".concat("Auto"==n[e].height)?y(t.playerId,o,!0):y(t.playerId,o)};var N=document.createElement("span");N.className=g?"check-mark center":"check-mark";var k=f(d());N.appendChild(k),c.appendChild(E),c.appendChild(N),c.appendChild(m),r.dom.appendContent(s,c),s.appendChild(u),r.dom.appendContent(a,s)},l=0;l<n.length;l++)i(l);return a}}]),C}();export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.string.includes.js";import n from"video.js";var t=function(e){return!!n.getPlayer("".concat(e))&&n.getPlayer("".concat(e))},i=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE"],o=function(e){return!i.includes(e)},r=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},l=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},a=function(e){return l(e)},u=function(n,i){if(i){var o,r,l=t(i);if(l&&"function"==typeof l.el&&null!=l&&null!==(o=l.el())&&void 0!==o&&null!==(r=o.classList)&&void 0!==r&&r.contains("skin_defaultv2"))return void d(n)}var a=e(document.querySelectorAll("[video-idx]"));console.log(a),a.map((function(e){var t=e.parentNode,i=e.getAttribute("video-idx");t.style.background=i==n?"gray":"none"}))},d=function(n){e(document.querySelectorAll("[video-idx]")).map((function(e){var t=e.getAttribute("video-idx");e.style.border=t==n?"2px solid white":"none"}))},s=function(){var n=e(document.getElementsByClassName("vjs-control vjs-button open"));null==n||n.map((function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()}))},c=function(e){return e&&!e.includes("?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},m="",v=function(e,n){var t,i=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",i=document.getElementById(e);if(i&&m!==t){var o=window.getComputedStyle(i,null).getPropertyValue("height");n&&(n.style.height="".concat(o)),m=t}}(e,n)};window._orientationChangeHandler=i;window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout((function(){i()}),100)}))},w=function(e,n){var i,o=t(e),r=t(e).el(),l=new ResizeObserver((function(){var t;null!==(t=n.classList)&&void 0!==t&&t.contains("hidden")||(i&&clearTimeout(i),i=setTimeout((function(){f(e,n)}),300))}));l.observe(r),o.on("dispose",(function(){l.disconnect()})),o.on("fullscreenchange",(function(){setTimeout((function(){f(e,n)}),50)}))},f=function(e,n){var t;if(n){var i=document.getElementById(e),o=null===(t=window.getComputedStyle(i,null))||void 0===t?void 0:t.height;n.style.height!==o&&(n.style.height="".concat(o))}},p=function(){window._orientationChangeHandler&&(window.removeEventListener("resize",window._orientationChangeHandler),delete window._orientationChangeHandler),window._multiplayer_dbClickHandler&&(window.removeEventListener("dblclick",window._multiplayer_dbClickHandler),delete window._multiplayer_dbClickHandler),window._multiplayer_dbTapHandler&&(window.removeEventListener("touchend",window._multiplayer_dbTapHandler),delete window._multiplayer_dbTapHandler)};function y(e,n){var t=null,i=null;return function(){for(var o=this,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];i?(clearTimeout(t),t=setTimeout((function(){Date.now()-i>=n&&(e.apply(o,l),i=Date.now())}),n-(Date.now()-i))):(e.apply(this,l),i=Date.now())}}export{o as a,a as b,p as c,r as d,s as e,v as f,t as g,u as h,c as i,w as j,d as k,l as p,f as s,y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,o as r,p as o,q as t}from"./features-af98efe7.js";import{g as s,t as n,p as i}from"./skin-1f169372.js";import{a,i as l,b as d}from"./index-0cc87ab8.js";import{i as c}from"./browser-4d7cb620.js";import"videojs-contrib-quality-menu";import u from"video.js";import{k as m,i as p}from"./keyboardShortcuts-7352ca34.js";import{l as j,S as y,e as v}from"./generic-bd9c636a.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.symbol.iterator.js";import f from"@babel/runtime/helpers/toConsumableArray";import b from"@babel/runtime/helpers/slicedToArray";import h from"@babel/runtime/helpers/defineProperty";import g from"@babel/runtime/helpers/asyncToGenerator";import k from"@babel/runtime/regenerator";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/web.url.js";import"core-js/modules/web.url-search-params.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.array.map.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.map.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.regexp.to-string.js";import{I as S}from"./icons-96a83bb5.js";import"core-js/modules/es.reflect.construct.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-b770df31.js";import"core-js/modules/es.array.sort.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-91174189.js";import"./util-15b06c48.js";import"@babel/runtime/helpers/typeof";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.array.flat.js";import"core-js/modules/es.array.unscopables.flat.js";import"core-js/modules/es.array.join.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.constructor.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.number.to-fixed.js";function w(r,o){var t=s(r);t&&(t.on("loadeddata",(function(){var e,t,n,i,d;!function(e){var r=s(e);r&&(null==r||r.qualityMenu,r.qualityMenu({useResolutionLabels:!0}))}(r),!(null!=o&&null!==(e=o.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(n=t.app_data)&&void 0!==n&&null!==(i=n.appcmsMain)&&void 0!==i&&null!==(d=i.features)&&void 0!==d&&d.auto_play)||null!=o&&o.liveVideo||a(r,o),null!=o&&o.liveVideo||c()||l(r)})),t.one("play",(function(){var o,t,s,n;null!==(o=window)&&void 0!==o&&null!==(t=o.customData)&&void 0!==t&&t.iframeOverlayUrl&&e(r,null===(s=window)||void 0===s||null===(n=s.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}function x(e,r){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,r){if(e){if("string"==typeof e)return C(e,r);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?C(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){o&&(e=o);var t=0,s=function(){};return{s:s,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i=!0,a=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return i=e.done,e},e:function(e){a=!0,n=e},f:function(){try{i||null==o.return||o.return()}finally{if(a)throw n}}}}function C(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=Array(r);o<r;o++)t[o]=e[o];return t}function I(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function O(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?I(Object(o),!0).forEach((function(r){h(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):I(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}function T(){return T=g(k.mark((function e(r,o){var t,a,l,d,c,u,p,v,h,w,C,I,T,E,M,A,B,P,N;return k.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N=function(e,o,t){var n=s(r);Math.floor(n.currentTime());var i,a,l,d,c,u,m,p,j,y,v,f,b,h,g=x(o);try{for(g.s();!(i=g.n()).done;)a=void 0,l=void 0,d=void 0,c=void 0,u=void 0,m=void 0,p=void 0,j=void 0,y=void 0,v=void 0,f=void 0,b=void 0,h=void 0,u=i.value,m=u.eventType,p=u.beaconUrls,j=u.startTimeInSeconds,y=u.startTime,v=u.durationInSeconds,f=Math.round(j),b=p[0],h=(null===(a=window)||void 0===a||null===(l=a.customData)||void 0===l||null===(d=l.ads)||void 0===d?void 0:d.adEventHandler)||null,f!=Math.round(n.currentTime())||P.has(y)||(P.set(y,!0),"function"==typeof h&&h({adsData:{eventType:m,startTimeInSeconds:j,startTime:y,durationInSeconds:v,ad:null==e||null===(c=e.ads)||void 0===c?void 0:c[t],adIndex:t}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",m,"Fired:".concat(Math.round(n.currentTime())),"AD_POD:",e),fetch(b))}catch(e){g.e(e)}finally{g.f()}},B=function(e){var r=Math.floor(e/60),o=Math.floor(e%60);return"".concat(r,":").concat(o.toString().padStart(2,"0"))},M=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,s=x(o.split("&"));try{for(s.s();!(t=s.n()).done;){var n=t.value.split("="),i=b(n,2),a=i[0],l=i[1];r[decodeURIComponent(a)]=decodeURIComponent(l||"")}}catch(e){s.e(e)}finally{s.f()}for(var d={},c=0,u=Object.entries(r);c<u.length;c++){var m=b(u[c],2),p=m[0],j=m[1];if(p.startsWith("ads."))d[p.replace(/^ads\./,"")]=j;else d[p]=j}return d},t=s(r),a=o.replace("dash","session").replace("master","session"),a=y(a,r,{}),l=M(a),a=a.split("?")[0],e.next=10,fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:O({},l)})});case 10:return d=e.sent,e.next=13,d.json();case 13:c=e.sent,u="https://"+new URL(a).hostname,p=c.trackingUrl,v=c.manifestUrl,h=u+p,w=u+v,console.log("%c TRACKING URL","background: #bdf369; color: #000",h),null!=o&&o.includes(".mpd")?(I=(null==t||null===(C=t.currentSource())||void 0===C?void 0:C.keySystemOptions)||null,j(r,{src:w,type:"application/x-mpegURL",keySystemOptions:I})):(E=(null==t||null===(T=t.currentSource())||void 0===T?void 0:T.keySystems)||null,j(r,{src:w,type:"application/x-mpegURL",keySystems:E})),t.one("loadeddata",(function(){A(h)})),A=function(){var e=g(k.mark((function e(o){var t,a,l,d,c,u,p,j,y,v,b,h,g,w,x,C,I;return k.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(o);case 2:return a=e.sent,e.next=5,a.json();case 5:l=e.sent,d=l.avails,c=[],u=s(r),p=u.controlBar.progressControl,j=p.seekBar.el(),d.map((function(e){var r;Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&c.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)})})),c.forEach((function(e){var r=e.markerPositionInSeconds,o=u.duration();if(!(r>o)){var t=r/o*100,s=document.createElement("div");s.className="vjs-seekbar-marker",s.style.left="".concat(t,"%"),s.style.position="absolute",s.style.top="0",s.style.bottom="0",s.style.width="2px",s.style.backgroundColor="#fecc09",s.style.left="".concat(t,"%"),s.style.pointerEvents="none",j.appendChild(s)}})),y=new Map,v=-1,u.on("timeupdate",n((function(){var e=Math.floor(u.currentTime());if(e!==v){v=e;for(var r=!1,o=function(){var o=s[t],n=o.startTimeInSeconds,i=o.durationInSeconds,a=o.ads,l=Math.floor(n+i);if(e>=n&&e<=l){r=!0,y.set(n,!0),m.disable(),p.el().style.visibility="hidden";for(var d=e-n,c=0,u=0,j=0;j<a.length;j++){var v,h=null==a||null===(v=a[j])||void 0===v?void 0:v.durationInSeconds;if(d<c+h){u=j;break}c+=h}var g=a[u],k=d-c,S=Math.max(0,g.durationInSeconds-k),w=Math.round(S);b.style.display="block",C.textContent="".concat(u+1," of ").concat(a.length," • ").concat(B(w));var x=[];return a.forEach((function(e){var r=e.trackingEvents.filter((function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"].includes(e.eventType)}));x.push.apply(x,f(r))})),N(o,x,u),"break"}},t=0,s=c;t<s.length;t++){if("break"===o())break}r||(b.style.display="none",p.el().style.visibility="visible",m.enable())}}),1e3)),u.on("seeked",(function(){for(var e=null,r=0,o=c;r<o.length;r++){var t=o[r],s=null==u?void 0:u.currentTime(),n=t.startTimeInSeconds,i=t.durationInSeconds;s>Math.floor(n+i)&&!y.has(n)&&(e=n,y.set(n,!0))}e&&(u.currentTime(e),console.log("seeking back to",e),e=null)})),(b=document.createElement("div")).className="ssai-ad-container",(h=document.createElement("div")).className="sponsored-adbox",(g=document.createElement("div")).className="sponsored-text",g.textContent="Sponsored Ad",(w=document.createElement("div")).className="ad-info-icon",x=i(S()),w.appendChild(x),h.append(g),h.append(w),(C=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(I=document.createElement("div")).className="ad-visit-advertiser",I.textContent="Visit Advertiser",(null===(t=document.getElementsByClassName("tvProviderImage"))||void 0===t?void 0:t[0])&&(I.style.right="8.6rem"),b.append(h),b.append(C),b.append(I),u.el().appendChild(b);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),P=new Map;case 24:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function E(e,n){s(e).addClass("skin_vlone"),w(e,n),function(e,s){var n,i,a,l,c,u,m=null==s||null===(n=s.res)||void 0===n||null===(i=n.video)||void 0===i?void 0:i.isSSAIEnabled,j=v(null==s?void 0:s.res,e)||{},y=j.src;(null==s||null===(a=s.relatedVideos)||void 0===a||null===(l=a.content)||void 0===l?void 0:l.length)>0&&r(e,null==s?void 0:s.relatedVideos);null!=s&&null!==(c=s.series)&&void 0!==c&&c.enable&&o(e,s);(null==s||null===(u=s.streams)||void 0===u?void 0:u.length)>1&&t(e,null==s?void 0:s.streams);d(e,s),p(e,s),m&&function(e,r){T.apply(this,arguments)}(e,y)}(e,n),M(e,n)}var M=function(e,r){var o,t,n,i,a,l,d,c,m,p,j,y,v=s(e),f=(null==r?void 0:r.theme)||{},b=u.dom.$(".vjs-play-progress"),h=u.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(o=window)||void 0===o||null===(t=o.app_data)||void 0===t||null===(n=t.appcmsMain)||void 0===n||null===(i=n.brand)||void 0===i||null===(a=i.cta)||void 0===a||null===(l=a.primary)||void 0===l?void 0:l.backgroundColor)),b&&(b.style.background="".concat(null===(d=window)||void 0===d||null===(c=d.app_data)||void 0===c||null===(m=c.appcmsMain)||void 0===m||null===(p=m.brand)||void 0===p||null===(j=p.cta)||void 0===j||null===(y=j.primary)||void 0===y?void 0:y.backgroundColor));var g=v.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&b&&(b.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&g&&(g.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&h&&(h.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{E as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{g as e}from"./skin-1f169372.js";import{f as r,n as s}from"./features-af98efe7.js";import{g as o}from"./renditions-b770df31.js";import{r as t}from"./captions-79fcdb9f.js";import"@babel/runtime/helpers/toConsumableArray";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.string.includes.js";import"video.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.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-bd9c636a.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.array.concat.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./localisation-0bf399a1.js";import"core-js/modules/es.array.sort.js";function m(m,i){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(s,m){e(s).on("loadeddata",(function(){var e;(null===(e=o(s))||void 0===e?void 0:e.length)>0&&r(s,m),null!=m&&m.disableCaptions&&t(s)}))}(m,i),function(r,o){var t=e(r);t.controls(!1),s(r)}(m)}export{m as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{f as e,g as s,h as o,d as r,e as t,i as l,j as i,k as a,l as m,m as d}from"./features-af98efe7.js";import{M as n,a as p,c as u,d as j}from"./icons-96a83bb5.js";import{g as c,b as y}from"./skin-1f169372.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import{g as v}from"./renditions-b770df31.js";import{g as f}from"./captions-79fcdb9f.js";import{a as g,i as h,b}from"./index-0cc87ab8.js";import{i as C,d as w}from"./browser-4d7cb620.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.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-bd9c636a.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.array.concat.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"core-js/modules/es.array.sort.js";import"./autoNextVideo-91174189.js";import"./util-15b06c48.js";import"@babel/runtime/helpers/typeof";import"core-js/modules/es.string.split.js";import"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.string.trim.js";import"core-js/modules/es.string.starts-with.js";import"core-js/modules/es.string.pad-start.js";import"core-js/modules/es.array.flat.js";import"core-js/modules/es.array.unscopables.flat.js";function x(r,t){var l=c(r);l&&(l.on("loadeddata",(function(){var o,i,a,m,d,n,p;(null===(o=v(r))||void 0===o?void 0:o.length)>0&&e(r,t),(null===(i=f(r))||void 0===i?void 0:i.length)>0&&s(r,t),!(null!=t&&null!==(a=t.series)&&void 0!==a&&a.enable||null!==(m=window)&&void 0!==m&&null!==(d=m.app_data)&&void 0!==d&&null!==(n=d.appcmsMain)&&void 0!==n&&null!==(p=n.features)&&void 0!==p&&p.auto_play)||null!=t&&t.liveVideo||g(r,t),function(e,s){var o,r=Math.floor(e/60),t=null===(o=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===o?void 0:o[0];t&&(t.style.marginRight=r>60?"56px":"41px");var l=document.getElementsByClassName("vjs-live-control")[0],i=document.getElementsByClassName("vjs-time-control");s&&l.classList.value.includes("vjs-hidden")&&(i[0].style.display="block",t&&(t.style.marginRight="56px"))}(l.duration(),(null==t?void 0:t.liveVideo)||!1),null!=t&&t.liveVideo||C()||h(r)})),l.one("play",(function(){var e,s,t,l;null!==(e=window)&&void 0!==e&&null!==(s=e.customData)&&void 0!==s&&s.iframeOverlayUrl&&o(r,null===(t=window)||void 0===t||null===(l=t.customData)||void 0===l?void 0:l.iframeOverlayUrl)})))}function V(e,s){c(e).addClass("skin_defaultv2"),function(){"Chrome"==w()&&import("./chromett-a3cbb2e1.js").then((function(e){var s=document.createElement("style");s.id="chromett",s.append("".concat(e.default)),document.head.appendChild(s)}));import("./skin-e4b35c14.js").then((function(e){var s=document.createElement("style");s.id="default_v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}(),x(e,s),function(e,s){var o,r,t,l,i,a,m=c(e);null==m||null===(o=m.controlBar)||void 0===o||null===(r=o.getChild("FullscreenToggle"))||void 0===r||null===(t=r.el())||void 0===t||t.appendChild(y(n(window.controlsColor))),null==m||null===(l=m.controlBar)||void 0===l||null===(i=l.getChild("FullscreenToggle"))||void 0===i||null===(a=i.el())||void 0===a||a.appendChild(y(p(window.controlsColor)));var d=document.getElementsByClassName("vjs-time-control");s.liveVideo&&d[0]&&(d[0].style.display="none")}(e,s),function(e,s){var o,n,p,c,y,v;0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)&&r(e,"defaultV2",u());(0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)||1==(null==s?void 0:s.liveui))&&t(e,"defaultV2",j());s.liveVideo||l(e);(null==s||null===(o=s.relatedVideos)||void 0===o||null===(n=o.content)||void 0===n?void 0:n.length)>0&&i(e,null==s?void 0:s.relatedVideos);(null==s||null===(p=s.streams)||void 0===p?void 0:p.length)>1&&a(e,null==s?void 0:s.streams);(null==s||null===(c=s.playlist)||void 0===c||null===(y=c.content)||void 0===y?void 0:y.length)>0&&m(e,null==s?void 0:s.playlist);null!=s&&null!==(v=s.series)&&void 0!==v&&v.enable&&d(e,s)}(e,s),b(e,s)}export{V as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{C as e,D as s}from"./generic-bd9c636a.js";import{g as r}from"./skin-1f169372.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"video.js";import"core-js/modules/es.array.concat.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime/helpers/toConsumableArray";function o(o){import("./skin-2c638dc1.js").then((function(e){var s=document.createElement("style");s.id="carousel_homepage",s.append("".concat(e.default)),document.head.appendChild(s)})),t(),function(o){var t=document.getElementById("".concat(o)),m=r(o);t&&t.addEventListener("touchstart",(function(){m.paused()?e(o):s(o)}))}(o)}var t=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{a as e,b as s,c as r,d as o,e as t}from"./features-af98efe7.js";import{i}from"./keyboardShortcuts-7352ca34.js";import{S as m,M as a,a as l,N as d,b as p,R as n}from"./icons-96a83bb5.js";import{g as j,b as c}from"./skin-1f169372.js";import{d as u}from"./generic-bd9c636a.js";import"core-js/modules/es.reflect.construct.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.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-b770df31.js";import"core-js/modules/es.array.sort.js";import"./localisation-0bf399a1.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.array.concat.js";import"@babel/runtime/helpers/toConsumableArray";import"core-js/modules/es.array.map.js";import"core-js/modules/es.string.includes.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";function y(y,b){j(y).addClass("skin_default"),i(y,b),import("./skin-71be210e.js").then((function(e){var s=document.createElement("style");s.id="def_skin",s.append("".concat(e.default)),document.head.appendChild(s)})),function(e,s){0==s.liveVideo&&0==s.liveui&&o(e,"default",p());(0==s.liveVideo&&0==s.liveui||1==s.liveui)&&t(e,"default",n())}(y,b),function(o,t){var i=j(o),a=(null==t?void 0:t.sres)||null;i.on("loadeddata",(function(){e(o,"default",m()),a&&import("./nextEpisodeButton-06829f67.js").then((function(e){e.initaliseFunctionality(t.sres.seasons,u())}))})),i.one("loadedmetadata",(function(){var e;a&&(s(o,null==t||null===(e=t.sres)||void 0===e?void 0:e.seasons,t),r(t.sres,t.res,o))}))}(y,b),function(e,s){var r,o,t,i,m=j(e),p=document.getElementsByClassName("vjs-current-time")[0],n=document.getElementsByClassName("vjs-duration")[0],u=document.getElementsByClassName("vjs-time-divider")[0];s.liveVideo&&(p&&(p.style.display="none"),n&&(n.style.display="none"),u&&(u.style.display="none"));null===(r=m.controlBar.getChild("FullscreenToggle"))||void 0===r||null===(o=r.el())||void 0===o||o.appendChild(c(a(window.controlsColor))),null===(t=m.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(i=t.el())||void 0===i||i.appendChild(c(l(window.controlsColor)));var y=m.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(d()));var b=document.createElement("div");b.classList.add("caption-header"),y.querySelector(".vjs-menu-content").insertBefore(b,y.querySelector(".vjs-menu-item"))}(y,b)}export{y as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,D as s}from"./generic-bd9c636a.js";import{g as r}from"./skin-1f169372.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"video.js";import"core-js/modules/es.array.concat.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime/helpers/toConsumableArray";function o(e){m(e),t(e)}var t=function(o){var t=r(o),m=document.getElementById("".concat(o));m&&m.addEventListener("touchstart",(function(){t.paused()?e(o):s(o)}))},m=function(e){var s=r(e);s.requestFullscreen=function(){},s.controlBar.hide()};export{o as initaliseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t}from"./skin-
|
|
1
|
+
import{g as t}from"./skin-1f169372.js";var n=function(n,a,r){var e=t(n);e?a>=0&&a<=e.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),e.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(n,"'"))},a=function(n,a){var r=t(n);if(!r)return"Cannot find player with id: '".concat(n,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(t){return"Error: ".concat(t)}},r=function(n,a){var r=t(n);r?r.on("timeupdate",(function(){return a(r.currentTime())})):a("Cannot find player with id: '".concat(n,"'"))},e=function(n,a){var r=t(n);r?r.on("ended",(function(){return a(!0)})):a("Cannot find player with id: '".concat(n,"'"))},i=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{e as a,a as b,i as g,r as o,n as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.trim.js";import i from"video.js";import{e as a,f as d}from"./icons-96a83bb5.js";import{G as l,R as n}from"./generic-bd9c636a.js";import{e as c,s as m,f as p,j as u,h as j,i as y}from"./skin-1f169372.js";import{a as v}from"./autoNextVideo-91174189.js";import{g as f}from"./localisation-0bf399a1.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-15b06c48.js";function h(e){var o=b();return function(){var s,i=t(e);if(o){var a=t(this).constructor;s=Reflect.construct(i,arguments,a)}else s=i.apply(this,arguments);return r(this,s)}}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}var g=i.getComponent("Component"),C=function(r){s(b,g);var t=h(b);function b(o){var s,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(i=t.call(this,o,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(s=a.related)||void 0===s?void 0:s.cb)||null,i.autoNext=(null==a||null===(r=a.related)||void 0===r?void 0:r.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(n(0),v({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return o(b,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=i.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a())});return i.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then((function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),s=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var r;null!==(r=s.classList)&&void 0!==r&&r.contains("hidden")?(c(),s.classList.remove("hidden"),o.classList.add("open"),m(e.playerId,s)):(s.classList.add("hidden"),o.classList.remove("open"))};var r=document.getElementById(this.playerId);if(r){var t=window.getComputedStyle(r,null).getPropertyValue("height");s.style.height="".concat(t),i.dom.appendContent(o,s),r.style.overflow="hidden",this.addFunctionality(s),p(this.playerId,s)}}},{key:"addFunctionality",value:function(e){var o=this,s=this.el(),r=i.dom.createEl("div",{className:"video-selector-head"}),t=i.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(d())});t.onclick=function(){e.classList.add("hidden"),s.classList.remove("open")};for(var a=i.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=i.dom.createEl("div",{className:"video-selector-content"}),m=i.dom.createEl("div",{className:"video-container"}),p=function(e){var s,r,t,a,d,p,u,v,f=i.dom.createEl("div",{className:"video -".concat(e)}),h=i.dom.createEl("div",{className:"recommended -".concat(e)});h.setAttribute("video-idx",e),h.onclick=function(){n(e+1);for(var s=i.dom.$$(".recommended"),r=0;r<s.length;r++)s[r].style.border="none";j(e),l(o.playerId,o.videos[e].id).then((function(e){o.cb&&o.cb(e)})).catch((function(e){o.cb&&o.cb(e)}))};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(y(null==o||null===(s=o.videos)||void 0===s||null===(r=s[e])||void 0===r?void 0:r.img)||y(null===(t=window)||void 0===t||null===(a=t.app_data)||void 0===a||null===(d=a.appcmsMain)||void 0===d||null===(p=d.images)||void 0===p?void 0:p.placeholderCover)),b.alt="".concat((null==o||null===(u=o.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(b);var g=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(v=o.videos[e])||void 0===v?void 0:v.title)||"")});i.dom.appendContent(f,h),i.dom.appendContent(f,g),i.dom.appendContent(m,f),i.dom.appendContent(c,m)},v=0;v<this.videos.length;v++)p(v);i.dom.appendContent(r,a),i.dom.appendContent(r,t),i.dom.appendContent(e,r),i.dom.appendContent(e,c),u(this.playerId,e)}}]),b}();export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import s from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import i from"video.js";import{E as a,f as l}from"./icons-96a83bb5.js";import{G as d,R as n}from"./generic-bd9c636a.js";import{e as c,s as m,f as p,j as u,k as j}from"./skin-1f169372.js";import{a as y}from"./autoNextVideo-91174189.js";import{g as v}from"./localisation-0bf399a1.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-4d7cb620.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-79fcdb9f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-15b06c48.js";function f(e){var o=h();return function(){var r,i=t(e);if(o){var a=t(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return s(this,r)}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var b=i.getComponent("Component"),g=function(s){r(h,b);var t=f(h);function h(o){var r,s,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,h),(i=t.call(this,o,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(r=a.related)||void 0===r?void 0:r.cb)||null,i.autoNext=(null==a||null===(s=a.related)||void 0===s?void 0:s.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(n(0),y({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return o(h,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=i.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a())});return i.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),r=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var s;null!==(s=r.classList)&&void 0!==s&&s.contains("hidden")?(c(),r.classList.remove("hidden"),o.classList.add("open"),r.style.right="0px",m(e.playerId,r)):(r.classList.add("hidden"),o.classList.remove("open"),r.style.right="-350px")};var s=document.getElementById(this.playerId);if(s){var t=window.getComputedStyle(s,null).getPropertyValue("height");r.style.height="".concat(t),i.dom.appendContent(o,r),s.style.overflow="hidden",this.addFunctionality(r),p(this.playerId,r)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),s=i.dom.createEl("div",{className:"video-selector-head"}),t=i.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});t.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var a=i.dom.createEl("div",{className:"video-selector-title",innerHTML:v("relatedVideoTitle")||"Recommended"}),c=i.dom.createEl("div",{className:"video-selector-content"}),m=i.dom.createEl("div",{className:"video-container"}),p=function(e){var r,s,t,a,l,p=i.dom.createEl("div",{className:"video -".concat(e)}),u=i.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){n(e+1);for(var r=i.dom.$$(".recommended"),s=0;s<r.length;s++)r[s].style.border="none";j(e),d(o.playerId,o.videos[e].id).then((function(e){o.cb&&o.cb(e)})).catch((function(e){o.cb&&o.cb(e)}))};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat((null==o||null===(r=o.videos)||void 0===r||null===(s=r[e])||void 0===s?void 0:s.img)||(null===(t=window)||void 0===t||null===(a=t.customData)||void 0===a?void 0:a.fallbackImage)),y.alt="No Thumbnail Available",u.append(y);var v=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(l=o.videos[e])||void 0===l?void 0:l.title)||"")});i.dom.appendContent(p,u),i.dom.appendContent(p,v),i.dom.appendContent(m,p),i.dom.appendContent(c,m)},y=0;y<this.videos.length;y++)p(y);i.dom.appendContent(s,t),i.dom.appendContent(s,a),i.dom.appendContent(e,s),i.dom.appendContent(e,c),u(this.playerId,e)}}]),h}();export{g as default};
|