@viewlift/player-backup 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/cjs/{autoNextVideo-30d2ba0d.js → autoNextVideo-a37b3dc5.js} +1 -1
  2. package/cjs/bundle.css +159 -159
  3. package/cjs/{caption-settings-b5487677.js → caption-settings-70c1f65c.js} +1 -1
  4. package/cjs/{icons-ef339913.js → icons-efaa15a2.js} +1 -1
  5. package/cjs/index-f54eda57.js +1 -0
  6. package/cjs/index.js +1 -1
  7. package/cjs/{keyboardShortcuts-de1885ab.js → keyboardShortcuts-46f8b825.js} +1 -1
  8. package/cjs/library-3d91ebec.js +1 -0
  9. package/cjs/{multicam-c4bd27a2.js → multicam-f0862106.js} +1 -1
  10. package/cjs/{multicamv2-26cd7c00.js → multicamv2-4c46595c.js} +1 -1
  11. package/cjs/{mwebPotraitTray-82b44995.js → mwebPotraitTray-b61b0e9c.js} +1 -1
  12. package/cjs/{nextEpisodeButton-5aaa6ef4.js → nextEpisodeButton-5626480b.js} +1 -1
  13. package/cjs/{playlist-0960077a.js → playlist-098c146c.js} +1 -1
  14. package/cjs/{series-711733ad.js → series-eb53c50e.js} +1 -1
  15. package/cjs/{skin-c0776b9c.js → skin-13771a6e.js} +1 -1
  16. package/cjs/skin-2c75e26e.js +1 -0
  17. package/cjs/{skin-8f775238.js → skin-3c73ebc7.js} +1 -1
  18. package/cjs/{skin-491de686.js → skin-67c35b56.js} +1 -1
  19. package/cjs/{videoSelector-b1ab5536.js → videoSelector-f6304f8a.js} +1 -1
  20. package/esm/{autoNextVideo-cde7d553.js → autoNextVideo-8433eaa6.js} +1 -1
  21. package/esm/bundle.css +159 -159
  22. package/esm/{caption-settings-5aaefa27.js → caption-settings-017a8fc0.js} +1 -1
  23. package/esm/{icons-7ec6ae83.js → icons-3f177eeb.js} +1 -1
  24. package/esm/index-9eabcfcc.js +1 -0
  25. package/esm/index.js +1 -1
  26. package/esm/{keyboardShortcuts-7395e7d5.js → keyboardShortcuts-bfa0a4fa.js} +1 -1
  27. package/esm/library-6f9a851b.js +1 -0
  28. package/esm/{multicam-987ef4de.js → multicam-8a81053b.js} +1 -1
  29. package/esm/{multicamv2-545ec7ce.js → multicamv2-d4a48c55.js} +1 -1
  30. package/esm/{mwebPotraitTray-1d63c5c4.js → mwebPotraitTray-49c9f4f9.js} +1 -1
  31. package/esm/{nextEpisodeButton-d86fa7d9.js → nextEpisodeButton-a5e416da.js} +1 -1
  32. package/esm/{playlist-b567c755.js → playlist-b85b86d7.js} +1 -1
  33. package/esm/{series-b6434c3c.js → series-a4eac35e.js} +1 -1
  34. package/esm/{skin-7fd3473e.js → skin-1d80d25c.js} +1 -1
  35. package/esm/{skin-f30e1ef1.js → skin-289d75c2.js} +1 -1
  36. package/esm/skin-3545da50.js +1 -0
  37. package/esm/{skin-106a5599.js → skin-94f5e8f1.js} +1 -1
  38. package/esm/videoSelector-554246de.js +1 -0
  39. package/package.json +1 -1
  40. package/cjs/index-292883f2.js +0 -1
  41. package/cjs/skin-3fe1f67b.js +0 -1
  42. package/esm/index-e2100e91.js +0 -1
  43. package/esm/skin-9d09e161.js +0 -1
  44. package/esm/videoSelector-c5b48ecf.js +0 -1
