@viewlift/player-backup 2.0.35-smarttv → 2.0.36-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-5c61b9cb.js +1 -0
- package/cjs/bundle.css +2 -2
- package/cjs/{features-d8e95dc9.js → features-5dabcea5.js} +1 -1
- package/cjs/{index-22c51eee.js → index-991b30f4.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{playlist-01fd8996.js → playlist-350baa1e.js} +1 -1
- package/cjs/{renditions-6ca861f3.js → renditions-24aeeea9.js} +1 -1
- package/cjs/{series-v2-d21309ce.js → series-v2-6e8cbcda.js} +1 -1
- package/cjs/{series-v2-264f1274.js → series-v2-8756ac9e.js} +1 -1
- package/cjs/{settings-icon-574dc30a.js → settings-icon-9b3d3788.js} +1 -1
- package/cjs/{skin-a7171b70.js → skin-a4eabf7a.js} +1 -1
- package/cjs/{skin-4e236315.js → skin-c45387ad.js} +1 -1
- package/cjs/{skin-d1f05fdb.js → skin-c81d6add.js} +1 -1
- package/cjs/{skin-6ed10ade.js → skin-eac0a0fb.js} +1 -1
- package/cjs/{videoSelector-6fc58bce.js → videoSelector-2c94e849.js} +1 -1
- package/cjs/{videoSelector-68b2ef10.js → videoSelector-d97ab3f8.js} +1 -1
- package/esm/autoNextVideo-56f70964.js +1 -0
- package/esm/bundle.css +2 -2
- package/esm/{caption-settings-b11a19b3.js → caption-settings-088e70f5.js} +1 -1
- package/esm/{features-9a77b3ec.js → features-84286390.js} +1 -1
- package/esm/{index-caeb7f58.js → index-0c0f2cb0.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{multicamv2-1b6bbad6.js → multicamv2-1dbc6fd3.js} +1 -1
- package/esm/nextEpisodeButton-518b5e22.js +1 -0
- package/esm/{playlist-606bdc1a.js → playlist-603ebd69.js} +1 -1
- package/esm/{renditions-7724f87c.js → renditions-7f946d48.js} +1 -1
- package/esm/{series-v2-a9bd9cce.js → series-v2-a5c6cd10.js} +1 -1
- package/esm/{series-v2-e6464c17.js → series-v2-b59f854c.js} +1 -1
- package/esm/{settings-icon-51763bdf.js → settings-icon-cccc4c93.js} +1 -1
- package/esm/{skin-9c71c31d.js → skin-9c36b83f.js} +1 -1
- package/esm/{skin-3c8134ab.js → skin-b9b4babd.js} +1 -1
- package/esm/{skin-bb1155ba.js → skin-cc14c02c.js} +1 -1
- package/esm/{skin-31efcd21.js → skin-d432bcd8.js} +1 -1
- package/esm/{util-7ef0c31b.js → util-1b598a26.js} +1 -1
- package/esm/{videoSelector-c91fa81d.js → videoSelector-08019968.js} +1 -1
- package/esm/{videoSelector-4c015dd4.js → videoSelector-d11c7ff1.js} +1 -1
- package/package.json +1 -1
- package/cjs/autoNextVideo-2ff24f68.js +0 -1
- package/cjs/videojs_contrib_dash-9a5f4c2b.js +0 -1
- package/esm/autoNextVideo-fc102a98.js +0 -1
- package/esm/nextEpisodeButton-66506110.js +0 -1
- package/esm/videojs_contrib_dash-d8104535.js +0 -1
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"video.js/dist/video-js.min.css";import{g as e,a as n,b as o,c as t,d as r,s as i,e as l,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 y,q as b,r as h,t as g,u as j,v as w,w as k,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-979547e7.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 oe,a as te,s as re,b as ie}from"./util-7ef0c31b.js";import{g as le,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-de9dd282.js";import{g as ve,i as me,a as pe}from"./skin-43755201.js";import{d as fe}from"./browser-000da9e7.js";import ye from"@babel/runtime-corejs3/core-js-stable/parse-float";import be from"@babel/runtime-corejs3/core-js-stable/parse-int";import{s as he}from"./localisation-0bf399a1.js";import ge from"@babel/runtime-corejs3/core-js-stable/instance/includes";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import je from"@babel/runtime-corejs3/core-js-stable/set";import we from"@babel/runtime-corejs3/core-js-stable/instance/map";import"core-js/modules/es.number.to-fixed.js";import ke 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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.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,o){if(De(e))o("".concat(e," is alread initialised"));else{var t=document.createElement("script");t.async=!0,t.src=e,t.onload=function(){n()},t.onerror=function(n){var t;o(ee(t="Error while loading script ".concat(e," : ")).call(t,n))},document.head.appendChild(t)}}))},De=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},Re=function(e,n,o){var t=ve(e);if(t)if(n>=0&&n<=100){t.muted()&&t.muted(!1);var r=ye(n)/100;t.volume(r),o&&o({status:!0,msg:"Volume set to ".concat(n,"%")})}else o&&o({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else o({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},Ne=function(e){var n=ve(e);return n?be(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},Pe=function(){var e=Y(Q.mark((function e(n){var o,t,r,i,l;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=ve(null==n?void 0:n.playerId),null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable||null==n||!n.chromecastReceiverId){e.next=22;break}return e.next=4,import("@silvermine/videojs-chromecast");case 4:return i=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,i.default($),e.finish(13);case 16:(l=$.getTech("chromecast"))&&!l.prototype.seeking&&(l.prototype.seeking=function(){}),null!==(r=window)&&void 0!==r&&r.cast?null==t||t.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==t||t.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==t||t.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 o=ve(e);o&&n&&o.controlBar&&o.controlBar.progressControl.seekBar.on("click",(function(n){var o,t,r,i,l,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===(o=window)||void 0===o||null===(t=o.cast)||void 0===t||null===(r=t.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.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-9abdfceb.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-d8104535.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 o;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(null==n?void 0:n.airplay)||!1,e.next=3,Oe();case 3:o&&"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,o){var t,r,i,l,a,s,u,c,d;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=(null==o?void 0:o.contentType)||"video",u=null==o||null===(t=o[s])||void 0===t?void 0:t.drmEnabled,null==o||null===(r=o[s])||void 0===r||null===(i=r.liveDetails)||void 0===i||i.isDvrEnabled,null==n||n.showPositiveSeekbar,c=(null==o||null===(l=o.video)||void 0===l?void 0:l.isSSAIEnabled)||!1,"Chrome"==fe()&&(c||null===(a=["dirtvision"])||void 0===a||ge(a).call(a,null==o?void 0:o.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 o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Ke(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=qe(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=qe(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Ge=new je,We=null,Je=function(n,t,r){var i,l,a,s,u,c,d,v={},m=(null==n?void 0:n.contentType)||"video";v["c3.cm.id"]=(null===(i=n[m])||void 0===i?void 0:i.id)||"Null",v["c3.cm.contentType"]=nn(n),v[null==r||null===(l=r.Constants)||void 0===l?void 0:l.IS_LIVE]=!(null==n||!n.linearchannel),v[null==r||null===(a=r.Constants)||void 0===a?void 0:a.STREAM_URL]=t.currentSrc(),v[null==r||null===(s=r.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[r.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=tn(o(),n);return v=Ke(Ke({},v),p)},Xe=function(e){var n,o,t,r=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[r])||void 0===n||null===(o=n.gist)||void 0===o||null===(t=o.primaryCategory)||void 0===t?void 0:t.title)||"Null"},Ye=function(e){var n,o=(null==e?void 0:e.contentType)||"video",t=(null==e||null===(n=e[o])||void 0===n?void 0:n.categories)||[];return we(t).call(t,(function(e){return null==e?void 0:e.title})).join(", ")||"Null"},Qe=function(e){var n,o,t=(null==e?void 0:e.contentType)||"video";return"video"===t?"VOD":(null==e||null===(n=e[t])||void 0===n||null===(o=n.channels[0])||void 0===o?void 0:o.title)||"NULL"},Ze=function(e){return(null==e?void 0:e.contentType)||"null"},$e=function(e){var n,o,t=(null==e?void 0:e.contentType)||"video",r=(null==e||null===(n=e[t])||void 0===n||null===(o=n.liveDetails)||void 0===o?void 0:o.isDvrEnabled)||!1;return r?"YES":"NO"},en=function(e,n){var o,t,r=(n||{}).epg;if(r&&null!=r&&r.enable&&null!=r&&r.programTitle)return r.programTitle;var i=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(o=e[i])||void 0===o||null===(t=o.gist)||void 0===t?void 0:t.title)||"Null";return"".concat(l)},nn=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var on,tn=function(e,o){var r,i,l,a,s,u={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!e||!o||null!=o&&o.linearchannel)return u;var c=t(),d=n();return u["c3.cm.seriesName"]=(null==o||null===(r=o.video)||void 0===r||null===(i=r.series)||void 0===i?void 0:i.title)||"Null",u["c3.cm.seasonNumber"]=(null==c?void 0:c.toString())||"Null",u["c3.cm.showTitle"]=(null==e||null===(l=e[c-1])||void 0===l||null===(a=l.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},rn=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"}},ln=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,o){var t,i,l,a,s,u,c,d,v,m;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(null==o?void 0:o.convivaConfig)||{},i=t.trackConvivaPlayerEvent,l=t.paymentHandler,a=t.tveProvider,s=t.enable,u=t.appName,c=(o||{}).token,s){e.next=4;break}return e.abrupt("return");case 4:if(d=ve(n),"function"==typeof(v=i)){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 o=e.target;if(o&&o.keySystem){var t=rn(o.keySystem);v("contentInfo",{DRMEnabled:t})}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 t=ln(d.currentType()),i=r(),s=Je(i,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(i,o),s.authToken=c||"NULL",s.streamType=t,s.D2CType=l||"NONE",s.subscriberType=a||(l?"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,o){return e.apply(this,arguments)}}(),sn=function(e,n){var o=null==n?void 0:n.skin;"default"==o?import("./skin-bb1155ba.js").then((function(o){o.initialiseSkin(e,n)})):"carousel"==o?import("./skin-e597a51b.js").then((function(n){n.initaliseSkin(e)})):"defaultV2"==o?import("./skin-3c8134ab.js").then((function(o){o.initialiseSkin(e,n)})):"multiplayer"==o?import("./skin-9c71c31d.js").then((function(o){o.initialiseSkin(e,n)})):"minimalist"==o?import("./skin-e12e8689.js").then((function(o){o.initaliseSkin(e,n)})):"VL_ONE"==o&&import("./skin-31efcd21.js").then((function(o){o.initialiseSkin(e,n)}))};function un(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function cn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=un(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=un(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var dn=[],vn=0,mn=null;function pn(e,n,o){var t,r,l,a,s,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==n||null===(t=n.watchHistory)||void 0===t||t.apiVersion;var c=null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.profileId,d=Math.floor(e.currentTime()),v=Math.floor(e.duration());null==n||null===(l=n.watchHistory)||void 0===l||l.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()),y=u?100:Math.floor(d/v*100),b={};p?yn(b={completed:u,watchedTime:f,watchedPercentage:y},c,n.siteOwner):(b=cn(cn({videoId:on,watchedTime:f,watchedPercentage:y,doneWatching:u,profileId:c},mn&&{seriesId:mn}),m&&{originalObjectId:m}),i(b).then((function(e){})).catch((function(e){}))),vn=d+o}function fn(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function yn(e,n,o){var t,i=n?"watchhistory-data-".concat(n):"watchhistory-data-guest-".concat(o),l=fn(i),a=(new Date).getTime(),s=r(),u=(null==s?void 0:s.video)||{},c=Te(t=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"]).call(t,(function(e,n){return cn(cn({},e),{},X({},n,u[n]))}),{}),d=Ie(l).call(l,(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===on}));d<0?l.push(cn(cn({content:c},e),{},{addedDate:a,updateDate:a})):l[d]=cn(cn(cn({},l[d]),e),{},{updateDate:a}),localStorage.setItem("".concat(i),Se(l))}function bn(e,n,o){var t=fn(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(o)),r=[];return t&&xe(t)&&(r=z(t).call(t,(function(e){var o;return(null==e||null===(o=e.content)||void 0===o?void 0:o.id)===n}))),r}var hn=!1,gn=function(e,n){var o,t,r=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(o=e[r])||void 0===o||null===(t=o.streamingInfo)||void 0===t?void 0:t.secondaryVideoAssets)||null)&&!hn){var i=jn(e,"videoAssets","secondaryVideoAssets"),s=l(i,n);return s&&a(n,s),hn=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function jn(e,n,o){if(xe(e))return we(e).call(e,(function(e){return jn(e,n,o)}));if(null!==e&&"object"===Ee(e)){var t,r={};return K(t=B(e)).call(t,(function(t){t===n&&void 0!==e[o]?r[t]=e[o]:t===o&&void 0!==e[n]?r[t]=e[n]:r[t]=jn(e[t],n,o)})),r}return e}function wn(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function kn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=wn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=wn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Tn=function(e,n,o,t){var i,l,a,v,m=t.res,p=t.sres,f=ve(e),y=(null==m?void 0:m.contentType)||"video",b=(null==m||null===(i=m[y])||void 0===i||null===(l=i.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1,h=(null==m||null===(a=m[y])||void 0===a||null===(v=a.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1;s(m),f&&(f.on("loadstart",(function(){b?o.resolve({status:!0,msg:"Video Loaded",response:m}):o.resolve(kn({status:!0,msg:"Player Initialised"},p?{seriesResponse:p,response:m}:{response:m}))})),f.on("loadeddata",(function(){var o,t,i,l=le(e);if(null==l||we(l).call(l,(function(n){return ae(e,n.id)})),h&&"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=r();if(u(),null!=n&&n.watchHistory&&null!=n&&null!==(o=n.watchHistory)&&void 0!==o&&o.enable&&(!n.isAnonymousUser||null!=n&&null!==(t=n.watchHistory)&&void 0!==t&&t.saveOffline)){var c,d,v=kn(kn({},n),m);!function(e,n,o){var t,r,i;null!=n&&n.series&&null!=n&&null!==(t=n.series)&&void 0!==t&&t.enable&&(mn=null==n||null===(r=n.series)||void 0===r?void 0:r.id),dn=[],vn=0,on=o;var l=(null==n||null===(i=n.watchHistory)||void 0===i?void 0:i.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,l)):e>vn&&(vn=e+l))})),a.one("ended",(function(){pn(a,n,l,!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!==(i=n.analytics)&&void 0!==i&&i.muxKey&&null!=f&&f.mux){var p,y,b,g,j,w,k=(null===(p=r())||void 0===p?void 0:p.video)||(null==m?void 0:m.video),T=null==k?void 0:k.gist,I={env_key:null==n||null===(y=n.analytics)||void 0===y?void 0:y.muxKey,player_name:"vl-web-player",player_version:null===(b=window)||void 0===b?void 0:b.vl_player_version,video_id:null==T?void 0:T.id,video_title:null==T?void 0:T.title,video_series:null==k||null===(g=k.series)||void 0===g?void 0:g.title,video_stream_type:null!=k&&null!==(j=k.streamingInfo)&&void 0!==j&&j.isLiveStream?"live":"video",viewer_user_id:null==n||null===(w=n.analytics)||void 0===w?void 0:w.userId};f.mux({debug:!1,data:I})}})),f.textTracks().on("change",(function(e){var n,o=z(n=this.tracks_).call(n,(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0}))[0];f.trigger("subtitlechanged",o)})),f.on("subtitlechanged",(function(e,n){var o,t,r,i,l,a,s,u,c,d,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,m=null===(o=window)||void 0===o||null===(t=o.cast)||void 0===t||null===(r=t.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.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,y=p.getMediaSession(),b=y.media.tracks,h=z(b).call(b,(function(e){return"TEXT"==e.type}));f=n?new chrome.cast.media.EditTracksInfoRequest([h[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),y.editTracksInfo(f)}})),f.tech_.on("retryplaylist",(function(){b&&gn(m,e)})),f.on("error",(function(){var n,t;(console.log("ERROR",f.error(),f.error().code),4===f.error().code&&b)?gn(m,e):(c(e,(null==f||null===(n=f.error())||void 0===n?void 0:n.message)||"Some error occured"),o.reject({status:!1,msg:(null==f||null===(t=f.error())||void 0===t?void 0:t.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 o,t,i,l=null===(o=r())||void 0===o||null===(t=o.video)||void 0===t||null===(i=t.gist)||void 0===i?void 0:i.id,a=d(),s=(null==a?void 0:a.get(l))||{t:0,p:0},u=s.t,c=s.p;u&&c<95&&ke((function(){f.currentTime(u)}),0)}else null!=n&&n.watchHistoryResumeTime&&(null==n?void 0:n.watchedPercentage)<95&&ke((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(b){f.currentSource();for(var e=f.textTracks(),n=e.length-1;n>=0;n--)f.removeRemoteTextTrack(e[n])}})))};function In(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Sn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=In(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=In(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var xn=function(e,n,o,t){var r,i,s,u,d,y,b,h,g,j,w,k,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!=o&&o.chromecastReceiverId?["chromecast","html5"]:["html5"],Z=(null===(r=K)||void 0===r?void 0:r.contentType)||"video",ee=me(null===(i=K)||void 0===i||null===(s=i[Z])||void 0===s||null===(u=s.gist)||void 0===u?void 0:u.videoImageUrl)||me(null===(d=K)||void 0===d||null===(y=d[Z])||void 0===y||null===(b=y.gist)||void 0===b||null===(h=b.imageGist)||void 0===h?void 0:h.r16x9),ne=(null===(g=K)||void 0===g||null===(j=g[Z])||void 0===j||null===(w=j.liveDetails)||void 0===w?void 0:w.isDvrEnabled)||!1,oe=(null===(k=K)||void 0===k||null===(T=k[Z])||void 0===T||null===(I=T.streamingInfo)||void 0===I?void 0:I.isLiveStreafm)||!1,te=(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),re=(null===(L=K=Sn(Sn({},K),{},{audioAssetSource:null==o?void 0:o.audioAssetSource}))||void 0===L||null===(_=L.video)||void 0===_?void 0:_.isSSAIEnabled)||!1;"Chrome"==fe()&&(re||null===(V=["dirtvision"])||void 0===V||ge(V).call(V,null===(H=K)||void 0===H?void 0:H.siteName));var ie=(null==o?void 0:o.latency)||6,le=(F={enableSmoothSeeking:!0,controls:0!=(null==o?void 0:o.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==o?void 0:o.muted)||!1,autoplay:(null==o?void 0:o.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:!1},muteToggle:"multiplayer"==o.skin,liveui:ne},X(F,"autoplay",null==o?void 0:o.autoplay),X(F,"normalizeAutoplay",(null==o?void 0:o.autoplay)&&!te),X(F,"loop",(null==o?void 0:o.loop)||!1),X(F,"audioPosterMode",null==o?void 0:o.audioPosterMode),X(F,"html5",Sn(Sn({dash:Sn(Sn({},!$.browser.IS_SAFARI&&{useTTML:!0}),{},{updateSettings:{streaming:{delay:{liveDelay:ie},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:ie,useDevicePixelRatio:!0,experimentalLLHLS:(null==o?void 0:o.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==o||null===(M=o.customData)||void 0===M?void 0:M.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:!0}),nativeTextTracks:"Safari"==fe()},0==(null==o||null===(U=o.customData)||void 0===U?void 0:U.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==o||null===(B=o.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 o=ve(e),t=(null==o?void 0:o.textTracksJson_)||o.textTracks().tracks_,r=z(t).call(t,(function(e){return"captions"==e.kind||"subtitles"==e.kind}));return function(e,n,o){var t,r,i,l,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,y,b,h,g,j,w,k;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===(y=n.keySystemOptions)||void 0===y||null===(b=y[0])||void 0===b||null===(h=b.options)||void 0===h?void 0:h.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===(j=g[0])||void 0===j||null===(w=j.options)||void 0===w||null===(k=w.httpRequestHeaders)||void 0===k?void 0:k["X-AxDRM-Message"]);p.licenseToken=S}var x=(null==e||null===(t=e[m])||void 0===t||null===(r=t.gist)||void 0===r?void 0:r.contentType)||"VIDEO";p.contentType=x;var E=null==e||null===(i=e[m])||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.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=o,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,r)},modifyLoadRequestFn:function(n){var o,t,r,i,l,a=ve(e),s=(null==a?void 0:a.currentSource())||{};!(null===(o=K)||void 0===o||null===(t=o[Z])||void 0===t||null===(r=t.streamingInfo)||void 0===r||null===(i=r.videoAssets)||void 0===i?void 0:i.is4K)&&1||null!=s&&s.src&&null!=s&&null!==(l=s.src)&&void 0!==l&&ge(l).call(l,".m3u8")&&(n.media.hlsSegmentFormat="fmp4",n.media.hlsVideoSegmentFormat="fmp4");return n}}),F);if(!$.getPlayers()[e]){le.spatialNavigation={enabled:!0,horizontalSeek:!0};var ae=$(e,le,function(){var n=Y(Q.mark((function n(){var r,i,s,u,d,y,b,h,g,j,w,k,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(o,K);case 6:k=null===(r=K)||void 0===r||null===(i=r[Z])||void 0===i||null===(s=i.liveDetails)||void 0===s?void 0:s.startOverTime,oe&&t.resolve(Sn({status:!0,msg:"Player Initialised"},W?{seriesResponse:W,response:K}:{response:K})),v(e,null==o?void 0:o.analyticsCb),an(e,o),/Android/i.test(navigator.userAgent)&&($.options.vhs.overrideNative=!0),ne&&Ae(e,k),!te||null!=o&&null!==(u=o.customData)&&void 0!==u&&u.disableAds||m(e,te,K),T=l(K,e),console.log(T),null!=o&&o.nearestClusterUrl&&(T=p(T,o.nearestClusterUrl)),T?a(e,T):(t.reject({status:!1,msg:"Incompatible / Missing Source",response:K}),c(e,"Incompatible / Missing Source")),((null===(d=K)||void 0===d||null===(y=d[Z])||void 0===y||null===(b=y.contentDetails)||void 0===b||null===(h=b.closedCaptions)||void 0===h?void 0:h.length)>0||(null===(g=K)||void 0===g||null===(j=g[Z])||void 0===j||null===(w=j.closedCaptions)||void 0===w?void 0:w.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!=o&&o.disableControls?f(e):sn(e,Sn(Sn(Sn({},o),le),{},{liveVideo:oe,isDvrEnabled:ne,res:K,sres:W})),Tn(e,Sn(Sn(Sn({},o),le),{},{liveVideo:oe}),t,{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 o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Dn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=Cn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=Cn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Rn,Nn=function(e,n){var o=n.resolve,t=n.reject,r=null==e?void 0:e.playerId,i=Pn(e);xn(r,{res:i},e,{resolve:o,reject:t})},Pn=function(e){var n,o,t=null==e?void 0:e.streamingInfo,r=null==e||null===(n=e.streamingInfo)||void 0===n?void 0:n.videoAssets,i=(null==e||null===(o=e.streamingInfo)||void 0===o?void 0:o.isDrmEnabled)||null,l=null==e?void 0:e.token,a=y(l),s=null==a?void 0:a.site;return Dn(Dn({id:null==En?void 0:En[s]},!i&&{directPlaybackUrl:null==r?void 0:r.url}),{},{video:{drmEnabled:i,streamingInfo:{videoAssets:{widevine:null==r?void 0:r.widevine,fairPlay:null==r?void 0:r.fairPlay,playReady:null==r?void 0:r.playReady}},liveDetails:{isDvrEnabled:null==t?void 0:t.isDvrEnabled}}})};function An(e,n){return On.apply(this,arguments)}function On(){return(On=Y(Q.mark((function e(n,o){var t,r,i,l,a,u;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.resolve,r=o.reject,i=null==n?void 0:n.videoId,l=null==n?void 0:n.playerId,a=!(null==n||!n.anonymousId),e.next=6,j();case 6:u=e.sent,b(i,u).then((function(e){var o,c,d,v;window.contentType=null==e||null===(o=e.data)||void 0===o||null===(c=o.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,y,b,g=bn((null===(f=n.watchHistory)||void 0===f?void 0:f.profileId)||"",i,null==n?void 0:n.siteOwner);if(g&&g.length)n.watchHistoryResumeTime=(null===(y=g[0])||void 0===y?void 0:y.watchedTime)||null,n.watchedPercentage=(null===(b=g[0])||void 0===b?void 0:b.watchedPercentage)||null;p.contentType="video",xn(l,{res:p},n,{resolve:t,reject:r})}else h(i,u).then((function(e){var o,t,r,i,l,a;null!==(o=window)&&void 0!==o&&null!==(t=o.watchHistory)&&void 0!==t&&t.cb&&(null===(r=window)||void 0===r||null===(i=r.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),n.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.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,o,t,r;null!==(n=window)&&void 0!==n&&null!==(o=n.watchHistory)&&void 0!==o&&o.cb&&(null===(t=window)||void 0===t||null===(r=t.watchHistory)||void 0===r||r.cb(e))})).finally((function(){xn(l,{res:p},n,{resolve:t,reject:r})}));else xn(l,{res:p},n,{resolve:t,reject:r})})).catch((function(e){g(e,l,r,i)}));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,o){var t,r,i,l,a;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.resolve,r=o.reject,e.next=3,j();case 3:i=e.sent,l=null==n?void 0:n.playerId,a=null==n?void 0:n.epg,w(a,i).then((function(e){var o=null==e?void 0:e.data;o.contentType="linearchannel",o.channelId=null==a?void 0:a.channelId,xn(l,{res:o},n,{resolve:t,reject:r})})).catch((function(e){g(e,l,r,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,o){var t,r,i,l,a,u,c;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.resolve,i=o.reject,e.next=3,j();case 3:l=e.sent,a=null==n?void 0:n.playerId,u=sessionStorage.getItem("season-idx")||0,k.set(be(u)),c=null==n||null===(t=n.series)||void 0===t?void 0:t.id,T(c,l).then((function(e){var o,t,u,d=e.data,v=e.data.seasons;S(v);var m=videoId||(null==v||null===(o=v[0])||void 0===o||null===(t=o.episodes)||void 0===t||null===(u=t[0])||void 0===u?void 0:u.id);I(c,l),b(m,l).then((function(e){var o,t,l;window.contentType=null==e||null===(o=e.data)||void 0===o||null===(t=o.video)||void 0===t||null===(l=t.gist)||void 0===l?void 0:l.contentType,s(e.data),xn(a,{res:null==e?void 0:e.data,sres:d},n,{resolve:r,reject:i})})).catch((function(e){g(e,a,i,videoId)}))})).catch((function(e){g(e,a,i)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mn(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Un(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=Mn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=Mn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}function Bn(){return{loadVideoInstantly:x,onTimeUpdate:ne,getVideoDuration:oe,onVideoEnded:te,init:function(e){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Z(function(){var n=Y(Q.mark((function n(o,t){var r,i,l,a,s,u,c,d,v,m,p,f,y,h,j,w,k,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,y=(null==e||null===(r=e.epg)||void 0===r?void 0:r.enable)||!1,h=null==e?void 0:e.videoId,j=(null==e||null===(i=e.series)||void 0===i?void 0:i.enable)||!1,w=(null==e?void 0:e.streamingInfo)||!1,window.videoId=h,k=null==e?void 0:e.token,!V(e)){n.next=17;break}if(sessionStorage.setItem("vlp_token",k),H().set(null==e?void 0:e.refreshToken),k&&!M(k)){n.next=16;break}return t({status:!1,msg:"".concat(k?"Token is expired !":"Missing Authorization Token"),response:{token:k}}),n.abrupt("return");case 16:Rn=JSON.parse(atob(k.split(".")[1]));case 17:return e.isAnonymousUser=!(null===(l=Rn)||void 0===l||!l.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,he(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?b(E,k).then((function(n){var r=(null==n?void 0:n.data)||{};xn(T,{res:Un(Un({},r),C)},e,{resolve:o,reject:t})})).catch((function(e){g(e,T,t,E)})):xn(T,{res:C},e,{resolve:o,reject:t})):w?Nn(e,{resolve:o,reject:t}):j?Vn(e,{resolve:o,reject:t}):y?Ln(e,{resolve:o,reject:t}):An(e,{resolve:o,reject:t});case 37:case"end":return n.stop()}}),n)})));return function(e,o){return n.apply(this,arguments)}}())},getRenditions:ce,skip:E,getPlayer:ve,play:C,pause:D,detectBrowser:fe,rewind:R,loadVideo:a,seekToTimeStamp:re,isPlayerInitialised:N,load:P,authenticateLC:A,dispose:O,enableCaptions:ue,disableCaptions:ae,getCaptions:le,playSelectedResolution:de,getSource:l,setVolume:Re,getVolume:Ne,disableControls:f,setPlaybackSpeed:ie,getEntitlementData:L}}export{Bn as default};
|
|
1
|
+
import"video.js/dist/video-js.min.css";import{g as e,a as n,b as o,c as t,d as r,s as i,e as l,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 y,q as b,r as h,t as g,u as j,v as w,w as k,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-979547e7.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 oe,a as te,s as re,b as ie}from"./util-1b598a26.js";import{g as le,d as ae,a as se,e as ue}from"./captions-2bcc449f.js";import{g as ce}from"./renditions-7f946d48.js";import{playSelectedResolution as de}from"./resolution-de9dd282.js";import{g as ve,i as me,a as pe}from"./skin-43755201.js";import{d as fe}from"./browser-000da9e7.js";import ye from"@babel/runtime-corejs3/core-js-stable/parse-float";import be from"@babel/runtime-corejs3/core-js-stable/parse-int";import{s as he}from"./localisation-0bf399a1.js";import ge from"@babel/runtime-corejs3/core-js-stable/instance/includes";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import je from"@babel/runtime-corejs3/core-js-stable/set";import we from"@babel/runtime-corejs3/core-js-stable/instance/map";import"core-js/modules/es.number.to-fixed.js";import ke 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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.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,o){if(De(e))o("".concat(e," is alread initialised"));else{var t=document.createElement("script");t.async=!0,t.src=e,t.onload=function(){n()},t.onerror=function(n){var t;o(ee(t="Error while loading script ".concat(e," : ")).call(t,n))},document.head.appendChild(t)}}))},De=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},Re=function(e,n,o){var t=ve(e);if(t)if(n>=0&&n<=100){t.muted()&&t.muted(!1);var r=ye(n)/100;t.volume(r),o&&o({status:!0,msg:"Volume set to ".concat(n,"%")})}else o&&o({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else o({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},Ne=function(e){var n=ve(e);return n?be(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},Pe=function(){var e=Y(Q.mark((function e(n){var o,t,r,i,l;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=ve(null==n?void 0:n.playerId),null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable||null==n||!n.chromecastReceiverId){e.next=22;break}return e.next=4,import("@silvermine/videojs-chromecast");case 4:return i=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,i.default($),e.finish(13);case 16:(l=$.getTech("chromecast"))&&!l.prototype.seeking&&(l.prototype.seeking=function(){}),null!==(r=window)&&void 0!==r&&r.cast?null==t||t.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==t||t.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==t||t.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 o=ve(e);o&&n&&o.controlBar&&o.controlBar.progressControl.seekBar.on("click",(function(n){var o,t,r,i,l,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===(o=window)||void 0===o||null===(t=o.cast)||void 0===t||null===(r=t.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.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-9abdfceb.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:case 1:case"end":return e.stop()}}),e)})));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 o;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(null==n?void 0:n.airplay)||!1,e.next=3,Oe();case 3:o&&"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,o){var t,r,i,l,a,s,u,c,d;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=(null==o?void 0:o.contentType)||"video",u=null==o||null===(t=o[s])||void 0===t?void 0:t.drmEnabled,null==o||null===(r=o[s])||void 0===r||null===(i=r.liveDetails)||void 0===i||i.isDvrEnabled,null==n||n.showPositiveSeekbar,c=(null==o||null===(l=o.video)||void 0===l?void 0:l.isSSAIEnabled)||!1,"Chrome"==fe()&&(c||null===(a=["dirtvision"])||void 0===a||ge(a).call(a,null==o?void 0:o.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 o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Ke(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=qe(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=qe(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Ge=new je,We=null,Je=function(n,t,r){var i,l,a,s,u,c,d,v={},m=(null==n?void 0:n.contentType)||"video";v["c3.cm.id"]=(null===(i=n[m])||void 0===i?void 0:i.id)||"Null",v["c3.cm.contentType"]=nn(n),v[null==r||null===(l=r.Constants)||void 0===l?void 0:l.IS_LIVE]=!(null==n||!n.linearchannel),v[null==r||null===(a=r.Constants)||void 0===a?void 0:a.STREAM_URL]=t.currentSrc(),v[null==r||null===(s=r.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[r.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=tn(o(),n);return v=Ke(Ke({},v),p)},Xe=function(e){var n,o,t,r=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[r])||void 0===n||null===(o=n.gist)||void 0===o||null===(t=o.primaryCategory)||void 0===t?void 0:t.title)||"Null"},Ye=function(e){var n,o=(null==e?void 0:e.contentType)||"video",t=(null==e||null===(n=e[o])||void 0===n?void 0:n.categories)||[];return we(t).call(t,(function(e){return null==e?void 0:e.title})).join(", ")||"Null"},Qe=function(e){var n,o,t=(null==e?void 0:e.contentType)||"video";return"video"===t?"VOD":(null==e||null===(n=e[t])||void 0===n||null===(o=n.channels[0])||void 0===o?void 0:o.title)||"NULL"},Ze=function(e){return(null==e?void 0:e.contentType)||"null"},$e=function(e){var n,o,t=(null==e?void 0:e.contentType)||"video",r=(null==e||null===(n=e[t])||void 0===n||null===(o=n.liveDetails)||void 0===o?void 0:o.isDvrEnabled)||!1;return r?"YES":"NO"},en=function(e,n){var o,t,r=(n||{}).epg;if(r&&null!=r&&r.enable&&null!=r&&r.programTitle)return r.programTitle;var i=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(o=e[i])||void 0===o||null===(t=o.gist)||void 0===t?void 0:t.title)||"Null";return"".concat(l)},nn=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var on,tn=function(e,o){var r,i,l,a,s,u={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!e||!o||null!=o&&o.linearchannel)return u;var c=t(),d=n();return u["c3.cm.seriesName"]=(null==o||null===(r=o.video)||void 0===r||null===(i=r.series)||void 0===i?void 0:i.title)||"Null",u["c3.cm.seasonNumber"]=(null==c?void 0:c.toString())||"Null",u["c3.cm.showTitle"]=(null==e||null===(l=e[c-1])||void 0===l||null===(a=l.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},rn=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"}},ln=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,o){var t,i,l,a,s,u,c,d,v,m;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(null==o?void 0:o.convivaConfig)||{},i=t.trackConvivaPlayerEvent,l=t.paymentHandler,a=t.tveProvider,s=t.enable,u=t.appName,c=(o||{}).token,s){e.next=4;break}return e.abrupt("return");case 4:if(d=ve(n),"function"==typeof(v=i)){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 o=e.target;if(o&&o.keySystem){var t=rn(o.keySystem);v("contentInfo",{DRMEnabled:t})}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 t=ln(d.currentType()),i=r(),s=Je(i,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(i,o),s.authToken=c||"NULL",s.streamType=t,s.D2CType=l||"NONE",s.subscriberType=a||(l?"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,o){return e.apply(this,arguments)}}(),sn=function(e,n){var o=null==n?void 0:n.skin;"default"==o?import("./skin-cc14c02c.js").then((function(o){o.initialiseSkin(e,n)})):"carousel"==o?import("./skin-e597a51b.js").then((function(n){n.initaliseSkin(e)})):"defaultV2"==o?import("./skin-b9b4babd.js").then((function(o){o.initialiseSkin(e,n)})):"multiplayer"==o?import("./skin-9c36b83f.js").then((function(o){o.initialiseSkin(e,n)})):"minimalist"==o?import("./skin-e12e8689.js").then((function(o){o.initaliseSkin(e,n)})):"VL_ONE"==o&&import("./skin-d432bcd8.js").then((function(o){o.initialiseSkin(e,n)}))};function un(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function cn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=un(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=un(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var dn=[],vn=0,mn=null;function pn(e,n,o){var t,r,l,a,s,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==n||null===(t=n.watchHistory)||void 0===t||t.apiVersion;var c=null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.profileId,d=Math.floor(e.currentTime()),v=Math.floor(e.duration());null==n||null===(l=n.watchHistory)||void 0===l||l.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()),y=u?100:Math.floor(d/v*100),b={};p?yn(b={completed:u,watchedTime:f,watchedPercentage:y},c,n.siteOwner):(b=cn(cn({videoId:on,watchedTime:f,watchedPercentage:y,doneWatching:u,profileId:c},mn&&{seriesId:mn}),m&&{originalObjectId:m}),i(b).then((function(e){})).catch((function(e){}))),vn=d+o}function fn(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function yn(e,n,o){var t,i=n?"watchhistory-data-".concat(n):"watchhistory-data-guest-".concat(o),l=fn(i),a=(new Date).getTime(),s=r(),u=(null==s?void 0:s.video)||{},c=Te(t=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"]).call(t,(function(e,n){return cn(cn({},e),{},X({},n,u[n]))}),{}),d=Ie(l).call(l,(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===on}));d<0?l.push(cn(cn({content:c},e),{},{addedDate:a,updateDate:a})):l[d]=cn(cn(cn({},l[d]),e),{},{updateDate:a}),localStorage.setItem("".concat(i),Se(l))}function bn(e,n,o){var t=fn(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(o)),r=[];return t&&xe(t)&&(r=z(t).call(t,(function(e){var o;return(null==e||null===(o=e.content)||void 0===o?void 0:o.id)===n}))),r}var hn=!1,gn=function(e,n){var o,t,r=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(o=e[r])||void 0===o||null===(t=o.streamingInfo)||void 0===t?void 0:t.secondaryVideoAssets)||null)&&!hn){var i=jn(e,"videoAssets","secondaryVideoAssets"),s=l(i,n);return s&&a(n,s),hn=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function jn(e,n,o){if(xe(e))return we(e).call(e,(function(e){return jn(e,n,o)}));if(null!==e&&"object"===Ee(e)){var t,r={};return K(t=B(e)).call(t,(function(t){t===n&&void 0!==e[o]?r[t]=e[o]:t===o&&void 0!==e[n]?r[t]=e[n]:r[t]=jn(e[t],n,o)})),r}return e}function wn(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function kn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=wn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=wn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Tn=function(e,n,o,t){var i,l,a,v,m=t.res,p=t.sres,f=ve(e),y=(null==m?void 0:m.contentType)||"video",b=(null==m||null===(i=m[y])||void 0===i||null===(l=i.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1,h=(null==m||null===(a=m[y])||void 0===a||null===(v=a.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1;s(m),f&&(f.on("loadstart",(function(){b?o.resolve({status:!0,msg:"Video Loaded",response:m}):o.resolve(kn({status:!0,msg:"Player Initialised"},p?{seriesResponse:p,response:m}:{response:m}))})),f.on("loadeddata",(function(){var o,t,i,l=le(e);if(null==l||we(l).call(l,(function(n){return ae(e,n.id)})),h&&"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=r();if(u(),null!=n&&n.watchHistory&&null!=n&&null!==(o=n.watchHistory)&&void 0!==o&&o.enable&&(!n.isAnonymousUser||null!=n&&null!==(t=n.watchHistory)&&void 0!==t&&t.saveOffline)){var c,d,v=kn(kn({},n),m);!function(e,n,o){var t,r,i;null!=n&&n.series&&null!=n&&null!==(t=n.series)&&void 0!==t&&t.enable&&(mn=null==n||null===(r=n.series)||void 0===r?void 0:r.id),dn=[],vn=0,on=o;var l=(null==n||null===(i=n.watchHistory)||void 0===i?void 0:i.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,l)):e>vn&&(vn=e+l))})),a.one("ended",(function(){pn(a,n,l,!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!==(i=n.analytics)&&void 0!==i&&i.muxKey&&null!=f&&f.mux){var p,y,b,g,j,w,k=(null===(p=r())||void 0===p?void 0:p.video)||(null==m?void 0:m.video),T=null==k?void 0:k.gist,I={env_key:null==n||null===(y=n.analytics)||void 0===y?void 0:y.muxKey,player_name:"vl-web-player",player_version:null===(b=window)||void 0===b?void 0:b.vl_player_version,video_id:null==T?void 0:T.id,video_title:null==T?void 0:T.title,video_series:null==k||null===(g=k.series)||void 0===g?void 0:g.title,video_stream_type:null!=k&&null!==(j=k.streamingInfo)&&void 0!==j&&j.isLiveStream?"live":"video",viewer_user_id:null==n||null===(w=n.analytics)||void 0===w?void 0:w.userId};f.mux({debug:!1,data:I})}})),f.textTracks().on("change",(function(e){var n,o=z(n=this.tracks_).call(n,(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0}))[0];f.trigger("subtitlechanged",o)})),f.on("subtitlechanged",(function(e,n){var o,t,r,i,l,a,s,u,c,d,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,m=null===(o=window)||void 0===o||null===(t=o.cast)||void 0===t||null===(r=t.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.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,y=p.getMediaSession(),b=y.media.tracks,h=z(b).call(b,(function(e){return"TEXT"==e.type}));f=n?new chrome.cast.media.EditTracksInfoRequest([h[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),y.editTracksInfo(f)}})),f.tech_.on("retryplaylist",(function(){b&&gn(m,e)})),f.on("error",(function(){var n,t;(console.log("ERROR",f.error(),f.error().code),4===f.error().code&&b)?gn(m,e):(c(e,(null==f||null===(n=f.error())||void 0===n?void 0:n.message)||"Some error occured"),o.reject({status:!1,msg:(null==f||null===(t=f.error())||void 0===t?void 0:t.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 o,t,i,l=null===(o=r())||void 0===o||null===(t=o.video)||void 0===t||null===(i=t.gist)||void 0===i?void 0:i.id,a=d(),s=(null==a?void 0:a.get(l))||{t:0,p:0},u=s.t,c=s.p;u&&c<95&&ke((function(){f.currentTime(u)}),0)}else null!=n&&n.watchHistoryResumeTime&&(null==n?void 0:n.watchedPercentage)<95&&ke((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(b){f.currentSource();for(var e=f.textTracks(),n=e.length-1;n>=0;n--)f.removeRemoteTextTrack(e[n])}})))};function In(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Sn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=In(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=In(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var xn=function(e,n,o,t){var r,i,s,u,d,y,b,h,g,j,w,k,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!=o&&o.chromecastReceiverId?["chromecast","html5"]:["html5"],Z=(null===(r=K)||void 0===r?void 0:r.contentType)||"video",ee=me(null===(i=K)||void 0===i||null===(s=i[Z])||void 0===s||null===(u=s.gist)||void 0===u?void 0:u.videoImageUrl)||me(null===(d=K)||void 0===d||null===(y=d[Z])||void 0===y||null===(b=y.gist)||void 0===b||null===(h=b.imageGist)||void 0===h?void 0:h.r16x9),ne=(null===(g=K)||void 0===g||null===(j=g[Z])||void 0===j||null===(w=j.liveDetails)||void 0===w?void 0:w.isDvrEnabled)||!1,oe=(null===(k=K)||void 0===k||null===(T=k[Z])||void 0===T||null===(I=T.streamingInfo)||void 0===I?void 0:I.isLiveStreafm)||!1,te=(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),re=(null===(L=K=Sn(Sn({},K),{},{audioAssetSource:null==o?void 0:o.audioAssetSource}))||void 0===L||null===(_=L.video)||void 0===_?void 0:_.isSSAIEnabled)||!1;"Chrome"==fe()&&(re||null===(V=["dirtvision"])||void 0===V||ge(V).call(V,null===(H=K)||void 0===H?void 0:H.siteName));var ie=(null==o?void 0:o.latency)||6,le=(F={enableSmoothSeeking:!0,controls:0!=(null==o?void 0:o.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==o?void 0:o.muted)||!1,autoplay:(null==o?void 0:o.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:!1},muteToggle:"multiplayer"==o.skin,liveui:ne},X(F,"autoplay",null==o?void 0:o.autoplay),X(F,"normalizeAutoplay",(null==o?void 0:o.autoplay)&&!te),X(F,"loop",(null==o?void 0:o.loop)||!1),X(F,"audioPosterMode",null==o?void 0:o.audioPosterMode),X(F,"html5",Sn(Sn({dash:Sn(Sn({},!$.browser.IS_SAFARI&&{useTTML:!0}),{},{updateSettings:{streaming:{delay:{liveDelay:ie},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:ie,useDevicePixelRatio:!0,experimentalLLHLS:(null==o?void 0:o.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==o||null===(M=o.customData)||void 0===M?void 0:M.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:!0}),nativeTextTracks:"Safari"==fe()},0==(null==o||null===(U=o.customData)||void 0===U?void 0:U.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==o||null===(B=o.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 o=ve(e),t=(null==o?void 0:o.textTracksJson_)||o.textTracks().tracks_,r=z(t).call(t,(function(e){return"captions"==e.kind||"subtitles"==e.kind}));return function(e,n,o){var t,r,i,l,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,y,b,h,g,j,w,k;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===(y=n.keySystemOptions)||void 0===y||null===(b=y[0])||void 0===b||null===(h=b.options)||void 0===h?void 0:h.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===(j=g[0])||void 0===j||null===(w=j.options)||void 0===w||null===(k=w.httpRequestHeaders)||void 0===k?void 0:k["X-AxDRM-Message"]);p.licenseToken=S}var x=(null==e||null===(t=e[m])||void 0===t||null===(r=t.gist)||void 0===r?void 0:r.contentType)||"VIDEO";p.contentType=x;var E=null==e||null===(i=e[m])||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.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=o,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,r)},modifyLoadRequestFn:function(n){var o,t,r,i,l,a=ve(e),s=(null==a?void 0:a.currentSource())||{};!(null===(o=K)||void 0===o||null===(t=o[Z])||void 0===t||null===(r=t.streamingInfo)||void 0===r||null===(i=r.videoAssets)||void 0===i?void 0:i.is4K)&&1||null!=s&&s.src&&null!=s&&null!==(l=s.src)&&void 0!==l&&ge(l).call(l,".m3u8")&&(n.media.hlsSegmentFormat="fmp4",n.media.hlsVideoSegmentFormat="fmp4");return n}}),F);if(!$.getPlayers()[e]){le.spatialNavigation={enabled:!0,horizontalSeek:!0};var ae=$(e,le,function(){var n=Y(Q.mark((function n(){var r,i,s,u,d,y,b,h,g,j,w,k,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(o,K);case 6:k=null===(r=K)||void 0===r||null===(i=r[Z])||void 0===i||null===(s=i.liveDetails)||void 0===s?void 0:s.startOverTime,oe&&t.resolve(Sn({status:!0,msg:"Player Initialised"},W?{seriesResponse:W,response:K}:{response:K})),v(e,null==o?void 0:o.analyticsCb),an(e,o),/Android/i.test(navigator.userAgent)&&($.options.vhs.overrideNative=!0),ne&&Ae(e,k),!te||null!=o&&null!==(u=o.customData)&&void 0!==u&&u.disableAds||m(e,te,K),T=l(K,e),console.log(T),null!=o&&o.nearestClusterUrl&&(T=p(T,o.nearestClusterUrl)),T?a(e,T):(t.reject({status:!1,msg:"Incompatible / Missing Source",response:K}),c(e,"Incompatible / Missing Source")),((null===(d=K)||void 0===d||null===(y=d[Z])||void 0===y||null===(b=y.contentDetails)||void 0===b||null===(h=b.closedCaptions)||void 0===h?void 0:h.length)>0||(null===(g=K)||void 0===g||null===(j=g[Z])||void 0===j||null===(w=j.closedCaptions)||void 0===w?void 0:w.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!=o&&o.disableControls?f(e):sn(e,Sn(Sn(Sn({},o),le),{},{liveVideo:oe,isDvrEnabled:ne,res:K,sres:W})),Tn(e,Sn(Sn(Sn({},o),le),{},{liveVideo:oe}),t,{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 o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Dn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=Cn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=Cn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Rn,Nn=function(e,n){var o=n.resolve,t=n.reject,r=null==e?void 0:e.playerId,i=Pn(e);xn(r,{res:i},e,{resolve:o,reject:t})},Pn=function(e){var n,o,t=null==e?void 0:e.streamingInfo,r=null==e||null===(n=e.streamingInfo)||void 0===n?void 0:n.videoAssets,i=(null==e||null===(o=e.streamingInfo)||void 0===o?void 0:o.isDrmEnabled)||null,l=null==e?void 0:e.token,a=y(l),s=null==a?void 0:a.site;return Dn(Dn({id:null==En?void 0:En[s]},!i&&{directPlaybackUrl:null==r?void 0:r.url}),{},{video:{drmEnabled:i,streamingInfo:{videoAssets:{widevine:null==r?void 0:r.widevine,fairPlay:null==r?void 0:r.fairPlay,playReady:null==r?void 0:r.playReady}},liveDetails:{isDvrEnabled:null==t?void 0:t.isDvrEnabled}}})};function An(e,n){return On.apply(this,arguments)}function On(){return(On=Y(Q.mark((function e(n,o){var t,r,i,l,a,u;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.resolve,r=o.reject,i=null==n?void 0:n.videoId,l=null==n?void 0:n.playerId,a=!(null==n||!n.anonymousId),e.next=6,j();case 6:u=e.sent,b(i,u).then((function(e){var o,c,d,v;window.contentType=null==e||null===(o=e.data)||void 0===o||null===(c=o.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,y,b,g=bn((null===(f=n.watchHistory)||void 0===f?void 0:f.profileId)||"",i,null==n?void 0:n.siteOwner);if(g&&g.length)n.watchHistoryResumeTime=(null===(y=g[0])||void 0===y?void 0:y.watchedTime)||null,n.watchedPercentage=(null===(b=g[0])||void 0===b?void 0:b.watchedPercentage)||null;p.contentType="video",xn(l,{res:p},n,{resolve:t,reject:r})}else h(i,u).then((function(e){var o,t,r,i,l,a;null!==(o=window)&&void 0!==o&&null!==(t=o.watchHistory)&&void 0!==t&&t.cb&&(null===(r=window)||void 0===r||null===(i=r.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),n.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.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,o,t,r;null!==(n=window)&&void 0!==n&&null!==(o=n.watchHistory)&&void 0!==o&&o.cb&&(null===(t=window)||void 0===t||null===(r=t.watchHistory)||void 0===r||r.cb(e))})).finally((function(){xn(l,{res:p},n,{resolve:t,reject:r})}));else xn(l,{res:p},n,{resolve:t,reject:r})})).catch((function(e){g(e,l,r,i)}));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,o){var t,r,i,l,a;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.resolve,r=o.reject,e.next=3,j();case 3:i=e.sent,l=null==n?void 0:n.playerId,a=null==n?void 0:n.epg,w(a,i).then((function(e){var o=null==e?void 0:e.data;o.contentType="linearchannel",o.channelId=null==a?void 0:a.channelId,xn(l,{res:o},n,{resolve:t,reject:r})})).catch((function(e){g(e,l,r,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,o){var t,r,i,l,a,u,c;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.resolve,i=o.reject,e.next=3,j();case 3:l=e.sent,a=null==n?void 0:n.playerId,u=sessionStorage.getItem("season-idx")||0,k.set(be(u)),c=null==n||null===(t=n.series)||void 0===t?void 0:t.id,T(c,l).then((function(e){var o,t,u,d=e.data,v=e.data.seasons;S(v);var m=videoId||(null==v||null===(o=v[0])||void 0===o||null===(t=o.episodes)||void 0===t||null===(u=t[0])||void 0===u?void 0:u.id);I(c,l),b(m,l).then((function(e){var o,t,l;window.contentType=null==e||null===(o=e.data)||void 0===o||null===(t=o.video)||void 0===t||null===(l=t.gist)||void 0===l?void 0:l.contentType,s(e.data),xn(a,{res:null==e?void 0:e.data,sres:d},n,{resolve:r,reject:i})})).catch((function(e){g(e,a,i,videoId)}))})).catch((function(e){g(e,a,i)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mn(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Un(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=Mn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=Mn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}function Bn(){return{loadVideoInstantly:x,onTimeUpdate:ne,getVideoDuration:oe,onVideoEnded:te,init:function(e){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Z(function(){var n=Y(Q.mark((function n(o,t){var r,i,l,a,s,u,c,d,v,m,p,f,y,h,j,w,k,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,y=(null==e||null===(r=e.epg)||void 0===r?void 0:r.enable)||!1,h=null==e?void 0:e.videoId,j=(null==e||null===(i=e.series)||void 0===i?void 0:i.enable)||!1,w=(null==e?void 0:e.streamingInfo)||!1,window.videoId=h,k=null==e?void 0:e.token,!V(e)){n.next=17;break}if(sessionStorage.setItem("vlp_token",k),H().set(null==e?void 0:e.refreshToken),k&&!M(k)){n.next=16;break}return t({status:!1,msg:"".concat(k?"Token is expired !":"Missing Authorization Token"),response:{token:k}}),n.abrupt("return");case 16:Rn=JSON.parse(atob(k.split(".")[1]));case 17:return e.isAnonymousUser=!(null===(l=Rn)||void 0===l||!l.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,he(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?b(E,k).then((function(n){var r=(null==n?void 0:n.data)||{};xn(T,{res:Un(Un({},r),C)},e,{resolve:o,reject:t})})).catch((function(e){g(e,T,t,E)})):xn(T,{res:C},e,{resolve:o,reject:t})):w?Nn(e,{resolve:o,reject:t}):j?Vn(e,{resolve:o,reject:t}):y?Ln(e,{resolve:o,reject:t}):An(e,{resolve:o,reject:t});case 37:case"end":return n.stop()}}),n)})));return function(e,o){return n.apply(this,arguments)}}())},getRenditions:ce,skip:E,getPlayer:ve,play:C,pause:D,detectBrowser:fe,rewind:R,loadVideo:a,seekToTimeStamp:re,isPlayerInitialised:N,load:P,authenticateLC:A,dispose:O,enableCaptions:ue,disableCaptions:ae,getCaptions:le,playSelectedResolution:de,getSource:l,setVolume:Re,getVolume:Ne,disableControls:f,setPlaybackSpeed:ie,getEntitlementData:L}}export{Bn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import r from"@babel/runtime-corejs3/helpers/classCallCheck";import s from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import i from"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import c from"video.js";import{h as n,f as l,i as m}from"./icons-68d3a609.js";import{G as
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import r from"@babel/runtime-corejs3/helpers/classCallCheck";import s from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import i from"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import c from"video.js";import{h as n,f as l,i as m}from"./icons-68d3a609.js";import{G as d,C as p}from"./generic-979547e7.js";import{e as j,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"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";function b(r){var s=y();return function(){var t,i=a(r);if(s){var c=a(this).constructor;t=e(i,arguments,c)}else t=i.apply(this,arguments);return o(this,t)}}function y(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(y=function(){return!!r})()}var f=c.getComponent("Component"),h=function(e){t(a,f);var o=b(a);function a(e){var s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,a),(s=o.call(this,e,t)).playerId=t.playerId,s.seriesData=t.sres,s.streams=t.streams,s.currentVideoData=t.res,s.initialiseStructure(),s.loadCSS(),s}return s(a,[{key:"createEl",value:function(){var e=c.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var r=c.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(n())});return c.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){import("./multicamv2-1fb5149a.js").then((function(e){var r=document.createElement("style");r.id="multicam-v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),r=c.dom.createEl("div",{className:"stream-container hidden"});c.dom.$(".stream-selector-icon",this.el()).onclick=function(){var s;null!==(s=r.classList)&&void 0!==s&&s.contains("hidden")?(j(),r.classList.remove("hidden"),e.classList.add("open"),r.style.right="0px"):(r.classList.add("hidden"),e.classList.remove("open"),r.style.right="-350px")};var s=document.getElementById(this.playerId);if(s){var t=window.getComputedStyle(s,null).getPropertyValue("height"),o=i(t).call(t,0,-2);r.style.height="".concat(o,"px"),s.style.overflow="hidden",c.dom.appendContent(e,r),this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),t=c.dom.createEl("div",{className:"stream-selector-head"}),o=c.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(l())});o.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var a=c.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),n=c.dom.createEl("div",{className:"stream-selector-content"}),j=c.dom.createEl("div",{className:"stream-tray"}),b=function(e){var s,t=c.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(m())});0==e&&(t.classList.add("selected"),t.style.border="4px solid #D2393B"),t.onclick=function(){for(var s=c.dom.$$(".stream"),o=0;o<s.length;o++)s[o].style.border="none",s[o].classList.remove("selected");t.classList.add("selected"),t.style.border="4px solid #D2393B",d(r.playerId,r.streams[e].id).then((function(e){p(r.playerId),console.log(e)})).catch((function(e){console.log(e)}))},t.style.backgroundImage="url(".concat(r.streams[e].img,")");var o=document.createElement("img");o.className="stream-thumbnail-image",o.src="".concat(null==r||null===(s=r.streams[e])||void 0===s?void 0:s.img),o.alt="No Thumbnail Available",t.append(o),c.dom.appendContent(j,t),c.dom.appendContent(n,j)},y=0;y<this.streams.length;y++)b(y);c.dom.appendContent(t,o),c.dom.appendContent(t,a),c.dom.appendContent(e,t),c.dom.appendContent(e,n),u(this.playerId).on("fullscreenchange",(function(){var s=window.getComputedStyle(document.getElementById(r.playerId),null).getPropertyValue("height"),t=i(s).call(s,0,-2);e.style.height="".concat(t,"px")}))}}]),a}();export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import r from"@babel/runtime-corejs3/helpers/classCallCheck";import o from"@babel/runtime-corejs3/helpers/createClass";import s from"@babel/runtime-corejs3/helpers/inherits";import t from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import n from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import a from"@babel/runtime-corejs3/core-js-stable/instance/concat";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import l from"video.js";import{P as m}from"./icons-68d3a609.js";import{G as c,f as d}from"./generic-979547e7.js";import{d as p}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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";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-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";function u(r){var o=j();return function(){var s,n=i(r);if(o){var a=i(this).constructor;s=e(n,arguments,a)}else s=n.apply(this,arguments);return t(this,s)}}function j(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(j=function(){return!!r})()}var b=l.getComponent("Component"),y=function(e){s(i,b);var t=u(i);function i(e){var o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,i),(o=t.call(this,e,s)).playerId=s.playerId,o.seriesData=s.sres,o.currentVideoData=s.res,o.initialiseStructure(),o.loadCSS(),o}return o(i,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"play-next"}),r=l.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(m(window.controlsColor?window.controlsColor:"white"))});return l.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.js").then((function(e){var r=document.createElement("style");r.id="multicam",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),r=l.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),o=l.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),s=l.dom.createEl("div",{className:"nextep-meta-details next-margin"}),t=l.dom.createEl("div",{className:"next-eps-image"}),i=l.dom.createEl("div",{className:"next-eps-description"});l.dom.appendContent(s,t),l.dom.appendContent(s,i),l.dom.appendContent(r,o),l.dom.appendContent(r,s),this.toggleContentOnHover(e,r),l.dom.appendContent(e,r)}},{key:"toggleContentOnHover",value:function(e,r){e.addEventListener("mouseover",(function(){l.dom.removeClass(r,"nextepisode-hidden")})),r.addEventListener("mouseover",(function(){l.dom.removeClass(r,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){l.dom.addClass(r,"nextepisode-hidden")})),r.addEventListener("mouseout",(function(){l.dom.addClass(r,"nextepisode-hidden")}))}}]),i}(),f=function(e,r){var o=v(e,r.video.gist.id),s=g(e[o],r.video.gist.id),t=h(e[o],s);x(t.nextEp)},v=function(e,r){for(var o=-1,s=0;s<e.length;s++)for(var t=0;t<e[s].episodes.length;t++)if(e[s].episodes[t].id===r){o=s;break}return o},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;if(!(e&&r>=0))return{prevEp:null,nextEp:null};var o=e.episodes.length,s=r-1>=0?r-1:o-1,t=(r+1)%o,i=o>1?e.episodes[s]:null,n=o>1?e.episodes[t]:null;return s===t&&(0===s?n=null:i=null),{prevEp:i,nextEp:n,prevEpIdx:s,nextEpIdx:t}},g=function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0,s=null;return r?(n(e=r.episodes).call(e,(function(e,r){e.gist.id===o&&(s=r)})),s):null},x=function(e){var r,o,s;l.dom.$(".next-eps"),l.dom.$(".play-next").onclick=function(){var r;c("my-player",null==e||null===(r=e.gist)||void 0===r?void 0:r.id).then((function(e){d(e.response)}))};var t=l.dom.$(".next-eps-image"),i=p("<img src=".concat(null==e||null===(r=e.gist)||void 0===r?void 0:r.videoImageUrl," />")),n=null==i?void 0:i.firstChild;null==t||t.append(n);for(var m=l.dom.$(".next-eps-description"),u=p(a(o="<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>")).call(o,null==e||null===(s=e.gist)||void 0===s?void 0:s.description,"</div>"));null!=u&&u.firstChild;)null==m||m.appendChild(u.firstChild)};export{y as default,f as initaliseFunctionality};
|
|
@@ -1 +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/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/slice";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import n from"video.js";import{E as c,f as d}from"./icons-68d3a609.js";import{G as m,R as p}from"./generic-979547e7.js";import{a as u}from"./autoNextVideo-
|
|
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/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/slice";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import n from"video.js";import{E as c,f as d}from"./icons-68d3a609.js";import{G as m,R as p}from"./generic-979547e7.js";import{a as u}from"./autoNextVideo-56f70964.js";import{e as j,g as y}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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-1b598a26.js";function b(t){var o=v();return function(){var s,r=a(t);if(o){var l=a(this).constructor;s=e(r,arguments,l)}else s=r.apply(this,arguments);return i(this,s)}}function v(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}var f=n.getComponent("Component"),h=function(e){r(a,f);var i=b(a);function a(e){var t,s,r,l,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,a),(l=i.call(this,e,n)).playerId=n.playerId,l.seriesData=n.sres,l.videos=null==n||null===(t=n.playlist)||void 0===t?void 0:t.content,l.cb=(null==n||null===(s=n.playlist)||void 0===s?void 0:s.cb)||null,l.autoNext=(null==n||null===(r=n.playlist)||void 0===r?void 0:r.autoNext)||!1,l.currentVideoData=n.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&u({playerId:l.playerId,content:l.videos,cb:l.cb}),l}return s(a,[{key:"createEl",value:function(){var e=n.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=n.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(c())});return n.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=n.dom.createEl("div",{className:"selection-container hidden"});n.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var o;null!==(o=t.classList)&&void 0!==o&&o.contains("hidden")?(j(),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 s=window.getComputedStyle(o,null).getPropertyValue("height"),r=l(s).call(s,0,-2);t.style.height="".concat(r,"px"),n.dom.appendContent(e,t),o.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var o=this,s=this.el(),r=n.dom.createEl("div",{className:"playlist-selector-head"}),i=n.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(d())});i.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var a=n.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),c=n.dom.createEl("div",{className:"playlist-selector-content"}),u=function(e){var s,r,i=n.dom.createEl("div",{className:"playlist-container"}),a=n.dom.createEl("div",{className:"playlist-section",index:e}),l=n.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(s=o.videos[e])||void 0===s?void 0:s.title)||"")}),d=n.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(o.videos[e].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});n.dom.appendContent(a,l),n.dom.appendContent(a,d),n.dom.appendContent(i,a),n.dom.appendContent(c,i);var u=n.dom.createEl("div",{className:"playlist-section-expanded hidden"}),j=n.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(r=o.videos[e])||void 0===r?void 0:r.description)||"")}),y=n.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(o.videos[e].img,")"),n.dom.appendContent(u,y),n.dom.appendContent(u,j),n.dom.appendContent(i,u),n.dom.appendContent(c,i),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)}))},a.onclick=function(e){var o,s,r,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,l=(a=t(a))[e.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=l&&null!==(o=l.classList)&&void 0!==o&&o.contains("hidden")?(i.style.backgroundColor="#0000007d",null==l||null===(s=l.classList)||void 0===s||s.remove("hidden")):(null==l||null===(r=l.classList)||void 0===r||r.add("hidden"),i.style.backgroundColor="unset")}},j=0;j<this.videos.length;j++)u(j);n.dom.appendContent(r,i),n.dom.appendContent(r,a),n.dom.appendContent(e,r),n.dom.appendContent(e,c),y(this.playerId).on("fullscreenchange",(function(){var t=document.getElementById(o.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height"),r=l(s).call(s,0,-2);e.style.height="".concat(r,"px")}}))}}]),a}();export{h as default};
|
|
@@ -1 +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,
|
|
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,t=i(n),e=[];if((null==t||null===(o=t.tech_)||void 0===o?void 0:o.vhs)||!1){var d,u,v=null==t||null===(d=t.tech_)||void 0===d||null===(u=d.vhs)||void 0===u?void 0:u.representations();(null==v?void 0:v.length)>0&&(e=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==t||null===(r=t.dash)||void 0===r||null===(h=r.mediaPlayer)||void 0===h?void 0:h.getBitrateInfoListFor("video");(null==a?void 0:a.length)>0&&(e=null==a?void 0:l(a).call(a,(function(l,i){return i.height-l.height})))}return e};export{n as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import t 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"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";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 p,B as u}from"./icons-68d3a609.js";import{j,U as v,V as b,b as y,w as h,G as f}from"./generic-979547e7.js";import{e as g,p as C,g as x}from"./skin-43755201.js";import{a as N}from"./autoNextVideo-fc102a98.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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-7ef0c31b.js";function E(s){var o=k();return function(){var t,r=a(s);if(o){var i=a(this).constructor;t=e(r,arguments,i)}else t=r.apply(this,arguments);return n(this,t)}}function k(){try{var s=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(s){}return(k=function(){return!!s})()}var S=d.getComponent("Component"),w=function(e){i(a,S);var n=E(a);function a(e){var t,i,c,d,m,p,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,a),(p=n.call(this,e,u)).playerId=u.playerId,p.seriesData=u.sres,p.videos=null==u||null===(t=u.sres)||void 0===t?void 0:t.seasons,p.currentVideoData=u.res,p.initialiseStructure(),p.loadCSS(),p.selectedSeason=0,p.cb=null==u||null===(i=u.series)||void 0===i?void 0:i.cb,p.autoPlayNext=(null==u||null===(c=u.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),p.watchMap=j(),null!==(d=r(p))&&void 0!==d&&d.autoPlayNext&&null!=u&&null!==(m=u.series)&&void 0!==m&&m.enable){var y,h,f,g,C=null==u||null===(y=u.sres)||void 0===y?void 0:y.seasons,x=[];l(C).call(C,(function(e){x.push.apply(x,s(e.episodes))})),v(x),b(null===(h=p.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(g=f.video)||void 0===g?void 0:g.id),N({playerId:p.playerId,content:x,cb:p.cb,series:null==u?void 0:u.sres})}return p}return t(a,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(m())});return d.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then((function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(g(),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,s=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 t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height"),i=c(r).call(r,0,-2);o.style.height="".concat(i,"px"),d.dom.appendContent(s,o),t.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),t=d.dom.createEl("div",{className:"series-selector-head"}),r=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});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 t=d.dom.$(".series-selector-content",s.el());for(d.dom.$(".series-selector-cross-icon",s.el()),r.className="series-selector-cross-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var i=s.createSeasonLister();for(d.dom.appendContent(t,i),d.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var n=C(p());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(t,r),d.dom.appendContent(t,i),d.dom.appendContent(e,t),d.dom.appendContent(e,n),x(this.playerId).on("fullscreenchange",(function(){var o=document.getElementById(s.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height"),r=c(t).call(t,0,-2);e.style.height="".concat(r,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;x(this.playerId);for(var s=y(),o=d.dom.createEl("div",{className:"season-container"}),t=function(t){var r,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(t));var n=document.createElement("div");n.className="season - ".concat(t),n.textContent=null===(r=s[t])||void 0===r?void 0:r.title;var a=d.dom.createEl("input",{className:"radio - ".concat(t),id:"season-".concat(t),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==t&&(a.checked=!0),a.onclick=function(s){h.set(t),e.showSeasonDetails(t)},d.dom.appendContent(i,a),d.dom.appendContent(i,n),d.dom.appendContent(o,i)},r=0;r<s.length;r++)t(r);return o}},{key:"getSeasonDetailsContainer",value:function(e,o){var t=this;e=l(e).call(e,(function(e){var s,o,r,i,n;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:null==e||null===(o=e.gist)||void 0===o||null===(r=o.imageGist)||void 0===r?void 0:r.r16x9,watchedPercentage:(null==t||null===(i=t.watchMap)||void 0===i||null===(n=i.get(null==e?void 0:e.id))||void 0===n?void 0:n.p)||0}}));for(var r=function(r){var i,n,a,l,c,m,p,u=d.dom.createEl("div",{className:"series-container"}),j=d.dom.createEl("div",{className:"series-section",index:r}),v=d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=e[r])||void 0===i?void 0:i.title)||"")}),y=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(j,v),d.dom.appendContent(j,y),d.dom.appendContent(u,j),d.dom.appendContent(o,u);var h=d.dom.createEl("div",{className:"series-section-expanded hidden"}),g=(null===(n=e[r])||void 0===n?void 0:n.description)||"";(null===(a=g)||void 0===a?void 0:a.length)>170&&(g=g.substr(0,170)+"...");var C=d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(g||"")}),x=d.dom.createEl("img",{className:"series-image"});x.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)),x.alt="".concat(null===(p=e[r])||void 0===p?void 0:p.title),d.dom.appendContent(h,x),d.dom.appendContent(h,C),d.dom.appendContent(u,h),d.dom.appendContent(o,u),h.onclick=function(s){var o;s.stopPropagation(),b(null===(o=e[r])||void 0===o?void 0:o.id),f(t.playerId,e[r].id).then((function(e){null!=t&&t.cb&&t.cb(e)})).catch((function(e){null!=t&&t.cb&&t.cb(e)}))},j.onclick=function(e){var o,t,r,i=document.getElementsByClassName("series-selector-content")[0].childNodes,n=(i=s(i))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=n&&null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(u.style.backgroundColor="#0000007d",null==n||null===(t=n.classList)||void 0===t||t.remove("hidden")):(null==n||null===(r=n.classList)||void 0===r||r.add("hidden"),u.style.backgroundColor="unset")}},i=0;i<e.length;i++)r(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=d.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=y()[e].episodes;this.getSeasonDetailsContainer(o,s);var t=d.dom.$(".series-selector-cross-icon",this.el());for(t.className="series-selector-back-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=C(u());t.appendChild(r),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),a}();export{w as default};
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import t 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"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";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 p,B as u}from"./icons-68d3a609.js";import{j,U as v,V as b,b as y,w as h,G as f}from"./generic-979547e7.js";import{e as g,p as C,g as x}from"./skin-43755201.js";import{a as N}from"./autoNextVideo-56f70964.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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-1b598a26.js";function E(s){var o=k();return function(){var t,r=a(s);if(o){var i=a(this).constructor;t=e(r,arguments,i)}else t=r.apply(this,arguments);return n(this,t)}}function k(){try{var s=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(s){}return(k=function(){return!!s})()}var S=d.getComponent("Component"),w=function(e){i(a,S);var n=E(a);function a(e){var t,i,c,d,m,p,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,a),(p=n.call(this,e,u)).playerId=u.playerId,p.seriesData=u.sres,p.videos=null==u||null===(t=u.sres)||void 0===t?void 0:t.seasons,p.currentVideoData=u.res,p.initialiseStructure(),p.loadCSS(),p.selectedSeason=0,p.cb=null==u||null===(i=u.series)||void 0===i?void 0:i.cb,p.autoPlayNext=(null==u||null===(c=u.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),p.watchMap=j(),null!==(d=r(p))&&void 0!==d&&d.autoPlayNext&&null!=u&&null!==(m=u.series)&&void 0!==m&&m.enable){var y,h,f,g,C=null==u||null===(y=u.sres)||void 0===y?void 0:y.seasons,x=[];l(C).call(C,(function(e){x.push.apply(x,s(e.episodes))})),v(x),b(null===(h=p.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(g=f.video)||void 0===g?void 0:g.id),N({playerId:p.playerId,content:x,cb:p.cb,series:null==u?void 0:u.sres})}return p}return t(a,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(m())});return d.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then((function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(g(),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,s=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 t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height"),i=c(r).call(r,0,-2);o.style.height="".concat(i,"px"),d.dom.appendContent(s,o),t.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),t=d.dom.createEl("div",{className:"series-selector-head"}),r=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});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 t=d.dom.$(".series-selector-content",s.el());for(d.dom.$(".series-selector-cross-icon",s.el()),r.className="series-selector-cross-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var i=s.createSeasonLister();for(d.dom.appendContent(t,i),d.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var n=C(p());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(t,r),d.dom.appendContent(t,i),d.dom.appendContent(e,t),d.dom.appendContent(e,n),x(this.playerId).on("fullscreenchange",(function(){var o=document.getElementById(s.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height"),r=c(t).call(t,0,-2);e.style.height="".concat(r,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;x(this.playerId);for(var s=y(),o=d.dom.createEl("div",{className:"season-container"}),t=function(t){var r,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(t));var n=document.createElement("div");n.className="season - ".concat(t),n.textContent=null===(r=s[t])||void 0===r?void 0:r.title;var a=d.dom.createEl("input",{className:"radio - ".concat(t),id:"season-".concat(t),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==t&&(a.checked=!0),a.onclick=function(s){h.set(t),e.showSeasonDetails(t)},d.dom.appendContent(i,a),d.dom.appendContent(i,n),d.dom.appendContent(o,i)},r=0;r<s.length;r++)t(r);return o}},{key:"getSeasonDetailsContainer",value:function(e,o){var t=this;e=l(e).call(e,(function(e){var s,o,r,i,n;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:null==e||null===(o=e.gist)||void 0===o||null===(r=o.imageGist)||void 0===r?void 0:r.r16x9,watchedPercentage:(null==t||null===(i=t.watchMap)||void 0===i||null===(n=i.get(null==e?void 0:e.id))||void 0===n?void 0:n.p)||0}}));for(var r=function(r){var i,n,a,l,c,m,p,u=d.dom.createEl("div",{className:"series-container"}),j=d.dom.createEl("div",{className:"series-section",index:r}),v=d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=e[r])||void 0===i?void 0:i.title)||"")}),y=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(j,v),d.dom.appendContent(j,y),d.dom.appendContent(u,j),d.dom.appendContent(o,u);var h=d.dom.createEl("div",{className:"series-section-expanded hidden"}),g=(null===(n=e[r])||void 0===n?void 0:n.description)||"";(null===(a=g)||void 0===a?void 0:a.length)>170&&(g=g.substr(0,170)+"...");var C=d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(g||"")}),x=d.dom.createEl("img",{className:"series-image"});x.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)),x.alt="".concat(null===(p=e[r])||void 0===p?void 0:p.title),d.dom.appendContent(h,x),d.dom.appendContent(h,C),d.dom.appendContent(u,h),d.dom.appendContent(o,u),h.onclick=function(s){var o;s.stopPropagation(),b(null===(o=e[r])||void 0===o?void 0:o.id),f(t.playerId,e[r].id).then((function(e){null!=t&&t.cb&&t.cb(e)})).catch((function(e){null!=t&&t.cb&&t.cb(e)}))},j.onclick=function(e){var o,t,r,i=document.getElementsByClassName("series-selector-content")[0].childNodes,n=(i=s(i))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=n&&null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(u.style.backgroundColor="#0000007d",null==n||null===(t=n.classList)||void 0===t||t.remove("hidden")):(null==n||null===(r=n.classList)||void 0===r||r.add("hidden"),u.style.backgroundColor="unset")}},i=0;i<e.length;i++)r(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=d.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=y()[e].episodes;this.getSeasonDetailsContainer(o,s);var t=d.dom.$(".series-selector-cross-icon",this.el());for(t.className="series-selector-back-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=C(u());t.appendChild(r),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),a}();export{w as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/assertThisInitialized";import i from"@babel/runtime-corejs3/helpers/inherits";import a from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import n from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";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 p,B as u}from"./icons-68d3a609.js";import{j,U as v,V as b,b as y,w as h,G as f}from"./generic-979547e7.js";import{e as g,s as C,p as N,j as x,g as E,i as k}from"./skin-43755201.js";import{a as S}from"./autoNextVideo-fc102a98.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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-7ef0c31b.js";function L(s){var o=w();return function(){var r,t=n(s);if(o){var i=n(this).constructor;r=e(t,arguments,i)}else r=t.apply(this,arguments);return a(this,r)}}function w(){try{var s=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(s){}return(w=function(){return!!s})()}var I=d.getComponent("Component"),M=function(e){i(n,I);var a=L(n);function n(e){var r,i,c,d,m,p,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,n),(p=a.call(this,e,u)).playerId=u.playerId,p.seriesData=u.sres,p.videos=null==u||null===(r=u.sres)||void 0===r?void 0:r.seasons,p.currentVideoData=u.res,p.initialiseStructure(),p.loadCSS(),p.selectedSeason=0,p.cb=null==u||null===(i=u.series)||void 0===i?void 0:i.cb,p.autoPlayNext=(null==u||null===(c=u.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),p.watchMap=j(),null!==(d=t(p))&&void 0!==d&&d.autoPlayNext&&null!=u&&null!==(m=u.series)&&void 0!==m&&m.enable){var y,h,f,g,C=null==u||null===(y=u.sres)||void 0===y?void 0:y.seasons,N=[];l(C).call(C,(function(e){N.push.apply(N,s(e.episodes))})),v(N),b(null===(h=p.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(g=f.video)||void 0===g?void 0:g.id),S({playerId:p.playerId,content:N,cb:p.cb,series:null==u?void 0:u.sres})}return p}return r(n,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(m())});return d.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.js").then((function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(g(),e.classList.remove("hidden"),o.classList.add("open"),C(this.playerId,e)):(e.classList.add("hidden"),o.classList.remove("open"))}},{key:"initialiseStructure",value:function(){var e=this,s=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 r=document.getElementById(this.playerId);if(r){var t=window.getComputedStyle(r,null).getPropertyValue("height"),i=c(t).call(t,0,-2);o.style.height="".concat(i,"px"),d.dom.appendContent(s,o),r.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),r=d.dom.createEl("div",{className:"series-selector-head"}),t=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});t.onclick=function(){if("series-selector-cross-icon"===t.className)e.classList.add("hidden"),o.classList.remove("open");else if("series-selector-back-icon"===t.className){var r=d.dom.$(".series-selector-content",s.el());for(d.dom.$(".series-selector-cross-icon",s.el()),t.className="series-selector-cross-icon";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var i=s.createSeasonLister();for(d.dom.appendContent(r,i),d.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var a=N(p());t.appendChild(a)}};var i=d.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),a=d.dom.createEl("div",{className:"series-selector-content"}),n=this.createSeasonLister();d.dom.appendContent(a,n),d.dom.appendContent(r,t),d.dom.appendContent(r,i),d.dom.appendContent(e,r),d.dom.appendContent(e,a),x(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;E(this.playerId);for(var s=y(),o=d.dom.createEl("div",{className:"season-container"}),r=function(r){var t,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(r));var a=document.createElement("div");a.className="season - ".concat(r),a.textContent=null===(t=s[r])||void 0===t?void 0:t.title;var n=d.dom.createEl("input",{className:"radio - ".concat(r),id:"season-".concat(r),name:"season-radio"});n.setAttribute("type","radio"),e.selectedSeason==r&&(n.checked=!0),n.onclick=function(s){h.set(r),e.showSeasonDetails(r)},d.dom.appendContent(i,n),d.dom.appendContent(i,a),d.dom.appendContent(o,i)},t=0;t<s.length;t++)r(t);return o}},{key:"getSeasonDetailsContainer",value:function(e,o){var r=this;e=l(e).call(e,(function(e){var s,o,t,i,a,n,l,c,d;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:(null==e||null===(o=e.gist)||void 0===o||null===(t=o.imageGist)||void 0===t?void 0:t.r16x9)||(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(n=a.appcmsMain)||void 0===n||null===(l=n.images)||void 0===l?void 0:l.placeholderCover),watchedPercentage:(null==r||null===(c=r.watchMap)||void 0===c||null===(d=c.get(null==e?void 0:e.id))||void 0===d?void 0:d.p)||0}}));for(var t=function(t){var i,a,n,l,c,m=d.dom.createEl("div",{className:"series-container"}),p=d.dom.createEl("div",{className:"series-section-data",index:t,innerHTML:"".concat((null===(i=e[t])||void 0===i?void 0:i.title)||"")});d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(a=e[t])||void 0===a?void 0:a.title)||"")}),d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[t].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var u=d.dom.createEl("div",{className:"series-section-image"}),j=(null===(n=e[t])||void 0===n?void 0:n.description)||"";(null===(l=j)||void 0===l?void 0:l.length)>170&&(j=j.substr(0,170)+"..."),d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(j||"")});var v=d.dom.createEl("img",{className:"series-image"});v.src="".concat(k(null===(c=e[t])||void 0===c?void 0:c.img)),v.alt="Episode ".concat(t+1),d.dom.appendContent(u,v),d.dom.appendContent(m,u),d.dom.appendContent(m,p),d.dom.appendContent(o,m),m.onclick=function(s){var o;s.stopPropagation(),b(null===(o=e[t])||void 0===o?void 0:o.id),f(r.playerId,e[t].id).then((function(e){null!=r&&r.cb&&r.cb(e)})).catch((function(e){null!=r&&r.cb&&r.cb(e)}))},p.onclick=function(e){var o,r,t,i=document.getElementsByClassName("series-selector-content")[0].childNodes,a=(i=s(i))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=a&&null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(m.style.backgroundColor="#0000007d",null==a||null===(r=a.classList)||void 0===r||r.remove("hidden")):(null==a||null===(t=a.classList)||void 0===t||t.add("hidden"),m.style.backgroundColor="unset")}},i=0;i<e.length;i++)t(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=d.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=y()[e].episodes;this.getSeasonDetailsContainer(o,s);var r=d.dom.$(".series-selector-cross-icon",this.el());for(r.className="series-selector-back-icon";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var t=N(u());r.appendChild(t),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),n}();export{M as default};
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/assertThisInitialized";import i from"@babel/runtime-corejs3/helpers/inherits";import a from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import n from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";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 p,B as u}from"./icons-68d3a609.js";import{j,U as v,V as b,b as y,w as h,G as f}from"./generic-979547e7.js";import{e as g,s as C,p as N,j as x,g as E,i as k}from"./skin-43755201.js";import{a as S}from"./autoNextVideo-56f70964.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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-1b598a26.js";function L(s){var o=w();return function(){var r,t=n(s);if(o){var i=n(this).constructor;r=e(t,arguments,i)}else r=t.apply(this,arguments);return a(this,r)}}function w(){try{var s=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(s){}return(w=function(){return!!s})()}var I=d.getComponent("Component"),M=function(e){i(n,I);var a=L(n);function n(e){var r,i,c,d,m,p,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,n),(p=a.call(this,e,u)).playerId=u.playerId,p.seriesData=u.sres,p.videos=null==u||null===(r=u.sres)||void 0===r?void 0:r.seasons,p.currentVideoData=u.res,p.initialiseStructure(),p.loadCSS(),p.selectedSeason=0,p.cb=null==u||null===(i=u.series)||void 0===i?void 0:i.cb,p.autoPlayNext=(null==u||null===(c=u.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),p.watchMap=j(),null!==(d=t(p))&&void 0!==d&&d.autoPlayNext&&null!=u&&null!==(m=u.series)&&void 0!==m&&m.enable){var y,h,f,g,C=null==u||null===(y=u.sres)||void 0===y?void 0:y.seasons,N=[];l(C).call(C,(function(e){N.push.apply(N,s(e.episodes))})),v(N),b(null===(h=p.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(g=f.video)||void 0===g?void 0:g.id),S({playerId:p.playerId,content:N,cb:p.cb,series:null==u?void 0:u.sres})}return p}return r(n,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(m())});return d.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.js").then((function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(g(),e.classList.remove("hidden"),o.classList.add("open"),C(this.playerId,e)):(e.classList.add("hidden"),o.classList.remove("open"))}},{key:"initialiseStructure",value:function(){var e=this,s=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 r=document.getElementById(this.playerId);if(r){var t=window.getComputedStyle(r,null).getPropertyValue("height"),i=c(t).call(t,0,-2);o.style.height="".concat(i,"px"),d.dom.appendContent(s,o),r.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),r=d.dom.createEl("div",{className:"series-selector-head"}),t=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});t.onclick=function(){if("series-selector-cross-icon"===t.className)e.classList.add("hidden"),o.classList.remove("open");else if("series-selector-back-icon"===t.className){var r=d.dom.$(".series-selector-content",s.el());for(d.dom.$(".series-selector-cross-icon",s.el()),t.className="series-selector-cross-icon";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var i=s.createSeasonLister();for(d.dom.appendContent(r,i),d.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var a=N(p());t.appendChild(a)}};var i=d.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),a=d.dom.createEl("div",{className:"series-selector-content"}),n=this.createSeasonLister();d.dom.appendContent(a,n),d.dom.appendContent(r,t),d.dom.appendContent(r,i),d.dom.appendContent(e,r),d.dom.appendContent(e,a),x(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;E(this.playerId);for(var s=y(),o=d.dom.createEl("div",{className:"season-container"}),r=function(r){var t,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(r));var a=document.createElement("div");a.className="season - ".concat(r),a.textContent=null===(t=s[r])||void 0===t?void 0:t.title;var n=d.dom.createEl("input",{className:"radio - ".concat(r),id:"season-".concat(r),name:"season-radio"});n.setAttribute("type","radio"),e.selectedSeason==r&&(n.checked=!0),n.onclick=function(s){h.set(r),e.showSeasonDetails(r)},d.dom.appendContent(i,n),d.dom.appendContent(i,a),d.dom.appendContent(o,i)},t=0;t<s.length;t++)r(t);return o}},{key:"getSeasonDetailsContainer",value:function(e,o){var r=this;e=l(e).call(e,(function(e){var s,o,t,i,a,n,l,c,d;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:(null==e||null===(o=e.gist)||void 0===o||null===(t=o.imageGist)||void 0===t?void 0:t.r16x9)||(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(n=a.appcmsMain)||void 0===n||null===(l=n.images)||void 0===l?void 0:l.placeholderCover),watchedPercentage:(null==r||null===(c=r.watchMap)||void 0===c||null===(d=c.get(null==e?void 0:e.id))||void 0===d?void 0:d.p)||0}}));for(var t=function(t){var i,a,n,l,c,m=d.dom.createEl("div",{className:"series-container"}),p=d.dom.createEl("div",{className:"series-section-data",index:t,innerHTML:"".concat((null===(i=e[t])||void 0===i?void 0:i.title)||"")});d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(a=e[t])||void 0===a?void 0:a.title)||"")}),d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[t].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var u=d.dom.createEl("div",{className:"series-section-image"}),j=(null===(n=e[t])||void 0===n?void 0:n.description)||"";(null===(l=j)||void 0===l?void 0:l.length)>170&&(j=j.substr(0,170)+"..."),d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(j||"")});var v=d.dom.createEl("img",{className:"series-image"});v.src="".concat(k(null===(c=e[t])||void 0===c?void 0:c.img)),v.alt="Episode ".concat(t+1),d.dom.appendContent(u,v),d.dom.appendContent(m,u),d.dom.appendContent(m,p),d.dom.appendContent(o,m),m.onclick=function(s){var o;s.stopPropagation(),b(null===(o=e[t])||void 0===o?void 0:o.id),f(r.playerId,e[t].id).then((function(e){null!=r&&r.cb&&r.cb(e)})).catch((function(e){null!=r&&r.cb&&r.cb(e)}))},p.onclick=function(e){var o,r,t,i=document.getElementsByClassName("series-selector-content")[0].childNodes,a=(i=s(i))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=a&&null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(m.style.backgroundColor="#0000007d",null==a||null===(r=a.classList)||void 0===r||r.remove("hidden")):(null==a||null===(t=a.classList)||void 0===t||t.add("hidden"),m.style.backgroundColor="unset")}},i=0;i<e.length;i++)t(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=d.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=y()[e].episodes;this.getSeasonDetailsContainer(o,s);var r=d.dom.$(".series-selector-cross-icon",this.el());for(r.className="series-selector-back-icon";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var t=N(u());r.appendChild(t),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),n}();export{M as default};
|
|
@@ -1 +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 o from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import r from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";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 j,d as C,p as E}from"./skin-43755201.js";import{g as N}from"./renditions-
|
|
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 o from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import r from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";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 j,d as C,p as E}from"./skin-43755201.js";import{g as N}from"./renditions-7f946d48.js";import{playSelectedResolution as k}from"./resolution-de9dd282.js";import{g as x}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"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"./browser-000da9e7.js";import"core-js/modules/es.regexp.exec.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";function I(t){var a=L();return function(){var n,o=r(t);if(a){var l=r(this).constructor;n=e(o,arguments,l)}else n=o.apply(this,arguments);return i(this,n)}}function L(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}var B=m.getComponent("Component"),M=function(e){o(r,B);var i=I(r);function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,r),(t=i.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 o=window.getComputedStyle(n,null).getPropertyValue("height");a.style.height="".concat(o),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 o=m.dom.createEl("div",{className:"settings-selector-title",innerHTML:x("settingsTitle")||"Settings"}),i=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,o),m.dom.appendContent(e,a),m.dom.appendContent(e,i),m.dom.appendContent(i,r),y(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=j(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:x("audioLanguageText")||"Audio Language"});m.dom.appendContent(a,n);for(var o=function(e){var n,o=document.createElement("label");o.className="audio-language-holder",o.setAttribute("for","language-radio-".concat(e));var i=document.createElement("div");i.className="audio - ".concat(e),i.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(o,r),m.dom.appendContent(o,i),m.dom.appendContent(a,o)},i=0;i<t.length;i++)o(i);return a}}},{key:"createVideoQualityContainer",value:function(){var e,a,n=this,o=m.dom.createEl("div",{className:"video-quality-container"}),i=m.dom.createEl("div",{className:"video-quality-container-title",innerHTML:x("videoQualityText")||"Video Quality"});m.dom.appendContent(o,i);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,i,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])?x("enhancedBitrateLabel")||"Enhanced Bitrate":""),b=document.createTextNode(v);if(c.appendChild(b),d.appendChild(p),(null==r||null===(i=r[e])||void 0===i?void 0:i.height)>=720)for(var f=C("<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 j=E(h());y.appendChild(j),s.appendChild(g),s.appendChild(y),s.appendChild(d),m.dom.appendContent(l,s),l.appendChild(c),m.dom.appendContent(o,l)},s=0;s<r.length;s++)l(s);return o}}]),r}();export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{g as e}from"./skin-43755201.js";import{f as r,n as s}from"./features-
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{g as e}from"./skin-43755201.js";import{f as r,n as s}from"./features-84286390.js";import{g as o}from"./renditions-7f946d48.js";import{r as t}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-979547e7.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";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"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.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"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";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,m){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(s,i){e(s).on("loadeddata",(function(){var e;(null===(e=o(s))||void 0===e?void 0:e.length)>0&&r(s,i),null!=i&&i.disableCaptions&&t(s)}))}(i,m),function(r,o){var t=e(r);t.controls(!1),s(r)}(i)}export{i as initialiseSkin};
|