@viewlift/player-backup 2.0.76-smartTv → 2.0.77-smartTv

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/cjs/{autoNextVideo-9af1923e.js → autoNextVideo-2f849ab7.js} +1 -1
  2. package/cjs/bundle.css +146 -146
  3. package/cjs/{features-26fa4edd.js → features-c643adf5.js} +1 -1
  4. package/cjs/{generic-7a2d3bab.js → generic-ffaf708b.js} +1 -1
  5. package/cjs/{index-04ae1d0e.js → index-0005d1eb.js} +1 -1
  6. package/cjs/{index-815625cd.js → index-e7695120.js} +1 -1
  7. package/cjs/index.js +1 -1
  8. package/cjs/{multicamv2-4163e6a7.js → multicamv2-68e10b06.js} +1 -1
  9. package/cjs/{multicamv2-2afa4732.js → multicamv2-8085606f.js} +1 -1
  10. package/cjs/{nextEpisodeButton-34c59253.js → nextEpisodeButton-0b70c200.js} +1 -1
  11. package/cjs/{playlist-05848259.js → playlist-a1e112cc.js} +1 -1
  12. package/cjs/{series-90d2ec17.js → series-a20f9669.js} +1 -1
  13. package/cjs/{series-v2-6730e5ea.js → series-v2-96c005f3.js} +1 -1
  14. package/cjs/{series-v2-7b4a20dc.js → series-v2-d0cac00f.js} +1 -1
  15. package/cjs/{skin-1cb4029f.js → skin-684adfe2.js} +1 -1
  16. package/cjs/{skin-88b59136.js → skin-93092645.js} +1 -1
  17. package/cjs/{skin-090b02d5.js → skin-c3c25fd0.js} +1 -1
  18. package/cjs/{skin-745aa443.js → skin-d7d6942e.js} +1 -1
  19. package/cjs/{skin-18b458d2.js → skin-e5bfcf99.js} +1 -1
  20. package/cjs/{skin-b95158cf.js → skin-f40d0e53.js} +1 -1
  21. package/cjs/{skin-714e8f54.js → skin-f5a6dbe4.js} +1 -1
  22. package/cjs/{videoSelector-12a8583d.js → videoSelector-25018936.js} +1 -1
  23. package/cjs/{videoSelector-bd7a4a4f.js → videoSelector-5718dcf0.js} +1 -1
  24. package/esm/{autoNextVideo-1796d1ca.js → autoNextVideo-05a87fc9.js} +1 -1
  25. package/esm/bundle.css +146 -146
  26. package/esm/{features-446510f2.js → features-86ccd943.js} +1 -1
  27. package/esm/{generic-04b35f2c.js → generic-86e80064.js} +1 -1
  28. package/esm/{index-fee17e49.js → index-0d7a65a3.js} +1 -1
  29. package/esm/{index-b2dbf999.js → index-18b210e2.js} +1 -1
  30. package/esm/index.js +1 -1
  31. package/esm/{multicamv2-c13490c4.js → multicamv2-82e81188.js} +1 -1
  32. package/esm/{multicamv2-ebb3298c.js → multicamv2-9734e317.js} +1 -1
  33. package/esm/{nextEpisodeButton-27b11d27.js → nextEpisodeButton-85ae81cc.js} +1 -1
  34. package/esm/{playlist-0ace00a9.js → playlist-9e54e84c.js} +1 -1
  35. package/esm/{series-1a566674.js → series-8a5c2064.js} +1 -1
  36. package/esm/{series-v2-71a1316d.js → series-v2-a37e317d.js} +1 -1
  37. package/esm/{series-v2-ae0f0c7e.js → series-v2-ad1e785d.js} +1 -1
  38. package/esm/{skin-721fed16.js → skin-001c84e0.js} +1 -1
  39. package/esm/{skin-0357be96.js → skin-1faa4378.js} +1 -1
  40. package/esm/{skin-894d19f7.js → skin-81ef1dd1.js} +1 -1
  41. package/esm/{skin-2aa99132.js → skin-828480b2.js} +1 -1
  42. package/esm/{skin-5ca4991a.js → skin-adc8af16.js} +1 -1
  43. package/esm/{skin-14afd332.js → skin-ccbdcc94.js} +1 -1
  44. package/esm/{skin-0a167a1f.js → skin-cd062e64.js} +1 -1
  45. package/esm/{videoSelector-979b6425.js → videoSelector-a075c0d8.js} +1 -1
  46. package/esm/{videoSelector-cb761ab6.js → videoSelector-f6df1107.js} +1 -1
  47. package/package.json +1 -1
  48. package/cjs/autoNextVideo-b2664dca.js +0 -1
  49. package/cjs/autoNextVideo-fbb2830a.js +0 -1
  50. package/cjs/caption-settings-5944a544.js +0 -1
  51. package/cjs/captions-3c7ca3a7.js +0 -1
  52. package/cjs/features-4324250b.js +0 -1
  53. package/cjs/features-f648eeb3.js +0 -1
  54. package/cjs/generic-bbce09c9.js +0 -1
  55. package/cjs/generic-d56b38ac.js +0 -1
  56. package/cjs/index-510967ea.js +0 -1
  57. package/cjs/index-7a1f4fa3.js +0 -1
  58. package/cjs/index-865afc31.js +0 -1
  59. package/cjs/index-d65ff026.js +0 -1
  60. package/cjs/multicamv2-408075e5.js +0 -1
  61. package/cjs/multicamv2-69bba9cd.js +0 -1
  62. package/cjs/multicamv2-874c4b47.js +0 -1
  63. package/cjs/multicamv2-96ae1bef.js +0 -1
  64. package/cjs/nextEpisodeButton-571ddebc.js +0 -1
  65. package/cjs/nextEpisodeButton-bb9ea809.js +0 -1
  66. package/cjs/playlist-2a9d8c3a.js +0 -1
  67. package/cjs/playlist-35747adf.js +0 -1
  68. package/cjs/renditions-26c6d0df.js +0 -1
  69. package/cjs/resolution-5a0df2be.js +0 -1
  70. package/cjs/series-23a6b96c.js +0 -1
  71. package/cjs/series-e6194b86.js +0 -1
  72. package/cjs/series-v2-656980f1.js +0 -1
  73. package/cjs/series-v2-a128042a.js +0 -1
  74. package/cjs/series-v2-bcc237c0.js +0 -1
  75. package/cjs/series-v2-d636d25a.js +0 -1
  76. package/cjs/settings-icon-12add1fe.js +0 -1
  77. package/cjs/skin-2fa52c29.js +0 -1
  78. package/cjs/skin-3397dca5.js +0 -1
  79. package/cjs/skin-3d9d4689.js +0 -1
  80. package/cjs/skin-46b10fd3.js +0 -1
  81. package/cjs/skin-61950a20.js +0 -1
  82. package/cjs/skin-6aa6777f.js +0 -1
  83. package/cjs/skin-6db027fa.js +0 -1
  84. package/cjs/skin-95e27a9f.js +0 -1
  85. package/cjs/skin-9cff4263.js +0 -1
  86. package/cjs/skin-b5651b5b.js +0 -1
  87. package/cjs/skin-c76e657d.js +0 -1
  88. package/cjs/skin-d1d871d1.js +0 -1
  89. package/cjs/skin-d7a1e096.js +0 -1
  90. package/cjs/skin-e495e69f.js +0 -1
  91. package/cjs/skin-edc7bca4.js +0 -1
  92. package/cjs/util-c1962d91.js +0 -1
  93. package/cjs/videoSelector-3bdcd5ef.js +0 -1
  94. package/cjs/videoSelector-4fb88c9f.js +0 -1
  95. package/cjs/videoSelector-e0dbb3af.js +0 -1
  96. package/cjs/videoSelector-f32fc4b5.js +0 -1
  97. package/cjs/videojs-dash5.es-3cd3423d.js +0 -1
  98. package/esm/autoNextVideo-5202ca61.js +0 -1
  99. package/esm/autoNextVideo-b7900abb.js +0 -1
  100. package/esm/caption-settings-adcfbf9d.js +0 -1
  101. package/esm/captions-7996e045.js +0 -1
  102. package/esm/features-58699d4f.js +0 -1
  103. package/esm/features-92168e2d.js +0 -1
  104. package/esm/generic-49e2739e.js +0 -1
  105. package/esm/generic-fe8a5419.js +0 -1
  106. package/esm/index-01fc14f1.js +0 -1
  107. package/esm/index-24d08aa6.js +0 -1
  108. package/esm/index-2e330a8a.js +0 -1
  109. package/esm/index-d7c8b33b.js +0 -1
  110. package/esm/multicamv2-0a7e85a7.js +0 -1
  111. package/esm/multicamv2-8354e88e.js +0 -1
  112. package/esm/multicamv2-99d2d9f1.js +0 -1
  113. package/esm/multicamv2-f35637be.js +0 -1
  114. package/esm/nextEpisodeButton-2917270e.js +0 -1
  115. package/esm/nextEpisodeButton-6a78af06.js +0 -1
  116. package/esm/playlist-005ec05f.js +0 -1
  117. package/esm/playlist-e4aff030.js +0 -1
  118. package/esm/renditions-65794079.js +0 -1
  119. package/esm/resolution-ed00f17a.js +0 -1
  120. package/esm/series-6b8b01fd.js +0 -1
  121. package/esm/series-f895bf2d.js +0 -1
  122. package/esm/series-v2-2505dab5.js +0 -1
  123. package/esm/series-v2-55b5e1d5.js +0 -1
  124. package/esm/series-v2-66a7a336.js +0 -1
  125. package/esm/series-v2-f3cc2a59.js +0 -1
  126. package/esm/settings-icon-c670ad25.js +0 -1
  127. package/esm/skin-1c962a23.js +0 -1
  128. package/esm/skin-5ccd687d.js +0 -1
  129. package/esm/skin-65a9c014.js +0 -1
  130. package/esm/skin-672ee3ee.js +0 -1
  131. package/esm/skin-8b8f108b.js +0 -1
  132. package/esm/skin-8e2c5488.js +0 -1
  133. package/esm/skin-97ea34f3.js +0 -1
  134. package/esm/skin-9d7f6024.js +0 -1
  135. package/esm/skin-a0bc6679.js +0 -1
  136. package/esm/skin-b3625cf2.js +0 -1
  137. package/esm/skin-c5fd99ed.js +0 -1
  138. package/esm/skin-c7bbb999.js +0 -1
  139. package/esm/skin-d85cc01e.js +0 -1
  140. package/esm/skin-e1abdefd.js +0 -1
  141. package/esm/skin-e372d8cc.js +0 -1
  142. package/esm/util-389babb5.js +0 -1
  143. package/esm/videoSelector-1e8bafc5.js +0 -1
  144. package/esm/videoSelector-409920c1.js +0 -1
  145. package/esm/videoSelector-986c7677.js +0 -1
  146. package/esm/videoSelector-fd351fa1.js +0 -1
  147. package/esm/videojs-dash5.es-17cb6067.js +0 -1
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{g as t,t as n}from"./skin-86e7e2b5.js";import{S as r,b as i,d as o}from"./generic-49e2739e.js";import{s as a}from"./autoNextVideo-1796d1ca.js";import l from"@babel/runtime/helpers/typeof";import u from"video.js";import s from"@babel/runtime/helpers/asyncToGenerator";import c from"@babel/runtime/regenerator";import d from"@babel/runtime/helpers/defineProperty";import p from"@babel/runtime/helpers/slicedToArray";var m,v,f,g,h=[],b=function(n,o){var a;if(null!=o&&null!==(a=o.series)&&void 0!==a&&a.enable){var l;h=[];var u=i();null==u||u.map(function(t){var n;return(n=h).push.apply(n,e(t.episodes))}),null==o||null===(l=o.series)||void 0===l||l.cb}else{var s,c;h=(null==o||null===(s=o.relatedVideos)||void 0===s?void 0:s.content)||[],null==o||null===(c=o.relatedVideos)||void 0===c||c.cb}var d=t(n);d.on("timeupdate",function(){var e,t,n=Math.floor(d.currentTime()),i=d.duration(),o=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];i-n<=10&&r()<=(null===(t=h)||void 0===t?void 0:t.length)-1?o&&(o.style.visibility="visible"):o&&(o.style.visibility="hidden")});var p,m=h.filter(function(e,t){return t==r()});if((null==m?void 0:m.length)>0)if(null!==(p=document.getElementsByClassName("next-ep-preview"))&&void 0!==p&&p[0]){var v,f,g,b,x,w,A,E,N,k,j,C;(null===(v=document.getElementsByClassName("next-ep-preview"))||void 0===v?void 0:v[0]).style.visibility="hidden";var T=null===(f=document.getElementsByClassName("next-ep-title"))||void 0===f?void 0:f[0],I=null===(g=document.getElementsByClassName("next-ep-img"))||void 0===g?void 0:g[0],O=null===(b=document.getElementsByClassName("next-ep-content"))||void 0===b?void 0:b[0],L=null===(x=m[0])||void 0===x?void 0:x.title;(null===(w=L)||void 0===w?void 0:w.length)>60&&(L=L.substr(0,60)+"..."),T.textContent="".concat(L),I.src=(null===(A=m[0])||void 0===A||null===(E=A.gist)||void 0===E||null===(N=E.imageGist)||void 0===N?void 0:N.r16x9)||(null==m||null===(k=m[0])||void 0===k?void 0:k.img)||(null===(j=window)||void 0===j||null===(C=j.customData)||void 0===C?void 0:C.fallbackImage),O.onclick=function(){return y(n)}}else{var B,S,M,P,R,D,$,X,_=document.createElement("div");_.className="next-ep-preview",_.style.visibility="hidden",document.getElementById(n).append(_);var F=document.createElement("div");F.className="next-ep-header",F.textContent="Next up";var U=null===(B=m[0])||void 0===B?void 0:B.title,W=document.createElement("img");W.className="next-ep-img",W.src=(null===(S=m[0])||void 0===S||null===(M=S.gist)||void 0===M||null===(P=M.imageGist)||void 0===P?void 0:P.r16x9)||(null==m||null===(R=m[0])||void 0===R?void 0:R.img)||(null===(D=window)||void 0===D||null===($=D.customData)||void 0===$?void 0:$.fallbackImage);var q=document.createElement("div");q.className="next-ep-title",(null===(X=U)||void 0===X?void 0:X.length)>60&&(U=U.substr(0,60)+"..."),q.textContent="".concat(U);var G=document.createElement("div");G.className="next-ep-content",G.append(W),G.append(q),G.onclick=function(){return y(n)},_.append(F),_.append(G)}},y=function(e,n){var i=t(e),o=Math.floor(i.currentTime());if(Math.floor(i.duration())!=o){i.pause(e);var l=r();a(l,e,h)}};function x(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}m={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},v=function e(){var t,n,r,i,o;for(r in n=(t=Array.prototype.slice.call(arguments)).shift()||{},t)for(o in i=t[r])i.hasOwnProperty(o)&&("object"===l(i[o])?n[o]=e(n[o],i[o]):n[o]=i[o]);return n},f=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},g=function e(t){return"HTML"!==t.nodeName&&"static"===f(t)("position")?e(t.offsetParent):t},u.registerPlugin("thumbnails",function(e){var t,n,r,i,o,a,l,u,s,c;if(i=v({},m,e),a=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=a.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(r=document.createElement("div")).className="vjs-thumbnail-holder",o=document.createElement("img"),r.appendChild(o),o.src=i[0].src,o.className="vjs-thumbnail",v(o.style,i[0].style),o.style.left||o.style.right||(o.onload=function(){o.style.left=-o.naturalWidth/2+"px"}),u=a.duration(),a.on("durationchange",function(e){u=a.duration()}),a.on("loadedmetadata",function(e){u=a.duration()}),(l=a.controlBar.progressControl).el().appendChild(r),s=function(e){var t,n,a,s,c,d,p,m,h,b;for(n in a=0,h=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,p=((b=g(l.el()).getBoundingClientRect()).width||b.right)+h,d=e.pageX,e.changedTouches&&(d=e.changedTouches[0].pageX),s=d||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,s-=g(l.el()).getBoundingClientRect().left+h,t=Math.floor((s-l.el().offsetLeft)/l.width()*u),i)t>n&&(a=Math.max(a,n));(c=i[a]).src&&o.src!=c.src&&(o.src=c.src),c.style&&o.style!=c.style&&v(o.style,c.style),s+(m=function(e,t){var n;return t?parseFloat(t):"auto"!==(n=f(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(n[1])-parseFloat(n[3]):0}(o,c.width||i[0].width)/2)>p?s-=s+m-p:s<m&&(s=m),r.style.left=s+"px"},null!==(t=window)&&void 0!==t&&null!==(n=t.customData)&&void 0!==n&&n.isSmartTV){var d=function(){var e,t,n=0,u=(null===(e=l.el_.children[0].children[2])||void 0===e?void 0:e.offsetWidth)||5;u<65?u=5:u>=a.el().offsetWidth-180?u=a.el().offsetWidth-240:u-=58;var s=a.currentTime();for(t in i)s>t&&(n=Math.max(n,t));var c=i[n];c.uri&&""!=c.uri&&o.src!=c.uri?(o.src=c.uri,r.style.left=u+"px",o.style.opacity="1"):(r.style.left="-1000px",o.style.opacity="0")},p=null;l.el_.children[0].onfocus=function(){d(),p=setInterval(function(){d()},250)},l.el_.children[0].addEventListener("blur",function(){try{r.style.left="-1000px",o.style.opacity="0",p&&(clearInterval(p),p=null)}catch(e){}})}else l.on("mousemove",s),l.on("touchmove",s);function h(){document.removeEventListener("pointermove",s),document.removeEventListener("pointerup",h),c()}l.on("pointerdown",function(e){document.addEventListener("pointermove",s),document.addEventListener("pointerup",h)}),c=function(e){r.style.left="-1000px"},l.on("mouseout",c),l.on("touchcancel",c),l.on("touchend",c),a.on("userinactive",c)});var A="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 N(){return(N=s(c.mark(function e(t){var n,r,i,o,a,l,u,s,d,m,v,f,g,h,b,y,x,w,A,E,N,k,j,C;return c.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,o=t.layout.split("x").map(Number),a=p(o,2),l=a[0],u=a[1],s=i.width/u,d=i.height/l,m=[],v=0;v<l;v++)for(f=0;f<u;f++)(g=document.createElement("canvas")).width=s,g.height=d,g.getContext("2d").drawImage(i,f*s,v*d,s,d,0,0,s,d),h=g.toDataURL("image/png"),m.push({uri:h,duration:t.duration}),t._tiles=m;return e.abrupt("return",m);case 20:for(e.prev=20,e.t0=e.catch(2),b=t.layout.split("x").map(Number),y=p(b,2),x=y[0],w=y[1],A=[],E=0;E<x*w;E++)A.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",A);case 26:case"end":return e.stop()}},e,null,[[2,20]])}))).apply(this,arguments)}function k(e,t){return j.apply(this,arguments)}function j(){return(j=s(c.mark(function e(t,n){var r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return A=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 C(e,n,r){var i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),o=t(A);if(i&&o){var a=i.getBoundingClientRect(),l=(e.clientX-a.left)/a.width,u=function(e,t){var n,r;if(!t||0===t.length)return null;var i=0,o=t.length-1;for(;i<=o;){var a=Math.floor((i+o)/2),l=t[a];if(l===e)return l;l<e?i=a+1:o=a-1}var u=null!==(n=t[i])&&void 0!==n?n:1/0,s=null!==(r=t[o])&&void 0!==r?r:-1/0;return Math.abs(u-e)<Math.abs(s-e)?u:s}(Math.round(l*o.duration()),r),s=n[u];s&&!s.loading&&(s.loading=!0,function(e){return N.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 T(e){return I.apply(this,arguments)}function I(){return(I=s(c.mark(function e(t){var r,i,o,a;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={},t.forEach(function(e,t){for(var n=e.layout.split("x").map(Number),i=p(n,2),o=i[0]*i[1],a=e.duration,l=0;l<o;l++){var u,s=Math.round((t*o+l)*a);r[s]=w(w({},e),{},{duration:e.duration,tileIndex:l,loading:!1,style:(u={left:"-60px",height:"85px",width:"130px"},d(u,"left","-60px"),d(u,"border","1px solid transparent"),d(u,"borderRadius","4px"),u)})}}),i=Object.keys(r).map(Number).sort(function(e,t){return e-t}),null==(o=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||o.addEventListener("mousemove",n(function(e){return C(e,r,i)},500)),null==(a=document.querySelector(".vjs-progress-control.vjs-control"))||a.addEventListener("pointerdown",function(e){document.addEventListener("pointermove",n(function(e){return C(e,r,i)},500))}),e.abrupt("return",r);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}var O=function(){var e=s(c.mark(function e(t,n){var r,i,o,a,l,u,s,d;return c.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,o=i.split("\n").map(function(e){return e.trim()}),a=[],l=null,u=0;case 10:if(!(u<(null==o?void 0:o.length))){e.next=27;break}if(!(s=o[u]).startsWith("#EXT-X-TILES")){e.next=19;break}l={resolution:null,duration:null,uri:null,layout:null},d=s.split(":")[1]||"",d.split(",").forEach(function(e){var t=e.split("="),n=p(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,a.push(l),l=null);case 24:u++,e.next=10;break;case 27:return e.abrupt("return",a);case 28:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();function L(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function B(e,t){return S.apply(this,arguments)}function S(){return(S=s(c.mark(function e(n,r){var i,a,l,u,s,d,m,v,f,g,h,b,y,x,w,E,N,k,j,C,T,I,O,B,S,R,D,$,X,_,F,U,W,q,G,V,z,H,Q,Y,J,K,Z,ee,te,ne,re,ie,oe,ae,le,ue,se,ce,de,pe,me,ve;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return A=r,i=t(r),a=n.split("/"),l=a.findIndex(function(e){return"dash"===e.toLowerCase()}),u=L(-1!==l?a.slice(0,l+1).join("/"):new URL(n).origin),e.prev=5,e.next=8,fetch(n);case 8:return v=e.sent,e.next=11,v.text();case 11:f=e.sent,g=new DOMParser,h=g.parseFromString(f,"application/xml"),b=(null==i?void 0:i.duration())||(null===(s=o())||void 0===s||null===(d=s.video)||void 0===d?void 0:d.runtime),y=(null==h||null===(m=h.querySelector("MPD > BaseURL"))||void 0===m?void 0:m.textContent)||u+"/",x=h.getElementsByTagName("AdaptationSet"),w=0;case 18:if(!(w<x.length)){e.next=72;break}if(("image"!==(E=x[w]).getAttribute("contentType")||"image/png"!==E.getAttribute("mimeType"))&&"image/jpeg"!==E.getAttribute("mimeType")){e.next=69;break}if(k=E.getElementsByTagName("SegmentTemplate")[0],j=null===(N=k.getElementsByTagName("SegmentTimeline"))||void 0===N?void 0:N[0],!k||!j){e.next=48;break}if(I=j.getElementsByTagName("S"),O=parseInt(null===(C=I[0])||void 0===C?void 0:C.getAttribute("t")),B=parseInt(null===(T=I[0])||void 0===T?void 0:T.getAttribute("d")),S=E.getElementsByTagName("Representation")[0],R=S.getElementsByTagName("EssentialProperty")[0],D=R.getAttribute("value"),$=null==D?void 0:D.split("x"),X=p($,2),_=X[0],F=X[1],!k){e.next=46;break}if(k.getAttribute("media"),U=k.getAttribute("timescale"),W=(U?B/U:B)/(_*F),q=S.getAttribute("id"),G=Math.round(b/W),V=Math.ceil(G/(_*F)),z=k.getAttribute("media"),parseInt(k.getAttribute("startNumber")),!isNaN(parseInt(V))){e.next=43;break}return e.abrupt("return");case 43:for(H=[],w=0;w<V;w++)Y="/"==(Q=z)[0]?new URL(u).origin:u+"/",H.push({duration:W,layout:D,uri:Y+Q.replace("$Time$",O+w*B).replace("$RepresentationID$",q)});return e.abrupt("return",H);case 46:e.next=69;break;case 48:if(J=E.getElementsByTagName("Representation")[0],K=J.getElementsByTagName("EssentialProperty")[0],Z=K.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=p(ee,2),ne=te[0],re=te[1],!k){e.next=69;break}if(k.getAttribute("media"),ie=k.getAttribute("duration"),oe=k.getAttribute("timescale"),ae=(oe?ie/oe:ie)/(ne*re),le=J.getAttribute("id"),ue=Math.round(b/ae),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=[],me=M(ce),w=0;w<se;w++)ve=me?P(me,w+de):ce,pe.push({duration:ae,layout:Z,uri:y+ve.replace("$Number$",w+de).replace("$RepresentationID$",le)});return e.abrupt("return",pe);case 69:w++,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 M(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function P(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 R(e){return D.apply(this,arguments)}function D(){return(D=s(c.mark(function e(n){var r,i,o,a,l,u,s,d,p,m,v,f,g,h,b,y;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=t(n),s=u.currentSource(),d=s.src,d=null!==(r=d)&&void 0!==r&&r.includes("blob")?null===(i=window)||void 0===i||null===(o=i.player)||void 0===o?void 0:o.getSource():d,null===(a=d)||void 0===a||!a.includes("m3u8")){e.next=19;break}return e.next=6,k(d,n);case 6:if(!((null==(p=e.sent)?void 0:p.length)>0)){e.next=17;break}return m=(null==p?void 0:p[0])||null,v=m.uri,f=d.substring(0,d.lastIndexOf("/"))+"/",e.next=12,O(f,v);case 12:return g=e.sent,e.next=15,T(g);case 15:h=e.sent,u.thumbnails(h);case 17:e.next=28;break;case 19:if(null===(l=d)||void 0===l||!l.includes("mpd")){e.next=28;break}return e.next=22,B(d,n);case 22:if(!((null==(b=e.sent)?void 0:b.length)>0)){e.next=28;break}return e.next=26,T(b);case 26:y=e.sent,u.thumbnails(y);case 28:case"end":return e.stop()}},e)}))).apply(this,arguments)}function $(e,n){var r=t(e),i=null==n?void 0:n.tvProviderLogoUrl;if(i){var o=document.createElement("div");o.className="tvProviderImage";var a=document.createElement("img");a.src="".concat(i),a.alt="Provider Image",o.append(a),r.el().appendChild(o),r.on("useractive",function(){o.classList.remove("vjs-fade")}),r.on("userinactive",function(){r.paused()||o.classList.add("vjs-fade")}),r.on("fullscreenchange",function(){r.isFullscreen_?o.style.top="3.2rem":o.style.top="1rem"})}}export{b as a,$ as b,R as i};
@@ -1 +0,0 @@
1
- import{g as e,t}from"./skin-8e2c5488.js";import{S as n,b as r,d as i}from"./generic-fe8a5419.js";import{s as a}from"./autoNextVideo-b7900abb.js";import o from"@babel/runtime/helpers/typeof";import l from"video.js";import u from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/regenerator";import c from"@babel/runtime/helpers/defineProperty";import d from"@babel/runtime/helpers/slicedToArray";var p,m,v,f,g=[],h=function(t,i){var a;if(null!=i&&null!==(a=i.series)&&void 0!==a&&a.enable){var o;g=[];var l=r();null==l||l.map(function(e){var t;return(t=g).push.apply(t,e.episodes)}),null==i||null===(o=i.series)||void 0===o||o.cb}else{var u,s;g=(null==i||null===(u=i.relatedVideos)||void 0===u?void 0:u.content)||[],null==i||null===(s=i.relatedVideos)||void 0===s||s.cb}var c=e(t);c.on("timeupdate",function(){var e,t,r=Math.floor(c.currentTime()),i=c.duration(),a=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];i-r<=10&&n()<=(null===(t=g)||void 0===t?void 0:t.length)-1?a&&(a.style.visibility="visible"):a&&(a.style.visibility="hidden")});var d,p=g.filter(function(e,t){return t==n()});if((null==p?void 0:p.length)>0)if(null!==(d=document.getElementsByClassName("next-ep-preview"))&&void 0!==d&&d[0]){var m,v,f,h,y,x,w,A,E,N,k,T;(null===(m=document.getElementsByClassName("next-ep-preview"))||void 0===m?void 0:m[0]).style.visibility="hidden";var C=null===(v=document.getElementsByClassName("next-ep-title"))||void 0===v?void 0:v[0],I=null===(f=document.getElementsByClassName("next-ep-img"))||void 0===f?void 0:f[0],L=null===(h=document.getElementsByClassName("next-ep-content"))||void 0===h?void 0:h[0],B=null===(y=p[0])||void 0===y?void 0:y.title;(null===(x=B)||void 0===x?void 0:x.length)>60&&(B=B.substr(0,60)+"..."),C.textContent="".concat(B),I.src=(null===(w=p[0])||void 0===w||null===(A=w.gist)||void 0===A||null===(E=A.imageGist)||void 0===E?void 0:E.r16x9)||(null==p||null===(N=p[0])||void 0===N?void 0:N.img)||(null===(k=window)||void 0===k||null===(T=k.customData)||void 0===T?void 0:T.fallbackImage),L.onclick=function(){return b(t)}}else{var j,M,S,R,P,O,$,X,D=document.createElement("div");D.className="next-ep-preview",D.style.visibility="hidden",document.getElementById(t).append(D);var _=document.createElement("div");_.className="next-ep-header",_.textContent="Next up";var F=null===(j=p[0])||void 0===j?void 0:j.title,U=document.createElement("img");U.className="next-ep-img",U.src=(null===(M=p[0])||void 0===M||null===(S=M.gist)||void 0===S||null===(R=S.imageGist)||void 0===R?void 0:R.r16x9)||(null==p||null===(P=p[0])||void 0===P?void 0:P.img)||(null===(O=window)||void 0===O||null===($=O.customData)||void 0===$?void 0:$.fallbackImage);var W=document.createElement("div");W.className="next-ep-title",(null===(X=F)||void 0===X?void 0:X.length)>60&&(F=F.substr(0,60)+"..."),W.textContent="".concat(F);var q=document.createElement("div");q.className="next-ep-content",q.append(U),q.append(W),q.onclick=function(){return b(t)},D.append(_),D.append(q)}},b=function(t,r){var i=e(t),o=Math.floor(i.currentTime());if(Math.floor(i.duration())!=o){i.pause(t);var l=n();a(l,t,g)}};p={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},m=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"===o(i[a])?n[a]=e(n[a],i[a]):n[a]=i[a]);return n},v=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},f=function e(t){return"HTML"!==t.nodeName&&"static"===v(t)("position")?e(t.offsetParent):t},l.registerPlugin("thumbnails",function(e){var t,n,r,i,a,o,l,u,s,c;if(i=m({},p,e),o=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=o.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(r=document.createElement("div")).className="vjs-thumbnail-holder",a=document.createElement("img"),r.appendChild(a),a.src=i[0].src,a.className="vjs-thumbnail",m(a.style,i[0].style),a.style.left||a.style.right||(a.onload=function(){a.style.left=-a.naturalWidth/2+"px"}),u=o.duration(),o.on("durationchange",function(e){u=o.duration()}),o.on("loadedmetadata",function(e){u=o.duration()}),(l=o.controlBar.progressControl).el().appendChild(r),s=function(e){var t,n,o,s,c,d,p,g,h,b;for(n in o=0,h=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,p=((b=f(l.el()).getBoundingClientRect()).width||b.right)+h,d=e.pageX,e.changedTouches&&(d=e.changedTouches[0].pageX),s=d||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,s-=f(l.el()).getBoundingClientRect().left+h,t=Math.floor((s-l.el().offsetLeft)/l.width()*u),i)t>n&&(o=Math.max(o,n));(c=i[o]).src&&a.src!=c.src&&(a.src=c.src),c.style&&a.style!=c.style&&m(a.style,c.style),s+(g=function(e,t){var n;return t?parseFloat(t):"auto"!==(n=v(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(n[1])-parseFloat(n[3]):0}(a,c.width||i[0].width)/2)>p?s-=s+g-p:s<g&&(s=g),r.style.left=s+"px"},null!==(t=window)&&void 0!==t&&null!==(n=t.customData)&&void 0!==n&&n.isSmartTV){var d=function(){var e,t,n=0,u=(null===(e=l.el_.children[0].children[2])||void 0===e?void 0:e.offsetWidth)||5;u<65?u=5:u>=o.el().offsetWidth-180?u=o.el().offsetWidth-240:u-=58;var s=o.currentTime();for(t in i)s>t&&(n=Math.max(n,t));var c=i[n];c.uri&&""!=c.uri&&a.src!=c.uri?(a.src=c.uri,r.style.left=u+"px",a.style.opacity="1"):(r.style.left="-1000px",a.style.opacity="0")},g=null;l.el_.children[0].onfocus=function(){d(),g=setInterval(function(){d()},250)},l.el_.children[0].addEventListener("blur",function(){try{r.style.left="-1000px",a.style.opacity="0",g&&(clearInterval(g),g=null)}catch(e){}})}else l.on("mousemove",s),l.on("touchmove",s);function h(){document.removeEventListener("pointermove",s),document.removeEventListener("pointerup",h),c()}l.on("pointerdown",function(e){document.addEventListener("pointermove",s),document.addEventListener("pointerup",h)}),c=function(e){r.style.left="-1000px"},l.on("mouseout",c),l.on("touchcancel",c),l.on("touchend",c),o.on("userinactive",c)});var y="my-player";function x(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 w(){return(w=u(s.mark(function e(t){var n,r,i,a,o,l,u,c,p,m,v,f,g,h,b,y,x,w,A,E,N,k,T,C;return s.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=d(a,2),l=o[0],u=o[1],c=i.width/u,p=i.height/l,m=[],v=0;v<l;v++)for(f=0;f<u;f++)(g=document.createElement("canvas")).width=c,g.height=p,g.getContext("2d").drawImage(i,f*c,v*p,c,p,0,0,c,p),h=g.toDataURL("image/png"),m.push({uri:h,duration:t.duration}),t._tiles=m;return e.abrupt("return",m);case 20:for(e.prev=20,e.t0=e.catch(2),b=t.layout.split("x").map(Number),y=d(b,2),x=y[0],w=y[1],A=[],E=0;E<x*w;E++)A.push({uri:null===(N=window)||void 0===N||null===(k=N.app_data)||void 0===k||null===(T=k.appcmsMain)||void 0===T||null===(C=T.images)||void 0===C?void 0:C.placeholderCover,duration:t.duration});return e.abrupt("return",A);case 26:case"end":return e.stop()}},e,null,[[2,20]])}))).apply(this,arguments)}function A(e,t){return E.apply(this,arguments)}function E(){return(E=u(s.mark(function e(t,n){var r,i;return s.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return y=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",x(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 N(t,n,r){var i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),a=e(y);if(i&&a){var o=i.getBoundingClientRect(),l=(t.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*a.duration()),r),s=n[u];s&&!s.loading&&(s.loading=!0,function(e){return w.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 k(e){return T.apply(this,arguments)}function T(){return(T=u(s.mark(function e(n){var r,i,a,o;return s.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={},n.forEach(function(e,t){for(var n=e.layout.split("x").map(Number),i=d(n,2),a=i[0]*i[1],o=e.duration,l=0;l<a;l++){var u,s=Math.round((t*a+l)*o);r[s]=Object.assign({},e,{duration:e.duration,tileIndex:l,loading:!1,style:(u={left:"-60px",height:"85px",width:"130px"},c(u,"left","-60px"),c(u,"border","1px solid transparent"),c(u,"borderRadius","4px"),u)})}}),i=Object.keys(r).map(Number).sort(function(e,t){return e-t}),null==(a=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||a.addEventListener("mousemove",t(function(e){return N(e,r,i)},500)),null==(o=document.querySelector(".vjs-progress-control.vjs-control"))||o.addEventListener("pointerdown",function(e){document.addEventListener("pointermove",t(function(e){return N(e,r,i)},500))}),e.abrupt("return",r);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}var C=function(){var e=u(s.mark(function e(t,n){var r,i,a,o,l,u,c,p;return s.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(!(c=a[u]).startsWith("#EXT-X-TILES")){e.next=19;break}l={resolution:null,duration:null,uri:null,layout:null},p=c.split(":")[1]||"",p.split(",").forEach(function(e){var t=e.split("="),n=d(t,2),r=n[0],i=n[1];r&&i&&(l[r.trim().toLowerCase()]=i.trim())}),e.next=24;break;case 19:if(!c.startsWith("#EXTINF")){e.next=23;break}return e.abrupt("continue",24);case 23:(c.includes("jpg")||c.includes("png")||c.includes("jpeg"))&&(l.uri=c.includes("http")?c:t+c,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 I(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function L(e,t){return B.apply(this,arguments)}function B(){return(B=u(s.mark(function t(n,r){var a,o,l,u,c,p,m,v,f,g,h,b,x,w,A,E,N,k,T,C,L,B,S,R,P,O,$,X,D,_,F,U,W,q,G,V,z,H,Q,Y,J,K,Z,ee,te,ne,re,ie,ae,oe,le,ue,se,ce,de,pe,me,ve;return s.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return y=r,a=e(r),o=n.split("/"),l=o.findIndex(function(e){return"dash"===e.toLowerCase()}),u=I(-1!==l?o.slice(0,l+1).join("/"):new URL(n).origin),t.prev=5,t.next=8,fetch(n);case 8:return v=t.sent,t.next=11,v.text();case 11:f=t.sent,g=new DOMParser,h=g.parseFromString(f,"application/xml"),b=(null==a?void 0:a.duration())||(null===(c=i())||void 0===c||null===(p=c.video)||void 0===p?void 0:p.runtime),x=(null==h||null===(m=h.querySelector("MPD > BaseURL"))||void 0===m?void 0:m.textContent)||u+"/",w=h.getElementsByTagName("AdaptationSet"),A=0;case 18:if(!(A<w.length)){t.next=72;break}if(("image"!==(E=w[A]).getAttribute("contentType")||"image/png"!==E.getAttribute("mimeType"))&&"image/jpeg"!==E.getAttribute("mimeType")){t.next=69;break}if(k=E.getElementsByTagName("SegmentTemplate")[0],T=null===(N=k.getElementsByTagName("SegmentTimeline"))||void 0===N?void 0:N[0],!k||!T){t.next=48;break}if(B=T.getElementsByTagName("S"),S=parseInt(null===(C=B[0])||void 0===C?void 0:C.getAttribute("t")),R=parseInt(null===(L=B[0])||void 0===L?void 0:L.getAttribute("d")),P=E.getElementsByTagName("Representation")[0],O=P.getElementsByTagName("EssentialProperty")[0],$=O.getAttribute("value"),X=null==$?void 0:$.split("x"),D=d(X,2),_=D[0],F=D[1],!k){t.next=46;break}if(k.getAttribute("media"),U=k.getAttribute("timescale"),W=(U?R/U:R)/(_*F),q=P.getAttribute("id"),G=Math.round(b/W),V=Math.ceil(G/(_*F)),z=k.getAttribute("media"),parseInt(k.getAttribute("startNumber")),!isNaN(parseInt(V))){t.next=43;break}return t.abrupt("return");case 43:for(H=[],A=0;A<V;A++)Y="/"==(Q=z)[0]?new URL(u).origin:u+"/",H.push({duration:W,layout:$,uri:Y+Q.replace("$Time$",S+A*R).replace("$RepresentationID$",q)});return t.abrupt("return",H);case 46:t.next=69;break;case 48:if(J=E.getElementsByTagName("Representation")[0],K=J.getElementsByTagName("EssentialProperty")[0],Z=K.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=d(ee,2),ne=te[0],re=te[1],!k){t.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))){t.next=65;break}return t.abrupt("return");case 65:for(pe=[],me=j(ce),A=0;A<se;A++)ve=me?M(me,A+de):ce,pe.push({duration:oe,layout:Z,uri:x+ve.replace("$Number$",A+de).replace("$RepresentationID$",le)});return t.abrupt("return",pe);case 69:A++,t.next=18;break;case 72:return console.log("No trickplay segment found."),t.abrupt("return",null);case 76:t.prev=76,t.t0=t.catch(5),console.error("Error fetching or parsing MPD:",t.t0);case 79:case"end":return t.stop()}},t,null,[[5,76]])}))).apply(this,arguments)}function j(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function M(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 S(e){return R.apply(this,arguments)}function R(){return(R=u(s.mark(function t(n){var r,i,a,o,l,u,c,d,p,m,v,f,g,h,b,y;return s.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(u=e(n),c=u.currentSource(),d=c.src,d=null!==(r=d)&&void 0!==r&&r.includes("blob")?null===(i=window)||void 0===i||null===(a=i.player)||void 0===a?void 0:a.getSource():d,null===(o=d)||void 0===o||!o.includes("m3u8")){t.next=19;break}return t.next=6,A(d,n);case 6:if(!((null==(p=t.sent)?void 0:p.length)>0)){t.next=17;break}return m=(null==p?void 0:p[0])||null,v=m.uri,f=d.substring(0,d.lastIndexOf("/"))+"/",t.next=12,C(f,v);case 12:return g=t.sent,t.next=15,k(g);case 15:h=t.sent,u.thumbnails(h);case 17:t.next=28;break;case 19:if(null===(l=d)||void 0===l||!l.includes("mpd")){t.next=28;break}return t.next=22,L(d,n);case 22:if(!((null==(b=t.sent)?void 0:b.length)>0)){t.next=28;break}return t.next=26,k(b);case 26:y=t.sent,u.thumbnails(y);case 28:case"end":return t.stop()}},t)}))).apply(this,arguments)}function P(t,n){var r=e(t),i=null==n?void 0:n.tvProviderLogoUrl;if(i){var a=document.createElement("div");a.className="tvProviderImage";var o=document.createElement("img");o.src="".concat(i),o.alt="Provider Image",a.append(o),r.el().appendChild(a),r.on("useractive",function(){a.classList.remove("vjs-fade")}),r.on("userinactive",function(){r.paused()||a.classList.add("vjs-fade")}),r.on("fullscreenchange",function(){r.isFullscreen_?a.style.top="3.2rem":a.style.top="1rem"})}}export{h as a,P as b,S as i};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/inherits";import s from"video.js";import{h as n,f as i,i as l}from"./icons-79ad4d7d.js";import{J as c,F as m}from"./generic-04b35f2c.js";import{e as d,s as p,j as u}from"./skin-86e7e2b5.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"@babel/runtime/helpers/toConsumableArray";function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var h=s.getComponent("Component"),f=function(){function f(t){var r,s,n,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,f),s=this,i=[t,l],n=o(n=f),(r=a(s,v()?Reflect.construct(n,i||[],o(s).constructor):n.apply(s,i))).playerId=l.playerId,r.seriesData=l.sres,r.streams=l.streams,r.currentVideoData=l.res,r.initialiseStructure(),r.loadCSS(),r}return r(f,h),t(f,[{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(n())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-b7cec0cf.js").then(function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var o;null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(d(),a.classList.remove("hidden"),t.classList.add("open"),p(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);a.style.height="".concat(r,"px"),o.style.overflow="hidden",s.dom.appendContent(t,a),this.addFunctionality(a)}}},{key:"addFunctionality",value:function(e){var t=this,a=this.el(),o=s.dom.createEl("div",{className:"stream-selector-head"}),r=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(i())});r.onclick=function(){e.classList.add("hidden"),a.classList.remove("open")};for(var n=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=s.dom.createEl("div",{className:"stream-selector-content"}),p=s.dom.createEl("div",{className:"stream-tray"}),v=function(e){var a,o,r,n=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(l())});0==e&&(n.classList.add("selected"),n.style.border="2px solid #D2393B"),n.onclick=function(){for(var a=s.dom.$$(".stream"),o=0;o<a.length;o++)a[o].style.border="none",a[o].classList.remove("selected");n.classList.add("selected"),n.style.border="2px solid #D2393B",c(t.playerId,t.streams[e].id).then(function(e){m(t.playerId),console.log(e)}).catch(function(e){console.log(e)})},n.style.backgroundImage="url(".concat(t.streams[e].img,")");var i=document.createElement("img");i.className="stream-thumbnail-image",i.src="".concat((null==t||null===(a=t.streams[e])||void 0===a?void 0:a.img)||(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r?void 0:r.fallbackImage)),n.append(i),s.dom.appendContent(p,n),s.dom.appendContent(d,p)},h=0;h<this.streams.length;h++)v(h);s.dom.appendContent(o,r),s.dom.appendContent(o,n),s.dom.appendContent(e,o),s.dom.appendContent(e,d),u(this.playerId,e)}}])}();export{f as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import n from"@babel/runtime/helpers/inherits";import r from"video.js";import{h as s,f as i,i as l}from"./icons-79ad4d7d.js";import{J as c,F as m}from"./generic-fe8a5419.js";import{e as d,g as p}from"./skin-8e2c5488.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}var h=r.getComponent("Component"),v=function(){function v(t){var n,r,s,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),r=this,i=[t,l],s=o(s=v),(n=a(r,u()?Reflect.construct(s,i||[],o(r).constructor):s.apply(r,i))).playerId=l.playerId,n.seriesData=l.sres,n.streams=l.streams,n.currentVideoData=l.res,n.initialiseStructure(),n.loadCSS(),n}return n(v,h),t(v,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(s())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-1fb5149a.js").then(function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=r.dom.createEl("div",{className:"stream-container hidden"});r.dom.$(".stream-selector-icon",this.el()).onclick=function(){var a;null!==(a=t.classList)&&void 0!==a&&a.contains("hidden")?(d(),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 a=document.getElementById(this.playerId);if(a){var o=window.getComputedStyle(a,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(o,"px"),a.style.overflow="hidden",r.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,a=this.el(),o=r.dom.createEl("div",{className:"stream-selector-head"}),n=r.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(i())});n.onclick=function(){e.classList.add("hidden"),a.classList.remove("open"),e.style.right="-350px"};for(var s=r.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=r.dom.createEl("div",{className:"stream-selector-content"}),u=r.dom.createEl("div",{className:"stream-tray"}),h=function(e){var a,o=r.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(l())});0==e&&(o.classList.add("selected"),o.style.border="4px solid #D2393B"),o.onclick=function(){for(var a=r.dom.$$(".stream"),n=0;n<a.length;n++)a[n].style.border="none",a[n].classList.remove("selected");o.classList.add("selected"),o.style.border="4px solid #D2393B",c(t.playerId,t.streams[e].id).then(function(e){m(t.playerId),console.log(e)}).catch(function(e){console.log(e)})},o.style.backgroundImage="url(".concat(t.streams[e].img,")");var n=document.createElement("img");n.className="stream-thumbnail-image",n.src="".concat(null==t||null===(a=t.streams[e])||void 0===a?void 0:a.img),n.alt="No Thumbnail Available",o.append(n),r.dom.appendContent(u,o),r.dom.appendContent(d,u)},v=0;v<this.streams.length;v++)h(v);r.dom.appendContent(o,n),r.dom.appendContent(o,s),r.dom.appendContent(e,o),r.dom.appendContent(e,d),p(this.playerId).on("fullscreenchange",function(){var a=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(a,"px")})}}])}();export{v as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import s from"@babel/runtime/helpers/inherits";import n from"video.js";import{h as r,f as i,i as l}from"./icons-79ad4d7d.js";import{J as c,F as d}from"./generic-fe8a5419.js";import{e as m,s as p,j as u}from"./skin-8e2c5488.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var h=n.getComponent("Component"),f=function(){function f(t){var s,n,r,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,f),n=this,i=[t,l],r=o(r=f),(s=a(n,v()?Reflect.construct(r,i||[],o(n).constructor):r.apply(n,i))).playerId=l.playerId,s.seriesData=l.sres,s.streams=l.streams,s.currentVideoData=l.res,s.initialiseStructure(),s.loadCSS(),s}return s(f,h),t(f,[{key:"createEl",value:function(){var e=n.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=n.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(r())});return n.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-b7cec0cf.js").then(function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=n.dom.createEl("div",{className:"stream-container hidden"});n.dom.$(".stream-selector-icon",this.el()).onclick=function(){var o;null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(m(),a.classList.remove("hidden"),t.classList.add("open"),p(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var s=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);a.style.height="".concat(s,"px"),o.style.overflow="hidden",n.dom.appendContent(t,a),this.addFunctionality(a)}}},{key:"addFunctionality",value:function(e){var t=this,a=this.el(),o=n.dom.createEl("div",{className:"stream-selector-head"}),s=n.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(i())});s.onclick=function(){e.classList.add("hidden"),a.classList.remove("open")};for(var r=n.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),m=n.dom.createEl("div",{className:"stream-selector-content"}),p=n.dom.createEl("div",{className:"stream-tray"}),v=function(e){var a,o,s,r=n.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(l())});0==e&&(r.classList.add("selected"),r.style.border="2px solid #D2393B"),r.onclick=function(){for(var a=n.dom.$$(".stream"),o=0;o<a.length;o++)a[o].style.border="none",a[o].classList.remove("selected");r.classList.add("selected"),r.style.border="2px solid #D2393B",c(t.playerId,t.streams[e].id).then(function(e){d(t.playerId),console.log(e)}).catch(function(e){console.log(e)})},r.style.backgroundImage="url(".concat(t.streams[e].img,")");var i=document.createElement("img");i.className="stream-thumbnail-image",i.src="".concat((null==t||null===(a=t.streams[e])||void 0===a?void 0:a.img)||(null===(o=window)||void 0===o||null===(s=o.customData)||void 0===s?void 0:s.fallbackImage)),r.append(i),n.dom.appendContent(p,r),n.dom.appendContent(m,p)},h=0;h<this.streams.length;h++)v(h);n.dom.appendContent(o,s),n.dom.appendContent(o,r),n.dom.appendContent(e,o),n.dom.appendContent(e,m),u(this.playerId,e)}}])}();export{f as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/inherits";import n from"video.js";import{h as s,f as i,i as l}from"./icons-79ad4d7d.js";import{J as c,F as m}from"./generic-04b35f2c.js";import{e as d,g as p}from"./skin-86e7e2b5.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"@babel/runtime/helpers/toConsumableArray";function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}var h=n.getComponent("Component"),v=function(){function v(t){var o,n,s,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),n=this,i=[t,l],s=a(s=v),(o=r(n,u()?Reflect.construct(s,i||[],a(n).constructor):s.apply(n,i))).playerId=l.playerId,o.seriesData=l.sres,o.streams=l.streams,o.currentVideoData=l.res,o.initialiseStructure(),o.loadCSS(),o}return o(v,h),t(v,[{key:"createEl",value:function(){var e=n.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=n.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(s())});return n.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-1fb5149a.js").then(function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=n.dom.createEl("div",{className:"stream-container hidden"});n.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(d(),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 a=window.getComputedStyle(r,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(a,"px"),r.style.overflow="hidden",n.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),a=n.dom.createEl("div",{className:"stream-selector-head"}),o=n.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(i())});o.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var s=n.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=n.dom.createEl("div",{className:"stream-selector-content"}),u=n.dom.createEl("div",{className:"stream-tray"}),h=function(e){var r,a=n.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(l())});0==e&&(a.classList.add("selected"),a.style.border="4px solid #D2393B"),a.onclick=function(){for(var r=n.dom.$$(".stream"),o=0;o<r.length;o++)r[o].style.border="none",r[o].classList.remove("selected");a.classList.add("selected"),a.style.border="4px solid #D2393B",c(t.playerId,t.streams[e].id).then(function(e){m(t.playerId),console.log(e)}).catch(function(e){console.log(e)})},a.style.backgroundImage="url(".concat(t.streams[e].img,")");var o=document.createElement("img");o.className="stream-thumbnail-image",o.src="".concat(null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img),o.alt="No Thumbnail Available",a.append(o),n.dom.appendContent(u,a),n.dom.appendContent(d,u)},v=0;v<this.streams.length;v++)h(v);n.dom.appendContent(a,o),n.dom.appendContent(a,s),n.dom.appendContent(e,a),n.dom.appendContent(e,d),p(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")})}}])}();export{v as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import r from"video.js";import{P as l}from"./icons-79ad4d7d.js";import{J as s,f as a}from"./generic-04b35f2c.js";import{d}from"./skin-86e7e2b5.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"@babel/runtime/helpers/toConsumableArray";function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var u=r.getComponent("Component"),c=function(){function s(t){var i,r,l,a,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,s),r=this,a=[t,d],l=o(l=s),(i=n(r,p()?Reflect.construct(l,a||[],o(r).constructor):l.apply(r,a))).playerId=d.playerId,i.seriesData=d.sres,i.currentVideoData=d.res,i.initialiseStructure(),i.loadCSS(),i}return i(s,u),t(s,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"play-next"}),t=r.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(l(window.controlsColor?window.controlsColor:"white"))});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.js").then(function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=r.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=r.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),o=r.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=r.dom.createEl("div",{className:"next-eps-image"}),l=r.dom.createEl("div",{className:"next-eps-description"});r.dom.appendContent(o,i),r.dom.appendContent(o,l),r.dom.appendContent(t,n),r.dom.appendContent(t,o),this.toggleContentOnHover(e,t),r.dom.appendContent(e,t)}},{key:"toggleContentOnHover",value:function(e,t){e.addEventListener("mouseover",function(){r.dom.removeClass(t,"nextepisode-hidden")}),t.addEventListener("mouseover",function(){r.dom.removeClass(t,"nextepisode-hidden")}),e.addEventListener("mouseout",function(){r.dom.addClass(t,"nextepisode-hidden")}),t.addEventListener("mouseout",function(){r.dom.addClass(t,"nextepisode-hidden")})}}])}(),m=function(e,t){var n=v(e,t.video.gist.id),o=h(e[n],t.video.gist.id),i=f(e[n],o);x(i.nextEp)},v=function(e,t){for(var n=-1,o=0;o<e.length;o++)for(var i=0;i<e[o].episodes.length;i++)if(e[o].episodes[i].id===t){n=o;break}return n},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;if(!(e&&t>=0))return{prevEp:null,nextEp:null};var n=e.episodes.length,o=t-1>=0?t-1:n-1,i=(t+1)%n,r=n>1?e.episodes[o]:null,l=n>1?e.episodes[i]:null;return o===i&&(0===o?l=null:r=null),{prevEp:r,nextEp:l,prevEpIdx:o,nextEpIdx:i}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=null;return e?(e.episodes.forEach(function(e,o){e.gist.id===t&&(n=o)}),n):null},x=function(e){var t,n;r.dom.$(".next-eps"),r.dom.$(".play-next").onclick=function(){var t;s("my-player",null==e||null===(t=e.gist)||void 0===t?void 0:t.id).then(function(e){a(e.response)})};var o=r.dom.$(".next-eps-image"),i=d("<img src=".concat(null==e||null===(t=e.gist)||void 0===t?void 0:t.videoImageUrl," />")),l=null==i?void 0:i.firstChild;null==o||o.append(l);for(var p=r.dom.$(".next-eps-description"),u=d("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(n=e.gist)||void 0===n?void 0:n.description,"</div>"));null!=u&&u.firstChild;)null==p||p.appendChild(u.firstChild)};export{c as default,m as initaliseFunctionality};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import t from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import r from"video.js";import{P as l}from"./icons-79ad4d7d.js";import{J as s,f as d}from"./generic-fe8a5419.js";import{d as a}from"./skin-8e2c5488.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var c=r.getComponent("Component"),u=function(){function s(n){var i,r,l,d,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,s),r=this,d=[n,a],l=o(l=s),(i=t(r,p()?Reflect.construct(l,d||[],o(r).constructor):l.apply(r,d))).playerId=a.playerId,i.seriesData=a.sres,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i}return i(s,c),n(s,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"play-next"}),n=r.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(l(window.controlsColor?window.controlsColor:"white"))});return r.dom.appendContent(e,n),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.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=r.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),t=r.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),o=r.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=r.dom.createEl("div",{className:"next-eps-image"}),l=r.dom.createEl("div",{className:"next-eps-description"});r.dom.appendContent(o,i),r.dom.appendContent(o,l),r.dom.appendContent(n,t),r.dom.appendContent(n,o),this.toggleContentOnHover(e,n),r.dom.appendContent(e,n)}},{key:"toggleContentOnHover",value:function(e,n){e.addEventListener("mouseover",function(){r.dom.removeClass(n,"nextepisode-hidden")}),n.addEventListener("mouseover",function(){r.dom.removeClass(n,"nextepisode-hidden")}),e.addEventListener("mouseout",function(){r.dom.addClass(n,"nextepisode-hidden")}),n.addEventListener("mouseout",function(){r.dom.addClass(n,"nextepisode-hidden")})}}])}(),m=function(e,n){var t=v(e,n.video.gist.id),o=h(e[t],n.video.gist.id),i=f(e[t],o);x(i.nextEp)},v=function(e,n){for(var t=-1,o=0;o<e.length;o++)for(var i=0;i<e[o].episodes.length;i++)if(e[o].episodes[i].id===n){t=o;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,o=n-1>=0?n-1:t-1,i=(n+1)%t,r=t>1?e.episodes[o]:null,l=t>1?e.episodes[i]:null;return o===i&&(0===o?l=null:r=null),{prevEp:r,nextEp:l,prevEpIdx:o,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,o){e.gist.id===n&&(t=o)}),t):null},x=function(e){var n,t;r.dom.$(".next-eps"),r.dom.$(".play-next").onclick=function(){var n;s("my-player",null==e||null===(n=e.gist)||void 0===n?void 0:n.id).then(function(e){d(e.response)})};var o=r.dom.$(".next-eps-image"),i=a("<img src=".concat(null==e||null===(n=e.gist)||void 0===n?void 0:n.videoImageUrl," />")),l=null==i?void 0:i.firstChild;null==o||o.append(l);for(var p=r.dom.$(".next-eps-description"),c=a("<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==p||p.appendChild(c.firstChild)};export{u as default,m as initaliseFunctionality};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import a from"video.js";import{E as s,f as r}from"./icons-79ad4d7d.js";import{J as d,T as c}from"./generic-49e2739e.js";import{a as p}from"./autoNextVideo-1796d1ca.js";import{e as m,g as u}from"./skin-86e7e2b5.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"./util-42912ffd.js";function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var y=a.getComponent("Component"),h=function(){function h(e){var n,i,a,s,r,d,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,h),r=this,c=[e,m],d=l(d=h),(s=o(r,v()?Reflect.construct(d,c||[],l(r).constructor):d.apply(r,c))).playerId=m.playerId,s.seriesData=m.sres,s.videos=null==m||null===(n=m.playlist)||void 0===n?void 0:n.content,s.cb=(null==m||null===(i=m.playlist)||void 0===i?void 0:i.cb)||null,s.autoNext=(null==m||null===(a=m.playlist)||void 0===a?void 0:a.autoNext)||!1,s.currentVideoData=m.res,s.initialiseStructure(),s.loadCSS(),s.autoNext&&p({playerId:s.playerId,content:s.videos,cb:s.cb}),s}return i(h,y),n(h,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(s())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.js").then(function(e){var t=document.createElement("style");t.id="playlist-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=a.dom.createEl("div",{className:"selection-container hidden"});a.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(m(),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 o=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(o,"px"),a.dom.appendContent(e,t),n.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(t){var n=this,o=this.el(),l=a.dom.createEl("div",{className:"playlist-selector-head"}),i=a.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(r())});i.onclick=function(){t.classList.add("hidden"),o.classList.remove("open"),t.style.right="-350px"};for(var s=a.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),p=a.dom.createEl("div",{className:"playlist-selector-content"}),m=function(t){var o,l,i=a.dom.createEl("div",{className:"playlist-container"}),s=a.dom.createEl("div",{className:"playlist-section",index:t}),r=a.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(o=n.videos[t])||void 0===o?void 0:o.title)||"")}),m=a.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(n.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});a.dom.appendContent(s,r),a.dom.appendContent(s,m),a.dom.appendContent(i,s),a.dom.appendContent(p,i);var u=a.dom.createEl("div",{className:"playlist-section-expanded hidden"}),v=a.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(l=n.videos[t])||void 0===l?void 0:l.description)||"")}),y=a.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(n.videos[t].img,")"),a.dom.appendContent(u,y),a.dom.appendContent(u,v),a.dom.appendContent(i,u),a.dom.appendContent(p,i),u.onclick=function(e){e.stopPropagation(),c(t+1),d(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)})},s.onclick=function(t){var n,o,l,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,s=(a=e(a))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=s&&null!==(n=s.classList)&&void 0!==n&&n.contains("hidden")?(i.style.backgroundColor="#0000007d",null==s||null===(o=s.classList)||void 0===o||o.remove("hidden")):(null==s||null===(l=s.classList)||void 0===l||l.add("hidden"),i.style.backgroundColor="unset")}},v=0;v<this.videos.length;v++)m(v);a.dom.appendContent(l,i),a.dom.appendContent(l,s),a.dom.appendContent(t,l),a.dom.appendContent(t,p),u(this.playerId).on("fullscreenchange",function(){var e=document.getElementById(n.playerId);if(e){var o=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(o,"px")}})}}])}();export{h as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import l from"@babel/runtime/helpers/inherits";import a from"video.js";import{E as i,f as s}from"./icons-79ad4d7d.js";import{J as r,T as c}from"./generic-fe8a5419.js";import{a as d}from"./autoNextVideo-b7900abb.js";import{e as p,g as m}from"./skin-8e2c5488.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}var v=a.getComponent("Component"),y=function(){function y(t){var l,a,i,s,r,c,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),r=this,p=[t,m],c=o(c=y),(s=n(r,u()?Reflect.construct(c,p||[],o(r).constructor):c.apply(r,p))).playerId=m.playerId,s.seriesData=m.sres,s.videos=null==m||null===(l=m.playlist)||void 0===l?void 0:l.content,s.cb=(null==m||null===(a=m.playlist)||void 0===a?void 0:a.cb)||null,s.autoNext=(null==m||null===(i=m.playlist)||void 0===i?void 0:i.autoNext)||!1,s.currentVideoData=m.res,s.initialiseStructure(),s.loadCSS(),s.autoNext&&d({playerId:s.playerId,content:s.videos,cb:s.cb}),s}return l(y,v),t(y,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(i())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.js").then(function(e){var t=document.createElement("style");t.id="playlist-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=a.dom.createEl("div",{className:"selection-container hidden"});a.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(p(),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 o=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(o,"px"),a.dom.appendContent(e,t),n.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=a.dom.createEl("div",{className:"playlist-selector-head"}),l=a.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(s())});l.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var i=a.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),d=a.dom.createEl("div",{className:"playlist-selector-content"}),p=function(e){var n,o,l=a.dom.createEl("div",{className:"playlist-container"}),i=a.dom.createEl("div",{className:"playlist-section",index:e}),s=a.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(n=t.videos[e])||void 0===n?void 0:n.title)||"")}),p=a.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(t.videos[e].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});a.dom.appendContent(i,s),a.dom.appendContent(i,p),a.dom.appendContent(l,i),a.dom.appendContent(d,l);var m=a.dom.createEl("div",{className:"playlist-section-expanded hidden"}),u=a.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(o=t.videos[e])||void 0===o?void 0:o.description)||"")}),v=a.dom.createEl("div",{className:"playlist-image"});v.style.backgroundImage="url(".concat(t.videos[e].img,")"),a.dom.appendContent(m,v),a.dom.appendContent(m,u),a.dom.appendContent(l,m),a.dom.appendContent(d,l),m.onclick=function(n){n.stopPropagation(),c(e+1),r(t.playerId,t.videos[e].id).then(function(e){null!=t&&t.cb&&t.cb(e)}).catch(function(e){null!=t&&t.cb&&t.cb(e)})},i.onclick=function(e){var t,n,o,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,i=(a=[].concat(a))[e.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=i&&null!==(t=i.classList)&&void 0!==t&&t.contains("hidden")?(l.style.backgroundColor="#0000007d",null==i||null===(n=i.classList)||void 0===n||n.remove("hidden")):(null==i||null===(o=i.classList)||void 0===o||o.add("hidden"),l.style.backgroundColor="unset")}},u=0;u<this.videos.length;u++)p(u);a.dom.appendContent(o,l),a.dom.appendContent(o,i),a.dom.appendContent(e,o),a.dom.appendContent(e,d),m(this.playerId).on("fullscreenchange",function(){var n=document.getElementById(t.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(o,"px")}})}}])}();export{y as default};
@@ -1 +0,0 @@
1
- import{g as l}from"./skin-8e2c5488.js";var i=function(i){var n,o=l(i),t=[];if((null==o||null===(n=o.tech_)||void 0===n?void 0:n.vhs)||!1){var d,e,v=null==o||null===(d=o.tech_)||void 0===d||null===(e=d.vhs)||void 0===e?void 0:e.representations();(null==v?void 0:v.length)>0&&(t=null==v?void 0:v.sort(function(l,i){return(null==l?void 0:l.height)==(null==i?void 0:i.height)?(null==i?void 0:i.bandwidth)-(null==l?void 0:l.bandwidth):(null==i?void 0:i.height)-(null==l?void 0:l.height)}))}else{var u,h,r=null==o||null===(u=o.dash)||void 0===u||null===(h=u.mediaPlayer)||void 0===h?void 0:h.getBitrateInfoListFor("video");(null==r?void 0:r.length)>0&&(t=null==r?void 0:r.sort(function(l,i){return i.height-l.height}))}return t};export{i as g};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/defineProperty";import d from"video.js";import{g as l,p as s}from"./skin-8e2c5488.js";import{d as r}from"./browser-512cd55a.js";function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}var u=d.getComponent("Component"),h=function(){function l(t){var o,s,r,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,l),s=this,u=[t,h],r=i(r=l),o=n(s,c()?Reflect.construct(r,u||[],i(s).constructor):r.apply(s,u)),a(o,"masterRenditions",[]),a(o,"addCustomFont",function(e){var t=d.dom.createEl("div",{className:"font hideCustomFonts"}),n=d.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});d.dom.appendContent(t,n);var i=d.dom.createEl("div",{className:"font-options"});i.style.fontSize="12px",o.fontSizeOptions.map(function(e,t){var n=d.dom.createEl("div",{className:"options",innerHTML:'<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=').concat(e,' name="item" />\n <label class="radio-btn-lable" for=').concat(e,">").concat(e,"pt</label>\n </div>")});n.addEventListener("click",function(e){var t=e.target.id;o.changeFontSize(t)}),d.dom.appendContent(i,n)}),d.dom.appendContent(t,i),d.dom.appendContent(e,t)}),a(o,"resetRenditions",function(){[].concat(document.getElementsByClassName("rendition")).map(function(e){d.dom.removeClass(e,"selected")})}),o.playerId=null==h?void 0:h.playerId,o.skin=null==h?void 0:h.skin,o.icon=null==h?void 0:h.icon,o.masterRenditions=[],o.fontSizeOptions=[10,12,14],o.createRenditions(h.renditions),window.height=null,o}return o(l,u),t(l,[{key:"toggleContentOnHover",value:function(e,t){var n=d.dom.$(".setting-icon",e);n.addEventListener("mouseover",function(){d.dom.removeClass(t,"resolution_hidden")}),t.addEventListener("mouseover",function(){d.dom.removeClass(t,"resolution_hidden")}),n.addEventListener("mouseout",function(){d.dom.addClass(t,"resolution_hidden")}),t.addEventListener("mouseout",function(){d.dom.addClass(t,"resolution_hidden")})}},{key:"changeFontSize",value:function(e){var t=d.dom.$(".renditions",this.contentEl()),n=d.dom.$(".font-options",this.contentEl());t.style.fontSize="".concat(e,"px"),n.style.fontSize="".concat(e,"px")}},{key:"createRenditions",value:function(e){var t=this,n=this.el(),i=d.dom.$(".setting-icon",this.el()),o=s(this.icon);if(i.append(o),"live"===this.skin){var a=document.createTextNode(" Settings");i.appendChild(a)}var l=d.dom.createEl("div",{className:"content resolution_hidden"}),c=d.dom.createEl("div",{innerHTML:"Quality",className:"title"}),u=d.dom.createEl("div",{className:"resolution"});d.dom.appendContent(u,c),this.toggleContentOnHover(n,l);var h=d.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(e.map(function(e,n){var i,o,a=d.dom.createEl("div",{className:"relative"}),l=(((null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(o=e.playlist)||void 0===o?void 0:o.attributes.BANDWIDTH))/1048576).toFixed(1),s="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");s="".concat(e.height,"p @ ").concat(l,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");var r=d.dom.createEl("p",{innerHTML:s,className:"rendition",res:e.height,bandwidth:e.bandwidth});d.dom.appendContent(a,r),d.dom.appendContent(h,a),r.addEventListener("click",function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,m(t.playerId,e.target),d.dom.addClass(r,"selected"))})}),this.addAutoRendition("nondrm",h),"Safari"!=r()&&this.addDynamicSwitchIfAuto()):(e.map(function(e,n){var i=d.dom.createEl("div",{className:"relative"}),o=(e.bitrate/1e6).toFixed(1),a="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");window.enableResolutionsBitrate&&(a="".concat(e.height,"p @ ").concat(o,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":""));var l=d.dom.createEl("p",{innerHTML:a,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});d.dom.appendContent(i,l),d.dom.appendContent(h,i),l.addEventListener("click",function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.selectedVideo=e.target.video,window.qualityIndex=e.target.qualityIndex,m(t.playerId,e.target),d.dom.addClass(l,"selected"))})}),this.addAutoRendition("drm",h)),d.dom.appendContent(u,h),d.dom.appendContent(l,u),d.dom.appendContent(n,l)}},{key:"addDynamicSwitchIfAuto",value:function(){for(var e,t=this.player_.textTracks(),n=0;n<t.length;n++)"segment-metadata"===t[n].label&&(e=t[n]);var i=null;e&&e.on("cuechange",function(){var t,n,o=e.activeCues[0];if(console.log((null==o||null===(t=o.value)||void 0===t||null===(n=t.resolution)||void 0===n?void 0:n.height)+"p"),o&&document.querySelector(".auto.selected")){var a,d,l,s,r,c,u,h;if(null!=o&&null!==(a=o.value)&&void 0!==a&&null!==(d=a.resolution)&&void 0!==d&&d.height&&i!==(null==o||null===(l=o.value)||void 0===l||null===(s=l.resolution)||void 0===s?void 0:s.height))document.querySelector(".auto.selected").textContent="Auto ".concat(null==o||null===(u=o.value)||void 0===u||null===(h=u.resolution)||void 0===h?void 0:h.height,"p");i=null==o||null===(r=o.value)||void 0===r||null===(c=r.resolution)||void 0===c?void 0:c.height}})}},{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"container"}),t=d.dom.createEl("div",{className:"setting-icon"});return d.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var i,o,a,l,s=null===(i=this.player_)||void 0===i||null===(o=i.tech_)||void 0===o?void 0:o.vhs.selectPlaylist().attributes.RESOLUTION.height,r=null===(a=this.player_)||void 0===a||null===(l=a.tech_)||void 0===l?void 0:l.vhs.selectPlaylist().attributes.BANDWIDTH,c=d.dom.createEl("div",{className:"relative"}),u=d.dom.createEl("p",{innerHTML:"Auto ".concat(s,"p"),className:"rendition auto selected",bandwidth:r,res:s});u.addEventListener("click",function(e){window.height!==e.target.res&&(n.resetRenditions(),d.dom.addClass(u,"selected"),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,m(n.playerId,null,!0))}),d.dom.appendContent(c,u),d.dom.appendContent(t,c)}else{var h=d.dom.createEl("div",{className:"relative"}),p=d.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});p.addEventListener("click",function(e){n.resetRenditions(),d.dom.addClass(p,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,m(n.playerId,null,!0)}),d.dom.appendContent(h,p),d.dom.appendContent(t,h)}}}])}(),m=function(e,t,n){var i,o=l(e),a=null==t?void 0:t.bandwidth;if((null==o||null===(i=o.tech_)||void 0===i?void 0:i.vhs)||!1){o.tech_.vhs.representations().forEach(function(e){n||e.bandwidth===a?e.enabled(!0):e.enabled(!1)}),o.handleTechPlaying_();var s=o.currentTime();o.currentTime(0),setTimeout(function(){o.currentTime(s)},100);var r=d.dom.$(".content");r&&d.dom.addClass(r,"resolution_hidden")}else{var c=null==t?void 0:t.qualityIndex;if(n){var u,h;null==o||null===(u=o.dash)||void 0===u||null===(h=u.mediaPlayer)||void 0===h||h.resetSettings()}else{var m,p,v,g;null==o||null===(m=o.dash)||void 0===m||null===(p=m.mediaPlayer)||void 0===p||p.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==o||null===(v=o.dash)||void 0===v||null===(g=v.mediaPlayer)||void 0===g||g.setQualityFor("video",c,!0);var f=o.currentTime();o.currentTime(0),setTimeout(function(){o.currentTime(f)},100);var w=d.dom.$(".content");w&&d.dom.addClass(w,"resolution_hidden")}}};export{h as default,m as playSelectedResolution};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/possibleConstructorReturn";import s from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/defineProperty";import a from"@babel/runtime/regenerator";import c from"video.js";import{U as l,G as d,J as p,f as u,F as v}from"./generic-04b35f2c.js";import{E as m}from"./icons-79ad4d7d.js";import{d as f}from"./skin-86e7e2b5.js";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"@babel/runtime/helpers/toConsumableArray";var h=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}var b,y=c.getComponent("Component"),C=function(){function e(i){var r,a,c,l,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,e),a=this,l=[i,d],c=s(c=e),r=n(a,g()?Reflect.construct(c,l||[],s(a).constructor):c.apply(a,l)),o(r,"seriesData",[]),r.seriesData=d.seriesData,b=d.playerId,k(r.el(),r.seriesData),r.loadCSS(),r}return r(e,y),i(e,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){import("./series-041152aa.js").then(function(e){var t=document.createElement("style");t.id="series",t.append("".concat(e.default)),document.head.appendChild(t)})}}])}();function w(){return(w=e(a.mark(function e(t,i,n,s){return a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:d(b),h(b),p(b,i).then(function(e){u(e.response),v(b)});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function L(e,t,i,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),o=document.getElementById("episode-container");e.id;for(var a=e.episodes.map(function(e,t){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(t+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")}).join("");null!=o&&o.firstChild;)o.removeChild(o.firstChild);for(var c=f(a);null!=c&&c.firstChild;)o.appendChild(c.firstChild);!function(e){l(e).then(function(e){var t=e.data,i=document.querySelectorAll("#progress-div");i&&t.map(function(e,t){e&&e.watchedPercentage&&i[t]&&(i[t].style.width=e.watchedPercentage+"px")})}).catch(function(e){})}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var d=document.querySelectorAll(".details-wrapper"),p=document.querySelectorAll("#episode-title"),u=document.querySelectorAll(".meta-details"),v=document.querySelector("#episodes-back-btn"),m=e.id,h=e.episodes;v.addEventListener("click",function(){return function(e,t){e.classList.remove("hide-container"),t.classList.add("hide-container")}(s,r)});for(var g=function(t){d[t].addEventListener("click",function(){return function(e,t,i){var n=t.querySelector(".meta-details");t.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),i.forEach(function(t,n){n!==e&&(i[n].classList.remove("episode-active"),i[n].querySelector(".meta-details").classList.remove("metadetails-active"))})}(t,p[t],p)}),u[t].addEventListener("click",function(){return function(e,t,i,n){return w.apply(this,arguments)}(t,h[t].id,i,p)}),e.episodes[t].id==m&&p[t].classList.add("highlight-active-eps")},b=0;b<d.length;b++)g(b)}function k(e,t){for(var i='<div class="hover-div"></div>\n '.concat(m(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map(function(e,t){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")}).join("")}(t),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=f(i);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}export{k as customSeasonList,L as handleSeasonChange,C as seriesModule};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/possibleConstructorReturn";import s from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/defineProperty";import a from"@babel/runtime/regenerator";import c from"video.js";import{U as l,G as d,J as p,f as v,F as u}from"./generic-fe8a5419.js";import{E as m}from"./icons-79ad4d7d.js";import{d as f}from"./skin-8e2c5488.js";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";var h=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}var y,b=c.getComponent("Component"),C=function(){function e(i){var r,a,c,l,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,e),a=this,l=[i,d],c=s(c=e),r=n(a,g()?Reflect.construct(c,l||[],s(a).constructor):c.apply(a,l)),o(r,"seriesData",[]),r.seriesData=d.seriesData,y=d.playerId,k(r.el(),r.seriesData),r.loadCSS(),r}return r(e,b),i(e,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){import("./series-041152aa.js").then(function(e){var t=document.createElement("style");t.id="series",t.append("".concat(e.default)),document.head.appendChild(t)})}}])}();function w(){return(w=e(a.mark(function e(t,i,n,s){return a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:d(y),h(y),p(y,i).then(function(e){v(e.response),u(y)});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function L(e,t,i,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),o=document.getElementById("episode-container");e.id;for(var a=e.episodes.map(function(e,t){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(t+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")}).join("");null!=o&&o.firstChild;)o.removeChild(o.firstChild);for(var c=f(a);null!=c&&c.firstChild;)o.appendChild(c.firstChild);!function(e){l(e).then(function(e){var t=e.data,i=document.querySelectorAll("#progress-div");i&&t.map(function(e,t){e&&e.watchedPercentage&&i[t]&&(i[t].style.width=e.watchedPercentage+"px")})}).catch(function(e){})}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var d=document.querySelectorAll(".details-wrapper"),p=document.querySelectorAll("#episode-title"),v=document.querySelectorAll(".meta-details"),u=document.querySelector("#episodes-back-btn"),m=e.id,h=e.episodes;u.addEventListener("click",function(){return function(e,t){e.classList.remove("hide-container"),t.classList.add("hide-container")}(s,r)});for(var g=function(t){d[t].addEventListener("click",function(){return function(e,t,i){var n=t.querySelector(".meta-details");t.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),i.forEach(function(t,n){n!==e&&(i[n].classList.remove("episode-active"),i[n].querySelector(".meta-details").classList.remove("metadetails-active"))})}(t,p[t],p)}),v[t].addEventListener("click",function(){return function(e,t,i,n){return w.apply(this,arguments)}(t,h[t].id,i,p)}),e.episodes[t].id==m&&p[t].classList.add("highlight-active-eps")},y=0;y<d.length;y++)g(y)}function k(e,t){for(var i='<div class="hover-div"></div>\n '.concat(m(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map(function(e,t){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")}).join("")}(t),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=f(i);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}export{k as customSeasonList,L as handleSeasonChange,C as seriesModule};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import n from"@babel/runtime/helpers/inherits";import i from"video.js";import{e as l,f as a,B as r}from"./icons-79ad4d7d.js";import{V as d,J as c,j as u,W as m,b as v,C as p}from"./generic-fe8a5419.js";import{e as h,s as f,p as C,j as y,g as b,i as g}from"./skin-8e2c5488.js";import{a as N}from"./autoNextVideo-b7900abb.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(E=function(){return!!e})()}var k=i.getComponent("Component"),S=function(){function S(t){var n,i,l,a,r,c,v,p,h,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,S),v=this,h=[t,f],p=o(p=S),(c=s(v,E()?Reflect.construct(p,h||[],o(v).constructor):p.apply(v,h))).playerId=f.playerId,c.seriesData=f.sres,c.videos=null==f||null===(n=f.sres)||void 0===n?void 0:n.seasons,c.currentVideoData=f.res,c.initialiseStructure(),c.loadCSS(),c.selectedSeason=0,c.cb=null==f||null===(i=f.series)||void 0===i?void 0:i.cb,c.autoPlayNext=(null==f||null===(l=f.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),c.watchMap=u(),null!==(a=c)&&void 0!==a&&a.autoPlayNext&&null!=f&&null!==(r=f.series)&&void 0!==r&&r.enable){var C,y,b,g,k=null==f||null===(C=f.sres)||void 0===C?void 0:C.seasons,I=[];k.map(function(e){I.push.apply(I,e.episodes)}),m(I),d(null===(y=c.options_)||void 0===y||null===(b=y.res)||void 0===b||null===(g=b.video)||void 0===g?void 0:g.id),N({playerId:c.playerId,content:I,cb:c.cb,series:null==f?void 0:f.sres})}return c}return n(S,k),t(S,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("button",{className:"series-selector-icon",title:"series selector",innerHTML:"".concat(l())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.js").then(function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(h(),e.classList.remove("hidden"),s.classList.add("open"),f(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"handleTabIndexSelector",value:function(){var e,t=document.getElementsByClassName("season-holder");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");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)}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=i.dom.createEl("div",{className:"series-selection-container hidden"});i.dom.$(".series-selector-icon",this.el()).onclick=function(){e.toggleOpenClose(s),e.handleTabIndexSelector()};var o=document.getElementById(this.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(n,"px"),i.dom.appendContent(t,s),o.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 o=i.dom.$(".series-selector-content",this.el());for(i.dom.$(".series-selector-cross-icon",this.el()),e.className="series-selector-cross-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=this.createSeasonLister();for(i.dom.appendContent(o,n),i.dom.$(".series-selector-title",this.el()).textContent="Seasons";null!=e&&e.firstChild;)e.removeChild(e.firstChild);var l=C(a());e.appendChild(l)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=i.dom.createEl("div",{className:"series-selector-head"}),n=i.dom.createEl("button",{className:"series-selector-cross-icon",ariaLabel:"close season selector",innerHTML:"".concat(a())});n.onclick=function(){t.handleSeriesCloseIcon(n,e,s)},n.onkeydown=function(o){"Enter"===o.key&&t.handleSeriesCloseIcon(n,e,s)};var l=i.dom.createEl("div",{className:"series-selector-title",ariaLabel:"season title",innerHTML:"Seasons"}),r=i.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();i.dom.appendContent(r,d),i.dom.appendContent(o,n),i.dom.appendContent(o,l),i.dom.appendContent(e,o),i.dom.appendContent(e,r),y(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;b(this.playerId);for(var t=v(),s=i.dom.createEl("div",{className:"season-container"}),o=function(o){var n,l=document.createElement("label");l.className="season-holder",l.ariaLabel="season-".concat(o+1),l.role="button",l.type="button",l.setAttribute("for","season-".concat(o));var a=document.createElement("div");a.className="season - ".concat(o),a.textContent=null===(n=t[o])||void 0===n?void 0:n.title;var r=i.dom.createEl("input",{className:"radio - ".concat(o),id:"season-".concat(o),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==o&&(r.checked=!0),r.onclick=function(t){p.set(o),e.showSeasonDetails(o)},l.onkeydown=function(t){"Enter"===t.key&&(p.set(o),e.showSeasonDetails(o))},i.dom.appendContent(l,r),i.dom.appendContent(l,a),i.dom.appendContent(s,l)},n=0;n<t.length;n++)o(n);return s}},{key:"loadSeriesAssetById",value:function(e,t){var s,o=this;d(null===(s=e[t])||void 0===s?void 0:s.id),c(this.playerId,e[t].id).then(function(e){null!=o&&o.cb&&o.cb(e)}).catch(function(e){null!=o&&o.cb&&o.cb(e)})}},{key:"getSeasonDetailsContainer",value:function(e,t){var s=this;e=e.map(function(e){var t,o,n,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===(o=e.gist)||void 0===o||null===(n=o.imageGist)||void 0===n?void 0:n.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==s||null===(d=s.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 n,l,a,r,d,c=i.dom.createEl("div",{className:"series-container",tabIndex:0,role:"button",type:"button"}),u=i.dom.createEl("div",{className:"series-section-data",index:o,innerHTML:"".concat((null===(n=e[o])||void 0===n?void 0:n.title)||"")});i.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(l=e[o])||void 0===l?void 0:l.title)||"")}),i.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[o].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var m=i.dom.createEl("div",{className:"series-section-image"}),v=(null===(a=e[o])||void 0===a?void 0:a.description)||"";(null===(r=v)||void 0===r?void 0:r.length)>170&&(v=v.substr(0,170)+"..."),i.dom.createEl("div",{className:"series-description",innerHTML:"".concat(v||"")});var p=i.dom.createEl("img",{className:"series-image"});p.src="".concat(g(null===(d=e[o])||void 0===d?void 0:d.img)),p.alt="Episode ".concat(o+1),i.dom.appendContent(m,p),i.dom.appendContent(c,m),i.dom.appendContent(c,u),i.dom.appendContent(t,c),c.onclick=function(t){t.stopPropagation(),s.loadSeriesAssetById(e,o)},c.onkeydown=function(t){"Enter"===t.key&&(t.stopPropagation(),s.loadSeriesAssetById(e,o))},u.onclick=function(e){var t,s,o,n=document.getElementsByClassName("series-selector-content")[0].childNodes,i=(n=[].concat(n))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=i&&null!==(t=i.classList)&&void 0!==t&&t.contains("hidden")?(c.style.backgroundColor="#0000007d",null==i||null===(s=i.classList)||void 0===s||s.remove("hidden")):(null==i||null===(o=i.classList)||void 0===o||o.add("hidden"),c.style.backgroundColor="unset")}},n=0;n<e.length;n++)o(n);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=i.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=v()[e].episodes;this.getSeasonDetailsContainer(s,t);var o=i.dom.$(".series-selector-cross-icon",this.el());for(o.className="series-selector-back-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=C(r());o.appendChild(n),i.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}])}();export{S as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import s from"@babel/runtime/helpers/getPrototypeOf";import n from"@babel/runtime/helpers/inherits";import i from"video.js";import{E as l,f as a,B as r}from"./icons-79ad4d7d.js";import{j as d,W as c,V as u,b as m,C as p,J as v}from"./generic-fe8a5419.js";import{e as h,p as f,g as C}from"./skin-8e2c5488.js";import{a as g}from"./autoNextVideo-b7900abb.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";import"./util-389babb5.js";function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var b=i.getComponent("Component"),N=function(){function N(t){var n,i,l,a,r,m,p,v,h,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,N),p=this,h=[t,f],v=s(v=N),(m=o(p,y()?Reflect.construct(v,h||[],s(p).constructor):v.apply(p,h))).playerId=f.playerId,m.seriesData=f.sres,m.videos=null==f||null===(n=f.sres)||void 0===n?void 0:n.seasons,m.currentVideoData=f.res,m.initialiseStructure(),m.loadCSS(),m.selectedSeason=0,m.cb=null==f||null===(i=f.series)||void 0===i?void 0:i.cb,m.autoPlayNext=(null==f||null===(l=f.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),m.watchMap=d(),null!==(a=m)&&void 0!==a&&a.autoPlayNext&&null!=f&&null!==(r=f.series)&&void 0!==r&&r.enable){var C,b,E,k,S=null==f||null===(C=f.sres)||void 0===C?void 0:C.seasons,x=[];S.map(function(e){x.push.apply(x,e.episodes)}),c(x),u(null===(b=m.options_)||void 0===b||null===(E=b.res)||void 0===E||null===(k=E.video)||void 0===k?void 0:k.id),g({playerId:m.playerId,content:x,cb:m.cb,series:null==f?void 0:f.sres})}return m}return n(N,b),t(N,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(l())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then(function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"toggleOpenClose",value:function(e){var t,o=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(h(),e.classList.remove("hidden"),o.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=i.dom.createEl("div",{className:"series-selection-container hidden"});i.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var s=document.getElementById(this.playerId);if(s){var n=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(n,"px"),i.dom.appendContent(t,o),s.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),s=i.dom.createEl("div",{className:"series-selector-head"}),n=i.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(a())});n.onclick=function(){if("series-selector-cross-icon"===n.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===n.className){var s=i.dom.$(".series-selector-content",t.el());for(i.dom.$(".series-selector-cross-icon",t.el()),n.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var l=t.createSeasonLister();for(i.dom.appendContent(s,l),i.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var r=f(a());n.appendChild(r)}};var l=i.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),r=i.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();i.dom.appendContent(r,d),i.dom.appendContent(s,n),i.dom.appendContent(s,l),i.dom.appendContent(e,s),i.dom.appendContent(e,r),C(this.playerId).on("fullscreenchange",function(){var o=document.getElementById(t.playerId);if(o){var s=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(s,"px")}})}},{key:"createSeasonLister",value:function(){var e=this;C(this.playerId);for(var t=m(),o=i.dom.createEl("div",{className:"season-container"}),s=function(s){var n,l=document.createElement("label");l.className="season-holder",l.setAttribute("for","season-".concat(s));var a=document.createElement("div");a.className="season - ".concat(s),a.textContent=null===(n=t[s])||void 0===n?void 0:n.title;var r=i.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==s&&(r.checked=!0),r.onclick=function(t){p.set(s),e.showSeasonDetails(s)},i.dom.appendContent(l,r),i.dom.appendContent(l,a),i.dom.appendContent(o,l)},n=0;n<t.length;n++)s(n);return o}},{key:"getSeasonDetailsContainer",value:function(e,t){var o=this;e=e.map(function(e){var t,s,n,i,l;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===(n=s.imageGist)||void 0===n?void 0:n.r16x9,watchedPercentage:(null==o||null===(i=o.watchMap)||void 0===i||null===(l=i.get(null==e?void 0:e.id))||void 0===l?void 0:l.p)||0}});for(var s=function(s){var n,l,a,r,d,c,m,p=i.dom.createEl("div",{className:"series-container"}),h=i.dom.createEl("div",{className:"series-section",index:s}),f=i.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(n=e[s])||void 0===n?void 0:n.title)||"")}),C=i.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[s].watchedPercentage,"%' class='series-progress-bar-value'></div>")});i.dom.appendContent(h,f),i.dom.appendContent(h,C),i.dom.appendContent(p,h),i.dom.appendContent(t,p);var g=i.dom.createEl("div",{className:"series-section-expanded hidden"}),y=(null===(l=e[s])||void 0===l?void 0:l.description)||"";(null===(a=y)||void 0===a?void 0:a.length)>170&&(y=y.substr(0,170)+"...");var b=i.dom.createEl("div",{className:"series-description",innerHTML:"".concat(y||"")}),N=i.dom.createEl("img",{className:"series-image"});N.src="".concat((null===(r=e[s])||void 0===r?void 0:r.img)||(null===(d=window)||void 0===d||null===(c=d.customData)||void 0===c?void 0:c.fallbackImage)),N.alt="".concat(null===(m=e[s])||void 0===m?void 0:m.title),i.dom.appendContent(g,N),i.dom.appendContent(g,b),i.dom.appendContent(p,g),i.dom.appendContent(t,p),g.onclick=function(t){var n;t.stopPropagation(),u(null===(n=e[s])||void 0===n?void 0:n.id),v(o.playerId,e[s].id).then(function(e){null!=o&&o.cb&&o.cb(e)}).catch(function(e){null!=o&&o.cb&&o.cb(e)})},h.onclick=function(e){var t,o,s,n=document.getElementsByClassName("series-selector-content")[0].childNodes,i=(n=[].concat(n))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=i&&null!==(t=i.classList)&&void 0!==t&&t.contains("hidden")?(p.style.backgroundColor="#0000007d",null==i||null===(o=i.classList)||void 0===o||o.remove("hidden")):(null==i||null===(s=i.classList)||void 0===s||s.add("hidden"),p.style.backgroundColor="unset")}},n=0;n<e.length;n++)s(n);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=i.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var o=m()[e].episodes;this.getSeasonDetailsContainer(o,t);var s=i.dom.$(".series-selector-cross-icon",this.el());for(s.className="series-selector-back-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var n=f(r());s.appendChild(n),i.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}])}();export{N as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import l from"video.js";import{e as a,f as r,B as d}from"./icons-79ad4d7d.js";import{V as c,J as u,j as m,W as v,b as p,C as h}from"./generic-49e2739e.js";import{e as f,s as C,p as y,j as b,g,i as N}from"./skin-86e7e2b5.js";import{a as E}from"./autoNextVideo-1796d1ca.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"./util-42912ffd.js";function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var S=l.getComponent("Component"),I=function(){function I(s){var i,l,a,r,d,u,p,h,f,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,I),p=this,f=[s,C],h=n(h=I),(u=o(p,k()?Reflect.construct(h,f||[],n(p).constructor):h.apply(p,f))).playerId=C.playerId,u.seriesData=C.sres,u.videos=null==C||null===(i=C.sres)||void 0===i?void 0:i.seasons,u.currentVideoData=C.res,u.initialiseStructure(),u.loadCSS(),u.selectedSeason=0,u.cb=null==C||null===(l=C.series)||void 0===l?void 0:l.cb,u.autoPlayNext=(null==C||null===(a=C.series)||void 0===a?void 0:a.autoPlayNext)||!1,sessionStorage.getItem("token"),u.watchMap=m(),null!==(r=u)&&void 0!==r&&r.autoPlayNext&&null!=C&&null!==(d=C.series)&&void 0!==d&&d.enable){var y,b,g,N,S=null==C||null===(y=C.sres)||void 0===y?void 0:y.seasons,x=[];S.map(function(t){x.push.apply(x,e(t.episodes))}),v(x),c(null===(b=u.options_)||void 0===b||null===(g=b.res)||void 0===g||null===(N=g.video)||void 0===N?void 0:N.id),E({playerId:u.playerId,content:x,cb:u.cb,series:null==C?void 0:C.sres})}return u}return i(I,S),s(I,[{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("button",{className:"series-selector-icon",title:"series selector",innerHTML:"".concat(a())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.js").then(function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(f(),e.classList.remove("hidden"),s.classList.add("open"),C(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"handleTabIndexSelector",value:function(){var e,t=document.getElementsByClassName("season-holder");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");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)}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=l.dom.createEl("div",{className:"series-selection-container hidden"});l.dom.$(".series-selector-icon",this.el()).onclick=function(){e.toggleOpenClose(s),e.handleTabIndexSelector()};var o=document.getElementById(this.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(n,"px"),l.dom.appendContent(t,s),o.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 o=l.dom.$(".series-selector-content",this.el());for(l.dom.$(".series-selector-cross-icon",this.el()),e.className="series-selector-cross-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=this.createSeasonLister();for(l.dom.appendContent(o,n),l.dom.$(".series-selector-title",this.el()).textContent="Seasons";null!=e&&e.firstChild;)e.removeChild(e.firstChild);var i=y(r());e.appendChild(i)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=l.dom.createEl("div",{className:"series-selector-head"}),n=l.dom.createEl("button",{className:"series-selector-cross-icon",ariaLabel:"close season selector",innerHTML:"".concat(r())});n.onclick=function(){t.handleSeriesCloseIcon(n,e,s)},n.onkeydown=function(o){"Enter"===o.key&&t.handleSeriesCloseIcon(n,e,s)};var i=l.dom.createEl("div",{className:"series-selector-title",ariaLabel:"season title",innerHTML:"Seasons"}),a=l.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();l.dom.appendContent(a,d),l.dom.appendContent(o,n),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,a),b(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;g(this.playerId);for(var t=p(),s=l.dom.createEl("div",{className:"season-container"}),o=function(o){var n,i=document.createElement("label");i.className="season-holder",i.ariaLabel="season-".concat(o+1),i.role="button",i.type="button",i.setAttribute("for","season-".concat(o));var a=document.createElement("div");a.className="season - ".concat(o),a.textContent=null===(n=t[o])||void 0===n?void 0:n.title;var r=l.dom.createEl("input",{className:"radio - ".concat(o),id:"season-".concat(o),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==o&&(r.checked=!0),r.onclick=function(t){h.set(o),e.showSeasonDetails(o)},i.onkeydown=function(t){"Enter"===t.key&&(h.set(o),e.showSeasonDetails(o))},l.dom.appendContent(i,r),l.dom.appendContent(i,a),l.dom.appendContent(s,i)},n=0;n<t.length;n++)o(n);return s}},{key:"loadSeriesAssetById",value:function(e,t){var s,o=this;c(null===(s=e[t])||void 0===s?void 0:s.id),u(this.playerId,e[t].id).then(function(e){null!=o&&o.cb&&o.cb(e)}).catch(function(e){null!=o&&o.cb&&o.cb(e)})}},{key:"getSeasonDetailsContainer",value:function(t,s){var o=this;t=t.map(function(e){var t,s,n,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===(n=s.imageGist)||void 0===n?void 0:n.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==o||null===(d=o.watchMap)||void 0===d||null===(c=d.get(null==e?void 0:e.id))||void 0===c?void 0:c.p)||0}});for(var n=function(n){var i,a,r,d,c,u=l.dom.createEl("div",{className:"series-container",tabIndex:0,role:"button",type:"button"}),m=l.dom.createEl("div",{className:"series-section-data",index:n,innerHTML:"".concat((null===(i=t[n])||void 0===i?void 0:i.title)||"")});l.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(a=t[n])||void 0===a?void 0:a.title)||"")}),l.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[n].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var v=l.dom.createEl("div",{className:"series-section-image"}),p=(null===(r=t[n])||void 0===r?void 0:r.description)||"";(null===(d=p)||void 0===d?void 0:d.length)>170&&(p=p.substr(0,170)+"..."),l.dom.createEl("div",{className:"series-description",innerHTML:"".concat(p||"")});var h=l.dom.createEl("img",{className:"series-image"});h.src="".concat(N(null===(c=t[n])||void 0===c?void 0:c.img)),h.alt="Episode ".concat(n+1),l.dom.appendContent(v,h),l.dom.appendContent(u,v),l.dom.appendContent(u,m),l.dom.appendContent(s,u),u.onclick=function(e){e.stopPropagation(),o.loadSeriesAssetById(t,n)},u.onkeydown=function(e){"Enter"===e.key&&(e.stopPropagation(),o.loadSeriesAssetById(t,n))},m.onclick=function(t){var s,o,n,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")?(u.style.backgroundColor="#0000007d",null==l||null===(o=l.classList)||void 0===o||o.remove("hidden")):(null==l||null===(n=l.classList)||void 0===n||n.add("hidden"),u.style.backgroundColor="unset")}},i=0;i<t.length;i++)n(i);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 s=p()[e].episodes;this.getSeasonDetailsContainer(s,t);var o=l.dom.$(".series-selector-cross-icon",this.el());for(o.className="series-selector-back-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=y(d());o.appendChild(n),l.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}])}();export{I as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import l from"video.js";import{E as a,f as r,B as d}from"./icons-79ad4d7d.js";import{j as c,W as u,V as m,b as p,C as v,J as h}from"./generic-04b35f2c.js";import{e as f,p as C,g}from"./skin-86e7e2b5.js";import{a as y}from"./autoNextVideo-5202ca61.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"./util-42912ffd.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var N=l.getComponent("Component"),E=function(){function E(o){var i,l,a,r,d,p,v,h,f,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,E),v=this,f=[o,C],h=n(h=E),(p=s(v,b()?Reflect.construct(h,f||[],n(v).constructor):h.apply(v,f))).playerId=C.playerId,p.seriesData=C.sres,p.videos=null==C||null===(i=C.sres)||void 0===i?void 0:i.seasons,p.currentVideoData=C.res,p.initialiseStructure(),p.loadCSS(),p.selectedSeason=0,p.cb=null==C||null===(l=C.series)||void 0===l?void 0:l.cb,p.autoPlayNext=(null==C||null===(a=C.series)||void 0===a?void 0:a.autoPlayNext)||!1,sessionStorage.getItem("token"),p.watchMap=c(),null!==(r=p)&&void 0!==r&&r.autoPlayNext&&null!=C&&null!==(d=C.series)&&void 0!==d&&d.enable){var g,N,k,S,x=null==C||null===(g=C.sres)||void 0===g?void 0:g.seasons,L=[];x.map(function(t){L.push.apply(L,e(t.episodes))}),u(L),m(null===(N=p.options_)||void 0===N||null===(k=N.res)||void 0===k||null===(S=k.video)||void 0===S?void 0:S.id),y({playerId:p.playerId,content:L,cb:p.cb,series:null==C?void 0:C.sres})}return p}return i(E,N),o(E,[{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())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then(function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"toggleOpenClose",value:function(e){var t,o=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(f(),e.classList.remove("hidden"),o.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=l.dom.createEl("div",{className:"series-selection-container hidden"});l.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var s=document.getElementById(this.playerId);if(s){var n=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);o.style.height="".concat(n,"px"),l.dom.appendContent(t,o),s.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),s=l.dom.createEl("div",{className:"series-selector-head"}),n=l.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(r())});n.onclick=function(){if("series-selector-cross-icon"===n.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===n.className){var s=l.dom.$(".series-selector-content",t.el());for(l.dom.$(".series-selector-cross-icon",t.el()),n.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var i=t.createSeasonLister();for(l.dom.appendContent(s,i),l.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var a=C(r());n.appendChild(a)}};var i=l.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),a=l.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();l.dom.appendContent(a,d),l.dom.appendContent(s,n),l.dom.appendContent(s,i),l.dom.appendContent(e,s),l.dom.appendContent(e,a),g(this.playerId).on("fullscreenchange",function(){var o=document.getElementById(t.playerId);if(o){var s=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(s,"px")}})}},{key:"createSeasonLister",value:function(){var e=this;g(this.playerId);for(var t=p(),o=l.dom.createEl("div",{className:"season-container"}),s=function(s){var n,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(s));var a=document.createElement("div");a.className="season - ".concat(s),a.textContent=null===(n=t[s])||void 0===n?void 0:n.title;var r=l.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==s&&(r.checked=!0),r.onclick=function(t){v.set(s),e.showSeasonDetails(s)},l.dom.appendContent(i,r),l.dom.appendContent(i,a),l.dom.appendContent(o,i)},n=0;n<t.length;n++)s(n);return o}},{key:"getSeasonDetailsContainer",value:function(t,o){var s=this;t=t.map(function(e){var t,o,n,i,l;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(o=e.gist)||void 0===o||null===(n=o.imageGist)||void 0===n?void 0:n.r16x9,watchedPercentage:(null==s||null===(i=s.watchMap)||void 0===i||null===(l=i.get(null==e?void 0:e.id))||void 0===l?void 0:l.p)||0}});for(var n=function(n){var i,a,r,d,c,u,p,v=l.dom.createEl("div",{className:"series-container"}),f=l.dom.createEl("div",{className:"series-section",index:n}),C=l.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=t[n])||void 0===i?void 0:i.title)||"")}),g=l.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[n].watchedPercentage,"%' class='series-progress-bar-value'></div>")});l.dom.appendContent(f,C),l.dom.appendContent(f,g),l.dom.appendContent(v,f),l.dom.appendContent(o,v);var y=l.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(a=t[n])||void 0===a?void 0:a.description)||"";(null===(r=b)||void 0===r?void 0:r.length)>170&&(b=b.substr(0,170)+"...");var N=l.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),E=l.dom.createEl("img",{className:"series-image"});E.src="".concat((null===(d=t[n])||void 0===d?void 0:d.img)||(null===(c=window)||void 0===c||null===(u=c.customData)||void 0===u?void 0:u.fallbackImage)),E.alt="".concat(null===(p=t[n])||void 0===p?void 0:p.title),l.dom.appendContent(y,E),l.dom.appendContent(y,N),l.dom.appendContent(v,y),l.dom.appendContent(o,v),y.onclick=function(e){var o;e.stopPropagation(),m(null===(o=t[n])||void 0===o?void 0:o.id),h(s.playerId,t[n].id).then(function(e){null!=s&&s.cb&&s.cb(e)}).catch(function(e){null!=s&&s.cb&&s.cb(e)})},f.onclick=function(t){var o,s,n,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(o=l.classList)&&void 0!==o&&o.contains("hidden")?(v.style.backgroundColor="#0000007d",null==l||null===(s=l.classList)||void 0===s||s.remove("hidden")):(null==l||null===(n=l.classList)||void 0===n||n.add("hidden"),v.style.backgroundColor="unset")}},i=0;i<t.length;i++)n(i);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 o=p()[e].episodes;this.getSeasonDetailsContainer(o,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 n=C(d());s.appendChild(n),l.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}])}();export{E as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import i from"@babel/runtime/helpers/inherits";import o from"video.js";import{g as l,f as r,T as d}from"./icons-79ad4d7d.js";import{e as s,s as c,f as u,j as p,g as m,d as v,p as h}from"./skin-8e2c5488.js";import{g as f}from"./renditions-65794079.js";import{playSelectedResolution as g}from"./resolution-ed00f17a.js";import{g as y}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"./browser-512cd55a.js";function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}var b=o.getComponent("Component"),E=function(){function E(t){var i,o,l,r,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),o=this,r=[t,d],l=n(l=E),(i=a(o,C()?Reflect.construct(l,r||[],n(o).constructor):l.apply(o,r))).playerId=d.playerId,i.seriesData=d.sres,i.currentVideoData=d.res,i.initialiseStructure(),i.loadCSS(),i.resolutionBitrateMap,i}return i(E,b),t(E,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new Map,e.forEach(function(e){var a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(a){var n=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(a,n||1/0))}})}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),n=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!n)&&a>n}},{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=o.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(l())});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./settings-icon-1fbc99bc.js").then(function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=o.dom.createEl("div",{className:"selection-container hidden"});o.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=a.classList)&&void 0!==n&&n.contains("hidden")?(s(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",c(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");a.style.height="".concat(i),o.dom.appendContent(t,a),n.style.overflow="hidden",this.addFunctionality(a),u(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=o.dom.createEl("div",{className:"settings-selector-head"}),n=o.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(r())});n.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var i=o.dom.createEl("div",{className:"settings-selector-title",innerHTML:y("settingsTitle")||"Settings"}),l=o.dom.createEl("div",{className:"settings-selector-content"}),d=o.dom.createEl("div",{className:"settings-container"}),s=this.createVideoQualityContainer();o.dom.appendContent(d,s);var c=this.createAudioQualityContainer();o.dom.appendContent(d,c),o.dom.appendContent(a,n),o.dom.appendContent(a,i),o.dom.appendContent(e,a),o.dom.appendContent(e,l),o.dom.appendContent(l,d),p(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=m(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=o.dom.createEl("div",{className:"audio-language-container"}),n=o.dom.createEl("div",{className:"audio-language-container-title",innerHTML:y("audioLanguageText")||"Audio Language"});o.dom.appendContent(a,n);for(var i=function(e){var n,i=document.createElement("label");i.className="audio-language-holder",i.setAttribute("for","language-radio-".concat(e));var l=document.createElement("div");l.className="audio - ".concat(e),l.textContent=null==t||null===(n=t[e])||void 0===n?void 0:n.label;var r=o.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});r.setAttribute("type","radio"),1==t[e].enabled&&(r.checked=!0),r.onchange=function(a){t.map(function(e){e.enabled=!1}),t[e].enabled=!0},o.dom.appendContent(i,r),o.dom.appendContent(i,l),o.dom.appendContent(a,i)},l=0;l<t.length;l++)i(l);return a}}},{key:"createVideoQualityContainer",value:function(){var e=this,t=o.dom.createEl("div",{className:"video-quality-container"}),a=o.dom.createEl("div",{className:"video-quality-container-title",innerHTML:y("videoQualityText")||"Video Quality"});o.dom.appendContent(t,a);var n=[].concat(f(this.playerId),[{height:"Auto"}]).sort(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)});this.fillResolutionBitrateMap(n),g(this.playerId,"raw",!0);for(var i=function(a){var i,l,r,s=document.createElement("label"),c=document.createElement("div"),u=document.createElement("div");u.className="video-quality-bitrate-label",c.className="video-quality-holder",s.className="video-quality-label-container",s.setAttribute("for","quality".concat(a));var p=document.createElement("div");p.className="video-quality - ".concat(a);var m=(null==n||null===(i=n[a])||void 0===i?void 0:i.height)+"".concat("Auto"==(null==n||null===(l=n[a])||void 0===l?void 0:l.height)?"":"p"),f=document.createTextNode(m),C="".concat(e.isEnhancedBitrate(n[a])?y("enhancedBitrateLabel")||"Enhanced Bitrate":""),b=document.createTextNode(C);if(u.appendChild(b),p.appendChild(f),(null==n||null===(r=n[a])||void 0===r?void 0:r.height)>=720)for(var E=v("<span class='hd-rendition'> HD </span>");null!=E&&E.firstChild;)p.appendChild(E.firstChild);var N=o.dom.createEl("input",{className:"radio - ".concat(a," radio-btn"),id:"quality".concat(a),name:"quality-radio",rendata:"".concat(n[a]),checked:"".concat(a==n.length-1)});N.setAttribute("type","radio"),N.onchange=function(t){var i=n[a];"true"=="".concat("Auto"==n[a].height)?g(e.playerId,i,!0):g(e.playerId,i)};var k=document.createElement("span");k.className=C?"check-mark center":"check-mark";var I=h(d());k.appendChild(I),c.appendChild(N),c.appendChild(k),c.appendChild(p),o.dom.appendContent(s,c),s.appendChild(u),o.dom.appendContent(t,s)},l=0;l<n.length;l++)i(l);return t}}])}();export{E as default};
@@ -1 +0,0 @@
1
- import{h as o,o as l,p as i,q as e}from"./features-58699d4f.js";import{g as r}from"./skin-8e2c5488.js";import{a as n,i as a,b as t}from"./index-d7c8b33b.js";import{i as s}from"./browser-512cd55a.js";import"videojs-contrib-quality-menu";import d from"video.js";import{i as u,s as p}from"./index-24d08aa6.js";import{e as v}from"./generic-fe8a5419.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"./renditions-65794079.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-b7900abb.js";import"./util-389babb5.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"video.js/dist/video-js.min.css";import"./captions-7996e045.js";import"./resolution-ed00f17a.js";import"axios";import"js-cookie";import"ua-parser-js";function m(l,i){var e=r(l);e&&(e.on("loadeddata",function(){var o,e,t,d,u;!function(o){var l=r(o);l&&(null==l||l.qualityMenu,l.qualityMenu({useResolutionLabels:!0}))}(l),!(null!=i&&null!==(o=i.series)&&void 0!==o&&o.enable||null!==(e=window)&&void 0!==e&&null!==(t=e.app_data)&&void 0!==t&&null!==(d=t.appcmsMain)&&void 0!==d&&null!==(u=d.features)&&void 0!==u&&u.auto_play)||null!=i&&i.liveVideo||n(l,i),null!=i&&i.liveVideo||s()||a(l)}),e.one("play",function(){var i,e,r,n;null!==(i=window)&&void 0!==i&&null!==(e=i.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(l,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}function c(o,n){r(o).addClass("skin_vlone"),m(o,n),function(o,r){var n,a,s,d,m,c,b,y,f,g,j,h,C=v(null==r?void 0:r.res,o)||{},w=C.src;(null==r||null===(n=r.relatedVideos)||void 0===n||null===(a=n.content)||void 0===a?void 0:a.length)>0&&l(o,null==r?void 0:r.relatedVideos);null!=r&&null!==(s=r.series)&&void 0!==s&&s.enable&&i(o,r);(null==r||null===(d=r.streams)||void 0===d?void 0:d.length)>1&&e(o,null==r?void 0:r.streams);t(o,r),u(o,r),"MEDIA_TAILOR"==(null===(m=window)||void 0===m||null===(c=m.app_data)||void 0===c||null===(b=c.appcmsMain)||void 0===b||null===(y=b.adsConfig)||void 0===y?void 0:y.vodAdSticherProvider)&&null!==(f=window)&&void 0!==f&&null!==(g=f.app_data)&&void 0!==g&&null!==(j=g.appcmsMain)&&void 0!==j&&null!==(h=j.adsConfig)&&void 0!==h&&h.vodAdClientSideTracking&&p(o,w)}(o,n),b(o,n)}var b=function(o,l){var i,e,n,a,t,s,u,p,v,m,c,b,y=r(o),f=(null==l?void 0:l.theme)||{},g=d.dom.$(".vjs-play-progress"),j=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");j&&(j.style.color="".concat(null===(i=window)||void 0===i||null===(e=i.app_data)||void 0===e||null===(n=e.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(t=a.cta)||void 0===t||null===(s=t.primary)||void 0===s?void 0:s.backgroundColor)),g&&(g.style.background="".concat(null===(u=window)||void 0===u||null===(p=u.app_data)||void 0===p||null===(v=p.appcmsMain)||void 0===v||null===(m=v.brand)||void 0===m||null===(c=m.cta)||void 0===c||null===(b=c.primary)||void 0===b?void 0:b.backgroundColor));var h=y.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&g&&(g.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&h&&(h.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&j&&(j.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};export{c as initialiseSkin};
@@ -1 +0,0 @@
1
- import{F as e,G as t}from"./generic-fe8a5419.js";import{g as o}from"./skin-8e2c5488.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-7996e045.js";function r(r){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),n(),function(r){var n=document.getElementById("".concat(r)),i=o(r);n&&n.addEventListener("touchstart",function(){i.paused()?e(r):t(r)})}(r)}var n=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{r as initaliseSkin};
@@ -1 +0,0 @@
1
- import{F as r,G as e}from"./generic-49e2739e.js";import{g as t}from"./skin-86e7e2b5.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"@babel/runtime/helpers/toConsumableArray";function o(r){n(r),i(r)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",function(){i.paused()?r(o):e(o)})},n=function(r){var e=t(r);e.requestFullscreen=function(){},e.controlBar.hide()};export{o as initaliseSkin};
@@ -1 +0,0 @@
1
- import{g as e}from"./skin-86e7e2b5.js";import{f as r,n as t}from"./features-92168e2d.js";import{g as o}from"./renditions-53ee066f.js";import{r as i}from"./captions-d155b725.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"./generic-49e2739e.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-512cd55a.js";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";function s(s,n){import("./skin-271fa63f.js").then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e(t).on("loadeddata",function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,s),null!=s&&s.disableCaptions&&i(t)})}(s,n),function(r){var o=e(r);o.controls(!1),t(r)}(s)}export{s as initialiseSkin};
@@ -1 +0,0 @@
1
- import{h as e}from"./features-446510f2.js";import{g as t}from"./skin-86e7e2b5.js";import{a as i,i as n,b as o}from"./index-b2dbf999.js";import{i as l}from"./browser-512cd55a.js";import r from"@babel/runtime/helpers/classCallCheck";import a from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import u from"@babel/runtime/helpers/getPrototypeOf";import d from"@babel/runtime/helpers/inherits";import c from"video.js";import v from"@babel/runtime/helpers/toConsumableArray";import p from"@babel/runtime/helpers/typeof";import{e as h}from"./generic-04b35f2c.js";import{s as f}from"./index-01fc14f1.js";import"@babel/runtime/helpers/defineProperty";import"./renditions-53ee066f.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-5202ca61.js";import"./util-42912ffd.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-d155b725.js";import"video.js/dist/video-js.min.css";import"./resolution-284471f7.js";var m=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},y=function(){return a(function e(t){if(r(this,e),!t||"object"!==p(t))throw new Error("SettingsOptionOneWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.handleClick=t.callback||function(){},this.focused=t.focused||!1,"function"!=typeof this.handleClick)throw new Error("SettingsOptionOneWrapper: callback must be a function");this.handleClick=this.handleClick.bind(this)},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionOneWrapper: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname,i.tabIndex=0;var n=document.createElement("p");n.textContent=this.title,i.appendChild(n);var o=document.createElement("p");o.textContent="›",o.style.fontSize="24px",i.appendChild(o),this.focused&&i.classList.add("focused"),i.addEventListener("focus",function(){t.focused=!0,i.classList.add("focused")}),i.addEventListener("blur",function(){t.focused=!1,i.classList.remove("focused")}),i.addEventListener("keydown",function(e){"Enter"!==e.key&&"OK"!==e.key||t.handleClick()}),this.optionWrapper=i,i.instance=this,e.appendChild(i)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}])}(),g=function(){return a(function e(t){if(r(this,e),!t||"object"!==p(t))throw new Error("SettingsOptionTwoWrapper: props must be a valid object");if(this.title=t.title||"Option",this.klassname=t.klassname||"default-option-wrapper",this.selected=t.selected||!1,this.focused=t.focused||!1,this.id=t.id,"string"!=typeof this.title)throw new Error("SettingsOptionTwoWrapper: title must be a string")},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("SettingsOptionTwoWrapper: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname,i.tabIndex=0;var n=document.createElement("p");if(n.textContent=this.title,i.appendChild(n),this.selected){i.classList.add("selected");var o=document.createElement("span");o.appendChild(m('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),i.appendChild(o)}this.focused&&i.classList.add("focused"),i.addEventListener("focus",function(){t.focused=!0,i.classList.add("focused")}),i.addEventListener("blur",function(){t.focused=!1,i.classList.remove("focused")}),this.optionWrapper=i,i.instance=this,e.appendChild(i)}},{key:"unmount",value:function(){this.optionWrapper&&(this.optionWrapper.remove(),this.optionWrapper=void 0)}},{key:"focus",value:function(){this.optionWrapper&&(this.optionWrapper.focus(),this.optionWrapper.classList.add("focused"),this.focused=!0)}},{key:"blur",value:function(){this.optionWrapper&&(this.optionWrapper.blur(),this.optionWrapper.classList.remove("focused"),this.focused=!1)}}])}(),b=function(){return a(function e(t){if(r(this,e),!t||"object"!==p(t))throw new Error("Sidebar: props must be a valid object");if(this.title=t.title||"Settings",this.items=t.items||[{text:"Video Quality",isSelected:!0,callback:function(){}},{text:"Audio Language",isSelected:!1,callback:function(){}},{text:"Subtitles",isSelected:!1,callback:function(){}}],this.klassname=t.klassname||"default-sidebar",this.currentFocusedOption=null,this.lastFocusedElement=t.lastFocusedElement||null,this.type=t.type||"navigation",this.focused=t.focused||!1,this.callback=t.callback||function(){},this.onselect=t.onselect||function(){},"function"!=typeof this.callback)throw new Error("Sidebar: callback must be a function");if(!["navigation","selection"].includes(this.type))throw new Error('Sidebar: type must be either "navigation" or "selection"')},[{key:"mount",value:function(e){var t=this;if(!(e&&e instanceof HTMLElement))throw new Error("Sidebar: mountPoint must be a valid DOM element");var i=document.createElement("div");i.className=this.klassname;var n=document.createElement("div");n.textContent=this.title,n.className="settingsHeading",i.appendChild(n);var o=document.createElement("div");"navigation"===this.type?this.items.forEach(function(e,i){var n=new y({title:e.text,klassname:"default-option-wrapper",focused:0===i,callback:e.callback});e.instance=n,0===i&&(t.currentFocusedOption=n),n.mount(o)}):"selection"===this.type&&this.items.forEach(function(e,i){var n=new g({title:e.text,klassname:"default-option-wrapper",focused:0===i,selected:e.isSelected,id:e.id});e.instance=n,0===i&&(t.currentFocusedOption=n),n.mount(o)}),i.appendChild(o),this.sidebarElement=i,e.appendChild(i),this.addEventListeners(),this.focus()}},{key:"addEventListeners",value:function(){var e=this;if(!this.sidebarElement)throw new Error("Sidebar: sidebarElement is not initialized");this.sidebarElement.addEventListener("keydown",function(t){"ArrowDown"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusNext()):"ArrowUp"===t.key?(t.preventDefault(),t.stopPropagation(),e.focusPrevious()):"Backspace"===t.key||"Escape"===t.key||10009===t.keyCode||461===t.keyCode||196===t.keyCode||8===t.keyCode?(t.preventDefault(),t.stopPropagation(),e.unfocus(),e.unmount()):"Enter"!==t.key&&"OK"!==t.key||(t.preventDefault(),t.stopPropagation(),"selection"===e.type&&e.selectionTypeAction())})}},{key:"selectionTypeAction",value:function(){if(this.currentFocusedOption){this.items.forEach(function(e){if(e.instance){e.instance.optionWrapper.classList.remove("selected"),e.instance.selected=!1;var t=e.instance.optionWrapper.querySelector("span");t&&t.remove();var i=e.instance.optionWrapper.querySelector("svg");i&&i.remove()}}),this.currentFocusedOption.optionWrapper.classList.add("selected"),this.currentFocusedOption.selected=!0;this.currentFocusedOption.optionWrapper.appendChild(m('<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">\n <path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/>\n </svg>')),this.onselect(this.currentFocusedOption)}}},{key:"focusNext",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.nextElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focusPrevious",value:function(){if(this.sidebarElement&&this.currentFocusedOption){var e=this.currentFocusedOption.optionWrapper.previousElementSibling;e&&(this.currentFocusedOption.blur(),this.currentFocusedOption=e.instance,this.currentFocusedOption.focus())}}},{key:"focus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.focus()}},{key:"unfocus",value:function(){this.sidebarElement&&this.currentFocusedOption&&this.currentFocusedOption.blur()}},{key:"unmount",value:function(){this.sidebarElement&&(this.sidebarElement.remove(),this.sidebarElement=void 0,this.lastFocusedElement&&(this.callback(),this.lastFocusedElement.focus()),this.currentFocusedOption=null)}}])}();function k(e,t){var i,n,o,l,r,a,s,u=[{text:"Video Quality",isSelected:!0,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o,l,r;if(!e)return;var a=null===(i=t.qualityLevels())||void 0===i?void 0:i.levels_,s=-1==(null===(n=t.qualityLevels())||void 0===n?void 0:n.selectedIndex_)?"auto":null===(o=t.qualityLevels())||void 0===o?void 0:o.levels_[null===(l=t.qualityLevels())||void 0===l?void 0:l.selectedIndex_].height,u=[{text:"Auto",id:"auto",isSelected:"auto"===s,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}].concat(v(a.map(function(t){return{text:"".concat(t.height,"p"),id:t.height,isSelected:s===t.height,callback:function(){e.currentFocusedOption.focus(),r.unmount()}}})));r=new b({title:"Video Quality",items:u,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){if("auto"===e.id)t.el_.player.qualityLevels().selectedIndex_=-1;else{var i=a.findIndex(function(t){return t.height===e.id});-1!==i&&(t.el_.player.qualityLevels().selectedIndex_=i)}},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),r.mount(null==t?void 0:t.el())}(s,e)}}];null!=e&&null!==(i=e.audioTracks())&&void 0!==i&&i.tracks_&&(null==e||null===(n=e.audioTracks())||void 0===n||null===(o=n.tracks_)||void 0===o?void 0:o.length)>1&&u.push({text:"Audio Language",isSelected:!1,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o,l;if(!e)return;var r=null==t||null===(i=t.audioTracks())||void 0===i?void 0:i.tracks_,a=(null==r||null===(n=r.find(function(e){return e.enabled}))||void 0===n?void 0:n.label)||(null==r||null===(o=r[0])||void 0===o?void 0:o.label)||"Default",s=r.map(function(t){return{text:t.label,id:t.id,isSelected:a===t.label,callback:function(){e.currentFocusedOption.focus(),l.unmount()}}});l=new b({title:"Audio Language",items:s,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){null==r||r.forEach(function(t){t.enabled=!1,t.enabled=t.id===e.id})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),l.mount(null==t?void 0:t.el())}(s,e)}});var d=null==e||null===(l=e.textTracks())||void 0===l?void 0:l.tracks_;return(d=d.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))&&(null===(r=d)||void 0===r?void 0:r.length)>0&&u.push({text:"Subtitles",isSelected:!1,callback:function(){s.sidebarElement&&(s.sidebarElement.style.visibility="hidden"),function(e,t){var i,n,o;if(!e)return;var l=t.textTracks().tracks_;l=l.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var r=(null===(i=l)||void 0===i||null===(n=i.find(function(e){return"showing"===e.mode}))||void 0===n?void 0:n.label)||"Captions Off",a=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===r,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}].concat(v(l.map(function(t){return{text:t.label,id:t.id,kind:t.kind,lang:t.language,mode:t.mode,isSelected:r===t.label,callback:function(){e.currentFocusedOption.focus(),o.unmount()}}})));o=new b({title:"Closed Captions",items:a,klassname:"default-sidebar",lastFocusedElement:e.currentFocusedOption,type:"selection",focused:!0,onselect:function(e){var t;null===(t=l)||void 0===t||t.forEach(function(t){t.mode=t.id===e.id?"showing":"hidden"})},callback:function(){e.sidebarElement&&(e.sidebarElement.style.visibility="visible")}}),o.mount(null==t?void 0:t.el())}(s,e)}}),(s=new b({title:"Settings",items:u,klassname:"default-sidebar",lastFocusedElement:t,type:"navigation",focused:!0,callback:function(){var i;null===(i=e.controlBar)||void 0===i||i.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){t.focus()},100)}})).mount(null==e?void 0:e.el()),null===(a=e.controlBar)||void 0===a||a.addClass("hidePlayerControls"),e.options({inactivityTimeout:0}),s}function C(e,t,i){return t=u(t),s(e,w()?Reflect.construct(t,i||[],u(e).constructor):t.apply(e,i))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var L=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");o.querySelector(".vjs-control-text").textContent="CC",o.classList.add("vjs-ClosedCaption-button");return l.append(m('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M92.7268 78.3757H81.5999V88.0906L57.4173 78.3757H9.27274V16.2273H92.7268V78.3757ZM17.6184 69.5027H57.3108L73.7991 74.6169L73.8001 69.5027H84.3821V25.2107H17.6184V69.5027Z" fill="currentColor"/>\n<rect x="20.8628" y="34.7727" width="39.4091" height="6.95455" fill="currentColor"/>\n<rect x="69.5446" y="34.7727" width="11.5909" height="6.95455" fill="currentColor"/>\n<rect x="44.0446" y="51" width="37.0909" height="9.27273" fill="currentColor"/>\n<rect x="20.8628" y="51" width="13.9091" height="9.27273" fill="currentColor"/>\n</svg>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){!function(e){var t,i,n,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.textTracks().tracks_,a=(null===(t=r=r.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind}))||void 0===t||null===(i=t.find(function(e){return"showing"===e.mode}))||void 0===i?void 0:i.label)||"Captions Off",s=[{text:"Captions Off",id:"auto",isSelected:"Captions Off"===a,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}].concat(v(r.map(function(e){return{text:e.label,id:e.id,kind:e.kind,lang:e.language,mode:e.mode,isSelected:a===e.label,callback:function(){o.currentFocusedOption.focus(),sidebar.unmount()}}})));(o=new b({title:"Closed Captions",items:s,klassname:"default-sidebar",lastFocusedElement:l,type:"selection",focused:!0,onselect:function(t){var i,n;null===(i=r)||void 0===i||i.forEach(function(e){e.mode=e.id===t.id?"showing":"hidden"}),o.unmount(null==e?void 0:e.el()),null===(n=e.controlBar)||void 0===n||n.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){l.focus()},100)},callback:function(){var t;o.unmount(null==e?void 0:e.el()),null===(t=e.controlBar)||void 0===t||t.removeClass("hidePlayerControls"),e.options({inactivityTimeout:4e3}),setTimeout(function(){l.focus()},100)}})).mount(null==e?void 0:e.el()),null===(n=e.controlBar)||void 0===n||n.addClass("hidePlayerControls"),e.options({inactivityTimeout:0})}(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("CloseCaptionButton",t),new t(e,{})};var S=function(e){if(e)try{var t,i,n,o=(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(n=i.entitlement)||void 0===n?void 0:n.deviceType)||"smart_tv_samsung";e&&(!function(e){try{var t;"smart_tv_samsung"==e&&null!==(t=window)&&void 0!==t&&t.tizen&&(window.tizen.tvinputdevice.registerKey("MediaPlayPause"),window.tizen.tvinputdevice.registerKey("MediaRewind"),window.tizen.tvinputdevice.registerKey("MediaFastForward"),window.tizen.tvinputdevice.registerKey("Exit"),window.tizen.tvinputdevice.registerKey("MediaPlay"),window.tizen.tvinputdevice.registerKey("MediaPause"),window.tizen.tvinputdevice.registerKey("MediaStop"))}catch(e){}}(o),e.on("keydown",function(t){10252==t.keyCode||"xfinityX1"==o&&179==t.keyCode?e.paused()?e.play():e.pause():415==t.keyCode?e.play():19==t.keyCode?e.pause():412===t.keyCode||"xfinityX1"==o&&227==t.keyCode?e.currentTime(e.currentTime()-10):(417===t.keyCode||"xfinityX1"==o&&228==t.keyCode)&&e.currentTime(e.currentTime()+10)}))}catch(e){}};function E(s,u){var v=t(s);v.addClass("skin_smartTV"),function(e,t){var i,n,o,l,s,u,v,p,h,f,y,g,b,w,L,E,x,T,B,O,F,_,j,W,q,D,M,P,V,z,H,A=null==e?void 0:e.el();A&&(A.style.color=(null==t||null===(i=t.theme)||void 0===i?void 0:i.color)||(null===(n=window)||void 0===n||null===(o=n.app_data)||void 0===o||null===(l=o.appcmsMain)||void 0===l||null===(s=l.brand)||void 0===s||null===(u=s.cta)||void 0===u||null===(v=u.primary)||void 0===v?void 0:v.backgroundColor)||"#FFFFFF");null===(p=e.controlBar)||void 0===p||p.removeChild("VolumePanel"),null===(h=e.controlBar)||void 0===h||h.removeChild("AudioTrackButton"),null===(f=e.controlBar)||void 0===f||f.removeChild("FullscreenToggle"),null===(y=e.controlBar)||void 0===y||y.removeChild("PictureInPictureToggle"),null===(g=e.controlBar)||void 0===g||g.removeChild("skipBackward"),null===(b=e.controlBar)||void 0===b||b.removeChild("skipForward"),null===(w=e.controlBar)||void 0===w||w.removeChild("PictureInPictureToggle");var I=document.createElement("div");I.className="custom-smartTV-progress-bar",null===(L=e.controlBar)||void 0===L||null===(E=L.el())||void 0===E||E.append(I);var R=null===(x=e.controlBar)||void 0===x?void 0:x.getChild("CustomControlSpacer");try{I.style.opacity=0,R.el_.style.opacity=0}catch(e){}var G=null===(T=e.controlBar)||void 0===T?void 0:T.getChild("ProgressControl"),K=null===(B=e.controlBar)||void 0===B?void 0:B.getChild("CurrentTimeDisplay"),N=null===(O=e.controlBar)||void 0===O?void 0:O.getChild("SeekToLive");N&&(N.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live");var Z=null===(F=e.controlBar)||void 0===F?void 0:F.getChild("LiveDisplay"),Q=null===(_=e.controlBar)||void 0===_?void 0:_.getChild("RemainingTimeDisplay");G&&K&&N&&I.append(K.el(),G.el(),Q.el(),null==Z?void 0:Z.el());null==R||R.addChild(N);var U=e.getChild("TitleBar");null==R||R.addChild(U);var X=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_;return o.querySelector(".vjs-control-text").textContent="Start From Beginning",o.classList.add("vjs-startFromBeginning-button"),t}return d(i,t),a(i,[{key:"handleClick",value:function(){(null==e?void 0:e.currentTime())>0&&e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("StartFromBeginning",t),new t(e,{})}(e);null==R||R.addChild(X);var J,Y,$,ee=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Settings",o.classList.add("vjs-Settings-button"),l.append(m('<svg width="42" height="42" viewBox="0 0 102 102" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M90.913 45.8867V56.1132L80.0959 58.1496C79.4266 61.1027 78.2623 63.9214 76.6523 66.4864L82.8603 75.597L75.586 82.8192L66.5158 76.664C63.9394 78.2538 61.1222 79.4156 58.1737 80.1041L56.1361 90.913H45.8542L43.8193 80.1041C40.8708 79.4158 38.0535 78.2541 35.4773 76.664L26.4071 82.8192L19.1313 75.597L25.2918 66.4864C23.7008 63.9116 22.5379 61.0962 21.8482 58.1496L11.087 56.1132V45.8867L21.8482 43.8028C22.5428 40.8493 23.7235 38.0315 25.3421 35.4646L19.1327 26.4016L26.4085 19.1807L35.4787 25.3359C38.045 23.7263 40.8656 22.5627 43.8207 21.8945L45.8556 11.0869H56.1375L58.1751 21.8945C61.1301 22.5631 63.9506 23.7267 66.5172 25.3359L75.5874 19.1807L82.8617 26.4016L76.6537 35.5135C78.2633 38.0617 79.4277 40.8647 80.0973 43.8028L90.913 45.8867ZM28.9308 51.0214C28.9434 63.1872 38.8221 73.0394 50.9956 73.0271C56.8418 73.0212 62.4462 70.6944 66.5758 66.5588C70.7054 62.4232 73.0219 56.8174 73.0156 50.9748C73.0025 38.809 63.1234 28.9572 50.9499 28.9701C38.7764 28.983 28.9182 38.8556 28.9308 51.0214Z" fill="currentColor"/>\n</svg>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){k(e,this)}}])}(c.getComponent("Button"));return c.registerComponent("SettingsButton",t),new t(e,{})}(e);if(null==R||R.addChild(ee),!(null!=t&&null!==(j=t.res)&&void 0!==j&&null!==(W=j.video)&&void 0!==W&&null!==(q=W.streamingInfo)&&void 0!==q&&q.isLiveStream)||null!=t&&null!==(D=t.res)&&void 0!==D&&null!==(M=D.video)&&void 0!==M&&null!==(P=M.liveDetails)&&void 0!==P&&P.isDvrEnabled){var te,ie,ne=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Forward",o.classList.add("vjs-forward-button"),l.append(m('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M461.37 551.05a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67t-12.02 3.59zm109.47-75.65a33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85 33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83zm-1.5 66.6q-4.43 8.19-13.15 8.19c-5.91 0-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.83-4.43 22.32z"></path><path d="M687.85 490l-25.1 5a153.7 153.7 0 1 1-301.6.77c15.68-80.78 92.29-134.47 173-122.56L528.5 389l66.74-8-46.45-48.58-5.79 16.24C447 331.88 354.66 395 336 490.9a179.29 179.29 0 0 0 141.77 210.2 182.22 182.22 0 0 0 34.61 3.35A179.4 179.4 0 0 0 687.85 490z"></path></g></svg>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t>=0){var i=t+30;e.currentTime(i)}}}])}(c.getComponent("Button"));return c.registerComponent("ForwardButton",t),new t(e,{})}(e);null===(te=e.controlBar)||void 0===te||te.addChild(ne);var oe=function(e){var t=function(t){function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i);var o=(t=C(this,i,[e,n])).el_,l=o.querySelector(".vjs-icon-placeholder");return o.querySelector(".vjs-control-text").textContent="Rewind",o.classList.add("vjs-rewind-button"),l.append(m('<svg fill="currentColor" width="100" height="100" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" stroke="currentColor"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M473.39 547.46q-4.22 3.6-12 3.59a33.17 33.17 0 0 1-12.93-2.62 40.15 40.15 0 0 1-11.73-7.59v18.64a35.88 35.88 0 0 0 11.43 5.85 50.18 50.18 0 0 0 14.87 2 36.62 36.62 0 0 0 12.4-2.1 29 29 0 0 0 10.3-6.17q9.63-8.57 9.62-22.39 0-9.76-5.18-16.53a28 28 0 0 0-14.36-9.61L494.87 474v-.44h-57.4v16.83h31.41l-15.94 30.31v.46q11.15-.31 17.89 3.75a13.05 13.05 0 0 1 6.77 11.88q0 7.07-4.21 10.67zm68.15 16.45a33.44 33.44 0 0 0 29.3 0 33.83 33.83 0 0 0 11.65-9.85 46.82 46.82 0 0 0 7.44-15.17 71.65 71.65 0 0 0 0-38.47 46.93 46.93 0 0 0-7.44-15.19 33.77 33.77 0 0 0-11.65-9.83 33.35 33.35 0 0 0-29.3 0 33.77 33.77 0 0 0-11.65 9.83 46.53 46.53 0 0 0-7.44 15.19 71.65 71.65 0 0 0 0 38.47 46.43 46.43 0 0 0 7.44 15.17 33.83 33.83 0 0 0 11.65 9.85zm1.57-66.65q4.51-8.11 13.08-8.11c5.61 0 9.94 2.74 13 8.26s4.58 12.92 4.58 22.24-1.48 16.86-4.43 22.32-7.34 8.19-13.15 8.19-10.38-2.95-13.37-8.87q-4.23-7.37-4.21-21.64t4.5-22.39z"></path><path d="M688 490.9c-18.66-95.93-111-159-207-142.24l-5.84-16.29L428.74 381l66.74 8-5.64-15.72c80.7-11.91 157.31 41.78 173 122.56a153.67 153.67 0 1 1-301.6-.78l-25.1-5a179.47 179.47 0 0 0 175.47 214.39 182.93 182.93 0 0 0 34.6-3.35A179.29 179.29 0 0 0 688 490.9z"></path></g></svg>')),t}return d(i,t),a(i,[{key:"handleClick",value:function(){var t=null==e?void 0:e.currentTime();if(t-30>=0){var i=t-30;e.currentTime(i)}else e.currentTime(0)}}])}(c.getComponent("Button"));return c.registerComponent("RewindButton",t),new t(e,{})}(e);null===(ie=e.controlBar)||void 0===ie||ie.addChild(oe)}null!=t&&null!==(V=t.res)&&void 0!==V&&null!==(z=V.video)&&void 0!==z&&null!==(H=z.gist)&&void 0!==H&&H.title&&e.titleBar.update({title:null==t||null===(J=t.res)||void 0===J||null===(Y=J.video)||void 0===Y||null===($=Y.gist)||void 0===$?void 0:$.title});S(e)}(v,u),function(o,r){var a=t(o);a&&(a.on("loadeddata",function(){var e,t,s,u,d;try{var c,v,p,h,f,m;if(null!=r&&null!==(c=r.res)&&void 0!==c&&null!==(v=c.video)&&void 0!==v&&null!==(p=v.streamingInfo)&&void 0!==p&&p.isLiveStream&&null!=r&&null!==(h=r.res)&&void 0!==h&&null!==(f=h.video)&&void 0!==f&&null!==(m=f.liveDetails)&&void 0!==m&&m.isDvrEnabled){var y,g,b=(null===(y=a.seekable())||void 0===y?void 0:y.end(0))-(null===(g=a.seekable())||void 0===g?void 0:g.start(0));window.customData.dvrWindow=b}else window.customData.dvrWindow=null}catch(e){}try{var k,C,w;if(null!=r&&null!==(k=r.res)&&void 0!==k&&null!==(C=k.video)&&void 0!==C&&null!==(w=C.streamingInfo)&&void 0!==w&&w.isLiveStream){var S,E=null===(S=a.controlBar)||void 0===S?void 0:S.getChild("ProgressControl");if(E){var x=E.el().querySelector(".vjs-play-progress");x&&(x.style.width="100%")}}}catch(e){}try{a.qualityLevels().selectedIndex_=-1}catch(e){}try{var T,B,O=a.textTracks().tracks_;O=O.filter(function(e){return"captions"===e.kind||"subtitles"===e.kind});var F=null===(T=a.controlBar)||void 0===T?void 0:T.getChild("CustomControlSpacer");if(O&&(null===(B=O)||void 0===B?void 0:B.length)>0){var _=L(a);null==F||F.addChild(_)}else try{F.children_[2].el_.style.right="115px"}catch(e){}try{var j,W;F.el_.style.opacity=1,(null===(j=a.controlBar)||void 0===j||null===(W=j.el_)||void 0===W?void 0:W.querySelector(".custom-smartTV-progress-bar")).style.opacity=1}catch(e){}}catch(e){}!(null!=r&&null!==(e=r.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(s=t.app_data)&&void 0!==s&&null!==(u=s.appcmsMain)&&void 0!==u&&null!==(d=u.features)&&void 0!==d&&d.auto_play)||null!=r&&r.liveVideo||i(o,r),null!=r&&r.liveVideo||l()||n(o)}),a.one("play",function(){var t,i,n,l;null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.iframeOverlayUrl&&e(o,null===(n=window)||void 0===n||null===(l=n.customData)||void 0===l?void 0:l.iframeOverlayUrl)}))}(s,u),function(e,i){var n,l,r,a,s,u,d,c,v=h(null==i?void 0:i.res,e)||{},p=v.src;o(e,i),"MEDIA_TAILOR"==(null===(n=window)||void 0===n||null===(l=n.app_data)||void 0===l||null===(r=l.appcmsMain)||void 0===r||null===(a=r.adsConfig)||void 0===a?void 0:a.vodAdSticherProvider)&&null!==(s=window)&&void 0!==s&&null!==(u=s.app_data)&&void 0!==u&&null!==(d=u.appcmsMain)&&void 0!==d&&null!==(c=d.adsConfig)&&void 0!==c&&c.vodAdClientSideTracking&&f(e,p);!function(e,i){var n=t(e);if(n){var o,l,r=!1,a=!1;null===(o=n.controlBar)||void 0===o||o.on("keydown",function(e){39!==e.keyCode&&37!==e.keyCode||(a=!0)}),null===(l=n.controlBar)||void 0===l||l.on("keyup",function(e){39!==e.keyCode&&37!==e.keyCode||(a=!1)}),n.on("seeking",function(){var e,t,i;n.paused()||r||(r=!0,n.pause());var o=n.currentTime();if(null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.dvrWindow)if(o=n.liveTracker.liveCurrentTime()-o,0==Math.round(o)){var l,a;o=window.customData.dvrWindow;var s=null===(l=n.controlBar)||void 0===l||null===(a=l.customControlSpacer)||void 0===a?void 0:a.getChild("SeekToLive");s&&(s.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",n.controlBar.liveDisplay.el().style.opacity=0)}else if(o>window.customData.dvrWindow){var u,d;o=0;var c=null===(u=n.controlBar)||void 0===u||null===(d=u.customControlSpacer)||void 0===d?void 0:d.getChild("SeekToLive");c&&(c.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0)}else{var v,p;o=window.customData.dvrWindow-o;var h=null===(v=n.controlBar)||void 0===v||null===(p=v.customControlSpacer)||void 0===p?void 0:p.getChild("SeekToLive");h&&(h.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0)}var f=o/(window.customData.dvrWindow?window.customData.dvrWindow:n.duration())*100,m=null===(i=n.controlBar)||void 0===i?void 0:i.getChild("ProgressControl");if(m){var y=m.el().querySelector(".vjs-play-progress");y&&(y.style.width=f+"%")}}),n.on("seeked",function(){var e,t,o,l,s,u;if(n.paused()&&r&&!a&&(r=!1,n.play()),null!=i&&null!==(e=i.res)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&null!==(o=t.streamingInfo)&&void 0!==o&&o.isLiveStream&&null!=i&&null!==(l=i.res)&&void 0!==l&&null!==(s=l.video)&&void 0!==s&&null!==(u=s.liveDetails)&&void 0!==u&&u.isDvrEnabled){var d,c,v=null===(d=n.controlBar)||void 0===d||null===(c=d.customControlSpacer)||void 0===c?void 0:c.getChild("SeekToLive");n.liveTracker.seekedBehindLive_?v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Go Live",n.controlBar.liveDisplay.el().style.opacity=0):v&&(v.el_.querySelector("span.vjs-seek-to-live-text").innerHTML="Live",n.controlBar.liveDisplay.el().style.opacity=1)}})}}(e,i)}(s,u)}export{E as initialiseSkin};
@@ -1 +0,0 @@
1
- import e from"video.js";var n=function(n){return!!e.getPlayer("".concat(n))&&e.getPlayer("".concat(n))},t=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE","VL_SmartTV"],i=function(e){return!t.includes(e)},o=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},l=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},r=function(e){return l(e)},a=function(e,t){if(t){var i,o,l=n(t);if(l&&"function"==typeof l.el&&null!=l&&null!==(i=l.el())&&void 0!==i&&null!==(o=i.classList)&&void 0!==o&&o.contains("skin_defaultv2"))return void u(e)}var r=[].concat(document.querySelectorAll("[video-idx]"));console.log(r),r.map(function(n){var t=n.parentNode,i=n.getAttribute("video-idx");t.style.background=i==e?"gray":"none"})},u=function(e){[].concat(document.querySelectorAll("[video-idx]")).map(function(n){var t=n.getAttribute("video-idx");n.style.border=t==e?"2px solid white":"none"})},d=function(){var e=[].concat(document.getElementsByClassName("vjs-control vjs-button open"));null==e||e.map(function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()})},c=function(e){return e&&!e.includes("?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},s="",v=function(e,n){var t,i=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",i=document.getElementById(e);if(i&&s!==t){var o=window.getComputedStyle(i,null).getPropertyValue("height");n&&(n.style.height="".concat(o)),s=t}}(e,n)};window._orientationChangeHandler=i;window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(function(){i()},100)})},m=function(e,t){var i,o=n(e),l=n(e).el(),r=new ResizeObserver(function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")||(i&&clearTimeout(i),i=setTimeout(function(){w(e,t)},300))});r.observe(l),o.on("dispose",function(){r.disconnect()}),o.on("fullscreenchange",function(){setTimeout(function(){w(e,t)},50)})},w=function(e,n){var t;if(n){var i=document.getElementById(e),o=null===(t=window.getComputedStyle(i,null))||void 0===t?void 0:t.height;n.style.height!==o&&(n.style.height="".concat(o))}},f=function(){window._orientationChangeHandler&&(window.removeEventListener("resize",window._orientationChangeHandler),delete window._orientationChangeHandler),window._multiplayer_dbClickHandler&&(window.removeEventListener("dblclick",window._multiplayer_dbClickHandler),delete window._multiplayer_dbClickHandler),window._multiplayer_dbTapHandler&&(window.removeEventListener("touchend",window._multiplayer_dbTapHandler),delete window._multiplayer_dbTapHandler)};function p(e,n){var t=null,i=null;return function(){for(var o=this,l=arguments.length,r=new Array(l),a=0;a<l;a++)r[a]=arguments[a];i?(clearTimeout(t),t=setTimeout(function(){Date.now()-i>=n&&(e.apply(o,r),i=Date.now())},n-(Date.now()-i))):(e.apply(this,r),i=Date.now())}}export{i as a,r as b,f as c,o as d,d as e,v as f,n as g,a as h,c as i,m as j,u as k,l as p,w as s,p as t};
@@ -1 +0,0 @@
1
- import{h as o,o as l,p as i,q as e}from"./features-446510f2.js";import{g as r}from"./skin-86e7e2b5.js";import{a as n,i as a,b as t}from"./index-b2dbf999.js";import{i as s}from"./browser-512cd55a.js";import"videojs-contrib-quality-menu";import d from"video.js";import{i as u,s as p}from"./index-01fc14f1.js";import{e as v}from"./generic-04b35f2c.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"./renditions-53ee066f.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"./autoNextVideo-5202ca61.js";import"./util-42912ffd.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"video.js/dist/video-js.min.css";import"./captions-d155b725.js";import"./resolution-284471f7.js";import"axios";import"js-cookie";import"ua-parser-js";function m(l,i){var e=r(l);e&&(e.on("loadeddata",function(){var o,e,t,d,u;!function(o){var l=r(o);l&&(null==l||l.qualityMenu,l.qualityMenu({useResolutionLabels:!0}))}(l),!(null!=i&&null!==(o=i.series)&&void 0!==o&&o.enable||null!==(e=window)&&void 0!==e&&null!==(t=e.app_data)&&void 0!==t&&null!==(d=t.appcmsMain)&&void 0!==d&&null!==(u=d.features)&&void 0!==u&&u.auto_play)||null!=i&&i.liveVideo||n(l,i),null!=i&&i.liveVideo||s()||a(l)}),e.one("play",function(){var i,e,r,n;null!==(i=window)&&void 0!==i&&null!==(e=i.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(l,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}function c(o,n){r(o).addClass("skin_vlone"),m(o,n),function(o,r){var n,a,s,d,m,c,b,y,f,g,j,h,C=v(null==r?void 0:r.res,o)||{},w=C.src;(null==r||null===(n=r.relatedVideos)||void 0===n||null===(a=n.content)||void 0===a?void 0:a.length)>0&&l(o,null==r?void 0:r.relatedVideos);null!=r&&null!==(s=r.series)&&void 0!==s&&s.enable&&i(o,r);(null==r||null===(d=r.streams)||void 0===d?void 0:d.length)>1&&e(o,null==r?void 0:r.streams);t(o,r),u(o,r),"MEDIA_TAILOR"==(null===(m=window)||void 0===m||null===(c=m.app_data)||void 0===c||null===(b=c.appcmsMain)||void 0===b||null===(y=b.adsConfig)||void 0===y?void 0:y.vodAdSticherProvider)&&null!==(f=window)&&void 0!==f&&null!==(g=f.app_data)&&void 0!==g&&null!==(j=g.appcmsMain)&&void 0!==j&&null!==(h=j.adsConfig)&&void 0!==h&&h.vodAdClientSideTracking&&p(o,w)}(o,n),b(o,n)}var b=function(o,l){var i,e,n,a,t,s,u,p,v,m,c,b,y=r(o),f=(null==l?void 0:l.theme)||{},g=d.dom.$(".vjs-play-progress"),j=d.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");j&&(j.style.color="".concat(null===(i=window)||void 0===i||null===(e=i.app_data)||void 0===e||null===(n=e.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(t=a.cta)||void 0===t||null===(s=t.primary)||void 0===s?void 0:s.backgroundColor)),g&&(g.style.background="".concat(null===(u=window)||void 0===u||null===(p=u.app_data)||void 0===p||null===(v=p.appcmsMain)||void 0===v||null===(m=v.brand)||void 0===m||null===(c=m.cta)||void 0===c||null===(b=c.primary)||void 0===b?void 0:b.backgroundColor));var h=y.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&g&&(g.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&h&&(h.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&j&&(j.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};export{c as initialiseSkin};
@@ -1 +0,0 @@
1
- import{f as l,g as e,h as o,d as i,e as n,i as t,j as r,k as a,l as s,m as d}from"./features-446510f2.js";import{M as u,a as m,c as v,d as p}from"./icons-79ad4d7d.js";import{g as c,b as h}from"./skin-86e7e2b5.js";import{g as f}from"./renditions-53ee066f.js";import{g as b}from"./captions-d155b725.js";import{a as g,i as j,b as y}from"./index-b2dbf999.js";import{i as C,d as V}from"./browser-512cd55a.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"video.js";import"./generic-04b35f2c.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"./autoNextVideo-5202ca61.js";import"./util-42912ffd.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";function w(i,n){var t=c(i);t&&(t.on("loadeddata",function(){var o,r,a,s,d,u,m;(null===(o=f(i))||void 0===o?void 0:o.length)>0&&l(i,n),(null===(r=b(i))||void 0===r?void 0:r.length)>0&&e(i,n),!(null!=n&&null!==(a=n.series)&&void 0!==a&&a.enable||null!==(s=window)&&void 0!==s&&null!==(d=s.app_data)&&void 0!==d&&null!==(u=d.appcmsMain)&&void 0!==u&&null!==(m=u.features)&&void 0!==m&&m.auto_play)||null!=n&&n.liveVideo||g(i,n),function(l,e){var o,i=Math.floor(l/60),n=null===(o=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===o?void 0:o[0];n&&(n.style.marginRight=i>60?"56px":"41px");var t=document.getElementsByClassName("vjs-live-control")[0],r=document.getElementsByClassName("vjs-time-control");e&&t.classList.value.includes("vjs-hidden")&&(r[0].style.display="block",n&&(n.style.marginRight="56px"))}(t.duration(),(null==n?void 0:n.liveVideo)||!1),null!=n&&n.liveVideo||C()||j(i)}),t.one("play",function(){var l,e,n,t;null!==(l=window)&&void 0!==l&&null!==(e=l.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(i,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}function k(l,e){c(l).addClass("skin_defaultv2"),function(){"Chrome"==V()&&import("./chromett-a3cbb2e1.js").then(function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)});import("./skin-e4b35c14.js").then(function(l){var e=document.createElement("style");e.id="default_v2",e.append("".concat(l.default)),document.head.appendChild(e)})}(),w(l,e),function(l,e){var o,i,n,t,r,a,s=c(l);null==s||null===(o=s.controlBar)||void 0===o||null===(i=o.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(h(u(window.controlsColor))),null==s||null===(t=s.controlBar)||void 0===t||null===(r=t.getChild("FullscreenToggle"))||void 0===r||null===(a=r.el())||void 0===a||a.appendChild(h(m(window.controlsColor)));var d=document.getElementsByClassName("vjs-time-control");e.liveVideo&&d[0]&&(d[0].style.display="none")}(l,e),function(l,e){var o,u,m,c,h,f;0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)&&i(l,"defaultV2",v());(0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)||1==(null==e?void 0:e.liveui))&&n(l,"defaultV2",p());e.liveVideo||t(l);(null==e||null===(o=e.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&r(l,null==e?void 0:e.relatedVideos);(null==e||null===(m=e.streams)||void 0===m?void 0:m.length)>1&&a(l,null==e?void 0:e.streams);(null==e||null===(c=e.playlist)||void 0===c||null===(h=c.content)||void 0===h?void 0:h.length)>0&&s(l,null==e?void 0:e.playlist);null!=e&&null!==(f=e.series)&&void 0!==f&&f.enable&&d(l,e)}(l,e),y(l,e)}export{k as initialiseSkin};
@@ -1 +0,0 @@
1
- import{a as e,b as t,c as s,d as o,e as i}from"./features-58699d4f.js";import{i as r}from"./index-24d08aa6.js";import{S as n,M as l,a,N as d,b as m,R as p}from"./icons-79ad4d7d.js";import{g as u,b as c}from"./skin-8e2c5488.js";import{d as v}from"./generic-fe8a5419.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"@babel/runtime/helpers/inherits";import"video.js";import"./renditions-65794079.js";import"./localisation-0bf399a1.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./util-389babb5.js";import"./captions-7996e045.js";import"./resolution-ed00f17a.js";import"@babel/runtime/helpers/defineProperty";import"./browser-512cd55a.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"ua-parser-js";function b(b,f){u(b).addClass("skin_default"),r(b,f),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&o(e,"default",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",p())}(b,f),function(o,i){var r=u(o),l=(null==i?void 0:i.sres)||null;r.on("loadeddata",function(){e(o,"default",n()),l&&import("./nextEpisodeButton-6a78af06.js").then(function(e){e.initaliseFunctionality(i.sres.seasons,v())})}),r.one("loadedmetadata",function(){var e;l&&(t(o,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),s(i.sres,i.res,o))})}(b,f),function(e,t){var s,o,i,r,n=u(e),m=document.getElementsByClassName("vjs-current-time")[0],p=document.getElementsByClassName("vjs-duration")[0],v=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(m&&(m.style.display="none"),p&&(p.style.display="none"),v&&(v.style.display="none"));null===(s=n.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(o=s.el())||void 0===o||o.appendChild(c(l(window.controlsColor))),null===(i=n.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(r=i.el())||void 0===r||r.appendChild(c(a(window.controlsColor)));var b=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(d()));var f=document.createElement("div");f.classList.add("caption-header"),b.querySelector(".vjs-menu-content").insertBefore(f,b.querySelector(".vjs-menu-item"))}(b,f)}export{b as initialiseSkin};