@viewlift/player-backup 2.0.161-backup → 2.0.163-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/cjs/{autoNextVideo-2238e469.js → autoNextVideo-6514c1af.js} +1 -1
  2. package/cjs/bundle.css +4 -4
  3. package/cjs/{features-99e1bcb4.js → features-77160208.js} +1 -1
  4. package/cjs/generic-15a63f46.js +1 -0
  5. package/cjs/{index-c2fa4876.js → index-0fcf7525.js} +1 -1
  6. package/cjs/{index-9400dc19.js → index-cc30402b.js} +1 -1
  7. package/cjs/index.js +1 -1
  8. package/cjs/{multicamv2-8e500de9.js → multicamv2-67a67a4a.js} +1 -1
  9. package/cjs/{multicamv2-824e4d3c.js → multicamv2-adf31491.js} +1 -1
  10. package/cjs/{nextEpisodeButton-7eb4a747.js → nextEpisodeButton-0c4b0b10.js} +1 -1
  11. package/cjs/{playlist-dee90f58.js → playlist-df102886.js} +1 -1
  12. package/cjs/{series-398271cc.js → series-1c051e73.js} +1 -1
  13. package/cjs/{series-v2-e3ae68f9.js → series-v2-1faec3a8.js} +1 -1
  14. package/cjs/{series-v2-afed3a2d.js → series-v2-d31c3b84.js} +1 -1
  15. package/cjs/{skin-17521808.js → skin-0139c5bd.js} +1 -1
  16. package/cjs/{skin-ef1b7ef3.js → skin-9312e234.js} +1 -1
  17. package/cjs/{skin-4c60b37d.js → skin-9d2e6528.js} +1 -1
  18. package/cjs/{skin-388b4527.js → skin-b24b04e2.js} +1 -1
  19. package/cjs/{skin-e2017f64.js → skin-b3890417.js} +1 -1
  20. package/cjs/{skin-cae6cd04.js → skin-f5be2a94.js} +1 -1
  21. package/cjs/{skin-dc5fe07d.js → skin-f6aec43f.js} +1 -1
  22. package/cjs/{util-f0e2c1f3.js → util-30c1868a.js} +1 -1
  23. package/cjs/{videoSelector-95115023.js → videoSelector-70c7a9d1.js} +1 -1
  24. package/cjs/{videoSelector-5241a0e8.js → videoSelector-8973b46e.js} +1 -1
  25. package/esm/{autoNextVideo-819b852a.js → autoNextVideo-2215ae9d.js} +1 -1
  26. package/esm/bundle.css +4 -4
  27. package/esm/{features-f29c23d0.js → features-fc64ebca.js} +1 -1
  28. package/esm/generic-b7b97306.js +1 -0
  29. package/esm/{index-4941dea6.js → index-504d3022.js} +1 -1
  30. package/esm/{index-5ea8efb2.js → index-bae1d9f5.js} +1 -1
  31. package/esm/index.js +1 -1
  32. package/esm/{multicamv2-e51c7c75.js → multicamv2-04ab92e7.js} +1 -1
  33. package/esm/{multicamv2-913b47ec.js → multicamv2-8e99826a.js} +1 -1
  34. package/esm/{nextEpisodeButton-11d49b89.js → nextEpisodeButton-47e70941.js} +1 -1
  35. package/esm/{playlist-b3e5cce2.js → playlist-55e014e8.js} +1 -1
  36. package/esm/{series-436edfc5.js → series-4fa341f3.js} +1 -1
  37. package/esm/{series-v2-8452f994.js → series-v2-03a02ce6.js} +1 -1
  38. package/esm/{series-v2-a5a411e1.js → series-v2-350f682d.js} +1 -1
  39. package/esm/{skin-e38e07b3.js → skin-1080dbdb.js} +1 -1
  40. package/esm/{skin-26697cee.js → skin-572cebb3.js} +1 -1
  41. package/esm/{skin-405362c8.js → skin-93518927.js} +1 -1
  42. package/esm/{skin-90df99f4.js → skin-98daca42.js} +1 -1
  43. package/esm/{skin-d9edc948.js → skin-a5c03365.js} +1 -1
  44. package/esm/{skin-2c54dc81.js → skin-c32c1cab.js} +1 -1
  45. package/esm/{skin-318b7ea8.js → skin-fb9ba1cf.js} +1 -1
  46. package/esm/{util-5dffd4ab.js → util-f0265a95.js} +1 -1
  47. package/esm/{videoSelector-0e1156eb.js → videoSelector-4088efa8.js} +1 -1
  48. package/esm/{videoSelector-11e66cf7.js → videoSelector-5066272e.js} +1 -1
  49. package/package.json +1 -1
  50. package/cjs/generic-34d67718.js +0 -1
  51. package/esm/generic-a84d8abd.js +0 -1
