@viewlift/player-backup 2.0.40-smarttv → 2.0.42-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/cjs/autoNextVideo-f43d3c6b.js +1 -0
  2. package/cjs/browser-77c57718.js +1 -0
  3. package/cjs/bundle.css +88 -70
  4. package/cjs/caption-settings-be714e97.js +1 -0
  5. package/cjs/captions-07bd3069.js +1 -0
  6. package/cjs/features-97b9ddd3.js +1 -0
  7. package/cjs/generic-d5a358b3.js +1 -0
  8. package/cjs/icons-1a3febef.js +1 -0
  9. package/cjs/index-84cce26a.js +1 -0
  10. package/cjs/index-8824b597.js +1 -0
  11. package/cjs/index-ff62e3f1.js +1 -0
  12. package/cjs/index.js +1 -1
  13. package/cjs/multicamv2-27a1f79a.js +1 -0
  14. package/cjs/multicamv2-e061b01b.js +1 -0
  15. package/cjs/nextEpisodeButton-9149040d.js +1 -0
  16. package/cjs/playlist-f9f44391.js +1 -0
  17. package/cjs/renditions-fed22c12.js +1 -0
  18. package/cjs/resolution-e46c9615.js +1 -0
  19. package/cjs/series-0ddcd078.js +1 -0
  20. package/cjs/series-v2-9caf000c.js +1 -0
  21. package/cjs/series-v2-e23e32e1.js +1 -0
  22. package/cjs/settings-icon-70f8857a.js +1 -0
  23. package/cjs/skin-1d925909.js +1 -0
  24. package/cjs/skin-1de49e4d.js +1 -0
  25. package/cjs/skin-3544db58.js +1 -0
  26. package/cjs/skin-4a58f4fc.js +1 -0
  27. package/cjs/skin-8bfd28a5.js +1 -0
  28. package/cjs/skin-9337f348.js +1 -0
  29. package/cjs/skin-d465fffd.js +1 -0
  30. package/cjs/util-ef2cd61e.js +1 -0
  31. package/cjs/videoSelector-2f34f31e.js +1 -0
  32. package/cjs/videoSelector-62fd5fa1.js +1 -0
  33. package/cjs/videojs_contrib_dash-5ac53a44.js +1 -0
  34. package/esm/autoNextVideo-a02e0bce.js +1 -0
  35. package/esm/browser-d4613b36.js +1 -0
  36. package/esm/bundle.css +88 -70
  37. package/esm/caption-settings-4ab479b0.js +1 -0
  38. package/esm/captions-b7fd8308.js +1 -0
  39. package/esm/features-ce8f391c.js +1 -0
  40. package/esm/generic-c74188d9.js +1 -0
  41. package/esm/icons-8e47e640.js +1 -0
  42. package/esm/index-5d92eaa3.js +1 -0
  43. package/esm/index-8b6323c3.js +1 -0
  44. package/esm/index-e9390d8f.js +1 -0
  45. package/esm/index.js +1 -1
  46. package/esm/multicamv2-8b4670ee.js +1 -0
  47. package/esm/multicamv2-d46580c3.js +1 -0
  48. package/esm/nextEpisodeButton-1016717d.js +1 -0
  49. package/esm/playlist-5874bf55.js +1 -0
  50. package/esm/renditions-4c09c626.js +1 -0
  51. package/esm/resolution-920515d1.js +1 -0
  52. package/esm/series-c42e7202.js +1 -0
  53. package/esm/series-v2-0329b92a.js +1 -0
  54. package/esm/series-v2-1d2ad120.js +1 -0
  55. package/esm/settings-icon-366126fa.js +1 -0
  56. package/esm/skin-2aeeed8d.js +1 -0
  57. package/esm/skin-58b9263c.js +1 -0
  58. package/esm/skin-7cb0aacc.js +1 -0
  59. package/esm/skin-7fcbc562.js +1 -0
  60. package/esm/skin-cb458f31.js +1 -0
  61. package/esm/skin-f66d3f4d.js +1 -0
  62. package/esm/skin-f790ba88.js +1 -0
  63. package/esm/util-80257541.js +1 -0
  64. package/esm/videoSelector-2feea699.js +1 -0
  65. package/esm/videoSelector-fe5e1c99.js +1 -0
  66. package/esm/videojs_contrib_dash-a82e8b26.js +1 -0
  67. package/package.json +3 -5
  68. package/cjs/autoNextVideo-f1accb29.js +0 -1
  69. package/cjs/browser-2df57579.js +0 -1
  70. package/cjs/caption-settings-da2f1e29.js +0 -1
  71. package/cjs/captions-1a203000.js +0 -1
  72. package/cjs/features-635e2e87.js +0 -1
  73. package/cjs/generic-19e39f29.js +0 -1
  74. package/cjs/icons-9e9e6364.js +0 -1
  75. package/cjs/index-55edb2ef.js +0 -1
  76. package/cjs/index-9210aba0.js +0 -1
  77. package/cjs/keyboardShortcuts-36a025cd.js +0 -1
  78. package/cjs/multicamv2-06b92a99.js +0 -1
  79. package/cjs/multicamv2-3bc2ddd0.js +0 -1
  80. package/cjs/nextEpisodeButton-101cb231.js +0 -1
  81. package/cjs/playlist-fd7b01c9.js +0 -1
  82. package/cjs/renditions-44a16b5d.js +0 -1
  83. package/cjs/resolution-185c674c.js +0 -1
  84. package/cjs/series-c3c8ad85.js +0 -1
  85. package/cjs/series-v2-3ea41545.js +0 -1
  86. package/cjs/series-v2-4d50eda1.js +0 -1
  87. package/cjs/settings-icon-459a23cb.js +0 -1
  88. package/cjs/skin-26d6279b.js +0 -1
  89. package/cjs/skin-3bc3d9ac.js +0 -1
  90. package/cjs/skin-64423c1c.js +0 -1
  91. package/cjs/skin-94664ea9.js +0 -1
  92. package/cjs/skin-bfb9c959.js +0 -1
  93. package/cjs/skin-cedec766.js +0 -1
  94. package/cjs/skin-eae9862c.js +0 -1
  95. package/cjs/util-d989f91c.js +0 -1
  96. package/cjs/videoSelector-5c9ba61f.js +0 -1
  97. package/cjs/videoSelector-84cc9c69.js +0 -1
  98. package/cjs/videojs_contrib_dash-b5187686.js +0 -1
  99. package/esm/autoNextVideo-6f30518f.js +0 -1
  100. package/esm/browser-000da9e7.js +0 -1
  101. package/esm/caption-settings-107d63b3.js +0 -1
  102. package/esm/captions-0433e46b.js +0 -1
  103. package/esm/features-ad2f7efd.js +0 -1
  104. package/esm/generic-0ffb9040.js +0 -1
  105. package/esm/icons-68d3a609.js +0 -1
  106. package/esm/index-42df0bbb.js +0 -1
  107. package/esm/index-9abdfceb.js +0 -1
  108. package/esm/keyboardShortcuts-e7e8e090.js +0 -1
  109. package/esm/multicamv2-2785916a.js +0 -1
  110. package/esm/multicamv2-ceee35e3.js +0 -1
  111. package/esm/nextEpisodeButton-46490140.js +0 -1
  112. package/esm/playlist-e1c99c1f.js +0 -1
  113. package/esm/renditions-3d54d574.js +0 -1
  114. package/esm/resolution-6614556f.js +0 -1
  115. package/esm/series-75598f3a.js +0 -1
  116. package/esm/series-v2-74aeb25e.js +0 -1
  117. package/esm/series-v2-77035868.js +0 -1
  118. package/esm/settings-icon-027bdc89.js +0 -1
  119. package/esm/skin-0abd39b1.js +0 -1
  120. package/esm/skin-531a4095.js +0 -1
  121. package/esm/skin-8574f521.js +0 -1
  122. package/esm/skin-966f17f4.js +0 -1
  123. package/esm/skin-aac0fc69.js +0 -1
  124. package/esm/skin-ad19eaff.js +0 -1
  125. package/esm/skin-dd6e1332.js +0 -1
  126. package/esm/util-332cd53f.js +0 -1
  127. package/esm/videoSelector-8bff314c.js +0 -1
  128. package/esm/videoSelector-b8e5addf.js +0 -1
  129. package/esm/videojs_contrib_dash-116adedc.js +0 -1
