@viewlift/player-backup 0.0.82 → 0.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/{autoNextVideo-588fa847.js → autoNextVideo-854a97d8.js} +1 -1
- package/cjs/{caption-settings-8732443d.js → caption-settings-83b65002.js} +1 -1
- package/cjs/{icons-d7054875.js → icons-c8f3d7ea.js} +1 -1
- package/cjs/{index-e8af37a8.js → index-f47ae317.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{keyboardShortcuts-1ee2177d.js → keyboardShortcuts-f25f6206.js} +1 -1
- package/cjs/{multicam-5653dab1.js → multicam-1e4b800b.js} +1 -1
- package/cjs/{multicamv2-d44a3a7c.js → multicamv2-55731c7b.js} +1 -1
- package/cjs/{mwebPotraitTray-e6d910cc.js → mwebPotraitTray-af6fdc29.js} +1 -1
- package/cjs/{nextEpisodeButton-cd0997a7.js → nextEpisodeButton-421dd63d.js} +1 -1
- package/cjs/{playlist-2f019578.js → playlist-0c8d21f4.js} +1 -1
- package/cjs/{series-d29f38f3.js → series-663d5b64.js} +1 -1
- package/cjs/{series-v2-b4fae781.js → series-v2-23a1af7f.js} +1 -1
- package/cjs/{series-v2-09db8ff6.js → series-v2-70137d8c.js} +1 -1
- package/cjs/{settings-icon-b992dfeb.js → settings-icon-d64df08f.js} +1 -1
- package/cjs/skin-3289d45e.js +1 -0
- package/cjs/{skin-166d7cb9.js → skin-6a884169.js} +1 -1
- package/cjs/{skin-94f49f5b.js → skin-7590e6b7.js} +1 -1
- package/cjs/{skin-f01e0195.js → skin-9878757c.js} +1 -1
- package/cjs/{videoSelector-ee5126fa.js → videoSelector-5fa050eb.js} +1 -1
- package/esm/{autoNextVideo-3ca6fac2.js → autoNextVideo-abaf34b1.js} +1 -1
- package/esm/{caption-settings-6a70015a.js → caption-settings-0e0e0c57.js} +1 -1
- package/esm/{icons-deaa225e.js → icons-21c46342.js} +1 -1
- package/esm/{index-c4cffdae.js → index-833196ae.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{keyboardShortcuts-422c1eff.js → keyboardShortcuts-eb0ab746.js} +1 -1
- package/esm/{multicam-94c6cd08.js → multicam-4b830993.js} +1 -1
- package/esm/{multicamv2-58848677.js → multicamv2-24f67748.js} +1 -1
- package/esm/{mwebPotraitTray-5c2d119b.js → mwebPotraitTray-e1991bcd.js} +1 -1
- package/esm/{nextEpisodeButton-8df67aab.js → nextEpisodeButton-3df5bad6.js} +1 -1
- package/esm/{playlist-ac0c0dc3.js → playlist-16b71380.js} +1 -1
- package/esm/{series-15733ac0.js → series-48274a3f.js} +1 -1
- package/esm/{series-v2-7b14b215.js → series-v2-0727ee8c.js} +1 -1
- package/esm/{series-v2-faafba45.js → series-v2-9f35cd92.js} +1 -1
- package/esm/{settings-icon-3ce935ed.js → settings-icon-222188d0.js} +1 -1
- package/esm/{skin-5d9d3756.js → skin-0741eba3.js} +1 -1
- package/esm/skin-2cca9e8c.js +1 -0
- package/esm/{skin-f9a7f90d.js → skin-6bf067e6.js} +1 -1
- package/esm/{skin-5c4c4db4.js → skin-99388f9c.js} +1 -1
- package/esm/{videoSelector-42d305b6.js → videoSelector-9e82743d.js} +1 -1
- package/package.json +1 -1
- package/cjs/skin-5efdf0f8.js +0 -1
- package/esm/skin-eaceb8d2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{t as l,s as c}from"./icons-
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{t as l,s as c}from"./icons-21c46342.js";import{t as s,g as d,w as u,a as m}from"./index-833196ae.js";import"@babel/runtime/helpers/defineProperty";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/assertThisInitialized";function p(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,a=i(e);if(t){var r=i(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return o(this,n)}}var h=r.getComponent("Component"),v=function(o){a(v,h);var i=p(v);function v(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,v),(n=i.call(this,e,a)).playerId=a.playerId,n.seriesData=a.sres,n.currentVideoData=a.res,n.initialiseStructure(),n.loadCSS(),n}return n(v,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(l())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./settings-icon-0125bffd.js").then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=r.dom.createEl("div",{className:"selection-container hidden"});r.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(s(),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:"addFunctionality",value:function(e){var t=this,n=this.el(),a=r.dom.createEl("div",{className:"settings-selector-head"}),o=r.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(c())});o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};var i=r.dom.createEl("div",{className:"settings-selector-title",innerHTML:"Settings"}),l=r.dom.createEl("div",{className:"settings-selector-content"}),s=r.dom.createEl("div",{className:"settings-container"}),u=this.createVideoQualityContainer();r.dom.appendContent(s,u);var m=this.createAudioQualityContainer();r.dom.appendContent(s,m),r.dom.appendContent(a,o),r.dom.appendContent(a,i),r.dom.appendContent(e,a),r.dom.appendContent(e,l),r.dom.appendContent(l,s),d(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")}))}},{key:"createAudioQualityContainer",value:function(){var e=d(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var n=r.dom.createEl("div",{className:"audio-language-container"}),a=r.dom.createEl("div",{className:"audio-language-container-title",innerHTML:"Audio Language"});r.dom.appendContent(n,a);for(var o=function(e){var a=document.createElement("label");a.className="audio-language-holder",a.setAttribute("for","language-radio-".concat(e));var o=document.createElement("div");o.className="audio - ".concat(e),o.innerHTML=t[e].label;var i=r.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});i.setAttribute("type","radio"),1==t[e].enabled&&(i.checked=!0),i.onchange=function(n){t.map((function(e){e.enabled=!1})),t[e].enabled=!0},r.dom.appendContent(a,i),r.dom.appendContent(a,o),r.dom.appendContent(n,a)},i=0;i<t.length;i++)o(i);return n}}},{key:"createVideoQualityContainer",value:function(){var t=this;u(this.playerId,"raw",!0);var n=r.dom.createEl("div",{className:"video-quality-container"}),a=r.dom.createEl("div",{className:"video-quality-container-title",innerHTML:"Video Quality"});r.dom.appendContent(n,a);for(var o=[].concat(e(m(this.playerId)),[{height:"Auto"}]),i=function(e){var a=document.createElement("label");a.className="video-quality-holder",a.setAttribute("for","quality".concat(e));var i=document.createElement("div");i.className="video-quality - ".concat(e),i.innerHTML=o[e].height+"".concat("Auto"==o[e].height?"":"p")+"".concat(o[e].height>=720?"<span class='hd-rendition'> HD</span>":"");var l=r.dom.createEl("input",{className:"radio - ".concat(e),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(o[e]),checked:"".concat(e==o.length-1)});l.setAttribute("type","radio"),l.onchange=function(n){var a=o[e];"true"=="".concat("Auto"==o[e].height)?u(t.playerId,a,!0):u(t.playerId,a)},r.dom.appendContent(a,l),r.dom.appendContent(a,i),r.dom.appendContent(n,a)},l=0;l<o.length;l++)i(l);return n}}]),v}();export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,f as t,g as s,S as o,h as i,i as n,M as r,b as l,N as a,j as d,R as m}from"./icons-
|
|
1
|
+
import{c as e,f as t,g as s,S as o,h as i,i as n,M as r,b as l,N as a,j as d,R as m}from"./icons-21c46342.js";import{i as u}from"./keyboardShortcuts-eb0ab746.js";import{g as p,b as c,c as b}from"./index-833196ae.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";function v(v,h){u(v,h),import("./skin-cd537931.js").then((function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e,t){0==t.liveVideo&&0==t.liveui&&i(e,"default",d());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&n(e,"default",m())}(v,h),function(i,n){var r=p(i),l=(null==n?void 0:n.sres)||null;r.on("loadeddata",(function(){e(i,"default",o()),l&&import("./nextEpisodeButton-3df5bad6.js").then((function(e){e.initaliseFunctionality(n.sres.seasons,c())}))})),r.one("loadedmetadata",(function(){var e;l&&(t(i,null==n||null===(e=n.sres)||void 0===e?void 0:e.seasons,n),s(n.sres,n.res,i))}))}(v,h),function(e,t){var s=p(e),o=document.getElementsByClassName("vjs-current-time")[0],i=document.getElementsByClassName("vjs-duration")[0],n=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(o&&(o.style.display="none"),i&&(i.style.display="none"),n&&(n.style.display="none"));s.controlBar.getChild("FullscreenToggle").el().appendChild(b(r(window.controlsColor))),s.controlBar.getChild("FullscreenToggle").el().appendChild(b(l(window.controlsColor)));var d=s.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(b(a()));var m=document.createElement("div");m.classList.add("caption-header"),d.querySelector(".vjs-menu-content").insertBefore(m,d.querySelector(".vjs-menu-item"))}(v,h)}export{v as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as e,l as t,h as l,i as n,e as i,m as o,n as r,o as a,p as s,M as d,b as u,q as m,r as v}from"./icons-21c46342.js";import{f as c,g as p,h as g,a as h,i as f,c as b}from"./index-833196ae.js";import y from"@babel/runtime/helpers/toConsumableArray";import{s as C}from"./autoNextVideo-abaf34b1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/assertThisInitialized";var x=c(),E=[];null==x||x.map((function(e){return E.push.apply(E,y(e.episodes))}));var N=function(e,t){var l=p(e),n=Math.floor(l.currentTime());if(Math.floor(l.duration())!=n){l.pause(e);var i=g();C(i,e,E,sessionStorage.getItem("token"))}};function j(l,n){var i=p(l);i.on("loadeddata",(function(){var o,r,a,s,d,u,m;(null===(o=h(l))||void 0===o?void 0:o.length)>0&&e(l,n),(null===(r=f(l))||void 0===r?void 0:r.length)>0&&t(l,n),null!=n&&null!==(a=n.series)&&void 0!==a&&a.enable&&function(e,t){var l;null==t||null===(l=t.series)||void 0===l||l.cb;var n=p(e);n.on("timeupdate",(function(){var e,t=Math.floor(n.currentTime()),l=n.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];l-t<=10&&g()<=(null==E?void 0:E.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")}));var i,o=E.filter((function(e,t){return t==g()}));if((null==o?void 0:o.length)>0)if(null!==(i=document.getElementsByClassName("next-ep-preview"))&&void 0!==i&&i[0]){var r,a,s,d,u,m,v,c,h;(null===(r=document.getElementsByClassName("next-ep-preview"))||void 0===r?void 0:r[0]).style.visibility="hidden";var f=null===(a=document.getElementsByClassName("next-ep-title"))||void 0===a?void 0:a[0],b=null===(s=document.getElementsByClassName("next-ep-img"))||void 0===s?void 0:s[0],y=null===(d=document.getElementsByClassName("next-ep-content"))||void 0===d?void 0:d[0],C=null===(u=o[0])||void 0===u?void 0:u.title;(null===(m=C)||void 0===m?void 0:m.length)>60&&(C=C.substr(0,60)+"..."),f.innerHTML="".concat(C),b.src=(null===(v=o[0])||void 0===v||null===(c=v.gist)||void 0===c||null===(h=c.imageGist)||void 0===h?void 0:h.r16x9)||"https://appcms.monumentalsportsnetwork.com/00000151-11b4-d29b-a17d-55fdb2b80000/_temp/images/placeholder-cover-rev1.png",y.onclick=function(){return N(e)}}else{var x,j,B,w,k,T=document.createElement("div");T.className="next-ep-preview",T.style.visibility="hidden",document.getElementById(e).append(T);var V=document.createElement("div");V.className="next-ep-header",V.innerHTML="Next up";var M=null===(x=o[0])||void 0===x?void 0:x.title,L=document.createElement("img");L.className="next-ep-img",L.src=(null===(j=o[0])||void 0===j||null===(B=j.gist)||void 0===B||null===(w=B.imageGist)||void 0===w?void 0:w.r16x9)||"https://appcms.monumentalsportsnetwork.com/00000151-11b4-d29b-a17d-55fdb2b80000/_temp/images/placeholder-cover-rev1.png";var I=document.createElement("div");I.className="next-ep-title",(null===(k=M)||void 0===k?void 0:k.length)>60&&(M=M.substr(0,60)+"..."),I.innerHTML="".concat(M);var P=document.createElement("div");P.className="next-ep-content",P.append(L),P.append(I),P.onclick=function(){return N(e)},T.append(V),T.append(P)}}(l,n),s=i.duration(),u=Math.floor(s/60),(m=null===(d=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===d?void 0:d[0])&&(m.style.marginRight=u>60?"56px":"41px")}))}function B(e,t){import("./skin-5a02ebe6.js").then((function(e){var t=document.createElement("style");t.id="default_v2",t.append("".concat(e.default)),document.head.appendChild(t)})),j(e,t),function(e,t){var l=p(e);l.controlBar.getChild("FullscreenToggle").el().appendChild(b(d(window.controlsColor))),l.controlBar.getChild("FullscreenToggle").el().appendChild(b(u(window.controlsColor)));var n=document.getElementsByClassName("vjs-time-control");t.liveVideo&&(n[0].style.display="none")}(e,t),function(e,t){var d,u,c,p,g;0==t.liveVideo&&0==t.liveui&&l(e,"defaultV2",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&n(e,"defaultV2",v());t.liveVideo||i(e);(null==t||null===(d=t.relatedVideos)||void 0===d?void 0:d.content.length)>0&&o(e,null==t?void 0:t.relatedVideos);(null==t||null===(u=t.streams)||void 0===u?void 0:u.length)>1&&r(e,null==t?void 0:t.streams);(null==t||null===(c=t.playlist)||void 0===c||null===(p=c.content)||void 0===p?void 0:p.length)>0&&a(e,null==t?void 0:t.playlist);null!=t&&null!==(g=t.series)&&void 0!==g&&g.enable&&s(e,t)}(e,t),function(e,t){var l=p(e),n=null==t?void 0:t.tvProviderLogoUrl;if(!n)return;var i=document.createElement("div");i.className="tvProviderImage";var o=document.createElement("img");o.src="".concat(n),o.alt="Provider Image",i.append(o),l.el().appendChild(i),l.on("useractive",(function(){i.classList.remove("vjs-fade")})),l.on("userinactive",(function(){l.paused()||i.classList.add("vjs-fade")})),l.on("fullscreenchange",(function(){l.isFullscreen_?i.style.top="3.2rem":i.style.top="1rem"}))}(e,t)}export{B as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e,p as t,e as r}from"./index-
|
|
1
|
+
import{g as e,p as t,e as r}from"./index-833196ae.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";function i(i){import("./skin-2c638dc1.js").then((function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)})),o(),function(i){var o=document.getElementById("".concat(i)),s=e(i);o&&o.addEventListener("touchstart",(function(){s.paused()?t(i):r(i)}))}(i)}var o=function(){document.getElementsByClassName("vjs-control-bar")[0].style.visibility="hidden"};export{i as initaliseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,M as t,b as n,c as s,d as o,S as r,e as l,N as a}from"./icons-
|
|
1
|
+
import{a as e,M as t,b as n,c as s,d as o,S as r,e as l,N as a}from"./icons-21c46342.js";import{g as i,d as c,c as u}from"./index-833196ae.js";import d from"@babel/runtime/helpers/defineProperty";import{i as m}from"./keyboardShortcuts-eb0ab746.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function v(l,a){var m=i(l);m.one("play",(function(){null!=a&&a.streams&&e(l,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a)),null!=a&&a.airplay&&"Safari"==c()&&m.addChild("airPlayButton"),null!=a&&a.chromecastReceiverId&&m.addChild("chromecastButton"),m.addChild("FullscreenToggle"),m.getChild("FullscreenToggle").el().appendChild(u(t(window.controlsColor))),m.getChild("FullscreenToggle").el().appendChild(u(n(window.controlsColor))),f(l)})),m.on("loadedmetadata",(function(){window.endFirstFrame(m),"Safari"!==c()&&s(l,"live",r())})),m.one("loadedmetadata",(function(){var e;null!=a&&a.streams&&(null==a||null===(e=a.streams)||void 0===e?void 0:e.length)>=2&&o(l,a)}))}function b(e,t){var n;m(e,t),(null==(n=t)||!n.liveui)&&(null==n||!n.liveVideo)||null!=n&&n.liveui&&null!=n&&n.liveVideo?import("./dvr_skin-9cc1b144.js").then((function(e){var t=document.createElement("style");t.id="dvr_skin",t.append("".concat(e.default)),document.head.appendChild(t)})):import("./nondvr_skin-64be70e5.js").then((function(e){var t=document.createElement("style");t.id="nondvr_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e,t){l(e)}(e),function(e,t){var n=i(e),s=n.controlBar.getChild("SubsCapsButton").el();document.getElementsByClassName("vjs-subs-caps-button")[1].appendChild(u(a()));var o=document.createElement("div");o.classList.add("caption-header"),s.querySelector(".vjs-menu-content").insertBefore(o,s.querySelector(".vjs-menu-item"));var r=document.createElement("div");if(r.innerText="Captions",r.className="fs14",document.getElementsByClassName("vjs-subs-caps-button")[0].appendChild(r),"Safari"==c()){document.getElementsByClassName("vjs-subs-caps-button")[0].style.left="9.5rem"}null!=t&&t.liveui||null==t||!t.liveVideo||(document.getElementsByClassName("vjs-progress-control")[0].style.display="none")}(e,t),v(e,t)}var h;function f(e){var t=i(e);j(),t.on("pause",(function(){clearTimeout(h),y()})),t.on("play",(function(){j()}));var n=document.getElementById("".concat(e));n.addEventListener("mouseenter",(function(){y(),t.paused()||j()})),n.addEventListener("touchstart",(function(){y(),j()})),n.addEventListener("mousemove",(function(){y(),t.paused()||j()}))}function y(){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 j(){var e=document.getElementsByClassName("vjs-chromecast-button")[0],t=document.getElementsByClassName("vjs-fullscreen-control")[0],n=document.getElementsByClassName("vjs-airplay-button")[0];clearTimeout(h),h=setTimeout((function(){null==e||e.classList.add("hideoutsidecontrols"),null==t||t.classList.add("hideoutsidecontrols"),null==n||n.classList.add("hideoutsidecontrols")}),2200)}export{f as hideControls,b as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{E as a,s as l}from"./icons-
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{E as a,s as l}from"./icons-21c46342.js";import{t as s,g as c,j as d,l as m,n as u}from"./index-833196ae.js";import{a as p}from"./autoNextVideo-abaf34b1.js";import"@babel/runtime/helpers/defineProperty";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";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 o,r=i(e);if(t){var a=i(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return n(this,o)}}var h=r.getComponent("Component"),f=function(n){o(f,h);var i=v(f);function f(t){var o,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,f),(r=i.call(this,t,a)).playerId=a.playerId,r.seriesData=a.sres,r.videos=a.related.content,r.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,r.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,r.currentVideoData=a.res,r.initialiseStructure(),r.loadCSS(),r.autoNext&&p({playerId:r.playerId,content:r.videos,cb:r.cb}),r}return t(f,[{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())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=t.classList)&&void 0!==o&&o.contains("hidden")?(s(),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 o=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(o,"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,o=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),i=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var a=r.dom.createEl("div",{className:"video-selector-title",innerHTML:"Recommended"}),s=r.dom.createEl("div",{className:"video-selector-content"}),p=r.dom.createEl("div",{className:"video-container"}),v=function(e){var o,n=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(){u(e+1);for(var o=r.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";d(e),m(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 l=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(o=t.videos[e])||void 0===o?void 0:o.title)||"")});r.dom.appendContent(n,i),r.dom.appendContent(n,l),r.dom.appendContent(p,n),r.dom.appendContent(s,p)},h=0;h<this.videos.length;h++)v(h);r.dom.appendContent(n,i),r.dom.appendContent(n,a),r.dom.appendContent(e,n),r.dom.appendContent(e,s),c(this.playerId).on("fullscreenchange",(function(){var o=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(o,"px")}))}}]),f}();export{f as default};
|
package/package.json
CHANGED
package/cjs/skin-5efdf0f8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./icons-d7054875.js"),t=require("./index-e8af37a8.js"),i=require("@babel/runtime/helpers/toConsumableArray"),n=require("./autoNextVideo-588fa847.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime/helpers/assertThisInitialized");var l=t.getCurrentSeries(),r=[];l.map((function(e){return r.push.apply(r,i(e.episodes))}));var o=function(e,i){var l=t.getPlayer(e),o=Math.floor(l.currentTime());if(Math.floor(l.duration())!=o){l.pause(e);var a=t.getVideoIdx();n.switchToNext(a,e,r,sessionStorage.getItem("token"))}};function a(i,n){t.getPlayer(i).on("loadeddata",(function(){var l,a;(null===(l=t.getRenditions(i))||void 0===l?void 0:l.length)>0&&e.addSettingsButtonV2(i,n),(null===(a=t.getCaptions(i))||void 0===a?void 0:a.length)>0&&e.addCaptionButton(i,n),function(e,i){var n;null==i||null===(n=i.series)||void 0===n||n.cb;var l=t.getPlayer(e);l.on("timeupdate",(function(){var e,i=Math.floor(l.currentTime()),n=l.duration(),o=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];n-i<=10&&t.getVideoIdx()<=(null==r?void 0:r.length)-1?o&&(o.style.visibility="visible"):o&&(o.style.visibility="hidden")}));var a,d=r.filter((function(e,i){return i==t.getVideoIdx()}));if((null==d?void 0:d.length)>0)if(null!==(a=document.getElementsByClassName("next-ep-preview"))&&void 0!==a&&a[0]){var s,u,v,c,m,p,g,h,b;(null===(s=document.getElementsByClassName("next-ep-preview"))||void 0===s?void 0:s[0]).style.visibility="hidden";var f=null===(u=document.getElementsByClassName("next-ep-title"))||void 0===u?void 0:u[0],y=null===(v=document.getElementsByClassName("next-ep-img"))||void 0===v?void 0:v[0],x=null===(c=document.getElementsByClassName("next-ep-content"))||void 0===c?void 0:c[0],C=null===(m=d[0])||void 0===m?void 0:m.title;(null===(p=C)||void 0===p?void 0:p.length)>60&&(C=C.substr(0,60)+"..."),f.innerHTML="".concat(C),y.src=(null===(g=d[0])||void 0===g||null===(h=g.gist)||void 0===h||null===(b=h.imageGist)||void 0===b?void 0:b.r16x9)||"https://appcms.monumentalsportsnetwork.com/00000151-11b4-d29b-a17d-55fdb2b80000/_temp/images/placeholder-cover-rev1.png",x.onclick=function(){return o(e)}}else{var q,V,E,N,S,w=document.createElement("div");w.className="next-ep-preview",w.style.visibility="hidden",document.getElementById(e).append(w);var B=document.createElement("div");B.className="next-ep-header",B.innerHTML="Next up";var k=null===(q=d[0])||void 0===q?void 0:q.title,j=document.createElement("img");j.className="next-ep-img",j.src=(null===(V=d[0])||void 0===V||null===(E=V.gist)||void 0===E||null===(N=E.imageGist)||void 0===N?void 0:N.r16x9)||"https://appcms.monumentalsportsnetwork.com/00000151-11b4-d29b-a17d-55fdb2b80000/_temp/images/placeholder-cover-rev1.png";var M=document.createElement("div");M.className="next-ep-title",(null===(S=k)||void 0===S?void 0:S.length)>60&&(k=k.substr(0,60)+"..."),M.innerHTML="".concat(k);var P=document.createElement("div");P.className="next-ep-content",P.append(j),P.append(M),P.onclick=function(){return o(e)},w.append(B),w.append(P)}}(i,n)}))}exports.initialiseSkin=function(i,n){Promise.resolve().then((function(){return require("./skin-638aecc2.js")})).then((function(e){var t=document.createElement("style");t.id="default_v2",t.append("".concat(e.default)),document.head.appendChild(t)})),a(i,n),function(i,n){var l=t.getPlayer(i);l.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(e.MinimizeSvg(window.controlsColor))),l.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(e.MaximizeSvg(window.controlsColor)));var r=document.getElementsByClassName("vjs-time-control");n.liveVideo&&(r[0].style.display="none")}(i,n),function(t,i){var n,l,r,o;0==i.liveVideo&&0==i.liveui&&e.addSkipButton(t,"defaultV2",e.SkipSvgV2());(0==i.liveVideo&&0==i.liveui||1==i.liveui)&&e.addRewindButton(t,"defaultV2",e.RewindSvgV2());i.liveVideo||e.addSlowMotion(t);(null==i||null===(n=i.relatedVideos)||void 0===n?void 0:n.content.length)>0&&e.addVideoSelector(t,null==i?void 0:i.relatedVideos);(null==i||null===(l=i.streams)||void 0===l?void 0:l.length)>1&&e.addMulticamSelector(t,null==i?void 0:i.streams);(null==i||null===(r=i.playlist)||void 0===r||null===(o=r.content)||void 0===o?void 0:o.length)>0&&e.addPlaylistSelector(t,null==i?void 0:i.playlist);null!=i&&i.series&&e.addSeriesSelectorV2(t,i)}(i,n),function(e,i){var n=t.getPlayer(e),l=null==i?void 0:i.tvProviderLogoUrl;if(!l)return;var r=document.createElement("div");r.className="tvProviderImage";var o=document.createElement("img");o.src="".concat(l),o.alt="Provider Image",r.append(o),n.el().appendChild(r),n.on("useractive",(function(){r.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||r.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?r.style.top="3.2rem":r.style.top="1rem"}))}(i,n)};
|
package/esm/skin-eaceb8d2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as e,l as t,h as n,i,e as l,m as o,n as a,o as r,p as s,M as d,b as u,q as m,r as v}from"./icons-deaa225e.js";import{f as c,g as p,h as g,a as h,i as f,c as b}from"./index-c4cffdae.js";import y from"@babel/runtime/helpers/toConsumableArray";import{s as C}from"./autoNextVideo-3ca6fac2.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/assertThisInitialized";var x=c(),E=[];x.map((function(e){return E.push.apply(E,y(e.episodes))}));var N=function(e,t){var n=p(e),i=Math.floor(n.currentTime());if(Math.floor(n.duration())!=i){n.pause(e);var l=g();C(l,e,E,sessionStorage.getItem("token"))}};function j(n,i){p(n).on("loadeddata",(function(){var l,o;(null===(l=h(n))||void 0===l?void 0:l.length)>0&&e(n,i),(null===(o=f(n))||void 0===o?void 0:o.length)>0&&t(n,i),function(e,t){var n;null==t||null===(n=t.series)||void 0===n||n.cb;var i=p(e);i.on("timeupdate",(function(){var e,t=Math.floor(i.currentTime()),n=i.duration(),l=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];n-t<=10&&g()<=(null==E?void 0:E.length)-1?l&&(l.style.visibility="visible"):l&&(l.style.visibility="hidden")}));var l,o=E.filter((function(e,t){return t==g()}));if((null==o?void 0:o.length)>0)if(null!==(l=document.getElementsByClassName("next-ep-preview"))&&void 0!==l&&l[0]){var a,r,s,d,u,m,v,c,h;(null===(a=document.getElementsByClassName("next-ep-preview"))||void 0===a?void 0:a[0]).style.visibility="hidden";var f=null===(r=document.getElementsByClassName("next-ep-title"))||void 0===r?void 0:r[0],b=null===(s=document.getElementsByClassName("next-ep-img"))||void 0===s?void 0:s[0],y=null===(d=document.getElementsByClassName("next-ep-content"))||void 0===d?void 0:d[0],C=null===(u=o[0])||void 0===u?void 0:u.title;(null===(m=C)||void 0===m?void 0:m.length)>60&&(C=C.substr(0,60)+"..."),f.innerHTML="".concat(C),b.src=(null===(v=o[0])||void 0===v||null===(c=v.gist)||void 0===c||null===(h=c.imageGist)||void 0===h?void 0:h.r16x9)||"https://appcms.monumentalsportsnetwork.com/00000151-11b4-d29b-a17d-55fdb2b80000/_temp/images/placeholder-cover-rev1.png",y.onclick=function(){return N(e)}}else{var x,j,w,B,k,T=document.createElement("div");T.className="next-ep-preview",T.style.visibility="hidden",document.getElementById(e).append(T);var V=document.createElement("div");V.className="next-ep-header",V.innerHTML="Next up";var M=null===(x=o[0])||void 0===x?void 0:x.title,L=document.createElement("img");L.className="next-ep-img",L.src=(null===(j=o[0])||void 0===j||null===(w=j.gist)||void 0===w||null===(B=w.imageGist)||void 0===B?void 0:B.r16x9)||"https://appcms.monumentalsportsnetwork.com/00000151-11b4-d29b-a17d-55fdb2b80000/_temp/images/placeholder-cover-rev1.png";var I=document.createElement("div");I.className="next-ep-title",(null===(k=M)||void 0===k?void 0:k.length)>60&&(M=M.substr(0,60)+"..."),I.innerHTML="".concat(M);var P=document.createElement("div");P.className="next-ep-content",P.append(L),P.append(I),P.onclick=function(){return N(e)},T.append(V),T.append(P)}}(n,i)}))}function w(e,t){import("./skin-5a02ebe6.js").then((function(e){var t=document.createElement("style");t.id="default_v2",t.append("".concat(e.default)),document.head.appendChild(t)})),j(e,t),function(e,t){var n=p(e);n.controlBar.getChild("FullscreenToggle").el().appendChild(b(d(window.controlsColor))),n.controlBar.getChild("FullscreenToggle").el().appendChild(b(u(window.controlsColor)));var i=document.getElementsByClassName("vjs-time-control");t.liveVideo&&(i[0].style.display="none")}(e,t),function(e,t){var d,u,c,p;0==t.liveVideo&&0==t.liveui&&n(e,"defaultV2",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"defaultV2",v());t.liveVideo||l(e);(null==t||null===(d=t.relatedVideos)||void 0===d?void 0:d.content.length)>0&&o(e,null==t?void 0:t.relatedVideos);(null==t||null===(u=t.streams)||void 0===u?void 0:u.length)>1&&a(e,null==t?void 0:t.streams);(null==t||null===(c=t.playlist)||void 0===c||null===(p=c.content)||void 0===p?void 0:p.length)>0&&r(e,null==t?void 0:t.playlist);null!=t&&t.series&&s(e,t)}(e,t),function(e,t){var n=p(e),i=null==t?void 0:t.tvProviderLogoUrl;if(!i)return;var l=document.createElement("div");l.className="tvProviderImage";var o=document.createElement("img");o.src="".concat(i),o.alt="Provider Image",l.append(o),n.el().appendChild(l),n.on("useractive",(function(){l.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||l.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?l.style.top="3.2rem":l.style.top="1rem"}))}(e,t)}export{w as initialiseSkin};
|