@viewlift/player-backup 1.0.5 → 1.0.7
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-3aaff566.js → autoNextVideo-4163d5c2.js} +1 -1
- package/cjs/bundle.css +10 -4
- package/cjs/{caption-settings-76ed854d.js → caption-settings-ad980ad3.js} +1 -1
- package/cjs/features-f7733e01.js +1 -0
- package/cjs/generic-45f637f2.js +1 -0
- package/cjs/icons-51594f89.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/{keyboardShortcuts-3cc0fa11.js → keyboardShortcuts-8bd052fb.js} +1 -1
- package/cjs/{multicam-a200364d.js → multicam-1d9473c8.js} +1 -1
- package/cjs/{multicamv2-67380660.js → multicamv2-a7f4ff72.js} +1 -1
- package/cjs/{mwebPotraitTray-b6c71827.js → mwebPotraitTray-6c524617.js} +1 -1
- package/cjs/{nextEpisodeButton-a6a1697d.js → nextEpisodeButton-f3ff6d9e.js} +1 -1
- package/cjs/{playlist-bdc414be.js → playlist-c32b9c8d.js} +1 -1
- package/cjs/{renditions-794974d0.js → renditions-cb9515b8.js} +1 -1
- package/cjs/{resolution-fe340a36.js → resolution-c6bcf1a6.js} +1 -1
- package/cjs/{series-37b1fb67.js → series-3da817d3.js} +1 -1
- package/cjs/{series-v2-74e6c6d2.js → series-v2-e7a1bc3b.js} +1 -1
- package/cjs/{settings-icon-51994642.js → settings-icon-cd56fbfc.js} +1 -1
- package/cjs/{skin-c6e823f1.js → skin-12d8252d.js} +1 -1
- package/cjs/skin-2beeb826.js +1 -0
- package/cjs/skin-70646405.js +1 -0
- package/cjs/{skin-afbec6d7.js → skin-921d35a8.js} +1 -1
- package/cjs/{skin-7c1526f5.js → skin-96d16073.js} +1 -1
- package/cjs/{skin-db5330a7.js → skin-9fb07a54.js} +1 -1
- package/cjs/{util-503d4ddb.js → util-ca061a1d.js} +1 -1
- package/cjs/{videoSelector-e3962aaa.js → videoSelector-eca25f20.js} +1 -1
- package/esm/autoNextVideo-40f210b4.js +1 -0
- package/esm/bundle.css +10 -4
- package/esm/{caption-settings-302784ab.js → caption-settings-3f08ab05.js} +1 -1
- package/esm/{features-bdc78af1.js → features-10512a77.js} +1 -1
- package/esm/generic-9255683b.js +1 -0
- package/esm/{icons-c18c70b7.js → icons-f5378bf3.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{keyboardShortcuts-15db3108.js → keyboardShortcuts-6f81a061.js} +1 -1
- package/esm/{multicam-902fbd6a.js → multicam-f6ae2c82.js} +1 -1
- package/esm/{multicamv2-b71f7dca.js → multicamv2-a65c3552.js} +1 -1
- package/esm/{mwebPotraitTray-7276803f.js → mwebPotraitTray-34577ab3.js} +1 -1
- package/esm/{nextEpisodeButton-35fbcec0.js → nextEpisodeButton-ca3e3f6f.js} +1 -1
- package/esm/{playlist-575f4c86.js → playlist-cea018cf.js} +1 -1
- package/esm/{renditions-9fc9c91c.js → renditions-35d56dc6.js} +1 -1
- package/esm/{resolution-227e3743.js → resolution-db436c06.js} +1 -1
- package/esm/{series-10e80e63.js → series-062cb718.js} +1 -1
- package/esm/{series-v2-57493340.js → series-v2-fbaebdfc.js} +1 -1
- package/esm/{settings-icon-ebc9d7ce.js → settings-icon-b0735d17.js} +1 -1
- package/esm/skin-21a14d40.js +1 -0
- package/esm/{skin-c7172967.js → skin-22330cf1.js} +1 -1
- package/esm/skin-245d093e.js +1 -0
- package/esm/{skin-93e320fc.js → skin-3470b8fa.js} +1 -1
- package/esm/{skin-395255aa.js → skin-523c80c5.js} +1 -1
- package/esm/{skin-4bdf2011.js → skin-e32cc5fa.js} +1 -1
- package/esm/{util-c77f4b50.js → util-832976ac.js} +1 -1
- package/esm/{videoSelector-4a8a7b60.js → videoSelector-6ba4f4ba.js} +1 -1
- package/package.json +4 -2
- package/cjs/debugSelection-cbfdabb7.js +0 -1
- package/cjs/features-af80596c.js +0 -1
- package/cjs/generic-956d7c72.js +0 -1
- package/cjs/icons-7afb9c13.js +0 -1
- package/cjs/index-0dfa585b.js +0 -1
- package/cjs/index-df24e8d4.js +0 -1
- package/cjs/skin-6e068a3b.js +0 -1
- package/cjs/skin-b99d1256.js +0 -1
- package/esm/autoNextVideo-df07871f.js +0 -1
- package/esm/debugSelection-2601b8b3.js +0 -1
- package/esm/generic-bf7f24d7.js +0 -1
- package/esm/index-037539e0.js +0 -1
- package/esm/index-f98526bd.js +0 -1
- package/esm/skin-4975c934.js +0 -1
- package/esm/skin-ed1b1e01.js +0 -1
package/cjs/features-af80596c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/classCallCheck"),r=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),l=require("@babel/runtime/helpers/getPrototypeOf"),i=require("video.js"),a=require("./generic-956d7c72.js"),s=require("./renditions-794974d0.js");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}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 r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o(this,r)}}exports.addCaptionButton=function(e,t){Promise.resolve().then((function(){return require("./caption-settings-76ed854d.js")})).then((function(r){var n,o,l,s,u=r.default,c=a.getPlayer(e);i.registerComponent("captionSelector",u),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(s=l[0])||void 0===s||s.remove(),c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)}))},exports.addDebugSelector=function(e,t){Promise.resolve().then((function(){return require("./index-df24e8d4.js")})).then((function(r){var n=r.default,o=a.getPlayer(e);i.registerComponent("debugSelector",n),o.getChild("controlBar").addChild("debugSelector",{playerId:e,options:t},o.controlBar.children().length-4)}))},exports.addMulticamSelector=function(e,t){Promise.resolve().then((function(){return require("./multicamv2-67380660.js")})).then((function(r){var n=r.default,o=a.getPlayer(e);i.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},exports.addMulticamView=function(e,t){Promise.resolve().then((function(){return require("./multicam-a200364d.js")})).then((function(r){var n=r.default,o=t.streams,l=a.getPlayer(e);i.registerComponent("multicamModule",n),l.getChild("controlBar").addChild("multicamModule",{playerId:e,streams:o,config:t},l.controlBar.children().length)}));var r=document.querySelector(".vjs-control-bar");r&&"live"==(null==t?void 0:t.skin)&&(r.style.background="transparent")},exports.addMwebPotraitTrayModule=function(e,t){Promise.resolve().then((function(){return require("./mwebPotraitTray-b6c71827.js")})).then((function(r){var n=r.default,o=a.getPlayer(e);i.registerComponent("mwebPotraitTray",n),o.getChild("controlBar").addChild("mwebPotraitTray",{playerId:e,config:t},0)}))},exports.addNextEpisodeButton=function(e,t,r){Promise.resolve().then((function(){return require("./nextEpisodeButton-a6a1697d.js")})).then((function(n){var o=n.default,l=a.getPlayer(r);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},l.controlBar.children().length-5)}))},exports.addOutputtingOverlay=function(e,t){var r=a.getPlayer(e).el(),n=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(n)},exports.addPlaylistSelector=function(e,t){Promise.resolve().then((function(){return require("./playlist-bdc414be.js")})).then((function(r){var n=r.default,o=a.getPlayer(e);i.registerComponent("playlistSelector",n),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)}))},exports.addResolutionModule=function(e,t,r){Promise.resolve().then((function(){return require("./resolution-fe340a36.js")})).then((function(n){var o=n.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=a.getPlayer(e),u=s.getRenditions(e);(null==u?void 0:u.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:u},l.controlBar.children().length-4))}))},exports.addRewindButton=function(e,o,l){var s=function(o){n(s,o);var i=c(s);function s(e,r){var n;t(this,s);var o=(n=i.call(this,e,r)).el_;return o.classList.add("vjs-rewind-button"),o.innerHTML=l,n}return r(s,[{key:"handleClick",value:function(){a.rewind(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},exports.addSeriesModule=function(e,t,r){Promise.resolve().then((function(){return require("./series-37b1fb67.js")})).then((function(n){var o=n.seriesModule,l=a.getPlayer(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var s=document.querySelectorAll(".season-title-sdk"),u=function(e){s[e].addEventListener("click",(function(){t[e]&&n.handleSeasonChange(t[e],e,l,r)}))},c=0;c<s.length;c++)u(c)}))},exports.addSeriesSelectorV2=function(t,r){Promise.resolve().then((function(){return require("./series-v2-74e6c6d2.js")})).then((function(n){var o=n.default,l=a.getPlayer(t);i.registerComponent("seriesV2",o),l.getChild("controlBar").addChild("seriesV2",function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?u(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({playerId:t},r),l.controlBar.children().length-3)}))},exports.addSettingsButtonV2=function(e,t){Promise.resolve().then((function(){return require("./settings-icon-51994642.js")})).then((function(r){var n,o,l,s,u=r.default,c=a.getPlayer(e);i.registerComponent("settingsSelector",u),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(s=l[0])||void 0===s||s.remove(),c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)}))},exports.addSkipButton=function(e,o,l){var s=function(o){n(s,o);var i=c(s);function s(e,r){var n;t(this,s);var o=(n=i.call(this,e,r)).el_;return o.classList.add("vjs-skip-button"),o.innerHTML=l,n}return r(s,[{key:"handleClick",value:function(){a.skip(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},exports.addSlowMotion=function(e){var o=function(e){n(i,e);var o=c(i);function i(e,r){var n;t(this,i);var l=(n=o.call(this,e,r)).el_;return l.classList.add("vjs-slowmo-button"),l.innerHTML="Slow Mo",n}return r(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},exports.addVideoSelector=function(e,t){Promise.resolve().then((function(){return require("./videoSelector-e3962aaa.js")})).then((function(r){var n=r.default,o=a.getPlayer(e);i.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))};
|
package/cjs/generic-956d7c72.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("video.js"),n=require("axios");require("js-cookie");var o=require("ua-parser-js"),i={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series"};function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var l=function(e,t){var o,i;return n({url:I(),params:a({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(o=window)||void 0===o||null===(i=o.customData)||void 0===i?void 0:i.entitlement),method:"GET",headers:{Authorization:t},withCredentials:!0})},s=function(e,t){var o,i,r=(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i?void 0:i.apiVersion)||"v1";if("v1"==r){var a,l,s=JSON.parse(atob(t.split(".")[1])),d=(null==s?void 0:s.site)||null;return n({method:"GET",url:c(e),params:{site:d},headers:{Authorization:t,"x-api-key":null===(a=window)||void 0===a||null===(l=a.watchHistory)||void 0===l?void 0:l.xApiKey}})}if("v2"==r){var u,m;JSON.parse(atob(t.split(".")[1]));var p=window.contentType;return n({method:"GET",url:v(e,p),headers:{Authorization:t,"x-api-key":null===(u=window)||void 0===u||null===(m=u.watchHistory)||void 0===m?void 0:m.xApiKey}})}},d=function(e){return g()+"".concat(null==i?void 0:i.getSeriesWatchHistoryV2,"/").concat(e)},u=function(){return g()+"".concat(null==i?void 0:i.getSeriesWatchHistoryV1)},c=function(e){return g()+"".concat(null==i?void 0:i.getVideoInfoV1,"/").concat(e)},v=function(e,t){return g()+"".concat(null==i?void 0:i.getVideoInfoV2,"/").concat(t,"/").concat(e)},m=function(){return g()+"".concat(null==i?void 0:i.saveWatchHistoryV1)},p=function(){return g()+"".concat(null==i?void 0:i.saveWatchHistoryV2)},I=function(){return g()+"".concat(null==i?void 0:i.getVideoDetails)},g=function(){var e;return(null===(e=window)||void 0===e?void 0:e.playerEntitlementUrl)||(null==i?void 0:i.apiBaseUrl)},f=function(e,t){if(Promise.resolve().then((function(){return require("./error-26d5a3c3.js")})).then((function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)})),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var o=document.getElementById(e),i=document.createElement("div");i.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),i.appendChild(r),o.append(i)}},E=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var T=function(){var e,t,n,o;return null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.onlyPlayReadyDRM||navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(n=window.navigator)||void 0===n||null===(o=n.userAgentData)||void 0===o?void 0:o.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?y(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}window._deviceInfo=o(navigator.userAgent);var h=function(e,t){return e&&t?"".concat(e,"x").concat(t):e>1024?"L":e>768?"M":"S"},O=function(e){var t=_(e,"video.tags",[]),n=_(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?t.map((function(e){return e.title})).join(","):n},_=function(e,t,n){for(var o=0,i=(t=t.split(".")).length;o<i;o++){var r;e=null===(r=e)||void 0===r?void 0:r[t[o]]}return e||n},D=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},b=function(){var e,t,n,o,i,r,a,l,s,d,u,c,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",m=arguments.length>1?arguments[1]:void 0,p=arguments.length>2?arguments[2]:void 0,I=null==p||null===(e=p.video)||void 0===e?void 0:e.metadata,g=J(m);if(!v.includes("VIEWLIFT_"))return v;var f=window.getComputedStyle(document.getElementById(m),null),E=Math.trunc(f.getPropertyValue("height").slice(0,-2)),T=Math.trunc(f.getPropertyValue("width").slice(0,-2)),y=_(p,"video.gist.id",""),D=w(w({},V(I)),{},{VIEWLIFT_WIDTH:T,VIEWLIFT_HEIGHT:E,VIEWLIFT_SIZE:h(T,E),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(t=window)||void 0===t?void 0:t.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:navigator.userAgent,VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:_(p,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:_(p,"video.gist.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:_(p,"video.gist.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==g||null===(n=g.options_)||void 0===n?void 0:n.autoplay)||1,VIEWLIFT_MUTE:(null==g||null===(o=g.options_)||void 0===o?void 0:o.autoplay)||0,VIEWLIFT_DEVICE_ID:localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_KEYWORDS:O(p),VIEWLIFT_MEDIA_ID:y,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(_(p,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:y,VIEWLIFT_VIDEO_URL:encodeURI(window.location.host+_(p,"video.gist.permalink","")),VIEWLIFT_COPPA:_(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(a=r.site)||void 0===a?void 0:a.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR:_(null===(l=window)||void 0===l||null===(s=l.app_data)||void 0===s||null===(d=s.site)||void 0===d?void 0:d.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*_(p,"video.gist.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:_(p,"video.gist.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:y,VIEWLIFT_CONTENT_TITLE:_(p,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),VIEWLIFT_CONTENT_SERIES_TITLE:_(p,"video.series[0].gist.title",_(p,"seriesInfo.title","VIEWLIFT_CONTENT_SERIES_TITLE")),VIEWLIFT_CONTENT_EPISODE:_(p,"video.currentEpisode","VIEWLIFT_CONTENT_EPISODE"),VIEWLIFT_CONTENT_SEASON:_(p,"video.currentSeason","VIEWLIFT_CONTENT_SEASON"),VIEWLIFT_CONTENT_GENRE:_(p,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER"},null===(u=window)||void 0===u||null===(c=u.customData)||void 0===c?void 0:c.macros);for(var b in D){var S=new RegExp("\\b("+b+")\\b","g");v=v.replace(S,D[b])}return v},V=function(e){var t,n,o,i,r,a,l={},s=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map((function(e){s.set(e.name,e.value)})));var d=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(o=n.subscription)||void 0===o?void 0:o.SVOD)||!1,u=(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(a=r.subscription)||void 0===a?void 0:a.TVE)||!1;return d||u?(D()?d?l=w(w({},l),{},{VIEWLIFT_CSID:s.get("csid.mweb.dtc")||""}):u&&(l=w(w({},l),{},{VIEWLIFT_CSID:s.get("csid.mweb.tve")||""})):d?l=w(w({},l),{},{VIEWLIFT_CSID:s.get("csid.web.dtc")||""}):u&&(l=w(w({},l),{},{VIEWLIFT_CSID:s.get("csid.web.tve")||""})),d?l=w(w({},l),{},{VIEWLIFT_SFID:s.get("sfid.dtc")||""}):u&&(l=w(w({},l),{},{VIEWLIFT_SFID:s.get("sfid.tve")||""})),l=D()?w(w({},l),{},{VIEWLIFT_PROF:s.get("prof.mweb")||""}):w(w({},l),{},{VIEWLIFT_PROF:s.get("prof.web")||""})):(l=w(w({},l),{},{VIEWLIFT_SFID:s.get("sfid.dtc")||""}),l=D()?w(w({},l),{},{VIEWLIFT_CSID:s.get("csid.mweb.dtc")||""}):w(w({},l),{},{VIEWLIFT_CSID:s.get("csid.web.dtc")||""})),l};function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?S(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var C,W,x,P,A,F=function(e,t){var n,o,i,r,a,l,s,d,u,c,v,m=null==e||null===(n=e.video)||void 0===n?void 0:n.drmEnabled,p=null==e||null===(o=e.video)||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.videoAssets,I=(null==e||null===(r=e.video)||void 0===r||null===(a=r.streamingInfo)||void 0===a||null===(l=a.videoAssets)||void 0===l?void 0:l.hls)||!1,g=(null==e||null===(s=e.video)||void 0===s||null===(d=s.streamingInfo)||void 0===d||null===(u=d.videoAssets)||void 0===u?void 0:u.dash)||!1,f=(null==e||null===(c=e.video)||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1;if(m){var E=k(p,t);return E.src=b(E.src,t,e),f&&(E=L(L({},E),{},{src:N(L(L({},e.video),{},{src:"".concat(E.src)}))})),E}if("Safari"!==T()&&g)return R(p);if(I){var y=j(p);return y.src=b(y.src,t,e),f&&(y=L(L({},y),{},{src:N(L(L({},e.video),{},{src:"".concat(y.src)}))})),y}if(null!=p&&p.mpeg){var w=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(p);return w.src=b(w.src,t,e),w}return null},R=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},N=function(e){var t=e.src;if(e.liveDetails.startOverTime){var n=e.liveDetails.startOverTime,o=e.gist.scheduleStartDate,i=e.gist.scheduleEndDate,r=new Date,a=0,l=r.getTime();a=l-o<1e3*n?l-o:1e3*n;var s=null;i<=l&&null!=i&&(s=new Date(i)),r.setMilliseconds(r.getMilliseconds()-a),t=t.includes("?")?i&&s?"".concat(e.src,"&start=").concat(r.toISOString(),"&end=").concat(s.toISOString()):"".concat(e.src,"&start=").concat(r.toISOString()):i&&s?"".concat(e.src,"?start=").concat(r.toISOString(),"&end=").concat(s.toISOString()):"".concat(e.src,"?start=").concat(r.toISOString())}return t},j=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},k=function(e,n){var o=e.fairPlay,i=e.widevine,r=e.playReady,a=T(),l=J(n);if("Safari"===a){var s=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,o){var i={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};t.xhr(i,(function(e,t,n){console.log(e),e&&o(e),o(null,new Uint8Array(n))}))},getContentId:function(e,t){if(t)return new TextDecoder("utf-16").decode(t.slice(16))},getLicense:function(n,o,i,r){var a={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:i,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};t.xhr(a,(function(e,t,n){console.log(e),e&&r(e),r(null,n)}))}}}}}(o);try{l.eme()}catch(e){}return s}if("Chrome"===a||"Firefox"===a){var d={src:i.url,type:"application/dash+xml",keySystemOptions:[]};return d.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:i.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":i.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),d}if("IE"===a){var u={src:r.url,type:"application/dash+xml",keySystemOptions:[]};return u.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:r.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":r.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),u}};var B=function(e){W=e},U=function(e){x=e},M=function(e){if(P){var t=P.get(e);U(t+1)}},H=function(e,t){var n=J(e);n.remoteTextTracks().tracks_.map((function(e){n.removeRemoteTextTrack(e)})),t.map((function(e){n.addRemoteTextTrack({src:e.url,srcLang:e.language,label:e.language})}))},z=!1,G=function(e,t,n){var o=b(t,e,n),i=J(e);t&&window.google&&(i.ima.initializeAdDisplayContainer&&i.ima.initializeAdDisplayContainer(),function(e,t){var n,o,i,r=J(e);if(null!==r.el_){z=!0;var a={id:e,adTagUrl:"".concat(t,"&vid=").concat(window.videoId,"&url=").concat(window.location.href,"&correlator=").concat((new Date).getTime(),"&cust_params=sd%3D60000%26site%3D").concat(window.location.origin,"%26autostart%3D%26mute%3D%26user_agent%3D%26keyword%3D%26category%3D").concat(window.category,"%26vid%3D").concat(window.videoId),adLabel:"Your video will resume after this sponsor message"};r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),z&&null!==r.el_&&("function"==typeof r.ima?r.ima(a):setTimeout((function(){r.ima.setContentWithAdTag(null,t,!0),r.ima.requestAds()}),1e3));var l=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&l.hasAttribute("controls")&&l.removeAttribute("controls");var s="click",d=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(d=!0,s="touchend"),r.one(s,(function(){d&&r.ima.initializeAdDisplayContainer()}));var u=(null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o||null===(i=o.ads)||void 0===i?void 0:i.adEventHandler)||null;r.one("ads-ad-started",(function(){u&&u({status:"STARTED",msg:"Advertisement Started"})})),r.one("ads-manager",(function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){u&&u({status:"ENDED",msg:"Advertisement Ended"})}))})),r.on("adserror",(function(e){u&&u({status:"ERROR",msg:"Advertisement Error"})}))}}(e,o))};function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var Y=function(e){return!!t.getPlayer("".concat(e))},J=function(e){return!!t.getPlayer("".concat(e))&&t.getPlayer("".concat(e))},K=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove()},X=function(e,t){J(e).src(t)},Z=function(t,n,o,i){var r,a,l,s,d,u,c=null==t||null===(r=t.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.errorCode,v=(null==t||null===(l=t.response)||void 0===l||null===(s=l.data)||void 0===s?void 0:s.errorMessage)||(null==t?void 0:t.message);Y(n)&&f(n,(null===(d=window)||void 0===d?void 0:d.customErrors)&&(null===(u=window)||void 0===u?void 0:u.customErrors[c])||"".concat(v)),o&&o(function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?q(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):q(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({status:!1,response:t,msg:"".concat(v)},i&&{videoId:i}))};exports.addCaptions=H,exports.clearError=E,exports.createIdxMapping=function(e){P=new Map,e.map((function(e,t){P.set(e.id,t)}))},exports.detectBrowser=T,exports.disableCaptions=function(e,t){for(var n=J(e).textTracks(),o=0;o<n.length;o++){var i=n[o];"subtitles"===i.kind&&i.id===t&&(i.mode="hidden")}},exports.disableControls=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var o=t.getElementsByClassName("vjs-big-play-button")[0];o&&(o.style.display="none");var i=t.getElementsByClassName("vjs-fullscreen-control")[0];i&&(i.style.display="none")},exports.dispose=function(e){var t=J(e);if(K(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},exports.enableCaptions=function(e,t){for(var n=J(e).textTracks(),o=0;o<n.length;o++){var i=n[o];"subtitles"===i.kind&&i.id==t&&(i.mode="showing")}},exports.getCaptions=function(e){var t,n=J(e);return(null==n||null===(t=n.textTracks())||void 0===t?void 0:t.tracks_.filter((function(e){return"subtitles"==e.kind})))||[]},exports.getCurrentSeries=function(){return C},exports.getCurrentVideo=function(){return W},exports.getPlayer=J,exports.getSeriesDetails=function(e,t){var o,i,r=JSON.parse(atob(t.split(".")[1])),a=(null==r?void 0:r.site)||null;return r&&r.countryCode,null!==(o=window)&&void 0!==o&&null!==(i=o.customData)&&void 0!==i&&i.seriesData?new Promise((function(e,t){var n,o;return e({data:null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.seriesData})})):n({url:g()+"/v3/content/series/".concat(e),params:{site:a},method:"GET",headers:{Authorization:t}})},exports.getSeriesWatchHistory=function(e){var t,o;if("v1"==((null===(t=window)||void 0===t||null===(o=t.watchHistory)||void 0===o?void 0:o.apiVersion)||"v1"))return n({method:"GET",url:u(),params:{site:null==e?void 0:e.siteOwner,version:"v2",seriesId:e.videoId},headers:{Authorization:e.token}});var i=e.videoId;return n({method:"GET",url:d(i),headers:{Authorization:e.token}})},exports.getSeriesWatchMap=function(){return A},exports.getSource=F,exports.getVideoDetails=l,exports.getVideoIdx=function(){return x},exports.getVideoInfo=s,exports.handleError=f,exports.initialiseAdvertisement=G,exports.initiateErrorHandling=Z,exports.isPaused=function(e){return t(e).paused()},exports.isPlayerInitialised=Y,exports.isTokenExpired=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},exports.load=function(e,t,n){var o,i,r;M(t);var a=0,d=0;return null!==(o=window)&&void 0!==o&&o.watchHistory&&null!==(i=window)&&void 0!==i&&null!==(r=i.watchHistory)&&void 0!==r&&r.enable&&s(t,n).then((function(e){var t,n,o,i,r,l;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),a=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,d=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null})).catch((function(e){var t,n,o,i;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))})),new Promise((function(o,i){l(t,n).then((function(t){var n,r,l,s,u,c,v,m,p,I,g=null==t?void 0:t.data,T=(null==g||null===(n=g.video)||void 0===n||null===(r=n.streamingInfo)||void 0===r?void 0:r.isLiveStream)||!1;B(t.data);var y=(null==g||null===(l=g.ads)||void 0===l||null===(s=l.preRoll)||void 0===s||null===(u=s.adTags)||void 0===u||null===(c=u.web)||void 0===c?void 0:c.active)&&(null==g||null===(v=g.ads)||void 0===v||null===(m=v.preRoll)||void 0===m||null===(p=m.adTags)||void 0===p||null===(I=p.web)||void 0===I?void 0:I.url);y&&G(e,y,g);var w=F(g,e);if(w){var h,O,_,D,b,V,S,L,C,W,x,P=null==g||null===(h=g.video)||void 0===h||null===(O=h.gist)||void 0===O?void 0:O.videoImageUrl,A=J(e);if(A.poster(P),X(e,w),A.on("loadstart",(function(){T&&o({status:!0,msg:"Video Loaded",response:g})})),A.on("loadeddata",(function(){E(),o({status:!0,msg:"Video Loaded",response:g})})),A.one("play",(function(){a&&d<95&&setTimeout((function(){A.currentTime(a)}),0)})),A.one("error",(function(){var e;i({status:!1,msg:(null==A||null===(e=A.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==g||null===(_=g.video)||void 0===_||null===(D=_.contentDetails)||void 0===D||null===(b=D.closedCaptions)||void 0===b?void 0:b.length)>0||(null==g||null===(V=g.video)||void 0===V||null===(S=V.closedCaptions)||void 0===S?void 0:S.length)>0)L=((null==g||null===(C=g.video)||void 0===C||null===(W=C.contentDetails)||void 0===W?void 0:W.closedCaptions)||(null==g||null===(x=g.video)||void 0===x?void 0:x.closedCaptions)).filter((function(e){return"VTT"===e.format})),H(e,L);else!function(e){var t=J(e);t.remoteTextTracks().tracks_.map((function(e){null==e||e.kind,t.removeRemoteTextTrack(e)}))}(e)}else f(e,"Incompatible Source, only hls,mp4,drm content is allowed"),i("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(n){Z(n,e,i,t)}))}))},exports.loadVideo=X,exports.loadVideoInstantly=function(e,t,n){var o=J(e);return o.src(t),new Promise((function(e,t){var i=0;o.one("loadedmetadata",(function(){clearTimeout(i),e({status:!0,msg:"video loaded"})})),o.one("loadstart",(function(e){i=setTimeout((function(){t("FAILED: Took too long to load")}),n)}))}))},exports.pause=function(e){t(e).pause()},exports.play=function(e){t(e).play()},exports.rewind=function(e,n){var o=t(e),i=o.currentTime(),r=i<=n?0:i-n;o.currentTime(r)},exports.saveWatchHistory=function(e,t,o){if("v1"==o){var i={siteOwner:null==e?void 0:e.siteOwner,userId:null==e?void 0:e.userId,videoId:null==e?void 0:e.videoId,watchedPercentage:null==e?void 0:e.watchedPercentage,watchedTime:null==e?void 0:e.watchedTime};return n({url:m(),method:"POST",headers:{Authorization:t,"x-api-key":e.xApiKey},params:{version:"v2"},data:JSON.stringify(i),withCredentials:!0})}if("v2"==o){var r=a({doneWatching:null==e?void 0:e.doneWatching,videoId:null==e?void 0:e.videoId,watchedPercentage:null==e?void 0:e.watchedPercentage,watchedTime:null==e?void 0:e.watchedTime},(null==e?void 0:e.seriesId)&&{seriesId:e.seriesId});return n({url:p(),method:"POST",headers:{Authorization:t},data:r,params:a({},(null==e?void 0:e.profileId)&&{profileId:null==e?void 0:e.profileId})})}},exports.setCurrentSeries=function(e){C=e},exports.setCurrentVideo=B,exports.setSeriesWatchMap=function(e){A=e},exports.setVideoIdx=U,exports.setVideoIdxById=M,exports.skip=function(e,n){var o=t(e),i=o.currentTime()+n;o.currentTime(i)};
|
package/cjs/icons-7afb9c13.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.BackIcon=function(){return'<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6169 0.418212C11.0883 0.933084 11.1247 1.74341 10.726 2.30391L10.6173 2.43852L3.69866 10.0029L10.6169 17.5611C11.0883 18.0759 11.1247 18.8863 10.726 19.4468L10.6173 19.5814C10.1461 20.0965 9.40458 20.1362 8.89165 19.7006L8.76847 19.5818L0 10.0039L8.76809 0.418626C9.27852 -0.13938 10.1063 -0.139565 10.6169 0.418212Z" fill="white"/>\n </svg>\n '},exports.BroadcastIcon=function(){return'<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.01316 12.1667L0.25 10.5V15.5L3.01316 14.25V18H15.25V8H3.01316V12.1667ZM7.67057 10.7216C7.53806 10.6283 7.35547 10.7231 7.35547 10.8852V15.1146C7.35547 15.2766 7.53806 15.3714 7.67057 15.2781L10.6757 13.1634C10.7889 13.0838 10.7889 12.916 10.6757 12.8363L7.67057 10.7216Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.25 2H20.25H21.25V3V10H20.25V3H7.25V2ZM17.25 5H4.25V6H17.25V13H18.25V6V5H17.25Z" fill="white"/>\n </svg>\n '},exports.CaptionsSvgV2=function(){return'<svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.4541 15.8369V2H0.454102V15.8369H11.992L17.7874 18V15.8369H20.4541ZM2.4541 4H18.4541V13.8614H15.9182L15.9179 15L11.9664 13.8614H2.4541V4Z" fill="white"/>\n <rect x="3.4541" y="6" width="9" height="2" fill="white"/>\n <rect x="14.4541" y="6" width="3" height="2" fill="white"/>\n <rect x="8.4541" y="10" width="9" height="2" fill="white"/>\n <rect x="3.4541" y="10" width="3" height="2" fill="white"/>\n </svg>\n '},exports.DebugSvg=function(){return'<svg width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#ffffff"><path d="M3.463 12.86l-.005-.07.005.07zm7.264.69l-3.034-3.049 1.014-1.014 3.209 3.225 3.163-3.163 1.014 1.014-3.034 3.034 3.034 3.05-1.014 1.014-3.209-3.225L8.707 17.6l-1.014-1.014 3.034-3.034z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.933 5.003V6h1.345l2.843-2.842 1.014 1.014-2.692 2.691.033.085a13.75 13.75 0 0 1 .885 4.912c0 .335-.011.667-.034.995l-.005.075h3.54v1.434h-3.72l-.01.058c-.303 1.653-.891 3.16-1.692 4.429l-.06.094 3.423 3.44-1.017 1.012-3.274-3.29-.099.11c-1.479 1.654-3.395 2.646-5.483 2.646-2.12 0-4.063-1.023-5.552-2.723l-.098-.113-3.209 3.208-1.014-1.014 3.366-3.365-.059-.095c-.772-1.25-1.34-2.725-1.636-4.34l-.01-.057H0V12.93h3.538l-.005-.075a14.23 14.23 0 0 1-.034-.995c0-1.743.31-3.39.863-4.854l.032-.084-2.762-2.776L2.65 3.135 5.5 6h1.427v-.997a5.003 5.003 0 0 1 10.006 0zm-8.572 0V6H15.5v-.997a3.569 3.569 0 0 0-7.138 0zm9.8 2.522l-.034-.09H5.733l-.034.09a12.328 12.328 0 0 0-.766 4.335c0 2.76.862 5.201 2.184 6.92 1.32 1.716 3.036 2.649 4.813 2.649 1.777 0 3.492-.933 4.813-2.65 1.322-1.718 2.184-4.16 2.184-6.919 0-1.574-.28-3.044-.766-4.335z"/></svg>'},exports.EpisodesSvg=function(){return'<svg class=\'icon icon-episodes\' width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 11.7368C1 11.3299 1.32989 11 1.73684 11H16.2632C16.6701 11 17 11.3299 17 11.7368V21.2632C17 21.6701 16.6701 22 16.2632 22H1.73684C1.3299 22 1 21.6701 1 21.2632V11.7368Z" fill="white"/>\n <path d="M5 8H19.2632C19.6701 8 20 8.3299 20 8.73684V18" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8 4H22.2632C22.6701 4 23 4.3299 23 4.73684V13" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.MaximizeSvg=function(e){return"<svg fill=".concat(e||"white","\n class='icon icon-maximize'\n viewBox=\"0 0 70 70\"\n >\n <path fill=").concat(e||"white",' d="M43.369 45.938h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.004 9.004z" />\n <path fill=').concat(e||"white",' d="M21.969 18.834h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.003-9.003z" />\n </svg>')},exports.MinimizeSvg=function(e){return"<svg fill=".concat(e||"white","\n class='icon icon-minimize'\n viewBox=\"0 0 70 70\"\n >\n <path fill=").concat(e||"white",' d="M40.397 37.511h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.004-9.004z" />\n <path fill=').concat(e||"white",' d="M24.443 26.763h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.003 9.004z" />\n </svg>')},exports.NewCaptionsSvg=function(){return'<svg width="18" height="16" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5 6.5H10M5 10H13M7.68375 16H14.2C15.8802 16 16.7202 16 17.362 15.673C17.9265 15.3854 18.3854 14.9265 18.673 14.362C19 13.7202 19 12.8802 19 11.2V5.8C19 4.11984 19 3.27976 18.673 2.63803C18.3854 2.07354 17.9265 1.6146 17.362 1.32698C16.7202 1 15.8802 1 14.2 1H5.8C4.11984 1 3.27976 1 2.63803 1.32698C2.07354 1.6146 1.6146 2.07354 1.32698 2.63803C1 3.27976 1 4.11984 1 5.8V18.3355C1 18.8684 1 19.1348 1.10923 19.2716C1.20422 19.3906 1.34827 19.4599 1.50054 19.4597C1.67563 19.4595 1.88367 19.2931 2.29976 18.9602L4.68521 17.0518C5.17252 16.662 5.41617 16.4671 5.68749 16.3285C5.9282 16.2055 6.18443 16.1156 6.44921 16.0613C6.74767 16 7.0597 16 7.68375 16Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.PlayNextEpisodeSvg=function(e){return'<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(e,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=').concat(e,' />\n <rect x="18" width="2" height="20" fill=').concat(e," />\n </svg>")},exports.RewindSvg=function(e){return'<svg style="width:16px" class=\'rewindbtn\' viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.88817 16.9913L7.72176 18.5762C9.58746 18.8613 11.4677 18.5376 13.1023 17.6161C17.1941 15.3094 18.4803 9.98978 15.9732 5.74243C13.47 1.50156 8.13865 -0.0590307 4.03665 2.25351C3.35173 2.64307 2.7379 3.12124 2.20384 3.67698L3.34087 4.82569C3.77642 4.37247 4.27773 3.98196 4.83679 3.66398C8.20452 1.76539 12.5901 3.04913 14.644 6.5288C16.6894 9.99402 15.6429 14.3223 12.3046 16.2043C10.9636 16.9602 9.42195 17.2257 7.88817 16.9913Z" fill='.concat(window.color||"white",' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.10742 0.462205L0.56205 5.24366L6.06202 5.79492L3.10742 0.462205Z" fill=').concat(window.color||"white",' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.80172 14.1769C10.1682 14.1769 10.5096 14.1082 10.8258 13.9708C11.142 13.8333 11.416 13.6241 11.6479 13.343C11.8798 13.0619 12.0615 12.7059 12.1928 12.275C12.3242 11.8441 12.3898 11.3368 12.3898 10.753C12.3898 10.1661 12.3242 9.65803 12.1928 9.22868C12.0615 8.79934 11.8798 8.44413 11.6479 8.16305C11.416 7.88197 11.142 7.6727 10.8258 7.53525C10.5096 7.3978 10.1682 7.32907 9.80172 7.32907C9.43524 7.32907 9.09551 7.3978 8.78254 7.53525C8.46956 7.6727 8.19794 7.88197 7.96767 8.16305C7.7374 8.44413 7.5574 8.79934 7.42767 9.22868C7.29794 9.65803 7.23308 10.1661 7.23308 10.753C7.23308 11.3368 7.29794 11.8441 7.42767 12.275C7.5574 12.7059 7.7374 13.0619 7.96767 13.343C8.19794 13.6241 8.46956 13.8333 8.78254 13.9708C9.09551 14.1082 9.43524 14.1769 9.80172 14.1769ZM6.54713 14.1028V13.2457H5.28226V7.39394H4.2947L2.14929 9.13139L2.52875 9.62714C2.5547 9.66112 2.59443 9.69123 2.64794 9.71749C2.70145 9.74374 2.76064 9.75687 2.82551 9.75687C2.86767 9.75687 2.91064 9.75069 2.95443 9.73834C2.99821 9.72598 3.04118 9.70282 3.08335 9.66884L4.09524 8.86266C4.08551 9.02946 4.08064 9.18853 4.08064 9.33988V13.2457H2.65524V14.1028H6.54713ZM9.30308 13.1136C9.46362 13.1893 9.62983 13.2271 9.80172 13.2271C9.97686 13.2271 10.1455 13.1893 10.3077 13.1136C10.4698 13.038 10.6133 12.9059 10.7382 12.7175C10.8631 12.5291 10.9628 12.2758 11.0374 11.9576C11.112 11.6395 11.1493 11.238 11.1493 10.753C11.1493 10.2681 11.112 9.86652 11.0374 9.54838C10.9628 9.23023 10.8631 8.97695 10.7382 8.78853C10.6133 8.60011 10.4698 8.46807 10.3077 8.39239C10.1455 8.31672 9.97686 8.27888 9.80172 8.27888C9.62983 8.27888 9.46362 8.31672 9.30308 8.39239C9.14254 8.46807 9.00064 8.60011 8.8774 8.78853C8.75416 8.97695 8.65605 9.23023 8.58308 9.54838C8.5101 9.86652 8.47362 10.2681 8.47362 10.753C8.47362 11.238 8.5101 11.6395 8.58308 11.9576C8.65605 12.2758 8.75416 12.5291 8.8774 12.7175C9.00064 12.9059 9.14254 13.038 9.30308 13.1136Z" fill=').concat(window.color||"white"," />\n </svg>")},exports.RewindSvgV2=function(){return'<svg class=\'rewindbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.22363 9.43675L3.152 11.3434L5.08151 9.43675M2.91616 10.8667C2.88115 10.5537 2.86319 10.2356 2.86319 9.91341C2.86319 5.17486 6.74945 1.3335 11.5434 1.3335C16.3374 1.3335 20.2236 5.17486 20.2236 9.91341C20.2236 14.652 16.3374 18.4933 11.5434 18.4933C8.8166 18.4933 6.38346 17.2505 4.79212 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M9.92694 13.0831V6.80067H8.94318C8.58633 7.20106 7.97871 7.53473 7.37109 7.64912V8.66918C7.68937 8.64058 8.22947 8.52618 8.51881 8.39272V13.0831H9.92694Z" fill="white"/>\n <path d="M13.6545 6.6958C11.8316 6.6958 11.1951 8.23065 11.1951 9.94664C11.1951 11.6817 11.7641 13.1975 13.6255 13.1975C15.5159 13.1975 16.0656 11.634 16.0656 9.9085C16.0656 8.12579 15.4291 6.6958 13.6545 6.6958ZM13.6545 7.78259C14.4839 7.78259 14.6382 8.69778 14.6382 9.91804C14.6382 11.1478 14.5225 12.1107 13.6448 12.1107C12.7479 12.1107 12.6128 11.0811 12.6128 9.92757C12.6128 8.57385 12.8443 7.78259 13.6545 7.78259Z" fill="white"/>\n </svg>'},exports.SelectedStream=function(){return'<svg class=\'selected-stream\' width="35" height="33" viewBox="0 0 35 33" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_319_60943)">\n <path d="M0 0H35V33H0V0Z" fill="#D2393B"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M15.8689 17.6541L22.3039 11.2898C22.6966 10.9014 23.3372 10.9054 23.7299 11.2937C24.1225 11.6821 24.1265 12.3157 23.7338 12.704L16.6345 19.7253C16.6189 19.743 16.6026 19.7604 16.5856 19.7772C16.5158 19.8463 16.4381 19.9032 16.3554 19.9479C15.9716 20.1587 15.4758 20.1009 15.1503 19.779C15.126 19.755 15.1032 19.73 15.0819 19.7042L12.2919 16.9449C11.8992 16.5565 11.9032 15.9229 12.2958 15.5346C12.6885 15.1462 13.3291 15.1423 13.7218 15.5306L15.8689 17.6541Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_319_60943">\n <path d="M0 0H35V33H8C3.58172 33 0 29.4183 0 25V0Z" fill="white"/>\n </clipPath>\n </defs>\n </svg>\n '},exports.SettingsSvg=function(){return'<svg width="16" height="16" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M17.7273 13.7273C17.6063 14.0015 17.5702 14.3056 17.6236 14.6005C17.6771 14.8954 17.8177 15.1676 18.0273 15.3818L18.0818 15.4364C18.2509 15.6052 18.385 15.8057 18.4765 16.0265C18.568 16.2472 18.6151 16.4838 18.6151 16.7227C18.6151 16.9617 18.568 17.1983 18.4765 17.419C18.385 17.6397 18.2509 17.8402 18.0818 18.0091C17.913 18.1781 17.7124 18.3122 17.4917 18.4037C17.271 18.4952 17.0344 18.5423 16.7955 18.5423C16.5565 18.5423 16.3199 18.4952 16.0992 18.4037C15.8785 18.3122 15.678 18.1781 15.5091 18.0091L15.4545 17.9545C15.2403 17.745 14.9682 17.6044 14.6733 17.5509C14.3784 17.4974 14.0742 17.5335 13.8 17.6545C13.5311 17.7698 13.3018 17.9611 13.1403 18.205C12.9788 18.4489 12.8921 18.7347 12.8909 19.0273V19.1818C12.8909 19.664 12.6994 20.1265 12.3584 20.4675C12.0174 20.8084 11.5549 21 11.0727 21C10.5905 21 10.1281 20.8084 9.78708 20.4675C9.4461 20.1265 9.25455 19.664 9.25455 19.1818V19.1C9.24751 18.7991 9.15011 18.5073 8.97501 18.2625C8.79991 18.0176 8.55521 17.8312 8.27273 17.7273C7.99853 17.6063 7.69437 17.5702 7.39947 17.6236C7.10456 17.6771 6.83244 17.8177 6.61818 18.0273L6.56364 18.0818C6.39478 18.2509 6.19425 18.385 5.97353 18.4765C5.7528 18.568 5.51621 18.6151 5.27727 18.6151C5.03834 18.6151 4.80174 18.568 4.58102 18.4765C4.36029 18.385 4.15977 18.2509 3.99091 18.0818C3.82186 17.913 3.68775 17.7124 3.59626 17.4917C3.50476 17.271 3.45766 17.0344 3.45766 16.7955C3.45766 16.5565 3.50476 16.3199 3.59626 16.0992C3.68775 15.8785 3.82186 15.678 3.99091 15.5091L4.04545 15.4545C4.25503 15.2403 4.39562 14.9682 4.4491 14.6733C4.50257 14.3784 4.46647 14.0742 4.34545 13.8C4.23022 13.5311 4.03887 13.3018 3.79497 13.1403C3.55107 12.9788 3.26526 12.8921 2.97273 12.8909H2.81818C2.33597 12.8909 1.87351 12.6994 1.53253 12.3584C1.19156 12.0174 1 11.5549 1 11.0727C1 10.5905 1.19156 10.1281 1.53253 9.78708C1.87351 9.4461 2.33597 9.25455 2.81818 9.25455H2.9C3.2009 9.24751 3.49273 9.15011 3.73754 8.97501C3.98236 8.79991 4.16883 8.55521 4.27273 8.27273C4.39374 7.99853 4.42984 7.69437 4.37637 7.39947C4.3229 7.10456 4.18231 6.83244 3.97273 6.61818L3.91818 6.56364C3.74913 6.39478 3.61503 6.19425 3.52353 5.97353C3.43203 5.7528 3.38493 5.51621 3.38493 5.27727C3.38493 5.03834 3.43203 4.80174 3.52353 4.58102C3.61503 4.36029 3.74913 4.15977 3.91818 3.99091C4.08704 3.82186 4.28757 3.68775 4.50829 3.59626C4.72901 3.50476 4.96561 3.45766 5.20455 3.45766C5.44348 3.45766 5.68008 3.50476 5.9008 3.59626C6.12152 3.68775 6.32205 3.82186 6.49091 3.99091L6.54545 4.04545C6.75971 4.25503 7.03183 4.39562 7.32674 4.4491C7.62164 4.50257 7.9258 4.46647 8.2 4.34545H8.27273C8.54161 4.23022 8.77093 4.03887 8.93245 3.79497C9.09397 3.55107 9.18065 3.26526 9.18182 2.97273V2.81818C9.18182 2.33597 9.37338 1.87351 9.71435 1.53253C10.0553 1.19156 10.5178 1 11 1C11.4822 1 11.9447 1.19156 12.2856 1.53253C12.6266 1.87351 12.8182 2.33597 12.8182 2.81818V2.9C12.8193 3.19253 12.906 3.47834 13.0676 3.72224C13.2291 3.96614 13.4584 4.15749 13.7273 4.27273C14.0015 4.39374 14.3056 4.42984 14.6005 4.37637C14.8954 4.3229 15.1676 4.18231 15.3818 3.97273L15.4364 3.91818C15.6052 3.74913 15.8057 3.61503 16.0265 3.52353C16.2472 3.43203 16.4838 3.38493 16.7227 3.38493C16.9617 3.38493 17.1983 3.43203 17.419 3.52353C17.6397 3.61503 17.8402 3.74913 18.0091 3.91818C18.1781 4.08704 18.3122 4.28757 18.4037 4.50829C18.4952 4.72901 18.5423 4.96561 18.5423 5.20455C18.5423 5.44348 18.4952 5.68008 18.4037 5.9008C18.3122 6.12152 18.1781 6.32205 18.0091 6.49091L17.9545 6.54545C17.745 6.75971 17.6044 7.03183 17.5509 7.32674C17.4974 7.62164 17.5335 7.9258 17.6545 8.2V8.27273C17.7698 8.54161 17.9611 8.77093 18.205 8.93245C18.4489 9.09397 18.7347 9.18065 19.0273 9.18182H19.1818C19.664 9.18182 20.1265 9.37338 20.4675 9.71435C20.8084 10.0553 21 10.5178 21 11C21 11.4822 20.8084 11.9447 20.4675 12.2856C20.1265 12.6266 19.664 12.8182 19.1818 12.8182H19.1C18.8075 12.8193 18.5217 12.906 18.2778 13.0676C18.0339 13.2291 17.8425 13.4584 17.7273 13.7273Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.SettingsSvgV2=function(){return'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.7275 8.7189V11.2811L18.0174 11.7913C17.8497 12.5312 17.558 13.2374 17.1546 13.88L18.71 16.1626L16.8874 17.9721L14.6149 16.43C13.9694 16.8283 13.2636 17.1194 12.5249 17.2919L12.0143 20H9.43828L8.92846 17.2919C8.18971 17.1194 7.48385 16.8284 6.8384 16.43L4.56591 17.9721L2.74302 16.1626L4.28649 13.88C3.88787 13.2349 3.5965 12.5296 3.42371 11.7913L0.727539 11.2811V8.7189L3.42371 8.1968C3.59774 7.4568 3.89356 6.75083 4.29909 6.10771L2.74337 3.837L4.56626 2.02785L6.83875 3.57C7.48173 3.16673 8.18841 2.8752 8.92881 2.70777L9.43863 0H12.0147L12.5252 2.70777C13.2656 2.87529 13.9723 3.16682 14.6153 3.57L16.8878 2.02785L18.7103 3.837L17.1549 6.11996C17.5582 6.75838 17.85 7.46066 18.0177 8.1968L20.7275 8.7189ZM5.19864 10.0057C5.2018 13.0538 7.67684 15.5222 10.7268 15.5191C12.1916 15.5176 13.5957 14.9347 14.6304 13.8985C15.665 12.8624 16.2454 11.4579 16.2438 9.99405C16.2405 6.94597 13.7654 4.47766 10.7154 4.48088C7.6654 4.4841 5.19548 6.95764 5.19864 10.0057Z" fill="white"/>\n </svg>'},exports.SkipSvg=function(e){return'<svg style="width:16px" class=\'skipbtn\' viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.99586 16.9937L10.1623 18.5786C8.29657 18.8638 6.41631 18.54 4.78178 17.6185C0.689955 15.3118 -0.596286 9.9922 1.9108 5.74486C4.41407 1.50398 9.74539 -0.0566045 13.8474 2.25594C14.5323 2.64549 15.1461 3.12366 15.6802 3.6794L14.5432 4.82812C14.1076 4.3749 13.6063 3.98438 13.0472 3.66641C9.67952 1.76782 5.29397 3.05156 3.24002 6.53123C1.1946 9.99645 2.24115 14.3247 5.57947 16.2067C6.92039 16.9626 8.46208 17.2281 9.99586 16.9937Z" fill='.concat(window.color||"white",' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.7766 0.464616L17.322 5.24607L11.822 5.79733L14.7766 0.464616Z" fill=').concat(window.color||"white",' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.0245 14.115C13.391 14.115 13.7323 14.0463 14.0486 13.9088C14.3648 13.7714 14.6388 13.5621 14.8707 13.281C15.1026 13 15.2842 12.644 15.4156 12.2131C15.5469 11.7822 15.6126 11.2749 15.6126 10.6911C15.6126 10.1042 15.5469 9.59609 15.4156 9.16675C15.2842 8.73741 15.1026 8.38219 14.8707 8.10111C14.6388 7.82003 14.3648 7.61076 14.0486 7.47331C13.7323 7.33586 13.391 7.26714 13.0245 7.26714C12.658 7.26714 12.3183 7.33586 12.0053 7.47331C11.6923 7.61076 11.4207 7.82003 11.1904 8.10111C10.9602 8.38219 10.7802 8.73741 10.6504 9.16675C10.5207 9.59609 10.4559 10.1042 10.4559 10.6911C10.4559 11.2749 10.5207 11.7822 10.6504 12.2131C10.7802 12.644 10.9602 13 11.1904 13.281C11.4207 13.5621 11.6923 13.7714 12.0053 13.9088C12.3183 14.0463 12.658 14.115 13.0245 14.115ZM9.76991 14.0409V13.1837H8.50504V7.332H7.51748L5.37207 9.06945L5.75153 9.56521C5.77748 9.59918 5.81721 9.6293 5.87072 9.65555C5.92423 9.68181 5.98342 9.69493 6.04829 9.69493C6.09045 9.69493 6.13342 9.68876 6.17721 9.6764C6.22099 9.66405 6.26396 9.64088 6.30612 9.6069L7.31802 8.80073C7.30829 8.96752 7.30342 9.1266 7.30342 9.27795V13.1837H5.87802V14.0409H9.76991ZM12.5259 13.0517C12.6864 13.1274 12.8526 13.1652 13.0245 13.1652C13.1996 13.1652 13.3683 13.1274 13.5304 13.0517C13.6926 12.976 13.8361 12.844 13.961 12.6556C14.0859 12.4671 14.1856 12.2139 14.2602 11.8957C14.3348 11.5776 14.3721 11.176 14.3721 10.6911C14.3721 10.2061 14.3348 9.80459 14.2602 9.48644C14.1856 9.16829 14.0859 8.91501 13.961 8.7266C13.8361 8.53818 13.6926 8.40613 13.5304 8.33046C13.3683 8.25478 13.1996 8.21694 13.0245 8.21694C12.8526 8.21694 12.6864 8.25478 12.5259 8.33046C12.3653 8.40613 12.2234 8.53818 12.1002 8.7266C11.9769 8.91501 11.8788 9.16829 11.8059 9.48644C11.7329 9.80459 11.6964 10.2061 11.6964 10.6911C11.6964 11.176 11.7329 11.5776 11.8059 11.8957C11.8788 12.2139 11.9769 12.4671 12.1002 12.6556C12.2234 12.844 12.3653 12.976 12.5259 13.0517Z" fill=').concat(window.color||"white"," />\n </svg>")},exports.SkipSvgV2=function(){return'<svg class=\'skipbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M19.7236 9.43675L17.7953 11.3434L15.8658 9.43675M18.0311 10.8667C18.0661 10.5537 18.0841 10.2356 18.0841 9.91341C18.0841 5.17486 14.1978 1.3335 9.40386 1.3335C4.6099 1.3335 0.723633 5.17486 0.723633 9.91341C0.723633 14.652 4.6099 18.4933 9.40386 18.4933C12.1307 18.4933 14.5638 17.2505 16.1551 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M7.80584 13.0831V6.80067H6.82209C6.46523 7.20106 5.85762 7.53473 5.25 7.64912V8.66918C5.56828 8.64058 6.10838 8.52618 6.39772 8.39272V13.0831H7.80584Z" fill="white"/>\n <path d="M11.5334 6.6958C9.71052 6.6958 9.07397 8.23065 9.07397 9.94664C9.07397 11.6817 9.64301 13.1975 11.5044 13.1975C13.3948 13.1975 13.9445 11.634 13.9445 9.9085C13.9445 8.12579 13.308 6.6958 11.5334 6.6958ZM11.5334 7.78259C12.3628 7.78259 12.5171 8.69778 12.5171 9.91804C12.5171 11.1478 12.4014 12.1107 11.5237 12.1107C10.6268 12.1107 10.4917 11.0811 10.4917 9.92757C10.4917 8.57385 10.7232 7.78259 11.5334 7.78259Z" fill="white"/>\n </svg>'},exports.crossIconSvg=function(){return'<svg width="19" height="20" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.273985 2.30391C-0.124672 1.74341 -0.0882695 0.933084 0.383092 0.418212C0.893733 -0.139565 1.72148 -0.13938 2.23191 0.418626L9.25 8.09082L16.2681 0.418626C16.7785 -0.13938 17.6063 -0.139565 18.1169 0.418212C18.5883 0.933084 18.6247 1.74341 18.226 2.30391L18.1173 2.43852L11.1987 10.0029L18.1169 17.5611C18.5883 18.0759 18.6247 18.8863 18.226 19.4468L18.1173 19.5814C17.6461 20.0965 16.9046 20.1362 16.3916 19.7006L16.2685 19.5818L9.25 11.9155L2.23153 19.5818L2.10835 19.7006C1.59542 20.1362 0.853882 20.0965 0.382714 19.5814L0.273985 19.4468C-0.124672 18.8863 -0.0882694 18.0759 0.383092 17.5611L7.30134 10.0029L0.382714 2.43852L0.273985 2.30391Z" fill="white"/>\n </svg>\n \n '};
|
package/cjs/index-0dfa585b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("video.js/dist/video-js.min.css");var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/regenerator"),o=require("video.js"),i=require("./generic-956d7c72.js"),r=require("./util-503d4ddb.js"),l=require("./renditions-794974d0.js"),a=require("./resolution-fe340a36.js"),s=require("./skin-84083352.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?d(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var c,v,m=function(e,t){var n=i.getPlayer(e);n&&t&&n.controlBar&&n.controlBar.progressControl.seekBar.on("click",(function(t){var n,i,r,l,a,s=this.el(),d=o.dom.getPointerPosition(s,t).x;o.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var u=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(n=window)||void 0===n||null===(i=n.cast)||void 0===i||null===(r=i.framework)||void 0===r||null===(l=r.CastContext)||void 0===l||null===(a=l.getInstance())||void 0===a?void 0:a.S;if(console.log(u),u&&"CONNECTED"===c){window.cast.framework.RemotePlayer.canSeek=!0;var v=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),m=v.h.media[0].liveSeekableRange.end;v.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=m*d,v.seek()}}))};function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var f=[],g=0,y=null;function w(e,n,o){var r,l,a,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];v=(null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.apiVersion)||"v1";var d=null==n||null===(l=n.watchHistory)||void 0===l?void 0:l.profileId,u=Math.floor(e.currentTime()),m=Math.floor(e.duration()),f=null==n||null===(a=n.watchHistory)||void 0===a?void 0:a.xapiKey,w={};"v1"==v?w={videoId:c,watchedTime:Math.floor(e.currentTime()),watchedPercentage:Math.floor(u/m*100),siteOwner:n.siteOwner,userId:n.userId,xApiKey:f}:"v2"==v&&(w=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?p(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({videoId:c,watchedTime:Math.floor(e.currentTime()),watchedPercentage:s?100:Math.floor(u/m*100),doneWatching:s,profileId:d},y&&{seriesId:y})),i.saveWatchHistory(w,n.token,v).then((function(e){})).catch((function(e){})),g=u+o}var h=function(e,t,n){var o=i.getPlayer(e);if(o)if(t>=0&&t<=100){o.muted()&&o.muted(!1);var r=parseFloat(t)/100;o.volume(r),n&&n({status:!0,msg:"Volume set to ".concat(t,"%")})}else n&&n({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else n({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},b=function(e){var t=i.getPlayer(e);return t?parseInt(100*t.volume())+"%":"Cannot find player with id: '".concat(e,"'")};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var P=function(e,n,o,r){var l,a,s=r.res,d=r.sres,u=i.getPlayer(e),v=(null==s||null===(l=s.video)||void 0===l||null===(a=l.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1;i.setCurrentVideo(s),u.on("timeupdate",(function(){"true"==localStorage.getItem("SHOW_LATENCY_INFO")&&function(e){var t=i.getPlayer(e),n=document.getElementsByClassName("latency-container");t.on("timeupdate",(function(){var e,o;null!=n&&n.length&&(n[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Live Latency </div><div class="debug-value-item">'.concat(null==t||null===(e=t.dash)||void 0===e||null===(o=e.mediaPlayer)||void 0===o?void 0:o.getCurrentLiveLatency()," seconds</div></div>"))}))}(e)})),u.on("loadstart",(function(){v&&o.resolve({status:!0,msg:"Video Loaded",response:s})})),u.on("loadeddata",(function(){var r;(null==u||!u.muted())&&h(e,sessionStorage.getItem("volume")||"100");var l,a,v=i.getCurrentVideo();(i.clearError(),o.resolve(function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?k(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({status:!0,msg:"Player Initialised"},d?{seriesResponse:d,response:s}:{response:s})),null!=n&&n.watchHistory&&null!=n&&null!==(r=n.watchHistory)&&void 0!==r&&r.enable&&!n.isAnonymousUser)&&function(e,t,n){var o,r;null!=t&&t.series&&(y=null==t||null===(o=t.series)||void 0===o?void 0:o.id),f=[],g=0,c=n;var l=(null==t||null===(r=t.watchHistory)||void 0===r?void 0:r.interval)||30,a=i.getPlayer(e);a&&(a.on("timeupdate",(function(){var e=Math.floor(a.currentTime());f.includes(g)||(e==g?(f.push(e),w(a,t,l)):e>g&&(g=e+l))})),a.on("ended",(function(){w(a,t,l,!0)})))}(e,n,null==v||null===(l=v.video)||void 0===l||null===(a=l.gist)||void 0===a?void 0:a.id)})),u.textTracks().on("change",(function(e){var t=this.tracks_.filter((function(e){if("subtitles"===e.kind&&"showing"===e.mode)return!0}))[0];u.trigger("subtitlechanged",t)})),u.on("subtitlechanged",(function(e,t){var n,o,i,r,l,a,s,d,u,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,m=null===(n=window)||void 0===n||null===(o=n.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(r=i.CastContext)||void 0===r||null===(l=r.getInstance())||void 0===l?void 0:l.S,p=null===(a=window)||void 0===a||null===(s=a.cast)||void 0===s||null===(d=s.framework)||void 0===d||null===(u=d.CastContext)||void 0===u||null===(c=u.getInstance())||void 0===c?void 0:c.getCurrentSession();if(v&&"CONNECTED"===m){var f,g=p.getMediaSession(),y=g.media.tracks.filter((function(e){return"TEXT"==e.type}));f=t?new chrome.cast.media.EditTracksInfoRequest([y[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),g.editTracksInfo(f)}})),u.on("loadedmetadata",(function(){})),u.one("error",(function(){var t,n;i.handleError(e,(null==u||null===(t=u.error())||void 0===t?void 0:t.message)||"Some error occured"),o.reject({status:!1,msg:(null==u||null===(n=u.error())||void 0===n?void 0:n.message)||"Some error occured"})})),u.one("play",(function(){var e;if(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable){var t,o,r,l=null===(t=i.getCurrentVideo())||void 0===t||null===(o=t.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.id,a=i.getSeriesWatchMap().get(l)||{t:0,p:0},s=a.t,d=a.p;s&&d<95&&setTimeout((function(){u.currentTime(s)}),0)}else null!=n&&n.watchHistoryResumeTime&&(null==n?void 0:n.watchedPercentage)<95&&u.currentTime(null==n?void 0:n.watchHistoryResumeTime)})),u.on("volumechange",(function(){var e=100*u.volume().toFixed(2);u.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)}))},O=function(e,t){var n=null==t?void 0:t.skin;"live"==n?Promise.resolve().then((function(){return require("./skin-b99d1256.js")})).then((function(n){n.initialiseSkin(e,t)})):"default"==n?Promise.resolve().then((function(){return require("./skin-db5330a7.js")})).then((function(n){n.initialiseSkin(e,t)})):"carousel"==n?Promise.resolve().then((function(){return require("./skin-c6e823f1.js")})).then((function(t){t.initaliseSkin(e)})):"defaultV2"==n?Promise.resolve().then((function(){return require("./skin-6e068a3b.js")})).then((function(n){n.initialiseSkin(e,t)})):"multiplayer"==n&&Promise.resolve().then((function(){return require("./skin-7c1526f5.js")})).then((function(n){n.initialiseSkin(e,t)}))},j=function(e){return new Promise((function(t,n){if(S(e))n("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!1,o.src=e,o.onload=function(){t()},o.onerror=function(t){n("Error while loading script ".concat(e," : ").concat(t))},document.head.appendChild(o)}}))},S=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0};function I(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}var T=function(e,t){t.controlBar.el_.style.color=e,t.controlBar.el_.querySelector(".vjs-play-progress")&&(t.controlBar.el_.querySelector(".vjs-play-progress").style.backgroundColor=e),t.controlBar.el_.querySelector(".vjs-volume-level")&&(t.controlBar.el_.querySelector(".vjs-volume-level").style.backgroundColor=e)};var C,D=function(){var t=e(n.mark((function e(){return n.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)}}(),E=function(){var t=e(n.mark((function e(){return n.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)}}(),V=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then((function(e){j("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then((function(){e.default(o)})).catch((function(e){console.log(e)}))}))},importAirplay:function(){import("@silvermine/videojs-airplay").then((function(e){e.default(o)}))},importIMA:function(){import("videojs-contrib-ads"),import("videojs-ima"),j("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then((function(){})).catch((function(e){return console.log(e)}))},loadDashLibrary:D,loadEMELibrary:E});function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?x(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):x(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var R=function(r,l,a,s){var d,c,v,p,f,g,y,w,h,b,k,j,S,I,C,V,x,R,H,L,A,q,N,M=l.res,_=void 0===M?null:M,U=l.sres,F=void 0===U?null:U,W=(null===(d=window)||void 0===d||null===(c=d.cast)||void 0===c||null===(v=c.framework)||void 0===v||null===(p=v.CastContext)||void 0===p||null===(f=p.getInstance())||void 0===f?void 0:f.S)||void 0,z=null!=a&&a.chromecastReceiverId?"NO_DEVICES_AVAILABLE"!==W&&"NOT_CONNECTED"!==W?["html5","chromecast"]:["chromecast","html5"]:["html5"],J=null==_||null===(g=_.video)||void 0===g||null===(y=g.gist)||void 0===y?void 0:y.videoImageUrl,K=(null==_||null===(w=_.video)||void 0===w||null===(h=w.liveDetails)||void 0===h?void 0:h.isDvrEnabled)||!1,X=function(e){var t,n={};return null!=e&&e.series||null!=e&&e.chromecastReceiverId&&null!==(t=window)&&void 0!==t&&t.cast&&(n={chromecast:{receiverAppID:null==e?void 0:e.chromecastReceiverId,addButtonToControlBar:"default"==e.skin||"defaultV2"==e.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}}),null!=e&&e.airplay&&"Safari"==i.detectBrowser()&&(n=u(u({},n),{},{airPlay:{addButtonToControlBar:"default"==e.skin,buttonPositionIndex:-6}})),n}(a),Y=(null==_||null===(b=_.video)||void 0===b||null===(k=b.streamingInfo)||void 0===k?void 0:k.isLiveStream)||!1,G=(null==a?void 0:a.drmLibrary)||!1,Q=(null==_||null===(j=_.ads)||void 0===j||null===(S=j.preRoll)||void 0===S||null===(I=S.adTags)||void 0===I||null===(C=I.web)||void 0===C?void 0:C.active)&&(null==_||null===(V=_.ads)||void 0===V||null===(x=V.preRoll)||void 0===x||null===(R=x.adTags)||void 0===R||null===(H=R.web)||void 0===H?void 0:H.url),Z=(N={controls:0!=(null==a?void 0:a.controls),playsinline:!0,fluid:!0,muted:(null==a?void 0:a.muted)||!1,autoplay:(null==a?void 0:a.autoplay)||!1,controlBar:{volumePanel:("default"==a.skin||"defaultV2"==a.skin||"live"==(null==a?void 0:a.skin))&&{inline:!1},fullscreenToggle:"default"==a.skin||"defaultV2"==a.skin,audioTrackButton:!1,pictureInPictureToggle:(a.skin,!1)},muteToggle:"multiplayer"==a.skin,liveui:K},t(N,"autoplay",null==a?void 0:a.autoplay),t(N,"normalizeAutoplay",(null==a?void 0:a.autoplay)&&!Q),t(N,"loop",(null==a?void 0:a.loop)||!1),t(N,"html5",B(B({dash:{updateSettings:{streaming:{delay:{liveDelay:localStorage.getItem("LATENCY")||3},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},abr:{additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0}}}}},vhs:B(B({experimentalLLHLS:(null==a?void 0:a.lowLatency)||!1,limitRenditionByPlayerDimensions:!0,useDevicePixelRatio:!0,useNetworkInformationApi:!0},(null==a||null===(L=a.customData)||void 0===L?void 0:L.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:(null==a?void 0:a.enableLowInitialPlaylist)||!1,experimentalBufferBasedABR:(null==a?void 0:a.experimentalBufferBasedABR)||!1})},0==(null==a||null===(A=a.customData)||void 0===A?void 0:A.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==a||null===(q=a.customData)||void 0===q?void 0:q.nativeVideoTracks)&&{nativeVideoTracks:!1})),t(N,"poster",J),t(N,"techOrder",z),t(N,"chromecast",{requestCustomDataFn:function(e){var t=i.getPlayer(r);console.log(t.textTracksJson_);var n=t.textTracksJson_.filter((function(e){return"subtitles"==e.kind}));return function(e,t,n){var o,i,r,l,a,s,d,u,c,v,m={};if(e&&e.video&&e.video.drmEnabled){m.isDrmEnabled=!0;var p=t.keySystemOptions&&t.keySystemOptions[0]&&t.keySystemOptions[0].options&&t.keySystemOptions[0].options.serverURL;m.licenseUrl=p;var f=t.keySystemOptions&&t.keySystemOptions[0]&&t.keySystemOptions[0].options&&t.keySystemOptions[0].options.httpRequestHeaders["X-AxDRM-Message"];m.licenseToken=f}var g=(null==e||null===(o=e.video)||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";m.contentType=g;var y=null==e||null===(r=e.video)||void 0===r||null===(l=r.gist)||void 0===l?void 0:l.runtime;m.duration=y;var w=null==e||null===(a=e.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;m.mediaTitle=w;var h=null==e||null===(d=e.video)||void 0===d||null===(u=d.gist)||void 0===u?void 0:u.videoImageUrl;return m.mediaImage=h,m.subTitles=n,m.DVR=(null==e||null===(c=e.video)||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(m),m}(_,e,n)}}),t(N,"plugins",X),N),$=o(r,Z,function(){var t=e(n.mark((function e(){var t,l,d,u,c,v,p,f,g,y,w,h,b,k,j,S,I;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Y&&s.resolve(B({status:!0,msg:"Player Initialised"},F?{seriesResponse:F,response:_}:{response:_})),"white"!==window.controlsColor&&T(window.controlsColor,$),/Android/i.test(navigator.userAgent)&&(o.options.vhs.overrideNative=!0),y=null==_||null===(t=_.video)||void 0===t?void 0:t.drmEnabled,w=null==_||null===(l=_.video)||void 0===l||null===(d=l.liveDetails)||void 0===d?void 0:d.startOverTime,!y&&!G){e.next=13;break}if("Safari"!==i.detectBrowser()){e.next=11;break}return e.next=9,E();case 9:e.next=13;break;case 11:return e.next=13,Promise.all([E(),D()]);case 13:K&&m(r,w),!Q||null!=a&&null!==(u=a.customData)&&void 0!==u&&u.disableAds||i.initialiseAdvertisement(r,Q,_),h=i.getSource(_,r),"IN"==a.countryCode&&(o.Vhs.xhr.beforeRequest=function(e){e.uri=e.uri.replace("us-e","a-m")}),h?i.loadVideo(r,h):(s.reject({status:!1,msg:"Incompatible Source, only hls,mp4,drm content is allowed",response:_}),i.handleError(r,"Incompatible Source, only hls,mp4,drm content is allowed")),((null==_||null===(c=_.video)||void 0===c||null===(v=c.contentDetails)||void 0===v||null===(p=v.closedCaptions)||void 0===p?void 0:p.length)>0||(null==_||null===(f=_.video)||void 0===f||null===(g=f.closedCaptions)||void 0===g?void 0:g.length)>0)&&(I=(null==_||null===(k=_.video)||void 0===k||null===(j=k.contentDetails)||void 0===j?void 0:j.closedCaptions)||(null==_||null===(S=_.video)||void 0===S?void 0:S.closedCaptions),b=I.filter((function(e){return"VTT"===e.format})),i.addCaptions(r,b)),null!=a&&a.disableControls?i.disableControls(r):O(r,B(B(B({},a),Z),{},{liveVideo:Y,isDvrEnabled:K,res:_,sres:F})),P(r,B(B(B({},a),Z),{},{liveVideo:Y}),s,{res:_,sres:F});case 21:case"end":return e.stop()}}),e)})));return function(){return t.apply(this,arguments)}}())};exports.VLPlayerCore=function(){return{loadVideoInstantly:i.loadVideoInstantly,onTimeUpdate:r.onTimeUpdate,getVideoDuration:r.getVideoDuration,onVideoEnded:r.onVideoEnded,init:function(e){return new Promise((function(t,n){var o,r,l,a,d,u,c,v,m;if(!i.isPlayerInitialised(null==e?void 0:e.playerId)){var p=null==e?void 0:e.videoId,f=(null==e||null===(o=e.series)||void 0===o?void 0:o.enable)||!1;window.videoId=p;var g=null==e?void 0:e.token;if(g&&!i.isTokenExpired(g)){C=JSON.parse(atob(g.split(".")[1])),window.siteId=null===(r=C)||void 0===r?void 0:r.siteId,window.siteName=null===(l=C)||void 0===l?void 0:l.site,e.isAnonymousUser=!(null===(a=C)||void 0===a||!a.anonymousId),e.siteOwner=(null===(d=C)||void 0===d?void 0:d.site)||null,e.userId=(null===(u=C)||void 0===u?void 0:u.userId)||null,window.sessionStorage.setItem("uid",null===(c=C)||void 0===c?void 0:c.userId),window.watchHistory=e.watchHistory||null,sessionStorage.setItem("token",g);var y=null==e?void 0:e.playerId,w=e.chromecastReceiverId=null!=e&&e.series?null:null==e?void 0:e.chromecastReceiverId,h=null==e?void 0:e.airplay,b=null==e?void 0:e.apiBaseUrl,k=(null==e||null===(v=e.analytics)||void 0===v?void 0:v.gaId)||null,P=null==e?void 0:e.errors;P&&(window.customErrors=P),window.customData=null==e?void 0:e.customData,b&&(window.playerEntitlementUrl=b),window.controlsColor=(null==e?void 0:e.controlsColor)||"white",null!=e&&e.skin&&!s.isNotAValidSkin(e.skin)||(e.skin="defaultV2"),Promise.resolve().then((function(){return V})).then((function(e){e.importIMA()})),!w||null!=e&&e.series||Promise.resolve().then((function(){return V})).then((function(e){e.importChromecast()})),h&&"Safari"==i.detectBrowser()&&Promise.resolve().then((function(){return V})).then((function(e){e.importAirplay()})),k&&j("https://www.googletagmanager.com/gtag/js?id=".concat(k)).then((function(){return e=k,window.dataLayer=window.dataLayer||[],I("js",new Date),void I("config",e);var e})).catch((function(e){}));var O=null===(m=document)||void 0===m?void 0:m.getElementById("".concat(y));if(O&&O.addEventListener("contextmenu",(function(e){return e.preventDefault()})),f){var S,T=null==e||null===(S=e.series)||void 0===S?void 0:S.id;i.getSeriesDetails(T,g).then((function(o){var r,l,a,s=o.data,d=o.data.seasons;i.setCurrentSeries(d);var u=p||(null==d||null===(r=d[0])||void 0===r||null===(l=r.episodes)||void 0===l||null===(a=l[0])||void 0===a?void 0:a.id);!function(e,t){var n=new Map;i.getSeriesWatchHistory({videoId:e,token:t}).then((function(e){e.data.map((function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})})),i.setSeriesWatchMap(n)})).catch((function(e){return console.log(e)}))}(T,g),i.getVideoDetails(u,g).then((function(o){var r,l,a;window.contentType=null==o||null===(r=o.data)||void 0===r||null===(l=r.video)||void 0===l||null===(a=l.gist)||void 0===a?void 0:a.contentType,i.setCurrentVideo(o.data),R(y,{res:null==o?void 0:o.data,sres:s},e,{resolve:t,reject:n})})).catch((function(e){i.initiateErrorHandling(e,y,n,p)}))})).catch((function(e){i.initiateErrorHandling(e,y,n)}))}else i.getVideoDetails(p,g).then((function(o){var r,l,a,s;window.contentType=null==o||null===(r=o.data)||void 0===r||null===(l=r.video)||void 0===l||null===(a=l.gist)||void 0===a?void 0:a.contentType,i.setCurrentVideo(null==o?void 0:o.data);var d=null==o?void 0:o.data;null!=e&&e.watchHistory&&null!=e&&null!==(s=e.watchHistory)&&void 0!==s&&s.enable?i.getVideoInfo(p,g).then((function(o){var i,r,l,a,s,u;null!==(i=window)&&void 0!==i&&null!==(r=i.watchHistory)&&void 0!==r&&r.cb&&(null===(l=window)||void 0===l||null===(a=l.watchHistory)||void 0===a||a.cb(null==o?void 0:o.data)),e.watchHistoryResumeTime=(null==o||null===(s=o.data)||void 0===s?void 0:s.watchedTime)||null,e.watchedPercentage=(null==o||null===(u=o.data)||void 0===u?void 0:u.watchedPercentage)||null,R(y,{res:d},e,{resolve:t,reject:n})})).catch((function(o){var i,r,l,a;null!==(i=window)&&void 0!==i&&null!==(r=i.watchHistory)&&void 0!==r&&r.cb&&(null===(l=window)||void 0===l||null===(a=l.watchHistory)||void 0===a||a.cb(o)),R(y,{res:d},e,{resolve:t,reject:n})})):R(y,{res:d},e,{resolve:t,reject:n})})).catch((function(e){i.initiateErrorHandling(e,y,n,p)}))}else n({status:!1,msg:"".concat(g?"Token is expired !":"Missing Authorization Token"),response:{token:g}})}}))},getRenditions:l.getRenditions,skip:i.skip,getPlayer:i.getPlayer,play:i.play,pause:i.pause,detectBrowser:i.detectBrowser,rewind:i.rewind,loadVideo:i.loadVideo,seekToTimeStamp:r.seekToTimeStamp,isPlayerInitialised:i.isPlayerInitialised,load:i.load,dispose:i.dispose,enableCaptions:i.enableCaptions,disableCaptions:i.disableCaptions,getCaptions:i.getCaptions,playSelectedResolution:a.playSelectedResolution,getSource:i.getSource,setVolume:h,getVolume:b,disableControls:i.disableControls,setPlaybackSpeed:r.setPlaybackSpeed}},exports.calculateBufferHealth=function(e){for(var t=i.getPlayer(e),n=t.buffered(),o=t.currentTime(),r=0,l=0;l<n.length;l++)n.start(l)<=o&&n.end(l)>r&&(r=n.end(l));var a=r-o,s=document.getElementsByClassName("buffer-container");s.length&&(s[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Buffer Health </div><div class="debug-value-item">'.concat(a.toFixed(2)," seconds</div></div>"))},exports.estimateDroppedFrames=function(e){var t=i.getPlayer(e),n=(null==t?void 0:t.el().querySelector("video")).getVideoPlaybackQuality(),o=n?n.droppedVideoFrames/t.duration():"Unknown",r=document.getElementsByClassName("drop-frames-container");null!=r&&r.length&&(r[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Dropped FPS </div><div class="debug-value-item">'.concat(parseInt(o),"/s</div></div>"))},exports.getPlayerViewportSize=function(e){var t=i.getPlayer(e),n=t.el().clientWidth,o=t.el().clientHeight,r=document.getElementsByClassName("viewport-container");r.length&&(r[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Viewport </div><div class="debug-value-item">'.concat(n,"x").concat(o,"</div></div>"))},exports.handleLiveVolumeChange=function(e){var t=document.getElementsByClassName("debug-container");if(null!=t&&t.length){var n=t[0].getElementsByClassName("volume-container");n.length&&(n[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Volume </div><div class="debug-value-item">'.concat(e,"%</div></div>"))}},exports.registerLoadStart=function(e){i.getPlayer(e).on("loadstart",(function(){(new Date).getTime()}))};
|
package/cjs/index-df24e8d4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),a=require("./icons-7afb9c13.js"),d=require("./generic-956d7c72.js"),l=require("./skin-84083352.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 i,o=r(e);if(t){var a=r(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return n(this,i)}}require("@babel/runtime/helpers/defineProperty"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime/helpers/toConsumableArray");var c=o.getComponent("Component"),u=function(n){i(u,c);var r=s(u);function u(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,u),(i=r.call(this,t,n)).playerId=n.playerId,i.player=t,i.videoDetails=null==n?void 0:n.options,i.initialiseStructure(),i.loadCSS(),i}return t(u,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"debug-selection vjs-control vjs-button"});e.style.position="unset";var t=o.dom.createEl("div",{className:"debug-selection-icon",innerHTML:"".concat(a.DebugSvg())});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./debugSelection-cbfdabb7.js")})).then((function(e){var t=document.createElement("style");t.id="debug-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=o.dom.createEl("div",{className:"debug-selection-container hidden"});t.style.right="0px",o.dom.$(".debug-selection-icon",this.el()).onclick=function(){var i;null!==(i=t.classList)&&void 0!==i&&i.contains("hidden")?(l.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var i=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(i,"px"),o.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,i,n=this,r=this.el(),l=o.dom.createEl("div",{className:"debug-selector-head"}),s=o.dom.createEl("div",{className:"debug-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});s.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};var c=o.dom.createEl("div",{className:"debug-selector-title",innerHTML:"Debug Statistics"}),u=o.dom.createEl("div",{className:"debug-selector-content"}),p=o.dom.createEl("div",{className:"debug-container"}),m=100*d.getPlayer(this.playerId).volume().toFixed(2),v=o.dom.createEl("div",{className:"video-id-container debug-item-wrapper",innerHTML:'<div class="debug-item"><div class="debug-title-item">Video Id </div><div class="debug-value-item">'.concat(null===(t=this.videoDetails)||void 0===t?void 0:t.videoId,"</div></div>")}),g=o.dom.createEl("div",{className:"volume-container debug-item-wrapper",innerHTML:'<div class="debug-item"><div class="debug-title-item">Volume </div><div class="debug-value-item">'.concat(m,"</div></div>")}),h=o.dom.createEl("div",{className:"buffer-container debug-item-wrapper"}),b=o.dom.createEl("div",{className:"drop-frames-container debug-item-wrapper"}),y=o.dom.createEl("div",{className:"latency-container debug-item-wrapper"}),f=o.dom.createEl("div",{className:"live-mode-container debug-item-wrapper",innerHTML:'<div class="debug-item"><div class="debug-title-item">Live Mode </div><div class="debug-value-item">'.concat(null===(i=this.videoDetails)||void 0===i?void 0:i.liveVideo,"</div></div>")}),C=o.dom.createEl("div",{className:"viewport-container debug-item-wrapper"});o.dom.appendContent(p,v),o.dom.appendContent(p,y),o.dom.appendContent(p,g),o.dom.appendContent(p,h),o.dom.appendContent(p,b),o.dom.appendContent(p,f),o.dom.appendContent(p,C),o.dom.appendContent(u,p),o.dom.appendContent(l,s),o.dom.appendContent(l,c),o.dom.appendContent(e,l),o.dom.appendContent(e,u),d.getPlayer(this.playerId).on("fullscreenchange",(function(){var t=window.getComputedStyle(document.getElementById(n.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(t,"px")}))}}]),u}();exports.default=u;
|
package/cjs/skin-6e068a3b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-af80596c.js"),i=require("./icons-7afb9c13.js"),l=require("./generic-956d7c72.js"),t=require("./skin-84083352.js"),n=require("./renditions-794974d0.js"),o=require("@babel/runtime/helpers/toConsumableArray"),r=require("./autoNextVideo-3aaff566.js"),a=require("./index-0dfa585b.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("axios"),require("js-cookie"),require("ua-parser-js"),require("./util-503d4ddb.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./resolution-fe340a36.js"),require("@babel/runtime/helpers/assertThisInitialized");var d=l.getCurrentSeries(),u=[];null==d||d.map((function(e){return u.push.apply(u,o(e.episodes))}));var s=function(e,i){var t;null==i||null===(t=i.series)||void 0===t||t.cb;var n=l.getPlayer(e);n.on("timeupdate",(function(){var e,i=Math.floor(n.currentTime()),t=n.duration(),o=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];t-i<=10&&l.getVideoIdx()<=(null==u?void 0:u.length)-1?o&&(o.style.visibility="visible"):o&&(o.style.visibility="hidden")}));var o,r=u.filter((function(e,i){return i==l.getVideoIdx()}));if((null==r?void 0:r.length)>0)if(null!==(o=document.getElementsByClassName("next-ep-preview"))&&void 0!==o&&o[0]){var a,d,s,c,m,p,g,f,h,y,b;(null===(a=document.getElementsByClassName("next-ep-preview"))||void 0===a?void 0:a[0]).style.visibility="hidden";var C=null===(d=document.getElementsByClassName("next-ep-title"))||void 0===d?void 0:d[0],x=null===(s=document.getElementsByClassName("next-ep-img"))||void 0===s?void 0:s[0],q=null===(c=document.getElementsByClassName("next-ep-content"))||void 0===c?void 0:c[0],j=null===(m=r[0])||void 0===m?void 0:m.title;(null===(p=j)||void 0===p?void 0:p.length)>60&&(j=j.substr(0,60)+"..."),C.innerHTML="".concat(j),x.src=(null===(g=r[0])||void 0===g||null===(f=g.gist)||void 0===f||null===(h=f.imageGist)||void 0===h?void 0:h.r16x9)||(null===(y=window)||void 0===y||null===(b=y.customData)||void 0===b?void 0:b.fallbackImage),q.onclick=function(){return v(e)}}else{var w,S,V,B,E,N,k,M=document.createElement("div");M.className="next-ep-preview",M.style.visibility="hidden",document.getElementById(e).append(M);var P=document.createElement("div");P.className="next-ep-header",P.innerHTML="Next up";var I=null===(w=r[0])||void 0===w?void 0:w.title,T=document.createElement("img");T.className="next-ep-img",T.src=(null===(S=r[0])||void 0===S||null===(V=S.gist)||void 0===V||null===(B=V.imageGist)||void 0===B?void 0:B.r16x9)||(null===(E=window)||void 0===E||null===(N=E.customData)||void 0===N?void 0:N.fallbackImage);var L=document.createElement("div");L.className="next-ep-title",(null===(k=I)||void 0===k?void 0:k.length)>60&&(I=I.substr(0,60)+"..."),L.innerHTML="".concat(I);var D=document.createElement("div");D.className="next-ep-content",D.append(T),D.append(L),D.onclick=function(){return v(e)},M.append(P),M.append(D)}},v=function(e,i){var t=l.getPlayer(e),n=Math.floor(t.currentTime());if(Math.floor(t.duration())!=n){t.pause(e);var o=l.getVideoIdx();r.switchToNext(o,e,u,sessionStorage.getItem("token"))}};function c(i,t){var o=l.getPlayer(i);o.on("loadeddata",(function(){var r,a,d,u,v,c,m;(null===(r=n.getRenditions(i))||void 0===r?void 0:r.length)>0&&e.addSettingsButtonV2(i,t),(null===(a=l.getCaptions(i))||void 0===a?void 0:a.length)>0&&e.addCaptionButton(i,t),null!=t&&null!==(d=t.series)&&void 0!==d&&d.enable&&s(i,t),u=o.duration(),c=Math.floor(u/60),(m=null===(v=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===v?void 0:v[0])&&(m.style.marginRight=c>60?"56px":"41px");var p=document.getElementsByClassName("vjs-live-control")[0],g=document.getElementsByClassName("vjs-time-control");null!=t&&t.liveVideo&&p.classList.value.includes("vjs-hidden")&&(g[0].style.display="block")})),o.one("play",(function(){var l,t,n,o;null!==(l=window)&&void 0!==l&&null!==(t=l.customData)&&void 0!==t&&t.iframeOverlayUrl&&e.addOutputtingOverlay(i,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)})),o.on("loadeddata",(function(){a.getPlayerViewportSize(i)})),o.on("timeupdate",(function(){a.calculateBufferHealth(i),a.estimateDroppedFrames(i)})),o.on("waiting",(function(){return a.calculateBufferHealth(i)})),o.on("volumechange",(function(){var e=100*o.volume().toFixed(2);a.handleLiveVolumeChange(e)})),a.registerLoadStart(i)}exports.initialiseSkin=function(n,o){Promise.resolve().then((function(){return require("./skin-afbec6d7.js")})).then((function(e){var i=document.createElement("style");i.id="default_v2",i.append("".concat(e.default)),document.head.appendChild(i)})),c(n,o),function(e,n){var o=l.getPlayer(e);o.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(i.MinimizeSvg(window.controlsColor))),o.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var r=document.getElementsByClassName("vjs-time-control");n.liveVideo&&(r[0].style.display="none")}(n,o),function(l,t){var n,o,r,a,d,u;0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)&&e.addSkipButton(l,"defaultV2",i.SkipSvgV2());(0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)||1==(null==t?void 0:t.liveui))&&e.addRewindButton(l,"defaultV2",i.RewindSvgV2());t.liveVideo||e.addSlowMotion(l);(null==t||null===(n=t.relatedVideos)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector(l,null==t?void 0:t.relatedVideos);(null==t||null===(r=t.streams)||void 0===r?void 0:r.length)>1&&e.addMulticamSelector(l,null==t?void 0:t.streams);(null==t||null===(a=t.playlist)||void 0===a||null===(d=a.content)||void 0===d?void 0:d.length)>0&&e.addPlaylistSelector(l,null==t?void 0:t.playlist);null!=t&&null!==(u=t.series)&&void 0!==u&&u.enable&&e.addSeriesSelectorV2(l,t);null!=t&&t.debugStats&&e.addDebugSelector(l,t)}(n,o),function(e,i){var t=l.getPlayer(e),n=null==i?void 0:i.tvProviderLogoUrl;if(!n)return;var o=document.createElement("div");o.className="tvProviderImage";var r=document.createElement("img");r.src="".concat(n),r.alt="Provider Image",o.append(r),t.el().appendChild(o),t.on("useractive",(function(){o.classList.remove("vjs-fade")})),t.on("userinactive",(function(){t.paused()||o.classList.add("vjs-fade")})),t.on("fullscreenchange",(function(){t.isFullscreen_?o.style.top="3.2rem":o.style.top="1rem"}))}(n,o)};
|
package/cjs/skin-b99d1256.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e,t=require("./features-af80596c.js"),n=require("./icons-7afb9c13.js"),r=require("./generic-956d7c72.js"),s=require("./skin-84083352.js"),o=require("@babel/runtime/helpers/defineProperty"),i=require("./keyboardShortcuts-3cc0fa11.js");function l(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 a(e,i){var a=r.getPlayer(e);a.one("play",(function(){null!=i&&i.streams&&t.addMulticamView(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i)),null!=i&&i.airplay&&"Safari"==r.detectBrowser()&&a.addChild("airPlayButton"),null!=i&&i.chromecastReceiverId&&a.addChild("chromecastButton"),a.addChild("FullscreenToggle"),a.getChild("FullscreenToggle").el().appendChild(s.createIconMarkup(n.MinimizeSvg(window.controlsColor))),a.getChild("FullscreenToggle").el().appendChild(s.createIconMarkup(n.MaximizeSvg(window.controlsColor))),u(e)})),a.on("loadedmetadata",(function(){"Safari"!==r.detectBrowser()&&t.addResolutionModule(e,"live",n.SettingsSvg())})),a.one("loadedmetadata",(function(){var n;null!=i&&i.streams&&(null==i||null===(n=i.streams)||void 0===n?void 0:n.length)>=2&&t.addMwebPotraitTrayModule(e,i)}))}function u(t){var n=r.getPlayer(t);d(),n.on("pause",(function(){clearTimeout(e),c()})),n.on("play",(function(){d()}));var s=document.getElementById("".concat(t));s.addEventListener("mouseenter",(function(){c(),n.paused()||d()})),s.addEventListener("touchstart",(function(){c(),d()})),s.addEventListener("mousemove",(function(){c(),n.paused()||d()}))}function c(){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 d(){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("./renditions-794974d0.js"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime/helpers/toConsumableArray"),exports.hideControls=u,exports.initialiseSkin=function(e,o){var l;i.initialiseKeyboardEvents(e,o),(null==(l=o)||!l.liveui)&&(null==l||!l.liveVideo)||null!=l&&l.liveui&&null!=l&&l.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,t){var o=r.getPlayer(e),i=o.controlBar.getChild("SubsCapsButton").el();document.getElementsByClassName("vjs-subs-caps-button")[1].appendChild(s.createIconMarkup(n.NewCaptionsSvg()));var l=document.createElement("div");l.classList.add("caption-header"),i.querySelector(".vjs-menu-content").insertBefore(l,i.querySelector(".vjs-menu-item"));var a=document.createElement("div");if(a.innerText="Captions",a.className="fs14",document.getElementsByClassName("vjs-subs-caps-button")[0].appendChild(a),"Safari"==r.detectBrowser()){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,o),a(e,o)};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as n,o as t,b as o,I as e,H as i,J as s}from"./generic-bf7f24d7.js";import{a}from"./util-c77f4b50.js";import{h as c}from"./skin-665ec17e.js";var r,u=0,f=0,l=function(l){clearTimeout(u);var v=null==l?void 0:l.content;r=null==l?void 0:l.cb;var d=l.playerId,g=sessionStorage.getItem("token");a(d,(function(){var a=n(d);0!==(null==a?void 0:a.currentTime())&&((f=i())>v.length-1||t(d,v[f].id,g).then((function(n){c(f),o(n.response),f++,s(f),h(n)})).catch((function(n){h(n),c(f),f++,s(f),u=setTimeout((function(){e(d)&&m(f,d,v,g)}),5e3)})))}))},m=function n(o,e,i,a,r){f=o,o>i.length-1||t(e,i[o].id,a).then((function(n){c(f),f++,s(f),h(n)})).catch((function(t){h(t),setTimeout((function(){c(f),f++,s(f),n(f,e,i,a)}),5e3)}))},h=function(n){r&&r(n)};export{l as a,m as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=".debug-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.debug-selection-icon>svg{\n cursor: pointer;\n}\n.debug-item {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0.5rem 1.4rem;\n font-size: 0.7rem;\n}\n.debug-item-wrapper {\n width: 100%;\n} \n.debug-title-item {\n font-weight: bold;\n}\n\n.debug-selector-icon {\n cursor: pointer;\n}\n\n.debug-selection-container {\n position: absolute;\n width: 320px;\n bottom: 0px;\n right: -320px;\n background: #00000080 !important;\n z-index: -1;\n transition: right 300ms ease-out;\n}\n\n.debug-container {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.debug-selection.open {\n background: rgba(255, 255, 255, 0.20) !important;\n}\n\n.debug-selector-head {\n display: flex;\n align-items: center;\n padding-top: 18px;\n padding-left: 20px;\n margin-bottom: 20px;\n}\n\n.debug-selector-title {\n font-size: 18px;\n font-weight: 600;\n margin-left: 25px;\n user-select: none;\n}\n\n.debug-selector-cross-icon {\n cursor: pointer;\n}\n\n.debug-selector-content {\n height: 74%;\n overflow: scroll;\n}\n\n.debug-selector-content::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.debug-selector-content {\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n}\n\n.debug-selector-content-video {\n height: 300px;\n margin-bottom: 30px;\n}\n\n.recommended {\n height: 175px;\n width: 309px;\n background-repeat: no-repeat;\n background-size: contain;\n}\n.related-thumbnail-image{\n width: 100%;\n height: 100%;\n}\n.video {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 12px;\n}\n\n.parent {\n margin: 21px 52px 23px 34px;\n\n}\n\n.recommended:hover {\n cursor: pointer;\n}\n\n.info {\n font-size: 13px;\n padding: 7px 22px;\n}\n\n@media (max-width:600px){\n .debug-selector-cross-icon>svg{\n height: 12px;\n }\n .debug-selector-title{\n font-size: 14px;\n }\n .debug-selector-content{\n height: 52%;\n }\n .debug-selection-container{\n width: 200px;\n }\n .recommended{\n height: 90px !important;\n width: 154px !important;\n }\n .info {\n font-size: 9px !important;\n }\n .debug-selector-title{\n margin-left: 13px;\n }\n}";export{n as default};
|
package/esm/generic-bf7f24d7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"video.js";import n from"axios";import"js-cookie";import o from"ua-parser-js";var i={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series"};function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var l=function(e,t){var o,i;return n({url:E(),params:a({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(o=window)||void 0===o||null===(i=o.customData)||void 0===i?void 0:i.entitlement),method:"GET",headers:{Authorization:t},withCredentials:!0})},d=function(e,t){var o,i,r=JSON.parse(atob(t.split(".")[1])),a=(null==r?void 0:r.site)||null;return r&&r.countryCode,null!==(o=window)&&void 0!==o&&null!==(i=o.customData)&&void 0!==i&&i.seriesData?new Promise((function(e,t){var n,o;return e({data:null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.seriesData})})):n({url:T()+"/v3/content/series/".concat(e),params:{site:a},method:"GET",headers:{Authorization:t}})},s=function(e,t,o){if("v1"==o){var i={siteOwner:null==e?void 0:e.siteOwner,userId:null==e?void 0:e.userId,videoId:null==e?void 0:e.videoId,watchedPercentage:null==e?void 0:e.watchedPercentage,watchedTime:null==e?void 0:e.watchedTime};return n({url:g(),method:"POST",headers:{Authorization:t,"x-api-key":e.xApiKey},params:{version:"v2"},data:JSON.stringify(i),withCredentials:!0})}if("v2"==o){var r=a({doneWatching:null==e?void 0:e.doneWatching,videoId:null==e?void 0:e.videoId,watchedPercentage:null==e?void 0:e.watchedPercentage,watchedTime:null==e?void 0:e.watchedTime},(null==e?void 0:e.seriesId)&&{seriesId:e.seriesId});return n({url:f(),method:"POST",headers:{Authorization:t},data:r,params:a({},(null==e?void 0:e.profileId)&&{profileId:null==e?void 0:e.profileId})})}},c=function(e,t){var o,i,r=(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i?void 0:i.apiVersion)||"v1";if("v1"==r){var a,l,d=JSON.parse(atob(t.split(".")[1])),s=(null==d?void 0:d.site)||null;return n({method:"GET",url:I(e),params:{site:s},headers:{Authorization:t,"x-api-key":null===(a=window)||void 0===a||null===(l=a.watchHistory)||void 0===l?void 0:l.xApiKey}})}if("v2"==r){var c,u;JSON.parse(atob(t.split(".")[1]));var v=window.contentType;return n({method:"GET",url:p(e,v),headers:{Authorization:t,"x-api-key":null===(c=window)||void 0===c||null===(u=c.watchHistory)||void 0===u?void 0:u.xApiKey}})}},u=function(e){var t,o;if("v1"==((null===(t=window)||void 0===t||null===(o=t.watchHistory)||void 0===o?void 0:o.apiVersion)||"v1"))return n({method:"GET",url:m(),params:{site:null==e?void 0:e.siteOwner,version:"v2",seriesId:e.videoId},headers:{Authorization:e.token}});var i=e.videoId;return n({method:"GET",url:v(i),headers:{Authorization:e.token}})},v=function(e){return T()+"".concat(null==i?void 0:i.getSeriesWatchHistoryV2,"/").concat(e)},m=function(){return T()+"".concat(null==i?void 0:i.getSeriesWatchHistoryV1)},I=function(e){return T()+"".concat(null==i?void 0:i.getVideoInfoV1,"/").concat(e)},p=function(e,t){return T()+"".concat(null==i?void 0:i.getVideoInfoV2,"/").concat(t,"/").concat(e)},g=function(){return T()+"".concat(null==i?void 0:i.saveWatchHistoryV1)},f=function(){return T()+"".concat(null==i?void 0:i.saveWatchHistoryV2)},E=function(){return T()+"".concat(null==i?void 0:i.getVideoDetails)},T=function(){var e;return(null===(e=window)||void 0===e?void 0:e.playerEntitlementUrl)||(null==i?void 0:i.apiBaseUrl)},y=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},w=function(e,t){if(import("./error-2395864b.js").then((function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)})),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var o=document.getElementById(e),i=document.createElement("div");i.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),i.appendChild(r),o.append(i)}},O=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var h=function(){var e,t,n,o;return null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.onlyPlayReadyDRM||navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(n=window.navigator)||void 0===n||null===(o=n.userAgentData)||void 0===o?void 0:o.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?_(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}window._deviceInfo=o(navigator.userAgent);var b=function(e,t){return e&&t?"".concat(e,"x").concat(t):e>1024?"L":e>768?"M":"S"},S=function(e){var t=V(e,"video.tags",[]),n=V(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?t.map((function(e){return e.title})).join(","):n},V=function(e,t,n){for(var o=0,i=(t=t.split(".")).length;o<i;o++){var r;e=null===(r=e)||void 0===r?void 0:r[t[o]]}return e||n},L=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},W=function(){var e,t,n,o,i,r,a,l,d,s,c,u,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",m=arguments.length>1?arguments[1]:void 0,I=arguments.length>2?arguments[2]:void 0,p=null==I||null===(e=I.video)||void 0===e?void 0:e.metadata,g=me(m);if(!v.includes("VIEWLIFT_"))return v;var f=window.getComputedStyle(document.getElementById(m),null),E=Math.trunc(f.getPropertyValue("height").slice(0,-2)),T=Math.trunc(f.getPropertyValue("width").slice(0,-2)),y=V(I,"video.gist.id",""),w=D(D({},C(p)),{},{VIEWLIFT_WIDTH:T,VIEWLIFT_HEIGHT:E,VIEWLIFT_SIZE:b(T,E),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(t=window)||void 0===t?void 0:t.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:navigator.userAgent,VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:V(I,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:V(I,"video.gist.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:V(I,"video.gist.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==g||null===(n=g.options_)||void 0===n?void 0:n.autoplay)||1,VIEWLIFT_MUTE:(null==g||null===(o=g.options_)||void 0===o?void 0:o.autoplay)||0,VIEWLIFT_DEVICE_ID:localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_KEYWORDS:S(I),VIEWLIFT_MEDIA_ID:y,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(V(I,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:y,VIEWLIFT_VIDEO_URL:encodeURI(window.location.host+V(I,"video.gist.permalink","")),VIEWLIFT_COPPA:V(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(a=r.site)||void 0===a?void 0:a.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR:V(null===(l=window)||void 0===l||null===(d=l.app_data)||void 0===d||null===(s=d.site)||void 0===s?void 0:s.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*V(I,"video.gist.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:V(I,"video.gist.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:y,VIEWLIFT_CONTENT_TITLE:V(I,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),VIEWLIFT_CONTENT_SERIES_TITLE:V(I,"video.series[0].gist.title",V(I,"seriesInfo.title","VIEWLIFT_CONTENT_SERIES_TITLE")),VIEWLIFT_CONTENT_EPISODE:V(I,"video.currentEpisode","VIEWLIFT_CONTENT_EPISODE"),VIEWLIFT_CONTENT_SEASON:V(I,"video.currentSeason","VIEWLIFT_CONTENT_SEASON"),VIEWLIFT_CONTENT_GENRE:V(I,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER"},null===(c=window)||void 0===c||null===(u=c.customData)||void 0===u?void 0:u.macros);for(var O in w){var h=new RegExp("\\b("+O+")\\b","g");v=v.replace(h,w[O])}return v},C=function(e){var t,n,o,i,r,a,l={},d=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map((function(e){d.set(e.name,e.value)})));var s=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(o=n.subscription)||void 0===o?void 0:o.SVOD)||!1,c=(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(a=r.subscription)||void 0===a?void 0:a.TVE)||!1;return s||c?(L()?s?l=D(D({},l),{},{VIEWLIFT_CSID:d.get("csid.mweb.dtc")||""}):c&&(l=D(D({},l),{},{VIEWLIFT_CSID:d.get("csid.mweb.tve")||""})):s?l=D(D({},l),{},{VIEWLIFT_CSID:d.get("csid.web.dtc")||""}):c&&(l=D(D({},l),{},{VIEWLIFT_CSID:d.get("csid.web.tve")||""})),s?l=D(D({},l),{},{VIEWLIFT_SFID:d.get("sfid.dtc")||""}):c&&(l=D(D({},l),{},{VIEWLIFT_SFID:d.get("sfid.tve")||""})),l=L()?D(D({},l),{},{VIEWLIFT_PROF:d.get("prof.mweb")||""}):D(D({},l),{},{VIEWLIFT_PROF:d.get("prof.web")||""})):(l=D(D({},l),{},{VIEWLIFT_SFID:d.get("sfid.dtc")||""}),l=L()?D(D({},l),{},{VIEWLIFT_CSID:d.get("csid.mweb.dtc")||""}):D(D({},l),{},{VIEWLIFT_CSID:d.get("csid.web.dtc")||""})),l};function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?P(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):P(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var F,R,N,j,k,U=function(e,t){var n,o,i,r,a,l,d,s,c,u,v,m=null==e||null===(n=e.video)||void 0===n?void 0:n.drmEnabled,I=null==e||null===(o=e.video)||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.videoAssets,p=(null==e||null===(r=e.video)||void 0===r||null===(a=r.streamingInfo)||void 0===a||null===(l=a.videoAssets)||void 0===l?void 0:l.hls)||!1,g=(null==e||null===(d=e.video)||void 0===d||null===(s=d.streamingInfo)||void 0===s||null===(c=s.videoAssets)||void 0===c?void 0:c.dash)||!1,f=(null==e||null===(u=e.video)||void 0===u||null===(v=u.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1;if(m){var E=H(I,t);return E.src=W(E.src,t,e),f&&(E=A(A({},E),{},{src:x(A(A({},e.video),{},{src:"".concat(E.src)}))})),E}if("Safari"!==h()&&g)return B(I);if(p){var T=M(I);return T.src=W(T.src,t,e),f&&(T=A(A({},T),{},{src:x(A(A({},e.video),{},{src:"".concat(T.src)}))})),T}if(null!=I&&I.mpeg){var y=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(I);return y.src=W(y.src,t,e),y}return null},B=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},x=function(e){var t=e.src;if(e.liveDetails.startOverTime){var n=e.liveDetails.startOverTime,o=e.gist.scheduleStartDate,i=e.gist.scheduleEndDate,r=new Date,a=0,l=r.getTime();a=l-o<1e3*n?l-o:1e3*n;var d=null;i<=l&&null!=i&&(d=new Date(i)),r.setMilliseconds(r.getMilliseconds()-a),t=t.includes("?")?i&&d?"".concat(e.src,"&start=").concat(r.toISOString(),"&end=").concat(d.toISOString()):"".concat(e.src,"&start=").concat(r.toISOString()):i&&d?"".concat(e.src,"?start=").concat(r.toISOString(),"&end=").concat(d.toISOString()):"".concat(e.src,"?start=").concat(r.toISOString())}return t},M=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},H=function(e,n){var o=e.fairPlay,i=e.widevine,r=e.playReady,a=h(),l=me(n);if("Safari"===a){var d=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,o){var i={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};t.xhr(i,(function(e,t,n){console.log(e),e&&o(e),o(null,new Uint8Array(n))}))},getContentId:function(e,t){if(t)return new TextDecoder("utf-16").decode(t.slice(16))},getLicense:function(n,o,i,r){var a={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:i,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};t.xhr(a,(function(e,t,n){console.log(e),e&&r(e),r(null,n)}))}}}}}(o);try{l.eme()}catch(e){}return d}if("Chrome"===a||"Firefox"===a){var s={src:i.url,type:"application/dash+xml",keySystemOptions:[]};return s.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:i.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":i.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),s}if("IE"===a){var c={src:r.url,type:"application/dash+xml",keySystemOptions:[]};return c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:r.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":r.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c}};var z=function(e){R=e},G=function(){return R},Y=function(e){F=e},J=function(){return F},K=function(){return N},q=function(e){N=e},X=function(e){k=e},Z=function(){return k},Q=function(e){j=new Map,e.map((function(e,t){j.set(e.id,t)}))},$=function(e){if(j){var t=j.get(e);q(t+1)}},ee=function(e,t){for(var n=me(e).textTracks(),o=0;o<n.length;o++){var i=n[o];"subtitles"===i.kind&&i.id==t&&(i.mode="showing")}},te=function(e,t){for(var n=me(e).textTracks(),o=0;o<n.length;o++){var i=n[o];"subtitles"===i.kind&&i.id===t&&(i.mode="hidden")}},ne=function(e){var t,n=me(e);return(null==n||null===(t=n.textTracks())||void 0===t?void 0:t.tracks_.filter((function(e){return"subtitles"==e.kind})))||[]},oe=function(e,t){var n=me(e);n.remoteTextTracks().tracks_.map((function(e){n.removeRemoteTextTrack(e)})),t.map((function(e){n.addRemoteTextTrack({src:e.url,srcLang:e.language,label:e.language})}))},ie=!1,re=function(e,t,n){var o=W(t,e,n),i=me(e);t&&window.google&&(i.ima.initializeAdDisplayContainer&&i.ima.initializeAdDisplayContainer(),function(e,t){var n,o,i,r=me(e);if(null!==r.el_){ie=!0;var a={id:e,adTagUrl:"".concat(t,"&vid=").concat(window.videoId,"&url=").concat(window.location.href,"&correlator=").concat((new Date).getTime(),"&cust_params=sd%3D60000%26site%3D").concat(window.location.origin,"%26autostart%3D%26mute%3D%26user_agent%3D%26keyword%3D%26category%3D").concat(window.category,"%26vid%3D").concat(window.videoId),adLabel:"Your video will resume after this sponsor message"};r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),ie&&null!==r.el_&&("function"==typeof r.ima?r.ima(a):setTimeout((function(){r.ima.setContentWithAdTag(null,t,!0),r.ima.requestAds()}),1e3));var l=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&l.hasAttribute("controls")&&l.removeAttribute("controls");var d="click",s=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(s=!0,d="touchend"),r.one(d,(function(){s&&r.ima.initializeAdDisplayContainer()}));var c=(null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o||null===(i=o.ads)||void 0===i?void 0:i.adEventHandler)||null;r.one("ads-ad-started",(function(){c&&c({status:"STARTED",msg:"Advertisement Started"})})),r.one("ads-manager",(function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}))})),r.on("adserror",(function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})}))}}(e,o))};function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var le=function(e){t(e).play()},de=function(e){t(e).pause()},se=function(e,n){var o=t(e),i=o.currentTime()+n;o.currentTime(i)},ce=function(e,n){var o=t(e),i=o.currentTime(),r=i<=n?0:i-n;o.currentTime(r)},ue=function(e){return!!t.getPlayer("".concat(e))},ve=function(e){return t(e).paused()},me=function(e){return!!t.getPlayer("".concat(e))&&t.getPlayer("".concat(e))},Ie=function(e,t,n){var o,i,r;$(t);var a=0,d=0;return null!==(o=window)&&void 0!==o&&o.watchHistory&&null!==(i=window)&&void 0!==i&&null!==(r=i.watchHistory)&&void 0!==r&&r.enable&&c(t,n).then((function(e){var t,n,o,i,r,l;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),a=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,d=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null})).catch((function(e){var t,n,o,i;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))})),new Promise((function(o,i){l(t,n).then((function(t){var n,r,l,s,c,u,v,m,I,p,g=null==t?void 0:t.data,f=(null==g||null===(n=g.video)||void 0===n||null===(r=n.streamingInfo)||void 0===r?void 0:r.isLiveStream)||!1;z(t.data);var E=(null==g||null===(l=g.ads)||void 0===l||null===(s=l.preRoll)||void 0===s||null===(c=s.adTags)||void 0===c||null===(u=c.web)||void 0===u?void 0:u.active)&&(null==g||null===(v=g.ads)||void 0===v||null===(m=v.preRoll)||void 0===m||null===(I=m.adTags)||void 0===I||null===(p=I.web)||void 0===p?void 0:p.url);E&&re(e,E,g);var T=U(g,e);if(T){var y,h,_,D,b,S,V,L,W,C,P,A=null==g||null===(y=g.video)||void 0===y||null===(h=y.gist)||void 0===h?void 0:h.videoImageUrl,F=me(e);if(F.poster(A),Ee(e,T),F.on("loadstart",(function(){f&&o({status:!0,msg:"Video Loaded",response:g})})),F.on("loadeddata",(function(){O(),o({status:!0,msg:"Video Loaded",response:g})})),F.one("play",(function(){a&&d<95&&setTimeout((function(){F.currentTime(a)}),0)})),F.one("error",(function(){var e;i({status:!1,msg:(null==F||null===(e=F.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==g||null===(_=g.video)||void 0===_||null===(D=_.contentDetails)||void 0===D||null===(b=D.closedCaptions)||void 0===b?void 0:b.length)>0||(null==g||null===(S=g.video)||void 0===S||null===(V=S.closedCaptions)||void 0===V?void 0:V.length)>0)L=((null==g||null===(W=g.video)||void 0===W||null===(C=W.contentDetails)||void 0===C?void 0:C.closedCaptions)||(null==g||null===(P=g.video)||void 0===P?void 0:P.closedCaptions)).filter((function(e){return"VTT"===e.format})),oe(e,L);else!function(e){var t=me(e);t.remoteTextTracks().tracks_.map((function(e){null==e||e.kind,t.removeRemoteTextTrack(e)}))}(e)}else w(e,"Incompatible Source, only hls,mp4,drm content is allowed"),i("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(n){Te(n,e,i,t)}))}))},pe=function(e,t,n){var o=me(e);return o.src(t),new Promise((function(e,t){var i=0;o.one("loadedmetadata",(function(){clearTimeout(i),e({status:!0,msg:"video loaded"})})),o.one("loadstart",(function(e){i=setTimeout((function(){t("FAILED: Took too long to load")}),n)}))}))},ge=function(e){var t=me(e);if(fe(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},fe=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove()},Ee=function(e,t){me(e).src(t)},Te=function(t,n,o,i){var r,a,l,d,s,c,u=null==t||null===(r=t.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.errorCode,v=(null==t||null===(l=t.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.errorMessage)||(null==t?void 0:t.message);ue(n)&&w(n,(null===(s=window)||void 0===s?void 0:s.customErrors)&&(null===(c=window)||void 0===c?void 0:c.customErrors[u])||"".concat(v)),o&&o(function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ae(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ae(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({status:!1,response:t,msg:"".concat(v)},i&&{videoId:i}))},ye=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var o=t.getElementsByClassName("vjs-big-play-button")[0];o&&(o.style.display="none");var i=t.getElementsByClassName("vjs-fullscreen-control")[0];i&&(i.style.display="none")};export{l as A,Te as B,c as C,re as D,oe as E,Y as F,J as G,K as H,ve as I,q as J,Q as K,$ as L,G as a,z as b,O as c,h as d,Z as e,u as f,me as g,w as h,X as i,se as j,de as k,pe as l,Ee as m,ue as n,Ie as o,le as p,ge as q,ce as r,s,ee as t,te as u,ne as v,U as w,ye as x,y,d as z};
|
package/esm/index-037539e0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"video.js/dist/video-js.min.css";import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/regenerator";import o from"video.js";import{d as i,g as l,s as r,c as a,h as s,a as u,b as d,e as c,f as v,i as m,l as p,j as f,p as w,k as g,r as y,m as h,n as b,o as k,q as O,t as j,u as P,v as I,w as T,x as S,y as C,z as D,A as E,B as x,C as B,D as R,E as L,F as V}from"./generic-bf7f24d7.js";import{o as H,g as A,a as N,s as M,b as _}from"./util-c77f4b50.js";import{g as q}from"./renditions-9fc9c91c.js";import{playSelectedResolution as F}from"./resolution-227e3743.js";import{i as U}from"./skin-665ec17e.js";function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function J(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?z(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):z(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var W,K,X=function(e,t){var n=l(e);n&&t&&n.controlBar&&n.controlBar.progressControl.seekBar.on("click",(function(t){var n,i,l,r,a,s=this.el(),u=o.dom.getPointerPosition(s,t).x;o.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var d=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(n=window)||void 0===n||null===(i=n.cast)||void 0===i||null===(l=i.framework)||void 0===l||null===(r=l.CastContext)||void 0===r||null===(a=r.getInstance())||void 0===a?void 0:a.S;if(console.log(d),d&&"CONNECTED"===c){window.cast.framework.RemotePlayer.canSeek=!0;var v=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),m=v.h.media[0].liveSeekableRange.end;v.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=m*u,v.seek()}}))};function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var G=[],Q=0,Z=null;function $(e,n,o){var i,l,a,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];K=(null==n||null===(i=n.watchHistory)||void 0===i?void 0:i.apiVersion)||"v1";var u=null==n||null===(l=n.watchHistory)||void 0===l?void 0:l.profileId,d=Math.floor(e.currentTime()),c=Math.floor(e.duration()),v=null==n||null===(a=n.watchHistory)||void 0===a?void 0:a.xapiKey,m={};"v1"==K?m={videoId:W,watchedTime:Math.floor(e.currentTime()),watchedPercentage:Math.floor(d/c*100),siteOwner:n.siteOwner,userId:n.userId,xApiKey:v}:"v2"==K&&(m=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Y(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({videoId:W,watchedTime:Math.floor(e.currentTime()),watchedPercentage:s?100:Math.floor(d/c*100),doneWatching:s,profileId:u},Z&&{seriesId:Z})),r(m,n.token,K).then((function(e){})).catch((function(e){})),Q=d+o}var ee=function(e,t,n){var o=l(e);if(o)if(t>=0&&t<=100){o.muted()&&o.muted(!1);var i=parseFloat(t)/100;o.volume(i),n&&n({status:!0,msg:"Volume set to ".concat(t,"%")})}else n&&n({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else n({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},te=function(e){var t=l(e);return t?parseInt(100*t.volume())+"%":"Cannot find player with id: '".concat(e,"'")};function ne(e){var t=l(e),n=(null==t?void 0:t.el().querySelector("video")).getVideoPlaybackQuality(),o=n?n.droppedVideoFrames/t.duration():"Unknown",i=document.getElementsByClassName("drop-frames-container");null!=i&&i.length&&(i[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Dropped FPS </div><div class="debug-value-item">'.concat(parseInt(o),"/s</div></div>"))}function oe(e){for(var t=l(e),n=t.buffered(),o=t.currentTime(),i=0,r=0;r<n.length;r++)n.start(r)<=o&&n.end(r)>i&&(i=n.end(r));var a=i-o,s=document.getElementsByClassName("buffer-container");s.length&&(s[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Buffer Health </div><div class="debug-value-item">'.concat(a.toFixed(2)," seconds</div></div>"))}var ie=function(e){var t=document.getElementsByClassName("debug-container");if(null!=t&&t.length){var n=t[0].getElementsByClassName("volume-container");n.length&&(n[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Volume </div><div class="debug-value-item">'.concat(e,"%</div></div>"))}},le=function(e){l(e).on("loadstart",(function(){(new Date).getTime()}))};function re(e){var t=l(e),n=t.el().clientWidth,o=t.el().clientHeight,i=document.getElementsByClassName("viewport-container");i.length&&(i[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Viewport </div><div class="debug-value-item">'.concat(n,"x").concat(o,"</div></div>"))}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var se=function(e,n,o,i){var r,v,m=i.res,p=i.sres,f=l(e),w=(null==m||null===(r=m.video)||void 0===r||null===(v=r.streamingInfo)||void 0===v?void 0:v.isLiveStream)||!1;d(m),f.on("timeupdate",(function(){"true"==localStorage.getItem("SHOW_LATENCY_INFO")&&function(e){var t=l(e),n=document.getElementsByClassName("latency-container");t.on("timeupdate",(function(){var e,o;null!=n&&n.length&&(n[0].innerHTML='<div class="debug-item"><div class="debug-title-item">Live Latency </div><div class="debug-value-item">'.concat(null==t||null===(e=t.dash)||void 0===e||null===(o=e.mediaPlayer)||void 0===o?void 0:o.getCurrentLiveLatency()," seconds</div></div>"))}))}(e)})),f.on("loadstart",(function(){w&&o.resolve({status:!0,msg:"Video Loaded",response:m})})),f.on("loadeddata",(function(){var i;(null==f||!f.muted())&&ee(e,sessionStorage.getItem("volume")||"100");var r,s,d=u();(a(),o.resolve(function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ae(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ae(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({status:!0,msg:"Player Initialised"},p?{seriesResponse:p,response:m}:{response:m})),null!=n&&n.watchHistory&&null!=n&&null!==(i=n.watchHistory)&&void 0!==i&&i.enable&&!n.isAnonymousUser)&&function(e,t,n){var o,i;null!=t&&t.series&&(Z=null==t||null===(o=t.series)||void 0===o?void 0:o.id),G=[],Q=0,W=n;var r=(null==t||null===(i=t.watchHistory)||void 0===i?void 0:i.interval)||30,a=l(e);a&&(a.on("timeupdate",(function(){var e=Math.floor(a.currentTime());G.includes(Q)||(e==Q?(G.push(e),$(a,t,r)):e>Q&&(Q=e+r))})),a.on("ended",(function(){$(a,t,r,!0)})))}(e,n,null==d||null===(r=d.video)||void 0===r||null===(s=r.gist)||void 0===s?void 0:s.id)})),f.textTracks().on("change",(function(e){var t=this.tracks_.filter((function(e){if("subtitles"===e.kind&&"showing"===e.mode)return!0}))[0];f.trigger("subtitlechanged",t)})),f.on("subtitlechanged",(function(e,t){var n,o,i,l,r,a,s,u,d,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,m=null===(n=window)||void 0===n||null===(o=n.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(r=l.getInstance())||void 0===r?void 0:r.S,p=null===(a=window)||void 0===a||null===(s=a.cast)||void 0===s||null===(u=s.framework)||void 0===u||null===(d=u.CastContext)||void 0===d||null===(c=d.getInstance())||void 0===c?void 0:c.getCurrentSession();if(v&&"CONNECTED"===m){var f,w=p.getMediaSession(),g=w.media.tracks.filter((function(e){return"TEXT"==e.type}));f=t?new chrome.cast.media.EditTracksInfoRequest([g[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),w.editTracksInfo(f)}})),f.on("loadedmetadata",(function(){})),f.one("error",(function(){var t,n;s(e,(null==f||null===(t=f.error())||void 0===t?void 0:t.message)||"Some error occured"),o.reject({status:!1,msg:(null==f||null===(n=f.error())||void 0===n?void 0:n.message)||"Some error occured"})})),f.one("play",(function(){var e;if(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable){var t,o,i,l=null===(t=u())||void 0===t||null===(o=t.video)||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.id,r=c().get(l)||{t:0,p:0},a=r.t,s=r.p;a&&s<95&&setTimeout((function(){f.currentTime(a)}),0)}else null!=n&&n.watchHistoryResumeTime&&(null==n?void 0:n.watchedPercentage)<95&&f.currentTime(null==n?void 0:n.watchHistoryResumeTime)})),f.on("volumechange",(function(){var e=100*f.volume().toFixed(2);f.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)}))},ue=function(e,t){var n=null==t?void 0:t.skin;"live"==n?import("./skin-ed1b1e01.js").then((function(n){n.initialiseSkin(e,t)})):"default"==n?import("./skin-c7172967.js").then((function(n){n.initialiseSkin(e,t)})):"carousel"==n?import("./skin-4bdf2011.js").then((function(t){t.initaliseSkin(e)})):"defaultV2"==n?import("./skin-4975c934.js").then((function(n){n.initialiseSkin(e,t)})):"multiplayer"==n&&import("./skin-395255aa.js").then((function(n){n.initialiseSkin(e,t)}))},de=function(e){return new Promise((function(t,n){if(ce(e))n("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!1,o.src=e,o.onload=function(){t()},o.onerror=function(t){n("Error while loading script ".concat(e," : ").concat(t))},document.head.appendChild(o)}}))},ce=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0};function ve(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}var me=function(e,t){t.controlBar.el_.style.color=e,t.controlBar.el_.querySelector(".vjs-play-progress")&&(t.controlBar.el_.querySelector(".vjs-play-progress").style.backgroundColor=e),t.controlBar.el_.querySelector(".vjs-volume-level")&&(t.controlBar.el_.querySelector(".vjs-volume-level").style.backgroundColor=e)};var pe,fe=function(){var t=e(n.mark((function e(){return n.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)}}(),we=function(){var t=e(n.mark((function e(){return n.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)}}(),ge=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then((function(e){de("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then((function(){e.default(o)})).catch((function(e){console.log(e)}))}))},importAirplay:function(){import("@silvermine/videojs-airplay").then((function(e){e.default(o)}))},importIMA:function(){import("videojs-contrib-ads"),import("videojs-ima"),de("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then((function(){})).catch((function(e){return console.log(e)}))},loadDashLibrary:fe,loadEMELibrary:we});function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function he(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ye(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ye(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var be=function(r,a,u,d){var c,v,m,p,f,w,g,y,b,k,O,j,P,I,C,D,E,x,B,V,H,A,N,M=a.res,_=void 0===M?null:M,q=a.sres,F=void 0===q?null:q,U=(null===(c=window)||void 0===c||null===(v=c.cast)||void 0===v||null===(m=v.framework)||void 0===m||null===(p=m.CastContext)||void 0===p||null===(f=p.getInstance())||void 0===f?void 0:f.S)||void 0,z=null!=u&&u.chromecastReceiverId?"NO_DEVICES_AVAILABLE"!==U&&"NOT_CONNECTED"!==U?["html5","chromecast"]:["chromecast","html5"]:["html5"],W=null==_||null===(w=_.video)||void 0===w||null===(g=w.gist)||void 0===g?void 0:g.videoImageUrl,K=(null==_||null===(y=_.video)||void 0===y||null===(b=y.liveDetails)||void 0===b?void 0:b.isDvrEnabled)||!1,Y=function(e){var t,n={};return null!=e&&e.series||null!=e&&e.chromecastReceiverId&&null!==(t=window)&&void 0!==t&&t.cast&&(n={chromecast:{receiverAppID:null==e?void 0:e.chromecastReceiverId,addButtonToControlBar:"default"==e.skin||"defaultV2"==e.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}}),null!=e&&e.airplay&&"Safari"==i()&&(n=J(J({},n),{},{airPlay:{addButtonToControlBar:"default"==e.skin,buttonPositionIndex:-6}})),n}(u),G=(null==_||null===(k=_.video)||void 0===k||null===(O=k.streamingInfo)||void 0===O?void 0:O.isLiveStream)||!1,Q=(null==u?void 0:u.drmLibrary)||!1,Z=(null==_||null===(j=_.ads)||void 0===j||null===(P=j.preRoll)||void 0===P||null===(I=P.adTags)||void 0===I||null===(C=I.web)||void 0===C?void 0:C.active)&&(null==_||null===(D=_.ads)||void 0===D||null===(E=D.preRoll)||void 0===E||null===(x=E.adTags)||void 0===x||null===(B=x.web)||void 0===B?void 0:B.url),$=(N={controls:0!=(null==u?void 0:u.controls),playsinline:!0,fluid:!0,muted:(null==u?void 0:u.muted)||!1,autoplay:(null==u?void 0:u.autoplay)||!1,controlBar:{volumePanel:("default"==u.skin||"defaultV2"==u.skin||"live"==(null==u?void 0:u.skin))&&{inline:!1},fullscreenToggle:"default"==u.skin||"defaultV2"==u.skin,audioTrackButton:!1,pictureInPictureToggle:(u.skin,!1)},muteToggle:"multiplayer"==u.skin,liveui:K},t(N,"autoplay",null==u?void 0:u.autoplay),t(N,"normalizeAutoplay",(null==u?void 0:u.autoplay)&&!Z),t(N,"loop",(null==u?void 0:u.loop)||!1),t(N,"html5",he(he({dash:{updateSettings:{streaming:{delay:{liveDelay:localStorage.getItem("LATENCY")||3},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},abr:{additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0}}}}},vhs:he(he({experimentalLLHLS:(null==u?void 0:u.lowLatency)||!1,limitRenditionByPlayerDimensions:!0,useDevicePixelRatio:!0,useNetworkInformationApi:!0},(null==u||null===(V=u.customData)||void 0===V?void 0:V.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:(null==u?void 0:u.enableLowInitialPlaylist)||!1,experimentalBufferBasedABR:(null==u?void 0:u.experimentalBufferBasedABR)||!1})},0==(null==u||null===(H=u.customData)||void 0===H?void 0:H.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==u||null===(A=u.customData)||void 0===A?void 0:A.nativeVideoTracks)&&{nativeVideoTracks:!1})),t(N,"poster",W),t(N,"techOrder",z),t(N,"chromecast",{requestCustomDataFn:function(e){var t=l(r);console.log(t.textTracksJson_);var n=t.textTracksJson_.filter((function(e){return"subtitles"==e.kind}));return function(e,t,n){var o,i,l,r,a,s,u,d,c,v,m={};if(e&&e.video&&e.video.drmEnabled){m.isDrmEnabled=!0;var p=t.keySystemOptions&&t.keySystemOptions[0]&&t.keySystemOptions[0].options&&t.keySystemOptions[0].options.serverURL;m.licenseUrl=p;var f=t.keySystemOptions&&t.keySystemOptions[0]&&t.keySystemOptions[0].options&&t.keySystemOptions[0].options.httpRequestHeaders["X-AxDRM-Message"];m.licenseToken=f}var w=(null==e||null===(o=e.video)||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";m.contentType=w;var g=null==e||null===(l=e.video)||void 0===l||null===(r=l.gist)||void 0===r?void 0:r.runtime;m.duration=g;var y=null==e||null===(a=e.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;m.mediaTitle=y;var h=null==e||null===(u=e.video)||void 0===u||null===(d=u.gist)||void 0===d?void 0:d.videoImageUrl;return m.mediaImage=h,m.subTitles=n,m.DVR=(null==e||null===(c=e.video)||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(m),m}(_,e,n)}}),t(N,"plugins",Y),N),ee=o(r,$,function(){var t=e(n.mark((function e(){var t,l,a,c,v,m,p,f,w,g,y,b,k,O,j,P,I;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(G&&d.resolve(he({status:!0,msg:"Player Initialised"},F?{seriesResponse:F,response:_}:{response:_})),"white"!==window.controlsColor&&me(window.controlsColor,ee),/Android/i.test(navigator.userAgent)&&(o.options.vhs.overrideNative=!0),g=null==_||null===(t=_.video)||void 0===t?void 0:t.drmEnabled,y=null==_||null===(l=_.video)||void 0===l||null===(a=l.liveDetails)||void 0===a?void 0:a.startOverTime,!g&&!Q){e.next=13;break}if("Safari"!==i()){e.next=11;break}return e.next=9,we();case 9:e.next=13;break;case 11:return e.next=13,Promise.all([we(),fe()]);case 13:K&&X(r,y),!Z||null!=u&&null!==(c=u.customData)&&void 0!==c&&c.disableAds||R(r,Z,_),b=T(_,r),"IN"==u.countryCode&&(o.Vhs.xhr.beforeRequest=function(e){e.uri=e.uri.replace("us-e","a-m")}),b?h(r,b):(d.reject({status:!1,msg:"Incompatible Source, only hls,mp4,drm content is allowed",response:_}),s(r,"Incompatible Source, only hls,mp4,drm content is allowed")),((null==_||null===(v=_.video)||void 0===v||null===(m=v.contentDetails)||void 0===m||null===(p=m.closedCaptions)||void 0===p?void 0:p.length)>0||(null==_||null===(f=_.video)||void 0===f||null===(w=f.closedCaptions)||void 0===w?void 0:w.length)>0)&&(I=(null==_||null===(O=_.video)||void 0===O||null===(j=O.contentDetails)||void 0===j?void 0:j.closedCaptions)||(null==_||null===(P=_.video)||void 0===P?void 0:P.closedCaptions),k=I.filter((function(e){return"VTT"===e.format})),L(r,k)),null!=u&&u.disableControls?S(r):ue(r,he(he(he({},u),$),{},{liveVideo:G,isDvrEnabled:K,res:_,sres:F})),se(r,he(he(he({},u),$),{},{liveVideo:G}),d,{res:_,sres:F});case 21:case"end":return e.stop()}}),e)})));return function(){return t.apply(this,arguments)}}())};function ke(){return{loadVideoInstantly:p,onTimeUpdate:H,getVideoDuration:A,onVideoEnded:N,init:function(e){return new Promise((function(t,n){var o,l,r,a,s,u,c,p,f;if(!b(null==e?void 0:e.playerId)){var w=null==e?void 0:e.videoId,g=(null==e||null===(o=e.series)||void 0===o?void 0:o.enable)||!1;window.videoId=w;var y=null==e?void 0:e.token;if(y&&!C(y)){pe=JSON.parse(atob(y.split(".")[1])),window.siteId=null===(l=pe)||void 0===l?void 0:l.siteId,window.siteName=null===(r=pe)||void 0===r?void 0:r.site,e.isAnonymousUser=!(null===(a=pe)||void 0===a||!a.anonymousId),e.siteOwner=(null===(s=pe)||void 0===s?void 0:s.site)||null,e.userId=(null===(u=pe)||void 0===u?void 0:u.userId)||null,window.sessionStorage.setItem("uid",null===(c=pe)||void 0===c?void 0:c.userId),window.watchHistory=e.watchHistory||null,sessionStorage.setItem("token",y);var h=null==e?void 0:e.playerId,k=e.chromecastReceiverId=null!=e&&e.series?null:null==e?void 0:e.chromecastReceiverId,O=null==e?void 0:e.airplay,j=null==e?void 0:e.apiBaseUrl,P=(null==e||null===(p=e.analytics)||void 0===p?void 0:p.gaId)||null,I=null==e?void 0:e.errors;I&&(window.customErrors=I),window.customData=null==e?void 0:e.customData,j&&(window.playerEntitlementUrl=j),window.controlsColor=(null==e?void 0:e.controlsColor)||"white",null!=e&&e.skin&&!U(e.skin)||(e.skin="defaultV2"),Promise.resolve().then((function(){return ge})).then((function(e){e.importIMA()})),!k||null!=e&&e.series||Promise.resolve().then((function(){return ge})).then((function(e){e.importChromecast()})),O&&"Safari"==i()&&Promise.resolve().then((function(){return ge})).then((function(e){e.importAirplay()})),P&&de("https://www.googletagmanager.com/gtag/js?id=".concat(P)).then((function(){return e=P,window.dataLayer=window.dataLayer||[],ve("js",new Date),void ve("config",e);var e})).catch((function(e){}));var T=null===(f=document)||void 0===f?void 0:f.getElementById("".concat(h));if(T&&T.addEventListener("contextmenu",(function(e){return e.preventDefault()})),g){var S,R=null==e||null===(S=e.series)||void 0===S?void 0:S.id;D(R,y).then((function(o){var i,l,r,a=o.data,s=o.data.seasons;V(s);var u=w||(null==s||null===(i=s[0])||void 0===i||null===(l=i.episodes)||void 0===l||null===(r=l[0])||void 0===r?void 0:r.id);!function(e,t){var n=new Map;v({videoId:e,token:t}).then((function(e){e.data.map((function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})})),m(n)})).catch((function(e){return console.log(e)}))}(R,y),E(u,y).then((function(o){var i,l,r;window.contentType=null==o||null===(i=o.data)||void 0===i||null===(l=i.video)||void 0===l||null===(r=l.gist)||void 0===r?void 0:r.contentType,d(o.data),be(h,{res:null==o?void 0:o.data,sres:a},e,{resolve:t,reject:n})})).catch((function(e){x(e,h,n,w)}))})).catch((function(e){x(e,h,n)}))}else E(w,y).then((function(o){var i,l,r,a;window.contentType=null==o||null===(i=o.data)||void 0===i||null===(l=i.video)||void 0===l||null===(r=l.gist)||void 0===r?void 0:r.contentType,d(null==o?void 0:o.data);var s=null==o?void 0:o.data;null!=e&&e.watchHistory&&null!=e&&null!==(a=e.watchHistory)&&void 0!==a&&a.enable?B(w,y).then((function(o){var i,l,r,a,u,d;null!==(i=window)&&void 0!==i&&null!==(l=i.watchHistory)&&void 0!==l&&l.cb&&(null===(r=window)||void 0===r||null===(a=r.watchHistory)||void 0===a||a.cb(null==o?void 0:o.data)),e.watchHistoryResumeTime=(null==o||null===(u=o.data)||void 0===u?void 0:u.watchedTime)||null,e.watchedPercentage=(null==o||null===(d=o.data)||void 0===d?void 0:d.watchedPercentage)||null,be(h,{res:s},e,{resolve:t,reject:n})})).catch((function(o){var i,l,r,a;null!==(i=window)&&void 0!==i&&null!==(l=i.watchHistory)&&void 0!==l&&l.cb&&(null===(r=window)||void 0===r||null===(a=r.watchHistory)||void 0===a||a.cb(o)),be(h,{res:s},e,{resolve:t,reject:n})})):be(h,{res:s},e,{resolve:t,reject:n})})).catch((function(e){x(e,h,n,w)}))}else n({status:!1,msg:"".concat(y?"Token is expired !":"Missing Authorization Token"),response:{token:y}})}}))},getRenditions:q,skip:f,getPlayer:l,play:w,pause:g,detectBrowser:i,rewind:y,loadVideo:h,seekToTimeStamp:M,isPlayerInitialised:b,load:k,dispose:O,enableCaptions:j,disableCaptions:P,getCaptions:I,playSelectedResolution:F,getSource:T,setVolume:ee,getVolume:te,disableControls:S,setPlaybackSpeed:_}}export{ke as V,oe as c,ne as e,re as g,ie as h,le as r};
|
package/esm/index-f98526bd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import i from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{D as d,e as r}from"./icons-c18c70b7.js";import{g as l}from"./generic-bf7f24d7.js";import{a as s}from"./skin-665ec17e.js";import"@babel/runtime/helpers/defineProperty";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";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,a=o(e);if(t){var d=o(this).constructor;i=Reflect.construct(a,arguments,d)}else i=a.apply(this,arguments);return n(this,i)}}var m=a.getComponent("Component"),u=function(n){i(u,m);var o=c(u);function u(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,u),(i=o.call(this,t,n)).playerId=n.playerId,i.player=t,i.videoDetails=null==n?void 0:n.options,i.initialiseStructure(),i.loadCSS(),i}return t(u,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"debug-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"debug-selection-icon",innerHTML:"".concat(d())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./debugSelection-2601b8b3.js").then((function(e){var t=document.createElement("style");t.id="debug-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=a.dom.createEl("div",{className:"debug-selection-container hidden"});t.style.right="0px",a.dom.$(".debug-selection-icon",this.el()).onclick=function(){var i;null!==(i=t.classList)&&void 0!==i&&i.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 i=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(i,"px"),a.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,i,n=this,o=this.el(),d=a.dom.createEl("div",{className:"debug-selector-head"}),s=a.dom.createEl("div",{className:"debug-selector-cross-icon",innerHTML:"".concat(r())});s.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};var c=a.dom.createEl("div",{className:"debug-selector-title",innerHTML:"Debug Statistics"}),m=a.dom.createEl("div",{className:"debug-selector-content"}),u=a.dom.createEl("div",{className:"debug-container"}),p=100*l(this.playerId).volume().toFixed(2),v=a.dom.createEl("div",{className:"video-id-container debug-item-wrapper",innerHTML:'<div class="debug-item"><div class="debug-title-item">Video Id </div><div class="debug-value-item">'.concat(null===(t=this.videoDetails)||void 0===t?void 0:t.videoId,"</div></div>")}),g=a.dom.createEl("div",{className:"volume-container debug-item-wrapper",innerHTML:'<div class="debug-item"><div class="debug-title-item">Volume </div><div class="debug-value-item">'.concat(p,"</div></div>")}),h=a.dom.createEl("div",{className:"buffer-container debug-item-wrapper"}),b=a.dom.createEl("div",{className:"drop-frames-container debug-item-wrapper"}),f=a.dom.createEl("div",{className:"latency-container debug-item-wrapper"}),y=a.dom.createEl("div",{className:"live-mode-container debug-item-wrapper",innerHTML:'<div class="debug-item"><div class="debug-title-item">Live Mode </div><div class="debug-value-item">'.concat(null===(i=this.videoDetails)||void 0===i?void 0:i.liveVideo,"</div></div>")}),C=a.dom.createEl("div",{className:"viewport-container debug-item-wrapper"});a.dom.appendContent(u,v),a.dom.appendContent(u,f),a.dom.appendContent(u,g),a.dom.appendContent(u,h),a.dom.appendContent(u,b),a.dom.appendContent(u,y),a.dom.appendContent(u,C),a.dom.appendContent(m,u),a.dom.appendContent(d,s),a.dom.appendContent(d,c),a.dom.appendContent(e,d),a.dom.appendContent(e,m),l(this.playerId).on("fullscreenchange",(function(){var t=window.getComputedStyle(document.getElementById(n.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(t,"px")}))}}]),u}();export{u as default};
|
package/esm/skin-4975c934.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,j as l,k as i,g as n,h as t,d as o,l as a,m as s,n as r,o as d,p as u}from"./features-bdc78af1.js";import{M as v,a as m,c,d as p}from"./icons-c18c70b7.js";import{G as g,g as f,H as h,v as b}from"./generic-bf7f24d7.js";import{c as y}from"./skin-665ec17e.js";import{g as j}from"./renditions-9fc9c91c.js";import C from"@babel/runtime/helpers/toConsumableArray";import{s as x}from"./autoNextVideo-df07871f.js";import{g as E,c as w,e as N,h as B,r as k}from"./index-037539e0.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"axios";import"js-cookie";import"ua-parser-js";import"./util-c77f4b50.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./resolution-227e3743.js";import"@babel/runtime/helpers/assertThisInitialized";var V=g(),T=[];null==V||V.map((function(e){return T.push.apply(T,C(e.episodes))}));var M=function(e,l){var i;null==l||null===(i=l.series)||void 0===i||i.cb;var n=f(e);n.on("timeupdate",(function(){var e,l=Math.floor(n.currentTime()),i=n.duration(),t=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];i-l<=10&&h()<=(null==T?void 0:T.length)-1?t&&(t.style.visibility="visible"):t&&(t.style.visibility="hidden")}));var t,o=T.filter((function(e,l){return l==h()}));if((null==o?void 0:o.length)>0)if(null!==(t=document.getElementsByClassName("next-ep-preview"))&&void 0!==t&&t[0]){var a,s,r,d,u,v,m,c,p,g,b;(null===(a=document.getElementsByClassName("next-ep-preview"))||void 0===a?void 0:a[0]).style.visibility="hidden";var y=null===(s=document.getElementsByClassName("next-ep-title"))||void 0===s?void 0:s[0],j=null===(r=document.getElementsByClassName("next-ep-img"))||void 0===r?void 0:r[0],C=null===(d=document.getElementsByClassName("next-ep-content"))||void 0===d?void 0:d[0],x=null===(u=o[0])||void 0===u?void 0:u.title;(null===(v=x)||void 0===v?void 0:v.length)>60&&(x=x.substr(0,60)+"..."),y.innerHTML="".concat(x),j.src=(null===(m=o[0])||void 0===m||null===(c=m.gist)||void 0===c||null===(p=c.imageGist)||void 0===p?void 0:p.r16x9)||(null===(g=window)||void 0===g||null===(b=g.customData)||void 0===b?void 0:b.fallbackImage),C.onclick=function(){return I(e)}}else{var E,w,N,B,k,V,M,L=document.createElement("div");L.className="next-ep-preview",L.style.visibility="hidden",document.getElementById(e).append(L);var P=document.createElement("div");P.className="next-ep-header",P.innerHTML="Next up";var D=null===(E=o[0])||void 0===E?void 0:E.title,F=document.createElement("img");F.className="next-ep-img",F.src=(null===(w=o[0])||void 0===w||null===(N=w.gist)||void 0===N||null===(B=N.imageGist)||void 0===B?void 0:B.r16x9)||(null===(k=window)||void 0===k||null===(V=k.customData)||void 0===V?void 0:V.fallbackImage);var G=document.createElement("div");G.className="next-ep-title",(null===(M=D)||void 0===M?void 0:M.length)>60&&(D=D.substr(0,60)+"..."),G.innerHTML="".concat(D);var H=document.createElement("div");H.className="next-ep-content",H.append(F),H.append(G),H.onclick=function(){return I(e)},L.append(P),L.append(H)}},I=function(e,l){var i=f(e),n=Math.floor(i.currentTime());if(Math.floor(i.duration())!=n){i.pause(e);var t=h();x(t,e,T,sessionStorage.getItem("token"))}};function L(n,t){var o=f(n);o.on("loadeddata",(function(){var i,a,s,r,d,u,v;(null===(i=j(n))||void 0===i?void 0:i.length)>0&&e(n,t),(null===(a=b(n))||void 0===a?void 0:a.length)>0&&l(n,t),null!=t&&null!==(s=t.series)&&void 0!==s&&s.enable&&M(n,t),r=o.duration(),u=Math.floor(r/60),(v=null===(d=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===d?void 0:d[0])&&(v.style.marginRight=u>60?"56px":"41px");var m=document.getElementsByClassName("vjs-live-control")[0],c=document.getElementsByClassName("vjs-time-control");null!=t&&t.liveVideo&&m.classList.value.includes("vjs-hidden")&&(c[0].style.display="block")})),o.one("play",(function(){var e,l,t,o;null!==(e=window)&&void 0!==e&&null!==(l=e.customData)&&void 0!==l&&l.iframeOverlayUrl&&i(n,null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.iframeOverlayUrl)})),o.on("loadeddata",(function(){E(n)})),o.on("timeupdate",(function(){w(n),N(n)})),o.on("waiting",(function(){return w(n)})),o.on("volumechange",(function(){var e=100*o.volume().toFixed(2);B(e)})),k(n)}function P(e,l){import("./skin-93e320fc.js").then((function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})),L(e,l),function(e,l){var i=f(e);i.controlBar.getChild("FullscreenToggle").el().appendChild(y(v(window.controlsColor))),i.controlBar.getChild("FullscreenToggle").el().appendChild(y(m(window.controlsColor)));var n=document.getElementsByClassName("vjs-time-control");l.liveVideo&&(n[0].style.display="none")}(e,l),function(e,l){var i,v,m,g,f,h;0==(null==l?void 0:l.liveVideo)&&0==(null==l?void 0:l.liveui)&&n(e,"defaultV2",c());(0==(null==l?void 0:l.liveVideo)&&0==(null==l?void 0:l.liveui)||1==(null==l?void 0:l.liveui))&&t(e,"defaultV2",p());l.liveVideo||o(e);(null==l||null===(i=l.relatedVideos)||void 0===i||null===(v=i.content)||void 0===v?void 0:v.length)>0&&a(e,null==l?void 0:l.relatedVideos);(null==l||null===(m=l.streams)||void 0===m?void 0:m.length)>1&&s(e,null==l?void 0:l.streams);(null==l||null===(g=l.playlist)||void 0===g||null===(f=g.content)||void 0===f?void 0:f.length)>0&&r(e,null==l?void 0:l.playlist);null!=l&&null!==(h=l.series)&&void 0!==h&&h.enable&&d(e,l);null!=l&&l.debugStats&&u(e,l)}(e,l),function(e,l){var i=f(e),n=null==l?void 0:l.tvProviderLogoUrl;if(!n)return;var t=document.createElement("div");t.className="tvProviderImage";var o=document.createElement("img");o.src="".concat(n),o.alt="Provider Image",t.append(o),i.el().appendChild(t),i.on("useractive",(function(){t.classList.remove("vjs-fade")})),i.on("userinactive",(function(){i.paused()||t.classList.add("vjs-fade")})),i.on("fullscreenchange",(function(){i.isFullscreen_?t.style.top="3.2rem":t.style.top="1rem"}))}(e,l)}export{P as initialiseSkin};
|
package/esm/skin-ed1b1e01.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,b as t,c as n,d as s}from"./features-bdc78af1.js";import{M as o,a as r,S as l,N as a}from"./icons-c18c70b7.js";import{g as i,d as c}from"./generic-bf7f24d7.js";import{c as u}from"./skin-665ec17e.js";import d from"@babel/runtime/helpers/defineProperty";import{i as m}from"./keyboardShortcuts-15db3108.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"./renditions-9fc9c91c.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";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(s,a){var m=i(s);m.one("play",(function(){null!=a&&a.streams&&e(s,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(o(window.controlsColor))),m.getChild("FullscreenToggle").el().appendChild(u(r(window.controlsColor))),b(s)})),m.on("loadedmetadata",(function(){"Safari"!==c()&&t(s,"live",l())})),m.one("loadedmetadata",(function(){var e;null!=a&&a.streams&&(null==a||null===(e=a.streams)||void 0===e?void 0:e.length)>=2&&n(s,a)}))}function f(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){s(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 b(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{b as hideControls,f as initialiseSkin};
|