@@ -1 +0,0 @@
1
- import{h as e,o as r,p as o,q as t}from"./features-ad2f7efd.js";import{g as s,t as n,p as a}from"./skin-531a4095.js";import{a as i,i as l,b as c}from"./index-42df0bbb.js";import{i as d}from"./browser-000da9e7.js";import"videojs-contrib-quality-menu";import m from"video.js";import{k as u,i as p}from"./keyboardShortcuts-e7e8e090.js";import{l as j,S as b,e as v}from"./generic-0ffb9040.js";import"core-js/modules/es.function.name.js";import f from"@babel/runtime-corejs3/core-js-stable/instance/slice";import y from"@babel/runtime-corejs3/core-js-stable/array/from";import h from"@babel/runtime-corejs3/core-js-stable/symbol";import g from"@babel/runtime-corejs3/core-js/get-iterator-method";import k from"@babel/runtime-corejs3/helpers/slicedToArray";import S from"@babel/runtime-corejs3/helpers/asyncToGenerator";import x from"@babel/runtime-corejs3/regenerator";import w from"@babel/runtime-corejs3/core-js-stable/json/stringify";import C from"@babel/runtime-corejs3/core-js-stable/object/assign";import I from"@babel/runtime-corejs3/core-js-stable/url";import T from"@babel/runtime-corejs3/core-js-stable/instance/includes";import M from"@babel/runtime-corejs3/core-js-stable/object/entries";import B from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import E from"@babel/runtime-corejs3/core-js-stable/instance/map";import A from"@babel/runtime-corejs3/core-js-stable/array/is-array";import N from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import U from"@babel/runtime-corejs3/core-js-stable/map";import R from"@babel/runtime-corejs3/core-js-stable/instance/concat";import O from"@babel/runtime-corejs3/core-js-stable/instance/filter";import P from"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.regexp.to-string.js";import{I as D}from"./icons-68d3a609.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"./renditions-3d54d574.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"./autoNextVideo-6f30518f.js";import"./util-332cd53f.js";import"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.string.split.js";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"@babel/runtime-corejs3/helpers/defineProperty";import"core-js/modules/es.string.match.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/flat";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function V(r,o){var t=s(r);t&&(t.on("loadeddata",(function(){var e,t,n,a,c;!function(e){var r=s(e);r&&(null==r||r.qualityMenu,r.qualityMenu({useResolutionLabels:!0}))}(r),!(null!=o&&null!==(e=o.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(n=t.app_data)&&void 0!==n&&null!==(a=n.appcmsMain)&&void 0!==a&&null!==(c=a.features)&&void 0!==c&&c.auto_play)||null!=o&&o.liveVideo||i(r,o),null!=o&&o.liveVideo||d()||l(r)})),t.one("play",(function(){var o,t,s,n;null!==(o=window)&&void 0!==o&&null!==(t=o.customData)&&void 0!==t&&t.iframeOverlayUrl&&e(r,null===(s=window)||void 0===s||null===(n=s.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}function _(e,r){var o=void 0!==h&&g(e)||e["@@iterator"];if(!o){if(A(e)||(o=function(e,r){if(e){var o;if("string"==typeof e)return q(e,r);var t=f(o={}.toString.call(e)).call(o,8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?y(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){o&&(e=o);var t=0,s=function(){};return{s:s,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return a=e.done,e},e:function(e){i=!0,n=e},f:function(){try{a||null==o.return||o.return()}finally{if(i)throw n}}}}function q(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=Array(r);o<r;o++)t[o]=e[o];return t}function L(){return L=S(x.mark((function e(r,o){var t,i,l,c,d,m,p,v,f,y,h,g,V,q,L,Q,$,G,F;return x.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return F=function(e,o,t){var n=s(r);Math.floor(n.currentTime());var a,i,l,c,d,m,u,p,j,b,v,f,y,h,g=_(o);try{for(g.s();!(a=g.n()).done;)i=void 0,l=void 0,c=void 0,d=void 0,m=void 0,u=void 0,p=void 0,j=void 0,b=void 0,v=void 0,f=void 0,y=void 0,h=void 0,m=a.value,u=m.eventType,p=m.beaconUrls,j=m.startTimeInSeconds,b=m.startTime,v=m.durationInSeconds,f=Math.round(j),y=p[0],h=(null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l||null===(c=l.ads)||void 0===c?void 0:c.adEventHandler)||null,f!=Math.round(n.currentTime())||G.has(b)||(G.set(b,!0),"function"==typeof h&&h({adsData:{eventType:u,startTimeInSeconds:j,startTime:b,durationInSeconds:v,ad:null==e||null===(d=e.ads)||void 0===d?void 0:d[t],adIndex:t}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",u,"Fired:".concat(Math.round(n.currentTime())),"AD_POD:",e),fetch(y))}catch(e){g.e(e)}finally{g.f()}},$=function(e){var r,o,t=Math.floor(e/60),s=Math.floor(e%60);return R(r="".concat(t,":")).call(r,P(o=s.toString()).call(o,2,"0"))},L=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,s=_(o.split("&"));try{for(s.s();!(t=s.n()).done;){var n=t.value.split("="),a=k(n,2),i=a[0],l=a[1];r[decodeURIComponent(i)]=decodeURIComponent(l||"")}}catch(e){s.e(e)}finally{s.f()}for(var c={},d=0,m=M(r);d<m.length;d++){var u=k(m[d],2),p=u[0],j=u[1];if(B(p).call(p,"ads."))c[p.replace(/^ads\./,"")]=j;else c[p]=j}return c},t=s(r),i=o.replace("dash","session").replace("master","session"),i=b(i,r,{}),l=L(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:w({adsParams:C({},l)})});case 10:return c=e.sent,e.next=13,c.json();case 13:d=e.sent,m="https://"+new I(i).hostname,p=d.trackingUrl,v=d.manifestUrl,f=m+p,y=m+v,console.log("%c TRACKING URL","background: #bdf369; color: #000",f),null!=o&&T(o).call(o,".mpd")?(g=(null==t||null===(h=t.currentSource())||void 0===h?void 0:h.keySystemOptions)||null,j(r,{src:y,type:"application/x-mpegURL",keySystemOptions:g})):(q=(null==t||null===(V=t.currentSource())||void 0===V?void 0:V.keySystems)||null,j(r,{src:y,type:"application/x-mpegURL",keySystems:q})),t.one("loadeddata",(function(){Q(f)})),Q=function(){var e=S(x.mark((function e(o){var t,i,l,c,d,m,p,j,b,v,f,y,h,g,k,S,w;return x.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(o);case 2:return i=e.sent,e.next=5,i.json();case 5:l=e.sent,c=l.avails,d=[],m=s(r),p=m.controlBar.progressControl,j=p.seekBar.el(),E(c).call(c,(function(e){var r;A(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&d.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),N(d).call(d,(function(e){var r=e.markerPositionInSeconds,o=m.duration();if(!(r>o)){var t=r/o*100,s=document.createElement("div");s.className="vjs-seekbar-marker",s.style.left="".concat(t,"%"),s.style.position="absolute",s.style.top="0",s.style.bottom="0",s.style.width="2px",s.style.backgroundColor="#fecc09",s.style.left="".concat(t,"%"),s.style.pointerEvents="none",j.appendChild(s)}})),b=new U,v=-1,m.on("timeupdate",n((function(){var e=Math.floor(m.currentTime());if(e!==v){v=e;for(var r=!1,o=function(){var o=s[t],n=o.startTimeInSeconds,a=o.durationInSeconds,i=o.ads,l=Math.floor(n+a);if(e>=n&&e<=l){var c,d;r=!0,b.set(n,!0),u.disable(),p.el().style.visibility="hidden";for(var m=e-n,j=0,v=0,y=0;y<i.length;y++){var h,g=null==i||null===(h=i[y])||void 0===h?void 0:h.durationInSeconds;if(m<j+g){v=y;break}j+=g}var k=i[v],x=m-j,w=Math.max(0,k.durationInSeconds-x),C=Math.round(w);f.style.display="block",S.textContent=R(c=R(d="".concat(v+1," of ")).call(d,i.length," • ")).call(c,$(C));var I=[];return N(i).call(i,(function(e){var r,o=O(r=e.trackingEvents).call(r,(function(e){var r;return T(r=["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"]).call(r,e.eventType)}));I.push.apply(I,o)})),F(o,I,v),"break"}},t=0,s=d;t<s.length;t++){if("break"===o())break}r||(f.style.display="none",p.el().style.visibility="visible",u.enable())}}),1e3)),m.on("seeked",(function(){for(var e=null,r=0,o=d;r<o.length;r++){var t=o[r],s=null==m?void 0:m.currentTime(),n=t.startTimeInSeconds,a=t.durationInSeconds;s>Math.floor(n+a)&&!b.has(n)&&(e=n,b.set(n,!0))}e&&(m.currentTime(e),console.log("seeking back to",e),e=null)})),(f=document.createElement("div")).className="ssai-ad-container",(y=document.createElement("div")).className="sponsored-adbox",(h=document.createElement("div")).className="sponsored-text",h.textContent="Sponsored Ad",(g=document.createElement("div")).className="ad-info-icon",k=a(D()),g.appendChild(k),y.append(h),y.append(g),(S=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(w=document.createElement("div")).className="ad-visit-advertiser",w.textContent="Visit Advertiser",(null===(t=document.getElementsByClassName("tvProviderImage"))||void 0===t?void 0:t[0])&&(w.style.right="8.6rem"),f.append(y),f.append(S),f.append(w),m.el().appendChild(f);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),G=new U;case 24:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function Q(e,n){s(e).addClass("skin_vlone"),V(e,n),function(e,s){var n,a,i,l,d,m,u=null==s||null===(n=s.res)||void 0===n||null===(a=n.video)||void 0===a?void 0:a.isSSAIEnabled,j=v(null==s?void 0:s.res,e)||{},b=j.src;(null==s||null===(i=s.relatedVideos)||void 0===i||null===(l=i.content)||void 0===l?void 0:l.length)>0&&r(e,null==s?void 0:s.relatedVideos);null!=s&&null!==(d=s.series)&&void 0!==d&&d.enable&&o(e,s);(null==s||null===(m=s.streams)||void 0===m?void 0:m.length)>1&&t(e,null==s?void 0:s.streams);c(e,s),p(e,s),u&&function(e,r){L.apply(this,arguments)}(e,b)}(e,n),$(e,n)}var $=function(e,r){var o,t,n,a,i,l,c,d,u,p,j,b,v=s(e),f=(null==r?void 0:r.theme)||{},y=m.dom.$(".vjs-play-progress"),h=m.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(o=window)||void 0===o||null===(t=o.app_data)||void 0===t||null===(n=t.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(i=a.cta)||void 0===i||null===(l=i.primary)||void 0===l?void 0:l.backgroundColor)),y&&(y.style.background="".concat(null===(c=window)||void 0===c||null===(d=c.app_data)||void 0===d||null===(u=d.appcmsMain)||void 0===u||null===(p=u.brand)||void 0===p||null===(j=p.cta)||void 0===j||null===(b=j.primary)||void 0===b?void 0:b.backgroundColor));var g=v.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&y&&(y.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&g&&(g.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&h&&(h.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{Q as initialiseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{f as e,g as s,h as r,d as o,e as t,i,j as l,k as a,l as n,m}from"./features-ad2f7efd.js";import{M as c,a as d,c as p,d as u}from"./icons-68d3a609.js";import{g as j,b}from"./skin-531a4095.js";import y from"@babel/runtime-corejs3/core-js-stable/instance/includes";import{g as v}from"./renditions-3d54d574.js";import{g as f}from"./captions-0433e46b.js";import{a as h,i as g,b as x}from"./index-42df0bbb.js";import{i as C,d as w}from"./browser-000da9e7.js";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"video.js";import"./generic-0ffb9040.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./autoNextVideo-6f30518f.js";import"./util-332cd53f.js";import"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.string.split.js";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/slicedToArray";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import"@babel/runtime-corejs3/core-js-stable/instance/flat";function V(o,t){var i=j(o);i&&(i.on("loadeddata",(function(){var r,l,a,n,m,c,d;(null===(r=v(o))||void 0===r?void 0:r.length)>0&&e(o,t),(null===(l=f(o))||void 0===l?void 0:l.length)>0&&s(o,t),!(null!=t&&null!==(a=t.series)&&void 0!==a&&a.enable||null!==(n=window)&&void 0!==n&&null!==(m=n.app_data)&&void 0!==m&&null!==(c=m.appcmsMain)&&void 0!==c&&null!==(d=c.features)&&void 0!==d&&d.auto_play)||null!=t&&t.liveVideo||h(o,t),function(e,s){var r,o,t=Math.floor(e/60),i=null===(r=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===r?void 0:r[0];i&&(i.style.marginRight=t>60?"56px":"41px");var l=document.getElementsByClassName("vjs-live-control")[0],a=document.getElementsByClassName("vjs-time-control");s&&y(o=l.classList.value).call(o,"vjs-hidden")&&(a[0].style.display="block",i&&(i.style.marginRight="56px"))}(i.duration(),(null==t?void 0:t.liveVideo)||!1),null!=t&&t.liveVideo||C()||g(o)})),i.one("play",(function(){var e,s,t,i;null!==(e=window)&&void 0!==e&&null!==(s=e.customData)&&void 0!==s&&s.iframeOverlayUrl&&r(o,null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i?void 0:i.iframeOverlayUrl)})))}function k(e,s){j(e).addClass("skin_defaultv2"),function(){"Chrome"==w()&&import("./chromett-a3cbb2e1.js").then((function(e){var s=document.createElement("style");s.id="chromett",s.append("".concat(e.default)),document.head.appendChild(s)}));import("./skin-e4b35c14.js").then((function(e){var s=document.createElement("style");s.id="default_v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}(),V(e,s),function(e,s){var r,o,t,i,l,a,n=j(e);null==n||null===(r=n.controlBar)||void 0===r||null===(o=r.getChild("FullscreenToggle"))||void 0===o||null===(t=o.el())||void 0===t||t.appendChild(b(c(window.controlsColor))),null==n||null===(i=n.controlBar)||void 0===i||null===(l=i.getChild("FullscreenToggle"))||void 0===l||null===(a=l.el())||void 0===a||a.appendChild(b(d(window.controlsColor)));var m=document.getElementsByClassName("vjs-time-control");s.liveVideo&&m[0]&&(m[0].style.display="none")}(e,s),function(e,s){var r,c,d,j,b,y;0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)&&o(e,"defaultV2",p());(0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)||1==(null==s?void 0:s.liveui))&&t(e,"defaultV2",u());s.liveVideo||i(e);(null==s||null===(r=s.relatedVideos)||void 0===r||null===(c=r.content)||void 0===c?void 0:c.length)>0&&l(e,null==s?void 0:s.relatedVideos);(null==s||null===(d=s.streams)||void 0===d?void 0:d.length)>1&&a(e,null==s?void 0:s.streams);(null==s||null===(j=s.playlist)||void 0===j||null===(b=j.content)||void 0===b?void 0:b.length)>0&&n(e,null==s?void 0:s.playlist);null!=s&&null!==(y=s.series)&&void 0!==y&&y.enable&&m(e,s)}(e,s),x(e,s)}export{k as initialiseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{C as e,D as r}from"./generic-0ffb9040.js";import{g as s}from"./skin-531a4095.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"video.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function o(o){import("./skin-2c638dc1.js").then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),t(),function(o){var t=document.getElementById("".concat(o)),i=s(o);t&&t.addEventListener("touchstart",(function(){i.paused()?e(o):r(o)}))}(o)}var t=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
@@ -1 +0,0 @@
1
- import{C as e,D as r}from"./generic-0ffb9040.js";import{g as s}from"./skin-531a4095.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"video.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function o(e){i(e),t(e)}var t=function(o){var t=s(o),i=document.getElementById("".concat(o));i&&i.addEventListener("touchstart",(function(){t.paused()?e(o):r(o)}))},i=function(e){var r=s(e);r.requestFullscreen=function(){},r.controlBar.hide()};export{o as initaliseSkin};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{g as e}from"./skin-531a4095.js";import{f as r,n as s}from"./features-ad2f7efd.js";import{g as o}from"./renditions-3d54d574.js";import{r as t}from"./captions-0433e46b.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"video.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"./generic-0ffb9040.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";function i(i,m){import("./skin-271fa63f.js").then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(s,i){e(s).on("loadeddata",(function(){var e;(null===(e=o(s))||void 0===e?void 0:e.length)>0&&r(s,i),null!=i&&i.disableCaptions&&t(s)}))}(i,m),function(r,o){var t=e(r);t.controls(!1),s(r)}(i)}export{i as initialiseSkin};
@@ -1 +0,0 @@
1
- import{g as t}from"./skin-531a4095.js";var n=function(n,a,r){var e=t(n);e?a>=0&&a<=e.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),e.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(n,"'"))},a=function(n,a){var r=t(n);if(!r)return"Cannot find player with id: '".concat(n,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(t){return"Error: ".concat(t)}},r=function(n,a){var r=t(n);r?r.on("timeupdate",(function(){return a(r.currentTime())})):a("Cannot find player with id: '".concat(n,"'"))},e=function(n,a){var r=t(n);r?r.on("ended",(function(){return a(!0)})):a("Cannot find player with id: '".concat(n,"'"))},i=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{e as a,a as b,i as g,r as o,n as s};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import s from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import a from"video.js";import{E as n,f as l}from"./icons-68d3a609.js";import{G as c,R as d}from"./generic-0ffb9040.js";import{e as m,s as p,f as u,j,k as y}from"./skin-531a4095.js";import{a as b}from"./autoNextVideo-6f30518f.js";import{g as v}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-332cd53f.js";function f(o){var r=h();return function(){var t,a=i(o);if(r){var n=i(this).constructor;t=e(a,arguments,n)}else t=a.apply(this,arguments);return s(this,t)}}function h(){try{var o=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(o){}return(h=function(){return!!o})()}var g=a.getComponent("Component"),C=function(e){t(i,g);var s=f(i);function i(e){var r,t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,i),(a=s.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.videos=n.related.content,a.cb=(null==n||null===(r=n.related)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==n||null===(t=n.related)||void 0===t?void 0:t.autoNext)||!1,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),b({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return r(i,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(n())});return a.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),r=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var t;null!==(t=r.classList)&&void 0!==t&&t.contains("hidden")?(m(),r.classList.remove("hidden"),o.classList.add("open"),r.style.right="0px",p(e.playerId,r)):(r.classList.add("hidden"),o.classList.remove("open"),r.style.right="-350px")};var t=document.getElementById(this.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height");r.style.height="".concat(s),a.dom.appendContent(o,r),t.style.overflow="hidden",this.addFunctionality(r),u(this.playerId,r)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),t=a.dom.createEl("div",{className:"video-selector-head"}),s=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});s.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var i=a.dom.createEl("div",{className:"video-selector-title",innerHTML:v("relatedVideoTitle")||"Recommended"}),n=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var r,t,s,i,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var r=a.dom.$$(".recommended"),t=0;t<r.length;t++)r[t].style.border="none";y(e),c(o.playerId,o.videos[e].id).then((function(e){o.cb&&o.cb(e)})).catch((function(e){o.cb&&o.cb(e)}))};var j=document.createElement("img");j.className="related-thumbnail-image",j.src="".concat((null==o||null===(r=o.videos)||void 0===r||null===(t=r[e])||void 0===t?void 0:t.img)||(null===(s=window)||void 0===s||null===(i=s.customData)||void 0===i?void 0:i.fallbackImage)),j.alt="No Thumbnail Available",u.append(j);var b=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(l=o.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,b),a.dom.appendContent(m,p),a.dom.appendContent(n,m)},u=0;u<this.videos.length;u++)p(u);a.dom.appendContent(t,s),a.dom.appendContent(t,i),a.dom.appendContent(e,t),a.dom.appendContent(e,n),j(this.playerId,e)}}]),i}();export{C as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import s from"@babel/runtime-corejs3/helpers/inherits";import t from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import a from"@babel/runtime-corejs3/core-js-stable/instance/slice";import n from"@babel/runtime-corejs3/core-js-stable/instance/trim";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import l from"video.js";import{e as c,f as d}from"./icons-68d3a609.js";import{G as m,R as p}from"./generic-0ffb9040.js";import{e as u,s as j,f as b,j as v,h as y,i as f}from"./skin-531a4095.js";import{a as h}from"./autoNextVideo-6f30518f.js";import{g}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-332cd53f.js";function C(o){var r=x();return function(){var s,a=i(o);if(r){var n=i(this).constructor;s=e(a,arguments,n)}else s=a.apply(this,arguments);return t(this,s)}}function x(){try{var o=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(o){}return(x=function(){return!!o})()}var N=l.getComponent("Component"),E=function(e){s(i,N);var t=C(i);function i(e){var r,s,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,i),(a=t.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.videos=n.related.content,a.cb=(null==n||null===(r=n.related)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==n||null===(s=n.related)||void 0===s?void 0:s.autoNext)||!1,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(p(0),h({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return r(i,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=l.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(c())});return l.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then((function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),r=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var s;null!==(s=r.classList)&&void 0!==s&&s.contains("hidden")?(u(),r.classList.remove("hidden"),o.classList.add("open"),j(e.playerId,r)):(r.classList.add("hidden"),o.classList.remove("open"))};var s=document.getElementById(this.playerId);if(s){var t=window.getComputedStyle(s,null).getPropertyValue("height");r.style.height="".concat(t),l.dom.appendContent(o,r),s.style.overflow="hidden",this.addFunctionality(r),b(this.playerId,r)}}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),s=l.dom.createEl("div",{className:"video-selector-head"}),t=l.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(d())});t.onclick=function(){e.classList.add("hidden"),r.classList.remove("open")};for(var i=l.dom.createEl("div",{className:"video-selector-title",innerHTML:g("relatedVideoTitle")||"Recommended"}),c=l.dom.createEl("div",{className:"video-selector-content"}),u=l.dom.createEl("div",{className:"video-container"}),j=function(e){var r,s,t,i,d,j,b,v,h,g,C=l.dom.createEl("div",{className:"video -".concat(e)}),x=l.dom.createEl("div",{className:"recommended -".concat(e)});x.setAttribute("video-idx",e),x.onclick=function(){p(e+1);for(var r=l.dom.$$(".recommended"),s=0;s<r.length;s++)r[s].style.border="none";y(e),m(o.playerId,o.videos[e].id).then((function(e){o.cb&&o.cb(e)})).catch((function(e){o.cb&&o.cb(e)}))};var N=document.createElement("img");N.className="related-thumbnail-image",N.src="".concat(f(null==o||null===(r=o.videos)||void 0===r||null===(s=r[e])||void 0===s?void 0:s.img)||f(null===(t=window)||void 0===t||null===(i=t.app_data)||void 0===i||null===(d=i.appcmsMain)||void 0===d||null===(j=d.images)||void 0===j?void 0:j.placeholderCover)),N.alt="".concat((null==o||null===(b=o.videos[e])||void 0===b?void 0:a(v=n(h=b.title).call(h).split(/\s+/)).call(v,0,2).join(" "))||""),x.append(N);var E=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(g=o.videos[e])||void 0===g?void 0:g.title)||"")});l.dom.appendContent(C,x),l.dom.appendContent(C,E),l.dom.appendContent(u,C),l.dom.appendContent(c,u)},b=0;b<this.videos.length;b++)j(b);l.dom.appendContent(s,i),l.dom.appendContent(s,t),l.dom.appendContent(e,s),l.dom.appendContent(e,c),v(this.playerId,e)}}]),i}();export{E as default};