@viewlift/player-backup 2.0.14-backup → 2.0.16-backup
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/{autoNextVideo-58bc1a2f.js → autoNextVideo-99cff787.js} +1 -1
- package/cjs/bundle.css +51 -36
- package/cjs/{features-bbf12d8e.js → features-d4d3db06.js} +1 -1
- package/cjs/generic-c8973d16.js +1 -0
- package/cjs/index-d3376969.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/{keyboardShortcuts-2b3e75e4.js → keyboardShortcuts-bab57a0d.js} +1 -1
- package/cjs/{multicamv2-c1d0ed30.js → multicamv2-3ce89e68.js} +1 -1
- package/cjs/{multicamv2-cea9f2f8.js → multicamv2-a5d489fa.js} +1 -1
- package/cjs/{nextEpisodeButton-f7707d1d.js → nextEpisodeButton-71f66d7d.js} +1 -1
- package/cjs/{playlist-6c107638.js → playlist-f9e02bf3.js} +1 -1
- package/cjs/{series-f4526439.js → series-8faab599.js} +1 -1
- package/cjs/{series-v2-4725a038.js → series-v2-3be93ee3.js} +1 -1
- package/cjs/{series-v2-6dc24d73.js → series-v2-f0463d90.js} +1 -1
- package/cjs/{skin-81af0a5e.js → skin-23069403.js} +1 -1
- package/cjs/{skin-06dcc3fb.js → skin-5acd847c.js} +1 -1
- package/cjs/{skin-a6410bc4.js → skin-67e2fd83.js} +1 -1
- package/cjs/{skin-8644239a.js → skin-6e3f1172.js} +1 -1
- package/cjs/{skin-74976452.js → skin-9dc316af.js} +1 -1
- package/cjs/{skin-131ddc1d.js → skin-d5fc1ffa.js} +1 -1
- package/cjs/{videoSelector-e4bb3b22.js → videoSelector-94a1c2bf.js} +1 -1
- package/cjs/{videoSelector-5b8b82c6.js → videoSelector-d1b5ce01.js} +1 -1
- package/esm/{autoNextVideo-d845eed5.js → autoNextVideo-7d08a691.js} +1 -1
- package/esm/bundle.css +51 -36
- package/esm/{caption-settings-006b2c1e.js → caption-settings-01ea9cd7.js} +1 -1
- package/esm/{features-28f3fba0.js → features-97300e39.js} +1 -1
- package/esm/generic-b082d36c.js +1 -0
- package/esm/{icons-3bd3bd8f.js → icons-8e47e640.js} +1 -1
- package/esm/index-2b963391.js +1 -0
- package/esm/index.js +1 -1
- package/esm/{keyboardShortcuts-d4b7595b.js → keyboardShortcuts-cf25a442.js} +1 -1
- package/esm/{multicamv2-4b9de262.js → multicamv2-34b22ae4.js} +1 -1
- package/esm/{multicamv2-8d67f44f.js → multicamv2-51da2821.js} +1 -1
- package/esm/{nextEpisodeButton-70cfcfbb.js → nextEpisodeButton-b8e68684.js} +1 -1
- package/esm/{playlist-b813b540.js → playlist-636b2284.js} +1 -1
- package/esm/{series-2a2949ad.js → series-c8f7dd3f.js} +1 -1
- package/esm/{series-v2-eef07700.js → series-v2-69cfa9f3.js} +1 -1
- package/esm/{series-v2-ab6a1052.js → series-v2-c0c53318.js} +1 -1
- package/esm/{settings-icon-b8f0ec18.js → settings-icon-73ca5775.js} +1 -1
- package/esm/{skin-19ed57f8.js → skin-3d44010e.js} +1 -1
- package/esm/{skin-5783c97e.js → skin-415c3d6d.js} +1 -1
- package/esm/{skin-c6d62a04.js → skin-53d95f61.js} +1 -1
- package/esm/{skin-7e650a44.js → skin-70970c9c.js} +1 -1
- package/esm/{skin-e0bd9b2e.js → skin-93dcf1db.js} +1 -1
- package/esm/{skin-5d96192f.js → skin-ceda9cca.js} +1 -1
- package/esm/{videoSelector-ff7ea20f.js → videoSelector-4b3f5671.js} +1 -1
- package/esm/{videoSelector-bfcd1075.js → videoSelector-fedde959.js} +1 -1
- package/package.json +1 -1
- package/cjs/generic-4b7bb87d.js +0 -1
- package/cjs/index-a4968be0.js +0 -1
- package/esm/generic-08550dfb.js +0 -1
- package/esm/index-b2daa6b2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),l=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./icons-1a3febef.js"),r=require("./generic-
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),l=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./icons-1a3febef.js"),r=require("./generic-c8973d16.js"),c=require("./autoNextVideo-99cff787.js"),d=require("./skin-34fbc337.js");function u(e){var t=p();return function(){var n,l=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(l,arguments,o)}else n=l.apply(this,arguments);return i(this,n)}}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),require("./util-6edeeb8a.js");var m=o.getComponent("Component"),v=function(i){l(p,m);var a=u(p);function p(e){var n,l,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,p),(o=a.call(this,e,s)).playerId=s.playerId,o.seriesData=s.sres,o.videos=null==s||null===(n=s.playlist)||void 0===n?void 0:n.content,o.cb=(null==s||null===(l=s.playlist)||void 0===l?void 0:l.cb)||null,o.autoNext=(null==s||null===(i=s.playlist)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=s.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb}),o}return n(p,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=o.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(s.EpisodesSvg())});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./playlist-df87ca90.js")})).then((function(e){var t=document.createElement("style");t.id="playlist-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=o.dom.createEl("div",{className:"selection-container hidden"});o.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(d.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var l=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px"),o.dom.appendContent(e,t),n.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(t){var n=this,l=this.el(),i=o.dom.createEl("div",{className:"playlist-selector-head"}),a=o.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(s.crossIconSvg())});a.onclick=function(){t.classList.add("hidden"),l.classList.remove("open"),t.style.right="-350px"};for(var c=o.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),u=o.dom.createEl("div",{className:"playlist-selector-content"}),p=function(t){var l,i,a=o.dom.createEl("div",{className:"playlist-container"}),s=o.dom.createEl("div",{className:"playlist-section",index:t}),c=o.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(l=n.videos[t])||void 0===l?void 0:l.title)||"")}),d=o.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(n.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});o.dom.appendContent(s,c),o.dom.appendContent(s,d),o.dom.appendContent(a,s),o.dom.appendContent(u,a);var p=o.dom.createEl("div",{className:"playlist-section-expanded hidden"}),m=o.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(i=n.videos[t])||void 0===i?void 0:i.description)||"")}),v=o.dom.createEl("div",{className:"playlist-image"});v.style.backgroundImage="url(".concat(n.videos[t].img,")"),o.dom.appendContent(p,v),o.dom.appendContent(p,m),o.dom.appendContent(a,p),o.dom.appendContent(u,a),p.onclick=function(e){e.stopPropagation(),r.setVideoIdx(t+1),r.load(n.playerId,n.videos[t].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))},s.onclick=function(t){var n,l,i,o=document.getElementsByClassName("playlist-selector-content")[0].childNodes,s=(o=e(o))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=s&&null!==(n=s.classList)&&void 0!==n&&n.contains("hidden")?(a.style.backgroundColor="#0000007d",null==s||null===(l=s.classList)||void 0===l||l.remove("hidden")):(null==s||null===(i=s.classList)||void 0===i||i.add("hidden"),a.style.backgroundColor="unset")}},m=0;m<this.videos.length;m++)p(m);o.dom.appendContent(i,a),o.dom.appendContent(i,c),o.dom.appendContent(t,i),o.dom.appendContent(t,u),d.getPlayer(this.playerId).on("fullscreenchange",(function(){var e=document.getElementById(n.playerId);if(e){var l=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px")}}))}}]),p}();exports.default=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),i=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),s=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),l=require("@babel/runtime/regenerator"),c=require("video.js"),d=require("./generic-
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),i=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),s=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),l=require("@babel/runtime/regenerator"),c=require("video.js"),d=require("./generic-c8973d16.js"),u=require("./icons-1a3febef.js"),p=require("./skin-34fbc337.js");require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),require("@babel/runtime/helpers/toConsumableArray");var v=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function h(e){var i=f();return function(){var t,n=a(e);if(i){var s=a(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(this,t)}}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var m,g=c.getComponent("Component"),b=function(e){s(a,g);var r=h(a);function a(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,a),t=r.call(this,e,s),o(n(t),"seriesData",[]),t.seriesData=s.seriesData,m=s.playerId;var l=t.el();return C(l,t.seriesData),t.loadCSS(),t}return t(a,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-9c237975.js")})).then((function(e){var i=document.createElement("style");i.id="series",i.append("".concat(e.default)),document.head.appendChild(i)}))}}]),a}();function y(){return(y=e(l.mark((function e(i,t,n,s){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.pause(m),v(m),d.load(m,t).then((function(e){d.setCurrentVideo(e.response),d.play(m)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e,i){for(var t='<div class="hover-div"></div>\n '.concat(u.EpisodesSvg(),'\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,i){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("")}(i),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=p.parseHtmlString(t);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}exports.customSeasonList=C,exports.handleSeasonChange=function(e,i,t,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var o=e.episodes.map((function(e,i){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(i+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=p.parseHtmlString(o);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){d.getSeriesWatchHistory(e).then((function(e){var i=e.data,t=document.querySelectorAll("#progress-div");t&&i.map((function(e,i){e&&e.watchedPercentage&&t[i]&&(t[i].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),u=document.querySelectorAll("#episode-title"),v=document.querySelectorAll(".meta-details"),h=document.querySelector("#episodes-back-btn"),f=e.id,m=e.episodes;h.addEventListener("click",(function(){return function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(s,r)}));for(var g=function(i){c[i].addEventListener("click",(function(){return function(e,i,t){var n=i.querySelector(".meta-details");i.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),t.forEach((function(i,n){n!==e&&(t[n].classList.remove("episode-active"),t[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(i,u[i],u)})),v[i].addEventListener("click",(function(){return function(e,i,t,n){return y.apply(this,arguments)}(i,m[i].id,t,u)})),e.episodes[i].id==f&&u[i].classList.add("highlight-active-eps")},b=0;b<c.length;b++)g(b)},exports.seriesModule=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),s=require("@babel/runtime/helpers/assertThisInitialized"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-1a3febef.js"),d=require("./generic-
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),s=require("@babel/runtime/helpers/assertThisInitialized"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-1a3febef.js"),d=require("./generic-c8973d16.js"),c=require("./skin-34fbc337.js"),u=require("./autoNextVideo-99cff787.js");function v(e){var t=p();return function(){var n,s=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(s,arguments,i)}else n=s.apply(this,arguments);return o(this,n)}}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),require("./util-6edeeb8a.js");var m=l.getComponent("Component"),h=function(o){i(p,m);var r=v(p);function p(n){var i,o,l,a,c,v,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,p),(v=r.call(this,n,m)).playerId=m.playerId,v.seriesData=m.sres,v.videos=null==m||null===(i=m.sres)||void 0===i?void 0:i.seasons,v.currentVideoData=m.res,v.initialiseStructure(),v.loadCSS(),v.selectedSeason=0,v.cb=null==m||null===(o=m.series)||void 0===o?void 0:o.cb,v.autoPlayNext=(null==m||null===(l=m.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),v.watchMap=d.getSeriesWatchMap(),null!==(a=s(v))&&void 0!==a&&a.autoPlayNext&&null!=m&&null!==(c=m.series)&&void 0!==c&&c.enable){var h,g,f,C,y=null==m||null===(h=m.sres)||void 0===h?void 0:h.seasons,b=[];y.map((function(t){b.push.apply(b,e(t.episodes))})),d.createIdxMapping(b),d.setVideoIdxById(null===(g=v.options_)||void 0===g||null===(f=g.res)||void 0===f||null===(C=f.video)||void 0===C?void 0:C.id),u.autoPlayNext({playerId:v.playerId,content:b,cb:v.cb,series:null==m?void 0:m.sres})}return v}return n(p,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-e037e14e.js")})).then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,n=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(c.closeOpenDrawers(),e.classList.remove("hidden"),n.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"series-selection-container hidden"});l.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(n)};var s=document.getElementById(this.playerId);if(s){var i=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);n.style.height="".concat(i,"px"),l.dom.appendContent(t,n),s.style.overflow="hidden",this.addFunctionality(n)}}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),s=l.dom.createEl("div",{className:"series-selector-head"}),i=l.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.onclick=function(){if("series-selector-cross-icon"===i.className)e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===i.className){var s=l.dom.$(".series-selector-content",t.el());for(l.dom.$(".series-selector-cross-icon",t.el()),i.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=t.createSeasonLister();for(l.dom.appendContent(s,o),l.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=i&&i.firstChild;)i.removeChild(i.firstChild);var r=c.parseSvgString(a.crossIconSvg());i.appendChild(r)}};var o=l.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),r=l.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();l.dom.appendContent(r,d),l.dom.appendContent(s,i),l.dom.appendContent(s,o),l.dom.appendContent(e,s),l.dom.appendContent(e,r),c.getPlayer(this.playerId).on("fullscreenchange",(function(){var n=document.getElementById(t.playerId);if(n){var s=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(s,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;c.getPlayer(this.playerId);for(var t=d.getCurrentSeries(),n=l.dom.createEl("div",{className:"season-container"}),s=function(s){var i,o=document.createElement("label");o.className="season-holder",o.setAttribute("for","season-".concat(s));var r=document.createElement("div");r.className="season - ".concat(s),r.textContent=null===(i=t[s])||void 0===i?void 0:i.title;var a=l.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==s&&(a.checked=!0),a.onclick=function(t){d.seasonIdxManager.set(s),e.showSeasonDetails(s)},l.dom.appendContent(o,a),l.dom.appendContent(o,r),l.dom.appendContent(n,o)},i=0;i<t.length;i++)s(i);return n}},{key:"getSeasonDetailsContainer",value:function(t,n){var s=this;t=t.map((function(e){var t,n,i,o,r;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(n=e.gist)||void 0===n||null===(i=n.imageGist)||void 0===i?void 0:i.r16x9,watchedPercentage:(null==s||null===(o=s.watchMap)||void 0===o||null===(r=o.get(null==e?void 0:e.id))||void 0===r?void 0:r.p)||0}}));for(var i=function(i){var o,r,a,c,u,v,p,m=l.dom.createEl("div",{className:"series-container"}),h=l.dom.createEl("div",{className:"series-section",index:i}),g=l.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(o=t[i])||void 0===o?void 0:o.title)||"")}),f=l.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[i].watchedPercentage,"%' class='series-progress-bar-value'></div>")});l.dom.appendContent(h,g),l.dom.appendContent(h,f),l.dom.appendContent(m,h),l.dom.appendContent(n,m);var C=l.dom.createEl("div",{className:"series-section-expanded hidden"}),y=(null===(r=t[i])||void 0===r?void 0:r.description)||"";(null===(a=y)||void 0===a?void 0:a.length)>170&&(y=y.substr(0,170)+"...");var b=l.dom.createEl("div",{className:"series-description",innerHTML:"".concat(y||"")}),S=l.dom.createEl("img",{className:"series-image"});S.src="".concat((null===(c=t[i])||void 0===c?void 0:c.img)||(null===(u=window)||void 0===u||null===(v=u.customData)||void 0===v?void 0:v.fallbackImage)),S.alt="".concat(null===(p=t[i])||void 0===p?void 0:p.title),l.dom.appendContent(C,S),l.dom.appendContent(C,b),l.dom.appendContent(m,C),l.dom.appendContent(n,m),C.onclick=function(e){var n;e.stopPropagation(),d.setVideoIdxById(null===(n=t[i])||void 0===n?void 0:n.id),d.load(s.playerId,t[i].id).then((function(e){null!=s&&s.cb&&s.cb(e)})).catch((function(e){null!=s&&s.cb&&s.cb(e)}))},h.onclick=function(t){var n,s,i,o=document.getElementsByClassName("series-selector-content")[0].childNodes,r=(o=e(o))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=r&&null!==(n=r.classList)&&void 0!==n&&n.contains("hidden")?(m.style.backgroundColor="#0000007d",null==r||null===(s=r.classList)||void 0===s||s.remove("hidden")):(null==r||null===(i=r.classList)||void 0===i||i.add("hidden"),m.style.backgroundColor="unset")}},o=0;o<t.length;o++)i(o);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=l.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var n=d.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(n,t);var s=l.dom.$(".series-selector-cross-icon",this.el());for(s.className="series-selector-back-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var i=c.parseSvgString(a.BackIcon());s.appendChild(i),l.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),p}();exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),s=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-1a3febef.js"),d=require("./generic-
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),s=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-1a3febef.js"),d=require("./generic-c8973d16.js"),c=require("./skin-34fbc337.js"),u=require("./autoNextVideo-99cff787.js");function v(e){var t=p();return function(){var s,n=r(e);if(t){var i=r(this).constructor;s=Reflect.construct(n,arguments,i)}else s=n.apply(this,arguments);return o(this,s)}}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),require("./util-6edeeb8a.js");var m=l.getComponent("Component"),h=function(o){i(p,m);var r=v(p);function p(s){var i,o,l,a,c,v,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,p),(v=r.call(this,s,m)).playerId=m.playerId,v.seriesData=m.sres,v.videos=null==m||null===(i=m.sres)||void 0===i?void 0:i.seasons,v.currentVideoData=m.res,v.initialiseStructure(),v.loadCSS(),v.selectedSeason=0,v.cb=null==m||null===(o=m.series)||void 0===o?void 0:o.cb,v.autoPlayNext=(null==m||null===(l=m.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),v.watchMap=d.getSeriesWatchMap(),null!==(a=n(v))&&void 0!==a&&a.autoPlayNext&&null!=m&&null!==(c=m.series)&&void 0!==c&&c.enable){var h,f,g,C,y=null==m||null===(h=m.sres)||void 0===h?void 0:h.seasons,b=[];y.map((function(t){b.push.apply(b,e(t.episodes))})),d.createIdxMapping(b),d.setVideoIdxById(null===(f=v.options_)||void 0===f||null===(g=f.res)||void 0===g||null===(C=g.video)||void 0===C?void 0:C.id),u.autoPlayNext({playerId:v.playerId,content:b,cb:v.cb,series:null==m?void 0:m.sres})}return v}return s(p,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-68886cd2.js")})).then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(c.closeOpenDrawers(),e.classList.remove("hidden"),s.classList.add("open"),c.setUpdatedElHeight(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=l.dom.createEl("div",{className:"series-selection-container hidden"});l.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(s)};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(i,"px"),l.dom.appendContent(t,s),n.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),n=l.dom.createEl("div",{className:"series-selector-head"}),i=l.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.onclick=function(){if("series-selector-cross-icon"===i.className)e.classList.add("hidden"),s.classList.remove("open");else if("series-selector-back-icon"===i.className){var n=l.dom.$(".series-selector-content",t.el());for(l.dom.$(".series-selector-cross-icon",t.el()),i.className="series-selector-cross-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var o=t.createSeasonLister();for(l.dom.appendContent(n,o),l.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=i&&i.firstChild;)i.removeChild(i.firstChild);var r=c.parseSvgString(a.crossIconSvg());i.appendChild(r)}};var o=l.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),r=l.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();l.dom.appendContent(r,d),l.dom.appendContent(n,i),l.dom.appendContent(n,o),l.dom.appendContent(e,n),l.dom.appendContent(e,r),c.handleDrawerResizing(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;c.getPlayer(this.playerId);for(var t=d.getCurrentSeries(),s=l.dom.createEl("div",{className:"season-container"}),n=function(n){var i,o=document.createElement("label");o.className="season-holder",o.setAttribute("for","season-".concat(n));var r=document.createElement("div");r.className="season - ".concat(n),r.textContent=null===(i=t[n])||void 0===i?void 0:i.title;var a=l.dom.createEl("input",{className:"radio - ".concat(n),id:"season-".concat(n),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==n&&(a.checked=!0),a.onclick=function(t){d.seasonIdxManager.set(n),e.showSeasonDetails(n)},l.dom.appendContent(o,a),l.dom.appendContent(o,r),l.dom.appendContent(s,o)},i=0;i<t.length;i++)n(i);return s}},{key:"getSeasonDetailsContainer",value:function(t,s){var n=this;t=t.map((function(e){var t,s,i,o,r,l,a,d,c;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:(null==e||null===(s=e.gist)||void 0===s||null===(i=s.imageGist)||void 0===i?void 0:i.r16x9)||(null===(o=window)||void 0===o||null===(r=o.app_data)||void 0===r||null===(l=r.appcmsMain)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.placeholderCover),watchedPercentage:(null==n||null===(d=n.watchMap)||void 0===d||null===(c=d.get(null==e?void 0:e.id))||void 0===c?void 0:c.p)||0}}));for(var i=function(i){var o,r,a,u,v,p=l.dom.createEl("div",{className:"series-container"}),m=l.dom.createEl("div",{className:"series-section-data",index:i,innerHTML:"".concat((null===(o=t[i])||void 0===o?void 0:o.title)||"")});l.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(r=t[i])||void 0===r?void 0:r.title)||"")}),l.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[i].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var h=l.dom.createEl("div",{className:"series-section-image"}),f=(null===(a=t[i])||void 0===a?void 0:a.description)||"";(null===(u=f)||void 0===u?void 0:u.length)>170&&(f=f.substr(0,170)+"..."),l.dom.createEl("div",{className:"series-description",innerHTML:"".concat(f||"")});var g=l.dom.createEl("img",{className:"series-image"});g.src="".concat(c.impolicy16x9(null===(v=t[i])||void 0===v?void 0:v.img)),g.alt="Episode ".concat(i+1),l.dom.appendContent(h,g),l.dom.appendContent(p,h),l.dom.appendContent(p,m),l.dom.appendContent(s,p),p.onclick=function(e){var s;e.stopPropagation(),d.setVideoIdxById(null===(s=t[i])||void 0===s?void 0:s.id),d.load(n.playerId,t[i].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))},m.onclick=function(t){var s,n,i,o=document.getElementsByClassName("series-selector-content")[0].childNodes,r=(o=e(o))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=r&&null!==(s=r.classList)&&void 0!==s&&s.contains("hidden")?(p.style.backgroundColor="#0000007d",null==r||null===(n=r.classList)||void 0===n||n.remove("hidden")):(null==r||null===(i=r.classList)||void 0===i||i.add("hidden"),p.style.backgroundColor="unset")}},o=0;o<t.length;o++)i(o);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=l.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=d.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(s,t);var n=l.dom.$(".series-selector-cross-icon",this.el());for(n.className="series-selector-back-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var i=c.parseSvgString(a.BackIcon());n.appendChild(i),l.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),p}();exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./features-
|
|
1
|
+
"use strict";var e=require("./features-d4d3db06.js"),r=require("./keyboardShortcuts-bab57a0d.js"),i=require("./icons-1a3febef.js"),n=require("./skin-34fbc337.js"),t=require("./generic-c8973d16.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./renditions-b41243b6.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),exports.initialiseSkin=function(s,l){n.getPlayer(s).addClass("skin_default"),r.initialiseKeyboardEvents(s,l),Promise.resolve().then((function(){return require("./skin-ba38afdb.js")})).then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r,n){0==n.liveVideo&&0==n.liveui&&e.addSkipButton(r,"default",i.SkipSvg());(0==n.liveVideo&&0==n.liveui||1==n.liveui)&&e.addRewindButton(r,"default",i.RewindSvg())}(s,l),function(r,s){var l=n.getPlayer(r),o=(null==s?void 0:s.sres)||null;l.on("loadeddata",(function(){e.addResolutionModule(r,"default",i.SettingsSvg()),o&&Promise.resolve().then((function(){return require("./nextEpisodeButton-71f66d7d.js")})).then((function(e){e.initaliseFunctionality(s.sres.seasons,t.getCurrentVideo())}))})),l.one("loadedmetadata",(function(){var i;o&&(e.addSeriesModule(r,null==s||null===(i=s.sres)||void 0===i?void 0:i.seasons,s),e.addNextEpisodeButton(s.sres,s.res,r))}))}(s,l),function(e,r){var t,s,l,o,a=n.getPlayer(e),u=document.getElementsByClassName("vjs-current-time")[0],d=document.getElementsByClassName("vjs-duration")[0],c=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(u&&(u.style.display="none"),d&&(d.style.display="none"),c&&(c.style.display="none"));null===(t=a.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(s=t.el())||void 0===s||s.appendChild(n.createIconMarkup(i.MinimizeSvg(window.controlsColor))),null===(l=a.controlBar.getChild("FullscreenToggle"))||void 0===l||null===(o=l.el())||void 0===o||o.appendChild(n.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var m=a.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(n.createIconMarkup(i.NewCaptionsSvg()));var p=document.createElement("div");p.classList.add("caption-header"),m.querySelector(".vjs-menu-content").insertBefore(p,m.querySelector(".vjs-menu-item"))}(s,l)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./generic-
|
|
1
|
+
"use strict";var e=require("./generic-c8973d16.js"),r=require("./skin-34fbc337.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),require("@babel/runtime/helpers/toConsumableArray");var i=function(i){var n=r.getPlayer(i),t=document.getElementById("".concat(i));t&&t.addEventListener("touchstart",(function(){n.paused()?e.play(i):e.pause(i)}))},n=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){n(e),i(e)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./skin-34fbc337.js"),r=require("./features-
|
|
1
|
+
"use strict";var e=require("./skin-34fbc337.js"),r=require("./features-d4d3db06.js"),i=require("./renditions-b41243b6.js"),n=require("./captions-fbd6fefb.js");require("@babel/runtime/helpers/toConsumableArray"),require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-c8973d16.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),exports.initialiseSkin=function(t,s){Promise.resolve().then((function(){return require("./skin-fc1e7e52.js")})).then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(t,s){e.getPlayer(t).on("loadeddata",(function(){var e;(null===(e=i.getRenditions(t))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(t,s),null!=s&&s.disableCaptions&&n.removeCaptions(t)}))}(t,s),function(i,n){var t=e.getPlayer(i);t.controls(!1),r.addDBClickFullScreen(i)}(t)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./features-
|
|
1
|
+
"use strict";var e=require("./features-d4d3db06.js"),l=require("./icons-1a3febef.js"),i=require("./skin-34fbc337.js"),r=require("./renditions-b41243b6.js"),n=require("./captions-fbd6fefb.js"),o=require("./index-d3376969.js"),t=require("./browser-77c57718.js");function u(l,u){var a=i.getPlayer(l);a&&(a.on("loadeddata",(function(){var i,d,s,v,c,p,m;(null===(i=r.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,u),(null===(d=n.getCaptions(l))||void 0===d?void 0:d.length)>0&&e.addCaptionButton(l,u),!(null!=u&&null!==(s=u.series)&&void 0!==s&&s.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=u&&u.liveVideo||o.addNextEpPreview(l,u),function(e,l){var i,r=Math.floor(e/60),n=null===(i=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===i?void 0:i[0];n&&(n.style.marginRight=r>60?"56px":"41px");var o=document.getElementsByClassName("vjs-live-control")[0],t=document.getElementsByClassName("vjs-time-control");l&&o.classList.value.includes("vjs-hidden")&&(t[0].style.display="block",n&&(n.style.marginRight="56px"))}(a.duration(),(null==u?void 0:u.liveVideo)||!1),null!=u&&u.liveVideo||t.isMobile()||o.initiateTrickplay(l)})),a.one("play",(function(){var i,r,n,o;null!==(i=window)&&void 0!==i&&null!==(r=i.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)})))}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./generic-c8973d16.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./autoNextVideo-99cff787.js"),require("./util-6edeeb8a.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/slicedToArray"),exports.initialiseSkin=function(r,n){i.getPlayer(r).addClass("skin_defaultv2"),function(){"Chrome"==t.detectBrowser()&&Promise.resolve().then((function(){return require("./chromett-f925fb6c.js")})).then((function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)}));Promise.resolve().then((function(){return require("./skin-87c06e34.js")})).then((function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)}))}(),u(r,n),function(e,r){var n,o,t,u,a,d,s=i.getPlayer(e);null==s||null===(n=s.controlBar)||void 0===n||null===(o=n.getChild("FullscreenToggle"))||void 0===o||null===(t=o.el())||void 0===t||t.appendChild(i.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==s||null===(u=s.controlBar)||void 0===u||null===(a=u.getChild("FullscreenToggle"))||void 0===a||null===(d=a.el())||void 0===d||d.appendChild(i.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var v=document.getElementsByClassName("vjs-time-control");r.liveVideo&&v[0]&&(v[0].style.display="none")}(r,n),function(i,r){var n,o,t,u,a,d;0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());r.liveVideo||e.addSlowMotion(i);(null==r||null===(n=r.relatedVideos)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.relatedVideos);(null==r||null===(t=r.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.streams);(null==r||null===(u=r.playlist)||void 0===u||null===(a=u.content)||void 0===a?void 0:a.length)>0&&e.addPlaylistSelector(i,null==r?void 0:r.playlist);null!=r&&null!==(d=r.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,r)}(r,n),o.addTVProviderImage(r,n)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./features-bbf12d8e.js"),r=require("./skin-34fbc337.js"),n=require("./index-a4968be0.js"),t=require("./browser-77c57718.js");require("videojs-contrib-quality-menu");var o=require("video.js"),a=require("./keyboardShortcuts-2b3e75e4.js"),i=require("./generic-4b7bb87d.js"),l=require("@babel/runtime/helpers/toConsumableArray"),s=require("@babel/runtime/helpers/slicedToArray"),d=require("@babel/runtime/helpers/defineProperty"),u=require("@babel/runtime/helpers/asyncToGenerator"),c=require("@babel/runtime/regenerator"),v=require("./icons-1a3febef.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./renditions-b41243b6.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-58bc1a2f.js"),require("./util-6edeeb8a.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js");function p(o,a){var i=r.getPlayer(o);i&&(i.on("loadeddata",(function(){var e,i,l,s,d;!function(e){var n=r.getPlayer(e);n&&(null==n||n.qualityMenu,n.qualityMenu({useResolutionLabels:!0}))}(o),!(null!=a&&null!==(e=a.series)&&void 0!==e&&e.enable||null!==(i=window)&&void 0!==i&&null!==(l=i.app_data)&&void 0!==l&&null!==(s=l.appcmsMain)&&void 0!==s&&null!==(d=s.features)&&void 0!==d&&d.auto_play)||null!=a&&a.liveVideo||n.addNextEpPreview(o,a),null!=a&&a.liveVideo||t.isMobile()||n.initiateTrickplay(o)})),i.one("play",(function(){var r,n,t,a;null!==(r=window)&&void 0!==r&&null!==(n=r.customData)&&void 0!==n&&n.iframeOverlayUrl&&e.addOutputtingOverlay(o,null===(t=window)||void 0===t||null===(a=t.customData)||void 0===a?void 0:a.iframeOverlayUrl)})))}function f(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return m(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var t=0,o=function(){};return{s:o,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function y(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function b(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?y(Object(n),!0).forEach((function(r){d(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function h(){return h=u(c.mark((function e(n,t){var o,d,p,m,y,h,g,S,k,j,q,w,C,I,O,T,P,M,x;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x=function(e,t,o){var a=r.getPlayer(n);Math.floor(a.currentTime());var i,l,s,d,u,c,v,p,m,y,b,h,g,S,k=f(t);try{for(k.s();!(i=k.n()).done;)l=void 0,s=void 0,d=void 0,u=void 0,c=void 0,v=void 0,p=void 0,m=void 0,y=void 0,b=void 0,h=void 0,g=void 0,S=void 0,c=i.value,v=c.eventType,p=c.beaconUrls,m=c.startTimeInSeconds,y=c.startTime,b=c.durationInSeconds,h=Math.round(m),g=p[0],S=(null===(l=window)||void 0===l||null===(s=l.customData)||void 0===s||null===(d=s.ads)||void 0===d?void 0:d.adEventHandler)||null,h!=Math.round(a.currentTime())||M.has(y)||(M.set(y,!0),"function"==typeof S&&S({adsData:{eventType:v,startTimeInSeconds:m,startTime:y,durationInSeconds:b,ad:null==e||null===(u=e.ads)||void 0===u?void 0:u[o],adIndex:o}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",v,"Fired:".concat(Math.round(a.currentTime())),"AD_POD:",e),fetch(g))}catch(e){k.e(e)}finally{k.f()}},P=function(e){var r=Math.floor(e/60),n=Math.floor(e%60);return"".concat(r,":").concat(n.toString().padStart(2,"0"))},O=function(e){var r={},n=e.split("?")[1];if(!n)return r;var t,o=f(n.split("&"));try{for(o.s();!(t=o.n()).done;){var a=t.value.split("="),i=s(a,2),l=i[0],d=i[1];r[decodeURIComponent(l)]=decodeURIComponent(d||"")}}catch(e){o.e(e)}finally{o.f()}for(var u={},c=0,v=Object.entries(r);c<v.length;c++){var p=s(v[c],2),m=p[0],y=p[1];if(m.startsWith("ads."))u[m.replace(/^ads\./,"")]=y;else u[m]=y}return u},o=r.getPlayer(n),d=t.replace("dash","session").replace("master","session"),d=i.replaceMacros(d,n,{}),p=O(d),d=d.split("?")[0],e.next=10,fetch(d,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:b({},p)})});case 10:return m=e.sent,e.next=13,m.json();case 13:y=e.sent,h="https://"+new URL(d).hostname,g=y.trackingUrl,S=y.manifestUrl,k=h+g,j=h+S,console.log("%c TRACKING URL","background: #bdf369; color: #000",k),null!=t&&t.includes(".mpd")?(w=(null==o||null===(q=o.currentSource())||void 0===q?void 0:q.keySystemOptions)||null,i.loadVideo(n,{src:j,type:"application/x-mpegURL",keySystemOptions:w})):(I=(null==o||null===(C=o.currentSource())||void 0===C?void 0:C.keySystems)||null,i.loadVideo(n,{src:j,type:"application/x-mpegURL",keySystems:I})),o.one("loadeddata",(function(){T(k)})),T=function(){var e=u(c.mark((function e(t){var o,i,s,d,u,p,f,m,y,b,h,g,S,k,j,q,w;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return i=e.sent,e.next=5,i.json();case 5:s=e.sent,d=s.avails,u=[],p=r.getPlayer(n),f=p.controlBar.progressControl,m=f.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&&u.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),u.forEach((function(e){var r=e.markerPositionInSeconds,n=p.duration();if(!(r>n)){var t=r/n*100,o=document.createElement("div");o.className="vjs-seekbar-marker",o.style.left="".concat(t,"%"),o.style.position="absolute",o.style.top="0",o.style.bottom="0",o.style.width="2px",o.style.backgroundColor="#fecc09",o.style.left="".concat(t,"%"),o.style.pointerEvents="none",m.appendChild(o)}})),y=new Map,b=-1,p.on("timeupdate",r.throttle((function(){var e=Math.floor(p.currentTime());if(e!==b){b=e;for(var r=!1,n=function(){var n=o[t],i=n.startTimeInSeconds,s=n.durationInSeconds,d=n.ads,u=Math.floor(i+s);if(e>=i&&e<=u){r=!0,y.set(i,!0),a.keyboardManager.disable(),f.el().style.visibility="hidden";for(var c=e-i,v=0,p=0,m=0;m<d.length;m++){var b,g=null==d||null===(b=d[m])||void 0===b?void 0:b.durationInSeconds;if(c<v+g){p=m;break}v+=g}var S=d[p],k=c-v,j=Math.max(0,S.durationInSeconds-k),w=Math.round(j);h.style.display="block",q.textContent="".concat(p+1," of ").concat(d.length," • ").concat(P(w));var C=[];return d.forEach((function(e){var r=e.trackingEvents.filter((function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"].includes(e.eventType)}));C.push.apply(C,l(r))})),x(n,C,p),"break"}},t=0,o=u;t<o.length;t++){if("break"===n())break}r||(h.style.display="none",f.el().style.visibility="visible",a.keyboardManager.enable())}}),1e3)),p.on("seeked",(function(){for(var e=null,r=0,n=u;r<n.length;r++){var t=n[r],o=null==p?void 0:p.currentTime(),a=t.startTimeInSeconds,i=t.durationInSeconds;o>Math.floor(a+i)&&!y.has(a)&&(e=a,y.set(a,!0))}e&&(p.currentTime(e),console.log("seeking back to",e),e=null)})),(h=document.createElement("div")).className="ssai-ad-container",(g=document.createElement("div")).className="sponsored-adbox",(S=document.createElement("div")).className="sponsored-text",S.textContent="Sponsored Ad",(k=document.createElement("div")).className="ad-info-icon",j=r.parseSvgString(v.InfoIcon()),k.appendChild(j),g.append(S),g.append(k),(q=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(w=document.createElement("div")).className="ad-visit-advertiser",w.textContent="Visit Advertiser",(null===(o=document.getElementsByClassName("tvProviderImage"))||void 0===o?void 0:o[0])&&(w.style.right="8.6rem"),h.append(g),h.append(q),h.append(w),p.el().appendChild(h);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),M=new Map;case 24:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}var g=function(e,n){var t,a,i,l,s,d,u,c,v,p,f,m,y=r.getPlayer(e),b=(null==n?void 0:n.theme)||{},h=o.dom.$(".vjs-play-progress"),g=o.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(t=window)||void 0===t||null===(a=t.app_data)||void 0===a||null===(i=a.appcmsMain)||void 0===i||null===(l=i.brand)||void 0===l||null===(s=l.cta)||void 0===s||null===(d=s.primary)||void 0===d?void 0:d.backgroundColor)),h&&(h.style.background="".concat(null===(u=window)||void 0===u||null===(c=u.app_data)||void 0===c||null===(v=c.appcmsMain)||void 0===v||null===(p=v.brand)||void 0===p||null===(f=p.cta)||void 0===f||null===(m=f.primary)||void 0===m?void 0:m.backgroundColor));var S=y.getChild("BigPlayButton")||null;(null==b?void 0:b.progressBarColor)&&h&&(h.style.background=b.progressBarColor),(null==b?void 0:b.playBtnBgColor)&&S&&(S.el().style.background=b.playBtnBgColor),(null==b?void 0:b.playBtnColor)&&g&&(g.style.color=b.playBtnColor),(null==b?void 0:b.playBtnType)&&("square"==(null==b?void 0:b.playBtnType)?S.el().style.borderRadius=".3em":S.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(t,o){r.getPlayer(t).addClass("skin_vlone"),p(t,o),function(r,t){var o,l,s,d,u,c,v=null==t||null===(o=t.res)||void 0===o||null===(l=o.video)||void 0===l?void 0:l.isSSAIEnabled,p=i.getSource(null==t?void 0:t.res,r),f=p.src;(null==t||null===(s=t.relatedVideos)||void 0===s||null===(d=s.content)||void 0===d?void 0:d.length)>0&&e.addVideoSelector(r,null==t?void 0:t.relatedVideos);null!=t&&null!==(u=t.series)&&void 0!==u&&u.enable&&e.addSeriesSelectorV2(r,t);(null==t||null===(c=t.streams)||void 0===c?void 0:c.length)>1&&e.addMulticamSelector(r,null==t?void 0:t.streams);n.addTVProviderImage(r,t),a.initialiseKeyboardEvents(r,t),v&&function(e,r){h.apply(this,arguments)}(r,f)}(t,o),g(t,o)};
|
|
1
|
+
"use strict";var e=require("./features-d4d3db06.js"),r=require("./skin-34fbc337.js"),n=require("./index-d3376969.js"),t=require("./browser-77c57718.js");require("videojs-contrib-quality-menu");var o=require("video.js"),a=require("./keyboardShortcuts-bab57a0d.js"),i=require("./generic-c8973d16.js"),l=require("@babel/runtime/helpers/toConsumableArray"),s=require("@babel/runtime/helpers/slicedToArray"),u=require("@babel/runtime/helpers/defineProperty"),d=require("@babel/runtime/helpers/asyncToGenerator"),c=require("@babel/runtime/regenerator"),v=require("./icons-1a3febef.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./renditions-b41243b6.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-99cff787.js"),require("./util-6edeeb8a.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js");function p(o,a){var i=r.getPlayer(o);i&&(i.on("loadeddata",(function(){var e,i,l,s,u;!function(e){var n=r.getPlayer(e);n&&(null==n||n.qualityMenu,n.qualityMenu({useResolutionLabels:!0}))}(o),!(null!=a&&null!==(e=a.series)&&void 0!==e&&e.enable||null!==(i=window)&&void 0!==i&&null!==(l=i.app_data)&&void 0!==l&&null!==(s=l.appcmsMain)&&void 0!==s&&null!==(u=s.features)&&void 0!==u&&u.auto_play)||null!=a&&a.liveVideo||n.addNextEpPreview(o,a),null!=a&&a.liveVideo||t.isMobile()||n.initiateTrickplay(o)})),i.one("play",(function(){var r,n,t,a;null!==(r=window)&&void 0!==r&&null!==(n=r.customData)&&void 0!==n&&n.iframeOverlayUrl&&e.addOutputtingOverlay(o,null===(t=window)||void 0===t||null===(a=t.customData)||void 0===a?void 0:a.iframeOverlayUrl)})))}function f(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return m(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var t=0,o=function(){};return{s:o,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function y(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function b(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?y(Object(n),!0).forEach((function(r){u(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function h(){return h=d(c.mark((function e(n,t){var o,u,p,m,y,h,g,S,k,j,q,w,C,I,O,T,P,M,x;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x=function(e,t,o){var a=r.getPlayer(n);Math.floor(a.currentTime());var i,l,s,u,d,c,v,p,m,y,b,h,g,S,k=f(t);try{for(k.s();!(i=k.n()).done;)l=void 0,s=void 0,u=void 0,d=void 0,c=void 0,v=void 0,p=void 0,m=void 0,y=void 0,b=void 0,h=void 0,g=void 0,S=void 0,c=i.value,v=c.eventType,p=c.beaconUrls,m=c.startTimeInSeconds,y=c.startTime,b=c.durationInSeconds,h=Math.round(m),g=p[0],S=(null===(l=window)||void 0===l||null===(s=l.customData)||void 0===s||null===(u=s.ads)||void 0===u?void 0:u.adEventHandler)||null,h!=Math.round(a.currentTime())||M.has(y)||(M.set(y,!0),"function"==typeof S&&S({adsData:{eventType:v,startTimeInSeconds:m,startTime:y,durationInSeconds:b,ad:null==e||null===(d=e.ads)||void 0===d?void 0:d[o],adIndex:o}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",v,"Fired:".concat(Math.round(a.currentTime())),"AD_POD:",e),fetch(g))}catch(e){k.e(e)}finally{k.f()}},P=function(e){var r=Math.floor(e/60),n=Math.floor(e%60);return"".concat(r,":").concat(n.toString().padStart(2,"0"))},O=function(e){var r={},n=e.split("?")[1];if(!n)return r;var t,o=f(n.split("&"));try{for(o.s();!(t=o.n()).done;){var a=t.value.split("="),i=s(a,2),l=i[0],u=i[1];r[decodeURIComponent(l)]=decodeURIComponent(u||"")}}catch(e){o.e(e)}finally{o.f()}for(var d={},c=0,v=Object.entries(r);c<v.length;c++){var p=s(v[c],2),m=p[0],y=p[1];if(m.startsWith("ads."))d[m.replace(/^ads\./,"")]=y;else d[m]=y}return d},o=r.getPlayer(n),u=t.replace("dash","session").replace("master","session"),u=i.replaceMacros(u,n,{}),p=O(u),u=u.split("?")[0],e.next=10,fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:b({},p)})});case 10:return m=e.sent,e.next=13,m.json();case 13:y=e.sent,h="https://"+new URL(u).hostname,g=y.trackingUrl,S=y.manifestUrl,k=h+g,j=h+S,console.log("%c TRACKING URL","background: #bdf369; color: #000",k),null!=t&&t.includes(".mpd")?(w=(null==o||null===(q=o.currentSource())||void 0===q?void 0:q.keySystemOptions)||null,i.loadVideo(n,{src:j,type:"application/x-mpegURL",keySystemOptions:w})):(I=(null==o||null===(C=o.currentSource())||void 0===C?void 0:C.keySystems)||null,i.loadVideo(n,{src:j,type:"application/x-mpegURL",keySystems:I})),o.one("loadeddata",(function(){T(k)})),T=function(){var e=d(c.mark((function e(t){var o,i,s,u,d,p,f,m,y,b,h,g,S,k,j,q,w;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return i=e.sent,e.next=5,i.json();case 5:s=e.sent,u=s.avails,d=[],p=r.getPlayer(n),f=p.controlBar.progressControl,m=f.seekBar.el(),u.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&&d.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)})})),d.forEach((function(e){var r=e.markerPositionInSeconds,n=p.duration();if(!(r>n)){var t=r/n*100,o=document.createElement("div");o.className="vjs-seekbar-marker",o.style.left="".concat(t,"%"),o.style.position="absolute",o.style.top="0",o.style.bottom="0",o.style.width="2px",o.style.backgroundColor="#fecc09",o.style.left="".concat(t,"%"),o.style.pointerEvents="none",m.appendChild(o)}})),y=new Map,b=-1,p.on("timeupdate",r.throttle((function(){var e=Math.floor(p.currentTime());if(e!==b){b=e;for(var r=!1,n=function(){var n=o[t],i=n.startTimeInSeconds,s=n.durationInSeconds,u=n.ads,d=Math.floor(i+s);if(e>=i&&e<=d){r=!0,y.set(i,!0),a.keyboardManager.disable(),f.el().style.visibility="hidden";for(var c=e-i,v=0,p=0,m=0;m<u.length;m++){var b,g=null==u||null===(b=u[m])||void 0===b?void 0:b.durationInSeconds;if(c<v+g){p=m;break}v+=g}var S=u[p],k=c-v,j=Math.max(0,S.durationInSeconds-k),w=Math.round(j);h.style.display="block",q.textContent="".concat(p+1," of ").concat(u.length," • ").concat(P(w));var C=[];return u.forEach((function(e){var r=e.trackingEvents.filter((function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"].includes(e.eventType)}));C.push.apply(C,l(r))})),x(n,C,p),"break"}},t=0,o=d;t<o.length;t++){if("break"===n())break}r||(h.style.display="none",f.el().style.visibility="visible",a.keyboardManager.enable())}}),1e3)),p.on("seeked",(function(){for(var e=null,r=0,n=d;r<n.length;r++){var t=n[r],o=null==p?void 0:p.currentTime(),a=t.startTimeInSeconds,i=t.durationInSeconds;o>Math.floor(a+i)&&!y.has(a)&&(e=a,y.set(a,!0))}e&&(p.currentTime(e),console.log("seeking back to",e),e=null)})),(h=document.createElement("div")).className="ssai-ad-container",(g=document.createElement("div")).className="sponsored-adbox",(S=document.createElement("div")).className="sponsored-text",S.textContent="Sponsored Ad",(k=document.createElement("div")).className="ad-info-icon",j=r.parseSvgString(v.InfoIcon()),k.appendChild(j),g.append(S),g.append(k),(q=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(w=document.createElement("div")).className="ad-visit-advertiser",w.textContent="Visit Advertiser",(null===(o=document.getElementsByClassName("tvProviderImage"))||void 0===o?void 0:o[0])&&(w.style.right="8.6rem"),h.append(g),h.append(q),h.append(w),p.el().appendChild(h);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),M=new Map;case 24:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}var g=function(e,n){var t,a,i,l,s,u,d,c,v,p,f,m,y=r.getPlayer(e),b=(null==n?void 0:n.theme)||{},h=o.dom.$(".vjs-play-progress"),g=o.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(t=window)||void 0===t||null===(a=t.app_data)||void 0===a||null===(i=a.appcmsMain)||void 0===i||null===(l=i.brand)||void 0===l||null===(s=l.cta)||void 0===s||null===(u=s.primary)||void 0===u?void 0:u.backgroundColor)),h&&(h.style.background="".concat(null===(d=window)||void 0===d||null===(c=d.app_data)||void 0===c||null===(v=c.appcmsMain)||void 0===v||null===(p=v.brand)||void 0===p||null===(f=p.cta)||void 0===f||null===(m=f.primary)||void 0===m?void 0:m.backgroundColor));var S=y.getChild("BigPlayButton")||null;(null==b?void 0:b.progressBarColor)&&h&&(h.style.background=b.progressBarColor),(null==b?void 0:b.playButtonBackgroundColor)&&S&&(S.el().style.background=b.playButtonBackgroundColor),(null==b?void 0:b.playButtonColor)&&g&&(g.style.color=b.playButtonColor),(null==b?void 0:b.playButtonType)&&("square"==(null==b?void 0:b.playButtonType)?S.el().style.borderRadius=".3em":S.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(t,o){r.getPlayer(t).addClass("skin_vlone"),p(t,o),function(r,t){var o,l,s,u,d,c,v=null==t||null===(o=t.res)||void 0===o||null===(l=o.video)||void 0===l?void 0:l.isSSAIEnabled,p=i.getSource(null==t?void 0:t.res,r)||{},f=p.src;(null==t||null===(s=t.relatedVideos)||void 0===s||null===(u=s.content)||void 0===u?void 0:u.length)>0&&e.addVideoSelector(r,null==t?void 0:t.relatedVideos);null!=t&&null!==(d=t.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2(r,t);(null==t||null===(c=t.streams)||void 0===c?void 0:c.length)>1&&e.addMulticamSelector(r,null==t?void 0:t.streams);n.addTVProviderImage(r,t),a.initialiseKeyboardEvents(r,t),v&&function(e,r){h.apply(this,arguments)}(r,f)}(t,o),g(t,o)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./generic-
|
|
1
|
+
"use strict";var e=require("./generic-c8973d16.js"),r=require("./skin-34fbc337.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),require("@babel/runtime/helpers/toConsumableArray");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(n){Promise.resolve().then((function(){return require("./skin-225252ff.js")})).then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),i(),function(i){var n=document.getElementById("".concat(i)),t=r.getPlayer(i);n&&n.addEventListener("touchstart",(function(){t.paused()?e.play(i):e.pause(i)}))}(n)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-1a3febef.js"),l=require("./generic-
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-1a3febef.js"),l=require("./generic-c8973d16.js"),s=require("./skin-34fbc337.js"),d=require("./autoNextVideo-99cff787.js"),c=require("./localisation-56e0a999.js");function u(e){var t=v();return function(){var n,r=i(e);if(t){var a=i(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-6edeeb8a.js");var m=r.getComponent("Component"),p=function(o){n(v,m);var i=u(v);function v(t){var n,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),(r=i.call(this,t,a)).playerId=a.playerId,r.seriesData=a.sres,r.videos=a.related.content,r.cb=(null==a||null===(n=a.related)||void 0===n?void 0:n.cb)||null,r.autoNext=(null==a||null===(o=a.related)||void 0===o?void 0:o.autoNext)||!1,r.currentVideoData=a.res,r.initialiseStructure(),r.loadCSS(),r.autoNext&&(l.setVideoIdx(0),d.autoPlayNext({playerId:r.playerId,content:r.videos,cb:r.cb})),r}return t(v,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-fcdf11eb.js")})).then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",s.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),r.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),s.detectOrientationChange(this.playerId,n)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=r.dom.createEl("div",{className:"video-selector-head"}),i=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var d=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var n,o,i,a,d,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),l.load(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||(null===(i=window)||void 0===i||null===(a=i.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(d=t.videos[e])||void 0===d?void 0:d.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(o,i),r.dom.appendContent(o,d),r.dom.appendContent(e,o),r.dom.appendContent(e,u),s.handleDrawerResizing(this.playerId,e)}}]),v}();exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-1a3febef.js"),l=require("./generic-
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-1a3febef.js"),l=require("./generic-c8973d16.js"),d=require("./skin-34fbc337.js"),s=require("./autoNextVideo-99cff787.js"),c=require("./localisation-56e0a999.js");function u(e){var t=v();return function(){var i,r=o(e);if(t){var a=o(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return n(this,i)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-fbd6fefb.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-6edeeb8a.js");var m=r.getComponent("Component"),p=function(n){i(v,m);var o=u(v);function v(t){var i,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),(r=o.call(this,t,a)).playerId=a.playerId,r.seriesData=a.sres,r.videos=a.related.content,r.cb=(null==a||null===(i=a.related)||void 0===i?void 0:i.cb)||null,r.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,r.currentVideoData=a.res,r.initialiseStructure(),r.loadCSS(),r.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:r.playerId,content:r.videos,cb:r.cb})),r}return t(v,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.PlaylistIcon())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-b6e03076.js")})).then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),i=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(d.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),d.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),r.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),d.detectOrientationChange(this.playerId,i)}}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open")};for(var s=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var i,n,o,a,s,c,m,p,h=r.dom.createEl("div",{className:"video -".concat(e)}),b=r.dom.createEl("div",{className:"recommended -".concat(e)});b.setAttribute("video-idx",e),b.onclick=function(){l.setVideoIdx(e+1);for(var i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].style.border="none";d.highlightVideo(e),l.load(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(d.impolicy16x9(null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||d.impolicy16x9(null===(o=window)||void 0===o||null===(a=o.app_data)||void 0===a||null===(s=a.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),b.append(y);var f=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(p=t.videos[e])||void 0===p?void 0:p.title)||"")});r.dom.appendContent(h,b),r.dom.appendContent(h,f),r.dom.appendContent(v,h),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(n,s),r.dom.appendContent(n,o),r.dom.appendContent(e,n),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),v}();exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as n,f as t,P as i,O as o,Q as e}from"./generic-
|
|
1
|
+
import{F as n,f as t,P as i,O as o,Q as e}from"./generic-b082d36c.js";import{a}from"./util-1c8c0f16.js";import{g as c,h as s}from"./skin-b8df984d.js";var u,r=0,f=0,l=function(l){clearTimeout(r);var d=null==l?void 0:l.content;u=null==l?void 0:l.cb;var h=l.playerId;a(h,(function(){var a=c(h);0!==(null==a?void 0:a.currentTime())&&((f=o())>d.length-1||(e(f+1),n(h,d[f].id).then((function(n){s(f,h),t(n.response),f++,v(n,idx+1)})).catch((function(n){v(n),s(f,h),f++,r=setTimeout((function(){i(h)&&m(f,h,d)}),5e3)}))))}))},m=function t(i,o,a,c){f=i,i>a.length-1||(e(f+1),n(o,a[i].id).then((function(n){s(f,o),f++,v(n,i+1)})).catch((function(n){v(n),setTimeout((function(){s(f,o),f++,t(f,o,a)}),5e3)})))},v=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;u&&u(n,t)};export{l as a,m as s};
|
package/esm/bundle.css
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
.video-js.skin_vlone .vjs-control-bar .vjs-progress-control.vjs-control {
|
|
4
7
|
height: 0.7em;
|
|
5
8
|
position: absolute;
|
|
@@ -146,9 +149,6 @@
|
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
152
|
/* CSS for videojs-dvr-seekbar */
|
|
153
153
|
|
|
154
154
|
.video-js.vjs-dvr-seekbar {
|
|
@@ -392,6 +392,7 @@
|
|
|
392
392
|
|
|
393
393
|
|
|
394
394
|
|
|
395
|
+
|
|
395
396
|
.video-js .multicamera-parent.default{
|
|
396
397
|
height: 345px;
|
|
397
398
|
position: absolute;
|
|
@@ -473,7 +474,6 @@
|
|
|
473
474
|
|
|
474
475
|
|
|
475
476
|
|
|
476
|
-
|
|
477
477
|
/* nextep */
|
|
478
478
|
.next-ep-preview{
|
|
479
479
|
position: absolute;
|
|
@@ -514,6 +514,21 @@
|
|
|
514
514
|
.next-ep-content:hover{
|
|
515
515
|
cursor: pointer;
|
|
516
516
|
}
|
|
517
|
+
.next-heading-wrapper{
|
|
518
|
+
display: flex;
|
|
519
|
+
flex-direction: unset;
|
|
520
|
+
justify-content: space-between;
|
|
521
|
+
align-items: center;
|
|
522
|
+
}
|
|
523
|
+
.next-ep-close{
|
|
524
|
+
align-items: right;
|
|
525
|
+
font-weight: bold;
|
|
526
|
+
font-size: 18px;
|
|
527
|
+
margin-bottom: 8px;
|
|
528
|
+
font-size: 20px;
|
|
529
|
+
border-radius: 3px;
|
|
530
|
+
cursor: pointer;
|
|
531
|
+
}
|
|
517
532
|
|
|
518
533
|
@media (max-width:600px){
|
|
519
534
|
.next-ep-preview{
|
|
@@ -534,6 +549,38 @@
|
|
|
534
549
|
margin-left: 8px;
|
|
535
550
|
}
|
|
536
551
|
}
|
|
552
|
+
/* a wrapper element that tracks the mouse vertically */
|
|
553
|
+
.vjs-thumbnail-holder {
|
|
554
|
+
position: absolute;
|
|
555
|
+
left: -1000px;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/* the thumbnail image itself */
|
|
559
|
+
.vjs-thumbnail {
|
|
560
|
+
position: absolute;
|
|
561
|
+
left: 0;
|
|
562
|
+
bottom: 1.3em;
|
|
563
|
+
opacity: 0;
|
|
564
|
+
transition: opacity .2s ease;
|
|
565
|
+
-webkit-transition: opacity .2s ease;
|
|
566
|
+
-moz-transition: opacity .2s ease;
|
|
567
|
+
-mz-transition: opacity .2s ease;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/* fade in the thumbnail when hovering over the progress bar */
|
|
571
|
+
/* .fake-active is needed for Android only. It's removed on touchend/touchecancel */
|
|
572
|
+
.vjs-progress-control:hover .vjs-thumbnail,
|
|
573
|
+
.vjs-progress-control.fake-active .vjs-thumbnail,
|
|
574
|
+
.vjs-progress-control:active .vjs-thumbnail {
|
|
575
|
+
opacity: 1;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/* ... but hide the thumbnail when hovering directly over it */
|
|
579
|
+
.vjs-progress-control:hover .vjs-thumbnail:hover,
|
|
580
|
+
.vjs-progress-control:active .vjs-thumbnail:active {
|
|
581
|
+
opacity: 0;
|
|
582
|
+
}
|
|
583
|
+
|
|
537
584
|
.video-js.vjs-quality-menu {
|
|
538
585
|
display: block;
|
|
539
586
|
}
|
|
@@ -604,38 +651,6 @@
|
|
|
604
651
|
-webkit-animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite;
|
|
605
652
|
animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite;
|
|
606
653
|
}
|
|
607
|
-
/* a wrapper element that tracks the mouse vertically */
|
|
608
|
-
.vjs-thumbnail-holder {
|
|
609
|
-
position: absolute;
|
|
610
|
-
left: -1000px;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
/* the thumbnail image itself */
|
|
614
|
-
.vjs-thumbnail {
|
|
615
|
-
position: absolute;
|
|
616
|
-
left: 0;
|
|
617
|
-
bottom: 1.3em;
|
|
618
|
-
opacity: 0;
|
|
619
|
-
transition: opacity .2s ease;
|
|
620
|
-
-webkit-transition: opacity .2s ease;
|
|
621
|
-
-moz-transition: opacity .2s ease;
|
|
622
|
-
-mz-transition: opacity .2s ease;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/* fade in the thumbnail when hovering over the progress bar */
|
|
626
|
-
/* .fake-active is needed for Android only. It's removed on touchend/touchecancel */
|
|
627
|
-
.vjs-progress-control:hover .vjs-thumbnail,
|
|
628
|
-
.vjs-progress-control.fake-active .vjs-thumbnail,
|
|
629
|
-
.vjs-progress-control:active .vjs-thumbnail {
|
|
630
|
-
opacity: 1;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
/* ... but hide the thumbnail when hovering directly over it */
|
|
634
|
-
.vjs-progress-control:hover .vjs-thumbnail:hover,
|
|
635
|
-
.vjs-progress-control:active .vjs-thumbnail:active {
|
|
636
|
-
opacity: 0;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
654
|
.vjs-poster {
|
|
640
655
|
display: inline-block;
|
|
641
656
|
vertical-align: middle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{C as r,
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{C as r,e as c}from"./icons-8e47e640.js";import{g as l,d as s,e as d}from"./captions-135a6d13.js";import{e as p,s as m,f as u,j as v}from"./skin-b8df984d.js";import"@babel/runtime/helpers/toConsumableArray";function f(e){var t=h();return function(){var n,i=o(e);if(t){var r=o(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.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 y=i.getComponent("Component"),g=function(a){n(h,y);var o=f(h);function h(t){var n,a,i,r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,h),(r=o.call(this,t,c)).playerId=c.playerId,r.seriesData=c.sres,r.currentVideoData=c.res,r.initialiseStructure(),r.loadCSS(),null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(i=a.style)||void 0===i||i.setProperty("display","none","important"),r}return t(h,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(r())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./caption-settings-cb47408f.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=l(this.playerId);null==t||t.map((function(t){return s(e.playerId,t.id)}));var n=this.el(),a=i.dom.createEl("div",{className:"caption-selection-container hidden"});i.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(p(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",m(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),i.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),u(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=i.dom.createEl("div",{className:"caption-selector-head"}),a=i.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(c())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=i.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),r=i.dom.createEl("div",{className:"caption-selector-content"}),l=i.dom.createEl("div",{className:"caption-container"}),s=this.createLanguageContanier();i.dom.appendContent(l,s),i.dom.appendContent(n,a),i.dom.appendContent(n,o),i.dom.appendContent(e,n),i.dom.appendContent(e,r),i.dom.appendContent(r,l),v(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=i.dom.createEl("div",{className:"caption-language-container"}),n=i.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});i.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=i.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important")),l(e.playerId).map((function(t){return s(e.playerId,t.id)}))},i.dom.appendContent(a,r),i.dom.appendContent(a,o),i.dom.appendContent(t,a);for(var c=l(this.playerId),p=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==c||null===(a=c[n])||void 0===a?void 0:a.label;var l=i.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});l.onchange=function(t){d(e.playerId,c[n].id)},l.setAttribute("type","radio"),i.dom.appendContent(o,l),i.dom.appendContent(o,r),i.dom.appendContent(t,o)},m=0;m<c.length;m++)p(m);return t}},{key:"createFontSizeContainer",value:function(){var e=i.dom.createEl("div",{className:"caption-font-container"}),t=i.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});i.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var c=document.createElement("div");c.className="fontsize - ".concat(a),c.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var l=i.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});l.setAttribute("type","radio"),l.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},i.dom.appendContent(r,l),i.dom.appendContent(r,c),i.dom.appendContent(e,r)}return e}}]),h}();export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{D as a,A as s}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{D as a,A as s}from"./generic-b082d36c.js";import{g as c}from"./renditions-aa307468.js";import{g as d,p as u}from"./skin-b8df984d.js";import{g as p}from"./localisation-0bf399a1.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=p("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=u(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=u(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-e9c353f4.js").then((function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=d(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))}))},b=function(e,t,n){import("./nextEpisodeButton-b8e68684.js").then((function(r){var o=r.default,l=d(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)}))},j=function(e,t,n){import("./series-c8f7dd3f.js").then((function(r){var o=r.seriesModule,l=d(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",(function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)}))},c=0;c<a.length;c++)s(c)}))},k=function(e,t){import("./videoSelector-fedde959.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))},S=function(e,t){import("./caption-settings-01ea9cd7.js").then((function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)}))},E=function(e,t){import("./settings-icon-73ca5775.js").then((function(n){var r,o,l,a,s=n.default,c=d(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)}))},O=function(e,t){import("./playlist-636b2284.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)}))},w=function(e,t){import("./series-v2-c0c53318.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)}))},I=function(e,t){import("./multicamv2-34b22ae4.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},M=function(e,t){var n=d(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=d(e).el(),n=0,r=d(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",(function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e})),window._multiplayer_dbTapHandler=o},D=function(e,t){import("./videoSelector-4b3f5671.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))},L=function(e,t){import("./series-v2-69cfa9f3.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)}))},N=function(e,t){import("./multicamv2-51da2821.js").then((function(n){var r=n.default,o=d(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))};export{B as a,j as b,b as c,y as d,C as e,E as f,S as g,M as h,g as i,D as j,N as k,O as l,L as m,P as n,k as o,w as p,I as q};
|