@@ -1 +1 @@
1
- "use strict";var e,t,n,r,i=require("@babel/runtime/helpers/toConsumableArray"),a=require("./player_instance-fcf6a8fb.js"),o=require("./currentVideoInfo-31d70bec.js"),l=require("./autoNextVideo-2238e469.js"),u=require("./icons-2609dbe4.js"),s=require("./skin-516012d7.js"),c=require("@babel/runtime/helpers/typeof"),d=require("video.js"),p=require("@babel/runtime/helpers/asyncToGenerator"),v=require("@babel/runtime/regenerator"),m=require("@babel/runtime/helpers/defineProperty"),f=require("@babel/runtime/helpers/slicedToArray"),g=[],h=!1,b=function(e,t){var n=a.getPlayer(e),r=Math.floor(n.currentTime());if(Math.floor(n.duration())!=r){n.pause(e);var i=o.getVideoIdx();l.switchToNext(i,e,g)}};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},t=function e(){var t,n,r,i,a;for(r in n=(t=Array.prototype.slice.call(arguments)).shift()||{},t)for(a in i=t[r])i.hasOwnProperty(a)&&("object"===c(i[a])?n[a]=e(n[a],i[a]):n[a]=i[a]);return n},n=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},r=function e(t){return"HTML"!==t.nodeName&&"static"===n(t)("position")?e(t.offsetParent):t},d.registerPlugin("thumbnails",(function(i){var a,o,l,u,s,c,d,p;function v(){document.removeEventListener("pointermove",d),document.removeEventListener("pointerup",v),p()}o=t({},e,i),u=this,function(){var e,t,n;-1!==navigator.userAgent.toLowerCase().indexOf("android")&&(t=function(){e.addClass("fake-active")},n=function(){e.removeClass("fake-active")},(e=u.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(a=document.createElement("div")).className="vjs-thumbnail-holder",l=document.createElement("img"),a.appendChild(l),l.src=o[0].src,l.className="vjs-thumbnail",t(l.style,o[0].style),l.style.left||l.style.right||(l.onload=function(){l.style.left=-l.naturalWidth/2+"px"}),c=u.duration(),u.on("durationchange",(function(e){c=u.duration()})),u.on("loadedmetadata",(function(e){c=u.duration()})),(s=u.controlBar.progressControl).el().appendChild(a),d=function(e){var i,u,d,p,v,m,f,g,h,b;for(u in d=0,h=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,f=((b=r(s.el()).getBoundingClientRect()).width||b.right)+h,m=e.pageX,e.changedTouches&&(m=e.changedTouches[0].pageX),p=m||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,p-=r(s.el()).getBoundingClientRect().left+h,i=Math.floor((p-s.el().offsetLeft)/s.width()*c),o)i>u&&(d=Math.max(d,u));(v=o[d]).src&&l.src!=v.src&&(l.src=v.src),v.style&&l.style!=v.style&&t(l.style,v.style),p+(g=function(e,t){var r;return t?parseFloat(t):"auto"!==(r=n(e)("clip"))&&"inherit"!==r&&4===(r=r.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(r[1])-parseFloat(r[3]):0}(l,v.width||o[0].width)/2)>f?p-=p+g-f:p<g&&(p=g),a.style.left=p+"px"},s.on("mousemove",d),s.on("touchmove",d),s.on("pointerdown",(function(e){document.addEventListener("pointermove",d),document.addEventListener("pointerup",v)})),p=function(e){a.style.left="-1000px"},s.on("mouseout",p),s.on("touchcancel",p),s.on("touchend",p),u.on("userinactive",p)}));var w="my-player";function E(e){var t=e.split("\n"),n=[];return t.forEach((function(e){if((e=e.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};t.forEach((function(e){e.includes("RESOLUTION")&&(r.resolution=e.split("=")[1]),e.includes("URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))})),n.push(r)}})),n}function A(){return(A=p(v.mark((function e(t){var n,r,i,a,o,l,u,s,c,d,p,m,g,h,b,y,x,w,E,A,N,k,j,C;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._tiles){e.next=2;break}return e.abrupt("return",t._tiles);case 2:return e.prev=2,e.next=5,fetch(t.uri,{mode:"cors"});case 5:return n=e.sent,e.next=8,n.blob();case 8:return r=e.sent,e.next=11,createImageBitmap(r);case 11:for(i=e.sent,a=t.layout.split("x").map(Number),o=f(a,2),l=o[0],u=o[1],s=i.width/u,c=i.height/l,d=[],p=0;p<l;p++)for(m=0;m<u;m++)(g=document.createElement("canvas")).width=s,g.height=c,g.getContext("2d").drawImage(i,m*s,p*c,s,c,0,0,s,c),h=g.toDataURL("image/png"),d.push({uri:h,duration:t.duration}),t._tiles=d;return e.abrupt("return",d);case 20:for(e.prev=20,e.t0=e.catch(2),b=t.layout.split("x").map(Number),y=f(b,2),x=y[0],w=y[1],E=[],A=0;A<x*w;A++)E.push({uri:null===(N=window)||void 0===N||null===(k=N.app_data)||void 0===k||null===(j=k.appcmsMain)||void 0===j||null===(C=j.images)||void 0===C?void 0:C.placeholderCover,duration:t.duration});return e.abrupt("return",E);case 26:case"end":return e.stop()}}),e,null,[[2,20]])})))).apply(this,arguments)}function N(e,t){return k.apply(this,arguments)}function k(){return(k=p(v.mark((function e(t,n){var r,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w=n,e.prev=1,e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.text();case 7:return i=e.sent,e.abrupt("return",E(i));case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching the M3U8 manifest:",e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})))).apply(this,arguments)}function j(e,t,n){var r=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),i=a.getPlayer(w);if(r&&i){var o=r.getBoundingClientRect(),l=(e.clientX-o.left)/o.width,u=function(e,t){var n,r;if(!t||0===t.length)return null;var i=0,a=t.length-1;for(;i<=a;){var o=Math.floor((i+a)/2),l=t[o];if(l===e)return l;l<e?i=o+1:a=o-1}var u=null!==(n=t[i])&&void 0!==n?n:1/0,s=null!==(r=t[a])&&void 0!==r?r:-1/0;return Math.abs(u-e)<Math.abs(s-e)?u:s}(Math.round(l*i.duration()),n),s=t[u];s&&!s.loading&&(s.loading=!0,function(e){return A.apply(this,arguments)}(s).then((function(e){var t=e[s.tileIndex],n=document.querySelector(".vjs-thumbnail-holder img");n&&t.uri&&(n.src=t.uri),s.loading=!1,s.src=t.uri})))}}function C(e){return I.apply(this,arguments)}function I(){return(I=p(v.mark((function e(t){var n,r,i,a;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.forEach((function(e,t){for(var r=e.layout.split("x").map(Number),i=f(r,2),a=i[0]*i[1],o=e.duration,l=0;l<a;l++){var u,s=Math.round((t*a+l)*o);n[s]=x(x({},e),{},{duration:e.duration,tileIndex:l,loading:!1,style:(u={left:"-60px",height:"85px",width:"130px"},m(u,"left","-60px"),m(u,"border","1px solid transparent"),m(u,"borderRadius","4px"),u)})}})),r=Object.keys(n).map(Number).sort((function(e,t){return e-t})),null==(i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||i.addEventListener("mousemove",s.throttle((function(e){return j(e,n,r)}),500)),null==(a=document.querySelector(".vjs-progress-control.vjs-control"))||a.addEventListener("pointerdown",(function(e){document.addEventListener("pointermove",s.throttle((function(e){return j(e,n,r)}),500))})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var T=function(){var e=p(v.mark((function e(t,n){var r,i,a,o,l,u,s,c;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return r=e.sent,e.next=5,r.text();case 5:i=e.sent,a=i.split("\n").map((function(e){return e.trim()})),o=[],l=null,u=0;case 10:if(!(u<(null==a?void 0:a.length))){e.next=27;break}if(!(s=a[u]).startsWith("#EXT-X-TILES")){e.next=19;break}l={resolution:null,duration:null,uri:null,layout:null},c=s.split(":")[1]||"",c.split(",").forEach((function(e){var t=e.split("="),n=f(t,2),r=n[0],i=n[1];r&&i&&(l[r.trim().toLowerCase()]=i.trim())})),e.next=24;break;case 19:if(!s.startsWith("#EXTINF")){e.next=23;break}return e.abrupt("continue",24);case 23:(s.includes("jpg")||s.includes("png")||s.includes("jpeg"))&&(l.uri=s.includes("http")?s:t+s,o.push(l),l=null);case 24:u++,e.next=10;break;case 27:return e.abrupt("return",o);case 28:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function P(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function O(e,t){return S.apply(this,arguments)}function S(){return(S=p(v.mark((function e(t,n){var r,i,l,u,s,c,d,p,m,g,h,b,y,x,E,A,N,k,j,C,I,T,O,S,M,q,R,D,$,X,V,F,U,_,G,W,z,H,Q,Y,J,K,Z,ee,te,ne,re,ie,ae,oe,le,ue,se,ce,de,pe,ve,me;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w=n,r=a.getPlayer(n),i=t.split("/"),l=i.findIndex((function(e){return"dash"===e.toLowerCase()})),u=P(-1!==l?i.slice(0,l+1).join("/"):new URL(t).origin),e.prev=5,e.next=8,fetch(t);case 8:return p=e.sent,e.next=11,p.text();case 11:m=e.sent,g=new DOMParser,h=g.parseFromString(m,"application/xml"),b=(null==r?void 0:r.duration())||(null===(s=o.getCurrentVideo())||void 0===s||null===(c=s.video)||void 0===c?void 0:c.runtime),y=(null==h||null===(d=h.querySelector("MPD > BaseURL"))||void 0===d?void 0:d.textContent)||u+"/",x=h.getElementsByTagName("AdaptationSet"),E=0;case 18:if(!(E<x.length)){e.next=72;break}if(("image"!==(A=x[E]).getAttribute("contentType")||"image/png"!==A.getAttribute("mimeType"))&&"image/jpeg"!==A.getAttribute("mimeType")){e.next=69;break}if(k=A.getElementsByTagName("SegmentTemplate")[0],j=null===(N=k.getElementsByTagName("SegmentTimeline"))||void 0===N?void 0:N[0],!k||!j){e.next=48;break}if(T=j.getElementsByTagName("S"),O=parseInt(null===(C=T[0])||void 0===C?void 0:C.getAttribute("t")),S=parseInt(null===(I=T[0])||void 0===I?void 0:I.getAttribute("d")),M=A.getElementsByTagName("Representation")[0],q=M.getElementsByTagName("EssentialProperty")[0],R=q.getAttribute("value"),D=null==R?void 0:R.split("x"),$=f(D,2),X=$[0],V=$[1],!k){e.next=46;break}if(k.getAttribute("media"),F=k.getAttribute("timescale"),U=(F?S/F:S)/(X*V),_=M.getAttribute("id"),G=Math.round(b/U),W=Math.ceil(G/(X*V)),z=k.getAttribute("media"),parseInt(k.getAttribute("startNumber")),!isNaN(parseInt(W))){e.next=43;break}return e.abrupt("return");case 43:for(H=[],E=0;E<W;E++)Y="/"==(Q=z)[0]?new URL(u).origin:u+"/",H.push({duration:U,layout:R,uri:Y+Q.replace("$Time$",O+E*S).replace("$RepresentationID$",_)});return e.abrupt("return",H);case 46:e.next=69;break;case 48:if(J=A.getElementsByTagName("Representation")[0],K=J.getElementsByTagName("EssentialProperty")[0],Z=K.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=f(ee,2),ne=te[0],re=te[1],!k){e.next=69;break}if(k.getAttribute("media"),ie=k.getAttribute("duration"),ae=k.getAttribute("timescale"),oe=(ae?ie/ae:ie)/(ne*re),le=J.getAttribute("id"),ue=Math.round(b/oe),se=Math.ceil(ue/(ne*re)),ce=k.getAttribute("media"),de=parseInt(k.getAttribute("startNumber"))||0,!isNaN(parseInt(se))){e.next=65;break}return e.abrupt("return");case 65:for(pe=[],ve=B(ce),E=0;E<se;E++)me=ve?L(ve,E+de):ce,pe.push({duration:oe,layout:Z,uri:y+me.replace("$Number$",E+de).replace("$RepresentationID$",le)});return e.abrupt("return",pe);case 69:E++,e.next=18;break;case 72:return console.log("No trickplay segment found."),e.abrupt("return",null);case 76:e.prev=76,e.t0=e.catch(5),console.error("Error fetching or parsing MPD:",e.t0);case 79:case"end":return e.stop()}}),e,null,[[5,76]])})))).apply(this,arguments)}function B(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function L(e,t){var n=e.match(/%0(\d+)d/);if(!n)return e;var r=parseInt(n[1],10),i=String(t).padStart(r,"0");return e.replace(/\$Number%0\d+d\$/,i)}function M(){return(M=p(v.mark((function e(t){var n,r,i,o,l,u,s,c,d,p,m,f,g,h,b,y;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=a.getPlayer(t),s=u.currentSource(),c=s.src,c=null!==(n=c)&&void 0!==n&&n.includes("blob")?null===(r=window)||void 0===r||null===(i=r.player)||void 0===i?void 0:i.getSource():c,null===(o=c)||void 0===o||!o.includes("m3u8")){e.next=19;break}return e.next=6,N(c,t);case 6:if(!((null==(d=e.sent)?void 0:d.length)>0)){e.next=17;break}return p=(null==d?void 0:d[0])||null,m=p.uri,f=c.substring(0,c.lastIndexOf("/"))+"/",e.next=12,T(f,m);case 12:return g=e.sent,e.next=15,C(g);case 15:h=e.sent,u.thumbnails(h);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!l.includes("mpd")){e.next=28;break}return e.next=22,O(c,t);case 22:if(!((null==(b=e.sent)?void 0:b.length)>0)){e.next=28;break}return e.next=26,C(b);case 26:y=e.sent,u.thumbnails(y);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}exports.addNextEpPreview=function(e,t){var n;if(h=!1,null!=t&&null!==(n=t.series)&&void 0!==n&&n.enable){var r;g=[];var l=o.getCurrentSeries();null==l||l.map((function(e){var t;return(t=g).push.apply(t,i(e.episodes))})),null==t||null===(r=t.series)||void 0===r||r.cb}else{var c,d;g=(null==t||null===(c=t.relatedVideos)||void 0===c?void 0:c.content)||[],null==t||null===(d=t.relatedVideos)||void 0===d||d.cb}var p=a.getPlayer(e);p.on("timeupdate",(function(){var e,t;if(!h){var n=Math.floor(p.currentTime()),r=p.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];r-n<=10&&o.getVideoIdx()<=(null===(t=g)||void 0===t?void 0:t.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")}}));var v,m=g.filter((function(e,t){return t==o.getVideoIdx()}));if((null==m?void 0:m.length)>0)if(null!==(v=document.getElementsByClassName("next-ep-preview"))&&void 0!==v&&v[0]){var f,y,x,w,E,A,N,k,j,C,I,T;(null===(f=document.getElementsByClassName("next-ep-preview"))||void 0===f?void 0:f[0]).style.visibility="hidden";var P=null===(y=document.getElementsByClassName("next-ep-title"))||void 0===y?void 0:y[0],O=null===(x=document.getElementsByClassName("next-ep-img"))||void 0===x?void 0:x[0],S=null===(w=document.getElementsByClassName("next-ep-content"))||void 0===w?void 0:w[0],B=null===(E=m[0])||void 0===E?void 0:E.title;(null===(A=B)||void 0===A?void 0:A.length)>60&&(B=B.substr(0,60)+"..."),P.textContent="".concat(B),O.src=(null===(N=m[0])||void 0===N||null===(k=N.gist)||void 0===k||null===(j=k.imageGist)||void 0===j?void 0:j.r16x9)||(null==m||null===(C=m[0])||void 0===C?void 0:C.img)||(null===(I=window)||void 0===I||null===(T=I.customData)||void 0===T?void 0:T.fallbackImage),S.onclick=function(){return b(e)}}else{var L,M,q,R,D,$,X,V,F=document.createElement("div");F.className="next-ep-preview",F.style.visibility="hidden",document.getElementById(e).append(F);var U=document.createElement("div");U.className="next-heading-wrapper";var _=document.createElement("div");_.className="next-ep-header",_.textContent="Next up";var G=document.createElement("div");G.className="next-ep-close",G.onclick=function(){F.style.visibility="hidden",h=!0},G.appendChild(s.parseSvgString(u.crossIconSvg())),U.append(_),U.append(G);var W=null===(L=m[0])||void 0===L?void 0:L.title,z=document.createElement("img");z.className="next-ep-img",z.src=(null===(M=m[0])||void 0===M||null===(q=M.gist)||void 0===q||null===(R=q.imageGist)||void 0===R?void 0:R.r16x9)||(null==m||null===(D=m[0])||void 0===D?void 0:D.img)||(null===($=window)||void 0===$||null===(X=$.customData)||void 0===X?void 0:X.fallbackImage);var H=document.createElement("div");H.className="next-ep-title",(null===(V=W)||void 0===V?void 0:V.length)>60&&(W=W.substr(0,60)+"..."),H.textContent="".concat(W);var Q=document.createElement("div");Q.className="next-ep-content",Q.append(z),Q.append(H),Q.onclick=s.debounce((function(){null==F||F.remove(),h=!0,b(e)}),400),F.append(U),F.append(Q)}},exports.addTVProviderImage=function(e,t){var n=a.getPlayer(e),r=null==t?void 0:t.tvProviderLogoUrl;if(r){var i=document.createElement("div");i.className="tvProviderImage";var o=document.createElement("img");o.src="".concat(r),o.alt="Provider Image",i.append(o),n.el().appendChild(i),n.on("useractive",(function(){i.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||i.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?i.style.top="3.2rem":i.style.top="1rem"}))}},exports.initiateTrickplay=function(e){return M.apply(this,arguments)};
1
+ "use strict";var e,t,n,r,i=require("@babel/runtime/helpers/toConsumableArray"),a=require("./player_instance-fcf6a8fb.js"),o=require("./currentVideoInfo-31d70bec.js"),l=require("./autoNextVideo-6514c1af.js"),u=require("./icons-2609dbe4.js"),s=require("./skin-516012d7.js"),c=require("@babel/runtime/helpers/typeof"),d=require("video.js"),p=require("@babel/runtime/helpers/asyncToGenerator"),v=require("@babel/runtime/regenerator"),m=require("@babel/runtime/helpers/defineProperty"),f=require("@babel/runtime/helpers/slicedToArray"),g=[],h=!1,b=function(e,t){var n=a.getPlayer(e),r=Math.floor(n.currentTime());if(Math.floor(n.duration())!=r){n.pause(e);var i=o.getVideoIdx();l.switchToNext(i,e,g)}};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},t=function e(){var t,n,r,i,a;for(r in n=(t=Array.prototype.slice.call(arguments)).shift()||{},t)for(a in i=t[r])i.hasOwnProperty(a)&&("object"===c(i[a])?n[a]=e(n[a],i[a]):n[a]=i[a]);return n},n=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},r=function e(t){return"HTML"!==t.nodeName&&"static"===n(t)("position")?e(t.offsetParent):t},d.registerPlugin("thumbnails",(function(i){var a,o,l,u,s,c,d,p;function v(){document.removeEventListener("pointermove",d),document.removeEventListener("pointerup",v),p()}o=t({},e,i),u=this,function(){var e,t,n;-1!==navigator.userAgent.toLowerCase().indexOf("android")&&(t=function(){e.addClass("fake-active")},n=function(){e.removeClass("fake-active")},(e=u.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(a=document.createElement("div")).className="vjs-thumbnail-holder",l=document.createElement("img"),a.appendChild(l),l.src=o[0].src,l.className="vjs-thumbnail",t(l.style,o[0].style),l.style.left||l.style.right||(l.onload=function(){l.style.left=-l.naturalWidth/2+"px"}),c=u.duration(),u.on("durationchange",(function(e){c=u.duration()})),u.on("loadedmetadata",(function(e){c=u.duration()})),(s=u.controlBar.progressControl).el().appendChild(a),d=function(e){var i,u,d,p,v,m,f,g,h,b;for(u in d=0,h=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,f=((b=r(s.el()).getBoundingClientRect()).width||b.right)+h,m=e.pageX,e.changedTouches&&(m=e.changedTouches[0].pageX),p=m||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,p-=r(s.el()).getBoundingClientRect().left+h,i=Math.floor((p-s.el().offsetLeft)/s.width()*c),o)i>u&&(d=Math.max(d,u));(v=o[d]).src&&l.src!=v.src&&(l.src=v.src),v.style&&l.style!=v.style&&t(l.style,v.style),p+(g=function(e,t){var r;return t?parseFloat(t):"auto"!==(r=n(e)("clip"))&&"inherit"!==r&&4===(r=r.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(r[1])-parseFloat(r[3]):0}(l,v.width||o[0].width)/2)>f?p-=p+g-f:p<g&&(p=g),a.style.left=p+"px"},s.on("mousemove",d),s.on("touchmove",d),s.on("pointerdown",(function(e){document.addEventListener("pointermove",d),document.addEventListener("pointerup",v)})),p=function(e){a.style.left="-1000px"},s.on("mouseout",p),s.on("touchcancel",p),s.on("touchend",p),u.on("userinactive",p)}));var w="my-player";function E(e){var t=e.split("\n"),n=[];return t.forEach((function(e){if((e=e.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};t.forEach((function(e){e.includes("RESOLUTION")&&(r.resolution=e.split("=")[1]),e.includes("URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))})),n.push(r)}})),n}function A(){return(A=p(v.mark((function e(t){var n,r,i,a,o,l,u,s,c,d,p,m,g,h,b,y,x,w,E,A,N,k,j,C;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._tiles){e.next=2;break}return e.abrupt("return",t._tiles);case 2:return e.prev=2,e.next=5,fetch(t.uri,{mode:"cors"});case 5:return n=e.sent,e.next=8,n.blob();case 8:return r=e.sent,e.next=11,createImageBitmap(r);case 11:for(i=e.sent,a=t.layout.split("x").map(Number),o=f(a,2),l=o[0],u=o[1],s=i.width/u,c=i.height/l,d=[],p=0;p<l;p++)for(m=0;m<u;m++)(g=document.createElement("canvas")).width=s,g.height=c,g.getContext("2d").drawImage(i,m*s,p*c,s,c,0,0,s,c),h=g.toDataURL("image/png"),d.push({uri:h,duration:t.duration}),t._tiles=d;return e.abrupt("return",d);case 20:for(e.prev=20,e.t0=e.catch(2),b=t.layout.split("x").map(Number),y=f(b,2),x=y[0],w=y[1],E=[],A=0;A<x*w;A++)E.push({uri:null===(N=window)||void 0===N||null===(k=N.app_data)||void 0===k||null===(j=k.appcmsMain)||void 0===j||null===(C=j.images)||void 0===C?void 0:C.placeholderCover,duration:t.duration});return e.abrupt("return",E);case 26:case"end":return e.stop()}}),e,null,[[2,20]])})))).apply(this,arguments)}function N(e,t){return k.apply(this,arguments)}function k(){return(k=p(v.mark((function e(t,n){var r,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w=n,e.prev=1,e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.text();case 7:return i=e.sent,e.abrupt("return",E(i));case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching the M3U8 manifest:",e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})))).apply(this,arguments)}function j(e,t,n){var r=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),i=a.getPlayer(w);if(r&&i){var o=r.getBoundingClientRect(),l=(e.clientX-o.left)/o.width,u=function(e,t){var n,r;if(!t||0===t.length)return null;var i=0,a=t.length-1;for(;i<=a;){var o=Math.floor((i+a)/2),l=t[o];if(l===e)return l;l<e?i=o+1:a=o-1}var u=null!==(n=t[i])&&void 0!==n?n:1/0,s=null!==(r=t[a])&&void 0!==r?r:-1/0;return Math.abs(u-e)<Math.abs(s-e)?u:s}(Math.round(l*i.duration()),n),s=t[u];s&&!s.loading&&(s.loading=!0,function(e){return A.apply(this,arguments)}(s).then((function(e){var t=e[s.tileIndex],n=document.querySelector(".vjs-thumbnail-holder img");n&&t.uri&&(n.src=t.uri),s.loading=!1,s.src=t.uri})))}}function C(e){return I.apply(this,arguments)}function I(){return(I=p(v.mark((function e(t){var n,r,i,a;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.forEach((function(e,t){for(var r=e.layout.split("x").map(Number),i=f(r,2),a=i[0]*i[1],o=e.duration,l=0;l<a;l++){var u,s=Math.round((t*a+l)*o);n[s]=x(x({},e),{},{duration:e.duration,tileIndex:l,loading:!1,style:(u={left:"-60px",height:"85px",width:"130px"},m(u,"left","-60px"),m(u,"border","1px solid transparent"),m(u,"borderRadius","4px"),u)})}})),r=Object.keys(n).map(Number).sort((function(e,t){return e-t})),null==(i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||i.addEventListener("mousemove",s.throttle((function(e){return j(e,n,r)}),500)),null==(a=document.querySelector(".vjs-progress-control.vjs-control"))||a.addEventListener("pointerdown",(function(e){document.addEventListener("pointermove",s.throttle((function(e){return j(e,n,r)}),500))})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var T=function(){var e=p(v.mark((function e(t,n){var r,i,a,o,l,u,s,c;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return r=e.sent,e.next=5,r.text();case 5:i=e.sent,a=i.split("\n").map((function(e){return e.trim()})),o=[],l=null,u=0;case 10:if(!(u<(null==a?void 0:a.length))){e.next=27;break}if(!(s=a[u]).startsWith("#EXT-X-TILES")){e.next=19;break}l={resolution:null,duration:null,uri:null,layout:null},c=s.split(":")[1]||"",c.split(",").forEach((function(e){var t=e.split("="),n=f(t,2),r=n[0],i=n[1];r&&i&&(l[r.trim().toLowerCase()]=i.trim())})),e.next=24;break;case 19:if(!s.startsWith("#EXTINF")){e.next=23;break}return e.abrupt("continue",24);case 23:(s.includes("jpg")||s.includes("png")||s.includes("jpeg"))&&(l.uri=s.includes("http")?s:t+s,o.push(l),l=null);case 24:u++,e.next=10;break;case 27:return e.abrupt("return",o);case 28:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function P(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function O(e,t){return S.apply(this,arguments)}function S(){return(S=p(v.mark((function e(t,n){var r,i,l,u,s,c,d,p,m,g,h,b,y,x,E,A,N,k,j,C,I,T,O,S,M,q,R,D,$,X,V,F,U,_,G,W,z,H,Q,Y,J,K,Z,ee,te,ne,re,ie,ae,oe,le,ue,se,ce,de,pe,ve,me;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w=n,r=a.getPlayer(n),i=t.split("/"),l=i.findIndex((function(e){return"dash"===e.toLowerCase()})),u=P(-1!==l?i.slice(0,l+1).join("/"):new URL(t).origin),e.prev=5,e.next=8,fetch(t);case 8:return p=e.sent,e.next=11,p.text();case 11:m=e.sent,g=new DOMParser,h=g.parseFromString(m,"application/xml"),b=(null==r?void 0:r.duration())||(null===(s=o.getCurrentVideo())||void 0===s||null===(c=s.video)||void 0===c?void 0:c.runtime),y=(null==h||null===(d=h.querySelector("MPD > BaseURL"))||void 0===d?void 0:d.textContent)||u+"/",x=h.getElementsByTagName("AdaptationSet"),E=0;case 18:if(!(E<x.length)){e.next=72;break}if(("image"!==(A=x[E]).getAttribute("contentType")||"image/png"!==A.getAttribute("mimeType"))&&"image/jpeg"!==A.getAttribute("mimeType")){e.next=69;break}if(k=A.getElementsByTagName("SegmentTemplate")[0],j=null===(N=k.getElementsByTagName("SegmentTimeline"))||void 0===N?void 0:N[0],!k||!j){e.next=48;break}if(T=j.getElementsByTagName("S"),O=parseInt(null===(C=T[0])||void 0===C?void 0:C.getAttribute("t")),S=parseInt(null===(I=T[0])||void 0===I?void 0:I.getAttribute("d")),M=A.getElementsByTagName("Representation")[0],q=M.getElementsByTagName("EssentialProperty")[0],R=q.getAttribute("value"),D=null==R?void 0:R.split("x"),$=f(D,2),X=$[0],V=$[1],!k){e.next=46;break}if(k.getAttribute("media"),F=k.getAttribute("timescale"),U=(F?S/F:S)/(X*V),_=M.getAttribute("id"),G=Math.round(b/U),W=Math.ceil(G/(X*V)),z=k.getAttribute("media"),parseInt(k.getAttribute("startNumber")),!isNaN(parseInt(W))){e.next=43;break}return e.abrupt("return");case 43:for(H=[],E=0;E<W;E++)Y="/"==(Q=z)[0]?new URL(u).origin:u+"/",H.push({duration:U,layout:R,uri:Y+Q.replace("$Time$",O+E*S).replace("$RepresentationID$",_)});return e.abrupt("return",H);case 46:e.next=69;break;case 48:if(J=A.getElementsByTagName("Representation")[0],K=J.getElementsByTagName("EssentialProperty")[0],Z=K.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=f(ee,2),ne=te[0],re=te[1],!k){e.next=69;break}if(k.getAttribute("media"),ie=k.getAttribute("duration"),ae=k.getAttribute("timescale"),oe=(ae?ie/ae:ie)/(ne*re),le=J.getAttribute("id"),ue=Math.round(b/oe),se=Math.ceil(ue/(ne*re)),ce=k.getAttribute("media"),de=parseInt(k.getAttribute("startNumber"))||0,!isNaN(parseInt(se))){e.next=65;break}return e.abrupt("return");case 65:for(pe=[],ve=B(ce),E=0;E<se;E++)me=ve?L(ve,E+de):ce,pe.push({duration:oe,layout:Z,uri:y+me.replace("$Number$",E+de).replace("$RepresentationID$",le)});return e.abrupt("return",pe);case 69:E++,e.next=18;break;case 72:return console.log("No trickplay segment found."),e.abrupt("return",null);case 76:e.prev=76,e.t0=e.catch(5),console.error("Error fetching or parsing MPD:",e.t0);case 79:case"end":return e.stop()}}),e,null,[[5,76]])})))).apply(this,arguments)}function B(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function L(e,t){var n=e.match(/%0(\d+)d/);if(!n)return e;var r=parseInt(n[1],10),i=String(t).padStart(r,"0");return e.replace(/\$Number%0\d+d\$/,i)}function M(){return(M=p(v.mark((function e(t){var n,r,i,o,l,u,s,c,d,p,m,f,g,h,b,y;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=a.getPlayer(t),s=u.currentSource(),c=s.src,c=null!==(n=c)&&void 0!==n&&n.includes("blob")?null===(r=window)||void 0===r||null===(i=r.player)||void 0===i?void 0:i.getSource():c,null===(o=c)||void 0===o||!o.includes("m3u8")){e.next=19;break}return e.next=6,N(c,t);case 6:if(!((null==(d=e.sent)?void 0:d.length)>0)){e.next=17;break}return p=(null==d?void 0:d[0])||null,m=p.uri,f=c.substring(0,c.lastIndexOf("/"))+"/",e.next=12,T(f,m);case 12:return g=e.sent,e.next=15,C(g);case 15:h=e.sent,u.thumbnails(h);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!l.includes("mpd")){e.next=28;break}return e.next=22,O(c,t);case 22:if(!((null==(b=e.sent)?void 0:b.length)>0)){e.next=28;break}return e.next=26,C(b);case 26:y=e.sent,u.thumbnails(y);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}exports.addNextEpPreview=function(e,t){var n;if(h=!1,null!=t&&null!==(n=t.series)&&void 0!==n&&n.enable){var r;g=[];var l=o.getCurrentSeries();null==l||l.map((function(e){var t;return(t=g).push.apply(t,i(e.episodes))})),null==t||null===(r=t.series)||void 0===r||r.cb}else{var c,d;g=(null==t||null===(c=t.relatedVideos)||void 0===c?void 0:c.content)||[],null==t||null===(d=t.relatedVideos)||void 0===d||d.cb}var p=a.getPlayer(e);p.on("timeupdate",(function(){var e,t;if(!h){var n=Math.floor(p.currentTime()),r=p.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];r-n<=10&&o.getVideoIdx()<=(null===(t=g)||void 0===t?void 0:t.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")}}));var v,m=g.filter((function(e,t){return t==o.getVideoIdx()}));if((null==m?void 0:m.length)>0)if(null!==(v=document.getElementsByClassName("next-ep-preview"))&&void 0!==v&&v[0]){var f,y,x,w,E,A,N,k,j,C,I,T;(null===(f=document.getElementsByClassName("next-ep-preview"))||void 0===f?void 0:f[0]).style.visibility="hidden";var P=null===(y=document.getElementsByClassName("next-ep-title"))||void 0===y?void 0:y[0],O=null===(x=document.getElementsByClassName("next-ep-img"))||void 0===x?void 0:x[0],S=null===(w=document.getElementsByClassName("next-ep-content"))||void 0===w?void 0:w[0],B=null===(E=m[0])||void 0===E?void 0:E.title;(null===(A=B)||void 0===A?void 0:A.length)>60&&(B=B.substr(0,60)+"..."),P.textContent="".concat(B),O.src=(null===(N=m[0])||void 0===N||null===(k=N.gist)||void 0===k||null===(j=k.imageGist)||void 0===j?void 0:j.r16x9)||(null==m||null===(C=m[0])||void 0===C?void 0:C.img)||(null===(I=window)||void 0===I||null===(T=I.customData)||void 0===T?void 0:T.fallbackImage),S.onclick=function(){return b(e)}}else{var L,M,q,R,D,$,X,V,F=document.createElement("div");F.className="next-ep-preview",F.style.visibility="hidden",document.getElementById(e).append(F);var U=document.createElement("div");U.className="next-heading-wrapper";var _=document.createElement("div");_.className="next-ep-header",_.textContent="Next up";var G=document.createElement("div");G.className="next-ep-close",G.onclick=function(){F.style.visibility="hidden",h=!0},G.appendChild(s.parseSvgString(u.crossIconSvg())),U.append(_),U.append(G);var W=null===(L=m[0])||void 0===L?void 0:L.title,z=document.createElement("img");z.className="next-ep-img",z.src=(null===(M=m[0])||void 0===M||null===(q=M.gist)||void 0===q||null===(R=q.imageGist)||void 0===R?void 0:R.r16x9)||(null==m||null===(D=m[0])||void 0===D?void 0:D.img)||(null===($=window)||void 0===$||null===(X=$.customData)||void 0===X?void 0:X.fallbackImage);var H=document.createElement("div");H.className="next-ep-title",(null===(V=W)||void 0===V?void 0:V.length)>60&&(W=W.substr(0,60)+"..."),H.textContent="".concat(W);var Q=document.createElement("div");Q.className="next-ep-content",Q.append(z),Q.append(H),Q.onclick=s.debounce((function(){null==F||F.remove(),h=!0,b(e)}),400),F.append(U),F.append(Q)}},exports.addTVProviderImage=function(e,t){var n=a.getPlayer(e),r=null==t?void 0:t.tvProviderLogoUrl;if(r){var i=document.createElement("div");i.className="tvProviderImage";var o=document.createElement("img");o.src="".concat(r),o.alt="Provider Image",i.append(o),n.el().appendChild(i),n.on("useractive",(function(){i.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||i.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?i.style.top="3.2rem":i.style.top="1rem"}))}},exports.initiateTrickplay=function(e){return M.apply(this,arguments)};
package/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./generic-34d67718.js"),require("./player_instance-fcf6a8fb.js"),require("video.js");var e=require("./index-c2fa4876.js");require("./util-f0e2c1f3.js"),require("./captions-dbc83a75.js"),require("./resolution-f9dcc1b4.js"),require("./skin-516012d7.js"),require("./localisation-56e0a999.js"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/typeof"),require("./icons-2609dbe4.js"),require("./helper-a50a8ffc.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),module.exports=e.VLPlayerCore;
1
+ "use strict";require("video.js/dist/video-js.min.css"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./generic-15a63f46.js"),require("./player_instance-fcf6a8fb.js"),require("video.js");var e=require("./index-0fcf7525.js");require("./util-30c1868a.js"),require("./captions-dbc83a75.js"),require("./resolution-f9dcc1b4.js"),require("./skin-516012d7.js"),require("./localisation-56e0a999.js"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/typeof"),require("./icons-2609dbe4.js"),require("./helper-a50a8ffc.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),module.exports=e.VLPlayerCore;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),o=require("./icons-2609dbe4.js"),i=require("./generic-34d67718.js"),l=require("./skin-516012d7.js");function c(e){var t=d();return function(){var r,s=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(s,arguments,o)}else r=s.apply(this,arguments);return n(this,r)}}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var u=s.getComponent("Component"),m=function(n){r(d,u);var a=c(d);function d(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),(r=a.call(this,t,n)).playerId=n.playerId,r.seriesData=n.sres,r.streams=n.streams,r.currentVideoData=n.res,r.initialiseStructure(),r.loadCSS(),r}return t(d,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(o.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-1efdbdb9.js")})).then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),r=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var n;null!==(n=r.classList)&&void 0!==n&&n.contains("hidden")?(l.closeOpenDrawers(),r.classList.remove("hidden"),t.classList.add("open"),l.setUpdatedElHeight(e.playerId,r)):(r.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var a=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);r.style.height="".concat(a,"px"),n.style.overflow="hidden",s.dom.appendContent(t,r),this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),n=s.dom.createEl("div",{className:"stream-selector-head"}),a=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(o.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),r.classList.remove("open")};for(var c=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=s.dom.createEl("div",{className:"stream-selector-content"}),u=s.dom.createEl("div",{className:"stream-tray"}),m=parseInt(sessionStorage.getItem("selectedStreamIndex")||0),p=function(e){var r,n,a,l=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(o.SelectedStream())});m==e&&(l.classList.add("selected"),l.style.border="2px solid #D2393B"),l.onclick=function(){for(var r=s.dom.$$(".stream"),n=0;n<r.length;n++)r[n].style.border="none",r[n].classList.remove("selected");l.classList.add("selected"),l.style.border="2px solid #D2393B",i.load(t.playerId,t.streams[e].id).then((function(e){i.play(t.playerId),console.log(e)})).catch((function(e){console.log(e)}))},l.style.backgroundImage="url(".concat(t.streams[e].img,")");var c=document.createElement("img");c.className="stream-thumbnail-image",c.src="".concat((null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img)||(null===(n=window)||void 0===n||null===(a=n.customData)||void 0===a?void 0:a.fallbackImage)),l.append(c),s.dom.appendContent(u,l),s.dom.appendContent(d,u)},v=0;v<this.streams.length;v++)p(v);s.dom.appendContent(n,a),s.dom.appendContent(n,c),s.dom.appendContent(e,n),s.dom.appendContent(e,d),l.handleDrawerResizing(this.playerId,e)}}]),d}();exports.default=m;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),o=require("./icons-2609dbe4.js"),i=require("./generic-15a63f46.js"),l=require("./skin-516012d7.js");function c(e){var t=d();return function(){var r,s=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(s,arguments,o)}else r=s.apply(this,arguments);return n(this,r)}}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var u=s.getComponent("Component"),m=function(n){r(d,u);var a=c(d);function d(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,d),(r=a.call(this,t,n)).playerId=n.playerId,r.seriesData=n.sres,r.streams=n.streams,r.currentVideoData=n.res,r.initialiseStructure(),r.loadCSS(),r}return t(d,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(o.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-1efdbdb9.js")})).then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),r=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var n;null!==(n=r.classList)&&void 0!==n&&n.contains("hidden")?(l.closeOpenDrawers(),r.classList.remove("hidden"),t.classList.add("open"),l.setUpdatedElHeight(e.playerId,r)):(r.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var a=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);r.style.height="".concat(a,"px"),n.style.overflow="hidden",s.dom.appendContent(t,r),this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),n=s.dom.createEl("div",{className:"stream-selector-head"}),a=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(o.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),r.classList.remove("open")};for(var c=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=s.dom.createEl("div",{className:"stream-selector-content"}),u=s.dom.createEl("div",{className:"stream-tray"}),m=parseInt(sessionStorage.getItem("selectedStreamIndex")||0),p=function(e){var r,n,a,l=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(o.SelectedStream())});m==e&&(l.classList.add("selected"),l.style.border="2px solid #D2393B"),l.onclick=function(){for(var r=s.dom.$$(".stream"),n=0;n<r.length;n++)r[n].style.border="none",r[n].classList.remove("selected");l.classList.add("selected"),l.style.border="2px solid #D2393B",i.load(t.playerId,t.streams[e].id).then((function(e){i.play(t.playerId),console.log(e)})).catch((function(e){console.log(e)}))},l.style.backgroundImage="url(".concat(t.streams[e].img,")");var c=document.createElement("img");c.className="stream-thumbnail-image",c.src="".concat((null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img)||(null===(n=window)||void 0===n||null===(a=n.customData)||void 0===a?void 0:a.fallbackImage)),l.append(c),s.dom.appendContent(u,l),s.dom.appendContent(d,u)},v=0;v<this.streams.length;v++)p(v);s.dom.appendContent(n,a),s.dom.appendContent(n,c),s.dom.appendContent(e,n),s.dom.appendContent(e,d),l.handleDrawerResizing(this.playerId,e)}}]),d}();exports.default=m;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),o=require("./icons-2609dbe4.js"),i=require("./generic-34d67718.js"),l=require("./skin-516012d7.js"),c=require("./player_instance-fcf6a8fb.js");function d(e){var t=u();return function(){var r,s=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(s,arguments,o)}else r=s.apply(this,arguments);return n(this,r)}}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var m=s.getComponent("Component"),p=function(n){r(u,m);var a=d(u);function u(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,u),(r=a.call(this,t,n)).playerId=n.playerId,r.seriesData=n.sres,r.streams=n.streams,r.currentVideoData=n.res,r.initialiseStructure(),r.loadCSS(),r}return t(u,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(o.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-7a86b517.js")})).then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(l.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var r=document.getElementById(this.playerId);if(r){var n=window.getComputedStyle(r,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),r.style.overflow="hidden",s.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),n=s.dom.createEl("div",{className:"stream-selector-head"}),a=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(o.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var l=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=s.dom.createEl("div",{className:"stream-selector-content"}),u=s.dom.createEl("div",{className:"stream-tray"}),m=function(e){var r,n=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(o.SelectedStream())});0==e&&(n.classList.add("selected"),n.style.border="4px solid #D2393B"),n.onclick=function(){for(var r=s.dom.$$(".stream"),a=0;a<r.length;a++)r[a].style.border="none",r[a].classList.remove("selected");n.classList.add("selected"),n.style.border="4px solid #D2393B",i.load(t.playerId,t.streams[e].id).then((function(e){i.play(t.playerId),console.log(e)})).catch((function(e){console.log(e)}))},n.style.backgroundImage="url(".concat(t.streams[e].img,")");var a=document.createElement("img");a.className="stream-thumbnail-image",a.src="".concat(null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img),a.alt="No Thumbnail Available",n.append(a),s.dom.appendContent(u,n),s.dom.appendContent(d,u)},p=0;p<this.streams.length;p++)m(p);s.dom.appendContent(n,a),s.dom.appendContent(n,l),s.dom.appendContent(e,n),s.dom.appendContent(e,d),c.getPlayer(this.playerId).on("fullscreenchange",(function(){var r=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(r,"px")}))}}]),u}();exports.default=p;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),o=require("./icons-2609dbe4.js"),i=require("./generic-15a63f46.js"),l=require("./skin-516012d7.js"),c=require("./player_instance-fcf6a8fb.js");function d(e){var t=u();return function(){var r,s=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(s,arguments,o)}else r=s.apply(this,arguments);return n(this,r)}}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var m=s.getComponent("Component"),p=function(n){r(u,m);var a=d(u);function u(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,u),(r=a.call(this,t,n)).playerId=n.playerId,r.seriesData=n.sres,r.streams=n.streams,r.currentVideoData=n.res,r.initialiseStructure(),r.loadCSS(),r}return t(u,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(o.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-7a86b517.js")})).then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(l.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var r=document.getElementById(this.playerId);if(r){var n=window.getComputedStyle(r,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),r.style.overflow="hidden",s.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),n=s.dom.createEl("div",{className:"stream-selector-head"}),a=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(o.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var l=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=s.dom.createEl("div",{className:"stream-selector-content"}),u=s.dom.createEl("div",{className:"stream-tray"}),m=function(e){var r,n=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(o.SelectedStream())});0==e&&(n.classList.add("selected"),n.style.border="4px solid #D2393B"),n.onclick=function(){for(var r=s.dom.$$(".stream"),a=0;a<r.length;a++)r[a].style.border="none",r[a].classList.remove("selected");n.classList.add("selected"),n.style.border="4px solid #D2393B",i.load(t.playerId,t.streams[e].id).then((function(e){i.play(t.playerId),console.log(e)})).catch((function(e){console.log(e)}))},n.style.backgroundImage="url(".concat(t.streams[e].img,")");var a=document.createElement("img");a.className="stream-thumbnail-image",a.src="".concat(null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img),a.alt="No Thumbnail Available",n.append(a),s.dom.appendContent(u,n),s.dom.appendContent(d,u)},p=0;p<this.streams.length;p++)m(p);s.dom.appendContent(n,a),s.dom.appendContent(n,l),s.dom.appendContent(e,n),s.dom.appendContent(e,d),c.getPlayer(this.playerId).on("fullscreenchange",(function(){var r=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(r,"px")}))}}]),u}();exports.default=p;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),t=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),l=require("./icons-2609dbe4.js"),s=require("./generic-34d67718.js"),a=require("./currentVideoInfo-31d70bec.js"),d=require("./skin-516012d7.js");function u(e){var n=c();return function(){var t,o=i(e);if(n){var l=i(this).constructor;t=Reflect.construct(o,arguments,l)}else t=o.apply(this,arguments);return r(this,t)}}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var p=o.getComponent("Component"),v=function(r){t(s,p);var i=u(s);function s(n){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,s),(t=i.call(this,n,r)).playerId=r.playerId,t.seriesData=r.sres,t.currentVideoData=r.res,t.initialiseStructure(),t.loadCSS(),t}return n(s,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"play-next"}),n=o.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(l.PlayNextEpisodeSvg(window.controlsColor?window.controlsColor:"white"))});return o.dom.appendContent(e,n),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./nextEpisodeButton-b6e6586f.js")})).then((function(e){var n=document.createElement("style");n.id="multicam",n.append("".concat(e.default)),document.head.appendChild(n)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),n=o.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),t=o.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),r=o.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=o.dom.createEl("div",{className:"next-eps-image"}),l=o.dom.createEl("div",{className:"next-eps-description"});o.dom.appendContent(r,i),o.dom.appendContent(r,l),o.dom.appendContent(n,t),o.dom.appendContent(n,r),this.toggleContentOnHover(e,n),o.dom.appendContent(e,n)}},{key:"toggleContentOnHover",value:function(e,n){e.addEventListener("mouseover",(function(){o.dom.removeClass(n,"nextepisode-hidden")})),n.addEventListener("mouseover",(function(){o.dom.removeClass(n,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){o.dom.addClass(n,"nextepisode-hidden")})),n.addEventListener("mouseout",(function(){o.dom.addClass(n,"nextepisode-hidden")}))}}]),s}(),m=function(e,n){for(var t=-1,r=0;r<e.length;r++)for(var i=0;i<e[r].episodes.length;i++)if(e[r].episodes[i].id===n){t=r;break}return t},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;if(!(e&&n>=0))return{prevEp:null,nextEp:null};var t=e.episodes.length,r=n-1>=0?n-1:t-1,i=(n+1)%t,o=t>1?e.episodes[r]:null,l=t>1?e.episodes[i]:null;return r===i&&(0===r?l=null:o=null),{prevEp:o,nextEp:l,prevEpIdx:r,nextEpIdx:i}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,t=null;return e?(e.episodes.forEach((function(e,r){e.gist.id===n&&(t=r)})),t):null},g=function(e){var n,t;o.dom.$(".next-eps"),o.dom.$(".play-next").onclick=function(){var n;s.load("my-player",null==e||null===(n=e.gist)||void 0===n?void 0:n.id).then((function(e){a.setCurrentVideo(e.response)}))};var r=o.dom.$(".next-eps-image"),i=d.parseHtmlString("<img src=".concat(null==e||null===(n=e.gist)||void 0===n?void 0:n.videoImageUrl," />")),l=null==i?void 0:i.firstChild;null==r||r.append(l);for(var u=o.dom.$(".next-eps-description"),c=d.parseHtmlString("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(t=e.gist)||void 0===t?void 0:t.description,"</div>"));null!=c&&c.firstChild;)null==u||u.appendChild(c.firstChild)};exports.default=v,exports.initaliseFunctionality=function(e,n){var t=m(e,n.video.gist.id),r=h(e[t],n.video.gist.id),i=f(e[t],r);g(i.nextEp)};
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),t=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),l=require("./icons-2609dbe4.js"),s=require("./generic-15a63f46.js"),a=require("./currentVideoInfo-31d70bec.js"),d=require("./skin-516012d7.js");function u(e){var n=c();return function(){var t,o=i(e);if(n){var l=i(this).constructor;t=Reflect.construct(o,arguments,l)}else t=o.apply(this,arguments);return r(this,t)}}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var p=o.getComponent("Component"),v=function(r){t(s,p);var i=u(s);function s(n){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,s),(t=i.call(this,n,r)).playerId=r.playerId,t.seriesData=r.sres,t.currentVideoData=r.res,t.initialiseStructure(),t.loadCSS(),t}return n(s,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"play-next"}),n=o.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(l.PlayNextEpisodeSvg(window.controlsColor?window.controlsColor:"white"))});return o.dom.appendContent(e,n),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./nextEpisodeButton-b6e6586f.js")})).then((function(e){var n=document.createElement("style");n.id="multicam",n.append("".concat(e.default)),document.head.appendChild(n)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),n=o.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),t=o.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),r=o.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=o.dom.createEl("div",{className:"next-eps-image"}),l=o.dom.createEl("div",{className:"next-eps-description"});o.dom.appendContent(r,i),o.dom.appendContent(r,l),o.dom.appendContent(n,t),o.dom.appendContent(n,r),this.toggleContentOnHover(e,n),o.dom.appendContent(e,n)}},{key:"toggleContentOnHover",value:function(e,n){e.addEventListener("mouseover",(function(){o.dom.removeClass(n,"nextepisode-hidden")})),n.addEventListener("mouseover",(function(){o.dom.removeClass(n,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){o.dom.addClass(n,"nextepisode-hidden")})),n.addEventListener("mouseout",(function(){o.dom.addClass(n,"nextepisode-hidden")}))}}]),s}(),m=function(e,n){for(var t=-1,r=0;r<e.length;r++)for(var i=0;i<e[r].episodes.length;i++)if(e[r].episodes[i].id===n){t=r;break}return t},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;if(!(e&&n>=0))return{prevEp:null,nextEp:null};var t=e.episodes.length,r=n-1>=0?n-1:t-1,i=(n+1)%t,o=t>1?e.episodes[r]:null,l=t>1?e.episodes[i]:null;return r===i&&(0===r?l=null:o=null),{prevEp:o,nextEp:l,prevEpIdx:r,nextEpIdx:i}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,t=null;return e?(e.episodes.forEach((function(e,r){e.gist.id===n&&(t=r)})),t):null},g=function(e){var n,t;o.dom.$(".next-eps"),o.dom.$(".play-next").onclick=function(){var n;s.load("my-player",null==e||null===(n=e.gist)||void 0===n?void 0:n.id).then((function(e){a.setCurrentVideo(e.response)}))};var r=o.dom.$(".next-eps-image"),i=d.parseHtmlString("<img src=".concat(null==e||null===(n=e.gist)||void 0===n?void 0:n.videoImageUrl," />")),l=null==i?void 0:i.firstChild;null==r||r.append(l);for(var u=o.dom.$(".next-eps-description"),c=d.parseHtmlString("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(t=e.gist)||void 0===t?void 0:t.description,"</div>"));null!=c&&c.firstChild;)null==u||u.appendChild(c.firstChild)};exports.default=v,exports.initaliseFunctionality=function(e,n){var t=m(e,n.video.gist.id),r=h(e[t],n.video.gist.id),i=f(e[t],r);g(i.nextEp)};
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),l=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),r=require("./icons-2609dbe4.js"),s=require("./generic-34d67718.js"),c=require("./currentVideoInfo-31d70bec.js"),d=require("./autoNextVideo-2238e469.js"),u=require("./skin-516012d7.js"),p=require("./player_instance-fcf6a8fb.js");function m(e){var t=v();return function(){var n,l=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(l,arguments,o)}else n=l.apply(this,arguments);return i(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/slicedToArray"),require("./util-f0e2c1f3.js"),require("@babel/runtime/helpers/typeof");var y=o.getComponent("Component"),h=function(i){l(v,y);var a=m(v);function v(e){var n,l,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,v),(o=a.call(this,e,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=null==r||null===(n=r.playlist)||void 0===n?void 0:n.content,o.cb=(null==r||null===(l=r.playlist)||void 0===l?void 0:l.cb)||null,o.autoNext=(null==r||null===(i=r.playlist)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&d.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb}),o}return n(v,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=o.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(r.EpisodesSvg())});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./playlist-df87ca90.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=o.dom.createEl("div",{className:"selection-container hidden"});o.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(u.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var l=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px"),o.dom.appendContent(e,t),n.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(t){var n=this,l=this.el(),i=o.dom.createEl("div",{className:"playlist-selector-head"}),a=o.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(r.crossIconSvg())});a.onclick=function(){t.classList.add("hidden"),l.classList.remove("open"),t.style.right="-350px"};for(var d=o.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),u=o.dom.createEl("div",{className:"playlist-selector-content"}),m=function(t){var l,i,a=o.dom.createEl("div",{className:"playlist-container"}),r=o.dom.createEl("div",{className:"playlist-section",index:t}),d=o.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(l=n.videos[t])||void 0===l?void 0:l.title)||"")}),p=o.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(n.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});o.dom.appendContent(r,d),o.dom.appendContent(r,p),o.dom.appendContent(a,r),o.dom.appendContent(u,a);var m=o.dom.createEl("div",{className:"playlist-section-expanded hidden"}),v=o.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(i=n.videos[t])||void 0===i?void 0:i.description)||"")}),y=o.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(n.videos[t].img,")"),o.dom.appendContent(m,y),o.dom.appendContent(m,v),o.dom.appendContent(a,m),o.dom.appendContent(u,a),m.onclick=function(e){e.stopPropagation(),c.setVideoIdx(t+1),s.load(n.playerId,n.videos[t].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))},r.onclick=function(t){var n,l,i,o=document.getElementsByClassName("playlist-selector-content")[0].childNodes,r=(o=e(o))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=r&&null!==(n=r.classList)&&void 0!==n&&n.contains("hidden")?(a.style.backgroundColor="#0000007d",null==r||null===(l=r.classList)||void 0===l||l.remove("hidden")):(null==r||null===(i=r.classList)||void 0===i||i.add("hidden"),a.style.backgroundColor="unset")}},v=0;v<this.videos.length;v++)m(v);o.dom.appendContent(i,a),o.dom.appendContent(i,d),o.dom.appendContent(t,i),o.dom.appendContent(t,u),p.getPlayer(this.playerId).on("fullscreenchange",(function(){var e=document.getElementById(n.playerId);if(e){var l=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px")}}))}}]),v}();exports.default=h;
1
+ "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),l=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),r=require("./icons-2609dbe4.js"),s=require("./generic-15a63f46.js"),c=require("./currentVideoInfo-31d70bec.js"),d=require("./autoNextVideo-6514c1af.js"),u=require("./skin-516012d7.js"),p=require("./player_instance-fcf6a8fb.js");function m(e){var t=v();return function(){var n,l=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(l,arguments,o)}else n=l.apply(this,arguments);return i(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/slicedToArray"),require("./util-30c1868a.js"),require("@babel/runtime/helpers/typeof");var y=o.getComponent("Component"),h=function(i){l(v,y);var a=m(v);function v(e){var n,l,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,v),(o=a.call(this,e,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=null==r||null===(n=r.playlist)||void 0===n?void 0:n.content,o.cb=(null==r||null===(l=r.playlist)||void 0===l?void 0:l.cb)||null,o.autoNext=(null==r||null===(i=r.playlist)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&d.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb}),o}return n(v,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=o.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(r.EpisodesSvg())});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./playlist-df87ca90.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=o.dom.createEl("div",{className:"selection-container hidden"});o.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(u.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var l=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px"),o.dom.appendContent(e,t),n.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(t){var n=this,l=this.el(),i=o.dom.createEl("div",{className:"playlist-selector-head"}),a=o.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(r.crossIconSvg())});a.onclick=function(){t.classList.add("hidden"),l.classList.remove("open"),t.style.right="-350px"};for(var d=o.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),u=o.dom.createEl("div",{className:"playlist-selector-content"}),m=function(t){var l,i,a=o.dom.createEl("div",{className:"playlist-container"}),r=o.dom.createEl("div",{className:"playlist-section",index:t}),d=o.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(l=n.videos[t])||void 0===l?void 0:l.title)||"")}),p=o.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(n.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});o.dom.appendContent(r,d),o.dom.appendContent(r,p),o.dom.appendContent(a,r),o.dom.appendContent(u,a);var m=o.dom.createEl("div",{className:"playlist-section-expanded hidden"}),v=o.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(i=n.videos[t])||void 0===i?void 0:i.description)||"")}),y=o.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(n.videos[t].img,")"),o.dom.appendContent(m,y),o.dom.appendContent(m,v),o.dom.appendContent(a,m),o.dom.appendContent(u,a),m.onclick=function(e){e.stopPropagation(),c.setVideoIdx(t+1),s.load(n.playerId,n.videos[t].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))},r.onclick=function(t){var n,l,i,o=document.getElementsByClassName("playlist-selector-content")[0].childNodes,r=(o=e(o))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=r&&null!==(n=r.classList)&&void 0!==n&&n.contains("hidden")?(a.style.backgroundColor="#0000007d",null==r||null===(l=r.classList)||void 0===l||l.remove("hidden")):(null==r||null===(i=r.classList)||void 0===i||i.add("hidden"),a.style.backgroundColor="unset")}},v=0;v<this.videos.length;v++)m(v);o.dom.appendContent(i,a),o.dom.appendContent(i,d),o.dom.appendContent(t,i),o.dom.appendContent(t,u),p.getPlayer(this.playerId).on("fullscreenchange",(function(){var e=document.getElementById(n.playerId);if(e){var l=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px")}}))}}]),v}();exports.default=h;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),i=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),s=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),l=require("@babel/runtime/regenerator"),c=require("video.js"),d=require("./generic-34d67718.js"),u=require("./icons-2609dbe4.js"),p=require("./currentVideoInfo-31d70bec.js"),v=require("./skin-516012d7.js");require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var h=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function f(e){var i=m();return function(){var t,n=a(e);if(i){var s=a(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(this,t)}}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}var g,b=c.getComponent("Component"),y=function(e){s(a,b);var r=f(a);function a(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,a),t=r.call(this,e,s),o(n(t),"seriesData",[]),t.seriesData=s.seriesData,g=s.playerId;var l=t.el();return C(l,t.seriesData),t.loadCSS(),t}return t(a,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-9c237975.js")})).then((function(e){var i=document.createElement("style");i.id="series",i.append("".concat(e.default)),document.head.appendChild(i)}))}}]),a}();function q(){return(q=e(l.mark((function e(i,t,n,s){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.pause(g),h(g),d.load(g,t).then((function(e){p.setCurrentVideo(e.response),d.play(g)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e,i){for(var t='<div class="hover-div"></div>\n '.concat(u.EpisodesSvg(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map((function(e,i){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(i),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=v.parseHtmlString(t);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}exports.customSeasonList=C,exports.handleSeasonChange=function(e,i,t,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var o=e.episodes.map((function(e,i){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(i+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=v.parseHtmlString(o);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){d.getSeriesWatchHistory(e).then((function(e){var i=e.data,t=document.querySelectorAll("#progress-div");t&&i.map((function(e,i){e&&e.watchedPercentage&&t[i]&&(t[i].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),u=document.querySelectorAll("#episode-title"),p=document.querySelectorAll(".meta-details"),h=document.querySelector("#episodes-back-btn"),f=e.id,m=e.episodes;h.addEventListener("click",(function(){return function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(s,r)}));for(var g=function(i){c[i].addEventListener("click",(function(){return function(e,i,t){var n=i.querySelector(".meta-details");i.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),t.forEach((function(i,n){n!==e&&(t[n].classList.remove("episode-active"),t[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(i,u[i],u)})),p[i].addEventListener("click",(function(){return function(e,i,t,n){return q.apply(this,arguments)}(i,m[i].id,t,u)})),e.episodes[i].id==f&&u[i].classList.add("highlight-active-eps")},b=0;b<c.length;b++)g(b)},exports.seriesModule=y;
1
+ "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),i=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),s=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),l=require("@babel/runtime/regenerator"),c=require("video.js"),d=require("./generic-15a63f46.js"),u=require("./icons-2609dbe4.js"),p=require("./currentVideoInfo-31d70bec.js"),v=require("./skin-516012d7.js");require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var h=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function f(e){var i=m();return function(){var t,n=a(e);if(i){var s=a(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(this,t)}}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}var g,b=c.getComponent("Component"),y=function(e){s(a,b);var r=f(a);function a(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,a),t=r.call(this,e,s),o(n(t),"seriesData",[]),t.seriesData=s.seriesData,g=s.playerId;var l=t.el();return C(l,t.seriesData),t.loadCSS(),t}return t(a,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-9c237975.js")})).then((function(e){var i=document.createElement("style");i.id="series",i.append("".concat(e.default)),document.head.appendChild(i)}))}}]),a}();function q(){return(q=e(l.mark((function e(i,t,n,s){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.pause(g),h(g),d.load(g,t).then((function(e){p.setCurrentVideo(e.response),d.play(g)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e,i){for(var t='<div class="hover-div"></div>\n '.concat(u.EpisodesSvg(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map((function(e,i){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(i),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=v.parseHtmlString(t);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}exports.customSeasonList=C,exports.handleSeasonChange=function(e,i,t,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var o=e.episodes.map((function(e,i){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(i+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=v.parseHtmlString(o);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){d.getSeriesWatchHistory(e).then((function(e){var i=e.data,t=document.querySelectorAll("#progress-div");t&&i.map((function(e,i){e&&e.watchedPercentage&&t[i]&&(t[i].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),u=document.querySelectorAll("#episode-title"),p=document.querySelectorAll(".meta-details"),h=document.querySelector("#episodes-back-btn"),f=e.id,m=e.episodes;h.addEventListener("click",(function(){return function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(s,r)}));for(var g=function(i){c[i].addEventListener("click",(function(){return function(e,i,t){var n=i.querySelector(".meta-details");i.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),t.forEach((function(i,n){n!==e&&(t[n].classList.remove("episode-active"),t[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(i,u[i],u)})),p[i].addEventListener("click",(function(){return function(e,i,t,n){return q.apply(this,arguments)}(i,m[i].id,t,u)})),e.episodes[i].id==f&&u[i].classList.add("highlight-active-eps")},b=0;b<c.length;b++)g(b)},exports.seriesModule=y;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),s=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),o=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),l=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),r=require("./icons-2609dbe4.js"),d=require("./generic-34d67718.js"),c=require("./currentVideoInfo-31d70bec.js"),u=require("./skin-516012d7.js"),v=require("./autoNextVideo-2238e469.js"),m=require("./player_instance-fcf6a8fb.js");function p(e){var t=h();return function(){var s,n=l(e);if(t){var o=l(this).constructor;s=Reflect.construct(n,arguments,o)}else s=n.apply(this,arguments);return i(this,s)}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/slicedToArray"),require("./util-f0e2c1f3.js"),require("@babel/runtime/helpers/typeof");var y=a.getComponent("Component"),g=function(i){o(h,y);var l=p(h);function h(s){var o,i,a,r,d,u,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,h),(u=l.call(this,s,m)).playerId=m.playerId,u.seriesData=m.sres,u.videos=null==m||null===(o=m.sres)||void 0===o?void 0:o.seasons,u.currentVideoData=m.res,u.initialiseStructure(),u.loadCSS(),u.selectedSeason=0,u.cb=null==m||null===(i=m.series)||void 0===i?void 0:i.cb,u.autoPlayNext=(null==m||null===(a=m.series)||void 0===a?void 0:a.autoPlayNext)||!1,sessionStorage.getItem("token"),u.watchMap=c.getSeriesWatchMap(),null!==(r=n(u))&&void 0!==r&&r.autoPlayNext&&null!=m&&null!==(d=m.series)&&void 0!==d&&d.enable){var p,y,g,b,f=null==m||null===(p=m.sres)||void 0===p?void 0:p.seasons,C=[];f.map((function(t){C.push.apply(C,e(t.episodes))})),c.createIdxMapping(C),c.setVideoIdxById(null===(y=u.options_)||void 0===y||null===(g=y.res)||void 0===g||null===(b=g.video)||void 0===b?void 0:b.id),v.autoPlayNext({playerId:u.playerId,content:C,cb:u.cb,series:null==m?void 0:m.sres})}return u}return s(h,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"series-selector-icon",title:"season selector",innerHTML:"".concat(r.PlaylistIcon())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-2105fd89.js")})).then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(u.closeOpenDrawers(),e.classList.remove("hidden"),s.classList.add("open"),u.setUpdatedElHeight(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"handleTabIndexSelector",value:function(){var e,t=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog open",null!==(e=document.getElementsByClassName("series-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=0);for(var s=0;s<(null==t?void 0:t.length);s++)t[s].tabIndex=0}},{key:"handleCloseTabIndex",value:function(){var e,t=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog closed",null!==(e=document.getElementsByClassName("series-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=-1);for(var s=0;s<(null==t?void 0:t.length);s++)t[s]&&(t[s].tabIndex=-1);setTimeout((function(){document.getElementsByClassName("series-selector-icon")[0]&&document.getElementsByClassName("series-selector-icon")[0].focus()}),100)}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=a.dom.createEl("div",{className:"series-selection-container hidden",role:"dialog",ariaModal:"true"});s.setAttribute("aria-labelledby","seasons"),a.dom.$(".series-selector-icon",this.el()).onclick=function(){e.toggleOpenClose(s),e.handleTabIndexSelector()};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(o,"px"),a.dom.appendContent(t,s),n.style.overflow="hidden",this.addFunctionality(s)}}},{key:"handleSeriesCloseIcon",value:function(e,t,s){if("series-selector-cross-icon"===e.className)t.classList.add("hidden"),s.classList.remove("open"),this.handleCloseTabIndex();else if("series-selector-back-icon"===e.className){var n=a.dom.$(".series-selector-content",this.el());for(a.dom.$(".series-selector-cross-icon",this.el()),e.className="series-selector-cross-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var o=this.createSeasonLister();for(a.dom.appendContent(n,o),a.dom.$(".series-selector-title",this.el()).textContent="Seasons";null!=e&&e.firstChild;)e.removeChild(e.firstChild);var i=u.parseSvgString(r.crossIconSvg());e.appendChild(i)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),n=a.dom.createEl("div",{className:"series-selector-head"}),o=a.dom.createEl("button",{className:"series-selector-cross-icon",ariaLabel:"close season selector",innerHTML:"".concat(r.crossIconSvg()),tabIndex:-1});o.onclick=function(){t.handleSeriesCloseIcon(o,e,s)},o.onkeydown=function(n){"Enter"===n.key&&t.handleSeriesCloseIcon(o,e,s)};var i=a.dom.createEl("h2",{className:"series-selector-title",ariaLabel:"Seasons",innerHTML:"Seasons",id:"seasons"}),l=a.dom.createEl("div",{style:"position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;",ariaLive:"assertive",id:"sr-announcer",tabIndex:-1}),d=a.dom.createEl("div",{className:"series-selector-content"}),c=this.createSeasonLister();a.dom.appendContent(n,l),a.dom.appendContent(d,c),a.dom.appendContent(n,o),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),u.handleDrawerResizing(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;m.getPlayer(this.playerId);for(var t=c.getCurrentSeries(),s=a.dom.createEl("div",{className:"season-container"}),n=function(n){var o,i,l,r,d=document.createElement("label");d.className="season-holder",d.ariaLabel=null===(o=t[n])||void 0===o?void 0:o.title,d.role="button",d.type="button",d.setAttribute("aria-LabelledBy",null===(i=t[n])||void 0===i?void 0:i.title),d.setAttribute("for","season-".concat(n));var u=document.createElement("div");u.className="season - ".concat(n),u.textContent=null===(l=t[n])||void 0===l?void 0:l.title,u.id=null===(r=t[n])||void 0===r?void 0:r.title;var v=a.dom.createEl("input",{className:"radio - ".concat(n),id:"season-".concat(n),name:"season-radio"});v.setAttribute("type","radio"),e.selectedSeason==n&&(v.checked=!0),v.onclick=function(t){c.seasonIdxManager.set(n),e.showSeasonDetails(n)},d.onkeydown=function(t){"Enter"===t.key&&(c.seasonIdxManager.set(n),e.showSeasonDetails(n))},a.dom.appendContent(d,v),a.dom.appendContent(d,u),a.dom.appendContent(s,d)},o=0;o<t.length;o++)n(o);return s}},{key:"loadSeriesAssetById",value:function(e,t){var s,n=this;c.setVideoIdxById(null===(s=e[t])||void 0===s?void 0:s.id),d.load(this.playerId,e[t].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))}},{key:"getSeasonDetailsContainer",value:function(t,s){var n=this;t=t.map((function(e){var t,s,o,i,l,a,r,d,c;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:(null==e||null===(s=e.gist)||void 0===s||null===(o=s.imageGist)||void 0===o?void 0:o.r16x9)||(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(a=l.appcmsMain)||void 0===a||null===(r=a.images)||void 0===r?void 0:r.placeholderCover),watchedPercentage:(null==n||null===(d=n.watchMap)||void 0===d||null===(c=d.get(null==e?void 0:e.id))||void 0===c?void 0:c.p)||0}}));for(var o=function(o){var i,l,r,d,c,v=a.dom.createEl("div",{className:"series-container",tabIndex:0,role:"button",type:"button"}),m=a.dom.createEl("div",{className:"series-section-data",index:o,innerHTML:"".concat((null===(i=t[o])||void 0===i?void 0:i.title)||"")});a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(l=t[o])||void 0===l?void 0:l.title)||"")}),a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[o].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var p=a.dom.createEl("div",{className:"series-section-image"}),h=(null===(r=t[o])||void 0===r?void 0:r.description)||"";(null===(d=h)||void 0===d?void 0:d.length)>170&&(h=h.substr(0,170)+"..."),a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(h||"")});var y=a.dom.createEl("img",{className:"series-image"});y.src="".concat(u.impolicy16x9(null===(c=t[o])||void 0===c?void 0:c.img)),y.alt="Episode ".concat(o+1),a.dom.appendContent(p,y),a.dom.appendContent(v,p),a.dom.appendContent(v,m),a.dom.appendContent(s,v),v.onclick=function(e){e.stopPropagation(),n.loadSeriesAssetById(t,o)},v.onkeydown=function(e){"Enter"===e.key&&(e.stopPropagation(),n.loadSeriesAssetById(t,o))},m.onclick=function(t){var s,n,o,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(s=l.classList)&&void 0!==s&&s.contains("hidden")?(v.style.backgroundColor="#0000007d",null==l||null===(n=l.classList)||void 0===n||n.remove("hidden")):(null==l||null===(o=l.classList)||void 0===o||o.add("hidden"),v.style.backgroundColor="unset")}},i=0;i<t.length;i++)o(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=a.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=c.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(s,t);var n=a.dom.$(".series-selector-cross-icon",this.el());for(n.className="series-selector-back-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var o=u.parseSvgString(r.BackIcon());n.appendChild(o),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),h}();exports.default=g;
1
+ "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),s=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),o=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),l=require("@babel/runtime/helpers/getPrototypeOf"),a=require("video.js"),r=require("./icons-2609dbe4.js"),d=require("./generic-15a63f46.js"),c=require("./currentVideoInfo-31d70bec.js"),u=require("./skin-516012d7.js"),v=require("./autoNextVideo-6514c1af.js"),m=require("./player_instance-fcf6a8fb.js");function p(e){var t=h();return function(){var s,n=l(e);if(t){var o=l(this).constructor;s=Reflect.construct(n,arguments,o)}else s=n.apply(this,arguments);return i(this,s)}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/slicedToArray"),require("./util-30c1868a.js"),require("@babel/runtime/helpers/typeof");var y=a.getComponent("Component"),g=function(i){o(h,y);var l=p(h);function h(s){var o,i,a,r,d,u,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,h),(u=l.call(this,s,m)).playerId=m.playerId,u.seriesData=m.sres,u.videos=null==m||null===(o=m.sres)||void 0===o?void 0:o.seasons,u.currentVideoData=m.res,u.initialiseStructure(),u.loadCSS(),u.selectedSeason=0,u.cb=null==m||null===(i=m.series)||void 0===i?void 0:i.cb,u.autoPlayNext=(null==m||null===(a=m.series)||void 0===a?void 0:a.autoPlayNext)||!1,sessionStorage.getItem("token"),u.watchMap=c.getSeriesWatchMap(),null!==(r=n(u))&&void 0!==r&&r.autoPlayNext&&null!=m&&null!==(d=m.series)&&void 0!==d&&d.enable){var p,y,g,b,f=null==m||null===(p=m.sres)||void 0===p?void 0:p.seasons,C=[];f.map((function(t){C.push.apply(C,e(t.episodes))})),c.createIdxMapping(C),c.setVideoIdxById(null===(y=u.options_)||void 0===y||null===(g=y.res)||void 0===g||null===(b=g.video)||void 0===b?void 0:b.id),v.autoPlayNext({playerId:u.playerId,content:C,cb:u.cb,series:null==m?void 0:m.sres})}return u}return s(h,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"series-selector-icon",title:"season selector",innerHTML:"".concat(r.PlaylistIcon())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-2105fd89.js")})).then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(u.closeOpenDrawers(),e.classList.remove("hidden"),s.classList.add("open"),u.setUpdatedElHeight(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"handleTabIndexSelector",value:function(){var e,t=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog open",null!==(e=document.getElementsByClassName("series-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=0);for(var s=0;s<(null==t?void 0:t.length);s++)t[s].tabIndex=0}},{key:"handleCloseTabIndex",value:function(){var e,t=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog closed",null!==(e=document.getElementsByClassName("series-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=-1);for(var s=0;s<(null==t?void 0:t.length);s++)t[s]&&(t[s].tabIndex=-1);setTimeout((function(){document.getElementsByClassName("series-selector-icon")[0]&&document.getElementsByClassName("series-selector-icon")[0].focus()}),100)}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=a.dom.createEl("div",{className:"series-selection-container hidden",role:"dialog",ariaModal:"true"});s.setAttribute("aria-labelledby","seasons"),a.dom.$(".series-selector-icon",this.el()).onclick=function(){e.toggleOpenClose(s),e.handleTabIndexSelector()};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(o,"px"),a.dom.appendContent(t,s),n.style.overflow="hidden",this.addFunctionality(s)}}},{key:"handleSeriesCloseIcon",value:function(e,t,s){if("series-selector-cross-icon"===e.className)t.classList.add("hidden"),s.classList.remove("open"),this.handleCloseTabIndex();else if("series-selector-back-icon"===e.className){var n=a.dom.$(".series-selector-content",this.el());for(a.dom.$(".series-selector-cross-icon",this.el()),e.className="series-selector-cross-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var o=this.createSeasonLister();for(a.dom.appendContent(n,o),a.dom.$(".series-selector-title",this.el()).textContent="Seasons";null!=e&&e.firstChild;)e.removeChild(e.firstChild);var i=u.parseSvgString(r.crossIconSvg());e.appendChild(i)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),n=a.dom.createEl("div",{className:"series-selector-head"}),o=a.dom.createEl("button",{className:"series-selector-cross-icon",ariaLabel:"close season selector",innerHTML:"".concat(r.crossIconSvg()),tabIndex:-1});o.onclick=function(){t.handleSeriesCloseIcon(o,e,s)},o.onkeydown=function(n){"Enter"===n.key&&t.handleSeriesCloseIcon(o,e,s)};var i=a.dom.createEl("h2",{className:"series-selector-title",ariaLabel:"Seasons",innerHTML:"Seasons",id:"seasons"}),l=a.dom.createEl("div",{style:"position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;",ariaLive:"assertive",id:"sr-announcer",tabIndex:-1}),d=a.dom.createEl("div",{className:"series-selector-content"}),c=this.createSeasonLister();a.dom.appendContent(n,l),a.dom.appendContent(d,c),a.dom.appendContent(n,o),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),u.handleDrawerResizing(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;m.getPlayer(this.playerId);for(var t=c.getCurrentSeries(),s=a.dom.createEl("div",{className:"season-container"}),n=function(n){var o,i,l,r,d=document.createElement("label");d.className="season-holder",d.ariaLabel=null===(o=t[n])||void 0===o?void 0:o.title,d.role="button",d.type="button",d.setAttribute("aria-LabelledBy",null===(i=t[n])||void 0===i?void 0:i.title),d.setAttribute("for","season-".concat(n));var u=document.createElement("div");u.className="season - ".concat(n),u.textContent=null===(l=t[n])||void 0===l?void 0:l.title,u.id=null===(r=t[n])||void 0===r?void 0:r.title;var v=a.dom.createEl("input",{className:"radio - ".concat(n),id:"season-".concat(n),name:"season-radio"});v.setAttribute("type","radio"),e.selectedSeason==n&&(v.checked=!0),v.onclick=function(t){c.seasonIdxManager.set(n),e.showSeasonDetails(n)},d.onkeydown=function(t){"Enter"===t.key&&(c.seasonIdxManager.set(n),e.showSeasonDetails(n))},a.dom.appendContent(d,v),a.dom.appendContent(d,u),a.dom.appendContent(s,d)},o=0;o<t.length;o++)n(o);return s}},{key:"loadSeriesAssetById",value:function(e,t){var s,n=this;c.setVideoIdxById(null===(s=e[t])||void 0===s?void 0:s.id),d.load(this.playerId,e[t].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))}},{key:"getSeasonDetailsContainer",value:function(t,s){var n=this;t=t.map((function(e){var t,s,o,i,l,a,r,d,c;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:(null==e||null===(s=e.gist)||void 0===s||null===(o=s.imageGist)||void 0===o?void 0:o.r16x9)||(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(a=l.appcmsMain)||void 0===a||null===(r=a.images)||void 0===r?void 0:r.placeholderCover),watchedPercentage:(null==n||null===(d=n.watchMap)||void 0===d||null===(c=d.get(null==e?void 0:e.id))||void 0===c?void 0:c.p)||0}}));for(var o=function(o){var i,l,r,d,c,v=a.dom.createEl("div",{className:"series-container",tabIndex:0,role:"button",type:"button"}),m=a.dom.createEl("div",{className:"series-section-data",index:o,innerHTML:"".concat((null===(i=t[o])||void 0===i?void 0:i.title)||"")});a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(l=t[o])||void 0===l?void 0:l.title)||"")}),a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[o].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var p=a.dom.createEl("div",{className:"series-section-image"}),h=(null===(r=t[o])||void 0===r?void 0:r.description)||"";(null===(d=h)||void 0===d?void 0:d.length)>170&&(h=h.substr(0,170)+"..."),a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(h||"")});var y=a.dom.createEl("img",{className:"series-image"});y.src="".concat(u.impolicy16x9(null===(c=t[o])||void 0===c?void 0:c.img)),y.alt="Episode ".concat(o+1),a.dom.appendContent(p,y),a.dom.appendContent(v,p),a.dom.appendContent(v,m),a.dom.appendContent(s,v),v.onclick=function(e){e.stopPropagation(),n.loadSeriesAssetById(t,o)},v.onkeydown=function(e){"Enter"===e.key&&(e.stopPropagation(),n.loadSeriesAssetById(t,o))},m.onclick=function(t){var s,n,o,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(s=l.classList)&&void 0!==s&&s.contains("hidden")?(v.style.backgroundColor="#0000007d",null==l||null===(n=l.classList)||void 0===n||n.remove("hidden")):(null==l||null===(o=l.classList)||void 0===o||o.add("hidden"),v.style.backgroundColor="unset")}},i=0;i<t.length;i++)o(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=a.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=c.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(s,t);var n=a.dom.$(".series-selector-cross-icon",this.el());for(n.className="series-selector-back-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var o=u.parseSvgString(r.BackIcon());n.appendChild(o),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),h}();exports.default=g;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),s=require("@babel/runtime/helpers/assertThisInitialized"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-2609dbe4.js"),d=require("./generic-34d67718.js"),c=require("./currentVideoInfo-31d70bec.js"),u=require("./skin-516012d7.js"),v=require("./autoNextVideo-2238e469.js"),p=require("./player_instance-fcf6a8fb.js");function m(e){var t=h();return function(){var n,s=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(s,arguments,i)}else n=s.apply(this,arguments);return o(this,n)}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/slicedToArray"),require("./util-f0e2c1f3.js"),require("@babel/runtime/helpers/typeof");var g=l.getComponent("Component"),f=function(o){i(h,g);var r=m(h);function h(n){var i,o,l,a,d,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,h),(u=r.call(this,n,p)).playerId=p.playerId,u.seriesData=p.sres,u.videos=null==p||null===(i=p.sres)||void 0===i?void 0:i.seasons,u.currentVideoData=p.res,u.initialiseStructure(),u.loadCSS(),u.selectedSeason=0,u.cb=null==p||null===(o=p.series)||void 0===o?void 0:o.cb,u.autoPlayNext=(null==p||null===(l=p.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),u.watchMap=c.getSeriesWatchMap(),null!==(a=s(u))&&void 0!==a&&a.autoPlayNext&&null!=p&&null!==(d=p.series)&&void 0!==d&&d.enable){var m,g,f,y,C=null==p||null===(m=p.sres)||void 0===m?void 0:m.seasons,b=[];C.map((function(t){b.push.apply(b,e(t.episodes))})),c.createIdxMapping(b),c.setVideoIdxById(null===(g=u.options_)||void 0===g||null===(f=g.res)||void 0===f||null===(y=f.video)||void 0===y?void 0:y.id),v.autoPlayNext({playerId:u.playerId,content:b,cb:u.cb,series:null==p?void 0:p.sres})}return u}return n(h,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-e037e14e.js")})).then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,n=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(u.closeOpenDrawers(),e.classList.remove("hidden"),n.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"series-selection-container hidden"});l.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(n)};var s=document.getElementById(this.playerId);if(s){var i=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);n.style.height="".concat(i,"px"),l.dom.appendContent(t,n),s.style.overflow="hidden",this.addFunctionality(n)}}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),s=l.dom.createEl("div",{className:"series-selector-head"}),i=l.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.onclick=function(){if("series-selector-cross-icon"===i.className)e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===i.className){var s=l.dom.$(".series-selector-content",t.el());for(l.dom.$(".series-selector-cross-icon",t.el()),i.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=t.createSeasonLister();for(l.dom.appendContent(s,o),l.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=i&&i.firstChild;)i.removeChild(i.firstChild);var r=u.parseSvgString(a.crossIconSvg());i.appendChild(r)}};var o=l.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),r=l.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();l.dom.appendContent(r,d),l.dom.appendContent(s,i),l.dom.appendContent(s,o),l.dom.appendContent(e,s),l.dom.appendContent(e,r),p.getPlayer(this.playerId).on("fullscreenchange",(function(){var n=document.getElementById(t.playerId);if(n){var s=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(s,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;p.getPlayer(this.playerId);for(var t=c.getCurrentSeries(),n=l.dom.createEl("div",{className:"season-container"}),s=function(s){var i,o=document.createElement("label");o.className="season-holder",o.setAttribute("for","season-".concat(s));var r=document.createElement("div");r.className="season - ".concat(s),r.textContent=null===(i=t[s])||void 0===i?void 0:i.title;var a=l.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==s&&(a.checked=!0),a.onclick=function(t){c.seasonIdxManager.set(s),e.showSeasonDetails(s)},l.dom.appendContent(o,a),l.dom.appendContent(o,r),l.dom.appendContent(n,o)},i=0;i<t.length;i++)s(i);return n}},{key:"getSeasonDetailsContainer",value:function(t,n){var s=this;t=t.map((function(e){var t,n,i,o,r;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(n=e.gist)||void 0===n||null===(i=n.imageGist)||void 0===i?void 0:i.r16x9,watchedPercentage:(null==s||null===(o=s.watchMap)||void 0===o||null===(r=o.get(null==e?void 0:e.id))||void 0===r?void 0:r.p)||0}}));for(var i=function(i){var o,r,a,u,v,p,m,h=l.dom.createEl("div",{className:"series-container"}),g=l.dom.createEl("div",{className:"series-section",index:i}),f=l.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(o=t[i])||void 0===o?void 0:o.title)||"")}),y=l.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[i].watchedPercentage,"%' class='series-progress-bar-value'></div>")});l.dom.appendContent(g,f),l.dom.appendContent(g,y),l.dom.appendContent(h,g),l.dom.appendContent(n,h);var C=l.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(r=t[i])||void 0===r?void 0:r.description)||"";(null===(a=b)||void 0===a?void 0:a.length)>170&&(b=b.substr(0,170)+"...");var S=l.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),N=l.dom.createEl("img",{className:"series-image"});N.src="".concat((null===(u=t[i])||void 0===u?void 0:u.img)||(null===(v=window)||void 0===v||null===(p=v.customData)||void 0===p?void 0:p.fallbackImage)),N.alt="".concat(null===(m=t[i])||void 0===m?void 0:m.title),l.dom.appendContent(C,N),l.dom.appendContent(C,S),l.dom.appendContent(h,C),l.dom.appendContent(n,h),C.onclick=function(e){var n;e.stopPropagation(),c.setVideoIdxById(null===(n=t[i])||void 0===n?void 0:n.id),d.load(s.playerId,t[i].id).then((function(e){null!=s&&s.cb&&s.cb(e)})).catch((function(e){null!=s&&s.cb&&s.cb(e)}))},g.onclick=function(t){var n,s,i,o=document.getElementsByClassName("series-selector-content")[0].childNodes,r=(o=e(o))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=r&&null!==(n=r.classList)&&void 0!==n&&n.contains("hidden")?(h.style.backgroundColor="#0000007d",null==r||null===(s=r.classList)||void 0===s||s.remove("hidden")):(null==r||null===(i=r.classList)||void 0===i||i.add("hidden"),h.style.backgroundColor="unset")}},o=0;o<t.length;o++)i(o);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=l.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var n=c.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(n,t);var s=l.dom.$(".series-selector-cross-icon",this.el());for(s.className="series-selector-back-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var i=u.parseSvgString(a.BackIcon());s.appendChild(i),l.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),h}();exports.default=f;
1
+ "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),s=require("@babel/runtime/helpers/assertThisInitialized"),i=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-2609dbe4.js"),d=require("./generic-15a63f46.js"),c=require("./currentVideoInfo-31d70bec.js"),u=require("./skin-516012d7.js"),v=require("./autoNextVideo-6514c1af.js"),p=require("./player_instance-fcf6a8fb.js");function m(e){var t=h();return function(){var n,s=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(s,arguments,i)}else n=s.apply(this,arguments);return o(this,n)}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/slicedToArray"),require("./util-30c1868a.js"),require("@babel/runtime/helpers/typeof");var g=l.getComponent("Component"),f=function(o){i(h,g);var r=m(h);function h(n){var i,o,l,a,d,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,h),(u=r.call(this,n,p)).playerId=p.playerId,u.seriesData=p.sres,u.videos=null==p||null===(i=p.sres)||void 0===i?void 0:i.seasons,u.currentVideoData=p.res,u.initialiseStructure(),u.loadCSS(),u.selectedSeason=0,u.cb=null==p||null===(o=p.series)||void 0===o?void 0:o.cb,u.autoPlayNext=(null==p||null===(l=p.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),u.watchMap=c.getSeriesWatchMap(),null!==(a=s(u))&&void 0!==a&&a.autoPlayNext&&null!=p&&null!==(d=p.series)&&void 0!==d&&d.enable){var m,g,f,y,C=null==p||null===(m=p.sres)||void 0===m?void 0:m.seasons,b=[];C.map((function(t){b.push.apply(b,e(t.episodes))})),c.createIdxMapping(b),c.setVideoIdxById(null===(g=u.options_)||void 0===g||null===(f=g.res)||void 0===f||null===(y=f.video)||void 0===y?void 0:y.id),v.autoPlayNext({playerId:u.playerId,content:b,cb:u.cb,series:null==p?void 0:p.sres})}return u}return n(h,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-e037e14e.js")})).then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,n=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(u.closeOpenDrawers(),e.classList.remove("hidden"),n.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"series-selection-container hidden"});l.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(n)};var s=document.getElementById(this.playerId);if(s){var i=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);n.style.height="".concat(i,"px"),l.dom.appendContent(t,n),s.style.overflow="hidden",this.addFunctionality(n)}}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),s=l.dom.createEl("div",{className:"series-selector-head"}),i=l.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.onclick=function(){if("series-selector-cross-icon"===i.className)e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===i.className){var s=l.dom.$(".series-selector-content",t.el());for(l.dom.$(".series-selector-cross-icon",t.el()),i.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=t.createSeasonLister();for(l.dom.appendContent(s,o),l.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=i&&i.firstChild;)i.removeChild(i.firstChild);var r=u.parseSvgString(a.crossIconSvg());i.appendChild(r)}};var o=l.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),r=l.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();l.dom.appendContent(r,d),l.dom.appendContent(s,i),l.dom.appendContent(s,o),l.dom.appendContent(e,s),l.dom.appendContent(e,r),p.getPlayer(this.playerId).on("fullscreenchange",(function(){var n=document.getElementById(t.playerId);if(n){var s=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(s,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;p.getPlayer(this.playerId);for(var t=c.getCurrentSeries(),n=l.dom.createEl("div",{className:"season-container"}),s=function(s){var i,o=document.createElement("label");o.className="season-holder",o.setAttribute("for","season-".concat(s));var r=document.createElement("div");r.className="season - ".concat(s),r.textContent=null===(i=t[s])||void 0===i?void 0:i.title;var a=l.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==s&&(a.checked=!0),a.onclick=function(t){c.seasonIdxManager.set(s),e.showSeasonDetails(s)},l.dom.appendContent(o,a),l.dom.appendContent(o,r),l.dom.appendContent(n,o)},i=0;i<t.length;i++)s(i);return n}},{key:"getSeasonDetailsContainer",value:function(t,n){var s=this;t=t.map((function(e){var t,n,i,o,r;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(n=e.gist)||void 0===n||null===(i=n.imageGist)||void 0===i?void 0:i.r16x9,watchedPercentage:(null==s||null===(o=s.watchMap)||void 0===o||null===(r=o.get(null==e?void 0:e.id))||void 0===r?void 0:r.p)||0}}));for(var i=function(i){var o,r,a,u,v,p,m,h=l.dom.createEl("div",{className:"series-container"}),g=l.dom.createEl("div",{className:"series-section",index:i}),f=l.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(o=t[i])||void 0===o?void 0:o.title)||"")}),y=l.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[i].watchedPercentage,"%' class='series-progress-bar-value'></div>")});l.dom.appendContent(g,f),l.dom.appendContent(g,y),l.dom.appendContent(h,g),l.dom.appendContent(n,h);var C=l.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(r=t[i])||void 0===r?void 0:r.description)||"";(null===(a=b)||void 0===a?void 0:a.length)>170&&(b=b.substr(0,170)+"...");var S=l.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),N=l.dom.createEl("img",{className:"series-image"});N.src="".concat((null===(u=t[i])||void 0===u?void 0:u.img)||(null===(v=window)||void 0===v||null===(p=v.customData)||void 0===p?void 0:p.fallbackImage)),N.alt="".concat(null===(m=t[i])||void 0===m?void 0:m.title),l.dom.appendContent(C,N),l.dom.appendContent(C,S),l.dom.appendContent(h,C),l.dom.appendContent(n,h),C.onclick=function(e){var n;e.stopPropagation(),c.setVideoIdxById(null===(n=t[i])||void 0===n?void 0:n.id),d.load(s.playerId,t[i].id).then((function(e){null!=s&&s.cb&&s.cb(e)})).catch((function(e){null!=s&&s.cb&&s.cb(e)}))},g.onclick=function(t){var n,s,i,o=document.getElementsByClassName("series-selector-content")[0].childNodes,r=(o=e(o))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=r&&null!==(n=r.classList)&&void 0!==n&&n.contains("hidden")?(h.style.backgroundColor="#0000007d",null==r||null===(s=r.classList)||void 0===s||s.remove("hidden")):(null==r||null===(i=r.classList)||void 0===i||i.add("hidden"),h.style.backgroundColor="unset")}},o=0;o<t.length;o++)i(o);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=l.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var n=c.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(n,t);var s=l.dom.$(".series-selector-cross-icon",this.el());for(s.className="series-selector-back-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var i=u.parseSvgString(a.BackIcon());s.appendChild(i),l.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),h}();exports.default=f;
@@ -1 +1 @@
1
- "use strict";var e=require("./features-99e1bcb4.js"),l=require("./player_instance-fcf6a8fb.js"),i=require("./index-9400dc19.js"),r=require("./generic-34d67718.js");require("videojs-contrib-quality-menu");var n=require("./index-c2fa4876.js"),o=require("./helper-a50a8ffc.js"),a=require("./currentVideoInfo-31d70bec.js"),u=require("video.js"),d=require("./icons-2609dbe4.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./resolution-f9dcc1b4.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-516012d7.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-2238e469.js"),require("./util-f0e2c1f3.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("video.js/dist/video-js.min.css");function t(u,d){var t=l.getPlayer(u);t&&(t.on("loadeddata",(function(){var e,s,v,c,p,b=o.checkDvrStartOverEnabled(d),y=a.getCurrentEpgPrograms();t.qualityLevels()&&t.qualityLevels().length&&function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(u),!(null!=d&&null!==(e=d.series)&&void 0!==e&&e.enable||null!==(s=window)&&void 0!==s&&null!==(v=s.app_data)&&void 0!==v&&null!==(c=v.appcmsMain)&&void 0!==c&&null!==(p=c.features)&&void 0!==p&&p.auto_play)||null!=d&&d.liveVideo||i.addNextEpPreview(u,d),null!=d&&d.liveVideo||r.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||i.initiateTrickplay(u),b&&y&&y.length?n.initiateMarker(u):n.removeMarkers()})),t.one("play",(function(){var l,i,r,n;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(u,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}var s=function(e,i){var r,n,o,a,d,t,s,v,c,p,b,y,g=l.getPlayer(e),m=(null==i?void 0:i.theme)||{},q=u.dom.$(".vjs-play-progress"),h=u.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(r=window)||void 0===r||null===(n=r.app_data)||void 0===n||null===(o=n.appcmsMain)||void 0===o||null===(a=o.brand)||void 0===a||null===(d=a.cta)||void 0===d||null===(t=d.primary)||void 0===t?void 0:t.backgroundColor)),q&&(q.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(b=p.cta)||void 0===b||null===(y=b.primary)||void 0===y?void 0:y.backgroundColor));var f=g.getChild("BigPlayButton")||null;(null==m?void 0:m.progressBarColor)&&q&&(q.style.background=m.progressBarColor),(null==m?void 0:m.playButtonBackgroundColor)&&f&&(f.el().style.background=m.playButtonBackgroundColor),(null==m?void 0:m.playButtonColor)&&h&&(h.style.color=m.playButtonColor),(null==m?void 0:m.playButtonType)&&("square"==(null==m?void 0:m.playButtonType)?f.el().style.borderRadius=".3em":f.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(n,u){l.getPlayer(n).addClass("skin_vlone"),t(n,u),function(l,n){var u,t,s,v,c,p,b,y,g,m,q,h,f,w,k,j,C=(null==n?void 0:n.liveVideo)||!1,B=(null==n||null===(u=n.res)||void 0===u?void 0:u.contentType)||"video",S=(null==n||null===(t=n.res)||void 0===t||null===(s=t[B])||void 0===s?void 0:s.isSSAIEnabled)||!1,V=r.getSource(null==n?void 0:n.res,l)||{};V.src;var M=(null==n?void 0:n.skin_settings)||{};o.checkDvrStartOverEnabled(n),null!=M&&M.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(l,"VL_ONE",d.SkipSvgV2());(null!=M&&M.rewindBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(l,"VL_ONE",d.RewindSvgV2());(null==n||null===(v=n.relatedVideos)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&e.addVideoSelector(l,null==n?void 0:n.relatedVideos);null!=n&&null!==(p=n.series)&&void 0!==p&&p.enable&&e.addSeriesSelectorV2(l,n);(null==n||null===(b=n.streams)||void 0===b?void 0:b.length)>1&&e.addMulticamSelector(l,null==n?void 0:n.streams);if(i.addTVProviderImage(l,n),r.initialiseKeyboardEvents(l,n),"MEDIA_TAILOR"==(null===(y=window)||void 0===y||null===(g=y.app_data)||void 0===g||null===(m=g.appcmsMain)||void 0===m||null===(q=m.adsConfig)||void 0===q?void 0:q.vodAdSticherProvider)&&null!==(h=window)&&void 0!==h&&null!==(f=h.app_data)&&void 0!==f&&null!==(w=f.appcmsMain)&&void 0!==w&&null!==(k=w.adsConfig)&&void 0!==k&&k.vodAdClientSideTracking&&S)if(C)r.setupAdvertisementMarkersForLinear(l);else{var P,T=null;if(null!=n&&null!==(P=n.series)&&void 0!==P&&P.enable){var _,E,O,A,I,L=null===(_=a.getCurrentVideo())||void 0===_||null===(E=_.video)||void 0===E||null===(O=E.gist)||void 0===O?void 0:O.id,R=a.getSeriesWatchMap(),x=(null==R?void 0:R.get(L))||{t:0,p:0},D=x.t,N=x.p;"function"==typeof(null===(A=window)||void 0===A||null===(I=A.watchHistory)||void 0===I?void 0:I.cb)&&window.watchHistory.cb({watchedTime:D}),N<95&&(T=D)}else{var F=n.watchHistoryResumeTime;n.watchedPercentage<95&&(T=F)}r.setupAdvertisementMarkers(l,T)}null!=n&&n.isDvrEnabled&&null!=n&&null!==(j=n.dvrConfig)&&void 0!==j&&j.enable&&(e.addStartFromBeginningButton(l,n),e.addWatchLiveButton(l,n))}(n,u),s(n,u)};
1
+ "use strict";var e=require("./features-77160208.js"),l=require("./player_instance-fcf6a8fb.js"),i=require("./index-cc30402b.js"),r=require("./generic-15a63f46.js");require("videojs-contrib-quality-menu");var n=require("./index-0fcf7525.js"),o=require("./helper-a50a8ffc.js"),a=require("./currentVideoInfo-31d70bec.js"),u=require("video.js"),d=require("./icons-2609dbe4.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./resolution-f9dcc1b4.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-516012d7.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-6514c1af.js"),require("./util-30c1868a.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("video.js/dist/video-js.min.css");function t(u,d){var t=l.getPlayer(u);t&&(t.on("loadeddata",(function(){var e,s,v,c,p,b=o.checkDvrStartOverEnabled(d),y=a.getCurrentEpgPrograms();t.qualityLevels()&&t.qualityLevels().length&&function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(u),!(null!=d&&null!==(e=d.series)&&void 0!==e&&e.enable||null!==(s=window)&&void 0!==s&&null!==(v=s.app_data)&&void 0!==v&&null!==(c=v.appcmsMain)&&void 0!==c&&null!==(p=c.features)&&void 0!==p&&p.auto_play)||null!=d&&d.liveVideo||i.addNextEpPreview(u,d),null!=d&&d.liveVideo||r.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||i.initiateTrickplay(u),b&&y&&y.length?n.initiateMarker(u):n.removeMarkers()})),t.one("play",(function(){var l,i,r,n;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(u,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}var s=function(e,i){var r,n,o,a,d,t,s,v,c,p,b,y,g=l.getPlayer(e),m=(null==i?void 0:i.theme)||{},q=u.dom.$(".vjs-play-progress"),h=u.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(r=window)||void 0===r||null===(n=r.app_data)||void 0===n||null===(o=n.appcmsMain)||void 0===o||null===(a=o.brand)||void 0===a||null===(d=a.cta)||void 0===d||null===(t=d.primary)||void 0===t?void 0:t.backgroundColor)),q&&(q.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(b=p.cta)||void 0===b||null===(y=b.primary)||void 0===y?void 0:y.backgroundColor));var f=g.getChild("BigPlayButton")||null;(null==m?void 0:m.progressBarColor)&&q&&(q.style.background=m.progressBarColor),(null==m?void 0:m.playButtonBackgroundColor)&&f&&(f.el().style.background=m.playButtonBackgroundColor),(null==m?void 0:m.playButtonColor)&&h&&(h.style.color=m.playButtonColor),(null==m?void 0:m.playButtonType)&&("square"==(null==m?void 0:m.playButtonType)?f.el().style.borderRadius=".3em":f.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(n,u){l.getPlayer(n).addClass("skin_vlone"),t(n,u),function(l,n){var u,t,s,v,c,p,b,y,g,m,q,h,f,w,k,j,C=(null==n?void 0:n.liveVideo)||!1,B=(null==n||null===(u=n.res)||void 0===u?void 0:u.contentType)||"video",S=(null==n||null===(t=n.res)||void 0===t||null===(s=t[B])||void 0===s?void 0:s.isSSAIEnabled)||!1,V=r.getSource(null==n?void 0:n.res,l)||{};V.src;var M=(null==n?void 0:n.skin_settings)||{};o.checkDvrStartOverEnabled(n),null!=M&&M.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(l,"VL_ONE",d.SkipSvgV2());(null!=M&&M.rewindBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(l,"VL_ONE",d.RewindSvgV2());(null==n||null===(v=n.relatedVideos)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&e.addVideoSelector(l,null==n?void 0:n.relatedVideos);null!=n&&null!==(p=n.series)&&void 0!==p&&p.enable&&e.addSeriesSelectorV2(l,n);(null==n||null===(b=n.streams)||void 0===b?void 0:b.length)>1&&e.addMulticamSelector(l,null==n?void 0:n.streams);if(i.addTVProviderImage(l,n),r.initialiseKeyboardEvents(l,n),"MEDIA_TAILOR"==(null===(y=window)||void 0===y||null===(g=y.app_data)||void 0===g||null===(m=g.appcmsMain)||void 0===m||null===(q=m.adsConfig)||void 0===q?void 0:q.vodAdSticherProvider)&&null!==(h=window)&&void 0!==h&&null!==(f=h.app_data)&&void 0!==f&&null!==(w=f.appcmsMain)&&void 0!==w&&null!==(k=w.adsConfig)&&void 0!==k&&k.vodAdClientSideTracking&&S)if(C)r.setupAdvertisementMarkersForLinear(l);else{var P,T=null;if(null!=n&&null!==(P=n.series)&&void 0!==P&&P.enable){var _,E,O,A,I,L=null===(_=a.getCurrentVideo())||void 0===_||null===(E=_.video)||void 0===E||null===(O=E.gist)||void 0===O?void 0:O.id,R=a.getSeriesWatchMap(),x=(null==R?void 0:R.get(L))||{t:0,p:0},D=x.t,N=x.p;"function"==typeof(null===(A=window)||void 0===A||null===(I=A.watchHistory)||void 0===I?void 0:I.cb)&&window.watchHistory.cb({watchedTime:D}),N<95&&(T=D)}else{var F=n.watchHistoryResumeTime;n.watchedPercentage<95&&(T=F)}r.setupAdvertisementMarkers(l,T)}null!=n&&n.isDvrEnabled&&null!=n&&null!==(j=n.dvrConfig)&&void 0!==j&&j.enable&&(e.addStartFromBeginningButton(l,n),e.addWatchLiveButton(l,n))}(n,u),s(n,u)};
@@ -1 +1 @@
1
- "use strict";var e=require("./features-99e1bcb4.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),r=require("./skin-516012d7.js"),n=require("./resolution-f9dcc1b4.js"),o=require("./captions-dbc83a75.js"),t=require("./index-9400dc19.js"),d=require("./generic-34d67718.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./currentVideoInfo-31d70bec.js"),require("./autoNextVideo-2238e469.js"),require("./util-f0e2c1f3.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),exports.initialiseSkin=function(u,a){i.getPlayer(u).addClass("skin_defaultv2"),function(){"Chrome"==d.detectBrowser()&&Promise.resolve().then((function(){return require("./chromett-f925fb6c.js")})).then((function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)}));Promise.resolve().then((function(){return require("./skin-38de8257.js")})).then((function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)}))}(),function(l,r){var u=i.getPlayer(l);u&&(u.on("loadeddata",(function(){var i,u,a,s,v,c,p;(null===(i=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,r),(null===(u=o.getCaptions(l))||void 0===u?void 0:u.length)>0&&e.addCaptionButton(l,r),!(null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable||null!==(s=window)&&void 0!==s&&null!==(v=s.app_data)&&void 0!==v&&null!==(c=v.appcmsMain)&&void 0!==c&&null!==(p=c.features)&&void 0!==p&&p.auto_play)||null!=r&&r.liveVideo||t.addNextEpPreview(l,r),null!=r&&r.liveVideo||d.isMobile()||t.initiateTrickplay(l)})),u.one("play",(function(){var i,r,n,o;null!==(i=window)&&void 0!==i&&null!==(r=i.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)})))}(u,a),function(e,n){var o,t,d,u,a,s,v,c,p,m,h,g,b,q=i.getPlayer(e);null===(o=q.controlBar)||void 0===o||o.removeChild("VolumePanel"),null===(t=q.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var f=null===(d=q.controlBar)||void 0===d?void 0:d.getChild("ProgressControl"),y=null===(u=q.controlBar)||void 0===u?void 0:u.getChild("CurrentTimeDisplay"),C=null===(a=q.controlBar)||void 0===a?void 0:a.getChild("SeekToLive"),V=document.createElement("div");V.className="custom-spaced-progress-bar",f&&y&&C&&V.append(f.el(),y.el(),C.el());null===(s=q.controlBar)||void 0===s||null===(v=s.el())||void 0===v||v.append(V),null==q||null===(c=q.controlBar)||void 0===c||null===(p=c.getChild("FullscreenToggle"))||void 0===p||null===(m=p.el())||void 0===m||m.appendChild(r.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==q||null===(h=q.controlBar)||void 0===h||null===(g=h.getChild("FullscreenToggle"))||void 0===g||null===(b=g.el())||void 0===b||b.appendChild(r.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var j=document.getElementsByClassName("vjs-time-control");n.liveVideo&&j[0]&&(j[0].style.display="none")}(u,a),function(i,r){var n,o,t,d,u,a,s=(null==r?void 0:r.skin_settings)||{},v=0!=(null==s?void 0:s.slowMoBtn);0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());!r.liveVideo&&v&&e.addSlowMotion(i);(null==r||null===(n=r.relatedVideos)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.relatedVideos);(null==r||null===(t=r.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.streams);(null==r||null===(d=r.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==r?void 0:r.playlist);null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,r)}(u,a),t.addTVProviderImage(u,a)};
1
+ "use strict";var e=require("./features-77160208.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),r=require("./skin-516012d7.js"),n=require("./resolution-f9dcc1b4.js"),o=require("./captions-dbc83a75.js"),t=require("./index-cc30402b.js"),d=require("./generic-15a63f46.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./currentVideoInfo-31d70bec.js"),require("./autoNextVideo-6514c1af.js"),require("./util-30c1868a.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),exports.initialiseSkin=function(u,a){i.getPlayer(u).addClass("skin_defaultv2"),function(){"Chrome"==d.detectBrowser()&&Promise.resolve().then((function(){return require("./chromett-f925fb6c.js")})).then((function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)}));Promise.resolve().then((function(){return require("./skin-38de8257.js")})).then((function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)}))}(),function(l,r){var u=i.getPlayer(l);u&&(u.on("loadeddata",(function(){var i,u,a,s,v,c,p;(null===(i=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,r),(null===(u=o.getCaptions(l))||void 0===u?void 0:u.length)>0&&e.addCaptionButton(l,r),!(null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable||null!==(s=window)&&void 0!==s&&null!==(v=s.app_data)&&void 0!==v&&null!==(c=v.appcmsMain)&&void 0!==c&&null!==(p=c.features)&&void 0!==p&&p.auto_play)||null!=r&&r.liveVideo||t.addNextEpPreview(l,r),null!=r&&r.liveVideo||d.isMobile()||t.initiateTrickplay(l)})),u.one("play",(function(){var i,r,n,o;null!==(i=window)&&void 0!==i&&null!==(r=i.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)})))}(u,a),function(e,n){var o,t,d,u,a,s,v,c,p,m,h,g,b,q=i.getPlayer(e);null===(o=q.controlBar)||void 0===o||o.removeChild("VolumePanel"),null===(t=q.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var f=null===(d=q.controlBar)||void 0===d?void 0:d.getChild("ProgressControl"),y=null===(u=q.controlBar)||void 0===u?void 0:u.getChild("CurrentTimeDisplay"),C=null===(a=q.controlBar)||void 0===a?void 0:a.getChild("SeekToLive"),V=document.createElement("div");V.className="custom-spaced-progress-bar",f&&y&&C&&V.append(f.el(),y.el(),C.el());null===(s=q.controlBar)||void 0===s||null===(v=s.el())||void 0===v||v.append(V),null==q||null===(c=q.controlBar)||void 0===c||null===(p=c.getChild("FullscreenToggle"))||void 0===p||null===(m=p.el())||void 0===m||m.appendChild(r.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==q||null===(h=q.controlBar)||void 0===h||null===(g=h.getChild("FullscreenToggle"))||void 0===g||null===(b=g.el())||void 0===b||b.appendChild(r.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var j=document.getElementsByClassName("vjs-time-control");n.liveVideo&&j[0]&&(j[0].style.display="none")}(u,a),function(i,r){var n,o,t,d,u,a,s=(null==r?void 0:r.skin_settings)||{},v=0!=(null==s?void 0:s.slowMoBtn);0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());!r.liveVideo&&v&&e.addSlowMotion(i);(null==r||null===(n=r.relatedVideos)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.relatedVideos);(null==r||null===(t=r.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.streams);(null==r||null===(d=r.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==r?void 0:r.playlist);null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,r)}(u,a),t.addTVProviderImage(u,a)};
@@ -1 +1 @@
1
- "use strict";var e=require("./features-99e1bcb4.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-516012d7.js"),t=require("./resolution-f9dcc1b4.js"),o=require("./index-9400dc19.js"),r=require("./generic-34d67718.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./currentVideoInfo-31d70bec.js"),require("./autoNextVideo-2238e469.js"),require("./util-f0e2c1f3.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),exports.initialiseSkin=function(s,u){i.getPlayer(s).addClass("skin_news"),function(){"Chrome"==r.detectBrowser()&&Promise.resolve().then((function(){return require("./chromett-f925fb6c.js")})).then((function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)}));Promise.resolve().then((function(){return require("./skin-12248e27.js")})).then((function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)}))}(),function(l,n){var s=i.getPlayer(l);s&&s.on("loadeddata",(function(){var i,s,u,d,C,a;(null===(i=t.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,n),!(null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(d=u.app_data)&&void 0!==d&&null!==(C=d.appcmsMain)&&void 0!==C&&null!==(a=C.features)&&void 0!==a&&a.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(l,n),null!=n&&n.liveVideo||r.isMobile()||o.initiateTrickplay(l)}))}(s,u),function(e,l){var t,o,r,s,u,d,C,a,v,c,h,p,f,m,b,B,y,L,j=i.getPlayer(e);null===(t=j.controlBar)||void 0===t||t.removeChild("VolumePanel"),null===(o=j.controlBar)||void 0===o||o.addChild("VolumePanel",{inline:!1},1);var g=null===(r=j.controlBar)||void 0===r?void 0:r.getChild("ProgressControl"),V=document.createElement("div");V.className="custom-spaced-progress-bar",g&&V.append(g.el());null===(s=j.controlBar)||void 0===s||null===(u=s.el())||void 0===u||u.append(V);var E='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';j.el().insertBefore(n.parseSvgString(E),null!==(d=j.el().firstChild)&&void 0!==d?d:null);var w=(null==j||null===(C=j.controlBar)||void 0===C||null===(a=C.getChild("PlayToggle"))||void 0===a||null===(v=a.el())||void 0===v?void 0:v.firstChild)||null;if(w){w.style.height="24px",w.style.width="24px";var x=n.injectSVG(w,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",(function(){return x.setAttributeNS(null,"href","#vjs-icon-play")})),j.on("play",(function(){return x.setAttributeNS(null,"href","#vjs-icon-pause")}))}var S=(null==j||null===(c=j.controlBar)||void 0===c||null===(h=c.getChild("FullscreenToggle"))||void 0===h||null===(p=h.el())||void 0===p?void 0:p.firstChild)||null;if(S){S.style.height="24px",S.style.width="24px";var q=n.injectSVG(S,"#vjs-icon-fullscreen");j.on("fullscreenchange",(function(){var e=j.isFullscreen_;null==q||q.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var M=(null==j||null===(f=j.controlBar)||void 0===f||null===(m=f.getChild("VolumePanel"))||void 0===m?void 0:m.el())||null;if(M){var k=M.querySelector(".vjs-mute-control .vjs-icon-placeholder");k.classList.add("vjs-svg-icon"),k.style.height="24px",k.style.width="24px";var P=n.injectSVG(k,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",(function(e){var l=j.volume();console.log(l,j.muted()),0==l||j.muted()?P.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?P.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?P.setAttributeNS(null,"href","#vjs-icon-volume2"):P.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var Z=(null==j||null===(b=j.controlBar)||void 0===b||null===(B=b.getChild("PictureInPictureToggle"))||void 0===B?void 0:B.el())||null;if(Z){var _=null==Z?void 0:Z.querySelector(".vjs-icon-placeholder");_.style.height="16px",_.style.width="25px";var A=n.injectSVG(_,"#vjs-icon-pip");j.on("enterpictureinpicture",(function(){A.setAttributeNS(null,"href","#vjs-icon-pip")}))}var N=(null==j||null===(y=j.controlBar)||void 0===y||null===(L=y.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(N){var T=N.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");T.classList.add("vjs-svg-icon"),T.style.height="16px",T.style.width="29px";var H=n.injectSVG(T,"#vjs-icon-caps");H.setAttributeNS(null,"href","#vjs-icon-captions-off"),j.textTracks().on("change",(function(e){for(var l=j.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?H.setAttributeNS(null,"href","#vjs-icon-captions"):H.setAttributeNS(null,"href","#vjs-icon-captions-off")}))}}(s),function(i,n){var t,o,r,s,u,d,C=(null==n?void 0:n.skin_settings)||{};null==C||C.slowMoBtn,null!=C&&C.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());(null!=C&&C.rewindBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(t=n.relatedVideos)||void 0===t||null===(o=t.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(r=n.streams)||void 0===r?void 0:r.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(s=n.playlist)||void 0===s||null===(u=s.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(d=n.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n)}(s,u),o.addTVProviderImage(s,u)};
1
+ "use strict";var e=require("./features-77160208.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-516012d7.js"),t=require("./resolution-f9dcc1b4.js"),o=require("./index-cc30402b.js"),r=require("./generic-15a63f46.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./currentVideoInfo-31d70bec.js"),require("./autoNextVideo-6514c1af.js"),require("./util-30c1868a.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),exports.initialiseSkin=function(s,u){i.getPlayer(s).addClass("skin_news"),function(){"Chrome"==r.detectBrowser()&&Promise.resolve().then((function(){return require("./chromett-f925fb6c.js")})).then((function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)}));Promise.resolve().then((function(){return require("./skin-12248e27.js")})).then((function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)}))}(),function(l,n){var s=i.getPlayer(l);s&&s.on("loadeddata",(function(){var i,s,u,d,C,a;(null===(i=t.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,n),!(null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(d=u.app_data)&&void 0!==d&&null!==(C=d.appcmsMain)&&void 0!==C&&null!==(a=C.features)&&void 0!==a&&a.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(l,n),null!=n&&n.liveVideo||r.isMobile()||o.initiateTrickplay(l)}))}(s,u),function(e,l){var t,o,r,s,u,d,C,a,v,c,h,p,f,m,b,B,y,L,j=i.getPlayer(e);null===(t=j.controlBar)||void 0===t||t.removeChild("VolumePanel"),null===(o=j.controlBar)||void 0===o||o.addChild("VolumePanel",{inline:!1},1);var g=null===(r=j.controlBar)||void 0===r?void 0:r.getChild("ProgressControl"),V=document.createElement("div");V.className="custom-spaced-progress-bar",g&&V.append(g.el());null===(s=j.controlBar)||void 0===s||null===(u=s.el())||void 0===u||u.append(V);var E='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';j.el().insertBefore(n.parseSvgString(E),null!==(d=j.el().firstChild)&&void 0!==d?d:null);var w=(null==j||null===(C=j.controlBar)||void 0===C||null===(a=C.getChild("PlayToggle"))||void 0===a||null===(v=a.el())||void 0===v?void 0:v.firstChild)||null;if(w){w.style.height="24px",w.style.width="24px";var x=n.injectSVG(w,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",(function(){return x.setAttributeNS(null,"href","#vjs-icon-play")})),j.on("play",(function(){return x.setAttributeNS(null,"href","#vjs-icon-pause")}))}var S=(null==j||null===(c=j.controlBar)||void 0===c||null===(h=c.getChild("FullscreenToggle"))||void 0===h||null===(p=h.el())||void 0===p?void 0:p.firstChild)||null;if(S){S.style.height="24px",S.style.width="24px";var q=n.injectSVG(S,"#vjs-icon-fullscreen");j.on("fullscreenchange",(function(){var e=j.isFullscreen_;null==q||q.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var M=(null==j||null===(f=j.controlBar)||void 0===f||null===(m=f.getChild("VolumePanel"))||void 0===m?void 0:m.el())||null;if(M){var k=M.querySelector(".vjs-mute-control .vjs-icon-placeholder");k.classList.add("vjs-svg-icon"),k.style.height="24px",k.style.width="24px";var P=n.injectSVG(k,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",(function(e){var l=j.volume();console.log(l,j.muted()),0==l||j.muted()?P.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?P.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?P.setAttributeNS(null,"href","#vjs-icon-volume2"):P.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var Z=(null==j||null===(b=j.controlBar)||void 0===b||null===(B=b.getChild("PictureInPictureToggle"))||void 0===B?void 0:B.el())||null;if(Z){var _=null==Z?void 0:Z.querySelector(".vjs-icon-placeholder");_.style.height="16px",_.style.width="25px";var A=n.injectSVG(_,"#vjs-icon-pip");j.on("enterpictureinpicture",(function(){A.setAttributeNS(null,"href","#vjs-icon-pip")}))}var N=(null==j||null===(y=j.controlBar)||void 0===y||null===(L=y.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(N){var T=N.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");T.classList.add("vjs-svg-icon"),T.style.height="16px",T.style.width="29px";var H=n.injectSVG(T,"#vjs-icon-caps");H.setAttributeNS(null,"href","#vjs-icon-captions-off"),j.textTracks().on("change",(function(e){for(var l=j.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?H.setAttributeNS(null,"href","#vjs-icon-captions"):H.setAttributeNS(null,"href","#vjs-icon-captions-off")}))}}(s),function(i,n){var t,o,r,s,u,d,C=(null==n?void 0:n.skin_settings)||{};null==C||C.slowMoBtn,null!=C&&C.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());(null!=C&&C.rewindBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(t=n.relatedVideos)||void 0===t||null===(o=t.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(r=n.streams)||void 0===r?void 0:r.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(s=n.playlist)||void 0===s||null===(u=s.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(d=n.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n)}(s,u),o.addTVProviderImage(s,u)};
@@ -1 +1 @@
1
- "use strict";var e=require("./player_instance-fcf6a8fb.js"),r=require("./features-99e1bcb4.js"),i=require("./resolution-f9dcc1b4.js"),n=require("./captions-dbc83a75.js");require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-34d67718.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./skin-516012d7.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(t,s){Promise.resolve().then((function(){return require("./skin-fc1e7e52.js")})).then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(t,s){e.getPlayer(t).on("loadeddata",(function(){var e;(null===(e=i.getRenditions(t))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(t,s),null!=s&&s.disableCaptions&&n.removeCaptions(t)}))}(t,s),function(i,n){var t=e.getPlayer(i);t.controls(!1),r.addDBClickFullScreen(i)}(t)};
1
+ "use strict";var e=require("./player_instance-fcf6a8fb.js"),r=require("./features-77160208.js"),i=require("./resolution-f9dcc1b4.js"),n=require("./captions-dbc83a75.js");require("video.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("./generic-15a63f46.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./skin-516012d7.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(t,s){Promise.resolve().then((function(){return require("./skin-fc1e7e52.js")})).then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(t,s){e.getPlayer(t).on("loadeddata",(function(){var e;(null===(e=i.getRenditions(t))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(t,s),null!=s&&s.disableCaptions&&n.removeCaptions(t)}))}(t,s),function(i,n){var t=e.getPlayer(i);t.controls(!1),r.addDBClickFullScreen(i)}(t)};
@@ -1 +1 @@
1
- "use strict";var e=require("./generic-34d67718.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("./skin-516012d7.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var i=function(i){var n=r.getPlayer(i),t=document.getElementById("".concat(i));t&&t.addEventListener("touchstart",(function(){n.paused()?e.play(i):e.pause(i)}))},n=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){n(e),i(e)};
1
+ "use strict";var e=require("./generic-15a63f46.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("./skin-516012d7.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var i=function(i){var n=r.getPlayer(i),t=document.getElementById("".concat(i));t&&t.addEventListener("touchstart",(function(){n.paused()?e.play(i):e.pause(i)}))},n=function(e){var i=r.getPlayer(e);i.requestFullscreen=function(){},i.controlBar.hide()};exports.initaliseSkin=function(e){n(e),i(e)};
@@ -1 +1 @@
1
- "use strict";var e=require("./generic-34d67718.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("./skin-516012d7.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(n){Promise.resolve().then((function(){return require("./skin-225252ff.js")})).then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),i(),function(i){var n=document.getElementById("".concat(i)),t=r.getPlayer(i);n&&n.addEventListener("touchstart",(function(){t.paused()?e.play(i):e.pause(i)}))}(n)};
1
+ "use strict";var e=require("./generic-15a63f46.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("js-cookie"),require("./currentVideoInfo-31d70bec.js"),require("./captions-dbc83a75.js"),require("./skin-516012d7.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(n){Promise.resolve().then((function(){return require("./skin-225252ff.js")})).then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),i(),function(i){var n=document.getElementById("".concat(i)),t=r.getPlayer(i);n&&n.addEventListener("touchstart",(function(){t.paused()?e.play(i):e.pause(i)}))}(n)};
@@ -1 +1 @@
1
- "use strict";var e=require("./features-99e1bcb4.js"),r=require("./generic-34d67718.js"),i=require("./icons-2609dbe4.js"),n=require("./player_instance-fcf6a8fb.js"),t=require("./skin-516012d7.js"),s=require("./currentVideoInfo-31d70bec.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./resolution-f9dcc1b4.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/slicedToArray"),exports.initialiseSkin=function(l,o){n.getPlayer(l).addClass("skin_default"),r.initialiseKeyboardEvents(l,o),Promise.resolve().then((function(){return require("./skin-ba38afdb.js")})).then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r,n){0==n.liveVideo&&0==n.liveui&&e.addSkipButton(r,"default",i.SkipSvg());(0==n.liveVideo&&0==n.liveui||1==n.liveui)&&e.addRewindButton(r,"default",i.RewindSvg())}(l,o),function(r,t){var l=n.getPlayer(r),o=(null==t?void 0:t.sres)||null;l.on("loadeddata",(function(){e.addResolutionModule(r,"default",i.SettingsSvg()),o&&Promise.resolve().then((function(){return require("./nextEpisodeButton-7eb4a747.js")})).then((function(e){e.initaliseFunctionality(t.sres.seasons,s.getCurrentVideo())}))})),l.one("loadedmetadata",(function(){var i;o&&(e.addSeriesModule(r,null==t||null===(i=t.sres)||void 0===i?void 0:i.seasons,t),e.addNextEpisodeButton(t.sres,t.res,r))}))}(l,o),function(e,r){var s,l,o,a,u=n.getPlayer(e),d=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],m=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(d&&(d.style.display="none"),c&&(c.style.display="none"),m&&(m.style.display="none"));null===(s=u.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(l=s.el())||void 0===l||l.appendChild(t.createIconMarkup(i.MinimizeSvg(window.controlsColor))),null===(o=u.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(a=o.el())||void 0===a||a.appendChild(t.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var p=u.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(t.createIconMarkup(i.NewCaptionsSvg()));var v=document.createElement("div");v.classList.add("caption-header"),p.querySelector(".vjs-menu-content").insertBefore(v,p.querySelector(".vjs-menu-item"))}(l,o)};
1
+ "use strict";var e=require("./features-77160208.js"),r=require("./generic-15a63f46.js"),i=require("./icons-2609dbe4.js"),n=require("./player_instance-fcf6a8fb.js"),t=require("./skin-516012d7.js"),s=require("./currentVideoInfo-31d70bec.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./resolution-f9dcc1b4.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("./captions-dbc83a75.js"),require("@babel/runtime/helpers/slicedToArray"),exports.initialiseSkin=function(l,o){n.getPlayer(l).addClass("skin_default"),r.initialiseKeyboardEvents(l,o),Promise.resolve().then((function(){return require("./skin-ba38afdb.js")})).then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r,n){0==n.liveVideo&&0==n.liveui&&e.addSkipButton(r,"default",i.SkipSvg());(0==n.liveVideo&&0==n.liveui||1==n.liveui)&&e.addRewindButton(r,"default",i.RewindSvg())}(l,o),function(r,t){var l=n.getPlayer(r),o=(null==t?void 0:t.sres)||null;l.on("loadeddata",(function(){e.addResolutionModule(r,"default",i.SettingsSvg()),o&&Promise.resolve().then((function(){return require("./nextEpisodeButton-0c4b0b10.js")})).then((function(e){e.initaliseFunctionality(t.sres.seasons,s.getCurrentVideo())}))})),l.one("loadedmetadata",(function(){var i;o&&(e.addSeriesModule(r,null==t||null===(i=t.sres)||void 0===i?void 0:i.seasons,t),e.addNextEpisodeButton(t.sres,t.res,r))}))}(l,o),function(e,r){var s,l,o,a,u=n.getPlayer(e),d=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],m=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(d&&(d.style.display="none"),c&&(c.style.display="none"),m&&(m.style.display="none"));null===(s=u.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(l=s.el())||void 0===l||l.appendChild(t.createIconMarkup(i.MinimizeSvg(window.controlsColor))),null===(o=u.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(a=o.el())||void 0===a||a.appendChild(t.createIconMarkup(i.MaximizeSvg(window.controlsColor)));var p=u.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(t.createIconMarkup(i.NewCaptionsSvg()));var v=document.createElement("div");v.classList.add("caption-header"),p.querySelector(".vjs-menu-content").insertBefore(v,p.querySelector(".vjs-menu-item"))}(l,o)};