@viewlift/player-backup 2.0.38-backup → 2.0.38-smarttv

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