@viewlift/player-backup 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/cjs/bundle.css +266 -299
  2. package/cjs/{dvr_skin-1a7384e5.js → dvr_skin-f7f770ae.js} +1 -1
  3. package/cjs/error-26d5a3c3.js +1 -0
  4. package/cjs/icons-d6df3c5b.js +1 -0
  5. package/cjs/index-72867b95.js +1 -0
  6. package/cjs/index.js +1 -1
  7. package/cjs/{keyboardShortcuts-3a237020.js → keyboardShortcuts-414ee823.js} +1 -1
  8. package/cjs/multicam-9b9e548b.js +1 -0
  9. package/cjs/multicamv2-6821b7ba.js +1 -0
  10. package/cjs/multicamv2-760e35ee.js +1 -0
  11. package/cjs/mwebPotraitTray-cf1d721b.js +1 -0
  12. package/cjs/nextEpisodeButton-4371b730.js +1 -0
  13. package/cjs/{nondvr_skin-d540232e.js → nondvr_skin-ef2cb3b2.js} +1 -1
  14. package/cjs/playlist-757c8b33.js +1 -0
  15. package/cjs/playlist-7f13a76f.js +1 -0
  16. package/cjs/resolution-ea9941fb.js +1 -0
  17. package/cjs/series-37b00582.js +1 -0
  18. package/cjs/skin-16ed5561.js +1 -0
  19. package/cjs/skin-1e5f8223.js +1 -0
  20. package/cjs/skin-96b17059.js +1 -0
  21. package/cjs/skin-c0815fac.js +1 -0
  22. package/cjs/skin-ee4432b3.js +1 -0
  23. package/cjs/videoSelector-127fb39e.js +1 -0
  24. package/cjs/videoSelector-192a53df.js +1 -0
  25. package/esm/bundle.css +266 -299
  26. package/esm/{dvr_skin-aa3423c5.js → dvr_skin-9cc1b144.js} +1 -1
  27. package/esm/error-2395864b.js +1 -0
  28. package/esm/icons-4414005a.js +1 -0
  29. package/esm/index-eedc656b.js +1 -0
  30. package/esm/index.js +1 -1
  31. package/esm/{keyboardShortcuts-fccb5c56.js → keyboardShortcuts-816e64fd.js} +1 -1
  32. package/esm/multicam-6cf1dfc2.js +1 -0
  33. package/esm/multicamv2-20aa5cd0.js +1 -0
  34. package/esm/multicamv2-bd40c17a.js +1 -0
  35. package/esm/mwebPotraitTray-15967d56.js +1 -0
  36. package/esm/nextEpisodeButton-0b26769a.js +1 -0
  37. package/esm/{nondvr_skin-d3e78be2.js → nondvr_skin-64be70e5.js} +1 -1
  38. package/esm/playlist-7bc75e87.js +1 -0
  39. package/esm/playlist-820be653.js +1 -0
  40. package/esm/resolution-837c8db9.js +1 -0
  41. package/esm/series-db328db8.js +1 -0
  42. package/esm/skin-14347b74.js +1 -0
  43. package/esm/skin-1d7966e9.js +1 -0
  44. package/esm/skin-78fe05c3.js +1 -0
  45. package/esm/skin-9fac79ee.js +1 -0
  46. package/esm/skin-caa09360.js +1 -0
  47. package/esm/videoSelector-555a66d2.js +1 -0
  48. package/esm/videoSelector-6cb68e90.js +1 -0
  49. package/package.json +1 -1
  50. package/cjs/error-b80bf0fd.js +0 -1
  51. package/cjs/icons-68e8d6c2.js +0 -1
  52. package/cjs/index-b2091fa6.js +0 -1
  53. package/cjs/library-1d9e03ba.js +0 -1
  54. package/cjs/multicam-e66c2fb8.js +0 -1
  55. package/cjs/mwebPotraitTray-582908cf.js +0 -1
  56. package/cjs/nextEpisodeButton-6749ae07.js +0 -1
  57. package/cjs/resolution-a45f97b7.js +0 -1
  58. package/cjs/series-38c27fe3.js +0 -1
  59. package/cjs/skin-18d9e0e7.js +0 -1
  60. package/cjs/skin-1ae06259.js +0 -1
  61. package/cjs/skin-1bc7db73.js +0 -1
  62. package/cjs/skin-1f2afc9f.js +0 -1
  63. package/cjs/skin-828c6698.js +0 -1
  64. package/cjs/videoSelector-d4201fdc.js +0 -1
  65. package/cjs/videoSelector-e45f2dca.js +0 -1
  66. package/esm/error-0dcf8172.js +0 -1
  67. package/esm/icons-69676ab0.js +0 -1
  68. package/esm/index-a47a7dcc.js +0 -1
  69. package/esm/library-ad46544b.js +0 -1
  70. package/esm/multicam-ceb734c4.js +0 -1
  71. package/esm/mwebPotraitTray-e834a676.js +0 -1
  72. package/esm/nextEpisodeButton-c13fef92.js +0 -1
  73. package/esm/resolution-768a5f47.js +0 -1
  74. package/esm/series-379793d6.js +0 -1
  75. package/esm/skin-1700a215.js +0 -1
  76. package/esm/skin-6a53f0dd.js +0 -1
  77. package/esm/skin-9a9d4bcb.js +0 -1
  78. package/esm/skin-eb4132aa.js +0 -1
  79. package/esm/skin-f8863b78.js +0 -1
  80. package/esm/videoSelector-34c524a1.js +0 -1
  81. package/esm/videoSelector-eb5d208d.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";require("video.js/dist/video-js.min.css");var e=require("@babel/runtime/helpers/defineProperty"),n=require("axios"),t=require("@babel/runtime/helpers/asyncToGenerator"),o=require("@babel/runtime/regenerator"),i=require("video.js"),r=require("./library-1d9e03ba.js"),l={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status","beacon-msn-dev":"https://analytics-api.develop.monumentalsportsnetwork.com/player-beacon","beacon-msn-qa":"https://analytics-api.qa.monumentalsportsnetwork.com/player-beacon","beacon-msn-uat":"https://analytics-api.uat.monumentalsportsnetwork.com/player-beacon","beacon-prod":"https://1a7ahu122g.execute-api.us-east-1.amazonaws.com/production_beacon/firehouse-proxy",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 a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function s(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var u=3e4;function d(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function c(e){return e?String(e):""}window.initialise=function(e){var n,t,o;window.sid=d();var i=function(e){switch(e){case"prod":default:return l["beacon-prod"];case"msndev":return l["beacon-msn-dev"];case"msnqa":return l["beacon-msn-qa"];case"msnuat":return l["beacon-msn-uat"]}}((null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.beacon)||void 0===o?void 0:o.url)||"prod");window.beaconUrl=i,window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var n=Math.floor(e.currentTime());e.on("error",(function(){var t=Math.floor(e.currentTime());fireEvent({eventName:n===t?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})}))},window.firstFrame=function(e){e.one("play",tryCatch((function(){window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval((function(){window.ttFirstFrame=window.handleBufferTimer(window.ttFirstFrame,e)}),u),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})))},window.buffering=function(e){e.on("waiting",tryCatch((function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval((function(){e.el_.className.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=handleBufferTimer(window.totalBufferTime,e):clearInterval(window.bufferingTimer)}),u))})))},window.handleBufferTimer=function(e,n){if(n.el_){var t=e+30;return Math.round(t,2)%5==0&&fireEvent({eventName:"BUFFERING",videoPosition:n.el_&&Math.floor(n.currentTime()),isAdEvent:!1}),t}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",(function(){clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})}))},window.ads=function(e){e.on("adsready",(function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,(function(){fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,adPosition:1}),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,adPosition:1})})),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,(function(){window.ttFirstFrame=0})),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,(function(){window.ttFirstFrame=0}))}))},window.ping=function(e){var n=[];e.on("timeupdate",(function(){var t=Math.floor(e.currentTime());t>=30&&t%30==0&&!n.includes(t)&&(n.push(t),fireEvent({eventName:"PING",videoPosition:t,isAdEvent:!1,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))}))},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch((function(){for(var n=e.currentTime(),t=e.duration(),o=e.buffered(),i=0;i<o.length;i++){var r=o.start(i),l=o.end(i);if(v(n,r,l)){var a=Math.round(t-l);if(isFinite(a))return a}}}))()};var v=function(e,n,t){return e>=n&&e<=t};function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function m(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}window.fireEvent=function(e){var t,o,i,r,l=[s(s({aid:window.siteName,cid:window.siteId,pfm:window.platform},null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(i=o.beacon)||void 0===i?void 0:i.params),{},{uid:(r=window.sessionStorage.getItem("uid"),r||(r=d(),window.sessionStorage.setItem("uid",r),r)),vid:window.videoId,url:e.url||document.location.href,ref:e.ref||document.referrer,pa:e.eventName,vpos:c(e.videoPosition),environment:window.environment,dp1:e.dp1||"",dp2:e.dp2||"",dp3:e.dp3||"",dp4:e.dp4||"",dp5:e.dp5||"",apos:!0===e.isAdEvent?c(e.videoPosition):"",apod:!0===e.isAdEvent?c(e.adPosition):"",profid:"",player:e.playerType||"native",media_type:e.mediaType||"VIDEO",stream_id:window.sid,embedurl:"",ttfirstframe:c(e.ttFirstFrame),bitrate:c(e.bitrate),connectionspeed:"",resolutionheight:c(e.resHeight),resolutionwidth:c(e.resWidth),bufferhealth:c(e.bufferHealth)})];n({url:window.beaconUrl,method:"post",contentType:"application/x-www-form-urlencoded",dataType:"text",data:l}).catch((function(e){console.error(e)}))},window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var p,w,h=function(e,t){var o,i;return n({url:k(),params:m({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})},y=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 l,a,s=JSON.parse(atob(t.split(".")[1])),u=(null==s?void 0:s.site)||null;return n({method:"GET",url:O(e),params:{site:u},headers:{Authorization:t,"x-api-key":null===(l=window)||void 0===l||null===(a=l.watchHistory)||void 0===a?void 0:a.xApiKey}})}if("v2"==r){var d,c;JSON.parse(atob(t.split(".")[1]));var v=window.contentType;return n({method:"GET",url:T(e,v),headers:{Authorization:t,"x-api-key":null===(d=window)||void 0===d||null===(c=d.watchHistory)||void 0===c?void 0:c.xApiKey}})}},g=function(e){return S()+"".concat(null==l?void 0:l.getSeriesWatchHistoryV2,"/").concat(e)},b=function(){return S()+"".concat(null==l?void 0:l.getSeriesWatchHistoryV1)},O=function(e){return S()+"".concat(null==l?void 0:l.getVideoInfoV1,"/").concat(e)},T=function(e,n){return S()+"".concat(null==l?void 0:l.getVideoInfoV2,"/").concat(n,"/").concat(e)},P=function(){return S()+"".concat(null==l?void 0:l.saveWatchHistoryV1)},E=function(){return S()+"".concat(null==l?void 0:l.saveWatchHistoryV2)},k=function(){return S()+"".concat(null==l?void 0:l.getVideoDetails)},I=function(e,n){return S()+"".concat(null==l?void 0:l.getSeriesDetails)},S=function(){var e;return(null===(e=window)||void 0===e?void 0:e.playerEntitlementUrl)||(null==l?void 0:l.apiBaseUrl)},j=function(e,n){if(Promise.resolve().then((function(){return require("./error-b80bf0fd.js")})).then((function(e){var n=document.createElement("style");n.id="errorblock",n.append("".concat(e.default)),document.head.appendChild(n)})),document.getElementsByClassName("error-container")[0]){var t=document.getElementsByClassName("error-message")[0];t&&(t.innerHTML="".concat(n))}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(n),i.appendChild(r),o.append(i)}},D=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var C=[],x=0;function A(e,t,o){var i;C=[],x=0,p=o;var r=(null==t||null===(i=t.watchHistory)||void 0===i?void 0:i.interval)||30,l=W(e);l&&l.on("timeupdate",(function(){var e=Math.floor(l.currentTime());C.includes(x)||(e==x?(C.push(e),function(e,t,o){var i,r,l;w=(null==t||null===(i=t.watchHistory)||void 0===i?void 0:i.apiVersion)||"v1";var a=null==t||null===(r=t.watchHistory)||void 0===r?void 0:r.profileId,s=Math.floor(e.currentTime()),u=Math.floor(e.duration()),d=null==t||null===(l=t.watchHistory)||void 0===l?void 0:l.xapiKey,c={};"v1"==w?c={videoId:p,watchedTime:Math.floor(e.currentTime()),watchedPercentage:Math.floor(s/u*100),siteOwner:t.siteOwner,userId:t.userId,xApiKey:d}:"v2"==w&&(c={videoId:p,watchedTime:Math.floor(e.currentTime()),watchedPercentage:Math.floor(s/u*100),doneWatching:s>=u-5,profileId:a});(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:P(),method:"POST",headers:{Authorization:t,"x-api-key":e.xApiKey},params:{version:"v2"},data:JSON.stringify(i),withCredentials:!0})}if("v2"==o){var r={doneWatching:!1,videoId:null==e?void 0:e.videoId,watchedPercentage:null==e?void 0:e.watchedPercentage,watchedTime:null==e?void 0:e.watchedTime,profileId:null==e?void 0:e.profileId};return n({url:E(),method:"POST",headers:{Authorization:t},data:r})}})(c,t.token,w).then((function(e){})).catch((function(e){})),x=s+o}(l,t,r)):e>x&&(x=e+r))}))}function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function H(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?R(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):R(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var B,F=function(e,n){var t,o,i,r,l,a,s,u,d=null==e||null===(t=e.video)||void 0===t?void 0:t.drmEnabled,c=null==e||null===(o=e.video)||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.videoAssets,v=(null==e||null===(r=e.video)||void 0===r||null===(l=r.streamingInfo)||void 0===l||null===(a=l.videoAssets)||void 0===a?void 0:a.hls)||!1,f=(null==e||null===(s=e.video)||void 0===s||null===(u=s.liveDetails)||void 0===u?void 0:u.isDvrEnabled)||!1;if(d){var m=N(c,n);return f&&(m=H(H({},m),{},{src:M(H(H({},e.video),{},{src:"".concat(m.src)}))})),m}if(v){var p=V(c);return f&&(p=H(H({},p),{},{src:M(H(H({},e.video),{},{src:"".concat(p.src)}))})),p}if(null!=c&&c.mpeg){var w=function(e){var n=null==e?void 0:e.mpeg;return{src:n[n.length-1].url,type:"video/mp4"}}(c);return w}return null},M=function(e){var n=e.src;if(e.liveDetails.startOverTime){var t=e.liveDetails.startOverTime,o=e.gist.scheduleStartDate,i=e.gist.scheduleEndDate,r=new Date,l=0,a=r.getTime();l=a-o<1e3*t?a-o:1e3*t;var s=null;i<=a&&null!=i&&(s=new Date(i)),r.setMilliseconds(r.getMilliseconds()-l),n=n.includes("?")?i?"".concat(e.src,"&start=").concat(r.toISOString(),"&end=").concat(s.toISOString()):"".concat(e.src,"&start=").concat(r.toISOString()):i?"".concat(e.src,"?start=").concat(r.toISOString(),"&end=").concat(s.toISOString()):"".concat(e.src,"?start=").concat(r.toISOString())}return n},V=function(e){var n=null==e?void 0:e.hls;return n?{src:n,type:"application/x-mpegURL"}:null},N=function(e,n){var t=e.fairPlay,o=e.widevine,r=e.playReady,l=ue().detectBrowser(),a=ue().getPlayer(n);if("Safari"===l){var s=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,t){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};i.xhr(o,(function(e,n,o){console.log(e),e&&t(e),t(null,new Uint8Array(o))}))},getContentId:function(e,n){if(n)return new TextDecoder("utf-16").decode(n.slice(16))},getLicense:function(n,t,o,r){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};i.xhr(l,(function(e,n,t){console.log(e),e&&r(e),r(null,t)}))}}}}}(t);try{a.eme()}catch(e){}return s}if("Chrome"===l||"Firefox"===l){var u={src:o.url,type:"application/dash+xml",keySystemOptions:[]};return u.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:o.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":o.licenseToken}}}),u}if("IE"===l){var d={src:r.url,type:"application/dash+xml",keySystemOptions:[]};return d.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:r.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":r.licenseToken}}}),d}};var _=function(e){B=e},q=function(){return B},L=function(e){return!!i.getPlayer("".concat(e))},U=function(e,n){var t=W(e);t.remoteTextTracks().tracks_.map((function(e){t.removeRemoteTextTrack(e)})),n.map((function(e){t.addRemoteTextTrack({src:e.url,srcLang:e.language,label:e.language})}))},W=function(e){return!!i.getPlayer("".concat(e))&&i.getPlayer("".concat(e))},G=function(e,n,t){var o,i,r,l=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&&y(n,t).then((function(e){var n,t,o,i,r;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),l=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null})).catch((function(e){var n,t,o,i;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))})),new Promise((function(o,i){h(n,t).then((function(n){var t=null==n?void 0:n.data;_(n.data);var r=F(t,e);if(r){var a,s,u,d,c,v,f,m,p,w,h,y=null==t||null===(a=t.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.videoImageUrl,g=W(e);if(g.pause(e),g.poster(y),z(e,r),g.on("loadeddata",(function(){D(),o({status:!0,msg:"Video Loaded",response:t})})),g.one("play",(function(){l&&g.currentTime(l)})),g.one("error",(function(){var e;i({status:!1,msg:(null==g||null===(e=g.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==t||null===(u=t.video)||void 0===u||null===(d=u.contentDetails)||void 0===d||null===(c=d.closedCaptions)||void 0===c?void 0:c.length)>0||(null==t||null===(v=t.video)||void 0===v||null===(f=v.closedCaptions)||void 0===f?void 0:f.length)>0)m=((null==t||null===(p=t.video)||void 0===p||null===(w=p.contentDetails)||void 0===w?void 0:w.closedCaptions)||(null==t||null===(h=t.video)||void 0===h?void 0:h.closedCaptions)).filter((function(e){return"VTT"===e.format})),U(e,m);else!function(e){var n=W(e);n.remoteTextTracks().tracks_.map((function(e){null==e||e.kind,n.removeRemoteTextTrack(e)}))}(e)}else j(e,"Incompatible Source, only hls,mp4,drm content is allowed"),i("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(n){J(n,e,i)}))}))},z=function(e,n){W(e).src(n)},J=function(e,n,t){var o,r,l,a,s,u,d,c=null==e||null===(o=e.response)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.errorCode,v=(null==e||null===(l=e.response)||void 0===l||null===(a=l.data)||void 0===a?void 0:a.errorMessage)||(null==e?void 0:e.message);L(n)||i(n,{fluid:!0}),j(n,(null===(s=window)||void 0===s?void 0:s.customErrors)&&(null===(u=window)||void 0===u?void 0:u.customErrors[c])||"".concat(v)),t&&t({response:null==e||null===(d=e.response)||void 0===d?void 0:d.data,messsage:"".concat(v)})};function K(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function X(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?K(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):K(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var Q=function(e,n){n.controlBar.el_.style.color=e,n.controlBar.el_.querySelector(".vjs-play-progress")&&(n.controlBar.el_.querySelector(".vjs-play-progress").style.backgroundColor=e),n.controlBar.el_.querySelector(".vjs-volume-level")&&(n.controlBar.el_.querySelector(".vjs-volume-level").style.backgroundColor=e)},Y=function(e,n){var t=W(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",(function(n){var t,o,i,r,l,a=this.el(),s=videojs.dom.getPointerPosition(a,n).x;videojs.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var u=window.cast&&window.cast.framework&&window.cast.framework.CastSession,d=null===(t=window)||void 0===t||null===(o=t.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;if(console.log(u),u&&"CONNECTED"===d){window.cast.framework.RemotePlayer.canSeek=!0;var c=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),v=c.b.media[0].liveSeekableRange.end;c.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=v*s,c.seek()}}))},Z=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden");var n=document.getElementsByClassName("vjs-big-play-button")[0];n&&(n.style.display="none");var t=document.getElementsByClassName("vjs-fullscreen-control")[0];t&&(t.style.display="none")},$=0,ee=-1,ne=function(e){var n,t;console.log(e,"HERRE"),ee++,clearTimeout($);var o=null==e||null===(n=e.nextVideos)||void 0===n?void 0:n.content,i=null==e||null===(t=e.nextVideos)||void 0===t?void 0:t.cb,r=e.playerId,l=e.token;ee>o.length-1||function(e,n){var t=W(e);t?t.one("ended",(function(){return n(!0)})):n("Cannot find player with id: '".concat(e,"'"))}(r,(function(){G(r,o[ee].id,l).then((function(e){_(e.response),i&&i(e)})).catch((function(e){ee++,$=setTimeout((function(){te(ee,r,o,l,i)}),3e3)}))}))},te=function e(n,t,o,i,r){n>o.length-1||G(t,o[n].id,i).then((function(e){r&&r(e)})).catch((function(n){setTimeout((function(){ee++,e(ee,t,o,i,r)}),3e3)}))};function oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}var ie,re=function(n,t,o,i){var r=i.res,l=i.sres,a=W(n);_(r),a.on("loadeddata",(function(){var i,a,s,u=q();(D(),o.resolve(function(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):oe(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}({status:!0,msg:"Player Initialised"},l?{seriesResponse:l,response:r}:{response:r})),null!=t&&t.watchHistory&&null!=t&&null!==(i=t.watchHistory)&&void 0!==i&&i.enable&&!t.isAnonymousUser)&&A(n,t,null==u||null===(a=u.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.id);null!=t&&t.nextVideos&&ne(t)})),a.textTracks().on("change",(function(e){var n=this.tracks_.filter((function(e){if("subtitles"===e.kind&&"showing"===e.mode)return!0}))[0];a.trigger("subtitlechanged",n)})),a.on("subtitlechanged",(function(e,n){var t,o,i,r,l,a,s,u,d,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,f=null===(t=window)||void 0===t||null===(o=t.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,m=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"===f){var p,w=m.getMediaSession(),h=w.media.tracks.filter((function(e){return"TEXT"==e.type}));p=n?new chrome.cast.media.EditTracksInfoRequest([h[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),w.editTracksInfo(p)}})),a.on("loadedmetadata",(function(){window.endFirstFrame(a)})),a.one("error",(function(){var e,t;j(n,(null==a||null===(e=a.error())||void 0===e?void 0:e.message)||"Some error occured"),o.reject({status:!1,msg:(null==a||null===(t=a.error())||void 0===t?void 0:t.message)||"Some error occured"})})),a.one("play",(function(){null!=t&&t.watchHistoryResumeTime&&a.currentTime(null==t?void 0:t.watchHistoryResumeTime)}))},le=function(e,n){var t=null==n?void 0:n.skin;"live"==t?Promise.resolve().then((function(){return require("./skin-1bc7db73.js")})).then((function(t){t.initialiseSkin(e,n)})):"default"==t?Promise.resolve().then((function(){return require("./skin-828c6698.js")})).then((function(t){t.initialiseSkin(e,n)})):"carousel"==t?Promise.resolve().then((function(){return require("./skin-18d9e0e7.js")})).then((function(n){n.initaliseSkin(e)})):"defaultV2"==t&&Promise.resolve().then((function(){return require("./skin-1f2afc9f.js")})).then((function(n){n.initialiseSkin(e)}))};function ae(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function se(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ae(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function ue(){var l=function(n,l,a,s){var u,d,c,v,f,m,p,w,h,y,g,b,O=l.res,T=void 0===O?null:O,P=l.sres,E=void 0===P?null:P,k=(null===(u=window)||void 0===u||null===(d=u.cast)||void 0===d||null===(c=d.framework)||void 0===c||null===(v=c.CastContext)||void 0===v||null===(f=v.getInstance())||void 0===f?void 0:f.S)||void 0,I=null!=a&&a.chromecastReceiverId?"NO_DEVICES_AVAILABLE"!==k&&"NOT_CONNECTED"!==k?["html5","chromecast"]:["chromecast","html5"]:["html5"],S=null==T||null===(m=T.video)||void 0===m||null===(p=m.gist)||void 0===p?void 0:p.videoImageUrl,D=(null==T||null===(w=T.video)||void 0===w||null===(h=w.liveDetails)||void 0===h?void 0:h.isDvrEnabled)||!1,C=function(e){var n={};return null!=e&&e.series||null!=e&&e.chromecastReceiverId&&(n={chromecast:{receiverAppID:null==e?void 0:e.chromecastReceiverId,addButtonToControlBar:"default"==e.skin,buttonPositionIndex:-6,addCastLabelToButton:!0}}),null!=e&&e.airplay&&(n=X(X({},n),{},{airPlay:{addButtonToControlBar:"default"==e.skin,buttonPositionIndex:-1}})),n}(a),x=(null==T||null===(y=T.video)||void 0===y||null===(g=y.streamingInfo)||void 0===g?void 0:g.isLiveStream)||!1,A=(b={controls:!0,playsinline:!0,fluid:!0,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,pictureInPictureToggle:(a.skin,!1)},liveui:D},e(b,"autoplay",null==a?void 0:a.autoplay),e(b,"html5",{vhs:{limitRenditionByPlayerDimensions:!1},nativeTextTracks:!1}),e(b,"poster",S),e(b,"techOrder",I),e(b,"chromecast",{requestCustomDataFn:function(e){var t=W(n);console.log(t.textTracksJson_);var o=t.textTracksJson_.filter((function(e){return"subtitles"==e.kind}));return function(e,n,t){var o,i,r,l,a,s,u,d,c,v,f={};if(e&&e.video&&e.video.drmEnabled){f.isDrmEnabled=!0;var m=n.keySystemOptions&&n.keySystemOptions[0]&&n.keySystemOptions[0].options&&n.keySystemOptions[0].options.serverURL;f.licenseUrl=m;var p=n.keySystemOptions&&n.keySystemOptions[0]&&n.keySystemOptions[0].options&&n.keySystemOptions[0].options.httpRequestHeaders["X-AxDRM-Message"];f.licenseToken=p}var w=(null==e||null===(o=e.video)||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";f.contentType=w;var h=null==e||null===(r=e.video)||void 0===r||null===(l=r.gist)||void 0===l?void 0:l.runtime;f.duration=h;var y=null==e||null===(a=e.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;f.mediaTitle=y;var g=null==e||null===(u=e.video)||void 0===u||null===(d=u.gist)||void 0===d?void 0:d.videoImageUrl;return f.mediaImage=g,f.subTitles=t,f.DVR=(null==e||null===(c=e.video)||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(f),f}(T,e,o)}}),e(b,"plugins",C),b),R=i(n,A,function(){var e=t(o.mark((function e(){var t,l,u,d,c,v,f,m,p,w,h,y,g,b,O,P,k,I,S,C,H,B,M,V,N;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.initialise(R),window.firstFrame(R),"white"!==window.controlsColor&&Q(window.controlsColor,R),/Android|iPhone/i.test(navigator.userAgent)&&(i.options.hls.overrideNative=!0),k=null==T||null===(t=T.video)||void 0===t?void 0:t.drmEnabled,I=(null==T||null===(l=T.ads)||void 0===l||null===(u=l.preRoll)||void 0===u||null===(d=u.adTags)||void 0===d||null===(c=d.web)||void 0===c?void 0:c.active)&&(null==T||null===(v=T.ads)||void 0===v||null===(f=v.preRoll)||void 0===f||null===(m=f.adTags)||void 0===m||null===(p=m.web)||void 0===p?void 0:p.url),S=null==T||null===(w=T.video)||void 0===w||null===(h=w.liveDetails)||void 0===h?void 0:h.startOverTime,!k){e.next=13;break}if("Safari"!==detectBrowser()){e.next=11;break}return e.next=11,r.loadEMELibrary();case 11:return e.next=13,r.loadDashLibrary();case 13:D&&Y(n,S),I&&initialiseAdvertisement(n,I),(C=F(T,n))?z(n,C):(s.reject({status:!1,msg:"Incompatible Source, only hls,mp4,drm content is allowed",response:T}),j(n,"Incompatible Source, only hls,mp4,drm content is allowed")),((null==T||null===(y=T.video)||void 0===y||null===(g=y.contentDetails)||void 0===g||null===(b=g.closedCaptions)||void 0===b?void 0:b.length)>0||(null==T||null===(O=T.video)||void 0===O||null===(P=O.closedCaptions)||void 0===P?void 0:P.length)>0)&&(N=(null==T||null===(B=T.video)||void 0===B||null===(M=B.contentDetails)||void 0===M?void 0:M.closedCaptions)||(null==T||null===(V=T.video)||void 0===V?void 0:V.closedCaptions),H=N.filter((function(e){return"VTT"===e.format})),U(n,H)),null!=a&&a.disableControls?Z():le(n,se(se(se({},a),A),{},{liveVideo:x,isDvrEnabled:D,res:T,sres:E})),re(n,se(se(se({},a),A),{},{liveVideo:x}),s,{res:T,sres:E});case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}())};return{init:function(e){return new Promise((function(t,o){var i,r,a,s;if(!L(null==e?void 0:e.playerId)){var u=null==e?void 0:e.videoId,d=(null==e?void 0:e.series)||!1;window.videoId=u;var c=null==e?void 0:e.token;ie=JSON.parse(atob(c.split(".")[1])),e.isAnonymousUser=!(null===(i=ie)||void 0===i||!i.anonymousId),e.siteOwner=(null===(r=ie)||void 0===r?void 0:r.site)||null,e.userId=(null===(a=ie)||void 0===a?void 0:a.userId)||null,window.sessionStorage.setItem("uid",null===(s=ie)||void 0===s?void 0:s.userId),window.watchHistory=e.watchHistory||null,sessionStorage.setItem("token",c);var v,f=null==e?void 0:e.playerId,p=e.chromecastReceiverId=null!=e&&e.series?null:null==e?void 0:e.chromecastReceiverId,w=null==e?void 0:e.airplay,g=null==e?void 0:e.apiBaseUrl,b=null==e?void 0:e.errors;b&&(window.customErrors=b),window.customData=null==e?void 0:e.customData,g&&(window.playerEntitlementUrl=g),window.controlsColor=(null==e?void 0:e.controlsColor)||"white",null!=e&&e.skin&&("live"===(v=e.skin)||"carousel"===v||"V2"===v||"defaultV2"===v)||(e.skin="default"),null!=e&&e.enableAdvertisements&&Promise.resolve().then((function(){return require("./library-1d9e03ba.js")})).then((function(e){e.importIMA()})),!p||null!=e&&e.series||Promise.resolve().then((function(){return require("./library-1d9e03ba.js")})).then((function(e){e.importChromecast()})),w&&Promise.resolve().then((function(){return require("./library-1d9e03ba.js")})).then((function(e){e.importAirplay()})),d?function(e,t){var o,i,r=JSON.parse(atob(t.split(".")[1])),l=r&&r.countryCode;return n({url:I(),params:m({id:e,deviceType:"web_browser",contentConsumption:"web",countryCode:l,episodeData:!0},null===(o=window)||void 0===o||null===(i=o.customData)||void 0===i?void 0:i.entitlement),method:"GET",headers:{Authorization:t},withCredentials:!0})}(u,c).then((function(n){var i=n.data.series,r=n.data.series.seasons[0].episodes[0].id;h(r,c).then((function(n){var r,a,s;window.contentType=null==n||null===(r=n.data)||void 0===r||null===(a=r.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.contentType,_(n.data),l(f,{res:null==n?void 0:n.data,sres:i},e,{resolve:t,reject:o})})).catch((function(e){J(e,f,o)}))})).catch((function(e){J(e,f,o)})):h(u,c).then((function(n){var i,r,a,s;window.contentType=null==n||null===(i=n.data)||void 0===i||null===(r=i.video)||void 0===r||null===(a=r.gist)||void 0===a?void 0:a.contentType,_(null==n?void 0:n.data);var d=null==n?void 0:n.data;null!=e&&e.watchHistory&&null!=e&&null!==(s=e.watchHistory)&&void 0!==s&&s.enable?y(u,c).then((function(n){var i,r,a,s,u;null!==(i=window)&&void 0!==i&&null!==(r=i.watchHistory)&&void 0!==r&&r.cb&&(null===(a=window)||void 0===a||null===(s=a.watchHistory)||void 0===s||s.cb(null==n?void 0:n.data)),e.watchHistoryResumeTime=(null==n||null===(u=n.data)||void 0===u?void 0:u.watchedTime)||null,l(f,{res:d},e,{resolve:t,reject:o})})).catch((function(n){var i,r,a,s;null!==(i=window)&&void 0!==i&&null!==(r=i.watchHistory)&&void 0!==r&&r.cb&&(null===(a=window)||void 0===a||null===(s=a.watchHistory)||void 0===s||s.cb(n)),l(f,{res:d},e,{resolve:t,reject:o})})):l(f,{res:d},e,{resolve:t,reject:o})})).catch((function(e){J(e,f,o)}))}}))},isPlayerInitialised:L}}exports.VLPlayerCore=ue,exports.createIconMarkup=function(e){var n=document.createElement("div");return n.innerHTML=e,n.children[0]},exports.detectBrowser=function(){return navigator.userAgent.indexOf("Edg")>-1?"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"},exports.getCurrentVideo=q,exports.getPlayer=W,exports.getRenditions=function(e){var n,t=W(e),o=[];if((null==t||null===(n=t.tech_)||void 0===n?void 0:n.vhs)||!1){var i,r,l=null==t||null===(i=t.tech_)||void 0===i||null===(r=i.vhs)||void 0===r?void 0:r.representations();(null==l?void 0:l.length)>0&&(o=null==l?void 0:l.sort((function(e,n){return n.height-e.height})))}else{var a,s,u=null==t||null===(a=t.dash)||void 0===a||null===(s=a.mediaPlayer)||void 0===s?void 0:s.getBitrateInfoListFor("video");(null==u?void 0:u.length)>0&&(o=null==u?void 0:u.sort((function(e,n){return n.height-e.height})))}return o},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:b(),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:g(i),headers:{Authorization:e.token}})},exports.load=G,exports.pause=function(e){i(e).pause()},exports.play=function(e){i(e).play()},exports.rewind=function(e,n){var t=i(e),o=t.currentTime(),r=o<=n?0:o-n;t.currentTime(r)},exports.setCurrentVideo=_,exports.showLoader=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")},exports.skip=function(e,n){var t=i(e),o=t.currentTime()+n;t.currentTime(o)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/regenerator"),t=require("video.js"),n=function(e){return new Promise((function(r,t){if(i(e))t("Alread initialised");else{var n=document.createElement("script");n.async=!1,n.src=e,document.head.appendChild(n),r()}}))},i=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0};var o=function(){var t=e(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-dash");case 2:case"end":return e.stop()}}),e)})));return function(){return t.apply(this,arguments)}}(),s=function(){var t=e(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-eme");case 2:case"end":return e.stop()}}),e)})));return function(){return t.apply(this,arguments)}}();exports.importAirplay=function(){import("@silvermine/videojs-airplay").then((function(e){e.default(t)}))},exports.importChromecast=function(){n("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),import("@silvermine/videojs-chromecast").then((function(e){e.default(t)}))},exports.importIMA=function(){import("videojs-contrib-ads"),import("videojs-ima"),n("https://imasdk.googleapis.com/js/sdkloader/ima3.js")},exports.loadDashLibrary=o,exports.loadEMELibrary=s;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/assertThisInitialized"),l=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),s=require("video.js"),u=require("./index-b2091fa6.js");function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,l=r(e);if(t){var o=r(this).constructor;i=Reflect.construct(l,arguments,o)}else i=l.apply(this,arguments);return n(this,i)}}require("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./library-1d9e03ba.js");var c=s.getComponent("Component"),d=function(n){l(d,c);var r=a(d);function d(t){var l,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),l=r.call(this,t,n),o(i(l),"multicamCssPositioning",(function(e,t){var n,r,o,s,u,a,c,d,v=window.getComputedStyle(document.getElementById(t),null),m=v.getPropertyValue("height"),f=v.getPropertyValue("width"),h=m.slice(0,-2);f.slice(0,-2)-135<=135?(e.style.bottom="290px",e.style.height="352px"):"live"==l.config.skin&&(null===(n=i(l))||void 0===n||null===(r=n.config)||void 0===r||!r.liveui)&&(null===(o=i(l))||void 0===o||null===(s=o.config)||void 0===s||!s.liveVideo)||null!==(u=i(l))&&void 0!==u&&null!==(a=u.config)&&void 0!==a&&a.liveui&&null!==(c=i(l))&&void 0!==c&&null!==(d=c.config)&&void 0!==d&&d.liveVideo?(e.style.bottom="".concat(h-135,"px"),e.style.height="".concat(h-85,"px")):(e.style.bottom="3rem",e.style.height="".concat(h-105,"px"))})),l.playerId=n.playerId,l.streams=null==n?void 0:n.streams,l.config=null==n?void 0:n.config,l.createUI(null==n?void 0:n.streams),l}return t(d,[{key:"createEl",value:function(){return s.dom.createEl("div",{className:"multicamera-parent"})}},{key:"createUI",value:function(e){var t,i,l,n,r,o,s=this,u=this.el();null!=this&&null!==(t=this.config)&&void 0!==t&&t.liveui&&null!=this&&null!==(i=this.config)&&void 0!==i&&i.liveVideo||0==(null==this||null===(l=this.config)||void 0===l?void 0:l.liveui)&&0==(null==this||null===(n=this.config)||void 0===n?void 0:n.liveVideo)?null==u||null===(r=u.classList)||void 0===r||r.add("".concat(this.config.skin)):null==u||null===(o=u.classList)||void 0===o||o.add("default"),this.loadCSS();for(var a=0;a<e.length;a++)this.createTile(e[a],a);this.multicamCssPositioning(u,this.playerId),window.onresize=function(){s.multicamCssPositioning(u,s.playerId)}}},{key:"getOffset",value:function(e){var t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}},{key:"createTile",value:function(e,t){var i=this,l=this.el(),n=s.dom.createEl("div",{className:"tile ".concat(t)});0==t&&(n.style.border="2px solid red"),n.style.backgroundImage="url(".concat(e.img,")"),s.dom.appendContent(l,n);var r=sessionStorage.getItem("token");return n.addEventListener("click",(function(t){u.showLoader(i.playerId),i.removeSelectedTile();var l=document.getElementsByClassName("".concat(t.srcElement.className))[0];l&&(l.style.border="2px solid red"),u.VLPlayerCore().load(i.playerId,e.id,r).then((function(e){u.VLPlayerCore().play(i.playerId)}))})),l}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicam-a41fe4a6.js")})).then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}}]),d}();exports.default=d;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),l=require("@babel/runtime/helpers/possibleConstructorReturn"),n=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./index-b2091fa6.js");function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=n(e);if(t){var s=n(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return l(this,r)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./library-1d9e03ba.js");var a=o.getComponent("Component"),c=function(l){r(c,a);var n=i(c);function c(t){var r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,c),(r=n.call(this,t,l)).playerId=l.playerId,r.config=l.config,r.createUI(null==l?void 0:l.config.streams),r}return t(c,[{key:"createEl",value:function(){return o.dom.createEl("div",{className:"mweb-potrait-parent"})}},{key:"createUI",value:function(e){var t,r,l,n,s,i,a,c,d=this.el(),u=1==(null==this||null===(t=this.config)||void 0===t?void 0:t.liveui)&&1==(null==this||null===(r=this.config)||void 0===r?void 0:r.liveVideo)||!(null!=this&&null!==(l=this.config)&&void 0!==l&&l.liveui)&&!(null!=this&&null!==(n=this.config)&&void 0!==n&&n.liveVideo)||!1;u?null==d||null===(s=d.classList)||void 0===s||s.add("dvr"):null==d||null===(i=d.classList)||void 0===i||i.add("nondvr");var v=o.dom.createEl("div",{className:"broadcast"});v.innerHTML="Broadcasts";var m=o.dom.createEl("div",{className:"potraittray hideMWebTray"});u?null==m||null===(a=m.classList)||void 0===a||a.add("dvr"):null==m||null===(c=m.classList)||void 0===c||c.add("nondvr"),m.style.width="".concat(window.innerWidth-50,"px");var h=o.dom.createEl("div",{className:"tilecontainer-potrait"});o.dom.appendContent(d,v),o.dom.appendContent(d,m),o.dom.appendContent(m,h),v.addEventListener("click",(function(){null!=m&&m.classList.contains("hideMWebTray")?(m.classList.remove("hideMWebTray"),d.style.background="darkgray"):(null==m||m.classList.add("hideMWebTray"),d.style.background="gray")})),this.loadCSS();for(var p=0;p<e.length;p++)this.createTile(e[p],p)}},{key:"createTile",value:function(e,t){var r=this,l=this.el(),n=o.dom.createEl("div",{className:"tile-potrait-mweb ".concat(t)});0==t&&(n.style.border="2px solid red"),n.style.backgroundImage="url(".concat(e.img,")");var i=o.dom.$(".tilecontainer-potrait",this.contentEl());o.dom.appendContent(i,n);var a=sessionStorage.getItem("token");return n.addEventListener("click",(function(t){s.showLoader(r.playerId),r.removeSelectedTile();var l=document.getElementsByClassName("".concat(t.srcElement.className))[0];l&&(l.style.border="2px solid red"),s.VLPlayerCore().load(r.playerId,e.id,a).then((function(e){s.VLPlayerCore().play(r.playerId)}))})),l}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile-potrait-mweb"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./mwebPotrait-3c11d7cf.js")})).then((function(e){var t=document.createElement("style");t.className="mweb",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleProgressControls",value:function(e){var t=document.querySelector(".vjs-progress-control.vjs-control"),r=document.querySelector(".vjs-play-control.vjs-control.vjs-button"),l=document.querySelector(".vjs-remaining-time.vjs-time-control.vjs-control"),n=document.querySelector(".vjs-seek-to-live-control.vjs-control");e?(null==t||t.classList.add("hide-controls"),null==r||r.classList.add("hide-controls"),null==l||l.classList.add("hide-controls"),null==n||n.classList.add("hide-controls")):(null!=t&&t.classList.contains("hide-controls")&&(null==t||t.classList.remove("hide-controls")),null!=r&&r.classList.contains("hide-controls")&&(null==r||r.classList.remove("hide-controls")),null!=l&&l.classList.contains("hide-controls")&&(null==l||l.classList.remove("hide-controls")),null!=n&&n.classList.contains("hide-controls")&&(null==n||n.classList.remove("hide-controls")))}}]),c}();exports.default=c;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./icons-68e8d6c2.js");require("video.js/dist/video-js.min.css");var a=require("./index-b2091fa6.js");function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=i(e);if(t){var s=i(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return r(this,n)}}require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/regenerator"),require("axios"),require("./library-1d9e03ba.js");var d=o.getComponent("Component"),u=function(r){n(a,d);var i=l(a);function a(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,a),(n=i.call(this,t,r)).playerId=r.playerId,n.seriesData=r.sres,n.currentVideoData=r.res,n.initialiseStructure(),n.loadCSS(),n}return t(a,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"play-next"}),t=o.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(s.PlayNextEpisodeSvg(window.controlsColor?window.controlsColor:"white"))});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./nextEpisodeButton-b6e6586f.js")})).then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=o.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=o.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),r=o.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=o.dom.createEl("div",{className:"next-eps-image"}),s=o.dom.createEl("div",{className:"next-eps-description"});o.dom.appendContent(r,i),o.dom.appendContent(r,s),o.dom.appendContent(t,n),o.dom.appendContent(t,r),this.toggleContentOnHover(e,t),o.dom.appendContent(e,t)}},{key:"toggleContentOnHover",value:function(e,t){e.addEventListener("mouseover",(function(){o.dom.removeClass(t,"nextepisode-hidden")})),t.addEventListener("mouseover",(function(){o.dom.removeClass(t,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){o.dom.addClass(t,"nextepisode-hidden")})),t.addEventListener("mouseout",(function(){o.dom.addClass(t,"nextepisode-hidden")}))}}]),a}(),c=function(e,t){for(var n=-1,r=0;r<e.length;r++)for(var i=0;i<e[r].episodes.length;i++)if(e[r].episodes[i].id===t){n=r;break}return n},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;if(!(e&&t>=0))return{prevEp:null,nextEp:null};var n=e.episodes.length,r=t-1>=0?t-1:n-1,i=(t+1)%n,o=n>1?e.episodes[r]:null,s=n>1?e.episodes[i]:null;return r===i&&(0===r?s=null:o=null),{prevEp:o,nextEp:s,prevEpIdx:r,nextEpIdx:i}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=null;return e?(e.episodes.forEach((function(e,r){e.gist.id===t&&(n=r)})),n):null},v=function(e){o.dom.$(".next-eps"),o.dom.$(".play-next").onclick=function(){var t=sessionStorage.getItem("token");a.load("my-player",e.gist.id,t).then((function(e){a.setCurrentVideo(e.response)}))},o.dom.$(".next-eps-image").innerHTML="<img src=".concat(e.gist.videoImageUrl,"/>"),o.dom.$(".next-eps-description").innerHTML="<div class='next-eps-title'>".concat(e.title,"</div>\n <div class='next-eps-description-details'>").concat(e.gist.description,"</div>")};exports.default=u,exports.initaliseFunctionality=function(e,t){var n=c(e,t.video.gist.id),r=m(e[n],t.video.gist.id),i=p(e[n],r);v(i.nextEp)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/assertThisInitialized"),a=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),d=require("@babel/runtime/helpers/getPrototypeOf"),r=require("@babel/runtime/helpers/defineProperty"),l=require("video.js"),s=require("./index-b2091fa6.js");function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var a=d(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}require("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./library-1d9e03ba.js");var u=l.getComponent("Component"),h=function(o){a(h,u);var d=c(h);function h(n){var a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,h),a=d.call(this,n,o),r(i(a),"masterRenditions",[]),r(i(a),"addCustomFont",(function(e){var t=l.dom.createEl("div",{className:"font hideCustomFonts"}),n=l.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});l.dom.appendContent(t,n);var i=l.dom.createEl("div",{className:"font-options"});i.style.fontSize="12px",a.fontSizeOptions.map((function(e,t){var n=l.dom.createEl("div",{className:"options",innerHTML:'<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=').concat(e,' name="item" />\n <label class="radio-btn-lable" for=').concat(e,">").concat(e,"pt</label>\n </div>")});n.addEventListener("click",(function(e){var t=e.target.id;a.changeFontSize(t)})),l.dom.appendContent(i,n)})),l.dom.appendContent(t,i),l.dom.appendContent(e,t)})),r(i(a),"resetRenditions",(function(){e(document.getElementsByClassName("rendition")).map((function(e){l.dom.removeClass(e,"selected")}))})),a.playerId=null==o?void 0:o.playerId,a.skin=null==o?void 0:o.skin,a.icon=null==o?void 0:o.icon,a.masterRenditions=[],a.fontSizeOptions=[10,12,14],a.createRenditions(o.renditions),window.height=null,a}return n(h,[{key:"toggleContentOnHover",value:function(e,t){var n=l.dom.$(".setting-icon",e);n.addEventListener("mouseover",(function(){l.dom.removeClass(t,"hidden")})),t.addEventListener("mouseover",(function(){l.dom.removeClass(t,"hidden")})),n.addEventListener("mouseout",(function(){l.dom.addClass(t,"hidden")})),t.addEventListener("mouseout",(function(){l.dom.addClass(t,"hidden")}))}},{key:"changeFontSize",value:function(e){var t=l.dom.$(".renditions",this.contentEl()),n=l.dom.$(".font-options",this.contentEl());t.style.fontSize="".concat(e,"px"),n.style.fontSize="".concat(e,"px")}},{key:"createRenditions",value:function(e){var t=this,n=this.el();l.dom.$(".setting-icon",this.el()).innerHTML="".concat(this.icon," ").concat("live"===this.skin?"&nbsp Settings":""," ");var i=l.dom.createEl("div",{className:"content hidden"}),a=l.dom.createEl("div",{innerHTML:"Quality",className:"title"}),o=l.dom.createEl("div",{className:"resolution"});l.dom.appendContent(o,a),this.toggleContentOnHover(n,i);var d=l.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(e.map((function(e,n){var i,a=l.dom.createEl("div",{className:"relative"}),o=((null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes["AVERAGE-BANDWIDTH"])/1048576).toFixed(1),r="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");r="".concat(e.height,"p @ ").concat(o,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");var s=l.dom.createEl("p",{innerHTML:r,className:"rendition",res:e.height,bandwidth:e.bandwidth});l.dom.appendContent(a,s),l.dom.appendContent(d,a),s.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,m(t.playerId,e.target),l.dom.addClass(s,"selected"))}))})),this.addAutoRendition("nondrm",d),"Safari"!=s.detectBrowser()&&this.addDynamicSwitchIfAuto()):(e.map((function(e,n){var i=l.dom.createEl("div",{className:"relative"}),a=(e.bitrate/1e6).toFixed(1),o="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");window.enableResolutionsBitrate&&(o="".concat(e.height,"p @ ").concat(a,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":""));var r=l.dom.createEl("p",{innerHTML:o,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});l.dom.appendContent(i,r),l.dom.appendContent(d,i),r.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.selectedVideo=e.target.video,window.qualityIndex=e.target.qualityIndex,m(t.playerId,e.target),l.dom.addClass(r,"selected"))}))})),this.addAutoRendition("drm",d)),l.dom.appendContent(o,d),l.dom.appendContent(i,o),l.dom.appendContent(n,i)}},{key:"addDynamicSwitchIfAuto",value:function(){for(var e,t=this.player_.textTracks(),n=0;n<t.length;n++)"segment-metadata"===t[n].label&&(e=t[n]);var i=null;e&&e.on("cuechange",(function(){var t=e.activeCues[0];if(t&&document.querySelector(".auto.selected")){var n,a,o,d,r,l,s,c;if(null!=t&&null!==(n=t.value)&&void 0!==n&&null!==(a=n.resolution)&&void 0!==a&&a.height&&i!==(null==t||null===(o=t.value)||void 0===o||null===(d=o.resolution)||void 0===d?void 0:d.height))document.querySelector(".auto.selected").innerHTML="Auto ".concat(null==t||null===(s=t.value)||void 0===s||null===(c=s.resolution)||void 0===c?void 0:c.height,"p");i=null==t||null===(r=t.value)||void 0===r||null===(l=r.resolution)||void 0===l?void 0:l.height}}))}},{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"container"}),t=l.dom.createEl("div",{className:"setting-icon"});return l.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var i,a,o,d,r=null===(i=this.player_)||void 0===i||null===(a=i.tech_)||void 0===a?void 0:a.vhs.selectPlaylist().attributes.RESOLUTION.height,s=null===(o=this.player_)||void 0===o||null===(d=o.tech_)||void 0===d?void 0:d.vhs.selectPlaylist().attributes.BANDWIDTH,c=l.dom.createEl("div",{className:"relative"}),u=l.dom.createEl("p",{innerHTML:"Auto ".concat(r,"p"),className:"rendition auto selected",bandwidth:s,res:r});u.addEventListener("click",(function(e){window.height!==e.target.res&&(n.resetRenditions(),l.dom.addClass(u,"selected"),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,m(n.playerId,null,!0))})),l.dom.appendContent(c,u),l.dom.appendContent(t,c)}else{var h=l.dom.createEl("div",{className:"relative"}),v=l.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});v.addEventListener("click",(function(e){n.resetRenditions(),l.dom.addClass(v,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,m(n.playerId,null,!0)})),l.dom.appendContent(h,v),l.dom.appendContent(t,h)}}}]),h}(),m=function(e,t,n){var i,a=s.getPlayer(e),o=null==t?void 0:t.bandwidth;if((null==a||null===(i=a.tech_)||void 0===i?void 0:i.vhs)||!1){a.tech_.vhs.representations().forEach((function(e){n||e.bandwidth===o?e.enabled(!0):e.enabled(!1)})),a.handleTechPlaying_();var d=a.currentTime();a.currentTime(0),setTimeout((function(){a.currentTime(d),a.play()}),100);var r=l.dom.$(".content");r&&l.dom.addClass(r,"hidden")}else{var c=null==t?void 0:t.qualityIndex;if(n){var u,h;null==a||null===(u=a.dash)||void 0===u||null===(h=u.mediaPlayer)||void 0===h||h.resetSettings()}else{var m,v,p,g;null==a||null===(m=a.dash)||void 0===m||null===(v=m.mediaPlayer)||void 0===v||v.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==a||null===(p=a.dash)||void 0===p||null===(g=p.mediaPlayer)||void 0===g||g.setQualityFor("video",c,!0);var f=a.currentTime();a.currentTime(0),setTimeout((function(){a.currentTime(f),a.play()}),100);var y=l.dom.$(".content");y&&l.dom.addClass(y,"hidden")}}};exports.default=h,exports.playSelectedResolution=m;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/classCallCheck"),i=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),s=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),c=require("@babel/runtime/regenerator"),l=require("video.js"),d=require("./index-b2091fa6.js");require("video.js/dist/video-js.min.css");var u=require("./icons-68e8d6c2.js");function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=a(e);if(t){var s=a(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return r(this,i)}}require("axios"),require("./library-1d9e03ba.js");var v,h=l.getComponent("Component"),f=function(e){s(a,h);var r=p(a);function a(e){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,a),i=r.call(this,e,s),o(n(i),"seriesData",[]),i.seriesData=s.seriesData,v=s.playerId;var c=i.el();return g(c,i.seriesData),i}return i(a,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}}]),a}();function m(){return(m=e(c.mark((function e(t,i,n,s){var r;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=sessionStorage.getItem("token"),d.pause(v),d.showLoader(v),d.load(v,i,r).then((function(e){d.setCurrentVideo(e.response),d.play(v)}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e,t){e.innerHTML='<div class="hover-div"></div>\n '.concat(u.EpisodesSvg(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map((function(e,t){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(t),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>')}exports.customSeasonList=g,exports.handleSeasonChange=function(e,t,i,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;var o=e.episodes.map((function(e,t){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(t+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");a.innerHTML=o,function(e){d.getSeriesWatchHistory(e).then((function(e){var t=e.data,i=document.querySelectorAll("#progress-div");i&&t.map((function(e,t){e&&e.watchedPercentage&&i[t]&&(i[t].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),l=document.querySelectorAll("#episode-title"),u=document.querySelectorAll(".meta-details"),p=document.querySelector("#episodes-back-btn"),v=e.id,h=e.episodes;p.addEventListener("click",(function(){return function(e,t){e.classList.remove("hide-container"),t.classList.add("hide-container")}(s,r)}));for(var f=function(t){c[t].addEventListener("click",(function(){return function(e,t,i){var n=t.querySelector(".meta-details");t.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),i.forEach((function(t,n){n!==e&&(i[n].classList.remove("episode-active"),i[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(t,l[t],l)})),u[t].addEventListener("click",(function(){return function(e,t,i,n){return m.apply(this,arguments)}(t,h[t].id,i,l)})),e.episodes[t].id==v&&l[t].classList.add("highlight-active-eps")},g=0;g<c.length;g++)f(g)},exports.seriesModule=f;
@@ -1 +0,0 @@
1
- "use strict";var e=require("./index-b2091fa6.js");require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("./library-1d9e03ba.js");var r=function(){document.getElementsByClassName("vjs-control-bar")[0].style.visibility="hidden"};exports.initaliseSkin=function(t){Promise.resolve().then((function(){return require("./skin-225252ff.js")})).then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r){var t=e.getPlayer(r);t.muted(!0)}(t),r(),function(r){var t=document.getElementById("".concat(r)),n=e.getPlayer(r);t&&t.addEventListener("touchstart",(function(){n.paused()?e.play(r):e.pause(r)}))}(t)};
@@ -1 +0,0 @@
1
- "use strict";exports.default=".vjs-button>.vjs-icon-placeholder:before {\n font-size: 2.2em;\n line-height: 2.6;\n}\n.vjs-control-bar{\n z-index: 0 !important;\n height: 6em !important;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%) !important;\n}\n\n.video-js .vjs-progress-control {\n left: -6px;\n position: absolute;\n width: 100%;\n height: 0.5em;\n top: -0.5em;\n transition: height .1s,top .1s;\n}\n\n.video-js .vjs-custom-control-spacer {\n display: block;\n flex: 1 1 auto;\n}\n\n.vjs-remaining-time.vjs-time-control.vjs-control {\n position: absolute;\n right: 0;\n bottom: 18px;\n}\n\n.video-js .vjs-progress-control .vjs-progress-holder {\n margin: 0 41px 0 14px;\n}\n.vjs-remaining-time.vjs-time-control.vjs-control{\n display: none;\n}\n\nbutton.vjs-control.vjs-button.vjs-slowmo-button {\n font-size: 14px;\n font-weight: 500;\n}\n\n.video-js .vjs-progress-control .vjs-progress-holder{\n height: 6px !important;\n}\n\n.video-js .vjs-play-progress:before {\n font-size: 1.9em;\n}\n\n.video-js .vjs-current-time { display: block; }\n\n.video-js .vjs-current-time {\n display: block;\n position: absolute;\n right: 0em;\n bottom: 1.8em;\n font-size: 12px;\n font-weight: 600;\n}\n\n.video-js .vjs-button{\n width: 6em;\n}\n\nbutton.vjs-control.vjs-button.vjs-slowmo-button{\n align-self: center;\n height: min-content;\n padding: 5px 2px;\n border-radius: 8px;\n}\n\n\n\n.video-js .vjs-fullscreen .icon-maximize,\n.icon-minimize {\n display: none;\n height: 32px;\n}\n\n.video-js .vjs-fullscreen .icon-minimize,\n.icon-maximize {\n display: block;\n height: 32px;\n}\n\n.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,\n.vjs-icon-fullscreen-enter:before {\n content: '' !important;\n}\n\n.video-js button.vjs-fullscreen-control.vjs-control.vjs-button {\n display: flex;\n justify-content: center;\n align-items: center;\n transform: rotate(90deg);\n}\n\n.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before{\n display: none;\n}\n.video-js .vjs-volume-panel .vjs-volume-control{\n margin-left: -10px;\n}\n\n.skipbtn:hover{\n cursor: pointer;\n}\n\n.rewindbtn:hover{\n cursor: pointer;\n}\n\n.vjs-live-control{\n position: absolute !important;\n right: 0em !important;\n background-color: none;\n bottom: 1.8em !important;\n}\n\n.vjs-seek-to-live-control.vjs-control{\n position: absolute !important;\n right: 0em !important;\n background-color: none;\n bottom: 3.2em !important;\n}\n\n.vjs-seek-to-live-control.vjs-control >span.vjs-icon-placeholder{\n display:none;\n}\n\n\n.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{\n color: #ff5858;\n font-weight: bold;\n}\n\n.vjs-menu > ul.vjs-menu-content{\n bottom: 3.5em !important;\n right: -1em;\n}\n\n.vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button{\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\nbutton.vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-button{\n height: min-content;\n width: min-content;\n}";
@@ -1 +0,0 @@
1
- "use strict";var e,t=require("./icons-68e8d6c2.js"),n=require("./keyboardShortcuts-3a237020.js"),r=require("./index-b2091fa6.js"),s=require("@babel/runtime/helpers/defineProperty");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,n){var i=r.getPlayer(e);i.one("play",(function(){null!=n&&n.streams&&t.addMulticamView(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n)),null!=n&&n.airplay&&i.addChild("airPlayButton"),null!=n&&n.chromecastReceiverId&&i.addChild("chromecastButton"),i.addChild("FullscreenToggle"),i.getChild("FullscreenToggle").el().appendChild(r.createIconMarkup(t.MinimizeSvg(window.controlsColor))),i.getChild("FullscreenToggle").el().appendChild(r.createIconMarkup(t.MaximizeSvg(window.controlsColor))),l(e)})),i.on("loadedmetadata",(function(){window.endFirstFrame(i),"Safari"!==r.detectBrowser()&&t.addResolutionModule(e,"live",t.SettingsSvg())})),i.one("loadedmetadata",(function(){var r;null!=n&&n.streams&&(null==n||null===(r=n.streams)||void 0===r?void 0:r.length)>=2&&t.addMwebPotraitTrayModule(e,n)}))}function l(t){var n=r.getPlayer(t);u(),n.on("pause",(function(){clearTimeout(e),a()})),n.on("play",(function(){u()}));var s=document.getElementById("".concat(t));s.addEventListener("mouseenter",(function(){a(),n.paused()||u()})),s.addEventListener("touchstart",(function(){a(),u()})),s.addEventListener("mousemove",(function(){a(),n.paused()||u()}))}function a(){var e=document.getElementsByClassName("vjs-chromecast-button")[0],t=document.getElementsByClassName("vjs-airplay-button")[0],n=document.getElementsByClassName("vjs-fullscreen-control")[0];null!=e&&e.classList.contains("hideoutsidecontrols")&&(null==e||e.classList.remove("hideoutsidecontrols")),n.classList.contains("hideoutsidecontrols")&&n.classList.remove("hideoutsidecontrols"),null!=t&&t.classList.contains("hideoutsidecontrols")&&t.classList.remove("hideoutsidecontrols")}function u(){var t=document.getElementsByClassName("vjs-chromecast-button")[0],n=document.getElementsByClassName("vjs-fullscreen-control")[0],r=document.getElementsByClassName("vjs-airplay-button")[0];clearTimeout(e),e=setTimeout((function(){null==t||t.classList.add("hideoutsidecontrols"),null==n||n.classList.add("hideoutsidecontrols"),null==r||r.classList.add("hideoutsidecontrols")}),2200)}require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("video.js/dist/video-js.min.css"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./library-1d9e03ba.js"),exports.hideControls=l,exports.initialiseSkin=function(e,s){var o;n.initialiseKeyboardEvents(e,s),(null==(o=s)||!o.liveui)&&(null==o||!o.liveVideo)||null!=o&&o.liveui&&null!=o&&o.liveVideo?Promise.resolve().then((function(){return require("./dvr_skin-1a7384e5.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-d540232e.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,n){var s=r.getPlayer(e),o=s.controlBar.getChild("SubsCapsButton").el();document.getElementsByClassName("vjs-subs-caps-button")[1].appendChild(r.createIconMarkup(t.NewCaptionsSvg()));var i=document.createElement("div");i.classList.add("caption-header"),o.querySelector(".vjs-menu-content").insertBefore(i,o.querySelector(".vjs-menu-item"));var l=document.createElement("div");if(l.innerText="Captions",l.className="fs14",document.getElementsByClassName("vjs-subs-caps-button")[0].appendChild(l),"Safari"==r.detectBrowser()){document.getElementsByClassName("vjs-subs-caps-button")[0].style.left="9.5rem"}null!=n&&n.liveui||null==n||!n.liveVideo||(document.getElementsByClassName("vjs-progress-control")[0].style.display="none")}(e,s),i(e,s)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./icons-68e8d6c2.js"),r=require("./index-b2091fa6.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./library-1d9e03ba.js"),exports.initialiseSkin=function(t){Promise.resolve().then((function(){return require("./skin-1ae06259.js")})).then((function(e){var r=document.createElement("style");r.id="default_v2",r.append("".concat(e.default)),document.head.appendChild(r)})),function(t){r.getPlayer(t).one("loadedmetadata",(function(){e.addResolutionModule(t,"defaultV2",e.SettingsSvgV2())}))}(t),function(t){var n=r.getPlayer(t);n.controlBar.getChild("FullscreenToggle").el().appendChild(r.createIconMarkup(e.MinimizeSvg(window.controlsColor))),n.controlBar.getChild("FullscreenToggle").el().appendChild(r.createIconMarkup(e.MaximizeSvg(window.controlsColor)));var i=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(t).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(r.createIconMarkup(e.CaptionsSvgV2()));var o=document.createElement("div");o.classList.add("caption-header"),i.querySelector(".vjs-menu-content").insertBefore(o,i.querySelector(".vjs-menu-item"))}(t),function(r){e.addRewindButton(r,"defaultV2",e.RewindSvgV2()),e.addSkipButton(r,"defaultV2",e.SkipSvgV2()),e.addSlowMotion(r),e.addVideoSelector(r)}(t)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./icons-68e8d6c2.js"),r=require("./keyboardShortcuts-3a237020.js"),t=require("./index-b2091fa6.js");require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./library-1d9e03ba.js"),exports.initialiseSkin=function(i,n){r.initialiseKeyboardEvents(i,n),Promise.resolve().then((function(){return require("./skin-983a2ea7.js")})).then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r,t){0==t.liveVideo&&0==t.liveui&&e.addSkipButton(r,"default",e.SkipSvg());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&e.addRewindButton(r,"default",e.RewindSvg())}(i,n),function(r,i){var n=t.getPlayer(r),s=(null==i?void 0:i.sres)||null;n.on("loadeddata",(function(){e.addResolutionModule(r,"default",e.SettingsSvg()),s&&Promise.resolve().then((function(){return require("./nextEpisodeButton-6749ae07.js")})).then((function(e){e.initaliseFunctionality(i.sres.seasons,t.getCurrentVideo())}))})),n.one("loadedmetadata",(function(){var t;s&&(e.addSeriesModule(r,null==i||null===(t=i.sres)||void 0===t?void 0:t.seasons,i),e.addNextEpisodeButton(i.sres,i.res,r))}))}(i,n),function(r,i){var n=t.getPlayer(r),s=document.getElementsByClassName("vjs-current-time")[0],o=document.getElementsByClassName("vjs-duration")[0],l=document.getElementsByClassName("vjs-time-divider")[0];i.liveVideo&&(s&&(s.style.display="none"),o&&(o.style.display="none"),l&&(l.style.display="none"));n.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(e.MinimizeSvg(window.controlsColor))),n.controlBar.getChild("FullscreenToggle").el().appendChild(t.createIconMarkup(e.MaximizeSvg(window.controlsColor)));var a=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(r).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(t.createIconMarkup(e.NewCaptionsSvg()));var u=document.createElement("div");u.classList.add("caption-header"),a.querySelector(".vjs-menu-content").insertBefore(u,a.querySelector(".vjs-menu-item"))}(i,n)};
@@ -1 +0,0 @@
1
- "use strict";exports.default=".video-selection{\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.video-selector-icon{\n cursor: pointer;\n}\n\n.selection-container{\n position: absolute;\n /* height: 528px; */\n width: 400px;\n right: -120px;\n bottom: 0px;\n /* background: #626262; */\n\n /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%) !important; */\n background: #00000080 !important;\n z-index: -1;\n}\n\n.selection-container.hidden{\n display: none !important;\n}\n\n.video-selection.open{\n background: rgba(255, 255, 255, 0.20) !important;\n}\n\n.video-selector-head{\n display: flex;\n align-items: center;\n padding-top: 18px;\n padding-left: 20px;\n margin-bottom: 20px;\n}\n\n.video-selector-title{\n font-size: 23px;\n margin-left: 25px;\n user-select: none;\n}\n\n.video-selector-cross-icon{\n cursor: pointer;\n}\n.video-selector-content{\n height: 74%;\n overflow: scroll;\n /* background: yellowgreen; */\n}\n\n.video-selector-content::-webkit-scrollbar {\n display: none;\n }\n \n /* Hide scrollbar for IE, Edge and Firefox */\n .video-selector-content {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n }\n\n.video-selector-content-video{\n height: 300px;\n margin-bottom: 30px;\n /* background: red; */\n}\n\n.recommended{\n height: 175px;\n width: 309px;\n background-repeat: no-repeat;\n background-size: contain;\n /* margin: 21px -2px -23px 35px; */\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: 15px;\n padding: 7px;\n}";
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),a=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),i=require("video.js"),r=require("./icons-68e8d6c2.js"),s=require("./index-b2091fa6.js");function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,i=o(e);if(t){var r=o(this).constructor;a=Reflect.construct(i,arguments,r)}else a=i.apply(this,arguments);return n(this,a)}}require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("axios"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("./library-1d9e03ba.js");var d=i.getComponent("Component"),l=function(n){a(l,d);var o=c(l);function l(t){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,l),(a=o.call(this,t,n)).playerId=n.playerId,a.seriesData=n.sres,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a}return t(l,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"}),t=i.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r.EpisodesSvg())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-d4201fdc.js")})).then((function(e){var t=document.createElement("style");t.id="video-selecton",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=i.dom.createEl("div",{className:"selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var a;null!==(a=t.classList)&&void 0!==a&&a.contains("hidden")?(t.classList.remove("hidden"),e.classList.add("open")):(t.classList.add("hidden"),e.classList.remove("open"))};var a=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(a,"px"),i.dom.appendContent(e,t),this.addFunctionality(t)}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,a=this.el(),n=i.dom.createEl("div",{className:"video-selector-head"}),o=i.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(r.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),a.classList.remove("open")};for(var c=i.dom.createEl("div",{className:"video-selector-title",innerHTML:"Recommended"}),d=i.dom.createEl("div",{className:"video-selector-content"}),l=[{id:"654b358b-7b80-4c99-a38e-8440c3c18a38",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2022/09/28/1664345563186_bsc_thumb_1280x720_16x9Images.jpg"},{id:"6111c33b-8da0-4e42-9498-15334649ddd2",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2022/09/22/1663859364175_pantools_1280x720_16x9Images.jpg"},{id:"84eb4e6f-bed8-40eb-b949-70582c080da5",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2023/01/12/1673508804695_bprk_1280x720_16x9Images.jpg"},{id:"a2fdbc9a-f67b-4aba-8949-de847a443c03",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2023/01/2/1672646065786_1280x720_16x9Images.jpg"},{id:"6111c33b-8da0-4e42-9498-15334649ddd2",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2022/09/22/1663859364175_pantools_1280x720_16x9Images.jpg"},{id:"84eb4e6f-bed8-40eb-b949-70582c080da5",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2023/01/12/1673508804695_bprk_1280x720_16x9Images.jpg"},{id:"a2fdbc9a-f67b-4aba-8949-de847a443c03",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2023/01/2/1672646065786_1280x720_16x9Images.jpg"}],m=function(e){var a=i.dom.createEl("div",{className:"parent -".concat(e)}),n=i.dom.createEl("div",{className:"recommended -".concat(e)});n.onclick=function(){var a=i.dom.$$(".recommended");console.log(a);for(var o=0;o<a.length;o++)a[o].style.border="none";n.style.border="2px solid white",s.VLPlayerCore().load(t.playerId,l[e].id,sessionStorage.getItem("token")).then((function(e){console.log(e),console.log(a)})).catch((function(e){console.log(e)}))},n.style.backgroundImage="url(".concat(l[e].img,")");var o=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"VIDEO ".concat(e+1)});i.dom.appendContent(a,n),i.dom.appendContent(a,o),i.dom.appendContent(d,a)},u=0;u<l.length;u++)m(u);i.dom.appendContent(n,o),i.dom.appendContent(n,c),i.dom.appendContent(e,n),i.dom.appendContent(e,d),s.getPlayer(this.playerId).on("fullscreenchange",(function(){var a=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(a,"px")}))}}]),l}();exports.default=l;
@@ -1 +0,0 @@
1
- var n='.video-js .error-container {\n position: absolute;\n top: 60%;\n text-align: center;\n width: 100%;\n height: -moz-max-content;\n height: max-content;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.video-js .error-message {\n font-size: 17px;\n padding: 0 4rem;\n color: white;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%) !important;\n}\n\n/* .video-js.vjs-playing .vjs-tech {\n pointer-events: none;\n} \n.vjs-error-display.vjs-modal-dialog {\n display: none;\n}\n .video-js .vjs-big-play-button .vjs-icon-placeholder:before{\n content: "\\00d7";\n font-size: 35px;\n top: -8px;\n} */\n\n@media (max-width:600px){\n .video-js .error-container {\n top: 68%;\n }\n .video-js .error-message{\n font-size: 14px;\n }\n}\n\n/* .video-js.vjs-paused .vjs-big-play-button:focus{\n pointer-events: none;\n} */';export{n as default};
@@ -1 +0,0 @@
1
- import t from"@babel/runtime/helpers/classCallCheck";import e from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import l from"video.js";import{g as r,r as C,s,a}from"./index-a47a7dcc.js";function d(t){var e=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(t){return!1}}();return function(){var n,l=i(t);if(e){var r=i(this).constructor;n=Reflect.construct(l,arguments,r)}else n=l.apply(this,arguments);return o(this,n)}}var c=function(o){var i=function(o){n(l,o);var i=d(l);function l(e,n){var o;t(this,l);var r=(o=i.call(this,e,n)).el_;return r.classList.add("vjs-slowmo-button"),r.innerHTML="Slow Mo",o}return e(l,[{key:"handleClick",value:function(){1==r.playbackRate()?(r.playbackRate(.5),this.el().style.background="darkgray"):(r.playbackRate(1),this.el().style.background="none")}}]),l}(l.getComponent("Button"));l.registerComponent("MyButton",i);var r=l(o);r.getChild("controlBar").addChild("myButton",{},2)},h=function(o,i,r){var s=function(i){n(s,i);var l=d(s);function s(e,n){var o;t(this,s);var i=(o=l.call(this,e,n)).el_;return i.classList.add("vjs-rewind-button"),i.innerHTML=r,o}return e(s,[{key:"handleClick",value:function(){C(o,10)}}]),s}(l.getComponent("Button"));l.registerComponent("MyButton",s),l(o).getChild("controlBar").addChild("myButton",{},1)},u=function(o,i,r){var C=function(i){n(C,i);var l=d(C);function C(e,n){var o;t(this,C);var i=(o=l.call(this,e,n)).el_;return i.classList.add("vjs-skip-button"),i.innerHTML=r,o}return e(C,[{key:"handleClick",value:function(){s(o,10)}}]),C}(l.getComponent("Button"));l.registerComponent("MyButton",C),l(o).getChild("controlBar").addChild("myButton",{},1)},w=function(t,e){import("./multicam-ceb734c4.js").then((function(n){var o=n.default,i=e.streams,C=r(t);l.registerComponent("multicamModule",o),C.getChild("controlBar").addChild("multicamModule",{playerId:t,streams:i,config:e},C.controlBar.children().length)}));var n=document.querySelector(".vjs-control-bar");n&&"live"==(null==e?void 0:e.skin)&&(n.style.background="transparent")},f=function(t,e,n){import("./resolution-768a5f47.js").then((function(o){var i=o.default;document.getElementById(t).getElementsByClassName("container")[0]&&document.getElementById(t).getElementsByClassName("container")[0].remove();var C=r(t),s=a(t);(null==s?void 0:s.length)>0&&(l.registerComponent("resolutionModule",i),C.getChild("controlBar").addChild("resolutionModule",{playerId:t,skin:e,icon:n,renditions:s},C.controlBar.children().length-4))}))},v=function(t,e,n){import("./nextEpisodeButton-c13fef92.js").then((function(o){var i=o.default,C=r(n);l.registerComponent("nextEpisodeButtonModule",i),C.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:t,res:e},C.controlBar.children().length-5)}))},p=function(t,e){import("./mwebPotraitTray-e834a676.js").then((function(n){var o=n.default,i=r(t);l.registerComponent("mwebPotraitTray",o),i.getChild("controlBar").addChild("mwebPotraitTray",{playerId:t,config:e},0)}))},g=function(t,e,n){import("./series-379793d6.js").then((function(o){var i=o.seriesModule,C=r(t);l.registerComponent("seriesModule",i),C.getChild("controlBar").addChild("seriesModule",{playerId:t,seriesData:e},C.controlBar.children().length-4);for(var s=document.querySelectorAll(".season-title-sdk"),a=function(t){s[t].addEventListener("click",(function(){e[t]&&o.handleSeasonChange(e[t],t,C,n)}))},d=0;d<s.length;d++)a(d)}))},m=function(t){import("./videoSelector-34c524a1.js").then((function(e){var n=e.default,o=r(t);l.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:t},o.controlBar.children().length-3)}))},L=function(t){return"<svg fill=".concat(t||"white","\n class='icon icon-minimize'\n viewBox=\"0 0 70 70\"\n >\n <path fill=").concat(t||"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(t||"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>')},M=function(t){return"<svg fill=".concat(t||"white","\n class='icon icon-maximize'\n viewBox=\"0 0 70 70\"\n >\n <path fill=").concat(t||"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(t||"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>')},k=function(t){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>")},y=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"/>\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>'},B=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>'},x=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>'},H=function(t){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>")},V=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"/>\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>'},b=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>'},Z=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>'},j=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 '},R=function(t){return'<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(t,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=').concat(t,' />\n <rect x="18" width="2" height="20" fill=').concat(t," />\n </svg>")},E=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 '};export{j as C,b as E,L as M,Z as N,R as P,k as R,B as S,w as a,M as b,f as c,p as d,c as e,g as f,v as g,u as h,h as i,H as j,x as k,m as l,y as m,V as n,E as o};
@@ -1 +0,0 @@
1
- import"video.js/dist/video-js.min.css";import e from"@babel/runtime/helpers/defineProperty";import n from"axios";import t from"@babel/runtime/helpers/asyncToGenerator";import o from"@babel/runtime/regenerator";import i from"video.js";import{loadDashLibrary as r,loadEMELibrary as l}from"./library-ad46544b.js";var a={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status","beacon-msn-dev":"https://analytics-api.develop.monumentalsportsnetwork.com/player-beacon","beacon-msn-qa":"https://analytics-api.qa.monumentalsportsnetwork.com/player-beacon","beacon-msn-uat":"https://analytics-api.uat.monumentalsportsnetwork.com/player-beacon","beacon-prod":"https://1a7ahu122g.execute-api.us-east-1.amazonaws.com/production_beacon/firehouse-proxy",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 s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function d(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var u=3e4;function c(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function v(e){return e?String(e):""}window.initialise=function(e){var n,t,o;window.sid=c();var i=function(e){switch(e){case"prod":default:return a["beacon-prod"];case"msndev":return a["beacon-msn-dev"];case"msnqa":return a["beacon-msn-qa"];case"msnuat":return a["beacon-msn-uat"]}}((null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.beacon)||void 0===o?void 0:o.url)||"prod");window.beaconUrl=i,window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var n=Math.floor(e.currentTime());e.on("error",(function(){var t=Math.floor(e.currentTime());fireEvent({eventName:n===t?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})}))},window.firstFrame=function(e){e.one("play",tryCatch((function(){window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval((function(){window.ttFirstFrame=window.handleBufferTimer(window.ttFirstFrame,e)}),u),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})))},window.buffering=function(e){e.on("waiting",tryCatch((function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval((function(){e.el_.className.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=handleBufferTimer(window.totalBufferTime,e):clearInterval(window.bufferingTimer)}),u))})))},window.handleBufferTimer=function(e,n){if(n.el_){var t=e+30;return Math.round(t,2)%5==0&&fireEvent({eventName:"BUFFERING",videoPosition:n.el_&&Math.floor(n.currentTime()),isAdEvent:!1}),t}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",(function(){clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})}))},window.ads=function(e){e.on("adsready",(function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,(function(){fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,adPosition:1}),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,adPosition:1})})),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,(function(){window.ttFirstFrame=0})),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,(function(){window.ttFirstFrame=0}))}))},window.ping=function(e){var n=[];e.on("timeupdate",(function(){var t=Math.floor(e.currentTime());t>=30&&t%30==0&&!n.includes(t)&&(n.push(t),fireEvent({eventName:"PING",videoPosition:t,isAdEvent:!1,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))}))},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch((function(){for(var n=e.currentTime(),t=e.duration(),o=e.buffered(),i=0;i<o.length;i++){var r=o.start(i),l=o.end(i);if(f(n,r,l)){var a=Math.round(t-l);if(isFinite(a))return a}}}))()};var f=function(e,n,t){return e>=n&&e<=t};function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function p(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?m(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}window.fireEvent=function(e){var t,o,i,r,l=[d(d({aid:window.siteName,cid:window.siteId,pfm:window.platform},null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(i=o.beacon)||void 0===i?void 0:i.params),{},{uid:(r=window.sessionStorage.getItem("uid"),r||(r=c(),window.sessionStorage.setItem("uid",r),r)),vid:window.videoId,url:e.url||document.location.href,ref:e.ref||document.referrer,pa:e.eventName,vpos:v(e.videoPosition),environment:window.environment,dp1:e.dp1||"",dp2:e.dp2||"",dp3:e.dp3||"",dp4:e.dp4||"",dp5:e.dp5||"",apos:!0===e.isAdEvent?v(e.videoPosition):"",apod:!0===e.isAdEvent?v(e.adPosition):"",profid:"",player:e.playerType||"native",media_type:e.mediaType||"VIDEO",stream_id:window.sid,embedurl:"",ttfirstframe:v(e.ttFirstFrame),bitrate:v(e.bitrate),connectionspeed:"",resolutionheight:v(e.resHeight),resolutionwidth:v(e.resWidth),bufferhealth:v(e.bufferHealth)})];n({url:window.beaconUrl,method:"post",contentType:"application/x-www-form-urlencoded",dataType:"text",data:l}).catch((function(e){console.error(e)}))},window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var w,h,y=function(e,t){var o,i;return n({url:S(),params:p({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})},g=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 l,a,s=JSON.parse(atob(t.split(".")[1])),d=(null==s?void 0:s.site)||null;return n({method:"GET",url:P(e),params:{site:d},headers:{Authorization:t,"x-api-key":null===(l=window)||void 0===l||null===(a=l.watchHistory)||void 0===a?void 0:a.xApiKey}})}if("v2"==r){var u,c;JSON.parse(atob(t.split(".")[1]));var v=window.contentType;return n({method:"GET",url:E(e,v),headers:{Authorization:t,"x-api-key":null===(u=window)||void 0===u||null===(c=u.watchHistory)||void 0===c?void 0:c.xApiKey}})}},b=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:T(),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:O(i),headers:{Authorization:e.token}})},O=function(e){return D()+"".concat(null==a?void 0:a.getSeriesWatchHistoryV2,"/").concat(e)},T=function(){return D()+"".concat(null==a?void 0:a.getSeriesWatchHistoryV1)},P=function(e){return D()+"".concat(null==a?void 0:a.getVideoInfoV1,"/").concat(e)},E=function(e,n){return D()+"".concat(null==a?void 0:a.getVideoInfoV2,"/").concat(n,"/").concat(e)},I=function(){return D()+"".concat(null==a?void 0:a.saveWatchHistoryV1)},k=function(){return D()+"".concat(null==a?void 0:a.saveWatchHistoryV2)},S=function(){return D()+"".concat(null==a?void 0:a.getVideoDetails)},j=function(e,n){return D()+"".concat(null==a?void 0:a.getSeriesDetails)},D=function(){var e;return(null===(e=window)||void 0===e?void 0:e.playerEntitlementUrl)||(null==a?void 0:a.apiBaseUrl)},C=function(e,n){if(import("./error-0dcf8172.js").then((function(e){var n=document.createElement("style");n.id="errorblock",n.append("".concat(e.default)),document.head.appendChild(n)})),document.getElementsByClassName("error-container")[0]){var t=document.getElementsByClassName("error-message")[0];t&&(t.innerHTML="".concat(n))}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(n),i.appendChild(r),o.append(i)}},x=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var A=[],R=0;function H(e,t,o){var i;A=[],R=0,w=o;var r=(null==t||null===(i=t.watchHistory)||void 0===i?void 0:i.interval)||30,l=Y(e);l&&l.on("timeupdate",(function(){var e=Math.floor(l.currentTime());A.includes(R)||(e==R?(A.push(e),function(e,t,o){var i,r,l;h=(null==t||null===(i=t.watchHistory)||void 0===i?void 0:i.apiVersion)||"v1";var a=null==t||null===(r=t.watchHistory)||void 0===r?void 0:r.profileId,s=Math.floor(e.currentTime()),d=Math.floor(e.duration()),u=null==t||null===(l=t.watchHistory)||void 0===l?void 0:l.xapiKey,c={};"v1"==h?c={videoId:w,watchedTime:Math.floor(e.currentTime()),watchedPercentage:Math.floor(s/d*100),siteOwner:t.siteOwner,userId:t.userId,xApiKey:u}:"v2"==h&&(c={videoId:w,watchedTime:Math.floor(e.currentTime()),watchedPercentage:Math.floor(s/d*100),doneWatching:s>=d-5,profileId:a});(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:I(),method:"POST",headers:{Authorization:t,"x-api-key":e.xApiKey},params:{version:"v2"},data:JSON.stringify(i),withCredentials:!0})}if("v2"==o){var r={doneWatching:!1,videoId:null==e?void 0:e.videoId,watchedPercentage:null==e?void 0:e.watchedPercentage,watchedTime:null==e?void 0:e.watchedTime,profileId:null==e?void 0:e.profileId};return n({url:k(),method:"POST",headers:{Authorization:t},data:r})}})(c,t.token,h).then((function(e){})).catch((function(e){})),R=s+o}(l,t,r)):e>R&&(R=e+r))}))}function F(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function B(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?F(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):F(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var M,V=function(e,n){var t,o,i,r,l,a,s,d,u=null==e||null===(t=e.video)||void 0===t?void 0:t.drmEnabled,c=null==e||null===(o=e.video)||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.videoAssets,v=(null==e||null===(r=e.video)||void 0===r||null===(l=r.streamingInfo)||void 0===l||null===(a=l.videoAssets)||void 0===a?void 0:a.hls)||!1,f=(null==e||null===(s=e.video)||void 0===s||null===(d=s.liveDetails)||void 0===d?void 0:d.isDvrEnabled)||!1;if(u){var m=U(c,n);return f&&(m=B(B({},m),{},{src:N(B(B({},e.video),{},{src:"".concat(m.src)}))})),m}if(v){var p=_(c);return f&&(p=B(B({},p),{},{src:N(B(B({},e.video),{},{src:"".concat(p.src)}))})),p}if(null!=c&&c.mpeg){var w=function(e){var n=null==e?void 0:e.mpeg;return{src:n[n.length-1].url,type:"video/mp4"}}(c);return w}return null},N=function(e){var n=e.src;if(e.liveDetails.startOverTime){var t=e.liveDetails.startOverTime,o=e.gist.scheduleStartDate,i=e.gist.scheduleEndDate,r=new Date,l=0,a=r.getTime();l=a-o<1e3*t?a-o:1e3*t;var s=null;i<=a&&null!=i&&(s=new Date(i)),r.setMilliseconds(r.getMilliseconds()-l),n=n.includes("?")?i?"".concat(e.src,"&start=").concat(r.toISOString(),"&end=").concat(s.toISOString()):"".concat(e.src,"&start=").concat(r.toISOString()):i?"".concat(e.src,"?start=").concat(r.toISOString(),"&end=").concat(s.toISOString()):"".concat(e.src,"?start=").concat(r.toISOString())}return n},_=function(e){var n=null==e?void 0:e.hls;return n?{src:n,type:"application/x-mpegURL"}:null},U=function(e,n){var t=e.fairPlay,o=e.widevine,r=e.playReady,l=ge().detectBrowser(),a=ge().getPlayer(n);if("Safari"===l){var s=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,t){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};i.xhr(o,(function(e,n,o){console.log(e),e&&t(e),t(null,new Uint8Array(o))}))},getContentId:function(e,n){if(n)return new TextDecoder("utf-16").decode(n.slice(16))},getLicense:function(n,t,o,r){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};i.xhr(l,(function(e,n,t){console.log(e),e&&r(e),r(null,t)}))}}}}}(t);try{a.eme()}catch(e){}return s}if("Chrome"===l||"Firefox"===l){var d={src:o.url,type:"application/dash+xml",keySystemOptions:[]};return d.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:o.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":o.licenseToken}}}),d}if("IE"===l){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}}}),u}};var L=function(e){M=e},W=function(){return M},q=function(e){i(e).play()},G=function(e){i(e).pause()},z=function(e,n){var t=i(e),o=t.currentTime()+n;t.currentTime(o)},J=function(e,n){var t=i(e),o=t.currentTime(),r=o<=n?0:o-n;t.currentTime(r)},K=function(e){return!!i.getPlayer("".concat(e))},X=function(e){var n,t=Y(e),o=[];if((null==t||null===(n=t.tech_)||void 0===n?void 0:n.vhs)||!1){var i,r,l=null==t||null===(i=t.tech_)||void 0===i||null===(r=i.vhs)||void 0===r?void 0:r.representations();(null==l?void 0:l.length)>0&&(o=null==l?void 0:l.sort((function(e,n){return n.height-e.height})))}else{var a,s,d=null==t||null===(a=t.dash)||void 0===a||null===(s=a.mediaPlayer)||void 0===s?void 0:s.getBitrateInfoListFor("video");(null==d?void 0:d.length)>0&&(o=null==d?void 0:d.sort((function(e,n){return n.height-e.height})))}return o},Q=function(e,n){var t=Y(e);t.remoteTextTracks().tracks_.map((function(e){t.removeRemoteTextTrack(e)})),n.map((function(e){t.addRemoteTextTrack({src:e.url,srcLang:e.language,label:e.language})}))},Y=function(e){return!!i.getPlayer("".concat(e))&&i.getPlayer("".concat(e))},Z=function(e,n,t){var o,i,r,l=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&&g(n,t).then((function(e){var n,t,o,i,r;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),l=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null})).catch((function(e){var n,t,o,i;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))})),new Promise((function(o,i){y(n,t).then((function(n){var t=null==n?void 0:n.data;L(n.data);var r=V(t,e);if(r){var a,s,d,u,c,v,f,m,p,w,h,y=null==t||null===(a=t.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.videoImageUrl,g=Y(e);if(g.pause(e),g.poster(y),$(e,r),g.on("loadeddata",(function(){x(),o({status:!0,msg:"Video Loaded",response:t})})),g.one("play",(function(){l&&g.currentTime(l)})),g.one("error",(function(){var e;i({status:!1,msg:(null==g||null===(e=g.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==t||null===(d=t.video)||void 0===d||null===(u=d.contentDetails)||void 0===u||null===(c=u.closedCaptions)||void 0===c?void 0:c.length)>0||(null==t||null===(v=t.video)||void 0===v||null===(f=v.closedCaptions)||void 0===f?void 0:f.length)>0)m=((null==t||null===(p=t.video)||void 0===p||null===(w=p.contentDetails)||void 0===w?void 0:w.closedCaptions)||(null==t||null===(h=t.video)||void 0===h?void 0:h.closedCaptions)).filter((function(e){return"VTT"===e.format})),Q(e,m);else!function(e){var n=Y(e);n.remoteTextTracks().tracks_.map((function(e){null==e||e.kind,n.removeRemoteTextTrack(e)}))}(e)}else C(e,"Incompatible Source, only hls,mp4,drm content is allowed"),i("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(n){ee(n,e,i)}))}))},$=function(e,n){Y(e).src(n)},ee=function(e,n,t){var o,r,l,a,s,d,u,c=null==e||null===(o=e.response)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.errorCode,v=(null==e||null===(l=e.response)||void 0===l||null===(a=l.data)||void 0===a?void 0:a.errorMessage)||(null==e?void 0:e.message);K(n)||i(n,{fluid:!0}),C(n,(null===(s=window)||void 0===s?void 0:s.customErrors)&&(null===(d=window)||void 0===d?void 0:d.customErrors[c])||"".concat(v)),t&&t({response:null==e||null===(u=e.response)||void 0===u?void 0:u.data,messsage:"".concat(v)})};function ne(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function te(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ne(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var oe=function(e,n){n.controlBar.el_.style.color=e,n.controlBar.el_.querySelector(".vjs-play-progress")&&(n.controlBar.el_.querySelector(".vjs-play-progress").style.backgroundColor=e),n.controlBar.el_.querySelector(".vjs-volume-level")&&(n.controlBar.el_.querySelector(".vjs-volume-level").style.backgroundColor=e)},ie=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")},re=function(e,n){var t=Y(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",(function(n){var t,o,i,r,l,a=this.el(),s=videojs.dom.getPointerPosition(a,n).x;videojs.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var d=window.cast&&window.cast.framework&&window.cast.framework.CastSession,u=null===(t=window)||void 0===t||null===(o=t.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;if(console.log(d),d&&"CONNECTED"===u){window.cast.framework.RemotePlayer.canSeek=!0;var c=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),v=c.b.media[0].liveSeekableRange.end;c.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=v*s,c.seek()}}))},le=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden");var n=document.getElementsByClassName("vjs-big-play-button")[0];n&&(n.style.display="none");var t=document.getElementsByClassName("vjs-fullscreen-control")[0];t&&(t.style.display="none")},ae=function(){return navigator.userAgent.indexOf("Edg")>-1?"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"},se=function(e){var n=document.createElement("div");return n.innerHTML=e,n.children[0]},de=0,ue=-1,ce=function(e){var n,t;console.log(e,"HERRE"),ue++,clearTimeout(de);var o=null==e||null===(n=e.nextVideos)||void 0===n?void 0:n.content,i=null==e||null===(t=e.nextVideos)||void 0===t?void 0:t.cb,r=e.playerId,l=e.token;ue>o.length-1||function(e,n){var t=Y(e);t?t.one("ended",(function(){return n(!0)})):n("Cannot find player with id: '".concat(e,"'"))}(r,(function(){Z(r,o[ue].id,l).then((function(e){L(e.response),i&&i(e)})).catch((function(e){ue++,de=setTimeout((function(){ve(ue,r,o,l,i)}),3e3)}))}))},ve=function e(n,t,o,i,r){n>o.length-1||Z(t,o[n].id,i).then((function(e){r&&r(e)})).catch((function(n){setTimeout((function(){ue++,e(ue,t,o,i,r)}),3e3)}))};function fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}var me,pe=function(n,t,o,i){var r=i.res,l=i.sres,a=Y(n);L(r),a.on("loadeddata",(function(){var i,a,s,d=W();(x(),o.resolve(function(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):fe(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}({status:!0,msg:"Player Initialised"},l?{seriesResponse:l,response:r}:{response:r})),null!=t&&t.watchHistory&&null!=t&&null!==(i=t.watchHistory)&&void 0!==i&&i.enable&&!t.isAnonymousUser)&&H(n,t,null==d||null===(a=d.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.id);null!=t&&t.nextVideos&&ce(t)})),a.textTracks().on("change",(function(e){var n=this.tracks_.filter((function(e){if("subtitles"===e.kind&&"showing"===e.mode)return!0}))[0];a.trigger("subtitlechanged",n)})),a.on("subtitlechanged",(function(e,n){var t,o,i,r,l,a,s,d,u,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,f=null===(t=window)||void 0===t||null===(o=t.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,m=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"===f){var p,w=m.getMediaSession(),h=w.media.tracks.filter((function(e){return"TEXT"==e.type}));p=n?new chrome.cast.media.EditTracksInfoRequest([h[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),w.editTracksInfo(p)}})),a.on("loadedmetadata",(function(){window.endFirstFrame(a)})),a.one("error",(function(){var e,t;C(n,(null==a||null===(e=a.error())||void 0===e?void 0:e.message)||"Some error occured"),o.reject({status:!1,msg:(null==a||null===(t=a.error())||void 0===t?void 0:t.message)||"Some error occured"})})),a.one("play",(function(){null!=t&&t.watchHistoryResumeTime&&a.currentTime(null==t?void 0:t.watchHistoryResumeTime)}))},we=function(e,n){var t=null==n?void 0:n.skin;"live"==t?import("./skin-f8863b78.js").then((function(t){t.initialiseSkin(e,n)})):"default"==t?import("./skin-9a9d4bcb.js").then((function(t){t.initialiseSkin(e,n)})):"carousel"==t?import("./skin-eb4132aa.js").then((function(n){n.initaliseSkin(e)})):"defaultV2"==t&&import("./skin-1700a215.js").then((function(n){n.initialiseSkin(e)}))};function he(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ye(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?he(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):he(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function ge(){var a=function(n,a,s,d){var u,c,v,f,m,p,w,h,y,g,b,O,T=a.res,P=void 0===T?null:T,E=a.sres,I=void 0===E?null:E,k=(null===(u=window)||void 0===u||null===(c=u.cast)||void 0===c||null===(v=c.framework)||void 0===v||null===(f=v.CastContext)||void 0===f||null===(m=f.getInstance())||void 0===m?void 0:m.S)||void 0,S=null!=s&&s.chromecastReceiverId?"NO_DEVICES_AVAILABLE"!==k&&"NOT_CONNECTED"!==k?["html5","chromecast"]:["chromecast","html5"]:["html5"],j=null==P||null===(p=P.video)||void 0===p||null===(w=p.gist)||void 0===w?void 0:w.videoImageUrl,D=(null==P||null===(h=P.video)||void 0===h||null===(y=h.liveDetails)||void 0===y?void 0:y.isDvrEnabled)||!1,x=function(e){var n={};return null!=e&&e.series||null!=e&&e.chromecastReceiverId&&(n={chromecast:{receiverAppID:null==e?void 0:e.chromecastReceiverId,addButtonToControlBar:"default"==e.skin,buttonPositionIndex:-6,addCastLabelToButton:!0}}),null!=e&&e.airplay&&(n=te(te({},n),{},{airPlay:{addButtonToControlBar:"default"==e.skin,buttonPositionIndex:-1}})),n}(s),A=(null==P||null===(g=P.video)||void 0===g||null===(b=g.streamingInfo)||void 0===b?void 0:b.isLiveStream)||!1,R=(O={controls:!0,playsinline:!0,fluid:!0,autoplay:(null==s?void 0:s.autoplay)||!1,controlBar:{volumePanel:("default"==s.skin||"defaultV2"==s.skin||"live"==(null==s?void 0:s.skin))&&{inline:!1},fullscreenToggle:"default"==s.skin,pictureInPictureToggle:(s.skin,!1)},liveui:D},e(O,"autoplay",null==s?void 0:s.autoplay),e(O,"html5",{vhs:{limitRenditionByPlayerDimensions:!1},nativeTextTracks:!1}),e(O,"poster",j),e(O,"techOrder",S),e(O,"chromecast",{requestCustomDataFn:function(e){var t=Y(n);console.log(t.textTracksJson_);var o=t.textTracksJson_.filter((function(e){return"subtitles"==e.kind}));return function(e,n,t){var o,i,r,l,a,s,d,u,c,v,f={};if(e&&e.video&&e.video.drmEnabled){f.isDrmEnabled=!0;var m=n.keySystemOptions&&n.keySystemOptions[0]&&n.keySystemOptions[0].options&&n.keySystemOptions[0].options.serverURL;f.licenseUrl=m;var p=n.keySystemOptions&&n.keySystemOptions[0]&&n.keySystemOptions[0].options&&n.keySystemOptions[0].options.httpRequestHeaders["X-AxDRM-Message"];f.licenseToken=p}var w=(null==e||null===(o=e.video)||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";f.contentType=w;var h=null==e||null===(r=e.video)||void 0===r||null===(l=r.gist)||void 0===l?void 0:l.runtime;f.duration=h;var y=null==e||null===(a=e.video)||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;f.mediaTitle=y;var g=null==e||null===(d=e.video)||void 0===d||null===(u=d.gist)||void 0===u?void 0:u.videoImageUrl;return f.mediaImage=g,f.subTitles=t,f.DVR=(null==e||null===(c=e.video)||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(f),f}(P,e,o)}}),e(O,"plugins",x),O),H=i(n,R,function(){var e=t(o.mark((function e(){var t,a,u,c,v,f,m,p,w,h,y,g,b,O,T,E,k,S,j,x,F,B,M,N,_;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.initialise(H),window.firstFrame(H),"white"!==window.controlsColor&&oe(window.controlsColor,H),/Android|iPhone/i.test(navigator.userAgent)&&(i.options.hls.overrideNative=!0),k=null==P||null===(t=P.video)||void 0===t?void 0:t.drmEnabled,S=(null==P||null===(a=P.ads)||void 0===a||null===(u=a.preRoll)||void 0===u||null===(c=u.adTags)||void 0===c||null===(v=c.web)||void 0===v?void 0:v.active)&&(null==P||null===(f=P.ads)||void 0===f||null===(m=f.preRoll)||void 0===m||null===(p=m.adTags)||void 0===p||null===(w=p.web)||void 0===w?void 0:w.url),j=null==P||null===(h=P.video)||void 0===h||null===(y=h.liveDetails)||void 0===y?void 0:y.startOverTime,!k){e.next=13;break}if("Safari"!==detectBrowser()){e.next=11;break}return e.next=11,l();case 11:return e.next=13,r();case 13:D&&re(n,j),S&&initialiseAdvertisement(n,S),(x=V(P,n))?$(n,x):(d.reject({status:!1,msg:"Incompatible Source, only hls,mp4,drm content is allowed",response:P}),C(n,"Incompatible Source, only hls,mp4,drm content is allowed")),((null==P||null===(g=P.video)||void 0===g||null===(b=g.contentDetails)||void 0===b||null===(O=b.closedCaptions)||void 0===O?void 0:O.length)>0||(null==P||null===(T=P.video)||void 0===T||null===(E=T.closedCaptions)||void 0===E?void 0:E.length)>0)&&(_=(null==P||null===(B=P.video)||void 0===B||null===(M=B.contentDetails)||void 0===M?void 0:M.closedCaptions)||(null==P||null===(N=P.video)||void 0===N?void 0:N.closedCaptions),F=_.filter((function(e){return"VTT"===e.format})),Q(n,F)),null!=s&&s.disableControls?le():we(n,ye(ye(ye({},s),R),{},{liveVideo:A,isDvrEnabled:D,res:P,sres:I})),pe(n,ye(ye(ye({},s),R),{},{liveVideo:A}),d,{res:P,sres:I});case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}())};return{init:function(e){return new Promise((function(t,o){var i,r,l,s;if(!K(null==e?void 0:e.playerId)){var d=null==e?void 0:e.videoId,u=(null==e?void 0:e.series)||!1;window.videoId=d;var c=null==e?void 0:e.token;me=JSON.parse(atob(c.split(".")[1])),e.isAnonymousUser=!(null===(i=me)||void 0===i||!i.anonymousId),e.siteOwner=(null===(r=me)||void 0===r?void 0:r.site)||null,e.userId=(null===(l=me)||void 0===l?void 0:l.userId)||null,window.sessionStorage.setItem("uid",null===(s=me)||void 0===s?void 0:s.userId),window.watchHistory=e.watchHistory||null,sessionStorage.setItem("token",c);var v,f=null==e?void 0:e.playerId,m=e.chromecastReceiverId=null!=e&&e.series?null:null==e?void 0:e.chromecastReceiverId,w=null==e?void 0:e.airplay,h=null==e?void 0:e.apiBaseUrl,b=null==e?void 0:e.errors;b&&(window.customErrors=b),window.customData=null==e?void 0:e.customData,h&&(window.playerEntitlementUrl=h),window.controlsColor=(null==e?void 0:e.controlsColor)||"white",null!=e&&e.skin&&("live"===(v=e.skin)||"carousel"===v||"V2"===v||"defaultV2"===v)||(e.skin="default"),null!=e&&e.enableAdvertisements&&import("./library-ad46544b.js").then((function(e){e.importIMA()})),!m||null!=e&&e.series||import("./library-ad46544b.js").then((function(e){e.importChromecast()})),w&&import("./library-ad46544b.js").then((function(e){e.importAirplay()})),u?function(e,t){var o,i,r=JSON.parse(atob(t.split(".")[1])),l=r&&r.countryCode;return n({url:j(),params:p({id:e,deviceType:"web_browser",contentConsumption:"web",countryCode:l,episodeData:!0},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,c).then((function(n){var i=n.data.series,r=n.data.series.seasons[0].episodes[0].id;y(r,c).then((function(n){var r,l,s;window.contentType=null==n||null===(r=n.data)||void 0===r||null===(l=r.video)||void 0===l||null===(s=l.gist)||void 0===s?void 0:s.contentType,L(n.data),a(f,{res:null==n?void 0:n.data,sres:i},e,{resolve:t,reject:o})})).catch((function(e){ee(e,f,o)}))})).catch((function(e){ee(e,f,o)})):y(d,c).then((function(n){var i,r,l,s;window.contentType=null==n||null===(i=n.data)||void 0===i||null===(r=i.video)||void 0===r||null===(l=r.gist)||void 0===l?void 0:l.contentType,L(null==n?void 0:n.data);var u=null==n?void 0:n.data;null!=e&&e.watchHistory&&null!=e&&null!==(s=e.watchHistory)&&void 0!==s&&s.enable?g(d,c).then((function(n){var i,r,l,s,d;null!==(i=window)&&void 0!==i&&null!==(r=i.watchHistory)&&void 0!==r&&r.cb&&(null===(l=window)||void 0===l||null===(s=l.watchHistory)||void 0===s||s.cb(null==n?void 0:n.data)),e.watchHistoryResumeTime=(null==n||null===(d=n.data)||void 0===d?void 0:d.watchedTime)||null,a(f,{res:u},e,{resolve:t,reject:o})})).catch((function(n){var i,r,l,s;null!==(i=window)&&void 0!==i&&null!==(r=i.watchHistory)&&void 0!==r&&r.cb&&(null===(l=window)||void 0===l||null===(s=l.watchHistory)||void 0===s||s.cb(n)),a(f,{res:u},e,{resolve:t,reject:o})})):a(f,{res:u},e,{resolve:t,reject:o})})).catch((function(e){ee(e,f,o)}))}}))},isPlayerInitialised:K}}export{ge as V,X as a,W as b,se as c,ae as d,G as e,ie as f,Y as g,L as h,b as i,Z as l,q as p,J as r,z as s};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import t from"video.js";var n=function(e){return new Promise((function(r,t){if(i(e))t("Alread initialised");else{var n=document.createElement("script");n.async=!1,n.src=e,document.head.appendChild(n),r()}}))},i=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0};function o(){n("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),import("@silvermine/videojs-chromecast").then((function(e){e.default(t)}))}function s(){import("@silvermine/videojs-airplay").then((function(e){e.default(t)}))}function c(){import("videojs-contrib-ads"),import("videojs-ima"),n("https://imasdk.googleapis.com/js/sdkloader/ima3.js")}var a=function(){var t=e(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-dash");case 2:case"end":return e.stop()}}),e)})));return function(){return t.apply(this,arguments)}}(),u=function(){var t=e(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-eme");case 2:case"end":return e.stop()}}),e)})));return function(){return t.apply(this,arguments)}}();export{s as importAirplay,o as importChromecast,c as importIMA,a as loadDashLibrary,u as loadEMELibrary};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import i from"@babel/runtime/helpers/assertThisInitialized";import l from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/defineProperty";import s from"video.js";import{f as a,V as c}from"./index-a47a7dcc.js";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./library-ad46544b.js";function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,l=n(e);if(t){var r=n(this).constructor;i=Reflect.construct(l,arguments,r)}else i=l.apply(this,arguments);return o(this,i)}}var d=s.getComponent("Component"),m=function(o){l(m,d);var n=u(m);function m(t){var l,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,m),l=n.call(this,t,o),r(i(l),"multicamCssPositioning",(function(e,t){var o,n,r,s,a,c,u,d,m=window.getComputedStyle(document.getElementById(t),null),f=m.getPropertyValue("height"),p=m.getPropertyValue("width"),v=f.slice(0,-2);p.slice(0,-2)-135<=135?(e.style.bottom="290px",e.style.height="352px"):"live"==l.config.skin&&(null===(o=i(l))||void 0===o||null===(n=o.config)||void 0===n||!n.liveui)&&(null===(r=i(l))||void 0===r||null===(s=r.config)||void 0===s||!s.liveVideo)||null!==(a=i(l))&&void 0!==a&&null!==(c=a.config)&&void 0!==c&&c.liveui&&null!==(u=i(l))&&void 0!==u&&null!==(d=u.config)&&void 0!==d&&d.liveVideo?(e.style.bottom="".concat(v-135,"px"),e.style.height="".concat(v-85,"px")):(e.style.bottom="3rem",e.style.height="".concat(v-105,"px"))})),l.playerId=o.playerId,l.streams=null==o?void 0:o.streams,l.config=null==o?void 0:o.config,l.createUI(null==o?void 0:o.streams),l}return t(m,[{key:"createEl",value:function(){return s.dom.createEl("div",{className:"multicamera-parent"})}},{key:"createUI",value:function(e){var t,i,l,o,n,r,s=this,a=this.el();null!=this&&null!==(t=this.config)&&void 0!==t&&t.liveui&&null!=this&&null!==(i=this.config)&&void 0!==i&&i.liveVideo||0==(null==this||null===(l=this.config)||void 0===l?void 0:l.liveui)&&0==(null==this||null===(o=this.config)||void 0===o?void 0:o.liveVideo)?null==a||null===(n=a.classList)||void 0===n||n.add("".concat(this.config.skin)):null==a||null===(r=a.classList)||void 0===r||r.add("default"),this.loadCSS();for(var c=0;c<e.length;c++)this.createTile(e[c],c);this.multicamCssPositioning(a,this.playerId),window.onresize=function(){s.multicamCssPositioning(a,s.playerId)}}},{key:"getOffset",value:function(e){var t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}},{key:"createTile",value:function(e,t){var i=this,l=this.el(),o=s.dom.createEl("div",{className:"tile ".concat(t)});0==t&&(o.style.border="2px solid red"),o.style.backgroundImage="url(".concat(e.img,")"),s.dom.appendContent(l,o);var n=sessionStorage.getItem("token");return o.addEventListener("click",(function(t){a(i.playerId),i.removeSelectedTile();var l=document.getElementsByClassName("".concat(t.srcElement.className))[0];l&&(l.style.border="2px solid red"),c().load(i.playerId,e.id,n).then((function(e){c().play(i.playerId)}))})),l}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){import("./multicam-de741974.js").then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}}]),m}();export{m as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import l from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{f as s,V as i}from"./index-a47a7dcc.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./library-ad46544b.js";function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var l,r=n(e);if(t){var s=n(this).constructor;l=Reflect.construct(r,arguments,s)}else l=r.apply(this,arguments);return o(this,l)}}var c=r.getComponent("Component"),d=function(o){l(d,c);var n=a(d);function d(t){var l,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),(l=n.call(this,t,o)).playerId=o.playerId,l.config=o.config,l.createUI(null==o?void 0:o.config.streams),l}return t(d,[{key:"createEl",value:function(){return r.dom.createEl("div",{className:"mweb-potrait-parent"})}},{key:"createUI",value:function(e){var t,l,o,n,s,i,a,c,d=this.el(),u=1==(null==this||null===(t=this.config)||void 0===t?void 0:t.liveui)&&1==(null==this||null===(l=this.config)||void 0===l?void 0:l.liveVideo)||!(null!=this&&null!==(o=this.config)&&void 0!==o&&o.liveui)&&!(null!=this&&null!==(n=this.config)&&void 0!==n&&n.liveVideo)||!1;u?null==d||null===(s=d.classList)||void 0===s||s.add("dvr"):null==d||null===(i=d.classList)||void 0===i||i.add("nondvr");var m=r.dom.createEl("div",{className:"broadcast"});m.innerHTML="Broadcasts";var v=r.dom.createEl("div",{className:"potraittray hideMWebTray"});u?null==v||null===(a=v.classList)||void 0===a||a.add("dvr"):null==v||null===(c=v.classList)||void 0===c||c.add("nondvr"),v.style.width="".concat(window.innerWidth-50,"px");var p=r.dom.createEl("div",{className:"tilecontainer-potrait"});r.dom.appendContent(d,m),r.dom.appendContent(d,v),r.dom.appendContent(v,p),m.addEventListener("click",(function(){null!=v&&v.classList.contains("hideMWebTray")?(v.classList.remove("hideMWebTray"),d.style.background="darkgray"):(null==v||v.classList.add("hideMWebTray"),d.style.background="gray")})),this.loadCSS();for(var h=0;h<e.length;h++)this.createTile(e[h],h)}},{key:"createTile",value:function(e,t){var l=this,o=this.el(),n=r.dom.createEl("div",{className:"tile-potrait-mweb ".concat(t)});0==t&&(n.style.border="2px solid red"),n.style.backgroundImage="url(".concat(e.img,")");var a=r.dom.$(".tilecontainer-potrait",this.contentEl());r.dom.appendContent(a,n);var c=sessionStorage.getItem("token");return n.addEventListener("click",(function(t){s(l.playerId),l.removeSelectedTile();var o=document.getElementsByClassName("".concat(t.srcElement.className))[0];o&&(o.style.border="2px solid red"),i().load(l.playerId,e.id,c).then((function(e){i().play(l.playerId)}))})),o}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile-potrait-mweb"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){import("./mwebPotrait-3c1805d8.js").then((function(e){var t=document.createElement("style");t.className="mweb",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleProgressControls",value:function(e){var t=document.querySelector(".vjs-progress-control.vjs-control"),l=document.querySelector(".vjs-play-control.vjs-control.vjs-button"),o=document.querySelector(".vjs-remaining-time.vjs-time-control.vjs-control"),n=document.querySelector(".vjs-seek-to-live-control.vjs-control");e?(null==t||t.classList.add("hide-controls"),null==l||l.classList.add("hide-controls"),null==o||o.classList.add("hide-controls"),null==n||n.classList.add("hide-controls")):(null!=t&&t.classList.contains("hide-controls")&&(null==t||t.classList.remove("hide-controls")),null!=l&&l.classList.contains("hide-controls")&&(null==l||l.classList.remove("hide-controls")),null!=o&&o.classList.contains("hide-controls")&&(null==o||o.classList.remove("hide-controls")),null!=n&&n.classList.contains("hide-controls")&&(null==n||n.classList.remove("hide-controls")))}}]),d}();export{d as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{P as s}from"./icons-69676ab0.js";import"video.js/dist/video-js.min.css";import{l as a,h as d}from"./index-a47a7dcc.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/regenerator";import"axios";import"./library-ad46544b.js";function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=i(e);if(t){var s=i(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return o(this,n)}}var c=r.getComponent("Component"),p=function(o){n(a,c);var i=l(a);function a(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,a),(n=i.call(this,t,o)).playerId=o.playerId,n.seriesData=o.sres,n.currentVideoData=o.res,n.initialiseStructure(),n.loadCSS(),n}return t(a,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"play-next"}),t=r.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(s(window.controlsColor?window.controlsColor:"white"))});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.js").then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=r.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=r.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),o=r.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=r.dom.createEl("div",{className:"next-eps-image"}),s=r.dom.createEl("div",{className:"next-eps-description"});r.dom.appendContent(o,i),r.dom.appendContent(o,s),r.dom.appendContent(t,n),r.dom.appendContent(t,o),this.toggleContentOnHover(e,t),r.dom.appendContent(e,t)}},{key:"toggleContentOnHover",value:function(e,t){e.addEventListener("mouseover",(function(){r.dom.removeClass(t,"nextepisode-hidden")})),t.addEventListener("mouseover",(function(){r.dom.removeClass(t,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){r.dom.addClass(t,"nextepisode-hidden")})),t.addEventListener("mouseout",(function(){r.dom.addClass(t,"nextepisode-hidden")}))}}]),a}(),u=function(e,t){var n=m(e,t.video.gist.id),o=f(e[n],t.video.gist.id),i=v(e[n],o);h(i.nextEp)},m=function(e,t){for(var n=-1,o=0;o<e.length;o++)for(var i=0;i<e[o].episodes.length;i++)if(e[o].episodes[i].id===t){n=o;break}return n},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;if(!(e&&t>=0))return{prevEp:null,nextEp:null};var n=e.episodes.length,o=t-1>=0?t-1:n-1,i=(t+1)%n,r=n>1?e.episodes[o]:null,s=n>1?e.episodes[i]:null;return o===i&&(0===o?s=null:r=null),{prevEp:r,nextEp:s,prevEpIdx:o,nextEpIdx:i}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=null;return e?(e.episodes.forEach((function(e,o){e.gist.id===t&&(n=o)})),n):null},h=function(e){r.dom.$(".next-eps"),r.dom.$(".play-next").onclick=function(){var t=sessionStorage.getItem("token");a("my-player",e.gist.id,t).then((function(e){d(e.response)}))},r.dom.$(".next-eps-image").innerHTML="<img src=".concat(e.gist.videoImageUrl,"/>"),r.dom.$(".next-eps-description").innerHTML="<div class='next-eps-title'>".concat(e.title,"</div>\n <div class='next-eps-description-details'>").concat(e.gist.description,"</div>")};export{p as default,u as initaliseFunctionality};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import i from"@babel/runtime/helpers/assertThisInitialized";import o from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import d from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/defineProperty";import l from"video.js";import{d as s,g as c}from"./index-a47a7dcc.js";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./library-ad46544b.js";function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}var h=l.getComponent("Component"),m=function(a){o(c,h);var d=u(c);function c(n){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,c),o=d.call(this,n,a),r(i(o),"masterRenditions",[]),r(i(o),"addCustomFont",(function(e){var t=l.dom.createEl("div",{className:"font hideCustomFonts"}),n=l.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});l.dom.appendContent(t,n);var i=l.dom.createEl("div",{className:"font-options"});i.style.fontSize="12px",o.fontSizeOptions.map((function(e,t){var n=l.dom.createEl("div",{className:"options",innerHTML:'<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=').concat(e,' name="item" />\n <label class="radio-btn-lable" for=').concat(e,">").concat(e,"pt</label>\n </div>")});n.addEventListener("click",(function(e){var t=e.target.id;o.changeFontSize(t)})),l.dom.appendContent(i,n)})),l.dom.appendContent(t,i),l.dom.appendContent(e,t)})),r(i(o),"resetRenditions",(function(){e(document.getElementsByClassName("rendition")).map((function(e){l.dom.removeClass(e,"selected")}))})),o.playerId=null==a?void 0:a.playerId,o.skin=null==a?void 0:a.skin,o.icon=null==a?void 0:a.icon,o.masterRenditions=[],o.fontSizeOptions=[10,12,14],o.createRenditions(a.renditions),window.height=null,o}return n(c,[{key:"toggleContentOnHover",value:function(e,t){var n=l.dom.$(".setting-icon",e);n.addEventListener("mouseover",(function(){l.dom.removeClass(t,"hidden")})),t.addEventListener("mouseover",(function(){l.dom.removeClass(t,"hidden")})),n.addEventListener("mouseout",(function(){l.dom.addClass(t,"hidden")})),t.addEventListener("mouseout",(function(){l.dom.addClass(t,"hidden")}))}},{key:"changeFontSize",value:function(e){var t=l.dom.$(".renditions",this.contentEl()),n=l.dom.$(".font-options",this.contentEl());t.style.fontSize="".concat(e,"px"),n.style.fontSize="".concat(e,"px")}},{key:"createRenditions",value:function(e){var t=this,n=this.el();l.dom.$(".setting-icon",this.el()).innerHTML="".concat(this.icon," ").concat("live"===this.skin?"&nbsp Settings":""," ");var i=l.dom.createEl("div",{className:"content hidden"}),o=l.dom.createEl("div",{innerHTML:"Quality",className:"title"}),a=l.dom.createEl("div",{className:"resolution"});l.dom.appendContent(a,o),this.toggleContentOnHover(n,i);var d=l.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(e.map((function(e,n){var i,o=l.dom.createEl("div",{className:"relative"}),a=((null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes["AVERAGE-BANDWIDTH"])/1048576).toFixed(1),r="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");r="".concat(e.height,"p @ ").concat(a,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");var s=l.dom.createEl("p",{innerHTML:r,className:"rendition",res:e.height,bandwidth:e.bandwidth});l.dom.appendContent(o,s),l.dom.appendContent(d,o),s.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,p(t.playerId,e.target),l.dom.addClass(s,"selected"))}))})),this.addAutoRendition("nondrm",d),"Safari"!=s()&&this.addDynamicSwitchIfAuto()):(e.map((function(e,n){var i=l.dom.createEl("div",{className:"relative"}),o=(e.bitrate/1e6).toFixed(1),a="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");window.enableResolutionsBitrate&&(a="".concat(e.height,"p @ ").concat(o,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":""));var r=l.dom.createEl("p",{innerHTML:a,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});l.dom.appendContent(i,r),l.dom.appendContent(d,i),r.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.selectedVideo=e.target.video,window.qualityIndex=e.target.qualityIndex,p(t.playerId,e.target),l.dom.addClass(r,"selected"))}))})),this.addAutoRendition("drm",d)),l.dom.appendContent(a,d),l.dom.appendContent(i,a),l.dom.appendContent(n,i)}},{key:"addDynamicSwitchIfAuto",value:function(){for(var e,t=this.player_.textTracks(),n=0;n<t.length;n++)"segment-metadata"===t[n].label&&(e=t[n]);var i=null;e&&e.on("cuechange",(function(){var t=e.activeCues[0];if(t&&document.querySelector(".auto.selected")){var n,o,a,d,r,l,s,c;if(null!=t&&null!==(n=t.value)&&void 0!==n&&null!==(o=n.resolution)&&void 0!==o&&o.height&&i!==(null==t||null===(a=t.value)||void 0===a||null===(d=a.resolution)||void 0===d?void 0:d.height))document.querySelector(".auto.selected").innerHTML="Auto ".concat(null==t||null===(s=t.value)||void 0===s||null===(c=s.resolution)||void 0===c?void 0:c.height,"p");i=null==t||null===(r=t.value)||void 0===r||null===(l=r.resolution)||void 0===l?void 0:l.height}}))}},{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"container"}),t=l.dom.createEl("div",{className:"setting-icon"});return l.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var i,o,a,d,r=null===(i=this.player_)||void 0===i||null===(o=i.tech_)||void 0===o?void 0:o.vhs.selectPlaylist().attributes.RESOLUTION.height,s=null===(a=this.player_)||void 0===a||null===(d=a.tech_)||void 0===d?void 0:d.vhs.selectPlaylist().attributes.BANDWIDTH,c=l.dom.createEl("div",{className:"relative"}),u=l.dom.createEl("p",{innerHTML:"Auto ".concat(r,"p"),className:"rendition auto selected",bandwidth:s,res:r});u.addEventListener("click",(function(e){window.height!==e.target.res&&(n.resetRenditions(),l.dom.addClass(u,"selected"),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,p(n.playerId,null,!0))})),l.dom.appendContent(c,u),l.dom.appendContent(t,c)}else{var h=l.dom.createEl("div",{className:"relative"}),m=l.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});m.addEventListener("click",(function(e){n.resetRenditions(),l.dom.addClass(m,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,p(n.playerId,null,!0)})),l.dom.appendContent(h,m),l.dom.appendContent(t,h)}}}]),c}(),p=function(e,t,n){var i,o=c(e),a=null==t?void 0:t.bandwidth;if((null==o||null===(i=o.tech_)||void 0===i?void 0:i.vhs)||!1){o.tech_.vhs.representations().forEach((function(e){n||e.bandwidth===a?e.enabled(!0):e.enabled(!1)})),o.handleTechPlaying_();var d=o.currentTime();o.currentTime(0),setTimeout((function(){o.currentTime(d),o.play()}),100);var r=l.dom.$(".content");r&&l.dom.addClass(r,"hidden")}else{var s=null==t?void 0:t.qualityIndex;if(n){var u,h;null==o||null===(u=o.dash)||void 0===u||null===(h=u.mediaPlayer)||void 0===h||h.resetSettings()}else{var m,p,v,g;null==o||null===(m=o.dash)||void 0===m||null===(p=m.mediaPlayer)||void 0===p||p.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==o||null===(v=o.dash)||void 0===v||null===(g=v.mediaPlayer)||void 0===g||g.setQualityFor("video",s,!0);var f=o.currentTime();o.currentTime(0),setTimeout((function(){o.currentTime(f),o.play()}),100);var y=l.dom.$(".content");y&&l.dom.addClass(y,"hidden")}}};export{m as default,p as playSelectedResolution};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/defineProperty";import c from"@babel/runtime/regenerator";import l from"video.js";import{i as d,e as p,f as v,l as u,h as m,p as f}from"./index-a47a7dcc.js";import"video.js/dist/video-js.min.css";import{E as h}from"./icons-69676ab0.js";import"axios";import"./library-ad46544b.js";function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=o(e);if(t){var s=o(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return r(this,i)}}var y,b=l.getComponent("Component"),L=function(e){s(o,b);var r=g(o);function o(e){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,o),i=r.call(this,e,s),a(n(i),"seriesData",[]),i.seriesData=s.seriesData,y=s.playerId;var c=i.el();return x(c,i.seriesData),i}return i(o,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}}]),o}();function w(){return(w=e(c.mark((function e(t,i,n,s){var r;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=sessionStorage.getItem("token"),p(y),v(y),u(y,i,r).then((function(e){m(e.response),f(y)}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e,t,i,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),o=document.getElementById("episode-container");e.id;var a=e.episodes.map((function(e,t){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(t+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join(""),c=a;o.innerHTML=c,function(e){d(e).then((function(e){var t=e.data,i=document.querySelectorAll("#progress-div");i&&t.map((function(e,t){e&&e.watchedPercentage&&i[t]&&(i[t].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var l=document.querySelectorAll(".details-wrapper"),p=document.querySelectorAll("#episode-title"),v=document.querySelectorAll(".meta-details"),u=document.querySelector("#episodes-back-btn"),m=e.id,f=e.episodes;u.addEventListener("click",(function(){return function(e,t){e.classList.remove("hide-container"),t.classList.add("hide-container")}(s,r)}));for(var h=function(t){l[t].addEventListener("click",(function(){return function(e,t,i){var n=t.querySelector(".meta-details");t.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),i.forEach((function(t,n){n!==e&&(i[n].classList.remove("episode-active"),i[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(t,p[t],p)})),v[t].addEventListener("click",(function(){return function(e,t,i,n){return w.apply(this,arguments)}(t,f[t].id,i,p)})),e.episodes[t].id==m&&p[t].classList.add("highlight-active-eps")},g=0;g<l.length;g++)h(g)}function x(e,t){e.innerHTML='<div class="hover-div"></div>\n '.concat(h(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map((function(e,t){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(t),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>')}export{x as customSeasonList,k as handleSeasonChange,L as seriesModule};
@@ -1 +0,0 @@
1
- import{c as e,k as t,i as r,h as o,e as n,l as a,M as s,b as l,C as i,m,n as d}from"./icons-69676ab0.js";import{g as p,c}from"./index-a47a7dcc.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./library-ad46544b.js";function u(u){import("./skin-6a53f0dd.js").then((function(e){var t=document.createElement("style");t.id="default_v2",t.append("".concat(e.default)),document.head.appendChild(t)})),function(r){p(r).one("loadedmetadata",(function(){e(r,"defaultV2",t())}))}(u),function(e){var t=p(e);t.controlBar.getChild("FullscreenToggle").el().appendChild(c(s(window.controlsColor))),t.controlBar.getChild("FullscreenToggle").el().appendChild(c(l(window.controlsColor)));var r=t.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(i()));var o=document.createElement("div");o.classList.add("caption-header"),r.querySelector(".vjs-menu-content").insertBefore(o,r.querySelector(".vjs-menu-item"))}(u),function(e){r(e,"defaultV2",m()),o(e,"defaultV2",d()),n(e),a(e)}(u)}export{u as initialiseSkin};
@@ -1 +0,0 @@
1
- var n=".vjs-button>.vjs-icon-placeholder:before {\n font-size: 2.2em;\n line-height: 2.6;\n}\n.vjs-control-bar{\n z-index: 0 !important;\n height: 6em !important;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%) !important;\n}\n\n.video-js .vjs-progress-control {\n left: -6px;\n position: absolute;\n width: 100%;\n height: 0.5em;\n top: -0.5em;\n transition: height .1s,top .1s;\n}\n\n.video-js .vjs-custom-control-spacer {\n display: block;\n flex: 1 1 auto;\n}\n\n.vjs-remaining-time.vjs-time-control.vjs-control {\n position: absolute;\n right: 0;\n bottom: 18px;\n}\n\n.video-js .vjs-progress-control .vjs-progress-holder {\n margin: 0 41px 0 14px;\n}\n.vjs-remaining-time.vjs-time-control.vjs-control{\n display: none;\n}\n\nbutton.vjs-control.vjs-button.vjs-slowmo-button {\n font-size: 14px;\n font-weight: 500;\n}\n\n.video-js .vjs-progress-control .vjs-progress-holder{\n height: 6px !important;\n}\n\n.video-js .vjs-play-progress:before {\n font-size: 1.9em;\n}\n\n.video-js .vjs-current-time { display: block; }\n\n.video-js .vjs-current-time {\n display: block;\n position: absolute;\n right: 0em;\n bottom: 1.8em;\n font-size: 12px;\n font-weight: 600;\n}\n\n.video-js .vjs-button{\n width: 6em;\n}\n\nbutton.vjs-control.vjs-button.vjs-slowmo-button{\n align-self: center;\n height: min-content;\n padding: 5px 2px;\n border-radius: 8px;\n}\n\n\n\n.video-js .vjs-fullscreen .icon-maximize,\n.icon-minimize {\n display: none;\n height: 32px;\n}\n\n.video-js .vjs-fullscreen .icon-minimize,\n.icon-maximize {\n display: block;\n height: 32px;\n}\n\n.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,\n.vjs-icon-fullscreen-enter:before {\n content: '' !important;\n}\n\n.video-js button.vjs-fullscreen-control.vjs-control.vjs-button {\n display: flex;\n justify-content: center;\n align-items: center;\n transform: rotate(90deg);\n}\n\n.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before{\n display: none;\n}\n.video-js .vjs-volume-panel .vjs-volume-control{\n margin-left: -10px;\n}\n\n.skipbtn:hover{\n cursor: pointer;\n}\n\n.rewindbtn:hover{\n cursor: pointer;\n}\n\n.vjs-live-control{\n position: absolute !important;\n right: 0em !important;\n background-color: none;\n bottom: 1.8em !important;\n}\n\n.vjs-seek-to-live-control.vjs-control{\n position: absolute !important;\n right: 0em !important;\n background-color: none;\n bottom: 3.2em !important;\n}\n\n.vjs-seek-to-live-control.vjs-control >span.vjs-icon-placeholder{\n display:none;\n}\n\n\n.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{\n color: #ff5858;\n font-weight: bold;\n}\n\n.vjs-menu > ul.vjs-menu-content{\n bottom: 3.5em !important;\n right: -1em;\n}\n\n.vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button{\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\nbutton.vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-button{\n height: min-content;\n width: min-content;\n}";export{n as default};
@@ -1 +0,0 @@
1
- import{c as e,f as t,g as s,S as o,h as n,i,M as r,b as l,N as a,j as d,R as m}from"./icons-69676ab0.js";import{i as u}from"./keyboardShortcuts-fccb5c56.js";import{g as p,b as c,c as v}from"./index-a47a7dcc.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./library-ad46544b.js";function b(b,h){u(b,h),import("./skin-cd537931.js").then((function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e,t){0==t.liveVideo&&0==t.liveui&&n(e,"default",d());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",m())}(b,h),function(n,i){var r=p(n),l=(null==i?void 0:i.sres)||null;r.on("loadeddata",(function(){e(n,"default",o()),l&&import("./nextEpisodeButton-c13fef92.js").then((function(e){e.initaliseFunctionality(i.sres.seasons,c())}))})),r.one("loadedmetadata",(function(){var e;l&&(t(n,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),s(i.sres,i.res,n))}))}(b,h),function(e,t){var s=p(e),o=document.getElementsByClassName("vjs-current-time")[0],n=document.getElementsByClassName("vjs-duration")[0],i=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(o&&(o.style.display="none"),n&&(n.style.display="none"),i&&(i.style.display="none"));s.controlBar.getChild("FullscreenToggle").el().appendChild(v(r(window.controlsColor))),s.controlBar.getChild("FullscreenToggle").el().appendChild(v(l(window.controlsColor)));var d=s.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(v(a()));var m=document.createElement("div");m.classList.add("caption-header"),d.querySelector(".vjs-menu-content").insertBefore(m,d.querySelector(".vjs-menu-item"))}(b,h)}export{b as initialiseSkin};
@@ -1 +0,0 @@
1
- import{g as e,p as t,e as n}from"./index-a47a7dcc.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"./library-ad46544b.js";function i(i){import("./skin-2c638dc1.js").then((function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)})),function(t){var n=e(t);n.muted(!0)}(i),o(),function(i){var o=document.getElementById("".concat(i)),r=e(i);o&&o.addEventListener("touchstart",(function(){r.paused()?t(i):n(i)}))}(i)}var o=function(){document.getElementsByClassName("vjs-control-bar")[0].style.visibility="hidden"};export{i as initaliseSkin};
@@ -1 +0,0 @@
1
- import{a as e,M as t,b as n,c as s,d as o,S as l,e as r,N as a}from"./icons-69676ab0.js";import{i}from"./keyboardShortcuts-fccb5c56.js";import{g as c,c as u,d}from"./index-a47a7dcc.js";import m from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"video.js/dist/video-js.min.css";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./library-ad46544b.js";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(r,a){var i=c(r);i.one("play",(function(){null!=a&&a.streams&&e(r,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){m(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&&i.addChild("airPlayButton"),null!=a&&a.chromecastReceiverId&&i.addChild("chromecastButton"),i.addChild("FullscreenToggle"),i.getChild("FullscreenToggle").el().appendChild(u(t(window.controlsColor))),i.getChild("FullscreenToggle").el().appendChild(u(n(window.controlsColor))),h(r)})),i.on("loadedmetadata",(function(){window.endFirstFrame(i),"Safari"!==d()&&s(r,"live",l())})),i.one("loadedmetadata",(function(){var e;null!=a&&a.streams&&(null==a||null===(e=a.streams)||void 0===e?void 0:e.length)>=2&&o(r,a)}))}function b(e,t){var n;i(e,t),(null==(n=t)||!n.liveui)&&(null==n||!n.liveVideo)||null!=n&&n.liveui&&null!=n&&n.liveVideo?import("./dvr_skin-aa3423c5.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-d3e78be2.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){r(e)}(e),function(e,t){var n=c(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 l=document.createElement("div");if(l.innerText="Captions",l.className="fs14",document.getElementsByClassName("vjs-subs-caps-button")[0].appendChild(l),"Safari"==d()){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 f;function h(e){var t=c(e);g(),t.on("pause",(function(){clearTimeout(f),y()})),t.on("play",(function(){g()}));var n=document.getElementById("".concat(e));n.addEventListener("mouseenter",(function(){y(),t.paused()||g()})),n.addEventListener("touchstart",(function(){y(),g()})),n.addEventListener("mousemove",(function(){y(),t.paused()||g()}))}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 g(){var e=document.getElementsByClassName("vjs-chromecast-button")[0],t=document.getElementsByClassName("vjs-fullscreen-control")[0],n=document.getElementsByClassName("vjs-airplay-button")[0];clearTimeout(f),f=setTimeout((function(){null==e||e.classList.add("hideoutsidecontrols"),null==t||t.classList.add("hideoutsidecontrols"),null==n||n.classList.add("hideoutsidecontrols")}),2200)}export{h as hideControls,b as initialiseSkin};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{E as s,o as c}from"./icons-69676ab0.js";import{g as r,V as d}from"./index-a47a7dcc.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./library-ad46544b.js";function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,i=o(e);if(t){var s=o(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return n(this,a)}}var m=i.getComponent("Component"),p=function(n){a(p,m);var o=l(p);function p(t){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,p),(a=o.call(this,t,n)).playerId=n.playerId,a.seriesData=n.sres,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a}return t(p,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"}),t=i.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(s())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-eb5d208d.js").then((function(e){var t=document.createElement("style");t.id="video-selecton",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=i.dom.createEl("div",{className:"selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var a;null!==(a=t.classList)&&void 0!==a&&a.contains("hidden")?(t.classList.remove("hidden"),e.classList.add("open")):(t.classList.add("hidden"),e.classList.remove("open"))};var a=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(a,"px"),i.dom.appendContent(e,t),this.addFunctionality(t)}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,a=this.el(),n=i.dom.createEl("div",{className:"video-selector-head"}),o=i.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(c())});o.onclick=function(){e.classList.add("hidden"),a.classList.remove("open")};for(var s=i.dom.createEl("div",{className:"video-selector-title",innerHTML:"Recommended"}),l=i.dom.createEl("div",{className:"video-selector-content"}),m=[{id:"654b358b-7b80-4c99-a38e-8440c3c18a38",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2022/09/28/1664345563186_bsc_thumb_1280x720_16x9Images.jpg"},{id:"6111c33b-8da0-4e42-9498-15334649ddd2",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2022/09/22/1663859364175_pantools_1280x720_16x9Images.jpg"},{id:"84eb4e6f-bed8-40eb-b949-70582c080da5",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2023/01/12/1673508804695_bprk_1280x720_16x9Images.jpg"},{id:"a2fdbc9a-f67b-4aba-8949-de847a443c03",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2023/01/2/1672646065786_1280x720_16x9Images.jpg"},{id:"6111c33b-8da0-4e42-9498-15334649ddd2",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2022/09/22/1663859364175_pantools_1280x720_16x9Images.jpg"},{id:"84eb4e6f-bed8-40eb-b949-70582c080da5",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2023/01/12/1673508804695_bprk_1280x720_16x9Images.jpg"},{id:"a2fdbc9a-f67b-4aba-8949-de847a443c03",img:"https://snagfilms-a.akamaihd.net/7fa0ea9a-9799-4417-99f5-cbb5343c551d/images/2023/01/2/1672646065786_1280x720_16x9Images.jpg"}],p=function(e){var a=i.dom.createEl("div",{className:"parent -".concat(e)}),n=i.dom.createEl("div",{className:"recommended -".concat(e)});n.onclick=function(){var a=i.dom.$$(".recommended");console.log(a);for(var o=0;o<a.length;o++)a[o].style.border="none";n.style.border="2px solid white",d().load(t.playerId,m[e].id,sessionStorage.getItem("token")).then((function(e){console.log(e),console.log(a)})).catch((function(e){console.log(e)}))},n.style.backgroundImage="url(".concat(m[e].img,")");var o=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"VIDEO ".concat(e+1)});i.dom.appendContent(a,n),i.dom.appendContent(a,o),i.dom.appendContent(l,a)},u=0;u<m.length;u++)p(u);i.dom.appendContent(n,o),i.dom.appendContent(n,s),i.dom.appendContent(e,n),i.dom.appendContent(e,l),r(this.playerId).on("fullscreenchange",(function(){var a=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(a,"px")}))}}]),p}();export{p as default};
@@ -1 +0,0 @@
1
- var n=".video-selection{\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.video-selector-icon{\n cursor: pointer;\n}\n\n.selection-container{\n position: absolute;\n /* height: 528px; */\n width: 400px;\n right: -120px;\n bottom: 0px;\n /* background: #626262; */\n\n /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%) !important; */\n background: #00000080 !important;\n z-index: -1;\n}\n\n.selection-container.hidden{\n display: none !important;\n}\n\n.video-selection.open{\n background: rgba(255, 255, 255, 0.20) !important;\n}\n\n.video-selector-head{\n display: flex;\n align-items: center;\n padding-top: 18px;\n padding-left: 20px;\n margin-bottom: 20px;\n}\n\n.video-selector-title{\n font-size: 23px;\n margin-left: 25px;\n user-select: none;\n}\n\n.video-selector-cross-icon{\n cursor: pointer;\n}\n.video-selector-content{\n height: 74%;\n overflow: scroll;\n /* background: yellowgreen; */\n}\n\n.video-selector-content::-webkit-scrollbar {\n display: none;\n }\n \n /* Hide scrollbar for IE, Edge and Firefox */\n .video-selector-content {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n }\n\n.video-selector-content-video{\n height: 300px;\n margin-bottom: 30px;\n /* background: red; */\n}\n\n.recommended{\n height: 175px;\n width: 309px;\n background-repeat: no-repeat;\n background-size: contain;\n /* margin: 21px -2px -23px 35px; */\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: 15px;\n padding: 7px;\n}";export{n as default};