@@ -1 +1 @@
1
- "use strict";var e=require("./index-292883f2.js");exports.initialiseKeyboardEvents=function(r,t){var i,u,l=e.getPlayer(r),n=null==l||null===(i=l.controlBar)||void 0===i||null===(u=i.playToggle)||void 0===u?void 0:u.el_,o=document.getElementsByTagName("video")[0];o&&o.addEventListener("keydown",(function(i){switch(i.key){case" ":return i.preventDefault(),o&&o.focus(),void(n&&n.click());case"m":case"M":return i.preventDefault(),o&&o.focus(),void(l.muted()?l.muted(!1):l.muted(!0));case"f":i.preventDefault(),o&&o.focus();var u=document.querySelector(".vjs-fullscreen-control");return void(u&&u.click());case"F":i.preventDefault();var c=document.querySelector(".vjs-fullscreen-control");return void(c&&c.click());case"ArrowLeft":if((1==t.liveVideo||1==t.liveui)&&0==t.liveui)break;return i.preventDefault(),o&&o.focus(),void e.rewind(r,10);case"ArrowRight":if(1==t.liveVideo||1==t.liveui)break;return i.preventDefault(),o&&o.focus(),void e.skip(r,10);default:return}}))};
1
+ "use strict";var e=require("./index-f54eda57.js");exports.initialiseKeyboardEvents=function(r,t){var i,u,l=e.getPlayer(r),n=null==l||null===(i=l.controlBar)||void 0===i||null===(u=i.playToggle)||void 0===u?void 0:u.el_,o=document.getElementsByTagName("video")[0];o&&o.addEventListener("keydown",(function(i){switch(i.key){case" ":return i.preventDefault(),o&&o.focus(),void(n&&n.click());case"m":case"M":return i.preventDefault(),o&&o.focus(),void(l.muted()?l.muted(!1):l.muted(!0));case"f":i.preventDefault(),o&&o.focus();var u=document.querySelector(".vjs-fullscreen-control");return void(u&&u.click());case"F":i.preventDefault();var c=document.querySelector(".vjs-fullscreen-control");return void(c&&c.click());case"ArrowLeft":if((1==t.liveVideo||1==t.liveui)&&0==t.liveui)break;return i.preventDefault(),o&&o.focus(),void e.rewind(r,10);case"ArrowRight":if(1==t.liveVideo||1==t.liveui)break;return i.preventDefault(),o&&o.focus(),void e.skip(r,10);default:return}}))};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/regenerator"),t=require("./index-f54eda57.js"),i=require("video.js");require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf");var s=function(){var t=e(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-dash");case 2:case"end":return e.stop()}}),e)})));return function(){return t.apply(this,arguments)}}(),n=function(){var t=e(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-eme");case 2:case"end":return e.stop()}}),e)})));return function(){return t.apply(this,arguments)}}();exports.importAirplay=function(){import("@silvermine/videojs-airplay").then((function(e){e.default(i)}))},exports.importChromecast=function(){t.loadScript("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),import("@silvermine/videojs-chromecast").then((function(e){e.default(i)}))},exports.importIMA=function(){import("videojs-contrib-ads"),import("videojs-ima"),t.loadScript("https://imasdk.googleapis.com/js/sdkloader/ima3.js")},exports.loadDashLibrary=s,exports.loadEMELibrary=n;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/assertThisInitialized"),l=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),s=require("video.js"),u=require("./loader-393b838a.js"),a=require("./index-292883f2.js");function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,l=r(e);if(t){var o=r(this).constructor;i=Reflect.construct(l,arguments,o)}else i=l.apply(this,arguments);return n(this,i)}}require("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray");var d=s.getComponent("Component"),v=function(n){l(v,d);var r=c(v);function v(t){var l,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),l=r.call(this,t,n),o(i(l),"multicamCssPositioning",(function(e,t){var n,r,o,s,u,a,c,d,v=window.getComputedStyle(document.getElementById(t),null),m=v.getPropertyValue("height"),f=v.getPropertyValue("width"),h=m.slice(0,-2);f.slice(0,-2)-135<=135?(e.style.bottom="290px",e.style.height="352px"):"live"==l.config.skin&&(null===(n=i(l))||void 0===n||null===(r=n.config)||void 0===r||!r.liveui)&&(null===(o=i(l))||void 0===o||null===(s=o.config)||void 0===s||!s.liveVideo)||null!==(u=i(l))&&void 0!==u&&null!==(a=u.config)&&void 0!==a&&a.liveui&&null!==(c=i(l))&&void 0!==c&&null!==(d=c.config)&&void 0!==d&&d.liveVideo?(e.style.bottom="".concat(h-135,"px"),e.style.height="".concat(h-85,"px")):(e.style.bottom="3rem",e.style.height="".concat(h-105,"px"))})),l.playerId=n.playerId,l.streams=null==n?void 0:n.streams,l.config=null==n?void 0:n.config,l.createUI(null==n?void 0:n.streams),l}return t(v,[{key:"createEl",value:function(){return s.dom.createEl("div",{className:"multicamera-parent"})}},{key:"createUI",value:function(e){var t,i,l,n,r,o,s=this,u=this.el();null!=this&&null!==(t=this.config)&&void 0!==t&&t.liveui&&null!=this&&null!==(i=this.config)&&void 0!==i&&i.liveVideo||0==(null==this||null===(l=this.config)||void 0===l?void 0:l.liveui)&&0==(null==this||null===(n=this.config)||void 0===n?void 0:n.liveVideo)?null==u||null===(r=u.classList)||void 0===r||r.add("".concat(this.config.skin)):null==u||null===(o=u.classList)||void 0===o||o.add("default"),this.loadCSS();for(var a=0;a<e.length;a++)this.createTile(e[a],a);this.multicamCssPositioning(u,this.playerId),window.onresize=function(){s.multicamCssPositioning(u,s.playerId)}}},{key:"getOffset",value:function(e){var t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}},{key:"createTile",value:function(e,t){var i=this,l=this.el(),n=s.dom.createEl("div",{className:"tile ".concat(t)});0==t&&(n.style.border="2px solid red"),n.style.backgroundImage="url(".concat(e.img,")"),s.dom.appendContent(l,n);var r=sessionStorage.getItem("token");return n.addEventListener("click",(function(t){u.showLoader(i.playerId),i.removeSelectedTile();var l=document.getElementsByClassName("".concat(t.srcElement.className))[0];l&&(l.style.border="2px solid red"),a.load(i.playerId,e.id,r).then((function(e){a.play(i.playerId)}))})),l}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicam-a41fe4a6.js")})).then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}}]),v}();exports.default=v;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/assertThisInitialized"),l=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),s=require("video.js"),u=require("./loader-393b838a.js"),a=require("./index-f54eda57.js");function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,l=r(e);if(t){var o=r(this).constructor;i=Reflect.construct(l,arguments,o)}else i=l.apply(this,arguments);return n(this,i)}}require("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray");var d=s.getComponent("Component"),v=function(n){l(v,d);var r=c(v);function v(t){var l,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),l=r.call(this,t,n),o(i(l),"multicamCssPositioning",(function(e,t){var n,r,o,s,u,a,c,d,v=window.getComputedStyle(document.getElementById(t),null),m=v.getPropertyValue("height"),f=v.getPropertyValue("width"),h=m.slice(0,-2);f.slice(0,-2)-135<=135?(e.style.bottom="290px",e.style.height="352px"):"live"==l.config.skin&&(null===(n=i(l))||void 0===n||null===(r=n.config)||void 0===r||!r.liveui)&&(null===(o=i(l))||void 0===o||null===(s=o.config)||void 0===s||!s.liveVideo)||null!==(u=i(l))&&void 0!==u&&null!==(a=u.config)&&void 0!==a&&a.liveui&&null!==(c=i(l))&&void 0!==c&&null!==(d=c.config)&&void 0!==d&&d.liveVideo?(e.style.bottom="".concat(h-135,"px"),e.style.height="".concat(h-85,"px")):(e.style.bottom="3rem",e.style.height="".concat(h-105,"px"))})),l.playerId=n.playerId,l.streams=null==n?void 0:n.streams,l.config=null==n?void 0:n.config,l.createUI(null==n?void 0:n.streams),l}return t(v,[{key:"createEl",value:function(){return s.dom.createEl("div",{className:"multicamera-parent"})}},{key:"createUI",value:function(e){var t,i,l,n,r,o,s=this,u=this.el();null!=this&&null!==(t=this.config)&&void 0!==t&&t.liveui&&null!=this&&null!==(i=this.config)&&void 0!==i&&i.liveVideo||0==(null==this||null===(l=this.config)||void 0===l?void 0:l.liveui)&&0==(null==this||null===(n=this.config)||void 0===n?void 0:n.liveVideo)?null==u||null===(r=u.classList)||void 0===r||r.add("".concat(this.config.skin)):null==u||null===(o=u.classList)||void 0===o||o.add("default"),this.loadCSS();for(var a=0;a<e.length;a++)this.createTile(e[a],a);this.multicamCssPositioning(u,this.playerId),window.onresize=function(){s.multicamCssPositioning(u,s.playerId)}}},{key:"getOffset",value:function(e){var t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}},{key:"createTile",value:function(e,t){var i=this,l=this.el(),n=s.dom.createEl("div",{className:"tile ".concat(t)});0==t&&(n.style.border="2px solid red"),n.style.backgroundImage="url(".concat(e.img,")"),s.dom.appendContent(l,n);var r=sessionStorage.getItem("token");return n.addEventListener("click",(function(t){u.showLoader(i.playerId),i.removeSelectedTile();var l=document.getElementsByClassName("".concat(t.srcElement.className))[0];l&&(l.style.border="2px solid red"),a.load(i.playerId,e.id,r).then((function(e){a.play(i.playerId)}))})),l}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicam-a41fe4a6.js")})).then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}}]),v}();exports.default=v;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),o=require("./icons-ef339913.js"),i=require("./index-292883f2.js");function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,s=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(s,arguments,o)}else r=s.apply(this,arguments);return n(this,r)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized");var c=s.getComponent("Component"),d=function(n){r(d,c);var a=l(d);function d(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),(r=a.call(this,t,n)).playerId=n.playerId,r.seriesData=n.sres,r.streams=n.streams,r.currentVideoData=n.res,r.initialiseStructure(),r.loadCSS(),r}return t(d,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(o.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-743c413d.js")})).then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(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 r=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(r,"px"),document.getElementById(this.playerId).style.overflow="hidden",s.dom.appendContent(e,t),this.addFunctionality(t)}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),n=s.dom.createEl("div",{className:"stream-selector-head"}),a=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(o.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var l=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=s.dom.createEl("div",{className:"stream-selector-content"}),d=s.dom.createEl("div",{className:"stream-tray"}),u=function(e){var r,n=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(o.SelectedStream())});0==e&&(n.classList.add("selected"),n.style.border="4px solid red"),n.onclick=function(){for(var r=s.dom.$$(".stream"),a=0;a<r.length;a++)r[a].style.border="none",r[a].classList.remove("selected");n.classList.add("selected"),n.style.border="4px solid red",i.load(t.playerId,t.streams[e].id,sessionStorage.getItem("token")).then((function(e){console.log(e)})).catch((function(e){console.log(e)}))},n.style.backgroundImage="url(".concat(t.streams[e].img,")");var a=document.createElement("img");a.className="stream-thumbnail-image",a.src="".concat(null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img),a.alt="No Thumbnail Available",n.append(a),s.dom.appendContent(d,n),s.dom.appendContent(c,d)},m=0;m<this.streams.length;m++)u(m);s.dom.appendContent(n,a),s.dom.appendContent(n,l),s.dom.appendContent(e,n),s.dom.appendContent(e,c),i.getPlayer(this.playerId).on("fullscreenchange",(function(){var r=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(r,"px")}))}}]),d}();exports.default=d;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),o=require("./icons-efaa15a2.js"),i=require("./index-f54eda57.js");function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,s=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(s,arguments,o)}else r=s.apply(this,arguments);return n(this,r)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized");var c=s.getComponent("Component"),d=function(n){r(d,c);var a=l(d);function d(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),(r=a.call(this,t,n)).playerId=n.playerId,r.seriesData=n.sres,r.streams=n.streams,r.currentVideoData=n.res,r.initialiseStructure(),r.loadCSS(),r}return t(d,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(o.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-743c413d.js")})).then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(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 r=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(r,"px"),document.getElementById(this.playerId).style.overflow="hidden",s.dom.appendContent(e,t),this.addFunctionality(t)}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),n=s.dom.createEl("div",{className:"stream-selector-head"}),a=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(o.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var l=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=s.dom.createEl("div",{className:"stream-selector-content"}),d=s.dom.createEl("div",{className:"stream-tray"}),u=function(e){var r,n=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(o.SelectedStream())});0==e&&(n.classList.add("selected"),n.style.border="4px solid red"),n.onclick=function(){for(var r=s.dom.$$(".stream"),a=0;a<r.length;a++)r[a].style.border="none",r[a].classList.remove("selected");n.classList.add("selected"),n.style.border="4px solid red",i.load(t.playerId,t.streams[e].id,sessionStorage.getItem("token")).then((function(e){console.log(e)})).catch((function(e){console.log(e)}))},n.style.backgroundImage="url(".concat(t.streams[e].img,")");var a=document.createElement("img");a.className="stream-thumbnail-image",a.src="".concat(null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img),a.alt="No Thumbnail Available",n.append(a),s.dom.appendContent(d,n),s.dom.appendContent(c,d)},m=0;m<this.streams.length;m++)u(m);s.dom.appendContent(n,a),s.dom.appendContent(n,l),s.dom.appendContent(e,n),s.dom.appendContent(e,c),i.getPlayer(this.playerId).on("fullscreenchange",(function(){var r=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(r,"px")}))}}]),d}();exports.default=d;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),l=require("@babel/runtime/helpers/possibleConstructorReturn"),n=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./loader-393b838a.js"),i=require("./index-292883f2.js");function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var s=n(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return l(this,r)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized");var c=o.getComponent("Component"),d=function(l){r(d,c);var n=a(d);function d(t){var r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),(r=n.call(this,t,l)).playerId=l.playerId,r.config=l.config,r.createUI(null==l?void 0:l.config.streams),r}return t(d,[{key:"createEl",value:function(){return o.dom.createEl("div",{className:"mweb-potrait-parent"})}},{key:"createUI",value:function(e){var t,r,l,n,s,i,a,c,d=this.el(),u=1==(null==this||null===(t=this.config)||void 0===t?void 0:t.liveui)&&1==(null==this||null===(r=this.config)||void 0===r?void 0:r.liveVideo)||!(null!=this&&null!==(l=this.config)&&void 0!==l&&l.liveui)&&!(null!=this&&null!==(n=this.config)&&void 0!==n&&n.liveVideo)||!1;u?null==d||null===(s=d.classList)||void 0===s||s.add("dvr"):null==d||null===(i=d.classList)||void 0===i||i.add("nondvr");var v=o.dom.createEl("div",{className:"broadcast"});v.innerHTML="Broadcasts";var m=o.dom.createEl("div",{className:"potraittray hideMWebTray"});u?null==m||null===(a=m.classList)||void 0===a||a.add("dvr"):null==m||null===(c=m.classList)||void 0===c||c.add("nondvr"),m.style.width="".concat(window.innerWidth-50,"px");var h=o.dom.createEl("div",{className:"tilecontainer-potrait"});o.dom.appendContent(d,v),o.dom.appendContent(d,m),o.dom.appendContent(m,h),v.addEventListener("click",(function(){null!=m&&m.classList.contains("hideMWebTray")?(m.classList.remove("hideMWebTray"),d.style.background="darkgray"):(null==m||m.classList.add("hideMWebTray"),d.style.background="gray")})),this.loadCSS();for(var p=0;p<e.length;p++)this.createTile(e[p],p)}},{key:"createTile",value:function(e,t){var r=this,l=this.el(),n=o.dom.createEl("div",{className:"tile-potrait-mweb ".concat(t)});0==t&&(n.style.border="2px solid red"),n.style.backgroundImage="url(".concat(e.img,")");var a=o.dom.$(".tilecontainer-potrait",this.contentEl());o.dom.appendContent(a,n);var c=sessionStorage.getItem("token");return n.addEventListener("click",(function(t){s.showLoader(r.playerId),r.removeSelectedTile();var l=document.getElementsByClassName("".concat(t.srcElement.className))[0];l&&(l.style.border="2px solid red"),i.load(r.playerId,e.id,c).then((function(e){i.play(r.playerId)}))})),l}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile-potrait-mweb"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./mwebPotrait-3c11d7cf.js")})).then((function(e){var t=document.createElement("style");t.className="mweb",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleProgressControls",value:function(e){var t=document.querySelector(".vjs-progress-control.vjs-control"),r=document.querySelector(".vjs-play-control.vjs-control.vjs-button"),l=document.querySelector(".vjs-remaining-time.vjs-time-control.vjs-control"),n=document.querySelector(".vjs-seek-to-live-control.vjs-control");e?(null==t||t.classList.add("hide-controls"),null==r||r.classList.add("hide-controls"),null==l||l.classList.add("hide-controls"),null==n||n.classList.add("hide-controls")):(null!=t&&t.classList.contains("hide-controls")&&(null==t||t.classList.remove("hide-controls")),null!=r&&r.classList.contains("hide-controls")&&(null==r||r.classList.remove("hide-controls")),null!=l&&l.classList.contains("hide-controls")&&(null==l||l.classList.remove("hide-controls")),null!=n&&n.classList.contains("hide-controls")&&(null==n||n.classList.remove("hide-controls")))}}]),d}();exports.default=d;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),l=require("@babel/runtime/helpers/possibleConstructorReturn"),n=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./loader-393b838a.js"),i=require("./index-f54eda57.js");function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var s=n(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return l(this,r)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized");var c=o.getComponent("Component"),d=function(l){r(d,c);var n=a(d);function d(t){var r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),(r=n.call(this,t,l)).playerId=l.playerId,r.config=l.config,r.createUI(null==l?void 0:l.config.streams),r}return t(d,[{key:"createEl",value:function(){return o.dom.createEl("div",{className:"mweb-potrait-parent"})}},{key:"createUI",value:function(e){var t,r,l,n,s,i,a,c,d=this.el(),u=1==(null==this||null===(t=this.config)||void 0===t?void 0:t.liveui)&&1==(null==this||null===(r=this.config)||void 0===r?void 0:r.liveVideo)||!(null!=this&&null!==(l=this.config)&&void 0!==l&&l.liveui)&&!(null!=this&&null!==(n=this.config)&&void 0!==n&&n.liveVideo)||!1;u?null==d||null===(s=d.classList)||void 0===s||s.add("dvr"):null==d||null===(i=d.classList)||void 0===i||i.add("nondvr");var v=o.dom.createEl("div",{className:"broadcast"});v.innerHTML="Broadcasts";var m=o.dom.createEl("div",{className:"potraittray hideMWebTray"});u?null==m||null===(a=m.classList)||void 0===a||a.add("dvr"):null==m||null===(c=m.classList)||void 0===c||c.add("nondvr"),m.style.width="".concat(window.innerWidth-50,"px");var h=o.dom.createEl("div",{className:"tilecontainer-potrait"});o.dom.appendContent(d,v),o.dom.appendContent(d,m),o.dom.appendContent(m,h),v.addEventListener("click",(function(){null!=m&&m.classList.contains("hideMWebTray")?(m.classList.remove("hideMWebTray"),d.style.background="darkgray"):(null==m||m.classList.add("hideMWebTray"),d.style.background="gray")})),this.loadCSS();for(var p=0;p<e.length;p++)this.createTile(e[p],p)}},{key:"createTile",value:function(e,t){var r=this,l=this.el(),n=o.dom.createEl("div",{className:"tile-potrait-mweb ".concat(t)});0==t&&(n.style.border="2px solid red"),n.style.backgroundImage="url(".concat(e.img,")");var a=o.dom.$(".tilecontainer-potrait",this.contentEl());o.dom.appendContent(a,n);var c=sessionStorage.getItem("token");return n.addEventListener("click",(function(t){s.showLoader(r.playerId),r.removeSelectedTile();var l=document.getElementsByClassName("".concat(t.srcElement.className))[0];l&&(l.style.border="2px solid red"),i.load(r.playerId,e.id,c).then((function(e){i.play(r.playerId)}))})),l}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile-potrait-mweb"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./mwebPotrait-3c11d7cf.js")})).then((function(e){var t=document.createElement("style");t.className="mweb",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleProgressControls",value:function(e){var t=document.querySelector(".vjs-progress-control.vjs-control"),r=document.querySelector(".vjs-play-control.vjs-control.vjs-button"),l=document.querySelector(".vjs-remaining-time.vjs-time-control.vjs-control"),n=document.querySelector(".vjs-seek-to-live-control.vjs-control");e?(null==t||t.classList.add("hide-controls"),null==r||r.classList.add("hide-controls"),null==l||l.classList.add("hide-controls"),null==n||n.classList.add("hide-controls")):(null!=t&&t.classList.contains("hide-controls")&&(null==t||t.classList.remove("hide-controls")),null!=r&&r.classList.contains("hide-controls")&&(null==r||r.classList.remove("hide-controls")),null!=l&&l.classList.contains("hide-controls")&&(null==l||l.classList.remove("hide-controls")),null!=n&&n.classList.contains("hide-controls")&&(null==n||n.classList.remove("hide-controls")))}}]),d}();exports.default=d;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./icons-ef339913.js"),a=require("./index-292883f2.js");function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=i(e);if(t){var s=i(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return r(this,n)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized");var d=o.getComponent("Component"),u=function(r){n(a,d);var i=l(a);function a(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,a),(n=i.call(this,t,r)).playerId=r.playerId,n.seriesData=r.sres,n.currentVideoData=r.res,n.initialiseStructure(),n.loadCSS(),n}return t(a,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"play-next"}),t=o.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(s.PlayNextEpisodeSvg(window.controlsColor?window.controlsColor:"white"))});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./nextEpisodeButton-b6e6586f.js")})).then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=o.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=o.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),r=o.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=o.dom.createEl("div",{className:"next-eps-image"}),s=o.dom.createEl("div",{className:"next-eps-description"});o.dom.appendContent(r,i),o.dom.appendContent(r,s),o.dom.appendContent(t,n),o.dom.appendContent(t,r),this.toggleContentOnHover(e,t),o.dom.appendContent(e,t)}},{key:"toggleContentOnHover",value:function(e,t){e.addEventListener("mouseover",(function(){o.dom.removeClass(t,"nextepisode-hidden")})),t.addEventListener("mouseover",(function(){o.dom.removeClass(t,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){o.dom.addClass(t,"nextepisode-hidden")})),t.addEventListener("mouseout",(function(){o.dom.addClass(t,"nextepisode-hidden")}))}}]),a}(),c=function(e,t){for(var n=-1,r=0;r<e.length;r++)for(var i=0;i<e[r].episodes.length;i++)if(e[r].episodes[i].id===t){n=r;break}return n},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;if(!(e&&t>=0))return{prevEp:null,nextEp:null};var n=e.episodes.length,r=t-1>=0?t-1:n-1,i=(t+1)%n,o=n>1?e.episodes[r]:null,s=n>1?e.episodes[i]:null;return r===i&&(0===r?s=null:o=null),{prevEp:o,nextEp:s,prevEpIdx:r,nextEpIdx:i}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=null;return e?(e.episodes.forEach((function(e,r){e.gist.id===t&&(n=r)})),n):null},v=function(e){o.dom.$(".next-eps"),o.dom.$(".play-next").onclick=function(){var t=sessionStorage.getItem("token");a.load("my-player",e.gist.id,t).then((function(e){a.setCurrentVideo(e.response)}))},o.dom.$(".next-eps-image").innerHTML="<img src=".concat(e.gist.videoImageUrl,"/>"),o.dom.$(".next-eps-description").innerHTML="<div class='next-eps-title'>".concat(e.title,"</div>\n <div class='next-eps-description-details'>").concat(e.gist.description,"</div>")};exports.default=u,exports.initaliseFunctionality=function(e,t){var n=c(e,t.video.gist.id),r=m(e[n],t.video.gist.id),i=p(e[n],r);v(i.nextEp)};
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./icons-efaa15a2.js"),a=require("./index-f54eda57.js");function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=i(e);if(t){var s=i(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return r(this,n)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized");var d=o.getComponent("Component"),u=function(r){n(a,d);var i=l(a);function a(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,a),(n=i.call(this,t,r)).playerId=r.playerId,n.seriesData=r.sres,n.currentVideoData=r.res,n.initialiseStructure(),n.loadCSS(),n}return t(a,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"play-next"}),t=o.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(s.PlayNextEpisodeSvg(window.controlsColor?window.controlsColor:"white"))});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./nextEpisodeButton-b6e6586f.js")})).then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=o.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=o.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),r=o.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=o.dom.createEl("div",{className:"next-eps-image"}),s=o.dom.createEl("div",{className:"next-eps-description"});o.dom.appendContent(r,i),o.dom.appendContent(r,s),o.dom.appendContent(t,n),o.dom.appendContent(t,r),this.toggleContentOnHover(e,t),o.dom.appendContent(e,t)}},{key:"toggleContentOnHover",value:function(e,t){e.addEventListener("mouseover",(function(){o.dom.removeClass(t,"nextepisode-hidden")})),t.addEventListener("mouseover",(function(){o.dom.removeClass(t,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){o.dom.addClass(t,"nextepisode-hidden")})),t.addEventListener("mouseout",(function(){o.dom.addClass(t,"nextepisode-hidden")}))}}]),a}(),c=function(e,t){for(var n=-1,r=0;r<e.length;r++)for(var i=0;i<e[r].episodes.length;i++)if(e[r].episodes[i].id===t){n=r;break}return n},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;if(!(e&&t>=0))return{prevEp:null,nextEp:null};var n=e.episodes.length,r=t-1>=0?t-1:n-1,i=(t+1)%n,o=n>1?e.episodes[r]:null,s=n>1?e.episodes[i]:null;return r===i&&(0===r?s=null:o=null),{prevEp:o,nextEp:s,prevEpIdx:r,nextEpIdx:i}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=null;return e?(e.episodes.forEach((function(e,r){e.gist.id===t&&(n=r)})),n):null},v=function(e){o.dom.$(".next-eps"),o.dom.$(".play-next").onclick=function(){var t=sessionStorage.getItem("token");a.load("my-player",e.gist.id,t).then((function(e){a.setCurrentVideo(e.response)}))},o.dom.$(".next-eps-image").innerHTML="<img src=".concat(e.gist.videoImageUrl,"/>"),o.dom.$(".next-eps-description").innerHTML="<div class='next-eps-title'>".concat(e.title,"</div>\n <div class='next-eps-description-details'>").concat(e.gist.description,"</div>")};exports.default=u,exports.initaliseFunctionality=function(e,t){var n=c(e,t.video.gist.id),r=m(e[n],t.video.gist.id),i=p(e[n],r);v(i.nextEp)};
@@ -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"),o=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),s=require("./icons-ef339913.js"),r=require("./index-292883f2.js"),d=require("./autoNextVideo-30d2ba0d.js");function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,l=o(e);if(t){var a=o(this).constructor;n=Reflect.construct(l,arguments,a)}else n=l.apply(this,arguments);return i(this,n)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/assertThisInitialized");var u=a.getComponent("Component"),p=function(i){l(p,u);var o=c(p);function p(e){var n,l,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,p),(a=o.call(this,e,s)).playerId=s.playerId,a.seriesData=s.sres,a.videos=null==s||null===(n=s.playlist)||void 0===n?void 0:n.content,a.cb=(null==s||null===(l=s.playlist)||void 0===l?void 0:l.cb)||null,a.autoNext=(null==s||null===(i=s.playlist)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=s.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&d.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb}),a}return n(p,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(s.EpisodesSvg())});return a.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=a.dom.createEl("div",{className:"selection-container hidden"});a.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(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=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),a.dom.appendContent(e,t),document.getElementById(this.playerId).style.overflow="hidden",this.addFunctionality(t)}},{key:"addFunctionality",value:function(t){var n=this,l=this.el(),i=a.dom.createEl("div",{className:"playlist-selector-head"}),o=a.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(s.crossIconSvg())});o.onclick=function(){t.classList.add("hidden"),l.classList.remove("open"),t.style.right="-350px"};for(var d=a.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),c=a.dom.createEl("div",{className:"playlist-selector-content"}),u=function(t){var l,i,o=a.dom.createEl("div",{className:"playlist-container"}),s=a.dom.createEl("div",{className:"playlist-section",index:t}),d=a.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(l=n.videos[t])||void 0===l?void 0:l.title)||"")}),u=a.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(n.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});a.dom.appendContent(s,d),a.dom.appendContent(s,u),a.dom.appendContent(o,s),a.dom.appendContent(c,o);var p=a.dom.createEl("div",{className:"playlist-section-expanded hidden"}),m=a.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(i=n.videos[t])||void 0===i?void 0:i.description)||"")}),v=a.dom.createEl("div",{className:"playlist-image"});v.style.backgroundImage="url(".concat(n.videos[t].img,")"),a.dom.appendContent(p,v),a.dom.appendContent(p,m),a.dom.appendContent(o,p),a.dom.appendContent(c,o),p.onclick=function(e){e.stopPropagation(),r.setVideoIdx(t+1),r.load(n.playerId,n.videos[t].id,sessionStorage.getItem("token")).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,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,s=(a=e(a))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=s&&null!==(n=s.classList)&&void 0!==n&&n.contains("hidden")?(o.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"),o.style.backgroundColor="unset")}},p=0;p<this.videos.length;p++)u(p);a.dom.appendContent(i,o),a.dom.appendContent(i,d),a.dom.appendContent(t,i),a.dom.appendContent(t,c),r.getPlayer(this.playerId).on("fullscreenchange",(function(){var e=window.getComputedStyle(document.getElementById(n.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(e,"px")}))}}]),p}();exports.default=p;
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"),o=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),s=require("./icons-efaa15a2.js"),r=require("./index-f54eda57.js"),d=require("./autoNextVideo-a37b3dc5.js");function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,l=o(e);if(t){var a=o(this).constructor;n=Reflect.construct(l,arguments,a)}else n=l.apply(this,arguments);return i(this,n)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/assertThisInitialized");var u=a.getComponent("Component"),p=function(i){l(p,u);var o=c(p);function p(e){var n,l,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,p),(a=o.call(this,e,s)).playerId=s.playerId,a.seriesData=s.sres,a.videos=null==s||null===(n=s.playlist)||void 0===n?void 0:n.content,a.cb=(null==s||null===(l=s.playlist)||void 0===l?void 0:l.cb)||null,a.autoNext=(null==s||null===(i=s.playlist)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=s.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&d.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb}),a}return n(p,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(s.EpisodesSvg())});return a.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=a.dom.createEl("div",{className:"selection-container hidden"});a.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(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=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),a.dom.appendContent(e,t),document.getElementById(this.playerId).style.overflow="hidden",this.addFunctionality(t)}},{key:"addFunctionality",value:function(t){var n=this,l=this.el(),i=a.dom.createEl("div",{className:"playlist-selector-head"}),o=a.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(s.crossIconSvg())});o.onclick=function(){t.classList.add("hidden"),l.classList.remove("open"),t.style.right="-350px"};for(var d=a.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),c=a.dom.createEl("div",{className:"playlist-selector-content"}),u=function(t){var l,i,o=a.dom.createEl("div",{className:"playlist-container"}),s=a.dom.createEl("div",{className:"playlist-section",index:t}),d=a.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(l=n.videos[t])||void 0===l?void 0:l.title)||"")}),u=a.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(n.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});a.dom.appendContent(s,d),a.dom.appendContent(s,u),a.dom.appendContent(o,s),a.dom.appendContent(c,o);var p=a.dom.createEl("div",{className:"playlist-section-expanded hidden"}),m=a.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(i=n.videos[t])||void 0===i?void 0:i.description)||"")}),v=a.dom.createEl("div",{className:"playlist-image"});v.style.backgroundImage="url(".concat(n.videos[t].img,")"),a.dom.appendContent(p,v),a.dom.appendContent(p,m),a.dom.appendContent(o,p),a.dom.appendContent(c,o),p.onclick=function(e){e.stopPropagation(),r.setVideoIdx(t+1),r.load(n.playerId,n.videos[t].id,sessionStorage.getItem("token")).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,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,s=(a=e(a))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=s&&null!==(n=s.classList)&&void 0!==n&&n.contains("hidden")?(o.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"),o.style.backgroundColor="unset")}},p=0;p<this.videos.length;p++)u(p);a.dom.appendContent(i,o),a.dom.appendContent(i,d),a.dom.appendContent(t,i),a.dom.appendContent(t,c),r.getPlayer(this.playerId).on("fullscreenchange",(function(){var e=window.getComputedStyle(document.getElementById(n.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(e,"px")}))}}]),p}();exports.default=p;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/classCallCheck"),i=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"),c=require("@babel/runtime/regenerator"),l=require("video.js"),d=require("./index-292883f2.js"),u=require("./loader-393b838a.js"),p=require("./icons-ef339913.js");function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=a(e);if(t){var s=a(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return r(this,i)}}require("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/toConsumableArray");var h,f=l.getComponent("Component"),m=function(e){s(a,f);var r=v(a);function a(e){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,a),i=r.call(this,e,s),o(n(i),"seriesData",[]),i.seriesData=s.seriesData,h=s.playerId;var c=i.el();return y(c,i.seriesData),i}return i(a,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}}]),a}();function g(){return(g=e(c.mark((function e(t,i,n,s){var r;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=sessionStorage.getItem("token"),d.pause(h),u.showLoader(h),d.load(h,i,r).then((function(e){d.setCurrentVideo(e.response),d.play(h)}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e,t){e.innerHTML='<div class="hover-div"></div>\n '.concat(p.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,t){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(t),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>')}exports.customSeasonList=y,exports.handleSeasonChange=function(e,t,i,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;var o=e.episodes.map((function(e,t){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(t+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");a.innerHTML=o,function(e){d.getSeriesWatchHistory(e).then((function(e){var t=e.data,i=document.querySelectorAll("#progress-div");i&&t.map((function(e,t){e&&e.watchedPercentage&&i[t]&&(i[t].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),l=document.querySelectorAll("#episode-title"),u=document.querySelectorAll(".meta-details"),p=document.querySelector("#episodes-back-btn"),v=e.id,h=e.episodes;p.addEventListener("click",(function(){return function(e,t){e.classList.remove("hide-container"),t.classList.add("hide-container")}(s,r)}));for(var f=function(t){c[t].addEventListener("click",(function(){return function(e,t,i){var n=t.querySelector(".meta-details");t.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),i.forEach((function(t,n){n!==e&&(i[n].classList.remove("episode-active"),i[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(t,l[t],l)})),u[t].addEventListener("click",(function(){return function(e,t,i,n){return g.apply(this,arguments)}(t,h[t].id,i,l)})),e.episodes[t].id==v&&l[t].classList.add("highlight-active-eps")},m=0;m<c.length;m++)f(m)},exports.seriesModule=m;
1
+ "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/classCallCheck"),i=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"),c=require("@babel/runtime/regenerator"),l=require("video.js"),d=require("./index-f54eda57.js"),u=require("./loader-393b838a.js"),p=require("./icons-efaa15a2.js");function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=a(e);if(t){var s=a(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return r(this,i)}}require("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/toConsumableArray");var h,f=l.getComponent("Component"),m=function(e){s(a,f);var r=v(a);function a(e){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,a),i=r.call(this,e,s),o(n(i),"seriesData",[]),i.seriesData=s.seriesData,h=s.playerId;var c=i.el();return y(c,i.seriesData),i}return i(a,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}}]),a}();function g(){return(g=e(c.mark((function e(t,i,n,s){var r;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=sessionStorage.getItem("token"),d.pause(h),u.showLoader(h),d.load(h,i,r).then((function(e){d.setCurrentVideo(e.response),d.play(h)}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e,t){e.innerHTML='<div class="hover-div"></div>\n '.concat(p.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,t){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(t),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>')}exports.customSeasonList=y,exports.handleSeasonChange=function(e,t,i,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;var o=e.episodes.map((function(e,t){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(t+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");a.innerHTML=o,function(e){d.getSeriesWatchHistory(e).then((function(e){var t=e.data,i=document.querySelectorAll("#progress-div");i&&t.map((function(e,t){e&&e.watchedPercentage&&i[t]&&(i[t].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),l=document.querySelectorAll("#episode-title"),u=document.querySelectorAll(".meta-details"),p=document.querySelector("#episodes-back-btn"),v=e.id,h=e.episodes;p.addEventListener("click",(function(){return function(e,t){e.classList.remove("hide-container"),t.classList.add("hide-container")}(s,r)}));for(var f=function(t){c[t].addEventListener("click",(function(){return function(e,t,i){var n=t.querySelector(".meta-details");t.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),i.forEach((function(t,n){n!==e&&(i[n].classList.remove("episode-active"),i[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(t,l[t],l)})),u[t].addEventListener("click",(function(){return function(e,t,i,n){return g.apply(this,arguments)}(t,h[t].id,i,l)})),e.episodes[t].id==v&&l[t].classList.add("highlight-active-eps")},m=0;m<c.length;m++)f(m)},exports.seriesModule=m;
@@ -1 +1 @@
1
- "use strict";var e=require("./icons-ef339913.js"),r=require("./keyboardShortcuts-de1885ab.js"),t=require("./index-292883f2.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("video.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(i,n){r.initialiseKeyboardEvents(i,n),Promise.resolve().then((function(){return require("./skin-983a2ea7.js")})).then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r,t){0==t.liveVideo&&0==t.liveui&&e.addSkipButton(r,"default",e.SkipSvg());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&e.addRewindButton(r,"default",e.RewindSvg())}(i,n),function(r,i){var n=t.getPlayer(r),s=(null==i?void 0:i.sres)||null;n.on("loadeddata",(function(){e.addResolutionModule(r,"default",e.SettingsSvg()),s&&Promise.resolve().then((function(){return require("./nextEpisodeButton-5aaa6ef4.js")})).then((function(e){e.initaliseFunctionality(i.sres.seasons,t.getCurrentVideo())}))})),n.one("loadedmetadata",(function(){var t;s&&(e.addSeriesModule(r,null==i||null===(t=i.sres)||void 0===t?void 0:t.seasons,i),e.addNextEpisodeButton(i.sres,i.res,r))}))}(i,n),function(r,i){var n=t.getPlayer(r),s=document.getElementsByClassName("vjs-current-time")[0],l=document.getElementsByClassName("vjs-duration")[0],o=document.getElementsByClassName("vjs-time-divider")[0];i.liveVideo&&(s&&(s.style.display="none"),l&&(l.style.display="none"),o&&(o.style.display="none"));n.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(e.MinimizeSvg(window.controlsColor))),n.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(e.MaximizeSvg(window.controlsColor)));var a=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(r).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(t.createIconMarkup(e.NewCaptionsSvg()));var u=document.createElement("div");u.classList.add("caption-header"),a.querySelector(".vjs-menu-content").insertBefore(u,a.querySelector(".vjs-menu-item"))}(i,n)};
1
+ "use strict";var e=require("./icons-efaa15a2.js"),r=require("./keyboardShortcuts-46f8b825.js"),t=require("./index-f54eda57.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("video.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(i,n){r.initialiseKeyboardEvents(i,n),Promise.resolve().then((function(){return require("./skin-983a2ea7.js")})).then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r,t){0==t.liveVideo&&0==t.liveui&&e.addSkipButton(r,"default",e.SkipSvg());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&e.addRewindButton(r,"default",e.RewindSvg())}(i,n),function(r,i){var n=t.getPlayer(r),s=(null==i?void 0:i.sres)||null;n.on("loadeddata",(function(){e.addResolutionModule(r,"default",e.SettingsSvg()),s&&Promise.resolve().then((function(){return require("./nextEpisodeButton-5626480b.js")})).then((function(e){e.initaliseFunctionality(i.sres.seasons,t.getCurrentVideo())}))})),n.one("loadedmetadata",(function(){var t;s&&(e.addSeriesModule(r,null==i||null===(t=i.sres)||void 0===t?void 0:t.seasons,i),e.addNextEpisodeButton(i.sres,i.res,r))}))}(i,n),function(r,i){var n=t.getPlayer(r),s=document.getElementsByClassName("vjs-current-time")[0],l=document.getElementsByClassName("vjs-duration")[0],o=document.getElementsByClassName("vjs-time-divider")[0];i.liveVideo&&(s&&(s.style.display="none"),l&&(l.style.display="none"),o&&(o.style.display="none"));n.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(e.MinimizeSvg(window.controlsColor))),n.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(e.MaximizeSvg(window.controlsColor)));var a=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(r).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(t.createIconMarkup(e.NewCaptionsSvg()));var u=document.createElement("div");u.classList.add("caption-header"),a.querySelector(".vjs-menu-content").insertBefore(u,a.querySelector(".vjs-menu-item"))}(i,n)};
@@ -0,0 +1 @@
1
+ "use strict";var e,t=require("./icons-efaa15a2.js"),n=require("./index-f54eda57.js"),r=require("@babel/runtime/helpers/defineProperty"),s=require("./keyboardShortcuts-46f8b825.js");function o(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 i(e,s){var i=n.getPlayer(e);i.one("play",(function(){null!=s&&s.streams&&t.addMulticamView(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s)),null!=s&&s.airplay&&"Safari"==n.detectBrowser()&&i.addChild("airPlayButton"),null!=s&&s.chromecastReceiverId&&i.addChild("chromecastButton"),i.addChild("FullscreenToggle"),i.getChild("FullscreenToggle").el().appendChild(n.createIconMarkup(t.MinimizeSvg(window.controlsColor))),i.getChild("FullscreenToggle").el().appendChild(n.createIconMarkup(t.MaximizeSvg(window.controlsColor))),l(e)})),i.on("loadedmetadata",(function(){window.endFirstFrame(i),t.addResolutionModule(e,"live",t.SettingsSvg())})),i.one("loadedmetadata",(function(){var n;null!=s&&s.streams&&(null==s||null===(n=s.streams)||void 0===n?void 0:n.length)>=2&&t.addMwebPotraitTrayModule(e,s)}))}function l(t){var r=n.getPlayer(t);u(),r.on("pause",(function(){clearTimeout(e),a()})),r.on("play",(function(){u()}));var s=document.getElementById("".concat(t));s.addEventListener("mouseenter",(function(){a(),r.paused()||u()})),s.addEventListener("touchstart",(function(){a(),u()})),s.addEventListener("mousemove",(function(){a(),r.paused()||u()}))}function a(){var e=document.getElementsByClassName("vjs-chromecast-button")[0],t=document.getElementsByClassName("vjs-airplay-button")[0],n=document.getElementsByClassName("vjs-fullscreen-control")[0];null!=e&&e.classList.contains("hideoutsidecontrols")&&(null==e||e.classList.remove("hideoutsidecontrols")),n.classList.contains("hideoutsidecontrols")&&n.classList.remove("hideoutsidecontrols"),null!=t&&t.classList.contains("hideoutsidecontrols")&&t.classList.remove("hideoutsidecontrols")}function u(){var t=document.getElementsByClassName("vjs-chromecast-button")[0],n=document.getElementsByClassName("vjs-fullscreen-control")[0],r=document.getElementsByClassName("vjs-airplay-button")[0];clearTimeout(e),e=setTimeout((function(){null==t||t.classList.add("hideoutsidecontrols"),null==n||n.classList.add("hideoutsidecontrols"),null==r||r.classList.add("hideoutsidecontrols")}),2200)}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("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),exports.hideControls=l,exports.initialiseSkin=function(e,r){var o;s.initialiseKeyboardEvents(e,r),(null==(o=r)||!o.liveui)&&(null==o||!o.liveVideo)||null!=o&&o.liveui&&null!=o&&o.liveVideo?Promise.resolve().then((function(){return require("./dvr_skin-f7f770ae.js")})).then((function(e){var t=document.createElement("style");t.id="dvr_skin",t.append("".concat(e.default)),document.head.appendChild(t)})):Promise.resolve().then((function(){return require("./nondvr_skin-ef2cb3b2.js")})).then((function(e){var t=document.createElement("style");t.id="nondvr_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e,n){t.addSlowMotion(e)}(e),function(e,r){var s=n.getPlayer(e),o=s.controlBar.getChild("SubsCapsButton").el();document.getElementsByClassName("vjs-subs-caps-button")[1].appendChild(n.createIconMarkup(t.NewCaptionsSvg()));var i=document.createElement("div");i.classList.add("caption-header"),o.querySelector(".vjs-menu-content").insertBefore(i,o.querySelector(".vjs-menu-item"));var l=document.createElement("div");l.innerText="Captions",l.className="fs14",document.getElementsByClassName("vjs-subs-caps-button")[0].appendChild(l),null!=r&&r.liveui||null==r||!r.liveVideo||(document.getElementsByClassName("vjs-progress-control")[0].style.display="none")}(e,r),i(e,r)};
@@ -1 +1 @@
1
- "use strict";var e=require("./icons-ef339913.js"),i=require("./index-292883f2.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("video.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(l,r){Promise.resolve().then((function(){return require("./skin-f1a8de7a.js")})).then((function(e){var i=document.createElement("style");i.id="default_v2",i.append("".concat(e.default)),document.head.appendChild(i)})),function(l){i.getPlayer(l).one("loadedmetadata",(function(){e.addResolutionModule(l,"defaultV2",e.SettingsSvgV2())}))}(l),function(l,r){var t=i.getPlayer(l);t.controlBar.getChild("FullscreenToggle").el().appendChild(i.createIconMarkup(e.MinimizeSvg(window.controlsColor))),t.controlBar.getChild("FullscreenToggle").el().appendChild(i.createIconMarkup(e.MaximizeSvg(window.controlsColor)));var n=document.getElementsByClassName("vjs-time-control");r.liveVideo&&(n[0].style.display="none")}(l,r),function(l,r){var t,n,o,a,d;0==r.liveVideo&&0==r.liveui&&e.addSkipButton(l,"defaultV2",e.SkipSvgV2());(0==r.liveVideo&&0==r.liveui||1==r.liveui)&&e.addRewindButton(l,"defaultV2",e.RewindSvgV2());r.liveVideo||e.addSlowMotion(l);(null==r||null===(t=r.relatedVideos)||void 0===t?void 0:t.content.length)>0&&e.addVideoSelector(l,null==r?void 0:r.relatedVideos);(null==r||null===(n=r.streams)||void 0===n?void 0:n.length)>1&&e.addMulticamSelector(l,null==r?void 0:r.streams);(null==r||null===(o=r.playlist)||void 0===o||null===(a=o.content)||void 0===a?void 0:a.length)>0&&e.addPlaylistSelector(l,null==r?void 0:r.playlist);(null===(d=i.getCaptions(l))||void 0===d?void 0:d.length)>0&&e.addCaptionButton(l,r)}(l,r)};
1
+ "use strict";var e=require("./icons-efaa15a2.js"),i=require("./index-f54eda57.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("video.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(l,r){Promise.resolve().then((function(){return require("./skin-f1a8de7a.js")})).then((function(e){var i=document.createElement("style");i.id="default_v2",i.append("".concat(e.default)),document.head.appendChild(i)})),function(l){i.getPlayer(l).one("loadedmetadata",(function(){e.addResolutionModule(l,"defaultV2",e.SettingsSvgV2())}))}(l),function(l,r){var t=i.getPlayer(l);t.controlBar.getChild("FullscreenToggle").el().appendChild(i.createIconMarkup(e.MinimizeSvg(window.controlsColor))),t.controlBar.getChild("FullscreenToggle").el().appendChild(i.createIconMarkup(e.MaximizeSvg(window.controlsColor)));var n=document.getElementsByClassName("vjs-time-control");r.liveVideo&&(n[0].style.display="none")}(l,r),function(l,r){var t,n,o,a,d;0==r.liveVideo&&0==r.liveui&&e.addSkipButton(l,"defaultV2",e.SkipSvgV2());(0==r.liveVideo&&0==r.liveui||1==r.liveui)&&e.addRewindButton(l,"defaultV2",e.RewindSvgV2());r.liveVideo||e.addSlowMotion(l);(null==r||null===(t=r.relatedVideos)||void 0===t?void 0:t.content.length)>0&&e.addVideoSelector(l,null==r?void 0:r.relatedVideos);(null==r||null===(n=r.streams)||void 0===n?void 0:n.length)>1&&e.addMulticamSelector(l,null==r?void 0:r.streams);(null==r||null===(o=r.playlist)||void 0===o||null===(a=o.content)||void 0===a?void 0:a.length)>0&&e.addPlaylistSelector(l,null==r?void 0:r.playlist);(null===(d=i.getCaptions(l))||void 0===d?void 0:d.length)>0&&e.addCaptionButton(l,r)}(l,r)};
@@ -1 +1 @@
1
- "use strict";var e=require("./index-292883f2.js");require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf");var r=function(){document.getElementsByClassName("vjs-control-bar")[0].style.visibility="hidden"};exports.initaliseSkin=function(i){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)})),r(),function(r){var i=document.getElementById("".concat(r)),t=e.getPlayer(r);i&&i.addEventListener("touchstart",(function(){t.paused()?e.play(r):e.pause(r)}))}(i)};
1
+ "use strict";var e=require("./index-f54eda57.js");require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf");var r=function(){document.getElementsByClassName("vjs-control-bar")[0].style.visibility="hidden"};exports.initaliseSkin=function(i){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)})),r(),function(r){var i=document.getElementById("".concat(r)),t=e.getPlayer(r);i&&i.addEventListener("touchstart",(function(){t.paused()?e.play(r):e.pause(r)}))}(i)};
@@ -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-ef339913.js"),l=require("./index-292883f2.js"),c=require("./autoNextVideo-30d2ba0d.js");function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();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)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized");var d=r.getComponent("Component"),u=function(o){n(u,d);var i=s(u);function u(t){var n,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,u),(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&&c.autoPlayNext({playerId:r.playerId,content:r.videos,cb:r.cb}),r}return t(u,[{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.el(),t=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(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=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),r.dom.appendContent(e,t),document.getElementById(this.playerId).style.overflow="hidden",this.addFunctionality(t)}},{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 c=r.dom.createEl("div",{className:"video-selector-title",innerHTML:"Recommended"}),s=r.dom.createEl("div",{className:"video-selector-content"}),d=r.dom.createEl("div",{className:"video-container"}),u=function(e){var n,o=r.dom.createEl("div",{className:"video -".concat(e)}),i=r.dom.createEl("div",{className:"recommended -".concat(e)});i.setAttribute("video-idx",e),i.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";l.highlightVideo(e),l.load(t.playerId,t.videos[e].id,sessionStorage.getItem("token")).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var a=document.createElement("img");a.className="related-thumbnail-image",a.src="".concat(t.videos[e].img),a.alt="No Thumbnail Available",i.append(a);var c=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(n=t.videos[e])||void 0===n?void 0:n.title)||"")});r.dom.appendContent(o,i),r.dom.appendContent(o,c),r.dom.appendContent(d,o),r.dom.appendContent(s,d)},m=0;m<this.videos.length;m++)u(m);r.dom.appendContent(o,i),r.dom.appendContent(o,c),r.dom.appendContent(e,o),r.dom.appendContent(e,s),l.getPlayer(this.playerId).on("fullscreenchange",(function(){var n=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(n,"px")}))}}]),u}();exports.default=u;
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-efaa15a2.js"),l=require("./index-f54eda57.js"),c=require("./autoNextVideo-a37b3dc5.js");function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();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)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized");var d=r.getComponent("Component"),u=function(o){n(u,d);var i=s(u);function u(t){var n,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,u),(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&&c.autoPlayNext({playerId:r.playerId,content:r.videos,cb:r.cb}),r}return t(u,[{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.el(),t=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(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=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),r.dom.appendContent(e,t),document.getElementById(this.playerId).style.overflow="hidden",this.addFunctionality(t)}},{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 c=r.dom.createEl("div",{className:"video-selector-title",innerHTML:"Recommended"}),s=r.dom.createEl("div",{className:"video-selector-content"}),d=r.dom.createEl("div",{className:"video-container"}),u=function(e){var n,o=r.dom.createEl("div",{className:"video -".concat(e)}),i=r.dom.createEl("div",{className:"recommended -".concat(e)});i.setAttribute("video-idx",e),i.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";l.highlightVideo(e),l.load(t.playerId,t.videos[e].id,sessionStorage.getItem("token")).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var a=document.createElement("img");a.className="related-thumbnail-image",a.src="".concat(t.videos[e].img),a.alt="No Thumbnail Available",i.append(a);var c=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(n=t.videos[e])||void 0===n?void 0:n.title)||"")});r.dom.appendContent(o,i),r.dom.appendContent(o,c),r.dom.appendContent(d,o),r.dom.appendContent(s,d)},m=0;m<this.videos.length;m++)u(m);r.dom.appendContent(o,i),r.dom.appendContent(o,c),r.dom.appendContent(e,o),r.dom.appendContent(e,s),l.getPlayer(this.playerId).on("fullscreenchange",(function(){var n=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(n,"px")}))}}]),u}();exports.default=u;
@@ -1 +1 @@
1
- import{o as n,l as t,j as o,h as e,m as i,k as c}from"./index-e2100e91.js";var a,s=0,u=0,f=function(f){c(0),clearTimeout(s);var h=null==f?void 0:f.content;a=null==f?void 0:f.cb;var m=f.playerId,d=sessionStorage.getItem("token");n(m,(function(){(u=i())>h.length-1||t(m,h[u].id,d).then((function(n){o(u),e(n.response),u++,c(u),l(n)})).catch((function(n){l(n),o(u),u++,c(u),s=setTimeout((function(){r(u,m,h,d)}),3e3)}))}))},r=function n(e,i,a,s,f){e>a.length-1||t(i,a[e].id,s).then((function(n){o(u),u++,c(u),l(n)})).catch((function(t){l(t),setTimeout((function(){o(u),u++,c(u),n(u,i,a,s)}),3e3)}))},l=function(n){a&&a(n)};export{f as a};
1
+ import{o as n,h as t,k as o,i as e,n as i,m as c}from"./index-9eabcfcc.js";var a,s=0,u=0,f=function(f){c(0),clearTimeout(s);var h=null==f?void 0:f.content;a=null==f?void 0:f.cb;var m=f.playerId,d=sessionStorage.getItem("token");n(m,(function(){(u=i())>h.length-1||t(m,h[u].id,d).then((function(n){o(u),e(n.response),u++,c(u),l(n)})).catch((function(n){l(n),o(u),u++,c(u),s=setTimeout((function(){r(u,m,h,d)}),3e3)}))}))},r=function n(e,i,a,s,f){e>a.length-1||t(i,a[e].id,s).then((function(n){o(u),u++,c(u),l(n)})).catch((function(t){l(t),setTimeout((function(){o(u),u++,c(u),n(u,i,a,s)}),3e3)}))},l=function(n){a&&a(n)};export{f as a};
package/esm/bundle.css CHANGED
@@ -1,4 +1,163 @@
1
1
 
2
+ /* Chromecast */
3
+ .video-js .vjs-chromecast-button .vjs-icon-placeholder {
4
+ background: url('https://player.viewlift.com/images/ic_cast_white_24dp.png') center center no-repeat;
5
+ background-size: contain;
6
+ display: inline-block;
7
+ width: 16px;
8
+ height: 16px;
9
+ }
10
+
11
+ .video-js .vjs-chromecast-button:hover {
12
+ cursor: pointer;
13
+ }
14
+
15
+ .video-js .vjs-chromecast-button:hover .vjs-icon-placeholder {
16
+ background-image: url('https://player.viewlift.com/images/ic_cast_white_24dp.png');
17
+ }
18
+
19
+ .video-js .vjs-chromecast-button.vjs-chromecast-casting-state .vjs-icon-placeholder {
20
+ background-image: url('https://player.viewlift.com/images/ic_cast_connected_white_24dp.png');
21
+ }
22
+
23
+ .video-js .vjs-chromecast-button.vjs-chromecast-casting-state:hover .vjs-icon-placeholder {
24
+ background-image: url('https://player.viewlift.com/images/ic_cast_connected_white_24dp.png');
25
+ }
26
+ .video-js .vjs-chromecast-button >.vjs-chromecast-button-label{
27
+ display: none !important;
28
+ }
29
+
30
+ .video-js .vjs-tech-chromecast {
31
+ display: flex;
32
+ flex-direction: column;
33
+ justify-content: center;
34
+ align-items: center;
35
+ overflow: hidden;
36
+ }
37
+
38
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster::after {
39
+ content: ' ';
40
+ display: block;
41
+ height: 2px;
42
+ width: 100px;
43
+ background-color: #cccccc;
44
+ position: absolute;
45
+ left: calc(50% - 50px);
46
+ }
47
+
48
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img {
49
+ max-height: 180px;
50
+ width: auto;
51
+ border: 2px solid #cccccc;
52
+ }
53
+
54
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img.vjs-tech-chromecast-poster-img-empty {
55
+ width: 160px;
56
+ height: 90px;
57
+ }
58
+
59
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title-container {
60
+ position: absolute;
61
+ bottom: 50%;
62
+ margin-bottom: 100px;
63
+ color: #cccccc;
64
+ text-align: center;
65
+ }
66
+
67
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title {
68
+ font-size: 22px;
69
+ }
70
+
71
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title.vjs-tech-chromecast-title-empty {
72
+ display: none;
73
+ }
74
+
75
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle {
76
+ font-size: 18px;
77
+ padding-top: 0.5em;
78
+ }
79
+
80
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle.vjs-tech-chromecast-subtitle-empty {
81
+ display: none;
82
+ }
83
+
84
+ .video-js .vjs-tech-chromecast {
85
+ display: flex;
86
+ flex-direction: column;
87
+ justify-content: center;
88
+ align-items: center;
89
+ overflow: hidden;
90
+ }
91
+
92
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster::after {
93
+ content: ' ';
94
+ display: block;
95
+ height: 2px;
96
+ width: 100px;
97
+ background-color: #ccc;
98
+ position: absolute;
99
+ left: calc(50% - 50px);
100
+ }
101
+
102
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img {
103
+ max-height: 180px;
104
+ width: auto;
105
+ border: 2px solid #ccc;
106
+ }
107
+
108
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img.vjs-tech-chromecast-poster-img-empty {
109
+ width: 160px;
110
+ height: 90px;
111
+ }
112
+
113
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title-container {
114
+ position: absolute;
115
+ bottom: 50%;
116
+ margin-bottom: 100px;
117
+ color: #ccc;
118
+ text-align: center;
119
+ }
120
+
121
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title {
122
+ font-size: 22px;
123
+ }
124
+
125
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title.vjs-tech-chromecast-title-empty {
126
+ display: none;
127
+ }
128
+
129
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle {
130
+ font-size: 18px;
131
+ padding-top: 0.5em;
132
+ }
133
+
134
+ .video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle.vjs-tech-chromecast-subtitle-empty {
135
+ display: none;
136
+ }
137
+
138
+ /* Chromecast End */
139
+ /* Airplay */
140
+
141
+ .video-js .vjs-airplay-button .vjs-icon-placeholder {
142
+ background: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg') center center no-repeat;
143
+ background-size: contain;
144
+ display: inline-block;
145
+ width: 15px;
146
+ height: 15px;
147
+ }
148
+
149
+ .video-js .vjs-airplay-button:hover {
150
+ cursor: pointer;
151
+ }
152
+
153
+ .video-js .vjs-airplay-button:hover .vjs-icon-placeholder {
154
+ background-image: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg');
155
+ }
156
+
157
+ /* Airplay end */
158
+
159
+
160
+
2
161
 
3
162
 
4
163
 
@@ -308,8 +467,6 @@
308
467
 
309
468
 
310
469
 
311
-
312
-
313
470
  .widget-selection{
314
471
  display: flex;
315
472
  align-items: center;
@@ -430,7 +587,6 @@
430
587
  .widget-selector-content #sr-widget{
431
588
  padding: 0 18px;
432
589
  }
433
-
434
590
  .vjs-poster {
435
591
  display: inline-block;
436
592
  vertical-align: middle;
@@ -453,162 +609,6 @@
453
609
  .video-js .vjs-tech{
454
610
  outline: none;
455
611
  }
456
- /* Chromecast */
457
- .video-js .vjs-chromecast-button .vjs-icon-placeholder {
458
- background: url('https://player.viewlift.com/images/ic_cast_white_24dp.png') center center no-repeat;
459
- background-size: contain;
460
- display: inline-block;
461
- width: 16px;
462
- height: 16px;
463
- }
464
-
465
- .video-js .vjs-chromecast-button:hover {
466
- cursor: pointer;
467
- }
468
-
469
- .video-js .vjs-chromecast-button:hover .vjs-icon-placeholder {
470
- background-image: url('https://player.viewlift.com/images/ic_cast_white_24dp.png');
471
- }
472
-
473
- .video-js .vjs-chromecast-button.vjs-chromecast-casting-state .vjs-icon-placeholder {
474
- background-image: url('https://player.viewlift.com/images/ic_cast_connected_white_24dp.png');
475
- }
476
-
477
- .video-js .vjs-chromecast-button.vjs-chromecast-casting-state:hover .vjs-icon-placeholder {
478
- background-image: url('https://player.viewlift.com/images/ic_cast_connected_white_24dp.png');
479
- }
480
- .video-js .vjs-chromecast-button >.vjs-chromecast-button-label{
481
- display: none !important;
482
- }
483
-
484
- .video-js .vjs-tech-chromecast {
485
- display: flex;
486
- flex-direction: column;
487
- justify-content: center;
488
- align-items: center;
489
- overflow: hidden;
490
- }
491
-
492
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster::after {
493
- content: ' ';
494
- display: block;
495
- height: 2px;
496
- width: 100px;
497
- background-color: #cccccc;
498
- position: absolute;
499
- left: calc(50% - 50px);
500
- }
501
-
502
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img {
503
- max-height: 180px;
504
- width: auto;
505
- border: 2px solid #cccccc;
506
- }
507
-
508
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img.vjs-tech-chromecast-poster-img-empty {
509
- width: 160px;
510
- height: 90px;
511
- }
512
-
513
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title-container {
514
- position: absolute;
515
- bottom: 50%;
516
- margin-bottom: 100px;
517
- color: #cccccc;
518
- text-align: center;
519
- }
520
-
521
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title {
522
- font-size: 22px;
523
- }
524
-
525
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title.vjs-tech-chromecast-title-empty {
526
- display: none;
527
- }
528
-
529
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle {
530
- font-size: 18px;
531
- padding-top: 0.5em;
532
- }
533
-
534
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle.vjs-tech-chromecast-subtitle-empty {
535
- display: none;
536
- }
537
-
538
- .video-js .vjs-tech-chromecast {
539
- display: flex;
540
- flex-direction: column;
541
- justify-content: center;
542
- align-items: center;
543
- overflow: hidden;
544
- }
545
-
546
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster::after {
547
- content: ' ';
548
- display: block;
549
- height: 2px;
550
- width: 100px;
551
- background-color: #ccc;
552
- position: absolute;
553
- left: calc(50% - 50px);
554
- }
555
-
556
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img {
557
- max-height: 180px;
558
- width: auto;
559
- border: 2px solid #ccc;
560
- }
561
-
562
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img.vjs-tech-chromecast-poster-img-empty {
563
- width: 160px;
564
- height: 90px;
565
- }
566
-
567
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title-container {
568
- position: absolute;
569
- bottom: 50%;
570
- margin-bottom: 100px;
571
- color: #ccc;
572
- text-align: center;
573
- }
574
-
575
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title {
576
- font-size: 22px;
577
- }
578
-
579
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-title.vjs-tech-chromecast-title-empty {
580
- display: none;
581
- }
582
-
583
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle {
584
- font-size: 18px;
585
- padding-top: 0.5em;
586
- }
587
-
588
- .video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle.vjs-tech-chromecast-subtitle-empty {
589
- display: none;
590
- }
591
-
592
- /* Chromecast End */
593
- /* Airplay */
594
-
595
- .video-js .vjs-airplay-button .vjs-icon-placeholder {
596
- background: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg') center center no-repeat;
597
- background-size: contain;
598
- display: inline-block;
599
- width: 15px;
600
- height: 15px;
601
- }
602
-
603
- .video-js .vjs-airplay-button:hover {
604
- cursor: pointer;
605
- }
606
-
607
- .video-js .vjs-airplay-button:hover .vjs-icon-placeholder {
608
- background-image: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg');
609
- }
610
-
611
- /* Airplay end */
612
612
  /* Resolution Module */
613
613
 
614
614
  .video-js .container {