@viewlift/player-backup 2.0.38-backup → 2.0.38-smarttv
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/autoNextVideo-17e9c827.js +1 -0
- package/cjs/browser-aa8ef172.js +1 -0
- package/cjs/bundle.css +103 -117
- package/cjs/caption-settings-9e3eaa49.js +1 -0
- package/cjs/captions-d160e397.js +1 -0
- package/cjs/features-e8ff154f.js +1 -0
- package/cjs/generic-90e67a4c.js +1 -0
- package/cjs/icons-9e9e6364.js +1 -0
- package/cjs/index-2e762039.js +1 -0
- package/cjs/index-7655d9c5.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/keyboardShortcuts-c2f8ca74.js +1 -0
- package/cjs/multicamv2-115eaabb.js +1 -0
- package/cjs/multicamv2-cea3ccbb.js +1 -0
- package/cjs/nextEpisodeButton-8050e8ab.js +1 -0
- package/cjs/playlist-1fda85f2.js +1 -0
- package/cjs/renditions-6ca861f3.js +1 -0
- package/cjs/resolution-d093453e.js +1 -0
- package/cjs/series-991adff5.js +1 -0
- package/cjs/series-v2-7b8b0b7b.js +1 -0
- package/cjs/series-v2-f2a6d9a0.js +1 -0
- package/cjs/settings-icon-6b46bc3a.js +1 -0
- package/cjs/skin-348036b3.js +1 -0
- package/cjs/skin-382811c3.js +1 -0
- package/cjs/skin-49458492.js +1 -0
- package/cjs/skin-5b10125d.js +1 -0
- package/cjs/skin-614a05c7.js +1 -0
- package/cjs/skin-b28fa2ec.js +1 -0
- package/cjs/skin-cef78ff3.js +1 -0
- package/cjs/util-1f5115f2.js +1 -0
- package/cjs/videoSelector-4e8a3c62.js +1 -0
- package/cjs/videoSelector-f07641b0.js +1 -0
- package/cjs/videojs_contrib_dash-52d8a5ce.js +1 -0
- package/esm/autoNextVideo-b1b3db93.js +1 -0
- package/esm/browser-65e5d36c.js +1 -0
- package/esm/bundle.css +103 -117
- package/esm/caption-settings-f5d62f95.js +1 -0
- package/esm/captions-2bcc449f.js +1 -0
- package/esm/features-a5258464.js +1 -0
- package/esm/generic-ca913bb9.js +1 -0
- package/esm/icons-68d3a609.js +1 -0
- package/esm/index-0e9e7f29.js +1 -0
- package/esm/index-a680c0dd.js +1 -0
- package/esm/index.js +1 -1
- package/esm/keyboardShortcuts-1d5ca3ca.js +1 -0
- package/esm/multicamv2-55ff5073.js +1 -0
- package/esm/multicamv2-81f5201e.js +1 -0
- package/esm/nextEpisodeButton-3715939a.js +1 -0
- package/esm/playlist-019ace4e.js +1 -0
- package/esm/renditions-7724f87c.js +1 -0
- package/esm/resolution-608d4334.js +1 -0
- package/esm/series-0dfdf1d6.js +1 -0
- package/esm/series-v2-1f3dd04d.js +1 -0
- package/esm/series-v2-856160cb.js +1 -0
- package/esm/settings-icon-d0cba728.js +1 -0
- package/esm/skin-159bdc20.js +1 -0
- package/esm/skin-43755201.js +1 -0
- package/esm/skin-5134b789.js +1 -0
- package/esm/skin-9e2f78f2.js +1 -0
- package/esm/skin-adfb18cb.js +1 -0
- package/esm/skin-b3169389.js +1 -0
- package/esm/skin-eb7d4238.js +1 -0
- package/esm/util-7ef0c31b.js +1 -0
- package/esm/videoSelector-c397bb2f.js +1 -0
- package/esm/videoSelector-d3efbe32.js +1 -0
- package/esm/videojs_contrib_dash-473e13ca.js +1 -0
- package/package.json +1 -1
- package/cjs/autoNextVideo-f43d3c6b.js +0 -1
- package/cjs/browser-77c57718.js +0 -1
- package/cjs/caption-settings-be714e97.js +0 -1
- package/cjs/captions-07bd3069.js +0 -1
- package/cjs/features-97b9ddd3.js +0 -1
- package/cjs/generic-d5a358b3.js +0 -1
- package/cjs/icons-1a3febef.js +0 -1
- package/cjs/index-84cce26a.js +0 -1
- package/cjs/index-bab9264c.js +0 -1
- package/cjs/index-ff62e3f1.js +0 -1
- package/cjs/multicamv2-27a1f79a.js +0 -1
- package/cjs/multicamv2-e061b01b.js +0 -1
- package/cjs/nextEpisodeButton-9149040d.js +0 -1
- package/cjs/playlist-f9f44391.js +0 -1
- package/cjs/renditions-fed22c12.js +0 -1
- package/cjs/resolution-e46c9615.js +0 -1
- package/cjs/series-0ddcd078.js +0 -1
- package/cjs/series-v2-9caf000c.js +0 -1
- package/cjs/series-v2-e23e32e1.js +0 -1
- package/cjs/settings-icon-70f8857a.js +0 -1
- package/cjs/skin-0a56d50e.js +0 -1
- package/cjs/skin-1d925909.js +0 -1
- package/cjs/skin-2edd7170.js +0 -1
- package/cjs/skin-3544db58.js +0 -1
- package/cjs/skin-8bfd28a5.js +0 -1
- package/cjs/skin-9337f348.js +0 -1
- package/cjs/skin-d465fffd.js +0 -1
- package/cjs/util-ef2cd61e.js +0 -1
- package/cjs/videoSelector-2f34f31e.js +0 -1
- package/cjs/videoSelector-62fd5fa1.js +0 -1
- package/cjs/videojs_contrib_dash-5ac53a44.js +0 -1
- package/esm/autoNextVideo-a02e0bce.js +0 -1
- package/esm/browser-d4613b36.js +0 -1
- package/esm/caption-settings-4ab479b0.js +0 -1
- package/esm/captions-b7fd8308.js +0 -1
- package/esm/features-ce8f391c.js +0 -1
- package/esm/generic-c74188d9.js +0 -1
- package/esm/icons-8e47e640.js +0 -1
- package/esm/index-5d92eaa3.js +0 -1
- package/esm/index-c9b8e971.js +0 -1
- package/esm/index-e9390d8f.js +0 -1
- package/esm/multicamv2-8b4670ee.js +0 -1
- package/esm/multicamv2-d46580c3.js +0 -1
- package/esm/nextEpisodeButton-1016717d.js +0 -1
- package/esm/playlist-5874bf55.js +0 -1
- package/esm/renditions-4c09c626.js +0 -1
- package/esm/resolution-920515d1.js +0 -1
- package/esm/series-c42e7202.js +0 -1
- package/esm/series-v2-0329b92a.js +0 -1
- package/esm/series-v2-1d2ad120.js +0 -1
- package/esm/settings-icon-366126fa.js +0 -1
- package/esm/skin-58b9263c.js +0 -1
- package/esm/skin-7cb0aacc.js +0 -1
- package/esm/skin-7fcbc562.js +0 -1
- package/esm/skin-82110b92.js +0 -1
- package/esm/skin-c7e4615b.js +0 -1
- package/esm/skin-f66d3f4d.js +0 -1
- package/esm/skin-f790ba88.js +0 -1
- package/esm/util-80257541.js +0 -1
- package/esm/videoSelector-2feea699.js +0 -1
- package/esm/videoSelector-fe5e1c99.js +0 -1
- package/esm/videojs_contrib_dash-a82e8b26.js +0 -1
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"video.js/dist/video-js.min.css";import"./generic-c74188d9.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";export{V as default}from"./index-c9b8e971.js";import"./util-80257541.js";import"./captions-b7fd8308.js";import"./renditions-4c09c626.js";import"./resolution-920515d1.js";import"./skin-58b9263c.js";import"./browser-d4613b36.js";import"./localisation-0bf399a1.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./icons-8e47e640.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";
|
|
1
|
+
import"video.js/dist/video-js.min.css";import{g as e,a as n,b as t,c as o,d as i,s as l,e as r,l as a,f as s,h as u,i as c,j as d,k as v,m,n as p,o as f,p as b,q as h,r as y,t as g,u as w,v as k,w as j,x as T,y as I,z as S,A as x,B as E,C,D,E as R,F as N,G as P,H as A,I as O,J as L,K as _,L as V,M as H,N as M,O as U}from"./generic-ca913bb9.js";import B from"@babel/runtime-corejs3/core-js-stable/object/keys";import F from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import z from"@babel/runtime-corejs3/core-js-stable/instance/filter";import q from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import K from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import G from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import W from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import J from"@babel/runtime-corejs3/core-js-stable/object/define-property";import X from"@babel/runtime-corejs3/helpers/defineProperty";import Y from"@babel/runtime-corejs3/helpers/asyncToGenerator";import Q from"@babel/runtime-corejs3/regenerator";import Z from"@babel/runtime-corejs3/core-js-stable/promise";import $ from"video.js";import ee from"@babel/runtime-corejs3/core-js-stable/instance/concat";import{o as ne,g as te,a as oe,s as ie,b as le}from"./util-7ef0c31b.js";import{g as re,d as ae,a as se,e as ue}from"./captions-2bcc449f.js";import{g as ce}from"./renditions-7724f87c.js";import{playSelectedResolution as de}from"./resolution-608d4334.js";import{g as ve,i as me,a as pe}from"./skin-43755201.js";import{d as fe}from"./browser-65e5d36c.js";import be from"@babel/runtime-corejs3/core-js-stable/parse-float";import he from"@babel/runtime-corejs3/core-js-stable/parse-int";import{s as ye}from"./localisation-0bf399a1.js";import ge from"@babel/runtime-corejs3/core-js-stable/instance/includes";import we from"@babel/runtime-corejs3/core-js-stable/set";import ke from"@babel/runtime-corejs3/core-js-stable/instance/map";import je from"@babel/runtime-corejs3/core-js-stable/set-timeout";import Te from"@babel/runtime-corejs3/core-js-stable/instance/reduce";import Ie from"@babel/runtime-corejs3/core-js-stable/instance/find-index";import Se from"@babel/runtime-corejs3/core-js-stable/json/stringify";import xe from"@babel/runtime-corejs3/core-js-stable/array/is-array";import Ee from"@babel/runtime-corejs3/helpers/typeof";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/assertThisInitialized";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";var Ce=function(e){return new Z((function(n,t){if(De(e))t("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!0,o.src=e,o.onload=function(){n()},o.onerror=function(n){var o;t(ee(o="Error while loading script ".concat(e," : ")).call(o,n))},document.head.appendChild(o)}}))},De=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},Re=function(e,n,t){var o=ve(e);if(o)if(n>=0&&n<=100){o.muted()&&o.muted(!1);var i=be(n)/100;o.volume(i),t&&t({status:!0,msg:"Volume set to ".concat(n,"%")})}else t&&t({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else t({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},Ne=function(e){var n=ve(e);return n?he(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},Pe=function(){var e=Y(Q.mark((function e(n){var t,o,i,l,r;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=ve(null==n?void 0:n.playerId),null!=n&&null!==(t=n.series)&&void 0!==t&&t.enable||null==n||!n.chromecastReceiverId){e.next=22;break}return e.next=4,import("@silvermine/videojs-chromecast");case 4:return l=e.sent,e.prev=5,e.next=8,Ce("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.log("Error",e.t0);case 13:return e.prev=13,l.default($),e.finish(13);case 16:(r=$.getTech("chromecast"))&&!r.prototype.seeking&&(r.prototype.seeking=function(){}),null!==(i=window)&&void 0!==i&&i.cast?null==o||o.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==o||o.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},e.next=23;break;case 22:console.log("Chromecast plugin is not available");case 23:null!=n&&n.airplay&&"Safari"==fe()?null==o||o.airPlay({addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 24:case"end":return e.stop()}}),e,null,[[5,10,13,16]])})));return function(n){return e.apply(this,arguments)}}(),Ae=function(e,n){var t=ve(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",(function(n){var t,o,i,l,r,a=this.el(),s=$.dom.getPointerPosition(a,n).x;$.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var u=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(r=l.getInstance())||void 0===r?void 0:r.S;if(console.log(u),u&&"CONNECTED"===c){window.cast.framework.RemotePlayer.canSeek=!0;var d=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),v=d.h.media[0].liveSeekableRange.end;d.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=v*s,d.seek()}}))};var Oe=function(){var e=Y(Q.mark((function e(){return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z.all([import("videojs-contrib-ads"),import("ima"),Ce("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then((function(){})).catch((function(e){return console.log(e)}))]);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Le=function(){var e=Y(Q.mark((function e(){return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("utilising contrib eme"),e.next=3,import("videojs-contrib-eme").then((function(e){$.getPlugin("eme")||$.registerPlugin("eme",e.default)}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_e=function(){var e=Y(Q.mark((function e(){var n;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("videojs-mux");case 3:if(!(n=e.sent)||"function"!=typeof n.register){e.next=7;break}return n.register($),e.abrupt("return");case 7:console.log("Mux registration failed"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("Failed to load Mux plugin:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),Ve=function(){var e=Y(Q.mark((function e(){return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("./index-0e9e7f29.js");case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Failed to load dvr seekbar");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),He=function(){var e=Y(Q.mark((function e(){return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("./videojs_contrib_dash-473e13ca.js");case 3:console.log("utilising contrib dash"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Failed to load contrib dash plugin");case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),Me=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then((function(e){Ce("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then((function(){e.default($)})).catch((function(e){console.log(e)}))}))},importAirplay:function(){import("@silvermine/videojs-airplay").then((function(e){e.default($)}))},loadAdsLibrary:Oe,loadEMELibrary:Le,loadMuxPlugin:_e,loadDvrSeekbar:Ve,loadContribDash:He});function Ue(e){return Be.apply(this,arguments)}function Be(){return(Be=Y(Q.mark((function e(n){var t;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(null==n?void 0:n.airplay)||!1,e.next=3,Oe();case 3:t&&"Safari"==fe()&&Promise.resolve().then((function(){return Me})).then((function(e){e.importAirplay()}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fe(e,n){return ze.apply(this,arguments)}function ze(){return(ze=Y(Q.mark((function e(n,t){var o,i,l,r,a,s,u,c,d;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=(null==t?void 0:t.contentType)||"video",u=null==t||null===(o=t[s])||void 0===o?void 0:o.drmEnabled,null==t||null===(i=t[s])||void 0===i||null===(l=i.liveDetails)||void 0===l||l.isDvrEnabled,null==n||n.showPositiveSeekbar,c=(null==t||null===(r=t.video)||void 0===r?void 0:r.isSSAIEnabled)||!1,"Chrome"==fe()&&(c||null===(a=["dirtvision"])||void 0===a||ge(a).call(a,null==t?void 0:t.siteName)),e.prev=6,e.next=9,Z.allSettled([u?"Safari"==fe()?Le():"caliente"!=(null===(d=window)||void 0===d?void 0:d.siteName)?He():Le():null,Pe(n)]);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.log("Error",e.t0);case 14:case"end":return e.stop()}}),e,null,[[6,11]])})))).apply(this,arguments)}function qe(e,n){var t=B(e);if(F){var o=F(e);n&&(o=z(o).call(o,(function(n){return q(e,n).enumerable}))),t.push.apply(t,o)}return t}function Ke(e){for(var n=1;n<arguments.length;n++){var t,o,i=null!=arguments[n]?arguments[n]:{};n%2?K(t=qe(Object(i),!0)).call(t,(function(n){X(e,n,i[n])})):G?W(e,G(i)):K(o=qe(Object(i))).call(o,(function(n){J(e,n,q(i,n))}))}return e}var Ge=new we,We=null,Je=function(n,o,i){var l,r,a,s,u,c,d,v={},m=(null==n?void 0:n.contentType)||"video";v["c3.cm.id"]=(null===(l=n[m])||void 0===l?void 0:l.id)||"Null",v["c3.cm.contentType"]=nn(n),v[null==i||null===(r=i.Constants)||void 0===r?void 0:r.IS_LIVE]=!(null==n||!n.linearchannel),v[null==i||null===(a=i.Constants)||void 0===a?void 0:a.STREAM_URL]=o.currentSrc(),v[null==i||null===(s=i.Constants)||void 0===s?void 0:s.VIEWER_ID]="undefined"===e()?"NULL":e(),v["c3.cm.categoryType"]=Ze(n),v["m3.net.t"]=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return"Unknown";if(e.type)switch(e.type){case"wifi":return"WiFi";case"ethernet":return"Ethernet";default:return e.type}switch(e.effectiveType){case"slow-2g":case"2g":return"2G";case"3g":return"3G";case"4g":return e.downlink>=20?"WiFi":"4G";default:return"Unknown"}}(),v.DRMEnabled=(null===(u=n[m])||void 0===u?void 0:u.drmEnabled)||"None",v.DAIStream=null!==(c=n[m])&&void 0!==c&&null!==(d=c.gist)&&void 0!==d&&d.isSSAIEnabled?"YES":"NO",v[i.Constants.DEFAULT_RESOURCE]="AKAMAI",v["c3.cm.brand"]="NULL",v.CDVREnabled=$e(n),v["c3.cm.genreList"]=Ye(n),v["c3.cm.genre"]=Xe(n),v["c3.cm.channel"]=Qe(n);var p=on(t(),n);return v=Ke(Ke({},v),p)},Xe=function(e){var n,t,o,i=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[i])||void 0===n||null===(t=n.gist)||void 0===t||null===(o=t.primaryCategory)||void 0===o?void 0:o.title)||"Null"},Ye=function(e){var n,t=(null==e?void 0:e.contentType)||"video",o=(null==e||null===(n=e[t])||void 0===n?void 0:n.categories)||[];return ke(o).call(o,(function(e){return null==e?void 0:e.title})).join(", ")||"Null"},Qe=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video";return"video"===o?"VOD":(null==e||null===(n=e[o])||void 0===n||null===(t=n.channels[0])||void 0===t?void 0:t.title)||"NULL"},Ze=function(e){return(null==e?void 0:e.contentType)||"null"},$e=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video",i=(null==e||null===(n=e[o])||void 0===n||null===(t=n.liveDetails)||void 0===t?void 0:t.isDvrEnabled)||!1;return i?"YES":"NO"},en=function(e,n){var t,o,i=(n||{}).epg;if(i&&null!=i&&i.enable&&null!=i&&i.programTitle)return i.programTitle;var l=(null==e?void 0:e.contentType)||"video",r=(null==e||null===(t=e[l])||void 0===t||null===(o=t.gist)||void 0===o?void 0:o.title)||"Null";return"".concat(r)},nn=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var tn,on=function(e,t){var i,l,r,a,s,u={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!e||!t||null!=t&&t.linearchannel)return u;var c=o(),d=n();return u["c3.cm.seriesName"]=(null==t||null===(i=t.video)||void 0===i||null===(l=i.series)||void 0===l?void 0:l.title)||"Null",u["c3.cm.seasonNumber"]=(null==c?void 0:c.toString())||"Null",u["c3.cm.showTitle"]=(null==e||null===(r=e[c-1])||void 0===r||null===(a=r.episodes)||void 0===a||null===(s=a[d-1])||void 0===s?void 0:s.title)||"Null",u["c3.cm.episodeNumber"]=(null==d?void 0:d.toString())||"Null",u},ln=function(e){switch(e){case"com.widevine.alpha":return"Widevine";case"com.microsoft.playready":return"PlayReady";case"org.w3.clearkey":return"ClearKey";case"com.apple.fps.1_0":return"FairPlay";default:return"Unknown DRM System"}},rn=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},an=function(){var e=Y(Q.mark((function e(n,t){var o,l,r,a,s,u,c,d,v,m;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(null==t?void 0:t.convivaConfig)||{},l=o.trackConvivaPlayerEvent,r=o.paymentHandler,a=o.tveProvider,s=o.enable,u=o.appName,c=(t||{}).token,s){e.next=4;break}return e.abrupt("return");case 4:if(d=ve(n),"function"==typeof(v=l)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,v("getConvivaObject");case 10:if(m=e.sent){e.next=13;break}return e.abrupt("return");case 13:d.ready((function(){var e=d.tech(!0),n=!1;e.on("keysessioncreated",(function(e){n=!0;var t=e.target;if(t&&t.keySystem){var o=ln(t.keySystem);v("contentInfo",{DRMEnabled:o})}else v("contentInfo",{DRMEnabled:"None"})})),n||v("contentInfo",{DRMEnabled:"None"})})),d.on("loadstart",(function(){var e,n;We&&We!==d.currentSrc()&&v("playbackEnded"),v("setPlayer",d),Ge.clear(),We=d.currentSrc();var o=rn(d.currentType()),l=i(),s=Je(l,d,m);s[null==m||null===(e=m.Constants)||void 0===e?void 0:e.PLAYER_NAME]=u||"WEB",s[null==m||null===(n=m.Constants)||void 0===n?void 0:n.ASSET_NAME]=en(l,t),s.authToken=c||"NULL",s.streamType=o,s.D2CType=r||"NONE",s.subscriberType=a||(r?"D2C":"FREE"),s["c3.cm.affiliate"]=a||"NULL",v("contentInfo",s)})),d.on("loadedmetadata",(function(){var e,n=d.videoHeight();e=n>=2160?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=480?"480p":"".concat(n,"p"),v("contentInfo",{screenResolution:e})})),d.on("play",(function(){Ge.has(d.currentSrc())||(Ge.add(d.currentSrc()),v("playbackStarted",null))})),d.on("ended",(function(){Ge.has(d.currentSrc())&&Ge.delete(d.currentSrc()),v("playbackEnded")})),d.on("ads-loader",(function(e){e&&null!=e&&e.adsLoader&&v("initAdSensor",{player:d,adsLoader:null==e?void 0:e.adsLoader})})),d.on("dispose",(function(){null==Ge||Ge.clear(),v("playbackEnded")}));case 20:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),sn=function(e,n){var t=null==n?void 0:n.skin;"default"==t?import("./skin-adfb18cb.js").then((function(t){t.initialiseSkin(e,n)})):"carousel"==t?import("./skin-eb7d4238.js").then((function(n){n.initaliseSkin(e)})):"defaultV2"==t?import("./skin-5134b789.js").then((function(t){t.initialiseSkin(e,n)})):"multiplayer"==t?import("./skin-9e2f78f2.js").then((function(t){t.initialiseSkin(e,n)})):"minimalist"==t?import("./skin-b3169389.js").then((function(t){t.initaliseSkin(e,n)})):"VL_ONE"==t&&import("./skin-159bdc20.js").then((function(t){t.initialiseSkin(e,n)}))};function un(e,n){var t=B(e);if(F){var o=F(e);n&&(o=z(o).call(o,(function(n){return q(e,n).enumerable}))),t.push.apply(t,o)}return t}function cn(e){for(var n=1;n<arguments.length;n++){var t,o,i=null!=arguments[n]?arguments[n]:{};n%2?K(t=un(Object(i),!0)).call(t,(function(n){X(e,n,i[n])})):G?W(e,G(i)):K(o=un(Object(i))).call(o,(function(n){J(e,n,q(i,n))}))}return e}var dn=[],vn=0,mn=null;function pn(e,n,t){var o,i,r,a,s,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==n||null===(o=n.watchHistory)||void 0===o||o.apiVersion;var c=null==n||null===(i=n.watchHistory)||void 0===i?void 0:i.profileId,d=Math.floor(e.currentTime()),v=Math.floor(e.duration());null==n||null===(r=n.watchHistory)||void 0===r||r.xapiKey;var m=(null==n||null===(a=n.video)||void 0===a?void 0:a.originalObjectId)||null,p=(null==n||null===(s=n.watchHistory)||void 0===s?void 0:s.saveOffline)||!1,f=Math.floor(e.currentTime()),b=u?100:Math.floor(d/v*100),h={};p?bn(h={completed:u,watchedTime:f,watchedPercentage:b},c,n.siteOwner):(h=cn(cn({videoId:tn,watchedTime:f,watchedPercentage:b,doneWatching:u,profileId:c},mn&&{seriesId:mn}),m&&{originalObjectId:m}),l(h).then((function(e){})).catch((function(e){}))),vn=d+t}function fn(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function bn(e,n,t){var o,l=n?"watchhistory-data-".concat(n):"watchhistory-data-guest-".concat(t),r=fn(l),a=(new Date).getTime(),s=i(),u=(null==s?void 0:s.video)||{},c=Te(o=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"]).call(o,(function(e,n){return cn(cn({},e),{},X({},n,u[n]))}),{}),d=Ie(r).call(r,(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===tn}));d<0?r.push(cn(cn({content:c},e),{},{addedDate:a,updateDate:a})):r[d]=cn(cn(cn({},r[d]),e),{},{updateDate:a}),localStorage.setItem("".concat(l),Se(r))}function hn(e,n,t){var o=fn(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),i=[];return o&&xe(o)&&(i=z(o).call(o,(function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n}))),i}var yn=!1,gn=function(e,n){var t,o,i=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(t=e[i])||void 0===t||null===(o=t.streamingInfo)||void 0===o?void 0:o.secondaryVideoAssets)||null)&&!yn){var l=wn(e,"videoAssets","secondaryVideoAssets"),s=r(l,n);return s&&a(n,s),yn=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function wn(e,n,t){if(xe(e))return ke(e).call(e,(function(e){return wn(e,n,t)}));if(null!==e&&"object"===Ee(e)){var o,i={};return K(o=B(e)).call(o,(function(o){o===n&&void 0!==e[t]?i[o]=e[t]:o===t&&void 0!==e[n]?i[o]=e[n]:i[o]=wn(e[o],n,t)})),i}return e}function kn(e,n){var t=B(e);if(F){var o=F(e);n&&(o=z(o).call(o,(function(n){return q(e,n).enumerable}))),t.push.apply(t,o)}return t}function jn(e){for(var n=1;n<arguments.length;n++){var t,o,i=null!=arguments[n]?arguments[n]:{};n%2?K(t=kn(Object(i),!0)).call(t,(function(n){X(e,n,i[n])})):G?W(e,G(i)):K(o=kn(Object(i))).call(o,(function(n){J(e,n,q(i,n))}))}return e}var Tn=function(e,n,t,o){var l,r,a,v,m=o.res,p=o.sres,f=ve(e),b=(null==m?void 0:m.contentType)||"video",h=(null==m||null===(l=m[b])||void 0===l||null===(r=l.streamingInfo)||void 0===r?void 0:r.isLiveStream)||!1,y=(null==m||null===(a=m[b])||void 0===a||null===(v=a.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1;s(m),f&&(f.on("loadstart",(function(){h?t.resolve({status:!0,msg:"Video Loaded",response:m}):t.resolve(jn({status:!0,msg:"Player Initialised"},p?{seriesResponse:p,response:m}:{response:m}))})),f.on("loadeddata",(function(){var t,o,l,r=re(e);if(null==r||ke(r).call(r,(function(n){return ae(e,n.id)})),y&&"Safari"===fe())try{var a;null==f||null===(a=f.liveTracker)||void 0===a||a.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==f||!f.muted())&&Re(e,sessionStorage.getItem("volume")||"100");var s=i();if(u(),null!=n&&n.watchHistory&&null!=n&&null!==(t=n.watchHistory)&&void 0!==t&&t.enable&&(!n.isAnonymousUser||null!=n&&null!==(o=n.watchHistory)&&void 0!==o&&o.saveOffline)){var c,d,v=jn(jn({},n),m);!function(e,n,t){var o,i,l;null!=n&&n.series&&null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable&&(mn=null==n||null===(i=n.series)||void 0===i?void 0:i.id),dn=[],vn=0,tn=t;var r=(null==n||null===(l=n.watchHistory)||void 0===l?void 0:l.interval)||30,a=ve(e);a&&(a.on("timeupdate",(function(){var e=Math.floor(a.currentTime());ge(dn).call(dn,vn)||(e==vn?(dn.push(e),pn(a,n,r)):e>vn&&(vn=e+r))})),a.one("ended",(function(){pn(a,n,r,!0)})))}(e,v,null==s||null===(c=s.video)||void 0===c||null===(d=c.gist)||void 0===d?void 0:d.id)}if(null!=n&&null!==(l=n.analytics)&&void 0!==l&&l.muxKey&&null!=f&&f.mux){var p,b,h,g,w,k,j=(null===(p=i())||void 0===p?void 0:p.video)||(null==m?void 0:m.video),T=null==j?void 0:j.gist,I={env_key:null==n||null===(b=n.analytics)||void 0===b?void 0:b.muxKey,player_name:"vl-web-player",player_version:null===(h=window)||void 0===h?void 0:h.vl_player_version,video_id:null==T?void 0:T.id,video_title:null==T?void 0:T.title,video_series:null==j||null===(g=j.series)||void 0===g?void 0:g.title,video_stream_type:null!=j&&null!==(w=j.streamingInfo)&&void 0!==w&&w.isLiveStream?"live":"video",viewer_user_id:null==n||null===(k=n.analytics)||void 0===k?void 0:k.userId};f.mux({debug:!1,data:I})}})),f.textTracks().on("change",(function(e){var n,t=z(n=this.tracks_).call(n,(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0}))[0];f.trigger("subtitlechanged",t)})),f.on("subtitlechanged",(function(e,n){var t,o,i,l,r,a,s,u,c,d,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,m=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(r=l.getInstance())||void 0===r?void 0:r.S,p=null===(a=window)||void 0===a||null===(s=a.cast)||void 0===s||null===(u=s.framework)||void 0===u||null===(c=u.CastContext)||void 0===c||null===(d=c.getInstance())||void 0===d?void 0:d.getCurrentSession();if(v&&"CONNECTED"===m){var f,b=p.getMediaSession(),h=b.media.tracks,y=z(h).call(h,(function(e){return"TEXT"==e.type}));f=n?new chrome.cast.media.EditTracksInfoRequest([y[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),b.editTracksInfo(f)}})),f.tech_.on("retryplaylist",(function(){h&&gn(m,e)})),f.on("error",(function(){var n,o;(console.log("ERROR",f.error(),f.error().code),4===f.error().code&&h)?gn(m,e):(c(e,(null==f||null===(n=f.error())||void 0===n?void 0:n.message)||"Some error occured"),t.reject({status:!1,msg:(null==f||null===(o=f.error())||void 0===o?void 0:o.message)||"Some error occured",response:m}))})),f.one("play",(function(){var e;if(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable){var t,o,l,r=null===(t=i())||void 0===t||null===(o=t.video)||void 0===o||null===(l=o.gist)||void 0===l?void 0:l.id,a=d(),s=(null==a?void 0:a.get(r))||{t:0,p:0},u=s.t,c=s.p;u&&c<95&&je((function(){f.currentTime(u)}),0)}else null!=n&&n.watchHistoryResumeTime&&(null==n?void 0:n.watchedPercentage)<95&&je((function(){f.currentTime(null==n?void 0:n.watchHistoryResumeTime)}),0);if(null!=f&&f.dvrSeekbar)try{f.dvrSeekbar()}catch(e){console.error("Error while initilizing dvr seekbar")}})),f.on("volumechange",(function(){var e=100*f.volume().toFixed(2);f.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)})),f.on("chromecastDisconnected",(function(){if(h){f.currentSource();for(var e=f.textTracks(),n=e.length-1;n>=0;n--)f.removeRemoteTextTrack(e[n])}})))};function In(e,n){var t=B(e);if(F){var o=F(e);n&&(o=z(o).call(o,(function(n){return q(e,n).enumerable}))),t.push.apply(t,o)}return t}function Sn(e){for(var n=1;n<arguments.length;n++){var t,o,i=null!=arguments[n]?arguments[n]:{};n%2?K(t=In(Object(i),!0)).call(t,(function(n){X(e,n,i[n])})):G?W(e,G(i)):K(o=In(Object(i))).call(o,(function(n){J(e,n,q(i,n))}))}return e}var xn=function(e,n,t,o){var i,l,s,u,d,b,h,y,g,w,k,j,T,I,S,x,E,C,D,R,N,P,A,O,L,_,V,H,M,U,B,F,q=n.res,K=void 0===q?null:q,G=n.sres,W=void 0===G?null:G,J=null!=t&&t.chromecastReceiverId?["chromecast","html5"]:["html5"],Z=(null===(i=K)||void 0===i?void 0:i.contentType)||"video",ee=me(null===(l=K)||void 0===l||null===(s=l[Z])||void 0===s||null===(u=s.gist)||void 0===u?void 0:u.videoImageUrl)||me(null===(d=K)||void 0===d||null===(b=d[Z])||void 0===b||null===(h=b.gist)||void 0===h||null===(y=h.imageGist)||void 0===y?void 0:y.r16x9),ne=(null===(g=K)||void 0===g||null===(w=g[Z])||void 0===w||null===(k=w.liveDetails)||void 0===k?void 0:k.isDvrEnabled)||!1,te=(null===(j=K)||void 0===j||null===(T=j[Z])||void 0===T||null===(I=T.streamingInfo)||void 0===I?void 0:I.isLiveStreafm)||!1,oe=(null===(S=K)||void 0===S||null===(x=S.ads)||void 0===x||null===(E=x.preRoll)||void 0===E||null===(C=E.adTags)||void 0===C||null===(D=C.web)||void 0===D?void 0:D.active)&&(null===(R=K)||void 0===R||null===(N=R.ads)||void 0===N||null===(P=N.preRoll)||void 0===P||null===(A=P.adTags)||void 0===A||null===(O=A.web)||void 0===O?void 0:O.url),ie=(null===(L=K=Sn(Sn({},K),{},{audioAssetSource:null==t?void 0:t.audioAssetSource}))||void 0===L||null===(_=L.video)||void 0===_?void 0:_.isSSAIEnabled)||!1;"Chrome"==fe()&&(ie||null===(V=["dirtvision"])||void 0===V||ge(V).call(V,null===(H=K)||void 0===H?void 0:H.siteName));var le=(null==t?void 0:t.latency)||6,re=(F={enableSmoothSeeking:!0,controls:0!=(null==t?void 0:t.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==t?void 0:t.muted)||!1,autoplay:(null==t?void 0:t.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:!1},muteToggle:"multiplayer"==t.skin,liveui:ne},X(F,"autoplay",null==t?void 0:t.autoplay),X(F,"normalizeAutoplay",(null==t?void 0:t.autoplay)&&!oe),X(F,"loop",(null==t?void 0:t.loop)||!1),X(F,"audioPosterMode",null==t?void 0:t.audioPosterMode),X(F,"html5",Sn(Sn({dash:Sn(Sn({},!$.browser.IS_SAFARI&&{useTTML:!0}),{},{updateSettings:{streaming:{delay:{liveDelay:le},text:{defaultEnabled:!1},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},abr:{useDefaultABRRules:!0,additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0,abandonRequestsRule:!0},autoSwitchBitrate:{video:!0,audio:!0}}}}}),vhs:Sn(Sn({liveRangeSafeTimeDelta:le,useDevicePixelRatio:!0,experimentalLLHLS:(null==t?void 0:t.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==t||null===(M=t.customData)||void 0===M?void 0:M.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:!0}),nativeTextTracks:"Safari"==fe()},0==(null==t||null===(U=t.customData)||void 0===U?void 0:U.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==t||null===(B=t.customData)||void 0===B?void 0:B.nativeVideoTracks)&&{nativeVideoTracks:!1})),X(F,"poster",ee),X(F,"techOrder",J),X(F,"chromecast",{requestCustomDataFn:function(n){var t=ve(e),o=(null==t?void 0:t.textTracksJson_)||t.textTracks().tracks_,i=z(o).call(o,(function(e){return"captions"==e.kind||"subtitles"==e.kind}));return function(e,n,t){var o,i,l,r,a,s,u,c,d,v,m=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[m]&&null!=e&&e[m].drmEnabled){var f,b,h,y,g,w,k,j;p.isDrmEnabled=!0;var T=(null==n||null===(f=n.keySystems)||void 0===f?void 0:f["com.widevine.alpha"])||null,I=(null==T?void 0:T.url)||(null==n||null===(b=n.keySystemOptions)||void 0===b||null===(h=b[0])||void 0===h||null===(y=h.options)||void 0===y?void 0:y.serverURL);p.licenseUrl=I;var S=(null==T?void 0:T.licenseHeaders["X-AxDRM-Message"])||(null==n||null===(g=n.keySystemOptions)||void 0===g||null===(w=g[0])||void 0===w||null===(k=w.options)||void 0===k||null===(j=k.httpRequestHeaders)||void 0===j?void 0:j["X-AxDRM-Message"]);p.licenseToken=S}var x=(null==e||null===(o=e[m])||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";p.contentType=x;var E=null==e||null===(l=e[m])||void 0===l||null===(r=l.gist)||void 0===r?void 0:r.runtime;p.duration=E;var C=null==e||null===(a=e[m])||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;p.mediaTitle=C;var D=null==e||null===(u=e[m])||void 0===u||null===(c=u.gist)||void 0===c?void 0:c.videoImageUrl;return p.mediaImage=D,p.subTitles=t,p.DVR=(null==e||null===(d=e[m])||void 0===d||null===(v=d.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(K,n,i)},modifyLoadRequestFn:function(n){var t,o,i,l,r,a=ve(e),s=(null==a?void 0:a.currentSource())||{};!(null===(t=K)||void 0===t||null===(o=t[Z])||void 0===o||null===(i=o.streamingInfo)||void 0===i||null===(l=i.videoAssets)||void 0===l?void 0:l.is4K)&&1||null!=s&&s.src&&null!=s&&null!==(r=s.src)&&void 0!==r&&ge(r).call(r,".m3u8")&&(n.media.hlsSegmentFormat="fmp4",n.media.hlsVideoSegmentFormat="fmp4");return n}}),F);if(!$.getPlayers()[e]){re.spatialNavigation={enabled:!0,horizontalSeek:!0};var ae=$(e,re,function(){var n=Y(Q.mark((function n(){var i,l,s,u,d,b,h,y,g,w,k,j,T,I,S,x,E,C,D,R;return Q.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ae.spatialNavigation.start(),console.log(ae),console.log($.VERSION),console.log($.getPlugins()),n.next=6,Fe(t,K);case 6:j=null===(i=K)||void 0===i||null===(l=i[Z])||void 0===l||null===(s=l.liveDetails)||void 0===s?void 0:s.startOverTime,te&&o.resolve(Sn({status:!0,msg:"Player Initialised"},W?{seriesResponse:W,response:K}:{response:K})),v(e,null==t?void 0:t.analyticsCb),an(e,t),/Android/i.test(navigator.userAgent)&&($.options.vhs.overrideNative=!0),ne&&Ae(e,j),!oe||null!=t&&null!==(u=t.customData)&&void 0!==u&&u.disableAds||m(e,oe,K),T=r(K,e),console.log(T),null!=t&&t.nearestClusterUrl&&(T=p(T,t.nearestClusterUrl)),T?a(e,T):(o.reject({status:!1,msg:"Incompatible / Missing Source",response:K}),c(e,"Incompatible / Missing Source")),((null===(d=K)||void 0===d||null===(b=d[Z])||void 0===b||null===(h=b.contentDetails)||void 0===h||null===(y=h.closedCaptions)||void 0===y?void 0:y.length)>0||(null===(g=K)||void 0===g||null===(w=g[Z])||void 0===w||null===(k=w.closedCaptions)||void 0===k?void 0:k.length)>0)&&(R=(null===(S=K)||void 0===S||null===(x=S[Z])||void 0===x||null===(E=x.contentDetails)||void 0===E?void 0:E.closedCaptions)||(null===(C=K)||void 0===C||null===(D=C[Z])||void 0===D?void 0:D.closedCaptions),I=z(R).call(R,(function(e){return"VTT"===e.format})),se(e,I)),null!=t&&t.disableControls?f(e):sn(e,Sn(Sn(Sn({},t),re),{},{liveVideo:te,isDvrEnabled:ne,res:K,sres:W})),Tn(e,Sn(Sn(Sn({},t),re),{},{liveVideo:te}),o,{res:K,sres:W});case 20:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}())}},En={spinco:"e8f2c1a7-5d94-4a1f-93ea-7c0b9186f1cd"};function Cn(e,n){var t=B(e);if(F){var o=F(e);n&&(o=z(o).call(o,(function(n){return q(e,n).enumerable}))),t.push.apply(t,o)}return t}function Dn(e){for(var n=1;n<arguments.length;n++){var t,o,i=null!=arguments[n]?arguments[n]:{};n%2?K(t=Cn(Object(i),!0)).call(t,(function(n){X(e,n,i[n])})):G?W(e,G(i)):K(o=Cn(Object(i))).call(o,(function(n){J(e,n,q(i,n))}))}return e}var Rn,Nn=function(e,n){var t=n.resolve,o=n.reject,i=null==e?void 0:e.playerId,l=Pn(e);xn(i,{res:l},e,{resolve:t,reject:o})},Pn=function(e){var n,t,o=null==e?void 0:e.streamingInfo,i=null==e||null===(n=e.streamingInfo)||void 0===n?void 0:n.videoAssets,l=(null==e||null===(t=e.streamingInfo)||void 0===t?void 0:t.isDrmEnabled)||null,r=null==e?void 0:e.token,a=b(r),s=null==a?void 0:a.site;return Dn(Dn({id:null==En?void 0:En[s]},!l&&{directPlaybackUrl:null==i?void 0:i.url}),{},{video:{drmEnabled:l,streamingInfo:{videoAssets:{widevine:null==i?void 0:i.widevine,fairPlay:null==i?void 0:i.fairPlay,playReady:null==i?void 0:i.playReady}},liveDetails:{isDvrEnabled:null==o?void 0:o.isDvrEnabled}}})};function An(e,n){return On.apply(this,arguments)}function On(){return(On=Y(Q.mark((function e(n,t){var o,i,l,r,a,u;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.resolve,i=t.reject,l=null==n?void 0:n.videoId,r=null==n?void 0:n.playerId,a=!(null==n||!n.anonymousId),e.next=6,w();case 6:u=e.sent,h(l,u).then((function(e){var t,c,d,v;window.contentType=null==e||null===(t=e.data)||void 0===t||null===(c=t.video)||void 0===c||null===(d=c.gist)||void 0===d?void 0:d.contentType,s(null==e?void 0:e.data);var m,p=null==e?void 0:e.data;if(null!=n&&n.watchHistory&&null!=n&&null!==(v=n.watchHistory)&&void 0!==v&&v.enable&&!a)if((null===(m=n.watchHistory)||void 0===m?void 0:m.saveOffline)||!1){var f,b,h,g=hn((null===(f=n.watchHistory)||void 0===f?void 0:f.profileId)||"",l,null==n?void 0:n.siteOwner);if(g&&g.length)n.watchHistoryResumeTime=(null===(b=g[0])||void 0===b?void 0:b.watchedTime)||null,n.watchedPercentage=(null===(h=g[0])||void 0===h?void 0:h.watchedPercentage)||null;p.contentType="video",xn(r,{res:p},n,{resolve:o,reject:i})}else y(l,u).then((function(e){var t,o,i,l,r,a;null!==(t=window)&&void 0!==t&&null!==(o=t.watchHistory)&&void 0!==o&&o.cb&&(null===(i=window)||void 0===i||null===(l=i.watchHistory)||void 0===l||l.cb(null==e?void 0:e.data)),n.watchHistoryResumeTime=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,n.watchedPercentage=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null,p.contentType="video"})).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))})).finally((function(){xn(r,{res:p},n,{resolve:o,reject:i})}));else xn(r,{res:p},n,{resolve:o,reject:i})})).catch((function(e){g(e,r,i,l)}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ln(e,n){return _n.apply(this,arguments)}function _n(){return(_n=Y(Q.mark((function e(n,t){var o,i,l,r,a;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.resolve,i=t.reject,e.next=3,w();case 3:l=e.sent,r=null==n?void 0:n.playerId,a=null==n?void 0:n.epg,k(a,l).then((function(e){var t=null==e?void 0:e.data;t.contentType="linearchannel",t.channelId=null==a?void 0:a.channelId,xn(r,{res:t},n,{resolve:o,reject:i})})).catch((function(e){g(e,r,i,videoId)}));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vn(e,n){return Hn.apply(this,arguments)}function Hn(){return(Hn=Y(Q.mark((function e(n,t){var o,i,l,r,a,u,c;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.resolve,l=t.reject,e.next=3,w();case 3:r=e.sent,a=null==n?void 0:n.playerId,u=sessionStorage.getItem("season-idx")||0,j.set(he(u)),c=null==n||null===(o=n.series)||void 0===o?void 0:o.id,T(c,r).then((function(e){var t,o,u,d=e.data,v=e.data.seasons;S(v);var m=videoId||(null==v||null===(t=v[0])||void 0===t||null===(o=t.episodes)||void 0===o||null===(u=o[0])||void 0===u?void 0:u.id);I(c,r),h(m,r).then((function(e){var t,o,r;window.contentType=null==e||null===(t=e.data)||void 0===t||null===(o=t.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.contentType,s(e.data),xn(a,{res:null==e?void 0:e.data,sres:d},n,{resolve:i,reject:l})})).catch((function(e){g(e,a,l,videoId)}))})).catch((function(e){g(e,a,l)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mn(e,n){var t=B(e);if(F){var o=F(e);n&&(o=z(o).call(o,(function(n){return q(e,n).enumerable}))),t.push.apply(t,o)}return t}function Un(e){for(var n=1;n<arguments.length;n++){var t,o,i=null!=arguments[n]?arguments[n]:{};n%2?K(t=Mn(Object(i),!0)).call(t,(function(n){X(e,n,i[n])})):G?W(e,G(i)):K(o=Mn(Object(i))).call(o,(function(n){J(e,n,q(i,n))}))}return e}function Bn(){return{loadVideoInstantly:x,onTimeUpdate:ne,getVideoDuration:te,onVideoEnded:oe,init:function(e){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Z(function(){var n=Y(Q.mark((function n(t,o){var i,l,r,a,s,u,c,d,v,m,p,f,b,y,w,k,j,T,I,S,x,E,C;return Q.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!N(null==e?void 0:e.playerId)){n.next=2;break}return n.abrupt("return");case 2:if(p=(null==e?void 0:e.videoSourceUrl)||!1,f=null==e?void 0:e.asat,b=(null==e||null===(i=e.epg)||void 0===i?void 0:i.enable)||!1,y=null==e?void 0:e.videoId,w=(null==e||null===(l=e.series)||void 0===l?void 0:l.enable)||!1,k=(null==e?void 0:e.streamingInfo)||!1,window.videoId=y,j=null==e?void 0:e.token,!V(e)){n.next=17;break}if(sessionStorage.setItem("vlp_token",j),H().set(null==e?void 0:e.refreshToken),j&&!M(j)){n.next=16;break}return o({status:!1,msg:"".concat(j?"Token is expired !":"Missing Authorization Token"),response:{token:j}}),n.abrupt("return");case 16:Rn=JSON.parse(atob(j.split(".")[1]));case 17:return e.isAnonymousUser=!(null===(r=Rn)||void 0===r||!r.anonymousId),e.siteOwner=(null===(a=Rn)||void 0===a?void 0:a.site)||null,e.userId=(null===(s=Rn)||void 0===s?void 0:s.userId)||null,window.sessionStorage.setItem("uid",null===(u=Rn)||void 0===u?void 0:u.userId),window.watchHistory=e.watchHistory||null,T=null==e?void 0:e.playerId,e.chromecastReceiverId=null!=e&&null!==(c=e.series)&&void 0!==c&&c.enable?null:null==e?void 0:e.chromecastReceiverId,I=(null==e||null===(d=e.analytics)||void 0===d?void 0:d.gaId)||null,(S=null==e?void 0:e.errors)&&(window.customErrors=S),window.customData=null==e?void 0:e.customData,ye(null==e||null===(v=e.customData)||void 0===v?void 0:v.localisation),_.set(e.apiBaseUrl),null!=e&&e.skin&&!pe(e.skin)||(e.skin="VL_ONE"),n.next=33,Ue(e);case 33:I&&Ce("https://www.googletagmanager.com/gtag/js?id=".concat(I)).then((function(){return U(I)})).catch((function(e){})),(x=null===(m=document)||void 0===m?void 0:m.getElementById("".concat(T)))&&x.addEventListener("contextmenu",(function(e){return e.preventDefault()})),p?(C={directPlaybackUrl:p,id:E="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},f?h(E,j).then((function(n){var i=(null==n?void 0:n.data)||{};xn(T,{res:Un(Un({},i),C)},e,{resolve:t,reject:o})})).catch((function(e){g(e,T,o,E)})):xn(T,{res:C},e,{resolve:t,reject:o})):k?Nn(e,{resolve:t,reject:o}):w?Vn(e,{resolve:t,reject:o}):b?Ln(e,{resolve:t,reject:o}):An(e,{resolve:t,reject:o});case 37:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())},getRenditions:ce,skip:E,getPlayer:ve,play:C,pause:D,detectBrowser:fe,rewind:R,loadVideo:a,seekToTimeStamp:ie,isPlayerInitialised:N,load:P,authenticateLC:A,dispose:O,enableCaptions:ue,disableCaptions:ae,getCaptions:re,playSelectedResolution:de,getSource:r,setVolume:Re,getVolume:Ne,disableControls:f,setPlaybackSpeed:le,getEntitlementData:L}}export{Bn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/instance/includes";import{B as l,E as r}from"./generic-ca913bb9.js";import{g as a}from"./skin-43755201.js";function n(n,o){var i,c,s,u=a(n),d=null==u||null===(i=u.controlBar)||void 0===i||null===(c=i.playToggle)||void 0===c?void 0:c.el_,m=document.getElementsByTagName("video")[0];null===(s=document)||void 0===s||s.addEventListener("keydown",(function(a){var i,c;if(t.enabled&&"input"!=a.target.localName){var s=a.key,v=!0===o.liveVideo||!0===o.liveui;switch(e(i=[" ","m","M","f","F","ArrowLeft","ArrowRight"]).call(i,s)&&(a.preventDefault(),null==m||m.focus()),s){case" ":null==d||d.click();break;case"m":case"M":u.muted(!u.muted());break;case"f":case"F":null===(c=document.querySelector(".vjs-fullscreen-control"))||void 0===c||c.click();break;case"ArrowLeft":v&&!1===o.liveui||r(n,10);break;case"ArrowRight":v||l(n,10)}}}),!0)}var o,t=(o=!0,{enable:function(){o=!0},disable:function(){o=!1},get enabled(){return o}});export{n as i,t as k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/inherits";import s from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import n from"@babel/runtime-corejs3/core-js-stable/instance/slice";import i from"video.js";import{h as c,f as l,i as m}from"./icons-68d3a609.js";import{G as d,C as p}from"./generic-ca913bb9.js";import{e as b,s as u,j}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";function v(t){var r=f();return function(){var o,n=a(t);if(r){var i=a(this).constructor;o=e(n,arguments,i)}else o=n.apply(this,arguments);return s(this,o)}}function f(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}var h=i.getComponent("Component"),y=function(e){o(a,h);var s=v(a);function a(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,a),(r=s.call(this,e,o)).playerId=o.playerId,r.seriesData=o.sres,r.streams=o.streams,r.currentVideoData=o.res,r.initialiseStructure(),r.loadCSS(),r}return r(a,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(c())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-b7cec0cf.js").then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),r=i.dom.createEl("div",{className:"stream-container hidden"});i.dom.$(".stream-selector-icon",this.el()).onclick=function(){var o;null!==(o=r.classList)&&void 0!==o&&o.contains("hidden")?(b(),r.classList.remove("hidden"),t.classList.add("open"),u(e.playerId,r)):(r.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var s=window.getComputedStyle(o,null).getPropertyValue("height"),a=n(s).call(s,0,-2);r.style.height="".concat(a,"px"),o.style.overflow="hidden",i.dom.appendContent(t,r),this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),o=i.dom.createEl("div",{className:"stream-selector-head"}),s=i.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(l())});s.onclick=function(){e.classList.add("hidden"),r.classList.remove("open")};for(var a=i.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),n=i.dom.createEl("div",{className:"stream-selector-content"}),c=i.dom.createEl("div",{className:"stream-tray"}),b=function(e){var r,o,s,a=i.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(m())});0==e&&(a.classList.add("selected"),a.style.border="2px solid #D2393B"),a.onclick=function(){for(var r=i.dom.$$(".stream"),o=0;o<r.length;o++)r[o].style.border="none",r[o].classList.remove("selected");a.classList.add("selected"),a.style.border="2px solid #D2393B",d(t.playerId,t.streams[e].id).then((function(e){p(t.playerId),console.log(e)})).catch((function(e){console.log(e)}))},a.style.backgroundImage="url(".concat(t.streams[e].img,")");var l=document.createElement("img");l.className="stream-thumbnail-image",l.src="".concat((null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img)||(null===(o=window)||void 0===o||null===(s=o.customData)||void 0===s?void 0:s.fallbackImage)),a.append(l),i.dom.appendContent(c,a),i.dom.appendContent(n,c)},u=0;u<this.streams.length;u++)b(u);i.dom.appendContent(o,s),i.dom.appendContent(o,a),i.dom.appendContent(e,o),i.dom.appendContent(e,n),j(this.playerId,e)}}]),a}();export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/inherits";import s from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import n from"@babel/runtime-corejs3/core-js-stable/instance/slice";import i from"video.js";import{h as c,f as l,i as m}from"./icons-68d3a609.js";import{G as p,C as d}from"./generic-ca913bb9.js";import{e as b,g as u}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";function j(t){var r=h();return function(){var o,n=a(t);if(r){var i=a(this).constructor;o=e(n,arguments,i)}else o=n.apply(this,arguments);return s(this,o)}}function h(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}var f=i.getComponent("Component"),v=function(e){o(a,f);var s=j(a);function a(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,a),(r=s.call(this,e,o)).playerId=o.playerId,r.seriesData=o.sres,r.streams=o.streams,r.currentVideoData=o.res,r.initialiseStructure(),r.loadCSS(),r}return r(a,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(c())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-1fb5149a.js").then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=i.dom.createEl("div",{className:"stream-container hidden"});i.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(b(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var r=document.getElementById(this.playerId);if(r){var o=window.getComputedStyle(r,null).getPropertyValue("height"),s=n(o).call(o,0,-2);t.style.height="".concat(s,"px"),r.style.overflow="hidden",i.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),o=i.dom.createEl("div",{className:"stream-selector-head"}),s=i.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(l())});s.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var a=i.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=i.dom.createEl("div",{className:"stream-selector-content"}),b=i.dom.createEl("div",{className:"stream-tray"}),j=function(e){var r,o=i.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(m())});0==e&&(o.classList.add("selected"),o.style.border="4px solid #D2393B"),o.onclick=function(){for(var r=i.dom.$$(".stream"),s=0;s<r.length;s++)r[s].style.border="none",r[s].classList.remove("selected");o.classList.add("selected"),o.style.border="4px solid #D2393B",p(t.playerId,t.streams[e].id).then((function(e){d(t.playerId),console.log(e)})).catch((function(e){console.log(e)}))},o.style.backgroundImage="url(".concat(t.streams[e].img,")");var s=document.createElement("img");s.className="stream-thumbnail-image",s.src="".concat(null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img),s.alt="No Thumbnail Available",o.append(s),i.dom.appendContent(b,o),i.dom.appendContent(c,b)},h=0;h<this.streams.length;h++)j(h);i.dom.appendContent(o,s),i.dom.appendContent(o,a),i.dom.appendContent(e,o),i.dom.appendContent(e,c),u(this.playerId).on("fullscreenchange",(function(){var r=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height"),o=n(r).call(r,0,-2);e.style.height="".concat(o,"px")}))}}]),a}();export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/inherits";import n from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import s from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import a from"@babel/runtime-corejs3/core-js-stable/instance/concat";import l from"video.js";import{P as c}from"./icons-68d3a609.js";import{G as m,f as p}from"./generic-ca913bb9.js";import{d}from"./skin-43755201.js";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";function u(t){var r=b();return function(){var o,s=i(t);if(r){var a=i(this).constructor;o=e(s,arguments,a)}else o=s.apply(this,arguments);return n(this,o)}}function b(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}var j=l.getComponent("Component"),v=function(e){o(i,j);var n=u(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,i),(r=n.call(this,e,o)).playerId=o.playerId,r.seriesData=o.sres,r.currentVideoData=o.res,r.initialiseStructure(),r.loadCSS(),r}return r(i,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"play-next"}),t=l.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(c(window.controlsColor?window.controlsColor:"white"))});return l.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=l.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),r=l.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),o=l.dom.createEl("div",{className:"nextep-meta-details next-margin"}),n=l.dom.createEl("div",{className:"next-eps-image"}),i=l.dom.createEl("div",{className:"next-eps-description"});l.dom.appendContent(o,n),l.dom.appendContent(o,i),l.dom.appendContent(t,r),l.dom.appendContent(t,o),this.toggleContentOnHover(e,t),l.dom.appendContent(e,t)}},{key:"toggleContentOnHover",value:function(e,t){e.addEventListener("mouseover",(function(){l.dom.removeClass(t,"nextepisode-hidden")})),t.addEventListener("mouseover",(function(){l.dom.removeClass(t,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){l.dom.addClass(t,"nextepisode-hidden")})),t.addEventListener("mouseout",(function(){l.dom.addClass(t,"nextepisode-hidden")}))}}]),i}(),f=function(e,t){var r=h(e,t.video.gist.id),o=g(e[r],t.video.gist.id),n=x(e[r],o);C(n.nextEp)},h=function(e,t){for(var r=-1,o=0;o<e.length;o++)for(var n=0;n<e[o].episodes.length;n++)if(e[o].episodes[n].id===t){r=o;break}return r},x=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 r=e.episodes.length,o=t-1>=0?t-1:r-1,n=(t+1)%r,i=r>1?e.episodes[o]:null,s=r>1?e.episodes[n]:null;return o===n&&(0===o?s=null:i=null),{prevEp:i,nextEp:s,prevEpIdx:o,nextEpIdx:n}},g=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=null;return t?(s(e=t.episodes).call(e,(function(e,t){e.gist.id===r&&(o=t)})),o):null},C=function(e){var t,r,o;l.dom.$(".next-eps"),l.dom.$(".play-next").onclick=function(){var t;m("my-player",null==e||null===(t=e.gist)||void 0===t?void 0:t.id).then((function(e){p(e.response)}))};var n=l.dom.$(".next-eps-image"),i=d("<img src=".concat(null==e||null===(t=e.gist)||void 0===t?void 0:t.videoImageUrl," />")),s=null==i?void 0:i.firstChild;null==n||n.append(s);for(var c=l.dom.$(".next-eps-description"),u=d(a(r="<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>")).call(r,null==e||null===(o=e.gist)||void 0===o?void 0:o.description,"</div>"));null!=u&&u.firstChild;)null==c||c.appendChild(u.firstChild)};export{v as default,f as initaliseFunctionality};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import s from"@babel/runtime-corejs3/helpers/inherits";import n from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import a from"@babel/runtime-corejs3/core-js-stable/instance/slice";import l from"video.js";import{E as c,f as d}from"./icons-68d3a609.js";import{G as m,R as p}from"./generic-ca913bb9.js";import{a as u}from"./autoNextVideo-b1b3db93.js";import{e as b,g as v}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-7ef0c31b.js";function j(t){var o=y();return function(){var r,s=i(t);if(o){var a=i(this).constructor;r=e(s,arguments,a)}else r=s.apply(this,arguments);return n(this,r)}}function y(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}var h=l.getComponent("Component"),f=function(e){s(i,h);var n=j(i);function i(e){var t,r,s,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,i),(a=n.call(this,e,l)).playerId=l.playerId,a.seriesData=l.sres,a.videos=null==l||null===(t=l.playlist)||void 0===t?void 0:t.content,a.cb=(null==l||null===(r=l.playlist)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==l||null===(s=l.playlist)||void 0===s?void 0:s.autoNext)||!1,a.currentVideoData=l.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&u({playerId:a.playerId,content:a.videos,cb:a.cb}),a}return r(i,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(c())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.js").then((function(e){var t=document.createElement("style");t.id="playlist-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=l.dom.createEl("div",{className:"selection-container hidden"});l.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var o;null!==(o=t.classList)&&void 0!==o&&o.contains("hidden")?(b(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height"),s=a(r).call(r,0,-2);t.style.height="".concat(s,"px"),l.dom.appendContent(e,t),o.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),s=l.dom.createEl("div",{className:"playlist-selector-head"}),n=l.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(d())});n.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var i=l.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),c=l.dom.createEl("div",{className:"playlist-selector-content"}),u=function(e){var r,s,n=l.dom.createEl("div",{className:"playlist-container"}),i=l.dom.createEl("div",{className:"playlist-section",index:e}),a=l.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(r=o.videos[e])||void 0===r?void 0:r.title)||"")}),d=l.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(o.videos[e].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});l.dom.appendContent(i,a),l.dom.appendContent(i,d),l.dom.appendContent(n,i),l.dom.appendContent(c,n);var u=l.dom.createEl("div",{className:"playlist-section-expanded hidden"}),b=l.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(s=o.videos[e])||void 0===s?void 0:s.description)||"")}),v=l.dom.createEl("div",{className:"playlist-image"});v.style.backgroundImage="url(".concat(o.videos[e].img,")"),l.dom.appendContent(u,v),l.dom.appendContent(u,b),l.dom.appendContent(n,u),l.dom.appendContent(c,n),u.onclick=function(t){t.stopPropagation(),p(e+1),m(o.playerId,o.videos[e].id).then((function(e){null!=o&&o.cb&&o.cb(e)})).catch((function(e){null!=o&&o.cb&&o.cb(e)}))},i.onclick=function(e){var o,r,s,i=document.getElementsByClassName("playlist-selector-content")[0].childNodes,a=(i=t(i))[e.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=a&&null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(n.style.backgroundColor="#0000007d",null==a||null===(r=a.classList)||void 0===r||r.remove("hidden")):(null==a||null===(s=a.classList)||void 0===s||s.add("hidden"),n.style.backgroundColor="unset")}},b=0;b<this.videos.length;b++)u(b);l.dom.appendContent(s,n),l.dom.appendContent(s,i),l.dom.appendContent(e,s),l.dom.appendContent(e,c),v(this.playerId).on("fullscreenchange",(function(){var t=document.getElementById(o.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height"),s=a(r).call(r,0,-2);e.style.height="".concat(s,"px")}}))}}]),i}();export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import l from"@babel/runtime-corejs3/core-js-stable/instance/sort";import{g as i}from"./skin-43755201.js";var n=function(n){var o,e=i(n),t=[];if((null==e||null===(o=e.tech_)||void 0===o?void 0:o.vhs)||!1){var d,u,v=null==e||null===(d=e.tech_)||void 0===d||null===(u=d.vhs)||void 0===u?void 0:u.representations();(null==v?void 0:v.length)>0&&(t=null==v?void 0:l(v).call(v,(function(l,i){return(null==l?void 0:l.height)==(null==i?void 0:i.height)?(null==i?void 0:i.bandwidth)-(null==l?void 0:l.bandwidth):(null==i?void 0:i.height)-(null==l?void 0:l.height)})))}else{var r,h,a=null==e||null===(r=e.dash)||void 0===r||null===(h=r.mediaPlayer)||void 0===h?void 0:h.getBitrateInfoListFor("video");(null==a?void 0:a.length)>0&&(t=null==a?void 0:l(a).call(a,(function(l,i){return i.height-l.height})))}return t};export{n as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/toConsumableArray";import n from"@babel/runtime-corejs3/helpers/classCallCheck";import i from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/assertThisInitialized";import a from"@babel/runtime-corejs3/helpers/inherits";import l from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import d from"@babel/runtime-corejs3/helpers/getPrototypeOf";import r from"@babel/runtime-corejs3/helpers/defineProperty";import s from"@babel/runtime-corejs3/core-js-stable/instance/map";import c from"@babel/runtime-corejs3/core-js-stable/instance/concat";import u from"@babel/runtime-corejs3/core-js-stable/parse-int";import m from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import h from"@babel/runtime-corejs3/core-js-stable/set-timeout";import p from"video.js";import{g as v,p as g}from"./skin-43755201.js";import{d as f}from"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";function b(t){var n=w();return function(){var i,o=d(t);if(n){var a=d(this).constructor;i=e(o,arguments,a)}else i=o.apply(this,arguments);return l(this,i)}}function w(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}var y=p.getComponent("Component"),C=function(e){a(d,y);var l=b(d);function d(e){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,d),i=l.call(this,e,a),r(o(i),"masterRenditions",[]),r(o(i),"addCustomFont",(function(e){var t,n=p.dom.createEl("div",{className:"font hideCustomFonts"}),o=p.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});p.dom.appendContent(n,o);var a=p.dom.createEl("div",{className:"font-options"});a.style.fontSize="12px",s(t=i.fontSizeOptions).call(t,(function(e,t){var n,o,l,d=p.dom.createEl("div",{className:"options",innerHTML:c(n=c(o=c(l='<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=')).call(l,e,' name="item" />\n <label class="radio-btn-lable" for=')).call(o,e,">")).call(n,e,"pt</label>\n </div>")});d.addEventListener("click",(function(e){var t=e.target.id;i.changeFontSize(t)})),p.dom.appendContent(a,d)})),p.dom.appendContent(n,a),p.dom.appendContent(e,n)})),r(o(i),"resetRenditions",(function(){var e;s(e=t(document.getElementsByClassName("rendition"))).call(e,(function(e){p.dom.removeClass(e,"selected")}))})),i.playerId=null==a?void 0:a.playerId,i.skin=null==a?void 0:a.skin,i.icon=null==a?void 0:a.icon,i.masterRenditions=[],i.fontSizeOptions=[10,12,14],i.createRenditions(a.renditions),window.height=null,i}return i(d,[{key:"toggleContentOnHover",value:function(e,t){var n=p.dom.$(".setting-icon",e);n.addEventListener("mouseover",(function(){p.dom.removeClass(t,"resolution_hidden")})),t.addEventListener("mouseover",(function(){p.dom.removeClass(t,"resolution_hidden")})),n.addEventListener("mouseout",(function(){p.dom.addClass(t,"resolution_hidden")})),t.addEventListener("mouseout",(function(){p.dom.addClass(t,"resolution_hidden")}))}},{key:"changeFontSize",value:function(e){var t=p.dom.$(".renditions",this.contentEl()),n=p.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(),i=p.dom.$(".setting-icon",this.el()),o=g(this.icon);if(i.append(o),"live"===this.skin){var a=document.createTextNode(" Settings");i.appendChild(a)}var l=p.dom.createEl("div",{className:"content resolution_hidden"}),d=p.dom.createEl("div",{innerHTML:"Quality",className:"title"}),r=p.dom.createEl("div",{className:"resolution"});p.dom.appendContent(r,d),this.toggleContentOnHover(n,l);var m=p.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(s(e).call(e,(function(e,n){var i,o,a,l,d,r=p.dom.createEl("div",{className:"relative"}),s=(((null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(o=e.playlist)||void 0===o?void 0:o.attributes.BANDWIDTH))/1048576).toFixed(1),h=c(a="".concat(e.height,"p ")).call(a,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>":"");h=c(l=c(d="".concat(e.height,"p @ ")).call(d,s,"mbps ")).call(l,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 v=p.dom.createEl("p",{innerHTML:h,className:"rendition",res:e.height,bandwidth:e.bandwidth});p.dom.appendContent(r,v),p.dom.appendContent(m,r),v.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=u(e.target.bandwidth),window.selectedVideo=e.target.video,E(t.playerId,e.target),p.dom.addClass(v,"selected"))}))})),this.addAutoRendition("nondrm",m),"Safari"!=f()&&this.addDynamicSwitchIfAuto()):(s(e).call(e,(function(e,n){var i,o,a,l=p.dom.createEl("div",{className:"relative"}),d=(e.bitrate/1e6).toFixed(1),r=c(i="".concat(e.height,"p ")).call(i,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&&(r=c(o=c(a="".concat(e.height,"p @ ")).call(a,d,"mbps ")).call(o,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=p.dom.createEl("p",{innerHTML:r,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});p.dom.appendContent(l,s),p.dom.appendContent(m,l),s.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,E(t.playerId,e.target),p.dom.addClass(s,"selected"))}))})),this.addAutoRendition("drm",m)),p.dom.appendContent(r,m),p.dom.appendContent(l,r),p.dom.appendContent(n,l)}},{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,n,o=e.activeCues[0];if(console.log((null==o||null===(t=o.value)||void 0===t||null===(n=t.resolution)||void 0===n?void 0:n.height)+"p"),o&&document.querySelector(".auto.selected")){var a,l,d,r,s,c,u,m;if(null!=o&&null!==(a=o.value)&&void 0!==a&&null!==(l=a.resolution)&&void 0!==l&&l.height&&i!==(null==o||null===(d=o.value)||void 0===d||null===(r=d.resolution)||void 0===r?void 0:r.height))document.querySelector(".auto.selected").textContent="Auto ".concat(null==o||null===(u=o.value)||void 0===u||null===(m=u.resolution)||void 0===m?void 0:m.height,"p");i=null==o||null===(s=o.value)||void 0===s||null===(c=s.resolution)||void 0===c?void 0:c.height}}))}},{key:"createEl",value:function(){var e=p.dom.createEl("div",{className:"container"}),t=p.dom.createEl("div",{className:"setting-icon"});return p.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var i,o,a,l,d=null===(i=this.player_)||void 0===i||null===(o=i.tech_)||void 0===o?void 0:o.vhs.selectPlaylist().attributes.RESOLUTION.height,r=null===(a=this.player_)||void 0===a||null===(l=a.tech_)||void 0===l?void 0:l.vhs.selectPlaylist().attributes.BANDWIDTH,s=p.dom.createEl("div",{className:"relative"}),c=p.dom.createEl("p",{innerHTML:"Auto ".concat(d,"p"),className:"rendition auto selected",bandwidth:r,res:d});c.addEventListener("click",(function(e){window.height!==e.target.res&&(n.resetRenditions(),p.dom.addClass(c,"selected"),window.height=e.target.res,window.bandwidth=u(e.target.bandwidth),window.selectedVideo=e.target.video,E(n.playerId,null,!0))})),p.dom.appendContent(s,c),p.dom.appendContent(t,s)}else{var m=p.dom.createEl("div",{className:"relative"}),h=p.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});h.addEventListener("click",(function(e){n.resetRenditions(),p.dom.addClass(h,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,E(n.playerId,null,!0)})),p.dom.appendContent(m,h),p.dom.appendContent(t,m)}}}]),d}(),E=function(e,t,n){var i,o=v(e),a=null==t?void 0:t.bandwidth;if((null==o||null===(i=o.tech_)||void 0===i?void 0:i.vhs)||!1){var l;m(l=o.tech_.vhs.representations()).call(l,(function(e){n||e.bandwidth===a?e.enabled(!0):e.enabled(!1)})),o.handleTechPlaying_();var d=o.currentTime();o.currentTime(0),h((function(){o.currentTime(d)}),100);var r=p.dom.$(".content");r&&p.dom.addClass(r,"resolution_hidden")}else{var s=null==t?void 0:t.qualityIndex;if(n){var c,u;null==o||null===(c=o.dash)||void 0===c||null===(u=c.mediaPlayer)||void 0===u||u.resetSettings()}else{var g,f,b,w;null==o||null===(g=o.dash)||void 0===g||null===(f=g.mediaPlayer)||void 0===f||f.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==o||null===(b=o.dash)||void 0===b||null===(w=b.mediaPlayer)||void 0===w||w.setQualityFor("video",s,!0);var y=o.currentTime();o.currentTime(0),h((function(){o.currentTime(y)}),100);var C=p.dom.$(".content");C&&p.dom.addClass(C,"resolution_hidden")}}};export{C as default,E as playSelectedResolution};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/asyncToGenerator";import i from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import s from"@babel/runtime-corejs3/helpers/assertThisInitialized";import o from"@babel/runtime-corejs3/helpers/inherits";import n from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import c from"@babel/runtime-corejs3/helpers/defineProperty";import l from"@babel/runtime-corejs3/regenerator";import d from"@babel/runtime-corejs3/core-js-stable/instance/map";import p from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import m from"@babel/runtime-corejs3/core-js-stable/instance/concat";import u from"video.js";import{T as b,D as v,G as f,f as j,C as h}from"./generic-ca913bb9.js";import{E as g}from"./icons-68d3a609.js";import{d as y}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";var w=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function C(t){var i=L();return function(){var r,s=a(t);if(i){var o=a(this).constructor;r=e(s,arguments,o)}else r=s.apply(this,arguments);return n(this,r)}}function L(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}var k,E=u.getComponent("Component"),x=function(e){o(n,E);var t=C(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,n),r=t.call(this,e,o),c(s(r),"seriesData",[]),r.seriesData=o.seriesData,k=o.playerId;var a=r.el();return B(a,r.seriesData),r.loadCSS(),r}return r(n,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){import("./series-041152aa.js").then((function(e){var t=document.createElement("style");t.id="series",t.append("".concat(e.default)),document.head.appendChild(t)}))}}]),n}();function S(){return(S=t(l.mark((function e(t,i,r,s){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v(k),w(k),f(k,i).then((function(e){j(e.response),h(k)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e,t,i,r){var s,o=document.getElementById("season-list"),n=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var c=d(s=e.episodes).call(s,(function(e,t){var i,r,s,o;return m(i=m(r=m(s=m(o='\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," ")).call(o,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=')).call(s,e.gist.videoImageUrl,' alt="')).call(r,e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">')).call(i,e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=y(c);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){b(e).then((function(e){var t=e.data,i=document.querySelectorAll("#progress-div");i&&d(t).call(t,(function(e,t){e&&e.watchedPercentage&&i[t]&&(i[t].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(r),o.classList.toggle("hide-container"),n.classList.toggle("hide-container");var u=document.querySelectorAll(".details-wrapper"),v=document.querySelectorAll("#episode-title"),f=document.querySelectorAll(".meta-details"),j=document.querySelector("#episodes-back-btn"),h=e.id,g=e.episodes;j.addEventListener("click",(function(){return function(e,t){e.classList.remove("hide-container"),t.classList.add("hide-container")}(o,n)}));for(var w=function(t){u[t].addEventListener("click",(function(){return function(e,t,i){var r=t.querySelector(".meta-details");t.classList.toggle("episode-active"),r.classList.toggle("metadetails-active"),p(i).call(i,(function(t,r){r!==e&&(i[r].classList.remove("episode-active"),i[r].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(t,v[t],v)})),f[t].addEventListener("click",(function(){return function(e,t,i,r){return S.apply(this,arguments)}(t,g[t].id,i,v)})),e.episodes[t].id==h&&v[t].classList.add("highlight-active-eps")},C=0;C<u.length;C++)w(C)}function B(e,t){for(var i,r=m(i='<div class="hover-div"></div>\n '.concat(g(),'\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 ')).call(i,function(e){return d(e).call(e,(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>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var s=y(r);null!=s&&s.firstChild;)e.appendChild(s.firstChild)}export{B as customSeasonList,q as handleSeasonChange,x as seriesModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/toConsumableArray";import s from"@babel/runtime-corejs3/helpers/classCallCheck";import o from"@babel/runtime-corejs3/helpers/createClass";import r from"@babel/runtime-corejs3/helpers/assertThisInitialized";import i from"@babel/runtime-corejs3/helpers/inherits";import n from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import l from"@babel/runtime-corejs3/core-js-stable/instance/map";import c from"@babel/runtime-corejs3/core-js-stable/instance/slice";import d from"video.js";import{e as m,f as u,B as p}from"./icons-68d3a609.js";import{j as v,U as b,V as h,b as f,w as j,G as C}from"./generic-ca913bb9.js";import{e as y,s as g,p as N,j as E,g as k,i as S}from"./skin-43755201.js";import{a as L}from"./autoNextVideo-b1b3db93.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-7ef0c31b.js";function w(t){var s=x();return function(){var o,r=a(t);if(s){var i=a(this).constructor;o=e(r,arguments,i)}else o=r.apply(this,arguments);return n(this,o)}}function x(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(x=function(){return!!t})()}var I=d.getComponent("Component"),M=function(e){i(a,I);var n=w(a);function a(e){var o,i,c,d,m,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,a),(u=n.call(this,e,p)).playerId=p.playerId,u.seriesData=p.sres,u.videos=null==p||null===(o=p.sres)||void 0===o?void 0:o.seasons,u.currentVideoData=p.res,u.initialiseStructure(),u.loadCSS(),u.selectedSeason=0,u.cb=null==p||null===(i=p.series)||void 0===i?void 0:i.cb,u.autoPlayNext=(null==p||null===(c=p.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),u.watchMap=v(),null!==(d=r(u))&&void 0!==d&&d.autoPlayNext&&null!=p&&null!==(m=p.series)&&void 0!==m&&m.enable){var f,j,C,y,g=null==p||null===(f=p.sres)||void 0===f?void 0:f.seasons,N=[];l(g).call(g,(function(e){N.push.apply(N,t(e.episodes))})),b(N),h(null===(j=u.options_)||void 0===j||null===(C=j.res)||void 0===C||null===(y=C.video)||void 0===y?void 0:y.id),L({playerId:u.playerId,content:N,cb:u.cb,series:null==p?void 0:p.sres})}return u}return o(a,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(m())});return d.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.js").then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(y(),e.classList.remove("hidden"),s.classList.add("open"),g(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=d.dom.createEl("div",{className:"series-selection-container hidden"});d.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(s)};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height"),i=c(r).call(r,0,-2);s.style.height="".concat(i,"px"),d.dom.appendContent(t,s),o.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=d.dom.createEl("div",{className:"series-selector-head"}),r=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(u())});r.onclick=function(){if("series-selector-cross-icon"===r.className)e.classList.add("hidden"),s.classList.remove("open");else if("series-selector-back-icon"===r.className){var o=d.dom.$(".series-selector-content",t.el());for(d.dom.$(".series-selector-cross-icon",t.el()),r.className="series-selector-cross-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var i=t.createSeasonLister();for(d.dom.appendContent(o,i),d.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var n=N(u());r.appendChild(n)}};var i=d.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),n=d.dom.createEl("div",{className:"series-selector-content"}),a=this.createSeasonLister();d.dom.appendContent(n,a),d.dom.appendContent(o,r),d.dom.appendContent(o,i),d.dom.appendContent(e,o),d.dom.appendContent(e,n),E(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;k(this.playerId);for(var t=f(),s=d.dom.createEl("div",{className:"season-container"}),o=function(o){var r,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(o));var n=document.createElement("div");n.className="season - ".concat(o),n.textContent=null===(r=t[o])||void 0===r?void 0:r.title;var a=d.dom.createEl("input",{className:"radio - ".concat(o),id:"season-".concat(o),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==o&&(a.checked=!0),a.onclick=function(t){j.set(o),e.showSeasonDetails(o)},d.dom.appendContent(i,a),d.dom.appendContent(i,n),d.dom.appendContent(s,i)},r=0;r<t.length;r++)o(r);return s}},{key:"getSeasonDetailsContainer",value:function(e,s){var o=this;e=l(e).call(e,(function(e){var t,s,r,i,n,a,l,c,d;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:(null==e||null===(s=e.gist)||void 0===s||null===(r=s.imageGist)||void 0===r?void 0:r.r16x9)||(null===(i=window)||void 0===i||null===(n=i.app_data)||void 0===n||null===(a=n.appcmsMain)||void 0===a||null===(l=a.images)||void 0===l?void 0:l.placeholderCover),watchedPercentage:(null==o||null===(c=o.watchMap)||void 0===c||null===(d=c.get(null==e?void 0:e.id))||void 0===d?void 0:d.p)||0}}));for(var r=function(r){var i,n,a,l,c,m=d.dom.createEl("div",{className:"series-container"}),u=d.dom.createEl("div",{className:"series-section-data",index:r,innerHTML:"".concat((null===(i=e[r])||void 0===i?void 0:i.title)||"")});d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(n=e[r])||void 0===n?void 0:n.title)||"")}),d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[r].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var p=d.dom.createEl("div",{className:"series-section-image"}),v=(null===(a=e[r])||void 0===a?void 0:a.description)||"";(null===(l=v)||void 0===l?void 0:l.length)>170&&(v=v.substr(0,170)+"..."),d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(v||"")});var b=d.dom.createEl("img",{className:"series-image"});b.src="".concat(S(null===(c=e[r])||void 0===c?void 0:c.img)),b.alt="Episode ".concat(r+1),d.dom.appendContent(p,b),d.dom.appendContent(m,p),d.dom.appendContent(m,u),d.dom.appendContent(s,m),m.onclick=function(t){var s;t.stopPropagation(),h(null===(s=e[r])||void 0===s?void 0:s.id),C(o.playerId,e[r].id).then((function(e){null!=o&&o.cb&&o.cb(e)})).catch((function(e){null!=o&&o.cb&&o.cb(e)}))},u.onclick=function(e){var s,o,r,i=document.getElementsByClassName("series-selector-content")[0].childNodes,n=(i=t(i))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=n&&null!==(s=n.classList)&&void 0!==s&&s.contains("hidden")?(m.style.backgroundColor="#0000007d",null==n||null===(o=n.classList)||void 0===o||o.remove("hidden")):(null==n||null===(r=n.classList)||void 0===r||r.add("hidden"),m.style.backgroundColor="unset")}},i=0;i<e.length;i++)r(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=d.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=f()[e].episodes;this.getSeasonDetailsContainer(s,t);var o=d.dom.$(".series-selector-cross-icon",this.el());for(o.className="series-selector-back-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var r=N(p());o.appendChild(r),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),a}();export{M as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import s from"@babel/runtime-corejs3/helpers/createClass";import r from"@babel/runtime-corejs3/helpers/assertThisInitialized";import n from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import l from"@babel/runtime-corejs3/core-js-stable/instance/map";import c from"@babel/runtime-corejs3/core-js-stable/instance/slice";import d from"video.js";import{E as m,f as u,B as p}from"./icons-68d3a609.js";import{j as v,U as b,V as h,b as f,w as j,G as y}from"./generic-ca913bb9.js";import{e as C,p as g,g as N}from"./skin-43755201.js";import{a as E}from"./autoNextVideo-b1b3db93.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-7ef0c31b.js";function k(t){var o=S();return function(){var s,r=a(t);if(o){var n=a(this).constructor;s=e(r,arguments,n)}else s=r.apply(this,arguments);return i(this,s)}}function S(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(S=function(){return!!t})()}var x=d.getComponent("Component"),w=function(e){n(a,x);var i=k(a);function a(e){var s,n,c,d,m,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,a),(u=i.call(this,e,p)).playerId=p.playerId,u.seriesData=p.sres,u.videos=null==p||null===(s=p.sres)||void 0===s?void 0:s.seasons,u.currentVideoData=p.res,u.initialiseStructure(),u.loadCSS(),u.selectedSeason=0,u.cb=null==p||null===(n=p.series)||void 0===n?void 0:n.cb,u.autoPlayNext=(null==p||null===(c=p.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),u.watchMap=v(),null!==(d=r(u))&&void 0!==d&&d.autoPlayNext&&null!=p&&null!==(m=p.series)&&void 0!==m&&m.enable){var f,j,y,C,g=null==p||null===(f=p.sres)||void 0===f?void 0:f.seasons,N=[];l(g).call(g,(function(e){N.push.apply(N,t(e.episodes))})),b(N),h(null===(j=u.options_)||void 0===j||null===(y=j.res)||void 0===y||null===(C=y.video)||void 0===C?void 0:C.id),E({playerId:u.playerId,content:N,cb:u.cb,series:null==p?void 0:p.sres})}return u}return s(a,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(m())});return d.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,o=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(C(),e.classList.remove("hidden"),o.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=d.dom.createEl("div",{className:"series-selection-container hidden"});d.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var s=document.getElementById(this.playerId);if(s){var r=window.getComputedStyle(s,null).getPropertyValue("height"),n=c(r).call(r,0,-2);o.style.height="".concat(n,"px"),d.dom.appendContent(t,o),s.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),s=d.dom.createEl("div",{className:"series-selector-head"}),r=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(u())});r.onclick=function(){if("series-selector-cross-icon"===r.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===r.className){var s=d.dom.$(".series-selector-content",t.el());for(d.dom.$(".series-selector-cross-icon",t.el()),r.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var n=t.createSeasonLister();for(d.dom.appendContent(s,n),d.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var i=g(u());r.appendChild(i)}};var n=d.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),i=d.dom.createEl("div",{className:"series-selector-content"}),a=this.createSeasonLister();d.dom.appendContent(i,a),d.dom.appendContent(s,r),d.dom.appendContent(s,n),d.dom.appendContent(e,s),d.dom.appendContent(e,i),N(this.playerId).on("fullscreenchange",(function(){var o=document.getElementById(t.playerId);if(o){var s=window.getComputedStyle(o,null).getPropertyValue("height"),r=c(s).call(s,0,-2);e.style.height="".concat(r,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;N(this.playerId);for(var t=f(),o=d.dom.createEl("div",{className:"season-container"}),s=function(s){var r,n=document.createElement("label");n.className="season-holder",n.setAttribute("for","season-".concat(s));var i=document.createElement("div");i.className="season - ".concat(s),i.textContent=null===(r=t[s])||void 0===r?void 0:r.title;var a=d.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==s&&(a.checked=!0),a.onclick=function(t){j.set(s),e.showSeasonDetails(s)},d.dom.appendContent(n,a),d.dom.appendContent(n,i),d.dom.appendContent(o,n)},r=0;r<t.length;r++)s(r);return o}},{key:"getSeasonDetailsContainer",value:function(e,o){var s=this;e=l(e).call(e,(function(e){var t,o,r,n,i;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(o=e.gist)||void 0===o||null===(r=o.imageGist)||void 0===r?void 0:r.r16x9,watchedPercentage:(null==s||null===(n=s.watchMap)||void 0===n||null===(i=n.get(null==e?void 0:e.id))||void 0===i?void 0:i.p)||0}}));for(var r=function(r){var n,i,a,l,c,m,u,p=d.dom.createEl("div",{className:"series-container"}),v=d.dom.createEl("div",{className:"series-section",index:r}),b=d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(n=e[r])||void 0===n?void 0:n.title)||"")}),f=d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[r].watchedPercentage,"%' class='series-progress-bar-value'></div>")});d.dom.appendContent(v,b),d.dom.appendContent(v,f),d.dom.appendContent(p,v),d.dom.appendContent(o,p);var j=d.dom.createEl("div",{className:"series-section-expanded hidden"}),C=(null===(i=e[r])||void 0===i?void 0:i.description)||"";(null===(a=C)||void 0===a?void 0:a.length)>170&&(C=C.substr(0,170)+"...");var g=d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(C||"")}),N=d.dom.createEl("img",{className:"series-image"});N.src="".concat((null===(l=e[r])||void 0===l?void 0:l.img)||(null===(c=window)||void 0===c||null===(m=c.customData)||void 0===m?void 0:m.fallbackImage)),N.alt="".concat(null===(u=e[r])||void 0===u?void 0:u.title),d.dom.appendContent(j,N),d.dom.appendContent(j,g),d.dom.appendContent(p,j),d.dom.appendContent(o,p),j.onclick=function(t){var o;t.stopPropagation(),h(null===(o=e[r])||void 0===o?void 0:o.id),y(s.playerId,e[r].id).then((function(e){null!=s&&s.cb&&s.cb(e)})).catch((function(e){null!=s&&s.cb&&s.cb(e)}))},v.onclick=function(e){var o,s,r,n=document.getElementsByClassName("series-selector-content")[0].childNodes,i=(n=t(n))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=i&&null!==(o=i.classList)&&void 0!==o&&o.contains("hidden")?(p.style.backgroundColor="#0000007d",null==i||null===(s=i.classList)||void 0===s||s.remove("hidden")):(null==i||null===(r=i.classList)||void 0===r||r.add("hidden"),p.style.backgroundColor="unset")}},n=0;n<e.length;n++)r(n);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=d.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var o=f()[e].episodes;this.getSeasonDetailsContainer(o,t);var s=d.dom.$(".series-selector-cross-icon",this.el());for(s.className="series-selector-back-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var r=g(p());s.appendChild(r),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),a}();export{w as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/toConsumableArray";import a from"@babel/runtime-corejs3/helpers/classCallCheck";import n from"@babel/runtime-corejs3/helpers/createClass";import i from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import r from"@babel/runtime-corejs3/helpers/getPrototypeOf";import l from"@babel/runtime-corejs3/core-js-stable/map";import s from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import c from"@babel/runtime-corejs3/core-js-stable/instance/map";import d from"@babel/runtime-corejs3/core-js-stable/instance/sort";import u from"@babel/runtime-corejs3/core-js-stable/instance/concat";import m from"video.js";import{g as p,f as v,T as h}from"./icons-68d3a609.js";import{e as b,s as f,f as g,j as y,g as C,d as j,p as E}from"./skin-43755201.js";import{g as N}from"./renditions-7724f87c.js";import{playSelectedResolution as k}from"./resolution-608d4334.js";import{g as I}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/helpers/assertThisInitialized";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";function L(t){var a=B();return function(){var n,i=r(t);if(a){var l=r(this).constructor;n=e(i,arguments,l)}else n=i.apply(this,arguments);return o(this,n)}}function B(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(B=function(){return!!t})()}var M=m.getComponent("Component"),T=function(e){i(r,M);var o=L(r);function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,r),(t=o.call(this,e,n)).playerId=n.playerId,t.seriesData=n.sres,t.currentVideoData=n.res,t.initialiseStructure(),t.loadCSS(),t.resolutionBitrateMap,t}return n(r,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new l,s(e).call(e,(function(e){var a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(a){var n=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(a,n||1/0))}}))}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),n=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!n)&&a>n}},{key:"createEl",value:function(){var e=m.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=m.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(p())});return m.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./settings-icon-1fbc99bc.js").then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=m.dom.createEl("div",{className:"selection-container hidden"});m.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=a.classList)&&void 0!==n&&n.contains("hidden")?(b(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",f(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");a.style.height="".concat(i),m.dom.appendContent(t,a),n.style.overflow="hidden",this.addFunctionality(a),g(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=m.dom.createEl("div",{className:"settings-selector-head"}),n=m.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(v())});n.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var i=m.dom.createEl("div",{className:"settings-selector-title",innerHTML:I("settingsTitle")||"Settings"}),o=m.dom.createEl("div",{className:"settings-selector-content"}),r=m.dom.createEl("div",{className:"settings-container"}),l=this.createVideoQualityContainer();m.dom.appendContent(r,l);var s=this.createAudioQualityContainer();m.dom.appendContent(r,s),m.dom.appendContent(a,n),m.dom.appendContent(a,i),m.dom.appendContent(e,a),m.dom.appendContent(e,o),m.dom.appendContent(o,r),y(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=C(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=m.dom.createEl("div",{className:"audio-language-container"}),n=m.dom.createEl("div",{className:"audio-language-container-title",innerHTML:I("audioLanguageText")||"Audio Language"});m.dom.appendContent(a,n);for(var i=function(e){var n,i=document.createElement("label");i.className="audio-language-holder",i.setAttribute("for","language-radio-".concat(e));var o=document.createElement("div");o.className="audio - ".concat(e),o.textContent=null==t||null===(n=t[e])||void 0===n?void 0:n.label;var r=m.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});r.setAttribute("type","radio"),1==t[e].enabled&&(r.checked=!0),r.onchange=function(a){c(t).call(t,(function(e){e.enabled=!1})),t[e].enabled=!0},m.dom.appendContent(i,r),m.dom.appendContent(i,o),m.dom.appendContent(a,i)},o=0;o<t.length;o++)i(o);return a}}},{key:"createVideoQualityContainer",value:function(){var e,a,n=this,i=m.dom.createEl("div",{className:"video-quality-container"}),o=m.dom.createEl("div",{className:"video-quality-container-title",innerHTML:I("videoQualityText")||"Video Quality"});m.dom.appendContent(i,o);var r=d(e=u(a=[]).call(a,t(N(this.playerId)),[{height:"Auto"}])).call(e,(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)}));this.fillResolutionBitrateMap(r),k(this.playerId,"raw",!0);for(var l=function(e){var t,a,o,l=document.createElement("label"),s=document.createElement("div"),c=document.createElement("div");c.className="video-quality-bitrate-label",s.className="video-quality-holder",l.className="video-quality-label-container",l.setAttribute("for","quality".concat(e));var d=document.createElement("div");d.className="video-quality - ".concat(e);var u=(null==r||null===(t=r[e])||void 0===t?void 0:t.height)+"".concat("Auto"==(null==r||null===(a=r[e])||void 0===a?void 0:a.height)?"":"p"),p=document.createTextNode(u),v="".concat(n.isEnhancedBitrate(r[e])?I("enhancedBitrateLabel")||"Enhanced Bitrate":""),b=document.createTextNode(v);if(c.appendChild(b),d.appendChild(p),(null==r||null===(o=r[e])||void 0===o?void 0:o.height)>=720)for(var f=j("<span class='hd-rendition'> HD </span>");null!=f&&f.firstChild;)d.appendChild(f.firstChild);var g=m.dom.createEl("input",{className:"radio - ".concat(e," radio-btn"),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(r[e]),checked:"".concat(e==r.length-1)});g.setAttribute("type","radio"),g.onchange=function(t){var a=r[e];"true"=="".concat("Auto"==r[e].height)?k(n.playerId,a,!0):k(n.playerId,a)};var y=document.createElement("span");y.className=v?"check-mark center":"check-mark";var C=E(h());y.appendChild(C),s.appendChild(g),s.appendChild(y),s.appendChild(d),m.dom.appendContent(l,s),l.appendChild(c),m.dom.appendContent(i,l)},s=0;s<r.length;s++)l(s);return i}}]),r}();export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,o as r,p as o,q as t}from"./features-a5258464.js";import{g as n,t as a,p as l}from"./skin-43755201.js";import{a as i,i as s,b as c}from"./index-a680c0dd.js";import{i as u}from"./browser-65e5d36c.js";import"videojs-contrib-quality-menu";import d from"video.js";import{k as m,i as p}from"./keyboardShortcuts-1d5ca3ca.js";import{l as b,S as v,e as f}from"./generic-ca913bb9.js";import j from"@babel/runtime-corejs3/core-js-stable/object/keys";import y from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import h from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import g from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import k from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import S from"@babel/runtime-corejs3/core-js-stable/object/define-property";import w from"@babel/runtime-corejs3/core-js-stable/instance/slice";import C from"@babel/runtime-corejs3/core-js-stable/array/from";import I from"@babel/runtime-corejs3/core-js-stable/symbol";import T from"@babel/runtime-corejs3/core-js/get-iterator-method";import x from"@babel/runtime-corejs3/helpers/toConsumableArray";import M from"@babel/runtime-corejs3/helpers/slicedToArray";import B from"@babel/runtime-corejs3/helpers/defineProperty";import E from"@babel/runtime-corejs3/helpers/asyncToGenerator";import A from"@babel/runtime-corejs3/regenerator";import N from"@babel/runtime-corejs3/core-js-stable/json/stringify";import O from"@babel/runtime-corejs3/core-js-stable/url";import U from"@babel/runtime-corejs3/core-js-stable/instance/includes";import R from"@babel/runtime-corejs3/core-js-stable/object/entries";import P from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import D from"@babel/runtime-corejs3/core-js-stable/instance/map";import V from"@babel/runtime-corejs3/core-js-stable/array/is-array";import _ from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import q from"@babel/runtime-corejs3/core-js-stable/map";import L from"@babel/runtime-corejs3/core-js-stable/instance/concat";import Q from"@babel/runtime-corejs3/core-js-stable/instance/filter";import $ from"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import{I as G}from"./icons-68d3a609.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"./renditions-7724f87c.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"./autoNextVideo-b1b3db93.js";import"./util-7ef0c31b.js";import"@babel/runtime-corejs3/helpers/typeof";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/flat";import"axios";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function F(r,o){var t=n(r);t&&(t.on("loadeddata",(function(){var e,t,a,l,c;!function(e){var r=n(e);r&&(null==r||r.qualityMenu,r.qualityMenu({useResolutionLabels:!0}))}(r),!(null!=o&&null!==(e=o.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(a=t.app_data)&&void 0!==a&&null!==(l=a.appcmsMain)&&void 0!==l&&null!==(c=l.features)&&void 0!==c&&c.auto_play)||null!=o&&o.liveVideo||i(r,o),null!=o&&o.liveVideo||u()||s(r)})),t.one("play",(function(){var o,t,n,a;null!==(o=window)&&void 0!==o&&null!==(t=o.customData)&&void 0!==t&&t.iframeOverlayUrl&&e(r,null===(n=window)||void 0===n||null===(a=n.customData)||void 0===a?void 0:a.iframeOverlayUrl)})))}function H(e,r){var o=void 0!==I&&T(e)||e["@@iterator"];if(!o){if(V(e)||(o=function(e,r){if(e){var o;if("string"==typeof e)return K(e,r);var t=w(o={}.toString.call(e)).call(o,8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?C(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?K(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){o&&(e=o);var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return l=e.done,e},e:function(e){i=!0,a=e},f:function(){try{l||null==o.return||o.return()}finally{if(i)throw a}}}}function K(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=Array(r);o<r;o++)t[o]=e[o];return t}function z(e,r){var o=j(e);if(y){var t=y(e);r&&(t=Q(t).call(t,(function(r){return h(e,r).enumerable}))),o.push.apply(o,t)}return o}function J(e){for(var r=1;r<arguments.length;r++){var o,t,n=null!=arguments[r]?arguments[r]:{};r%2?_(o=z(Object(n),!0)).call(o,(function(r){B(e,r,n[r])})):g?k(e,g(n)):_(t=z(Object(n))).call(t,(function(r){S(e,r,h(n,r))}))}return e}function W(){return W=E(A.mark((function e(r,o){var t,i,s,c,u,d,p,f,j,y,h,g,k,S,w,C,I,T,B;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B=function(e,o,t){var a=n(r);Math.floor(a.currentTime());var l,i,s,c,u,d,m,p,b,v,f,j,y,h,g=H(o);try{for(g.s();!(l=g.n()).done;)i=void 0,s=void 0,c=void 0,u=void 0,d=void 0,m=void 0,p=void 0,b=void 0,v=void 0,f=void 0,j=void 0,y=void 0,h=void 0,d=l.value,m=d.eventType,p=d.beaconUrls,b=d.startTimeInSeconds,v=d.startTime,f=d.durationInSeconds,j=Math.round(b),y=p[0],h=(null===(i=window)||void 0===i||null===(s=i.customData)||void 0===s||null===(c=s.ads)||void 0===c?void 0:c.adEventHandler)||null,j!=Math.round(a.currentTime())||T.has(v)||(T.set(v,!0),"function"==typeof h&&h({adsData:{eventType:m,startTimeInSeconds:b,startTime:v,durationInSeconds:f,ad:null==e||null===(u=e.ads)||void 0===u?void 0:u[t],adIndex:t}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",m,"Fired:".concat(Math.round(a.currentTime())),"AD_POD:",e),fetch(y))}catch(e){g.e(e)}finally{g.f()}},I=function(e){var r,o,t=Math.floor(e/60),n=Math.floor(e%60);return L(r="".concat(t,":")).call(r,$(o=n.toString()).call(o,2,"0"))},w=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,n=H(o.split("&"));try{for(n.s();!(t=n.n()).done;){var a=t.value.split("="),l=M(a,2),i=l[0],s=l[1];r[decodeURIComponent(i)]=decodeURIComponent(s||"")}}catch(e){n.e(e)}finally{n.f()}for(var c={},u=0,d=R(r);u<d.length;u++){var m=M(d[u],2),p=m[0],b=m[1];if(P(p).call(p,"ads."))c[p.replace(/^ads\./,"")]=b;else c[p]=b}return c},t=n(r),i=o.replace("dash","session").replace("master","session"),i=v(i,r,{}),s=w(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:N({adsParams:J({},s)})});case 10:return c=e.sent,e.next=13,c.json();case 13:u=e.sent,d="https://"+new O(i).hostname,p=u.trackingUrl,f=u.manifestUrl,j=d+p,y=d+f,console.log("%c TRACKING URL","background: #bdf369; color: #000",j),null!=o&&U(o).call(o,".mpd")?(g=(null==t||null===(h=t.currentSource())||void 0===h?void 0:h.keySystemOptions)||null,b(r,{src:y,type:"application/x-mpegURL",keySystemOptions:g})):(S=(null==t||null===(k=t.currentSource())||void 0===k?void 0:k.keySystems)||null,b(r,{src:y,type:"application/x-mpegURL",keySystems:S})),t.one("loadeddata",(function(){C(j)})),C=function(){var e=E(A.mark((function e(o){var t,i,s,c,u,d,p,b,v,f,j,y,h,g,k,S,w;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(o);case 2:return i=e.sent,e.next=5,i.json();case 5:s=e.sent,c=s.avails,u=[],d=n(r),p=d.controlBar.progressControl,b=p.seekBar.el(),D(c).call(c,(function(e){var r;V(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&u.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),_(u).call(u,(function(e){var r=e.markerPositionInSeconds,o=d.duration();if(!(r>o)){var t=r/o*100,n=document.createElement("div");n.className="vjs-seekbar-marker",n.style.left="".concat(t,"%"),n.style.position="absolute",n.style.top="0",n.style.bottom="0",n.style.width="2px",n.style.backgroundColor="#fecc09",n.style.left="".concat(t,"%"),n.style.pointerEvents="none",b.appendChild(n)}})),v=new q,f=-1,d.on("timeupdate",a((function(){var e=Math.floor(d.currentTime());if(e!==f){f=e;for(var r=!1,o=function(){var o=n[t],a=o.startTimeInSeconds,l=o.durationInSeconds,i=o.ads,s=Math.floor(a+l);if(e>=a&&e<=s){var c,u;r=!0,v.set(a,!0),m.disable(),p.el().style.visibility="hidden";for(var d=e-a,b=0,f=0,y=0;y<i.length;y++){var h,g=null==i||null===(h=i[y])||void 0===h?void 0:h.durationInSeconds;if(d<b+g){f=y;break}b+=g}var k=i[f],w=d-b,C=Math.max(0,k.durationInSeconds-w),T=Math.round(C);j.style.display="block",S.textContent=L(c=L(u="".concat(f+1," of ")).call(u,i.length," • ")).call(c,I(T));var M=[];return _(i).call(i,(function(e){var r,o=Q(r=e.trackingEvents).call(r,(function(e){var r;return U(r=["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"]).call(r,e.eventType)}));M.push.apply(M,x(o))})),B(o,M,f),"break"}},t=0,n=u;t<n.length;t++){if("break"===o())break}r||(j.style.display="none",p.el().style.visibility="visible",m.enable())}}),1e3)),d.on("seeked",(function(){for(var e=null,r=0,o=u;r<o.length;r++){var t=o[r],n=null==d?void 0:d.currentTime(),a=t.startTimeInSeconds,l=t.durationInSeconds;n>Math.floor(a+l)&&!v.has(a)&&(e=a,v.set(a,!0))}e&&(d.currentTime(e),console.log("seeking back to",e),e=null)})),(j=document.createElement("div")).className="ssai-ad-container",(y=document.createElement("div")).className="sponsored-adbox",(h=document.createElement("div")).className="sponsored-text",h.textContent="Sponsored Ad",(g=document.createElement("div")).className="ad-info-icon",k=l(G()),g.appendChild(k),y.append(h),y.append(g),(S=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(w=document.createElement("div")).className="ad-visit-advertiser",w.textContent="Visit Advertiser",(null===(t=document.getElementsByClassName("tvProviderImage"))||void 0===t?void 0:t[0])&&(w.style.right="8.6rem"),j.append(y),j.append(S),j.append(w),d.el().appendChild(j);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),T=new q;case 24:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function X(e,a){n(e).addClass("skin_vlone"),F(e,a),function(e,n){var a,l,i,s,u,d,m=null==n||null===(a=n.res)||void 0===a||null===(l=a.video)||void 0===l?void 0:l.isSSAIEnabled,b=f(null==n?void 0:n.res,e)||{},v=b.src;(null==n||null===(i=n.relatedVideos)||void 0===i||null===(s=i.content)||void 0===s?void 0:s.length)>0&&r(e,null==n?void 0:n.relatedVideos);null!=n&&null!==(u=n.series)&&void 0!==u&&u.enable&&o(e,n);(null==n||null===(d=n.streams)||void 0===d?void 0:d.length)>1&&t(e,null==n?void 0:n.streams);c(e,n),p(e,n),m&&function(e,r){W.apply(this,arguments)}(e,v)}(e,a),Y(e,a)}var Y=function(e,r){var o,t,a,l,i,s,c,u,m,p,b,v,f=n(e),j=(null==r?void 0:r.theme)||{},y=d.dom.$(".vjs-play-progress"),h=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(o=window)||void 0===o||null===(t=o.app_data)||void 0===t||null===(a=t.appcmsMain)||void 0===a||null===(l=a.brand)||void 0===l||null===(i=l.cta)||void 0===i||null===(s=i.primary)||void 0===s?void 0:s.backgroundColor)),y&&(y.style.background="".concat(null===(c=window)||void 0===c||null===(u=c.app_data)||void 0===u||null===(m=u.appcmsMain)||void 0===m||null===(p=m.brand)||void 0===p||null===(b=p.cta)||void 0===b||null===(v=b.primary)||void 0===v?void 0:v.backgroundColor));var g=f.getChild("BigPlayButton")||null;(null==j?void 0:j.progressBarColor)&&y&&(y.style.background=j.progressBarColor),(null==j?void 0:j.playButtonBackgroundColor)&&g&&(g.el().style.background=j.playButtonBackgroundColor),(null==j?void 0:j.playButtonColor)&&h&&(h.style.color=j.playButtonColor),(null==j?void 0:j.playButtonType)&&("square"==(null==j?void 0:j.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{X as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/helpers/toConsumableArray";import n from"@babel/runtime-corejs3/core-js-stable/instance/includes";import t from"@babel/runtime-corejs3/core-js-stable/instance/map";import i from"@babel/runtime-corejs3/core-js-stable/set-timeout";import o from"@babel/runtime-corejs3/core-js-stable/date/now";import r from"video.js";var l=function(e){return!!r.getPlayer("".concat(e))&&r.getPlayer("".concat(e))},a=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE"],c=function(e){return!n(a).call(a,e)},u=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},d=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},s=function(e){return d(e)},m=function(n,i){if(i){var o,r,a=l(i);if(a&&"function"==typeof a.el&&null!=a&&null!==(o=a.el())&&void 0!==o&&null!==(r=o.classList)&&void 0!==r&&r.contains("skin_defaultv2"))return void v(n)}var c=e(document.querySelectorAll("[video-idx]"));console.log(c),t(c).call(c,(function(e){var t=e.parentNode,i=e.getAttribute("video-idx");t.style.background=i==n?"gray":"none"}))},v=function(n){var i=e(document.querySelectorAll("[video-idx]"));t(i).call(i,(function(e){var t=e.getAttribute("video-idx");e.style.border=t==n?"2px solid white":"none"}))},f=function(){var n=e(document.getElementsByClassName("vjs-control vjs-button open"));null==n||t(n).call(n,(function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()}))},w=function(e){return e&&!n(e).call(e,"?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},p="",y=function(e,n){var t,o=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",i=document.getElementById(e);if(i&&p!==t){var o=window.getComputedStyle(i,null).getPropertyValue("height");n&&(n.style.height="".concat(o)),p=t}}(e,n)};window._orientationChangeHandler=o;window.addEventListener("resize",(function(){clearTimeout(t),t=i((function(){o()}),100)}))},b=function(e,n){var t,o=l(e),r=l(e).el(),a=new ResizeObserver((function(){var o;null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")||(t&&clearTimeout(t),t=i((function(){g(e,n)}),300))}));a.observe(r),o.on("dispose",(function(){a.disconnect()})),o.on("fullscreenchange",(function(){i((function(){g(e,n)}),50)}))},g=function(e,n){var t;if(n){var i=document.getElementById(e),o=null===(t=window.getComputedStyle(i,null))||void 0===t?void 0:t.height;n.style.height!==o&&(n.style.height="".concat(o))}},h=function(){window._orientationChangeHandler&&(window.removeEventListener("resize",window._orientationChangeHandler),delete window._orientationChangeHandler),window._multiplayer_dbClickHandler&&(window.removeEventListener("dblclick",window._multiplayer_dbClickHandler),delete window._multiplayer_dbClickHandler),window._multiplayer_dbTapHandler&&(window.removeEventListener("touchend",window._multiplayer_dbTapHandler),delete window._multiplayer_dbTapHandler)};function _(e,n){var t=null,r=null;return function(){for(var l=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];r?(clearTimeout(t),t=i((function(){o()-r>=n&&(e.apply(l,c),r=o())}),n-(o()-r))):(e.apply(this,c),r=o())}}export{c as a,s as b,h as c,u as d,f as e,y as f,l as g,m as h,w as i,b as j,v as k,d as p,g as s,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e,g as o,h as t,d as r,e as l,i,j as s,k as n,l as a,m as c}from"./features-a5258464.js";import{M as m,a as u,c as b,d}from"./icons-68d3a609.js";import{g as p,b as j}from"./skin-43755201.js";import v from"@babel/runtime-corejs3/core-js-stable/instance/includes";import{g as f}from"./renditions-7724f87c.js";import{g as h}from"./captions-2bcc449f.js";import{a as g,i as y,b as C}from"./index-a680c0dd.js";import{i as w,d as V}from"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"video.js";import"./generic-ca913bb9.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./autoNextVideo-b1b3db93.js";import"./util-7ef0c31b.js";import"@babel/runtime-corejs3/helpers/typeof";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"@babel/runtime-corejs3/helpers/slicedToArray";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import"@babel/runtime-corejs3/core-js-stable/instance/flat";function x(r,l){var i=p(r);i&&(i.on("loadeddata",(function(){var t,s,n,a,c,m,u;(null===(t=f(r))||void 0===t?void 0:t.length)>0&&e(r,l),(null===(s=h(r))||void 0===s?void 0:s.length)>0&&o(r,l),!(null!=l&&null!==(n=l.series)&&void 0!==n&&n.enable||null!==(a=window)&&void 0!==a&&null!==(c=a.app_data)&&void 0!==c&&null!==(m=c.appcmsMain)&&void 0!==m&&null!==(u=m.features)&&void 0!==u&&u.auto_play)||null!=l&&l.liveVideo||g(r,l),function(e,o){var t,r,l=Math.floor(e/60),i=null===(t=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===t?void 0:t[0];i&&(i.style.marginRight=l>60?"56px":"41px");var s=document.getElementsByClassName("vjs-live-control")[0],n=document.getElementsByClassName("vjs-time-control");o&&v(r=s.classList.value).call(r,"vjs-hidden")&&(n[0].style.display="block",i&&(i.style.marginRight="56px"))}(i.duration(),(null==l?void 0:l.liveVideo)||!1),null!=l&&l.liveVideo||w()||y(r)})),i.one("play",(function(){var e,o,l,i;null!==(e=window)&&void 0!==e&&null!==(o=e.customData)&&void 0!==o&&o.iframeOverlayUrl&&t(r,null===(l=window)||void 0===l||null===(i=l.customData)||void 0===i?void 0:i.iframeOverlayUrl)})))}function k(e,o){p(e).addClass("skin_defaultv2"),function(){"Chrome"==V()&&import("./chromett-a3cbb2e1.js").then((function(e){var o=document.createElement("style");o.id="chromett",o.append("".concat(e.default)),document.head.appendChild(o)}));import("./skin-e4b35c14.js").then((function(e){var o=document.createElement("style");o.id="default_v2",o.append("".concat(e.default)),document.head.appendChild(o)}))}(),x(e,o),function(e,o){var t,r,l,i,s,n,a=p(e);null==a||null===(t=a.controlBar)||void 0===t||null===(r=t.getChild("FullscreenToggle"))||void 0===r||null===(l=r.el())||void 0===l||l.appendChild(j(m(window.controlsColor))),null==a||null===(i=a.controlBar)||void 0===i||null===(s=i.getChild("FullscreenToggle"))||void 0===s||null===(n=s.el())||void 0===n||n.appendChild(j(u(window.controlsColor)));var c=document.getElementsByClassName("vjs-time-control");o.liveVideo&&c[0]&&(c[0].style.display="none")}(e,o),function(e,o){var t,m,u,p,j,v;0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)&&r(e,"defaultV2",b());(0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)||1==(null==o?void 0:o.liveui))&&l(e,"defaultV2",d());o.liveVideo||i(e);(null==o||null===(t=o.relatedVideos)||void 0===t||null===(m=t.content)||void 0===m?void 0:m.length)>0&&s(e,null==o?void 0:o.relatedVideos);(null==o||null===(u=o.streams)||void 0===u?void 0:u.length)>1&&n(e,null==o?void 0:o.streams);(null==o||null===(p=o.playlist)||void 0===p||null===(j=p.content)||void 0===j?void 0:j.length)>0&&a(e,null==o?void 0:o.playlist);null!=o&&null!==(v=o.series)&&void 0!==v&&v.enable&&c(e,o)}(e,o),C(e,o)}export{k as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e}from"./skin-43755201.js";import{f as r,n as t}from"./features-a5258464.js";import{g as o}from"./renditions-7724f87c.js";import{r as s}from"./captions-2bcc449f.js";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"video.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"./generic-ca913bb9.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";function i(i,a){import("./skin-271fa63f.js").then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(t,i){e(t).on("loadeddata",(function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,i),null!=i&&i.disableCaptions&&s(t)}))}(i,a),function(r,o){var s=e(r);s.controls(!1),t(r)}(i)}export{i as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as t,c as r,d as o,e as s}from"./features-a5258464.js";import{i}from"./keyboardShortcuts-1d5ca3ca.js";import{S as n,M as a,a as l,b as c,R as m,N as b}from"./icons-68d3a609.js";import{g as p,b as u}from"./skin-43755201.js";import{d as j}from"./generic-ca913bb9.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"video.js";import"./renditions-7724f87c.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function d(d,f){p(d).addClass("skin_default"),i(d,f),import("./skin-71be210e.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&&o(e,"default",c());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&s(e,"default",m())}(d,f),function(o,s){var i=p(o),a=(null==s?void 0:s.sres)||null;i.on("loadeddata",(function(){e(o,"default",n()),a&&import("./nextEpisodeButton-3715939a.js").then((function(e){e.initaliseFunctionality(s.sres.seasons,j())}))})),i.one("loadedmetadata",(function(){var e;a&&(t(o,null==s||null===(e=s.sres)||void 0===e?void 0:e.seasons,s),r(s.sres,s.res,o))}))}(d,f),function(e,t){var r,o,s,i,n=p(e),c=document.getElementsByClassName("vjs-current-time")[0],m=document.getElementsByClassName("vjs-duration")[0],j=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(c&&(c.style.display="none"),m&&(m.style.display="none"),j&&(j.style.display="none"));null===(r=n.controlBar.getChild("FullscreenToggle"))||void 0===r||null===(o=r.el())||void 0===o||o.appendChild(u(a(window.controlsColor))),null===(s=n.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(i=s.el())||void 0===i||i.appendChild(u(l(window.controlsColor)));var d=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(u(b()));var f=document.createElement("div");f.classList.add("caption-header"),d.querySelector(".vjs-menu-content").insertBefore(f,d.querySelector(".vjs-menu-item"))}(d,f)}export{d as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,D as r}from"./generic-ca913bb9.js";import{g as t}from"./skin-43755201.js";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"video.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";function o(e){i(e),s(e)}var s=function(o){var s=t(o),i=document.getElementById("".concat(o));i&&i.addEventListener("touchstart",(function(){s.paused()?e(o):r(o)}))},i=function(e){var r=t(e);r.requestFullscreen=function(){},r.controlBar.hide()};export{o as initaliseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,D as r}from"./generic-ca913bb9.js";import{g as t}from"./skin-43755201.js";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"video.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";function o(o){import("./skin-2c638dc1.js").then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),s(),function(o){var s=document.getElementById("".concat(o)),i=t(o);s&&s.addEventListener("touchstart",(function(){i.paused()?e(o):r(o)}))}(o)}var s=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./skin-43755201.js";var n=function(n,a,r){var e=t(n);e?a>=0&&a<=e.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),e.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(n,"'"))},a=function(n,a){var r=t(n);if(!r)return"Cannot find player with id: '".concat(n,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(t){return"Error: ".concat(t)}},r=function(n,a){var r=t(n);r?r.on("timeupdate",(function(){return a(r.currentTime())})):a("Cannot find player with id: '".concat(n,"'"))},e=function(n,a){var r=t(n);r?r.on("ended",(function(){return a(!0)})):a("Cannot find player with id: '".concat(n,"'"))},i=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{e as a,a as b,i as g,r as o,n as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import o from"@babel/runtime-corejs3/helpers/createClass";import r from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import n from"@babel/runtime-corejs3/helpers/getPrototypeOf";import a from"@babel/runtime-corejs3/core-js-stable/instance/slice";import s from"@babel/runtime-corejs3/core-js-stable/instance/trim";import l from"video.js";import{e as c,f as d}from"./icons-68d3a609.js";import{G as m,R as p}from"./generic-ca913bb9.js";import{e as u,s as b,f as v,j,h as f,i as h}from"./skin-43755201.js";import{a as y}from"./autoNextVideo-b1b3db93.js";import{g as C}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"./util-7ef0c31b.js";function g(t){var o=N();return function(){var r,a=n(t);if(o){var s=n(this).constructor;r=e(a,arguments,s)}else r=a.apply(this,arguments);return i(this,r)}}function N(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(N=function(){return!!t})()}var E=l.getComponent("Component"),k=function(e){r(n,E);var i=g(n);function n(e){var o,r,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,n),(a=i.call(this,e,s)).playerId=s.playerId,a.seriesData=s.sres,a.videos=s.related.content,a.cb=(null==s||null===(o=s.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==s||null===(r=s.related)||void 0===r?void 0:r.autoNext)||!1,a.currentVideoData=s.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(p(0),y({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return o(n,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(c())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var r;null!==(r=o.classList)&&void 0!==r&&r.contains("hidden")?(u(),o.classList.remove("hidden"),t.classList.add("open"),b(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var r=document.getElementById(this.playerId);if(r){var i=window.getComputedStyle(r,null).getPropertyValue("height");o.style.height="".concat(i),l.dom.appendContent(t,o),r.style.overflow="hidden",this.addFunctionality(o),v(this.playerId,o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),r=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(d())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open")};for(var n=l.dom.createEl("div",{className:"video-selector-title",innerHTML:C("relatedVideoTitle")||"Recommended"}),c=l.dom.createEl("div",{className:"video-selector-content"}),u=l.dom.createEl("div",{className:"video-container"}),b=function(e){var o,r,i,n,d,b,v,j,y,C,g=l.dom.createEl("div",{className:"video -".concat(e)}),N=l.dom.createEl("div",{className:"recommended -".concat(e)});N.setAttribute("video-idx",e),N.onclick=function(){p(e+1);for(var o=l.dom.$$(".recommended"),r=0;r<o.length;r++)o[r].style.border="none";f(e),m(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var E=document.createElement("img");E.className="related-thumbnail-image",E.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(r=o[e])||void 0===r?void 0:r.img)||h(null===(i=window)||void 0===i||null===(n=i.app_data)||void 0===n||null===(d=n.appcmsMain)||void 0===d||null===(b=d.images)||void 0===b?void 0:b.placeholderCover)),E.alt="".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:a(j=s(y=v.title).call(y).split(/\s+/)).call(j,0,2).join(" "))||""),N.append(E);var k=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(C=t.videos[e])||void 0===C?void 0:C.title)||"")});l.dom.appendContent(g,N),l.dom.appendContent(g,k),l.dom.appendContent(u,g),l.dom.appendContent(c,u)},v=0;v<this.videos.length;v++)b(v);l.dom.appendContent(r,n),l.dom.appendContent(r,i),l.dom.appendContent(e,r),l.dom.appendContent(e,c),j(this.playerId,e)}}]),n}();export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import o from"@babel/runtime-corejs3/helpers/createClass";import r from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import n from"@babel/runtime-corejs3/helpers/getPrototypeOf";import a from"video.js";import{E as s,f as l}from"./icons-68d3a609.js";import{G as c,R as d}from"./generic-ca913bb9.js";import{e as m,s as p,f as u,j as b,k as v}from"./skin-43755201.js";import{a as j}from"./autoNextVideo-b1b3db93.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-65e5d36c.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"./util-7ef0c31b.js";function h(t){var o=y();return function(){var r,a=n(t);if(o){var s=n(this).constructor;r=e(a,arguments,s)}else r=a.apply(this,arguments);return i(this,r)}}function y(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}var g=a.getComponent("Component"),C=function(e){r(n,g);var i=h(n);function n(e){var o,r,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,n),(a=i.call(this,e,s)).playerId=s.playerId,a.seriesData=s.sres,a.videos=s.related.content,a.cb=(null==s||null===(o=s.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==s||null===(r=s.related)||void 0===r?void 0:r.autoNext)||!1,a.currentVideoData=s.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),j({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return o(n,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(s())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var r;null!==(r=o.classList)&&void 0!==r&&r.contains("hidden")?(m(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",p(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var r=document.getElementById(this.playerId);if(r){var i=window.getComputedStyle(r,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),r.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),r=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var n=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),s=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,r,i,n,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),r=0;r<o.length;r++)o[r].style.border="none";v(e),c(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(r=o[e])||void 0===r?void 0:r.img)||(null===(i=window)||void 0===i||null===(n=i.customData)||void 0===n?void 0:n.fallbackImage)),b.alt="No Thumbnail Available",u.append(b);var j=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,j),a.dom.appendContent(m,p),a.dom.appendContent(s,m)},u=0;u<this.videos.length;u++)p(u);a.dom.appendContent(r,i),a.dom.appendContent(r,n),a.dom.appendContent(e,r),a.dom.appendContent(e,s),b(this.playerId,e)}}]),n}();export{C as default};
|